/trunk/main/editeng/source/editeng/ |
H A D | impedit2.cxx | 891 case KEY_UP: aPaM = CursorUp( aPaM, pEditView ); in MoveCursor() 916 aPaM = WordLeft( aPaM ); in MoveCursor() 1110 aPaM = CursorUp( aPaM, pEditView ); in CursorVisualLeftRight() 1116 aPaM = CursorDown( aPaM, pEditView ); in CursorVisualLeftRight() 1268 aPaM = CursorUp( aPaM, pEditView ); in CursorVisualLeftRight() 1274 aPaM = CursorDown( aPaM, pEditView ); in CursorVisualLeftRight() 2825 aPaM = aEditDoc.InsertText( aPaM, aLine ); in ImpInsertText() 2863 aPaM = ImpInsertParaBreak( aPaM ); in ImpInsertText() 2887 aPaM = aEditDoc.InsertText( aPaM, rStr ); in ImpFastInsertText() 2892 aPaM = ImpInsertText( aPaM, rStr ); in ImpFastInsertText() [all …]
|
H A D | editundo.cxx | 60 aPaM.SetIndex( aPaM.GetNode()->Len() ); in lcl_DoSetSelection() 61 EditSelection aSel( aPaM, aPaM ); in lcl_DoSetSelection() 239 EditPaM aPaM( pN, pN->Len() ); in Redo() local 243 _pImpEE->GetActiveView()->GetImpEditView()->SetEditSelection( EditSelection( aPaM, aPaM ) ); in Redo() 356 EditSelection aSel( aPaM, aPaM ); in Undo() 366 GetImpEditEngine()->ImpInsertText( EditSelection( aPaM, aPaM ), aText ); in Redo() 367 EditPaM aNewPaM( aPaM ); in Redo() 403 EditSelection aSel( aPaM, aPaM ); in Undo() 413 EditSelection aSel( aPaM, aPaM ); in Redo() 438 EditSelection aSel( aPaM, aPaM ); in Undo() [all …]
|
H A D | editdoc.cxx | 1479 return aPaM; in Clear() 1511 return aPaM; in RemoveText() 1533 aPaM.GetNode()->Insert( rStr, aPaM.GetIndex() ); in InsertText() 1535 aPaM.GetIndex() = aPaM.GetIndex() + rStr.Len(); in InsertText() 1539 return aPaM; in InsertText() 1548 aPaM.GetNode()->Erase( aPaM.GetIndex() ); in InsertParaBreak() 1581 return aPaM; in InsertParaBreak() 1588 aPaM.GetNode()->Insert( CH_FEATURE, aPaM.GetIndex() ); in InsertFeature() 1599 return aPaM; in InsertFeature() 1619 return aPaM; in ConnectParagraphs() [all …]
|
H A D | impedit.cxx | 670 EditPaM aPaM( aEditSelection.Max() ); in ShowCursor() local 694 if ( aPaM.GetNode()->Len() && ( aPaM.GetIndex() < aPaM.GetNode()->Len() ) ) in ShowCursor() 888 pEditEngine->pImpEditEngine->SeekCursor( aPaM.GetNode(), aPaM.GetIndex()+1, aFont ); in ShowCursor() 1155 SetEditSelection( EditSelection( aPaM, aPaM ) ); in SpellIgnoreOrAddWord() 1196 SetEditSelection( EditSelection( aPaM, aPaM ) ); in DeleteSelected() 1209 if ( aPaM.GetIndex() == aPaM.GetNode()->Len() ) in GetField() 1216 sal_uInt16 nXPos = aPaM.GetIndex(); in GetField() 1245 if ( aPaM.GetIndex() == 0 ) in IsBulletArea() 1432 return IsInSelection( aPaM ); in IsSelectionAtPoint() 1466 aNewEditSelection.Max() = aPaM; in SetCursorAtPoint() [all …]
|
H A D | impedit4.cxx | 103 EditPaM aPaM; in Read() local 122 return aPaM; in Read() 136 aPaM = ImpInsertText( EditSelection( aPaM, aPaM ), aTmpStr ); in ReadText() 137 aPaM = ImpInsertParaBreak( aPaM ); in ReadText() 140 return aPaM; in ReadText() 1214 InsertText( rTextObject, EditSelection( aPaM, aPaM ) ); in SetText() 1241 EditSelection aSel( aPaM, aPaM ); in InsertBinTextObject() 1276 aPaM = ImpFastInsertText( aPaM, pC->GetText() ); in InsertBinTextObject() 1421 aPaM = ImpInsertParaBreak( aPaM, sal_False ); in InsertBinTextObject() 1425 aSel.Max() = aPaM; in InsertBinTextObject() [all …]
|
H A D | editview.cxx | 992 EditPaM aPaM = pImpEditView->GetEditSelection().Max(); in IsCursorAtWrongSpelledWord() local 1005 return pImpEditView->IsWrongSpelledWord( aPaM , bMarkIfWrong ); in IsWrongSpelledWordAtPos() 1046 EditPaM aPaM2( aPaM ); in ExecuteSpellPopup() 1079 ContentNode *pNode = aPaM.GetNode(); in ExecuteSpellPopup() 1274 aPaM.GetNode()->GetWrongList()->GetInvalidStart() = 0; in ExecuteSpellPopup() 1275 aPaM.GetNode()->GetWrongList()->GetInvalidEnd() = aPaM.GetNode()->Len(); in ExecuteSpellPopup() 1338 pImpEditView->SetEditSelection( EditSelection( aPaM, aPaM ) ); in InsertField() 1376 EditPaM aPaM = aSel.Min(); in GetFieldAtSelection() local 1378 sal_uInt16 nXPos = aPaM.GetIndex(); in GetFieldAtSelection() 1416 EditPaM aPaM = pImpEE->GetPaM( aDocPos, sal_False ); in GetWordUnderMousePointer() local [all …]
|
H A D | editeng.cxx | 1351 EditPaM aPaM( pImpEditEngine->GetEditDoc().GetStartPaM() ); in Read() local 1352 … pImpEditEngine->Read( rInput, rBaseURL, eFormat, EditSelection( aPaM, aPaM ), pHTTPHeaderAttrs ); in Read() 1577 EditPaM aPaM( pImpEditEngine->InsertParagraph( nPara ) ); in InsertParagraph() local 1581 pImpEditEngine->InsertText( rTxtObj, EditSelection( aPaM, aPaM ) ); in InsertParagraph() 1598 EditPaM aPaM( pImpEditEngine->InsertParagraph( nPara ) ); in InsertParagraph() local 1603 pImpEditEngine->ImpInsertText( EditSelection( aPaM, aPaM ), rTxt ); in InsertParagraph() 1920 EditPaM aPaM = pImpEditEngine->GetPaM( aDocPos, sal_False ); in IsTextPos() local 1921 if ( aPaM.GetNode() ) in IsTextPos() 2411 if ( aPaM.GetNode() ) in FindDocPosition() 2413 aPos.nPara = pImpEditEngine->aEditDoc.GetPos( aPaM.GetNode() ); in FindDocPosition() [all …]
|
H A D | edtspell.cxx | 198 EditPaM aPaM( pEditView->GetImpEditView()->GetEditSelection().Max() ); in CheckSpellTo() local 199 EPaM aEPaM = pImpEE->CreateEPaM( aPaM ); in CheckSpellTo() 204 if ( pSpellInfo->aSpellTo.nIndex > aPaM.GetNode()->Len() ) in CheckSpellTo() 205 pSpellInfo->aSpellTo.nIndex = aPaM.GetNode()->Len(); in CheckSpellTo()
|
H A D | editdoc.hxx | 734 EditPaM RemoveChars( EditPaM aPaM, sal_uInt16 nChars ); 736 EditPaM InsertText( EditPaM aPaM, const XubString& rStr ); 737 EditPaM InsertParaBreak( EditPaM aPaM, sal_Bool bKeepEndingAttribs ); 738 EditPaM InsertFeature( EditPaM aPaM, const SfxPoolItem& rItem );
|
/trunk/main/svtools/source/edit/ |
H A D | textview.cxx | 1280 case KEY_UP: aPaM = CursorUp( aPaM ); in ImpMoveCursor() 1282 case KEY_DOWN: aPaM = CursorDown( aPaM ); in ImpMoveCursor() 1473 return aPaM; in CursorLeft() 1493 return aPaM; in CursorRight() 1516 return aPaM; in CursorWordLeft() 1537 return aPaM; in CursorWordRight() 1643 return aPaM; in CursorUp() 1682 return aPaM; in CursorDown() 1694 return aPaM; in CursorStartOfLine() 1717 return aPaM; in CursorEndOfLine() [all …]
|
H A D | textundo.cxx | 175 TextPaM aPaM( n, pN->GetText().Len() ); in Redo() local 176 SetSelection( aPaM ); in Redo() 196 SetSelection( aPaM ); in Undo() 201 TextPaM aPaM = GetTextEngine()->ConnectContents( mnPara ); in Redo() local 202 SetSelection( aPaM ); in Redo() 220 SetSelection( aPaM ); in Undo() 226 SetSelection( aPaM ); in Redo() 240 TextPaM aPaM = GetTextEngine()->ImpDeleteText( aSel ); in Undo() local 241 SetSelection( aPaM ); in Undo() 290 TextPaM aPaM = GetTextEngine()->ImpDeleteText( aSel ); in Redo() local [all …]
|
H A D | texteng.cxx | 614 return aPaM; in ImpConnectParagraphs() 840 aPaM = mpDoc->InsertText( aPaM, c ); in ImpInsertText() 841 ImpCharsInserted( aPaM.GetPara(), aPaM.GetIndex()-1, 1 ); in ImpInsertText() 849 return aPaM; in ImpInsertText() 857 TextPaM aPaM; in ImpInsertText() local 894 aPaM = mpDoc->InsertText( aPaM, aLine ); in ImpInsertText() 899 aPaM = ImpInsertParaBreak( aPaM ); in ImpInsertText() 910 return aPaM; in ImpInsertText() 915 TextPaM aPaM; in ImpInsertParaBreak() local 949 return aPaM; in ImpInsertParaBreak() [all …]
|
H A D | textdoc.cxx | 618 TextPaM aPaM( rPaM.GetPara(), rPaM.GetIndex()+1 ); in InsertText() local 619 return aPaM; in InsertText() 630 TextPaM aPaM( rPaM.GetPara(), rPaM.GetIndex()+rStr.Len() ); in InsertText() local 631 return aPaM; in InsertText() 641 TextPaM aPaM( rPaM.GetPara()+1, 0 ); in InsertParaBreak() local 642 return aPaM; in InsertParaBreak() 656 TextPaM aPaM( nLeft, nPrevLen ); in ConnectParagraphs() local 657 return aPaM; in ConnectParagraphs()
|
/trunk/main/sw/source/filter/xml/ |
H A D | XMLRedlineImportHelper.cxx | 161 SwUnoInternalPaM aPaM(*pDoc); in SetAsNodeIndex() local 165 ::sw::XTextRangeToSwPaM(aPaM, rRange); in SetAsNodeIndex() 169 Set(aPaM.GetPoint()->nNode); in SetAsNodeIndex() 633 SwPaM aPaM(pDoc->GetNodes().GetEndOfContent()); in InsertIntoDocument() local 635 aPaM.SetMark(); in InsertIntoDocument() 639 if (*aPaM.GetPoint() == *aPaM.GetMark()) in InsertIntoDocument() 641 aPaM.DeleteMark(); in InsertIntoDocument() 657 !CheckNodesRange( aPaM.GetPoint()->nNode, in InsertIntoDocument() 658 aPaM.GetMark()->nNode, in InsertIntoDocument() 665 pDoc->DeleteRange(aPaM); in InsertIntoDocument() [all …]
|
/trunk/main/sw/source/core/crsr/ |
H A D | bookmrk.cxx | 139 MarkBase::MarkBase(const SwPaM& aPaM, in MarkBase() argument 142 , m_pPos1(new SwPosition(*(aPaM.GetPoint()))) in MarkBase() 146 if (aPaM.HasMark() && (*aPaM.GetMark() != *aPaM.GetPoint())) in MarkBase() 148 MarkBase::SetOtherMarkPos(*(aPaM.GetMark())); in MarkBase() 218 UnoMark::UnoMark(const SwPaM& aPaM) in UnoMark() argument 219 : MarkBase(aPaM, MarkBase::GenerateNewName(our_sNamePrefix)) in UnoMark() 224 DdeBookmark::DdeBookmark(const SwPaM& aPaM) in DdeBookmark() argument 257 Bookmark::Bookmark(const SwPaM& aPaM, in Bookmark() argument 261 : DdeBookmark(aPaM) in Bookmark() 358 SwPaM aPaM( this->GetMarkPos(), this->GetOtherMarkPos() ); in Invalidate() local [all …]
|
/trunk/main/sw/source/core/undo/ |
H A D | unins.cxx | 76 SwPaM aPaM( *pCNd, nCntnt ); in GetTxtFromDoc() local 78 aPaM.SetMark(); in GetTxtFromDoc() 246 SwPaM aPaM( *pCNd, nCntnt ); in UndoImpl() local 248 aPaM.SetMark(); in UndoImpl() 253 aPaM.GetPoint()->nContent -= nLen; in UndoImpl() 256 RemoveIdxFromRange( aPaM, sal_False ); in UndoImpl() 262 aPaM.Move(fnMoveBackward); in UndoImpl() 381 SwPaM aPaM( *pCNd, nCntnt ); in RepeatImpl() local 382 aPaM.SetMark(); in RepeatImpl() 383 aPaM.Move(fnMoveBackward); in RepeatImpl() [all …]
|
H A D | undobj.cxx | 454 SwPaM aPaM( rInsPos ); in MoveFromUndoNds() local 460 GoInCntnt( aPaM, fnMoveBackward ); in MoveFromUndoNds() 470 GoInCntnt( aPaM, fnMoveBackward ); in MoveFromUndoNds() 474 aPaM.SetMark(); in MoveFromUndoNds() 475 aPaM.GetPoint()->nNode = nNodeIdx; in MoveFromUndoNds() 476 aPaM.GetPoint()->nContent.Assign( aPaM.GetCntntNode(), nCntIdx ); in MoveFromUndoNds() 483 if( !aPaM.GetPoint()->nContent.GetIndex() || in MoveFromUndoNds() 487 aPaM.GetPoint()->nContent.Assign( 0, 0 ); in MoveFromUndoNds() 488 aPaM.SetMark(); in MoveFromUndoNds() 489 rNds.Delete( aPaM.GetPoint()->nNode, in MoveFromUndoNds() [all …]
|
/trunk/main/sw/source/core/unocore/ |
H A D | unoobj2.cxx | 1041 SwPaM aPaM(GetDoc()->GetNodes()); in getString() local 1042 if (GetPositions(aPaM) && aPaM.HasMark()) in getString() 1406 SwPaM aPaM(GetDoc()->GetNodes()); in setPropertyValue() local 1407 GetPositions(aPaM); in setPropertyValue() 1423 SwPaM aPaM(GetDoc()->GetNodes()); in getPropertyValue() local 1424 GetPositions(aPaM); in getPropertyValue() 1483 SwPaM aPaM(GetDoc()->GetNodes()); in getPropertyState() local 1484 GetPositions(aPaM); in getPropertyState() 1500 GetPositions(aPaM); in getPropertyStates() 1515 GetPositions(aPaM); in setPropertyToDefault() [all …]
|
H A D | unoflatpara.cxx | 222 …SwPaM aPaM( *mpTxtNode, static_cast<sal_uInt16>(nPos), *mpTxtNode, static_cast<sal_uInt16>(nPos + … in changeText() local 228 *mpTxtNode->GetDoc(), *aPaM.GetPoint(), aPaM.GetMark() ); in changeText() 239 pIDCO->ReplaceRange( aPaM, aNewText, false ); in changeText() 252 …SwPaM aPaM( *mpTxtNode, static_cast<sal_uInt16>(nPos), *mpTxtNode, static_cast<sal_uInt16>(nPos + … in changeAttributes() local 258 *mpTxtNode->GetDoc(), *aPaM.GetPoint(), aPaM.GetMark() ); in changeAttributes()
|
/trunk/main/sw/source/ui/uiview/ |
H A D | srcview.cxx | 644 TextPaM aPaM; in StartSearchAndReplace() local 647 sal_Bool bAtStart = pTextView->GetSelection() == TextSelection( aPaM, aPaM ); in StartSearchAndReplace() 650 aPaM = TextPaM( (sal_uLong)-1, (sal_uInt16)-1 ); in StartSearchAndReplace() 655 pTextView->SetSelection( TextSelection( aPaM, aPaM )); in StartSearchAndReplace() 711 pTextView->SetSelection( TextSelection( aPaM, aPaM ) ); in StartSearchAndReplace()
|
/trunk/main/filter/source/xsltdialog/ |
H A D | xmlfileview.cxx | 491 TextPaM aPaM( pTextView->CursorStartOfDoc() ); in ShowWindow() local 492 TextSelection aSelection( aPaM, aPaM ); in ShowWindow() 501 TextPaM aPaM( pTextView->CursorStartOfDoc() ); in showLine() local 503 aPaM = pTextView->CursorDown( aPaM ); in showLine() 505 TextSelection aSelection( pTextView->CursorEndOfLine( aPaM ), aPaM ); in showLine()
|
/trunk/main/sw/source/core/access/ |
H A D | acctable.cxx | 1650 SwPaM aPaM( *pStartNode ); in selectAccessibleChild() local 1651 aPaM.Move( fnMoveForward, fnGoNode ); in selectAccessibleChild() 1652 Select( aPaM ); in selectAccessibleChild() 1669 SwPaM aPaM( *pStartNode ); in selectAccessibleChild() local 1670 aPaM.Move( fnMoveForward, fnGoNode ); in selectAccessibleChild() 1671 aPaM.SetMark(); in selectAccessibleChild() 1674 *(aPaM.GetMark()) = *pPaM->GetMark(); in selectAccessibleChild() 1675 Select( aPaM ); in selectAccessibleChild() 1823 SwPaM aPaM( bDeselectPoint ? *pPaM->GetMark() : *pPaM->GetPoint() ); in deselectAccessibleChild() local 1828 Select( aPaM ); in deselectAccessibleChild()
|
H A D | accpara.cxx | 1186 SwPaM aPaM( aStartPos ); in grabFocus() local 1189 Select( aPaM ); in grabFocus() 1523 SwPaM aPaM( aStartPos ); in setCaretPosition() local 1526 bRet = Select( aPaM ); in setCaretPosition() 2859 SwPaM aPaM( aStartPos ); in setSelection() local 2860 aPaM.SetMark(); in setSelection() 2861 aPaM.GetPoint()->nContent = in setSelection() 2865 bRet = Select( aPaM ); in setSelection() 3882 SwPaM* aPaM = pCrsrShell->CreateCrsr(); in addSelection() local 3883 aPaM->SetMark(); in addSelection() [all …]
|
/trunk/main/sw/source/filter/ww8/ |
H A D | WW8TableInfo.cxx | 744 SwPaM aPaM(*pSttNd, 0); in processTableBoxLines() local 750 SwNode & rNode = aPaM.GetPoint()->nNode.GetNode(); in processTableBoxLines() 754 if (aPaM.GetPoint()->nNode == aEndPaM.GetPoint()->nNode) in processTableBoxLines() 757 aPaM.GetPoint()->nNode++; in processTableBoxLines() 803 SwPaM aPaM(*pSttNd, 0); in processTableBox() local 810 SwNode & rNode = aPaM.GetPoint()->nNode.GetNode(); in processTableBox() 843 aPaM.GetPoint()->nNode++; in processTableBox()
|
/trunk/main/sw/source/core/frmedt/ |
H A D | fecopy.cxx | 835 SwPaM aPaM(SwPosition(aIndexBefore), in Paste() local 837 aPaM.GetDoc()->MakeUniqueNumRules(aPaM); in Paste() 1068 SwPaM aPaM(SwPosition(aIndexBefore), in Paste() local 1071 aPaM.GetDoc()->MakeUniqueNumRules(aPaM); in Paste()
|