Lines Matching refs:aPaM
311 TextPaM aPaM = mpImpl->mpTextEngine->ImpDeleteText( mpImpl->maSelection ); in DeleteSelected() local
314 ImpSetSelection( aPaM ); in DeleteSelected()
984 TextPaM aPaM( mpImpl->mpTextEngine->mpIMEInfos->aPos ); in Command() local
985 aPaM.GetIndex() = aPaM.GetIndex() + nNewIMETextLen; in Command()
986 …mpImpl->mpTextEngine->ImpInsertText( aPaM, mpImpl->mpTextEngine->mpIMEInfos->aOldTextAfterStartPos… in Command()
996 TextPaM aPaM( mpImpl->mpTextEngine->mpIMEInfos->aPos ); in Command() local
997 aPaM.GetIndex() = aPaM.GetIndex() + nNewIMETextLen; in Command()
998 TextSelection aSel( aPaM ); in Command()
1034 TextPaM aPaM( GetSelection().GetEnd() ); in Command() local
1035 Rectangle aR1 = mpImpl->mpTextEngine->PaMtoEditCursor( aPaM ); in Command()
1042 … TEParaPortion* pParaPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() ); in Command()
1043 sal_uInt16 nLine = pParaPortion->GetLineNumber( aPaM.GetIndex(), sal_True ); in Command()
1047 … Rectangle aR2 = mpImpl->mpTextEngine->PaMtoEditCursor( TextPaM( aPaM.GetPara(), nInputEnd ) ); in Command()
1265 TextPaM aPaM( mpImpl->maSelection.GetEnd() ); in ImpMoveCursor() local
1266 TextPaM aOldEnd( aPaM ); in ImpMoveCursor()
1280 case KEY_UP: aPaM = CursorUp( aPaM ); in ImpMoveCursor()
1282 case KEY_DOWN: aPaM = CursorDown( aPaM ); in ImpMoveCursor()
1284 case KEY_HOME: aPaM = bCtrl ? CursorStartOfDoc() : CursorStartOfLine( aPaM ); in ImpMoveCursor()
1286 case KEY_END: aPaM = bCtrl ? CursorEndOfDoc() : CursorEndOfLine( aPaM ); in ImpMoveCursor()
1288 case KEY_PAGEUP: aPaM = bCtrl ? CursorStartOfDoc() : PageUp( aPaM ); in ImpMoveCursor()
1290 case KEY_PAGEDOWN: aPaM = bCtrl ? CursorEndOfDoc() : PageDown( aPaM ); in ImpMoveCursor()
1292 …case KEY_LEFT: aPaM = bCtrl ? CursorWordLeft( aPaM ) : CursorLeft( aPaM, aTranslatedKeyEvent.GetK… in ImpMoveCursor()
1294 …case KEY_RIGHT: aPaM = bCtrl ? CursorWordRight( aPaM ) : CursorRight( aPaM, aTranslatedKeyEvent.G… in ImpMoveCursor()
1299 aPaM = CursorWordRight( aPaM ); in ImpMoveCursor()
1304 aPaM = CursorWordLeft( aPaM ); in ImpMoveCursor()
1309 aPaM = CursorStartOfLine( aPaM ); in ImpMoveCursor()
1314 aPaM = CursorEndOfLine( aPaM ); in ImpMoveCursor()
1319 aPaM = CursorStartOfParagraph( aPaM ); in ImpMoveCursor()
1324 aPaM = CursorEndOfParagraph( aPaM ); in ImpMoveCursor()
1329 aPaM = CursorStartOfDoc(); in ImpMoveCursor()
1334 aPaM = CursorEndOfDoc(); in ImpMoveCursor()
1341 if ( aOldEnd != aPaM ) in ImpMoveCursor()
1348 aNewSelection.GetEnd() = aPaM; in ImpMoveCursor()
1353 ShowSelection( TextSelection( aOldEnd, aPaM ) ); in ImpMoveCursor()
1357 aNewSelection.GetStart() = aPaM; in ImpMoveCursor()
1392 TextPaM aPaM = mpImpl->mpTextEngine->ImpInsertText( mpImpl->maSelection, aChunk ); in InsertNewText() local
1397 aNewSel.GetEnd() = aPaM; in InsertNewText()
1401 aNewSel = aPaM; in InsertNewText()
1458 TextPaM aPaM( rPaM ); in CursorLeft() local
1460 if ( aPaM.GetIndex() ) in CursorLeft()
1462 TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aPaM.GetPara() ); in CursorLeft()
1465 …aPaM.GetIndex() = (sal_uInt16)xBI->previousCharacters( pNode->GetText(), aPaM.GetIndex(), mpImpl->… in CursorLeft()
1467 else if ( aPaM.GetPara() ) in CursorLeft()
1469 aPaM.GetPara()--; in CursorLeft()
1470 TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aPaM.GetPara() ); in CursorLeft()
1471 aPaM.GetIndex() = pNode->GetText().Len(); in CursorLeft()
1473 return aPaM; in CursorLeft()
1478 TextPaM aPaM( rPaM ); in CursorRight() local
1480 TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aPaM.GetPara() ); in CursorRight()
1481 if ( aPaM.GetIndex() < pNode->GetText().Len() ) in CursorRight()
1485 …aPaM.GetIndex() = (sal_uInt16)xBI->nextCharacters( pNode->GetText(), aPaM.GetIndex(), mpImpl->mpTe… in CursorRight()
1487 else if ( aPaM.GetPara() < ( mpImpl->mpTextEngine->mpDoc->GetNodes().Count()-1) ) in CursorRight()
1489 aPaM.GetPara()++; in CursorRight()
1490 aPaM.GetIndex() = 0; in CursorRight()
1493 return aPaM; in CursorRight()
1499 TextPaM aPaM( rPaM ); in CursorWordLeft() local
1501 if ( aPaM.GetIndex() ) in CursorWordLeft()
1503 TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aPaM.GetPara() ); in CursorWordLeft()
1508 aPaM.GetIndex() = ( aBoundary.startPos != -1 ) ? (sal_uInt16)aBoundary.startPos : 0; in CursorWordLeft()
1510 else if ( aPaM.GetPara() ) in CursorWordLeft()
1512 aPaM.GetPara()--; in CursorWordLeft()
1513 TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aPaM.GetPara() ); in CursorWordLeft()
1514 aPaM.GetIndex() = pNode->GetText().Len(); in CursorWordLeft()
1516 return aPaM; in CursorWordLeft()
1522 TextPaM aPaM( rPaM ); in CursorWordRight() local
1524 TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aPaM.GetPara() ); in CursorWordRight()
1525 if ( aPaM.GetIndex() < pNode->GetText().Len() ) in CursorWordRight()
1528 …i18n::Boundary aBoundary = xBI->nextWord( pNode->GetText(), aPaM.GetIndex(), mpImpl->mpTextEngine… in CursorWordRight()
1529 aPaM.GetIndex() = (sal_uInt16)aBoundary.startPos; in CursorWordRight()
1531 else if ( aPaM.GetPara() < ( mpImpl->mpTextEngine->mpDoc->GetNodes().Count()-1) ) in CursorWordRight()
1533 aPaM.GetPara()++; in CursorWordRight()
1534 aPaM.GetIndex() = 0; in CursorWordRight()
1537 return aPaM; in CursorWordRight()
1610 TextPaM aPaM( rPaM ); in CursorUp() local
1626 aPaM.GetIndex() = nCharPos; in CursorUp()
1631 if ( aPaM.GetIndex() && ( aPaM.GetIndex() == pLine->GetEnd() ) ) in CursorUp()
1632 aPaM.GetIndex()--; in CursorUp()
1636 aPaM.GetPara()--; in CursorUp()
1637 pPPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() ); in CursorUp()
1639 sal_uInt16 nCharPos = mpImpl->mpTextEngine->GetCharPos( aPaM.GetPara(), nL, nX+1 ); in CursorUp()
1640 aPaM.GetIndex() = nCharPos; in CursorUp()
1643 return aPaM; in CursorUp()
1648 TextPaM aPaM( rPaM ); in CursorDown() local
1664 aPaM.GetIndex() = nCharPos; in CursorDown()
1668 …if ( ( aPaM.GetIndex() == pLine->GetEnd() ) && ( aPaM.GetIndex() > pLine->GetStart() ) && aPaM.Get… in CursorDown()
1669 aPaM.GetIndex()--; in CursorDown()
1673 aPaM.GetPara()++; in CursorDown()
1674 pPPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() ); in CursorDown()
1675 sal_uInt16 nCharPos = mpImpl->mpTextEngine->GetCharPos( aPaM.GetPara(), 0, nX+1 ); in CursorDown()
1676 aPaM.GetIndex() = nCharPos; in CursorDown()
1678 …if ( ( aPaM.GetIndex() == pLine->GetEnd() ) && ( aPaM.GetIndex() > pLine->GetStart() ) && ( pPPort… in CursorDown()
1679 aPaM.GetIndex()--; in CursorDown()
1682 return aPaM; in CursorDown()
1687 TextPaM aPaM( rPaM ); in CursorStartOfLine() local
1690 sal_uInt16 nLine = pPPortion->GetLineNumber( aPaM.GetIndex(), sal_False ); in CursorStartOfLine()
1692 aPaM.GetIndex() = pLine->GetStart(); in CursorStartOfLine()
1694 return aPaM; in CursorStartOfLine()
1699 TextPaM aPaM( rPaM ); in CursorEndOfLine() local
1702 sal_uInt16 nLine = pPPortion->GetLineNumber( aPaM.GetIndex(), sal_False ); in CursorEndOfLine()
1704 aPaM.GetIndex() = pLine->GetEnd(); in CursorEndOfLine()
1708 xub_Unicode cLastChar = pPPortion->GetNode()->GetText().GetChar((sal_uInt16)(aPaM.GetIndex()-1) ); in CursorEndOfLine()
1709 if ( ( cLastChar == ' ' ) && ( aPaM.GetIndex() != pPPortion->GetNode()->GetText().Len() ) ) in CursorEndOfLine()
1714 aPaM.GetIndex()--; in CursorEndOfLine()
1717 return aPaM; in CursorEndOfLine()
1722 TextPaM aPaM( rPaM ); in CursorStartOfParagraph() local
1723 aPaM.GetIndex() = 0; in CursorStartOfParagraph()
1724 return aPaM; in CursorStartOfParagraph()
1730 TextPaM aPaM( rPaM ); in CursorEndOfParagraph() local
1731 aPaM.GetIndex() = pNode->GetText().Len(); in CursorEndOfParagraph()
1732 return aPaM; in CursorEndOfParagraph()
1737 TextPaM aPaM( 0, 0 ); in CursorStartOfDoc() local
1738 return aPaM; in CursorStartOfDoc()
1745 TextPaM aPaM( nNode, pNode->GetText().Len() ); in CursorEndOfDoc() local
1746 return aPaM; in CursorEndOfDoc()
1758 TextPaM aPaM = mpImpl->mpTextEngine->GetPaM( aTopLeft ); in PageUp() local
1759 return aPaM; in PageUp()
1772 TextPaM aPaM = mpImpl->mpTextEngine->GetPaM( aBottomRight ); in PageDown() local
1773 return aPaM; in PageDown()
1790 TextPaM aPaM( mpImpl->maSelection.GetEnd() ); in ImpShowCursor() local
1791 Rectangle aEditCursor = mpImpl->mpTextEngine->PaMtoEditCursor( aPaM, bSpecial ); in ImpShowCursor()
1797 … TEParaPortion* pParaPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() ); in ImpShowCursor()
1799 …pParaPortion->GetLineNumber( aPaM.GetIndex(), sal_True ) != pParaPortion->GetLineNumber( aPaM.GetI… in ImpShowCursor()
1804 TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aPaM.GetPara() ); in ImpShowCursor()
1805 if ( pNode->GetText().Len() && ( aPaM.GetIndex() < pNode->GetText().Len() ) ) in ImpShowCursor()
1808 …aEditCursor.Left() = aEditCursor.Right() = mpImpl->mpTextEngine->GetEditCursor( aPaM, sal_False, s… in ImpShowCursor()
1810 … TEParaPortion* pParaPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() ); in ImpShowCursor()
1813 …sal_uInt16 nTextPortion = pParaPortion->GetTextPortions().FindPortion( aPaM.GetIndex(), nTextPorti… in ImpShowCursor()
1825 …TextPaM aNext = CursorRight( TextPaM( aPaM.GetPara(), aPaM.GetIndex() ), (sal_uInt16)i18n::Charact… in ImpShowCursor()
1919 TextPaM aPaM = mpImpl->mpTextEngine->GetPaM( aDocPos ); in SetCursorAtPoint() local
1922 TextSelection aTmpNewSel( mpImpl->maSelection.GetEnd(), aPaM ); in SetCursorAtPoint()
1924 aNewSel.GetEnd() = aPaM; in SetCursorAtPoint()
1928 if ( mpImpl->maSelection.GetStart() != aPaM ) in SetCursorAtPoint()
1930 aNewSel.GetStart() = aPaM; in SetCursorAtPoint()
1950 TextPaM aPaM = mpImpl->mpTextEngine->GetPaM( aDocPos, sal_False ); in IsSelectionAtPoint() local
1955 return ( IsInSelection( aPaM ) || in IsSelectionAtPoint()
1956 …( /* mpImpl->mpSelEngine->IsInCommand() && */ mpImpl->mpTextEngine->FindAttrib( aPaM, TEXTATTR_HYP… in IsSelectionAtPoint()
2234 TextPaM aPaM = mpImpl->maSelection.GetStart(); in drop() local
2235 aPaM.GetPara() -= ( aPrevSel.GetEnd().GetPara() - aPrevSel.GetStart().GetPara() ); in drop()
2238 aPaM.GetIndex() = in drop()
2239 aPaM.GetIndex() - aPrevSel.GetEnd().GetIndex(); in drop()
2241 aPaM.GetIndex() = in drop()
2242 aPaM.GetIndex() + aPrevSel.GetStart().GetIndex(); in drop()
2244 ImpSetSelection( aPaM ); in drop()
2381 TextPaM aPaM = GetSelection().GetEnd(); in GetLineNumberOfCursorInSelection() local
2382 … TEParaPortion* pPPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() ); in GetLineNumberOfCursorInSelection()
2383 nLineNo = pPPortion->GetLineNumber( aPaM.GetIndex(), sal_False ); in GetLineNumberOfCursorInSelection()