/aoo41x/main/sw/source/core/undo/ |
H A D | unspnd.cxx | 83 rPam.DeleteMark(); in UndoImpl() 127 rPam.SetMark(); in UndoImpl() 128 rPam.GetMark()->nNode++; in UndoImpl() 129 rPam.GetMark()->nContent.Assign( rPam.GetMark()-> in UndoImpl() 132 rPam.DeleteMark(); in UndoImpl() 141 rPam.SetMark(); in UndoImpl() 151 rPam.DeleteMark(); in UndoImpl() 153 rPam.GetPoint()->nContent.Assign( rPam.GetCntntNode(), nCntnt ); in UndoImpl() 176 rPam.SetMark(); in RedoImpl() 188 rPam.Exchange(); in RedoImpl() [all …]
|
H A D | undel.cxx | 110 SwPaM& rPam, in SwUndoDelete() argument 160 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint(), in SwUndoDelete() 167 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint() ); in SwUndoDelete() 221 rPam.Exchange(); in SwUndoDelete() 899 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint(), in RedoImpl() 905 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint() ); in RedoImpl() 915 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint(), in RedoImpl() 921 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint() ); in RedoImpl() 975 if( rPam.GetPoint()->nNode == rPam.GetMark()->nNode ) in RedoImpl() 976 *rPam.GetMark() = *rPam.GetPoint(); in RedoImpl() [all …]
|
H A D | unredln.cxx | 103 UndoRedlineImpl(*pDoc, rPam); in UndoImpl() 117 SetPaM(rPam, true); in UndoImpl() 142 SetPaM(rPam, true); in RedoImpl() 188 if (rPam.GetPoint() != rPam.GetMark()) in RedoRedlineImpl() 278 rDoc.DelFullPara(rPam); in UndoRedlineImpl() 280 SwPaM *const pPam = & rPam; in UndoRedlineImpl() 293 SetPaM(rPam); in UndoRedlineImpl() 298 SwPaM* pPam = &rPam; in RedoRedlineImpl() 321 SetValues( rPam ); in RedoRedlineImpl() 323 SetPaM( rPam ); in RedoRedlineImpl() [all …]
|
H A D | undobj.cxx | 89 SetValues( rPam ); in SwUndRng() 95 if( rPam.HasMark() ) in SetValues() 98 ? rPam.GetMark() in SetValues() 113 rPam.DeleteMark(); in SetPaM() 126 rPam.SetMark(); in SetPaM() 167 rPam.Exchange(); in RemoveIdxFromRange() 174 rPam.Exchange(); in RemoveIdxFromRange() 177 rPam.GetPoint()->nNode = rPam.GetDoc()->GetNodes().GetEndOfPostIts(); in RemoveIdxFromRange() 182 rPam.GetDoc()->CorrAbs( aStt, aEnd, *rPam.GetPoint(), sal_True ); in RemoveIdxFromRange() 185 rPam.GetDoc()->CorrAbs( rPam, *pEnd, sal_True ); in RemoveIdxFromRange() [all …]
|
H A D | unins.cxx | 606 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint() ); in Impl() 649 rPam.DeleteMark(); in UndoImpl() 674 rPam.SetMark(); in UndoImpl() 676 rPam.GetPoint()->nContent.Assign( rPam.GetCntntNode(), m_nEndCnt ); in UndoImpl() 679 rPam.DeleteMark(); in UndoImpl() 734 rPam.DeleteMark(); in RedoImpl() 740 rPam.SetMark(); in RedoImpl() 753 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint() ); in RedoImpl() 762 DelCntntIndex( *rPam.GetMark(), *rPam.GetPoint() ); in RedoImpl() 769 rPam.DeleteMark(); in RedoImpl() [all …]
|
H A D | unnum.cxx | 54 : SwUndo( UNDO_INSNUM ), SwUndRng( rPam ), in SwUndoInsNum() 143 SwPaM & rPam( AddUndoRedoPaM(rContext) ); in RedoImpl() local 200 SwUndoDelNum::SwUndoDelNum( const SwPaM& rPam ) in SwUndoDelNum() argument 201 : SwUndo( UNDO_DELNUM ), SwUndRng( rPam ), in SwUndoDelNum() 234 SwPaM & rPam( AddUndoRedoPaM(rContext) ); in RedoImpl() local 235 rContext.GetDoc().DelNumRules(rPam); in RedoImpl() 260 SwUndRng( rPam ), in SwUndoMoveNum() 284 SwPaM & rPam( AddUndoRedoPaM(rContext) ); in UndoImpl() local 297 SwPaM & rPam( AddUndoRedoPaM(rContext) ); in RedoImpl() local 328 SwPaM & rPam( AddUndoRedoPaM(rContext) ); in UndoImpl() local [all …]
|
H A D | untblk.cxx | 44 : SwUndo( nUndoId ), SwUndRng( rPam ), in SwUndoInserts() 49 SwDoc* pDoc = (SwDoc*)rPam.GetDoc(); in SwUndoInserts() 92 const SwPosition* pTmpPos = rPam.End(); in SetInsertRange() 95 if( rPam.HasMark() ) in SetInsertRange() 97 if( pTmpPos == rPam.GetPoint() ) in SetInsertRange() 98 pTmpPos = rPam.GetMark(); in SetInsertRange() 100 pTmpPos = rPam.GetPoint(); in SetInsertRange() 115 SwDoc* pDoc = (SwDoc*)rPam.GetDoc(); in SetInsertRange() 342 SwUndoInsDoc::SwUndoInsDoc( const SwPaM& rPam ) in SwUndoInsDoc() argument 343 : SwUndoInserts( UNDO_INSDOKUMENT, rPam ) in SwUndoInsDoc() [all …]
|
H A D | unattr.cxx | 708 SwPaM & rPam = AddUndoRedoPaM(rContext); in RedoImpl() local 714 rDoc.RstTxtAttrs(rPam); in RedoImpl() 830 SwDoc* pDoc = rPam.GetDoc(); in SaveRedlineData() 914 SwPaM & rPam = AddUndoRedoPaM(rContext); in RedoImpl() local 926 rPam.SetMark(); in RedoImpl() 932 rPam.DeleteMark(); in RedoImpl() 1078 , SwUndRng( rPam ) in SwUndoMoveLeftMargin() 1102 SwPaM & rPam = AddUndoRedoPaM(rContext); in RedoImpl() local 1104 rDoc.MoveLeftMargin( rPam, in RedoImpl() 1251 SwPaM & rPam = rContext.GetRepeatPaM(); in RepeatImpl() local [all …]
|
H A D | unsort.cxx | 138 SwPaM & rPam( AddUndoRedoPaM(rContext) ); in UndoImpl() local 139 RemoveIdxFromRange(rPam, true); in UndoImpl() 166 SetPaM(rPam, true); in UndoImpl() 219 SwPaM & rPam( AddUndoRedoPaM(rContext) ); in RedoImpl() local 220 SetPaM(rPam); in RedoImpl() 221 RemoveIdxFromRange(rPam, true); in RedoImpl() 242 SetPaM(rPam, true); in RedoImpl() 243 SwTxtNode const*const pTNd = rPam.GetNode()->GetTxtNode(); in RedoImpl() 246 rPam.GetPoint()->nContent = pTNd->GetTxt().Len(); in RedoImpl()
|
H A D | unsect.cxx | 76 SwPaM const& rPam, SwSectionData const& rNewData, in SwUndoInsSection() argument 78 : SwUndo( UNDO_INSSECTION ), SwUndRng( rPam ) in SwUndoInsSection() 89 SwDoc& rDoc = *(SwDoc*)rPam.GetDoc(); in SwUndoInsSection() 98 if( !rPam.HasMark() ) in SwUndoInsSection() 100 const SwCntntNode* pCNd = rPam.GetPoint()->nNode.GetNode().GetCntntNode(); in SwUndoInsSection() 102 !rPam.GetPoint()->nContent.GetIndex() || in SwUndoInsSection() 103 rPam.GetPoint()->nContent.GetIndex() == pCNd->Len() )) in SwUndoInsSection() 171 SwPaM & rPam( AddUndoRedoPaM(rContext) ); in RedoImpl() local 176 pUpdateTOX = rDoc.InsertTableOf( *rPam.GetPoint(), in RedoImpl() 181 rDoc.InsertSwSection(rPam, *m_pSectionData, 0, m_pAttrSet.get(), true); in RedoImpl()
|
/aoo41x/main/sw/source/core/unocore/ |
H A D | unocrsrhelper.cxx | 141 SwPaM& rPam, in getCrsrPropertyValue() argument 235 GetCurPageStyle(rPam, sVal); in getCrsrPropertyValue() 310 if( !rPam.GetDoc()->GetCurrNumRule( *rPam.GetPoint() ) ) in getCrsrPropertyValue() 431 SwSection* pSect = rPam.GetDoc()->GetCurrSection(*rPam.GetPoint()); in getCrsrPropertyValue() 513 if((pTxtNode = (SwTxtNode*)rPam.GetNode( sal_True )) == rPam.GetNode(sal_False) && in getCrsrPropertyValue() 689 if( rPam.GetNext() != &rPam ) // Mehrfachselektion ? in setNumberingProperty() 739 rPam.GetDoc()->DelNumRules(rPam); in setNumberingProperty() 749 const SwNumRule* pNumRule = rPam.GetDoc()->GetCurrNumRule( *rPam.GetPoint() ); in getNumberingProperty() 774 SwDoc* pDoc = rPam.GetDoc(); in resetCrsrPropertyValue() 786 if( rPam.GetNext() != &rPam ) // Mehrfachselektion ? in resetCrsrPropertyValue() [all …]
|
H A D | unorefmk.cxx | 233 void SwXReferenceMark::Impl::InsertRefMark(SwPaM& rPam, in InsertRefMark() argument 239 SwDoc *pDoc2 = rPam.GetDoc(); in InsertRefMark() 243 sal_Bool bMark = *rPam.GetPoint() != *rPam.GetMark(); in InsertRefMark() 261 if( bMark && *rPam.GetPoint() > *rPam.GetMark()) in InsertRefMark() 263 rPam.Exchange(); in InsertRefMark() 273 rPam.GetNode()->GetTxtNode()->GetTxtAttrsAt( in InsertRefMark() 610 const SwPaM & rPam); 662 const SwPaM & rPam) in PrepareForAttach() argument 667 (rPam.HasMark()) ? rPam.GetMark() : 0)); in PrepareForAttach() 897 SwPosition const * const pStartPos( rPam.Start() ); in CheckForOwnMemberMeta() [all …]
|
/aoo41x/main/sw/source/core/doc/ |
H A D | docedt.cxx | 260 pPos = rPam.GetPoint() == pPos ? rPam.GetMark() : rPam.GetPoint(); in _SaveFlyInRange() 1306 if( rPam.GetPoint()->nNode != rPam.GetMark()->nNode ) in lcl_StrLenOverFlow() 1308 const SwPosition* pStt = rPam.Start(), *pEnd = rPam.End(); in lcl_StrLenOverFlow() 1325 if( rPam.GetPoint()->nNode != rPam.GetMark()->nNode ) in lcl_GetJoinFlags() 1577 if ( *rPam.GetPoint() != *rPam.GetMark() ) in DeleteAndJoinWithRedlineImpl() 1641 SwPaM aDelPam( *rPam.GetMark(), *rPam.GetPoint() ); in DeleteRangeImpl() 2236 SwPaM aPam( *rPam.GetMark(), *rPam.GetPoint() ); in ReplaceRange() 2306 if( !rPam.HasMark() || *rPam.GetPoint() == *rPam.GetMark() ) in ReplaceRangeImpl() 2316 SwPaM aDelPam( *rPam.GetMark(), *rPam.GetPoint() ); in ReplaceRangeImpl() 2444 *rPam.GetMark() = *rPam.GetPoint(); in ReplaceRangeImpl() [all …]
|
H A D | docruby.cxx | 64 sal_Bool bCheckEmpty = &rPam != _pStartCrsr; in FillRubyList() 116 sal_Bool bCheckEmpty = &rPam != _pStartCrsr; in SetRubyList() 197 SwPosition* pPos = rPam.GetPoint(); in _SelectNextRubyChars() 202 sal_Bool bHasMark = rPam.HasMark(); in _SelectNextRubyChars() 206 if( rPam.GetMark()->nNode == pPos->nNode ) in _SelectNextRubyChars() 213 rPam.DeleteMark(); in _SelectNextRubyChars() 264 if( !rPam.HasMark() ) in _SelectNextRubyChars() 266 rPam.SetMark(); in _SelectNextRubyChars() 324 if( rPam.HasMark() ) in _SelectNextRubyChars() 331 rPam.SetMark(); in _SelectNextRubyChars() [all …]
|
H A D | docnum.cxx | 434 const SwPosition& rStt = *rPam.Start(), in MoveOutlinePara() 435 & rEnd = &rStt == rPam.GetPoint() ? *rPam.GetMark() in MoveOutlinePara() 436 : *rPam.GetPoint(); in MoveOutlinePara() 1041 if ( ! rPam.HasMark()) in SetNumRule() 1087 if ( rPam.HasMark() && in SetNumRule() 1118 if ( rPam.HasMark() && in SetCounted() 1588 pUndo = new SwUndoDelNum( rPam ); in DelNumRules() 2010 const SwPosition *pStt = rPam.Start(), *pEnd = rPam.End(); in MoveParagraph() 2157 SwDataChanged aTmp( rPam, 0 ); in MoveParagraph() 2212 SwPaM& rOrigPam = (SwPaM&)rPam; in MoveParagraph() [all …]
|
H A D | docredln.cxx | 2002 * pEnd = pStt == rPam.GetPoint() ? rPam.GetMark() in lcl_AcceptRejectRedl() 2045 * pEnd = pStt == rPam.GetPoint() ? rPam.GetMark() in lcl_AdjustRedlineRange() 2153 SwPaM aPam( *rPam.GetMark(), *rPam.GetPoint() ); in AcceptRedline() 2266 SwPaM aPam( *rPam.GetMark(), *rPam.GetPoint() ); in RejectRedline() 2306 rPam.SetMark(); in SelNextRedline() 2400 if( !pFnd || *rPam.GetMark() == *rPam.GetPoint() ) in SelNextRedline() 2423 rPam.SetMark(); in SelPrevRedline() 2519 if( !pFnd || *rPam.GetMark() == *rPam.GetPoint() ) in SelPrevRedline() 2902 rPam.SetMark(); in Reject() 3068 : SwPaM( *rPam.GetMark(), *rPam.GetPoint() ), in SwRedline() [all …]
|
/aoo41x/main/sw/source/core/crsr/ |
H A D | pam.cxx | 509 SwPaM::SwPaM( SwPaM &rPam ) in SwPaM() argument 510 : Ring( &rPam ) in SwPaM() 511 , m_Bound1( *(rPam.m_pPoint) ) in SwPaM() 512 , m_Bound2( *(rPam.m_pMark) ) in SwPaM() 521 *m_pPoint = *( rPam.m_pPoint ); in operator =() 522 if ( rPam.HasMark() ) in operator =() 525 *m_pMark = *( rPam.m_pMark ); in operator =() 856 if( ((*rPam.GetPoint()).*fnMove->fnCmpOp)( *rPam.GetMark() ) || in GetNode() 857 ( *rPam.GetPoint() == *rPam.GetMark() && rbFirst ) ) in GetNode() 1018 return GoInNode( rPam, fnMove ); in GoInCntnt() [all …]
|
H A D | findattr.cxx | 119 sal_Bool bTstEnde = rPam.GetPoint()->nNode == rPam.GetMark()->nNode; in lcl_SetAttrPam() 121 SwCntntNode* pCNd = rPam.GetCntntNode(); in lcl_SetAttrPam() 123 rPam.SetMark(); // Point == GetMark in lcl_SetAttrPam() 129 rPam.GetPoint()->nContent = nCntntPos; in lcl_SetAttrPam() 131 rPam.GetPoint()->nContent = *pEnde; in lcl_SetAttrPam() 247 nNdEnd = rPam.GetPoint()->nNode == rPam.GetMark()->nNode in SetNewSet() 254 nNdStt = rPam.GetPoint()->nNode == rPam.GetMark()->nNode in SetNewSet() 707 SwPaM& rPam ) in lcl_SearchForward() argument 710 rCmpArr.SetNewSet( rTxtNd, rPam ); in lcl_SearchForward() 781 SwPaM& rPam ) in lcl_SearchBackward() argument [all …]
|
H A D | swcrsr.cxx | 84 _PercentHdl( const SwPaM& rPam ) in _PercentHdl() 88 if( rPam.GetPoint()->nNode == rPam.GetMark()->nNode ) in _PercentHdl() 909 SwPaM& rPam, int bFirst ) in lcl_MakeSelFwrd() argument 915 rPam.DeleteMark(); in lcl_MakeSelFwrd() 929 rPam.SetMark(); in lcl_MakeSelFwrd() 930 rPam.GetPoint()->nNode = rEndNd; in lcl_MakeSelFwrd() 936 return *rPam.GetMark() < *rPam.GetPoint(); in lcl_MakeSelFwrd() 941 SwPaM& rPam, int bFirst ) in lcl_MakeSelBkwrd() argument 947 rPam.DeleteMark(); in lcl_MakeSelBkwrd() 961 rPam.SetMark(); in lcl_MakeSelBkwrd() [all …]
|
/aoo41x/main/sw/source/core/docnode/ |
H A D | ndcopy.cxx | 136 const SwPaM& rPam, in lcl_CopyBookmarks() argument 144 const SwPosition &rStt = *rPam.Start(), &rEnd = *rPam.End(); in lcl_CopyBookmarks() 599 const SwDoc* pSrcDoc = rPam.GetDoc(); in lcl_DeleteRedlines() 606 const SwPosition *pStt = rPam.Start(), *pEnd = rPam.End(); in lcl_DeleteRedlines() 692 const SwPosition *pStt = rPam.Start(), *pEnd = rPam.End(); in CopyRange() 882 SwPosition* pStt = rPam.Start(); in CopyImpl() 883 SwPosition* pEnd = rPam.End(); in CopyImpl() 1008 rPam.Exchange(); in CopyImpl() 1011 rPam.Exchange(); in CopyImpl() 1291 lcl_CopyBookmarks( rPam, aCpyPam ); in CopyImpl() [all …]
|
/aoo41x/main/sw/source/core/edit/ |
H A D | eddel.cxx | 48 void SwEditShell::DeleteSel( SwPaM& rPam, sal_Bool* pUndo ) in DeleteSel() argument 51 if ( !rPam.HasMark() || *rPam.GetPoint() == *rPam.GetMark()) in DeleteSel() 61 if( rPam.GetNode()->FindTableNode() && in DeleteSel() 62 rPam.GetNode()->StartOfSectionNode() != rPam.GetNode(sal_False)->StartOfSectionNode() ) in DeleteSel() 70 SwPaM aDelPam( *rPam.Start() ); in DeleteSel() 71 const SwPosition* pEndSelPos = rPam.End(); in DeleteSel() 108 GetDoc()->DeleteAndJoin( rPam ); in DeleteSel() 109 SaveTblBoxCntnt( rPam.GetPoint() ); in DeleteSel() 113 rPam.DeleteMark(); in DeleteSel()
|
/aoo41x/main/sw/inc/ |
H A D | unocrsrhelper.hxx | 91 , SwPaM& rPam 104 … resetCrsrPropertyValue(const SfxItemPropertySimpleEntry& rEntry, SwPaM& rPam); 111 SwPaM& rPam, 117 SwPaM& rPam); 120 SwPaM& rPam, 132 void SetCrsrAttr(SwPaM & rPam, const SfxItemSet & rSet, 135 void GetCrsrAttr(SwPaM & rPam, SfxItemSet & rSet, 138 void GetTextFromPam(SwPaM & rPam, ::rtl::OUString & rBuffer); 139 SwFmtColl * GetCurTxtFmtColl(SwPaM & rPam, const bool bConditional); 141 void SelectPam(SwPaM & rPam, const bool bExpand); [all …]
|
H A D | IDocumentRedlineAccess.hxx | 166 virtual bool SplitRedline(/*[in]*/const SwPaM& rPam) = 0; 171 /*[in]*/const SwPaM& rPam, 210 virtual bool AcceptRedline(/*[in]*/const SwPaM& rPam, /*[in]*/bool bCallDelete) = 0; 218 virtual bool RejectRedline(/*[in]*/const SwPaM& rPam, /*[in]*/bool bCallDelete) = 0; 222 virtual const SwRedline* SelNextRedline(/*[in]*/SwPaM& rPam) const = 0; 226 virtual const SwRedline* SelPrevRedline(/*[in]*/SwPaM& rPam) const = 0; 239 /*[in]*/const SwPaM& rPam,
|
/aoo41x/main/sw/source/core/inc/ |
H A D | UndoRedline.hxx | 46 virtual void UndoRedlineImpl(SwDoc & rDoc, SwPaM & rPam); 47 virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam); 67 virtual void UndoRedlineImpl(SwDoc & rDoc, SwPaM & rPam); 68 virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam); 86 virtual void UndoRedlineImpl(SwDoc & rDoc, SwPaM & rPam); 87 virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam); 103 virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam); 114 virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam);
|
/aoo41x/main/sw/source/filter/xml/ |
H A D | swxml.cxx | 108 void lcl_EnsureValidPam( SwPaM& rPam ) in lcl_EnsureValidPam() argument 110 if( rPam.GetCntntNode() != NULL ) in lcl_EnsureValidPam() 113 if( rPam.GetCntntNode() != rPam.GetPoint()->nContent.GetIdxReg() ) in lcl_EnsureValidPam() 115 rPam.GetPoint()->nContent.Assign( rPam.GetCntntNode(), 0 ); in lcl_EnsureValidPam() 120 if( ( rPam.GetCntntNode( sal_False ) == NULL ) || in lcl_EnsureValidPam() 121 ( rPam.GetCntntNode( sal_False ) != rPam.GetMark()->nContent.GetIdxReg() ) ) in lcl_EnsureValidPam() 123 rPam.DeleteMark(); in lcl_EnsureValidPam() 129 rPam.DeleteMark(); in lcl_EnsureValidPam() 130 rPam.GetPoint()->nNode = in lcl_EnsureValidPam() 132 ++ rPam.GetPoint()->nNode; in lcl_EnsureValidPam() [all …]
|