Lines Matching refs:nPos

702 sal_Bool SwTxtFrm::IsIdxInside( const xub_StrLen nPos, const xub_StrLen nLen ) const  in IsIdxInside()  argument
704 if( GetOfst() > nPos + nLen ) // d.h., der Bereich liegt komplett vor uns. in IsIdxInside()
714 if( nMax > nPos || nMax > GetTxt().Len() ) in IsIdxInside()
719 return pPara && ( nPos <= nMax + pPara->GetLen() ); in IsIdxInside()
845 #define SET_WRONG( nPos, nCnt, bMove ) \ argument
847 lcl_SetWrong( *this, nPos, nCnt, bMove ); \
850 void lcl_SetWrong( SwTxtFrm& rFrm, xub_StrLen nPos, long nCnt, bool bMove ) in lcl_SetWrong() argument
863 pTxtNode->GetWrong()->Move( nPos, nCnt ); in lcl_SetWrong()
865 pWrongGrammar->MoveGrammar( nPos, nCnt ); in lcl_SetWrong()
867 pTxtNode->GetGrammarCheck()->MoveGrammar( nPos, nCnt ); in lcl_SetWrong()
869 pTxtNode->GetSmartTags()->Move( nPos, nCnt ); in lcl_SetWrong()
875 pTxtNode->GetWrong()->Invalidate( nPos, nLen ); in lcl_SetWrong()
877 pWrongGrammar->Invalidate( nPos, nLen ); in lcl_SetWrong()
879 pTxtNode->GetSmartTags()->Invalidate( nPos, nLen ); in lcl_SetWrong()
884 pTxtNode->GetWrong()->SetInvalid( nPos, nPos + (sal_uInt16)( nCnt > 0 ? nCnt : 1 ) ); in lcl_SetWrong()
890 … pTxtNode->GetSmartTags()->SetInvalid( nPos, nPos + (sal_uInt16)( nCnt > 0 ? nCnt : 1 ) ); in lcl_SetWrong()
920 #define SET_SCRIPT_INVAL( nPos )\ argument
921 lcl_SetScriptInval( *this, nPos );
923 void lcl_SetScriptInval( SwTxtFrm& rFrm, xub_StrLen nPos ) in lcl_SetScriptInval() argument
926 rFrm.GetPara()->GetScriptInfo().SetInvalidity( nPos ); in lcl_SetScriptInval()
929 void lcl_ModifyOfst( SwTxtFrm* pFrm, xub_StrLen nPos, xub_StrLen nLen ) in lcl_ModifyOfst() argument
931 while( pFrm && pFrm->GetOfst() <= nPos ) in lcl_ModifyOfst()
975 xub_StrLen nPos, nLen; in Modify() local
988 nPos = ((SwInsTxt*)pNew)->nPos; in Modify()
990 if( IsIdxInside( nPos, nLen ) ) in Modify()
995 if( nPos ) in Modify()
1001 _InvalidateRange( SwCharRange( nPos, nLen ), nLen ); in Modify()
1003 SET_WRONG( nPos, nLen, true ) in Modify()
1004 SET_SCRIPT_INVAL( nPos ) in Modify()
1007 lcl_ModifyOfst( this, nPos, nLen ); in Modify()
1012 nPos = ((SwDelChr*)pNew)->nPos; in Modify()
1013 InvalidateRange( SwCharRange( nPos, 1 ), -1 ); in Modify()
1014 SET_WRONG( nPos, -1, true ) in Modify()
1015 SET_SCRIPT_INVAL( nPos ) in Modify()
1018 lcl_ModifyOfst( this, nPos, STRING_LEN ); in Modify()
1023 nPos = ((SwDelTxt*)pNew)->nStart; in Modify()
1027 if( IsIdxInside( nPos, nLen ) ) in Modify()
1032 InvalidateRange( SwCharRange( nPos, 1 ), m ); in Modify()
1034 SET_WRONG( nPos, m, true ) in Modify()
1035 SET_SCRIPT_INVAL( nPos ) in Modify()
1038 lcl_ModifyOfst( this, nPos, nLen ); in Modify()
1043 nPos = ((SwUpdateAttr*)pNew)->getStart(); in Modify()
1044 nLen = ((SwUpdateAttr*)pNew)->getEnd() - nPos; in Modify()
1045 if( IsIdxInside( nPos, nLen ) ) in Modify()
1056 _InvalidateRange( SwCharRange( nPos, nLen) ); in Modify()
1062 SET_WRONG( nPos, nPos + nLen, false ) in Modify()
1063 SET_SCRIPT_INVAL( nPos ) in Modify()
1104 nPos = *((SwFmtFld*)pNew)->GetTxtFld()->GetStart(); in Modify()
1105 if( IsIdxInside( nPos, 1 ) ) in Modify()
1115 _InvalidateRange( SwCharRange( nPos, 1 ) ); in Modify()
1120 SET_WRONG( nPos, nPos + 1, false ) in Modify()
1126 nPos = *((SwFmtFtn*)pNew)->GetTxtFtn()->GetStart(); in Modify()
1127 if( IsInFtn() || IsIdxInside( nPos, 1 ) ) in Modify()
1143 nPos = *((SwFmtFtn*)pItem)->GetTxtFtn()->GetStart(); in Modify()
1144 if( IsIdxInside( nPos, 1 ) ) in Modify()
1152 nPos = *((SwFmtFld*)pItem)->GetTxtFld()->GetStart(); in Modify()
1153 if( IsIdxInside( nPos, 1 ) ) in Modify()
1163 _InvalidateRange( SwCharRange( nPos, 1 ) ); in Modify()
1625 xub_StrLen nPos = pPara->GetParLen(); in Prepare() local
1626 if( nPos ) in Prepare()
1627 --nPos; in Prepare()
1628 InvalidateRange( SwCharRange( nPos, 1 ), 1); in Prepare()
1635 const xub_StrLen nPos = *pFtn->GetStart(); in Prepare() local
1636 InvalidateRange( SwCharRange( nPos, 1 ), 1); in Prepare()
1660 xub_StrLen nPos; in Prepare() local
1661 if( lcl_ErgoVadis( this, nPos, PREP_QUOVADIS ) ) in Prepare()
1662 InvalidateRange( SwCharRange( nPos, 1 ), 0 ); in Prepare()
1663 if( lcl_ErgoVadis( this, nPos, PREP_ERGOSUM ) ) in Prepare()
1664 InvalidateRange( SwCharRange( nPos, 1 ), 0 ); in Prepare()
1809 xub_StrLen nPos = GetFollow()->GetOfst(); in Prepare() local
1810 if( IsFollow() && GetOfst() == nPos ) // falls wir gar keine Textmasse besitzen, in Prepare()
1812 if( nPos ) in Prepare()
1813 --nPos; // das Zeichen vor unserem Follow in Prepare()
1814 InvalidateRange( SwCharRange( nPos, 1 ), 0 ); in Prepare()
1820 xub_StrLen nPos; in Prepare() local
1821 if( lcl_ErgoVadis( this, nPos, ePrep ) ) in Prepare()
1822 InvalidateRange( SwCharRange( nPos, 1 ), 0 ); in Prepare()
2503 MSHORT SwTxtFrm::GetLineCount( xub_StrLen nPos ) in GetLineCount() argument
2514 if( STRING_LEN == nPos ) in GetLineCount()
2517 aLine.CharToLine( nPos ); in GetLineCount()
2520 } while ( pFrm && pFrm->GetOfst() <= nPos ); in GetLineCount()