| /AOO42X/main/sw/source/core/undo/ |
| H A D | untblk.cxx | 171 SwPaM *const pPam = & AddUndoRedoPaM(rContext); in UndoImpl() local 174 pDoc->DeleteRedline( *pPam, true, USHRT_MAX ); in UndoImpl() 179 pPam->GetMark()->nNode.GetNode().GetTxtNode() && in UndoImpl() 180 pPam->GetPoint()->nNode.GetNode().GetTxtNode(); in UndoImpl() 193 RemoveIdxFromRange( *pPam, sal_False ); in UndoImpl() 194 SetPaM(*pPam); in UndoImpl() 198 nNdDiff = pPam->GetMark()->nNode.GetIndex(); in UndoImpl() 199 DelCntntIndex( *pPam->GetMark(), *pPam->GetPoint() ); in UndoImpl() 200 nNdDiff -= pPam->GetMark()->nNode.GetIndex(); in UndoImpl() 202 if( *pPam->GetPoint() != *pPam->GetMark() ) in UndoImpl() [all …]
|
| H A D | unredln.cxx | 280 SwPaM *const pPam = & rPam; in UndoRedlineImpl() local 281 pPam->DeleteMark(); in UndoRedlineImpl() 282 pPam->GetPoint()->nNode.Assign( aPrevIdx.GetNode(), +1 ); in UndoRedlineImpl() 283 SwCntntNode* pCNd = pPam->GetCntntNode(); in UndoRedlineImpl() 284 pPam->GetPoint()->nContent.Assign(pCNd, 0 ); in UndoRedlineImpl() 285 pPam->SetMark(); in UndoRedlineImpl() 287 pPam->GetPoint()->nNode += nOffsetTemp; in UndoRedlineImpl() 288 pCNd = pPam->GetCntntNode(); in UndoRedlineImpl() 289 pPam->GetPoint()->nContent.Assign( pCNd, pCNd->Len() ); in UndoRedlineImpl() 291 SetValues( *pPam ); in UndoRedlineImpl() [all …]
|
| H A D | unins.cxx | 220 SwPaM *const pPam(& rContext.GetCursorSupplier().CreateNewShellCursor()); in UndoImpl() local 224 pPam->GetPoint()->nNode = nNode; in UndoImpl() 228 pPam->GetPoint()->nContent.Assign( pPam->GetCntntNode(), 0 ); in UndoImpl() 229 pPam->SetMark(); in UndoImpl() 230 pPam->Move( fnMoveBackward ); in UndoImpl() 231 pPam->Exchange(); in UndoImpl() 232 pTmpDoc->DeleteRedline( *pPam, true, USHRT_MAX ); in UndoImpl() 234 pPam->DeleteMark(); in UndoImpl() 235 pTmpDoc->DelFullPara( *pPam ); in UndoImpl() 236 pPam->GetPoint()->nContent.Assign( pPam->GetCntntNode(), 0 ); in UndoImpl() [all …]
|
| H A D | untbl.cxx | 480 SwPaM *const pPam(& rContext.GetCursorSupplier().CreateNewShellCursor()); in UndoImpl() local 485 pPam->GetPoint()->nNode = aFrmIdx; in UndoImpl() 486 pPam->SetMark(); in UndoImpl() 487 pPam->GetPoint()->nNode = aEndIdx; in UndoImpl() 488 rDoc.DelNumRules( *pPam ); in UndoImpl() 489 pPam->DeleteMark(); in UndoImpl() 531 pPam->DeleteMark(); in UndoImpl() 532 pPam->GetPoint()->nNode = *pTblNd->EndOfSectionNode(); in UndoImpl() 533 pPam->SetMark(); in UndoImpl() 534 pPam->GetPoint()->nNode = *pPam->GetNode()->StartOfSectionNode(); in UndoImpl() [all …]
|
| /AOO42X/main/sw/source/filter/basflt/ |
| H A D | shellio.cxx | 108 SwPaM *pPam; in Read() local 110 pPam = pCrsr; in Read() 116 pPam = new SwPaM( nNode ); in Read() 128 SwPaM *pEnd = pPam; in Read() 163 pUndo = new SwUndoInsDoc( *pPam ); in Read() 171 const SwNodeIndex& rTmp = pPam->GetPoint()->nNode; in Read() 179 xub_StrLen nSttCntnt = pPam->GetPoint()->nContent.GetIndex(); in Read() 183 SwCntntNode* pCNd = pPam->GetCntntNode(); in Read() 185 SwNodeIndex aEndPos( pPam->GetPoint()->nNode, 1 ); in Read() 189 nError = po->Read( *pDoc, GetBaseURL(), *pPam, aFileName ); in Read() [all …]
|
| /AOO42X/main/sw/source/filter/rtf/ |
| H A D | rtftbl.cxx | 179 bChkExistTbl = 0 != pPam->GetPoint()->nNode.GetNode().FindTableNode(); in ReadTable() 554 pTableNode = pPam->GetNode()->FindTableNode(); in ReadTable() 611 pTableNode = pPam->GetNode()->FindTableNode(); in ReadTable() 648 pPam->SetMark(); pPam->DeleteMark(); in ReadTable() 660 pPam->GetPoint()->nNode.GetIndex()-1 ])->IsEndNode() ) in ReadTable() 718 *pPam->GetPoint(), 1, 1, eAdjust, 0, 0, sal_False, sal_False ); in ReadTable() 724 maSegments.PrependedInlineNode(*pPam->GetPoint(), in ReadTable() 803 maInsertedTables.InsertTable(*pTableNode, *pPam); in ReadTable() 805 SwNodeIndex aOldIdx(pPam->GetPoint()->nNode); in ReadTable() 807 SwPaM aRg(*pPam); in ReadTable() [all …]
|
| H A D | swparrtf.cxx | 217 pPam = new SwPaM( *rCrsr.GetPoint() ); in SwRTFParser() 218 SetInsPos( SwxPosition( pPam ) ); in SwRTFParser() 299 const SwPosition* pPos = pPam->GetPoint(); in Continue() 309 pPam->Move( fnMoveBackward ); in Continue() 313 *aInsertionRangePam.GetPoint() = *pPam->GetPoint(); in Continue() 317 pDoc->SetTxtFmtColl( *pPam, pDoc->GetTxtCollFromPool in Continue() 352 pRelNumRule->SetOultineRelSpaces( *pSttNdIdx, pPam->GetPoint()->nNode ); in Continue() 361 if( pPam->GetPoint()->nNode == aNxtIdx ) in Continue() 363 pPam->GetPoint()->nNode = *pSttNdIdx; in Continue() 364 pPam->GetPoint()->nContent.Assign( pTxtNode, nStt ); in Continue() [all …]
|
| H A D | rtffld.cxx | 452 pDoc->InsertPoolItem( *pPam, SwFmtFld( aFld ), 0 ); in MakeFieldInst() 473 pDoc->InsertPoolItem( *pPam, SwFmtFld( aPF ), 0 ); in MakeFieldInst() 484 pDoc->InsertPoolItem( *pPam, SwFmtFld( SwDateTimeField( in MakeFieldInst() 528 pDoc->InsertPoolItem( *pPam, SwFmtFld( *pFld ), 0); in MakeFieldInst() 557 pDoc->InsertPoolItem( *pPam, SwFmtFld( SwDBNameField( in MakeFieldInst() 573 pDoc->InsertPoolItem(*pPam, SwFmtFld( aDBFld ), 0); in MakeFieldInst() 602 pDoc->InsertString( *pPam, nChar ); in MakeFieldInst() 767 pDoc->InsertString( *pPam, aData.sText ); in MakeFieldInst() 768 pPam->SetMark(); in MakeFieldInst() 769 pPam->GetMark()->nContent -= aData.sText.Len(); in MakeFieldInst() [all …]
|
| H A D | rtffly.cxx | 550 if( pPam->GetPoint()->nContent.GetIndex() ) in ReadFly() 838 SwNodeIndex aIdx( pPam->GetPoint()->nNode ); in ReadFly() 1005 !( pFlySave = aFlyArr[ nFlyArrCnt-1 ])->IsEqualFly( *pPam, aSet )) in ReadFly() 1007 pFlySave = new SwFlySave( *pPam, aSet ); in ReadFly() 1032 const SwTableNode* pTblNd = pPam->GetNode()->FindTableNode(); in ReadFly() 1091 if( pTblNd && !pPam->GetPoint()->nContent.GetIndex() && in ReadFly() 1093 pPam->GetPoint()->nNode.GetIndex() ) in ReadFly() 1097 pPam->Move( fnMoveBackward ); in ReadFly() 1104 pPam->GetPoint()->nNode == pFlySave->nSttNd && in ReadFly() 1105 !pPam->GetPoint()->nContent.GetIndex() ) in ReadFly() [all …]
|
| /AOO42X/main/sw/source/filter/html/ |
| H A D | swhtml.cxx | 335 pPam = new SwPaM( *rCrsr.GetPoint() ); in SwHTMLParser() 469 delete pPam; in ~SwHTMLParser() 530 const SwPosition* pPos = pPam->GetPoint(); in CallParser() 539 pPam->Move( fnMoveBackward ); in CallParser() 543 *aInsertionRangePam.GetPoint() = *pPam->GetPoint(); in CallParser() 547 pDoc->SetTxtFmtColl( *pPam, in CallParser() 711 if( pPam->GetPoint()->nNode == aNxtIdx ) in Continue() 713 pPam->GetPoint()->nNode = *pSttNdIdx; in Continue() 714 pPam->GetPoint()->nContent.Assign( pTxtNode, nStt ); in Continue() 719 ASSERT( pSttNdIdx->GetIndex()+1 != pPam->GetBound( sal_True ).nNode.GetIndex(), in Continue() [all …]
|
| H A D | htmlgrin.cxx | 260 xub_StrLen nCntnt = pPam->GetPoint()->nContent.GetIndex(); in SetAnchorAndAdjustment() 282 pPam->Move( fnMoveBackward ); in SetAnchorAndAdjustment() 284 aAnchor.SetAnchor( pPam->GetPoint() ); in SetAnchorAndAdjustment() 287 pPam->Move( fnMoveForward ); in SetAnchorAndAdjustment() 301 aMoveFlyCnts.push_back( pPam->GetPoint()->nContent.GetIndex() ); in RegisterFlyFrm() 444 if( !pPam->GetPoint()->nContent.GetIndex() && in InsertImage() 449 SwTxtNode* pTxtNode = pPam->GetNode()->GetTxtNode(); in InsertImage() 720 SwFrmFmt *pFlyFmt = pDoc->Insert( *pPam, sGrfNm, aEmptyStr, &aEmptyGrf, in InsertImage() 775 pPam->GetPoint()->nNode && in InsertImage() 777 pPam->GetPoint()->nContent.GetIndex() - 1 ) in InsertImage() [all …]
|
| H A D | htmlsect.cxx | 123 if( pPam->GetPoint()->nContent.GetIndex() ) in NewDivision() 259 SwNodeIndex aPrvNdIdx( pPam->GetPoint()->nNode, -1 ); in NewDivision() 339 pDoc->InsertSwSection( *pPam, aSection, 0, &aFrmItemSet, false ); in NewDivision() 349 (bAppended) ? 0 : pPam->GetPoint()->nNode.GetNode().GetTxtNode(); in NewDivision() 351 pPam->Move( fnMoveBackward ); in NewDivision() 356 MovePageDescAttrs( pOldTxtNd, pPam->GetPoint()->nNode.GetIndex(), in NewDivision() 512 SwEndNode *pEndNd = pDoc->GetNodes()[pPam->GetPoint()->nNode.GetIndex()+1] in EndSection() 519 pPam->Move( fnMoveForward ); in EndSection() 667 if( pPam->GetPoint()->nContent.GetIndex() ) in NewMultiCol() 686 SwNodeIndex aPrvNdIdx( pPam->GetPoint()->nNode, -1 ); in NewMultiCol() [all …]
|
| H A D | htmlctxt.cxx | 153 const SwNodeIndex* pOldEndPara = &pPam->GetPoint()->nNode; in SplitAttrTab() 154 xub_StrLen nOldEndCnt = pPam->GetPoint()->nContent.GetIndex(); in SplitAttrTab() 181 bMoveBack = pPam->Move( fnMoveBackward ); in SplitAttrTab() 182 nOldEndCnt = pPam->GetPoint()->nContent.GetIndex(); in SplitAttrTab() 187 pPam->Move( fnMoveForward ); in SplitAttrTab() 188 nOldEndCnt = pPam->GetPoint()->nContent.GetIndex(); in SplitAttrTab() 238 pPam->Move( fnMoveForward ); in SplitAttrTab() 277 pSave->SetPos( *pPam->GetPoint() ); in SaveDocContext() 278 *pPam->GetPoint() = *pNewPos; in SaveDocContext() 323 *pPam->GetPoint() = *pSave->GetPos(); in RestoreDocContext() [all …]
|
| H A D | htmltab.cxx | 2880 SwNode *const pNd = & pPam->GetPoint()->nNode.GetNode(); in InsertTableSection() 2923 SwNode *const pNd = & pPam->GetPoint()->nNode.GetNode(); in InsertTableSection() 2947 pPam->GetPoint()->nNode = pStNd->GetIndex() + 1; in InsertTableSection() 2948 SwTxtNode *pTxtNd = pPam->GetPoint()->nNode.GetNode().GetTxtNode(); in InsertTableSection() 2949 pPam->GetPoint()->nContent.Assign( pTxtNd, 0 ); in InsertTableSection() 2959 SwNodeIndex& rIdx = pPam->GetPoint()->nNode; in InsertTempTableCaptionSection() 2965 pPam->GetPoint()->nContent.Assign( rIdx.GetNode().GetTxtNode(), 0 ); in InsertTempTableCaptionSection() 2975 xub_StrLen nLen = pPam->GetPoint()->nContent.GetIndex(); in StripTrailingLF() 2978 SwTxtNode* pTxtNd = pPam->GetPoint()->nNode.GetNode().GetTxtNode(); in StripTrailingLF() 3494 const SwNodeIndex& rSttPara = pPam->GetPoint()->nNode; in InsertTableContents() [all …]
|
| /AOO42X/main/sw/source/core/crsr/ |
| H A D | findtxt.cxx | 58 String *ReplaceBackReferences( const SearchOptions& rSearchOpt, SwPaM* pPam ); 227 SwPaM* pPam = MakeRegion( fnMove, pRegion ); in Find() local 229 SwNodeIndex& rNdIdx = pPam->GetPoint()->nNode; in Find() 230 SwIndex& rCntntIdx = pPam->GetPoint()->nContent; in Find() 235 ? ( rCntntIdx.GetIndex() == pPam->GetCntntNode()->Len() && in Find() 237 : !rCntntIdx.GetIndex() && pPam->GetCntntNode()->Len() ) in Find() 241 delete pPam; in Find() 274 while( 0 != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) )) in Find() 279 if( rNdIdx == pPam->GetMark()->nNode ) in Find() 280 nEnde = pPam->GetMark()->nContent.GetIndex(); in Find() [all …]
|
| H A D | findfmt.cxx | 37 SwPaM* pPam = MakeRegion( fnMove, pRegion ); in Find() local 41 ? pPam->GetPoint()->nContent.GetIndex() == pPam->GetCntntNode()->Len() in Find() 42 : !pPam->GetPoint()->nContent.GetIndex() ) in Find() 44 if( !(*fnMove->fnNds)( &pPam->GetPoint()->nNode, sal_False )) in Find() 46 delete pPam; in Find() 49 SwCntntNode *pNd = pPam->GetPoint()->nNode.GetNode().GetCntntNode(); in Find() 51 pPam->GetPoint()->nContent.Assign( pNd, nTmpPos ); in Find() 57 0 != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ))) in Find() 67 *GetPoint() = *pPam->GetPoint(); in Find() 76 delete pPam; in Find()
|
| H A D | findattr.cxx | 910 SwPaM* pPam = MakeRegion( fnMove, pRegion ); in Find() local 921 ? pPam->GetPoint()->nContent.GetIndex() == pPam->GetCntntNode()->Len() in Find() 922 : !pPam->GetPoint()->nContent.GetIndex() ) in Find() 924 if( !(*fnMove->fnNds)( &pPam->GetPoint()->nNode, sal_False )) in Find() 926 delete pPam; in Find() 929 SwCntntNode *pNd = pPam->GetCntntNode(); in Find() 931 pPam->GetPoint()->nContent.Assign( pNd, nTmpPos ); in Find() 934 while( 0 != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) ) ) in Find() 942 lcl_Search( *(SwTxtNode*)pNode, *pPam, rAttr, fnMove, bValue )) in Find() 946 *GetPoint() = *pPam->GetPoint(); in Find() [all …]
|
| H A D | crsrsh.cxx | 1925 std::list<SwPaM*>::iterator pPam = aSelList.getEnd(); in RefreshBlockCursor() local 1926 ASSERT( pPam != pStart, "FillSelection should deliver at least one PaM" ) in RefreshBlockCursor() 1928 --pPam; in RefreshBlockCursor() 1931 if( pPam == pStart ) in RefreshBlockCursor() 1933 *pCurCrsr->GetPoint() = *(*pPam)->GetPoint(); in RefreshBlockCursor() 1934 if( (*pPam)->HasMark() ) in RefreshBlockCursor() 1935 *pCurCrsr->GetMark() = *(*pPam)->GetMark(); in RefreshBlockCursor() 1938 delete *pPam; in RefreshBlockCursor() 1948 --pPam; in RefreshBlockCursor() 1949 *pCurCrsr->GetPoint() = *(*pPam)->GetPoint(); // n-1 (if n == number of selections) in RefreshBlockCursor() [all …]
|
| /AOO42X/main/sw/source/core/text/ |
| H A D | frmcrsr.cxx | 719 sal_Bool SwTxtFrm::LeftMargin(SwPaM *pPam) const in LeftMargin() 721 if( ((const SwNode*)pPam->GetNode()) != GetNode() ) in LeftMargin() 722 pPam->GetPoint()->nNode = *((SwTxtFrm*)this)->GetTxtNode(); in LeftMargin() 724 SwTxtFrm *pFrm = GetAdjFrmAtPos( (SwTxtFrm*)this, *pPam->GetPoint(), in LeftMargin() 735 aLine.CharCrsrToLine(pPam->GetPoint()->nContent.GetIndex()); in LeftMargin() 743 pPam->GetPoint()->nContent = SwIndex( pFrm->GetTxtNode(), nIndx ); in LeftMargin() 760 sal_Bool SwTxtFrm::RightMargin(SwPaM *pPam, sal_Bool bAPI) const in RightMargin() argument 762 if( ((const SwNode*)pPam->GetNode()) != GetNode() ) in RightMargin() 763 pPam->GetPoint()->nNode = *((SwTxtFrm*)this)->GetTxtNode(); in RightMargin() 765 SwTxtFrm *pFrm = GetAdjFrmAtPos( (SwTxtFrm*)this, *pPam->GetPoint(), in RightMargin() [all …]
|
| H A D | frminf.cxx | 193 SwPaM *AddPam( SwPaM *pPam, const SwTxtFrm* pTxtFrm, in AddPam() argument 199 if( pPam->HasMark() ) in AddPam() 203 if( nPos == pPam->GetPoint()->nContent.GetIndex() ) in AddPam() 205 pPam->GetPoint()->nContent += nLen; in AddPam() 206 return pPam; in AddPam() 208 pPam = new SwPaM( *pPam ); in AddPam() 211 SwIndex &rContent = pPam->GetPoint()->nContent; in AddPam() 213 pPam->SetMark(); in AddPam() 216 return pPam; in AddPam() 224 SwPaM *pPam = &rPam; in GetSpaces() local [all …]
|
| /AOO42X/main/sw/source/core/edit/ |
| H A D | acorrect.cxx | 160 SwPaM* pPam = &rCrsr; in ReplaceRange() local 161 if( pPam->GetPoint()->nContent.GetIndex() != nPos ) in ReplaceRange() 163 pPam = new SwPaM( *rCrsr.GetPoint() ); in ReplaceRange() 164 pPam->GetPoint()->nContent = nPos; in ReplaceRange() 167 SwTxtNode * const pNd = pPam->GetNode()->GetTxtNode(); in ReplaceRange() 199 pDoc->InsertString( *pPam, rTxt ); in ReplaceRange() 203 _PaMIntoCrsrShellRing aTmp( rEditSh, rCrsr, *pPam ); in ReplaceRange() 205 pPam->SetMark(); in ReplaceRange() 206 pPam->GetPoint()->nContent = Min( pNd->GetTxt().Len(), in ReplaceRange() 208 pDoc->ReplaceRange( *pPam, rTxt, false ); in ReplaceRange() [all …]
|
| H A D | edfmt.cxx | 82 SwPaM* pPam = GetCrsr(); in FillByEx() local 83 const SwCntntNode* pCNd = pPam->GetCntntNode(); in FillByEx() 87 if( pPam->HasMark() ) in FillByEx() 89 const SwPosition* pPtPos = pPam->GetPoint(); in FillByEx() 90 const SwPosition* pMkPos = pPam->GetMark(); in FillByEx() 115 nStt = nEnd = pPam->GetPoint()->nContent.GetIndex(); in FillByEx()
|
| /AOO42X/main/sw/source/core/doc/ |
| H A D | swserv.cxx | 72 SwPaM* pPam = 0; in GetData() local 79 pPam = new SwPaM( CNTNT_TYPE.pBkmk->GetMarkPos(), in GetData() 85 pPam = new SwPaM( *CNTNT_TYPE.pTblNd, in GetData() 90 pPam = new SwPaM( SwPosition( *CNTNT_TYPE.pSectNd ) ); in GetData() 91 pPam->Move( fnMoveForward ); in GetData() 92 pPam->SetMark(); in GetData() 93 pPam->GetPoint()->nNode = *CNTNT_TYPE.pSectNd->EndOfSectionNode(); in GetData() 94 pPam->Move( fnMoveBackward ); in GetData() 99 if( pPam ) in GetData() 103 SwWriter aWrt( aMemStm, *pPam, sal_False ); in GetData() [all …]
|
| /AOO42X/main/sw/source/filter/ascii/ |
| H A D | parasc.cxx | 58 SwPaM* pPam; member in SwASCIIParser 108 pPam = new SwPaM( *rCrsr.GetPoint() ); in SwASCIIParser() 141 delete pPam; in ~SwASCIIParser() 163 const SwNodeIndex& rTmp = pPam->GetPoint()->nNode; in CallParser() 165 nSttCntnt = pPam->GetPoint()->nContent.GetIndex(); in CallParser() 176 pDoc->SetTxtFmtColl(*pPam, pColl); in CallParser() 240 *pInsPam->GetMark() = *pPam->GetPoint(); in CallParser() 390 pDoc->SplitNode( *pPam->GetPoint(), false ); in ReadChars() 452 pDoc->SplitNode( *pPam->GetPoint(), false ); in ReadChars() 454 *pPam, SvxFmtBreakItem( SVX_BREAK_PAGE_BEFORE, RES_BREAK ), 0); in ReadChars() [all …]
|
| /AOO42X/main/sw/source/core/frmedt/ |
| H A D | fetab.cxx | 446 SwPaM* pPam = GetCrsr(); in DeleteRow() local 447 pPam->GetPoint()->nNode = aIdx; in DeleteRow() 448 pPam->GetPoint()->nContent.Assign( pCNd, 0 ); in DeleteRow() 449 pPam->SetMark(); // beide wollen etwas davon haben in DeleteRow() 450 pPam->DeleteMark(); in DeleteRow() 998 SwPaM* pPam = GetCrsr(); in HasBoxSelection() local 1003 if( pPam->GetPoint() == pPam->End()) in HasBoxSelection() 1006 pPam->Exchange(); in HasBoxSelection() 1009 if( pPam->GetPoint()->nNode.GetIndex() -1 == in HasBoxSelection() 1010 ( pNd = pPam->GetNode())->StartOfSectionIndex() && in HasBoxSelection() [all …]
|