Lines Matching refs:rPaM

610 TextPaM TextDoc::InsertText( const TextPaM& rPaM, xub_Unicode c )  in InsertText()  argument
615 TextNode* pNode = maTextNodes.GetObject( rPaM.GetPara() ); in InsertText()
616 pNode->InsertText( rPaM.GetIndex(), c ); in InsertText()
618 TextPaM aPaM( rPaM.GetPara(), rPaM.GetIndex()+1 ); in InsertText()
622 TextPaM TextDoc::InsertText( const TextPaM& rPaM, const XubString& rStr ) in InsertText() argument
627 TextNode* pNode = maTextNodes.GetObject( rPaM.GetPara() ); in InsertText()
628 pNode->InsertText( rPaM.GetIndex(), rStr ); in InsertText()
630 TextPaM aPaM( rPaM.GetPara(), rPaM.GetIndex()+rStr.Len() ); in InsertText()
634 TextPaM TextDoc::InsertParaBreak( const TextPaM& rPaM, sal_Bool bKeepEndingAttribs ) in InsertParaBreak() argument
636 TextNode* pNode = maTextNodes.GetObject( rPaM.GetPara() ); in InsertParaBreak()
637 TextNode* pNew = pNode->Split( rPaM.GetIndex(), bKeepEndingAttribs ); in InsertParaBreak()
639 maTextNodes.Insert( pNew, rPaM.GetPara()+1 ); in InsertParaBreak()
641 TextPaM aPaM( rPaM.GetPara()+1, 0 ); in InsertParaBreak()
660 TextPaM TextDoc::RemoveChars( const TextPaM& rPaM, sal_uInt16 nChars ) in RemoveChars() argument
662 TextNode* pNode = maTextNodes.GetObject( rPaM.GetPara() ); in RemoveChars()
663 pNode->RemoveText( rPaM.GetIndex(), nChars ); in RemoveChars()
665 return rPaM; in RemoveChars()
668 sal_Bool TextDoc::IsValidPaM( const TextPaM& rPaM ) in IsValidPaM() argument
670 if ( rPaM.GetPara() >= maTextNodes.Count() ) in IsValidPaM()
675 TextNode * pNode = maTextNodes.GetObject( rPaM.GetPara() ); in IsValidPaM()
676 if ( rPaM.GetIndex() > pNode->GetText().Len() ) in IsValidPaM()