Lines Matching refs:rPaM
555 void TextEngine::ImpRemoveChars( const TextPaM& rPaM, sal_uInt16 nChars, SfxUndoAction* ) in ImpRemoveChars() argument
561 TextNode* pNode = mpDoc->GetNodes().GetObject( rPaM.GetPara() ); in ImpRemoveChars()
562 XubString aStr( pNode->GetText().Copy( rPaM.GetIndex(), nChars ) ); in ImpRemoveChars()
565 sal_uInt16 nStart = rPaM.GetIndex(); in ImpRemoveChars()
582 InsertUndo( new TextUndoRemoveChars( this, rPaM, aStr ) ); in ImpRemoveChars()
585 mpDoc->RemoveChars( rPaM, nChars ); in ImpRemoveChars()
586 ImpCharsRemoved( rPaM.GetPara(), rPaM.GetIndex(), nChars ); in ImpRemoveChars()
924 TextPaM TextEngine::ImpInsertParaBreak( const TextPaM& rPaM, sal_Bool bKeepEndingAttribs ) in ImpInsertParaBreak() argument
927 InsertUndo( new TextUndoSplitPara( this, rPaM.GetPara(), rPaM.GetIndex() ) ); in ImpInsertParaBreak()
929 TextNode* pNode = mpDoc->GetNodes().GetObject( rPaM.GetPara() ); in ImpInsertParaBreak()
930 sal_Bool bFirstParaContentChanged = rPaM.GetIndex() < pNode->GetText().Len(); in ImpInsertParaBreak()
932 TextPaM aPaM( mpDoc->InsertParaBreak( rPaM, bKeepEndingAttribs ) ); in ImpInsertParaBreak()
934 TEParaPortion* pPortion = mpTEParaPortions->GetObject( rPaM.GetPara() ); in ImpInsertParaBreak()
936 pPortion->MarkInvalid( rPaM.GetIndex(), 0 ); in ImpInsertParaBreak()
943 CursorMoved( rPaM.GetPara() ); // falls leeres Attribut entstanden. in ImpInsertParaBreak()
947 Broadcast( TextHint( TEXT_HINT_PARACONTENTCHANGED, rPaM.GetPara() ) ); in ImpInsertParaBreak()
952 Rectangle TextEngine::PaMtoEditCursor( const TextPaM& rPaM, sal_Bool bSpecial ) in PaMtoEditCursor() argument
961 nY = rPaM.GetPara() * mnCharHeight; in PaMtoEditCursor()
965 for ( sal_uLong nPortion = 0; nPortion < rPaM.GetPara(); nPortion++ ) in PaMtoEditCursor()
972 aEditCursor = GetEditCursor( rPaM, bSpecial ); in PaMtoEditCursor()
978 Rectangle TextEngine::GetEditCursor( const TextPaM& rPaM, sal_Bool bSpecial, sal_Bool bPreferPortio… in GetEditCursor() argument
983 TEParaPortion* pPortion = mpTEParaPortions->GetObject( rPaM.GetPara() ); in GetEditCursor()
1004 …if ( ( pTmpLine->GetStart() == rPaM.GetIndex() ) || ( pTmpLine->IsIn( rPaM.GetIndex(), bSpecial ) … in GetEditCursor()
1016 DBG_ASSERT( rPaM.GetIndex() == nCurIndex, "Index voll daneben in GetEditCursor!" ); in GetEditCursor()
1030 long nX = ImpGetXPos( rPaM.GetPara(), pLine, rPaM.GetIndex(), bPreferPortionStart ); in GetEditCursor()
1116 const TextAttrib* TextEngine::FindAttrib( const TextPaM& rPaM, sal_uInt16 nWhich ) const in FindAttrib() argument
1119 const TextCharAttrib* pCharAttr = FindCharAttrib( rPaM, nWhich ); in FindAttrib()
1125 const TextCharAttrib* TextEngine::FindCharAttrib( const TextPaM& rPaM, sal_uInt16 nWhich ) const in FindCharAttrib() argument
1128 TextNode* pNode = mpDoc->GetNodes().GetObject( rPaM.GetPara() ); in FindCharAttrib()
1129 if ( pNode && ( rPaM.GetIndex() < pNode->GetText().Len() ) ) in FindCharAttrib()
1130 pAttr = pNode->GetCharAttribs().FindAttrib( nWhich, rPaM.GetIndex() ); in FindCharAttrib()
2884 void TextEngine::ValidatePaM( TextPaM& rPaM ) const in ValidatePaM()
2887 if ( rPaM.GetPara() > nMaxPara ) in ValidatePaM()
2889 rPaM.GetPara() = nMaxPara; in ValidatePaM()
2890 rPaM.GetIndex() = 0xFFFF; in ValidatePaM()
2893 sal_uInt16 nMaxIndex = GetTextLen( rPaM.GetPara() ); in ValidatePaM()
2894 if ( rPaM.GetIndex() > nMaxIndex ) in ValidatePaM()
2895 rPaM.GetIndex() = nMaxIndex; in ValidatePaM()
2922 … TextPaM& rPaM = n ? pView->GetSelection().GetStart(): pView->GetSelection().GetEnd(); in ImpParagraphInserted() local
2923 if ( rPaM.GetPara() >= nPara ) in ImpParagraphInserted()
2924 rPaM.GetPara()++; in ImpParagraphInserted()
2944 … TextPaM& rPaM = n ? pView->GetSelection().GetStart(): pView->GetSelection().GetEnd(); in ImpParagraphRemoved() local
2945 if ( rPaM.GetPara() > nPara ) in ImpParagraphRemoved()
2946 rPaM.GetPara()--; in ImpParagraphRemoved()
2947 else if ( rPaM.GetPara() == nPara ) in ImpParagraphRemoved()
2949 rPaM.GetIndex() = 0; in ImpParagraphRemoved()
2950 if ( rPaM.GetPara() >= nParas ) in ImpParagraphRemoved()
2951 rPaM.GetPara()--; in ImpParagraphRemoved()
2972 … TextPaM& rPaM = n ? pView->GetSelection().GetStart(): pView->GetSelection().GetEnd(); in ImpCharsRemoved() local
2973 if ( rPaM.GetPara() == nPara ) in ImpCharsRemoved()
2975 if ( rPaM.GetIndex() > nEnd ) in ImpCharsRemoved()
2976 rPaM.GetIndex() = rPaM.GetIndex() - nChars; in ImpCharsRemoved()
2977 else if ( rPaM.GetIndex() > nPos ) in ImpCharsRemoved()
2978 rPaM.GetIndex() = nPos; in ImpCharsRemoved()
2998 … TextPaM& rPaM = n ? pView->GetSelection().GetStart(): pView->GetSelection().GetEnd(); in ImpCharsInserted() local
2999 if ( rPaM.GetPara() == nPara ) in ImpCharsInserted()
3001 if ( rPaM.GetIndex() >= nPos ) in ImpCharsInserted()
3002 rPaM.GetIndex() = rPaM.GetIndex() + nChars; in ImpCharsInserted()