LibreOffice Module sw (master)  1
rolbck.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_SW_SOURCE_CORE_INC_ROLBCK_HXX
20 #define INCLUDED_SW_SOURCE_CORE_INC_ROLBCK_HXX
21 
22 #include <o3tl/deleter.hxx>
23 #include <svl/itemset.hxx>
24 #include <tools/solar.h>
25 #include <vcl/keycod.hxx>
26 #include <tox.hxx>
27 
28 #include <IDocumentMarkAccess.hxx>
29 
30 #include <memory>
31 #include <vector>
32 #include <set>
33 
34 namespace sfx2 {
35  class MetadatableUndo;
36 }
37 
38 class SwDoc;
39 class SwFormatColl;
40 class SwTextAttr;
41 class SfxPoolItem;
42 class SwUndoSaveSection;
43 class SwTextFootnote;
44 class SwUndoDelLayFormat;
45 class SwFlyFrameFormat;
46 class SwFormatField;
47 class SwTextField;
48 class SwFieldType;
49 class SwTextTOXMark;
50 class SwTextRefMark;
51 class SwFrameFormat;
52 class SwpHints;
53 class SwFormatChain;
54 class SwNode;
55 class SwCharFormat;
56 enum class SwFieldIds : sal_uInt16;
57 typedef struct _xmlTextWriter* xmlTextWriterPtr;
58 
77 };
78 
80 {
82 
83 public:
84  SwHistoryHint( HISTORY_HINT eWhich ) : m_eWhichId( eWhich ) {}
85  virtual ~SwHistoryHint() {}
86  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) = 0;
87  HISTORY_HINT Which() const { return m_eWhichId; }
88  virtual OUString GetDescription() const;
89  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
90 };
91 
93 {
94  std::unique_ptr<SfxPoolItem> m_pAttr;
96 
97 public:
98  SwHistorySetFormat( const SfxPoolItem* pFormatHt, sal_uLong nNode );
99  virtual ~SwHistorySetFormat() override;
100  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
101  virtual OUString GetDescription() const override;
102 
103  void dumpAsXml(xmlTextWriterPtr pWriter) const override;
104 };
105 
107 {
109  const sal_uInt16 m_nWhich;
110 
111 public:
112  SwHistoryResetFormat( const SfxPoolItem* pFormatHt, sal_uLong nNodeIdx );
113  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
114 
115 };
116 
118 {
119  std::unique_ptr<SfxPoolItem> m_pAttr;
121  const sal_Int32 m_nStart;
122  const sal_Int32 m_nEnd;
125 
126 public:
127  SwHistorySetText( SwTextAttr* pTextHt, sal_uLong nNode );
128  virtual ~SwHistorySetText() override;
129  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
130 
131 };
132 
134 {
137  std::unique_ptr<SwFieldType> m_pFieldType;
138  const std::unique_ptr<SwFormatField> m_pField;
139 
141  sal_Int32 m_nPos;
143 
144 public:
145  SwHistorySetTextField( const SwTextField* pTextField, sal_uLong nNode );
146  virtual ~SwHistorySetTextField() override;
147  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
148 
149  virtual OUString GetDescription() const override;
150 
151 };
152 
154 {
155  const OUString m_RefName;
157  const sal_Int32 m_nStart;
158  const sal_Int32 m_nEnd;
159 
160 public:
161  SwHistorySetRefMark( const SwTextRefMark* pTextHt, sal_uLong nNode );
162  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
163 
164 };
165 
167 {
169  const OUString m_TOXName;
172  const sal_Int32 m_nStart;
173  const sal_Int32 m_nEnd;
174 
175 public:
176  SwHistorySetTOXMark( const SwTextTOXMark* pTextHt, sal_uLong nNode );
177  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
178  bool IsEqual( const SwTOXMark& rCmp ) const;
179 
180 };
181 
183 {
185  const sal_Int32 m_nStart;
186  const sal_Int32 m_nEnd;
187  const sal_uInt16 m_nAttr;
188 
189 public:
190  SwHistoryResetText( sal_uInt16 nWhich, sal_Int32 nStt, sal_Int32 nEnd,
191  sal_uLong nNode );
192  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
193 
194  sal_uInt16 GetWhich() const { return m_nAttr; }
195  sal_uLong GetNode() const { return m_nNodeIndex; }
196  sal_Int32 GetContent() const { return m_nStart; }
197 
198 };
199 
201 {
202  const std::unique_ptr<SwUndoSaveSection, o3tl::default_delete<SwUndoSaveSection>> m_pUndo;
203  const OUString m_FootnoteNumber;
205  const sal_Int32 m_nStart;
206  const bool m_bEndNote;
207 
208 public:
209  SwHistorySetFootnote( SwTextFootnote* pTextFootnote, sal_uLong nNode );
211  virtual ~SwHistorySetFootnote() override;
212  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
213 
214  virtual OUString GetDescription() const override;
215 
216 };
217 
219 {
223 
224 public:
225  SwHistoryChangeFormatColl( SwFormatColl* pColl, sal_uLong nNode, SwNodeType nNodeWhich );
226  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
227 
228 };
229 
231 {
232  std::unique_ptr<SwUndoDelLayFormat> m_pUndo;
233 
234 public:
235  SwHistoryTextFlyCnt( SwFrameFormat* const pFlyFormat );
236  virtual ~SwHistoryTextFlyCnt() override;
237  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
238  SwUndoDelLayFormat* GetUDelLFormat() { return m_pUndo.get(); }
239 
240  void dumpAsXml(xmlTextWriterPtr pWriter) const override;
241 };
242 
244 {
245  public:
246  SwHistoryBookmark(const ::sw::mark::IMark& rBkmk,
247  bool bSavePos, bool bSaveOtherPos);
248  virtual void SetInDoc(SwDoc * pDoc, bool) override;
249 
250  bool IsEqualBookmark(const ::sw::mark::IMark& rBkmk);
251  const OUString& GetName() const { return m_aName;}
252 
253  private:
254  const OUString m_aName;
255  OUString m_aShortName;
256  bool m_bHidden;
261  const sal_Int32 m_nContent;
262  const sal_Int32 m_nOtherContent;
263  const bool m_bSavePos;
264  const bool m_bSaveOtherPos;
265  const bool m_bHadOtherPos;
267  std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo;
268 };
269 
273 {
274  public:
275  SwHistoryNoTextFieldmark(const ::sw::mark::IFieldmark& rFieldMark);
276  virtual void SetInDoc(SwDoc* pDoc, bool) override;
277  void ResetInDoc(SwDoc* pDoc);
278 
279  private:
280  const OUString m_sType;
282  const sal_Int32 m_nContent;
283 };
284 
288 {
289  public:
290  SwHistoryTextFieldmark(const ::sw::mark::IFieldmark& rFieldMark);
291  virtual void SetInDoc(SwDoc* pDoc, bool) override;
292  void ResetInDoc(SwDoc* pDoc);
293 
294  private:
295  const OUString m_sName;
296  const OUString m_sType;
298  const sal_Int32 m_nStartContent;
300  const sal_Int32 m_nEndContent;
302  /*const*/ sal_Int32 m_nSepContent;
303 };
304 
306 {
308  std::vector<sal_uInt16> m_ResetArray;
310 
311 public:
312  SwHistorySetAttrSet( const SfxItemSet& rSet, sal_uLong nNode,
313  const std::set<sal_uInt16> &rSetArr );
314  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
315 
316 };
317 
319 {
322  const sal_Int32 m_nOldContentIndex;
323 
324 public:
326  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
327 };
328 
330 {
334 
335 public:
336  SwHistoryChangeFlyChain( SwFlyFrameFormat& rFormat, const SwFormatChain& rAttr );
337  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
338 };
339 
341 {
343  const OUString m_Format;
344 
345 public:
346  SwHistoryChangeCharFormat( const SfxItemSet& rSet, const OUString & sFormat);
347  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
348 
349 };
350 
352 {
353  friend class SwDoc; // actually only SwDoc::DelUndoObj may access
354  friend class SwRegHistory; // for inserting History attributes
355 
356  std::vector<std::unique_ptr<SwHistoryHint>> m_SwpHstry;
357  sal_uInt16 m_nEndDiff;
358 
359 public:
360  SwHistory();
361  ~SwHistory();
362 
363  // call and delete all objects between nStart and array end
364  bool Rollback( SwDoc* pDoc, sal_uInt16 nStart = 0 );
365  // call all objects between nStart and TmpEnd; store nStart as TmpEnd
366  bool TmpRollback( SwDoc* pDoc, sal_uInt16 nStart, bool ToFirst = true );
367 
368  void Add( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue,
369  sal_uLong nNodeIdx );
370  void Add( SwTextAttr* pTextHt, sal_uLong nNodeIdx, bool bNewAttr );
371  void Add( SwFormatColl*, sal_uLong nNodeIdx, SwNodeType nWhichNd );
372  void Add( const ::sw::mark::IMark&, bool bSavePos, bool bSaveOtherPos );
373  void AddChangeFlyAnchor( SwFrameFormat& rFormat );
374  void AddDeleteFly( SwFrameFormat&, sal_uInt16& rSetPos );
375  void Add( const SwTextFootnote& );
376  void Add( const SfxItemSet & rSet, const SwCharFormat & rCharFormat);
377 
378  sal_uInt16 Count() const { return m_SwpHstry.size(); }
379  sal_uInt16 GetTmpEnd() const { return m_SwpHstry.size() - m_nEndDiff; }
380  sal_uInt16 SetTmpEnd( sal_uInt16 nTmpEnd ); // return previous value
381  SwHistoryHint * operator[]( sal_uInt16 nPos ) { return m_SwpHstry[nPos].get(); }
382  SwHistoryHint const* operator[]( sal_uInt16 nPos ) const
383  { return m_SwpHstry[nPos].get(); }
384 
385  // for SwUndoDelete::Undo/Redo
386  void Move( sal_uInt16 nPos, SwHistory *pIns,
387  sal_uInt16 const nStart = 0)
388  {
389  auto itSourceBegin = pIns->m_SwpHstry.begin() + nStart;
390  auto itSourceEnd = pIns->m_SwpHstry.end();
391  if (itSourceBegin == itSourceEnd)
392  return;
393  m_SwpHstry.insert(m_SwpHstry.begin() + nPos, std::make_move_iterator(itSourceBegin), std::make_move_iterator(itSourceEnd));
394  pIns->m_SwpHstry.erase( itSourceBegin, itSourceEnd );
395  }
396 
397  // helper methods for recording attribute in History
398  // used by Undo classes (Delete/Overwrite/Inserts)
399  void CopyAttr(
400  SwpHints const * pHts,
401  const sal_uLong nNodeIdx,
402  const sal_Int32 nStart,
403  const sal_Int32 nEnd,
404  const bool bCopyFields );
405 
406  void CopyFormatAttr( const SfxItemSet& rSet, sal_uLong nNodeIdx );
407 
408  void dumpAsXml(xmlTextWriterPtr pWriter) const;
409 };
410 
411 class SwRegHistory : public SwClient
412 {
413 private:
414  std::set<sal_uInt16> m_WhichIdSet;
417 
418  void MakeSetWhichIds();
419 
420 protected:
421  virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) override;
422 
423 public:
424  SwRegHistory( SwHistory* pHst );
425  SwRegHistory( const SwNode& rNd, SwHistory* pHst );
426  SwRegHistory( SwModify* pRegIn, const SwNode& rNd, SwHistory* pHst );
427 
429  bool InsertItems( const SfxItemSet& rSet,
430  sal_Int32 const nStart, sal_Int32 const nEnd,
431  SetAttrMode const nFlags,
432  SwTextAttr **ppNewTextAttr );
433 
434  void AddHint( SwTextAttr* pHt, const bool bNew );
435 
436  void RegisterInModify( SwModify* pRegIn, const SwNode& rNd );
437  void ChangeNodeIndex( sal_uLong nNew ) { m_nNodeIndex = nNew; }
438 };
439 
440 #endif // INCLUDED_SW_SOURCE_CORE_INC_ROLBCK_HXX
441 
442 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const std::unique_ptr< SwFormatField > m_pField
Definition: rolbck.hxx:138
Instances of SwFields and those derived from it occur 0 to n times.
Definition: fldbas.hxx:240
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:207
History object containing all information used during undo / redo of text form field insertion...
Definition: rolbck.hxx:287
const OUString m_sType
Definition: rolbck.hxx:280
TOXTypes
Definition: toxe.hxx:39
const TOXTypes m_eTOXTypes
Definition: rolbck.hxx:170
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: rolbck.cxx:149
SwHistoryNoTextFieldmark(const ::sw::mark::IFieldmark &rFieldMark)
Definition: rolbck.cxx:722
const std::unique_ptr< SwUndoSaveSection, o3tl::default_delete< SwUndoSaveSection > > m_pUndo
Definition: rolbck.hxx:202
sal_uInt16 GetWhich() const
Definition: rolbck.hxx:194
std::vector< std::unique_ptr< SwHistoryHint > > m_SwpHstry
Definition: rolbck.hxx:356
const sal_Int32 m_nStart
Definition: rolbck.hxx:185
const sal_uInt16 m_nWhich
Definition: rolbck.hxx:109
const sal_uInt16 m_nAttr
Definition: rolbck.hxx:187
const bool m_bHadOtherPos
Definition: rolbck.hxx:265
SwHistoryChangeCharFormat(const SfxItemSet &rSet, const OUString &sFormat)
Definition: rolbck.cxx:1000
const sal_Int32 m_nEndContent
Definition: rolbck.hxx:300
bool Rollback(SwDoc *pDoc, sal_uInt16 nStart=0)
Definition: rolbck.cxx:1203
const bool m_bSavePos
Definition: rolbck.hxx:263
void RegisterInModify(SwModify *pRegIn, const SwNode &rNd)
Definition: rolbck.cxx:1494
const SfxItemSet m_OldSet
Definition: rolbck.hxx:342
sal_uIntPtr sal_uLong
virtual ~SwHistorySetFormat() override
Definition: rolbck.cxx:196
SwHistorySetTextField(const SwTextField *pTextField, sal_uLong nNode)
Definition: rolbck.cxx:282
SwHistorySetFootnote(SwTextFootnote *pTextFootnote, sal_uLong nNode)
Definition: rolbck.cxx:440
Definition: doc.hxx:184
sal_uInt16 GetTmpEnd() const
Definition: rolbck.hxx:379
SwHistoryHint * operator[](sal_uInt16 nPos)
Definition: rolbck.hxx:381
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:730
bool IsEqual(const SwTOXMark &rCmp) const
Definition: rolbck.cxx:410
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:312
virtual OUString GetDescription() const
Definition: rolbck.cxx:62
bool TmpRollback(SwDoc *pDoc, sal_uInt16 nStart, bool ToFirst=true)
Definition: rolbck.cxx:1218
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: rolbck.cxx:1285
sal_Int32 m_nSepContent
Definition: rolbck.hxx:302
const sal_Int32 m_nEnd
Definition: rolbck.hxx:122
const OUString & GetName() const
Definition: rolbck.hxx:251
const sal_uLong m_nStartNode
Definition: rolbck.hxx:297
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:379
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet)=0
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:430
virtual ~SwHistorySetText() override
Definition: rolbck.cxx:245
void AddDeleteFly(SwFrameFormat &, sal_uInt16 &rSetPos)
Definition: rolbck.cxx:1149
SwHistoryHint const * operator[](sal_uInt16 nPos) const
Definition: rolbck.hxx:382
const sal_Int32 m_nStart
Definition: rolbck.hxx:172
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:184
SwHistoryHint(HISTORY_HINT eWhich)
Definition: rolbck.hxx:84
SwHistoryChangeFormatColl(SwFormatColl *pColl, sal_uLong nNode, SwNodeType nNodeWhich)
Definition: rolbck.cxx:532
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:349
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: rolbck.cxx:67
const sal_uLong m_nOldNodeIndex
Definition: rolbck.hxx:321
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:156
std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo
Definition: rolbck.hxx:267
const IDocumentMarkAccess::MarkType m_eBkmkType
Definition: rolbck.hxx:266
History object containing all information used during undo / redo of checkbox and drop-down form fiel...
Definition: rolbck.hxx:272
SwFlyFrameFormat *const m_pPrevFormat
Definition: rolbck.hxx:331
std::unique_ptr< SwFieldType > m_pFieldType
! beware of the order for the declaration of the unique_ptrs.
Definition: rolbck.hxx:137
const sal_uLong m_nNode
Definition: rolbck.hxx:259
virtual ~SwHistoryHint()
Definition: rolbck.hxx:85
bool IsEqualBookmark(const ::sw::mark::IMark &rBkmk)
Definition: rolbck.cxx:715
const OUString m_FootnoteNumber
Definition: rolbck.hxx:203
OUString m_aHideCondition
Definition: rolbck.hxx:257
SwHistoryChangeFlyChain(SwFlyFrameFormat &rFormat, const SwFormatChain &rAttr)
Definition: rolbck.cxx:959
virtual OUString GetDescription() const override
Definition: rolbck.cxx:476
const sal_uLong m_nOtherNode
Definition: rolbck.hxx:260
SwUndoDelLayFormat * GetUDelLFormat()
Definition: rolbck.hxx:238
virtual OUString GetDescription() const override
Definition: rolbck.cxx:117
SwHistorySetFormat(const SfxPoolItem *pFormatHt, sal_uLong nNode)
Definition: rolbck.cxx:77
const sal_Int32 m_nContent
Definition: rolbck.hxx:282
const OUString m_sName
Definition: rolbck.hxx:295
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:576
const sal_Int32 m_nEnd
Definition: rolbck.hxx:158
SwHistoryTextFieldmark(const ::sw::mark::IFieldmark &rFieldMark)
Definition: rolbck.cxx:766
SwHistory *const m_pHistory
Definition: rolbck.hxx:415
std::unique_ptr< SfxPoolItem > m_pAttr
Definition: rolbck.hxx:94
sal_uLong GetNode() const
Definition: rolbck.hxx:195
SwHistoryResetFormat(const SfxPoolItem *pFormatHt, sal_uLong nNodeIdx)
Definition: rolbck.cxx:200
OUString m_aShortName
Definition: rolbck.hxx:255
SwHistoryTextFlyCnt(SwFrameFormat *const pFlyFormat)
Definition: rolbck.cxx:564
struct _xmlTextWriter * xmlTextWriterPtr
HISTORY_HINT
Definition: rolbck.hxx:59
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:928
Style of a layout element.
Definition: frmfmt.hxx:57
SwNodeType
Definition: ndtyp.hxx:28
std::set< sal_uInt16 > m_WhichIdSet
Definition: rolbck.hxx:414
const OUString m_TOXName
Definition: rolbck.hxx:169
SwHistoryResetText(sal_uInt16 nWhich, sal_Int32 nStt, sal_Int32 nEnd, sal_uLong nNode)
Definition: rolbck.cxx:422
SwFieldIds m_nFieldWhich
Definition: rolbck.hxx:142
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:221
const OUString m_aName
Definition: rolbck.hxx:254
virtual ~SwHistorySetTextField() override
Definition: rolbck.cxx:308
void CopyAttr(SwpHints const *pHts, const sal_uLong nNodeIdx, const sal_Int32 nStart, const sal_Int32 nEnd, const bool bCopyFields)
Definition: rolbck.cxx:1300
SetAttrMode
Definition: swtypes.hxx:139
const sal_uLong m_nEndNode
Definition: rolbck.hxx:299
const bool m_bEndNote
Definition: rolbck.hxx:206
sal_uLong m_nNodeIndex
Definition: rolbck.hxx:140
SwFieldIds
Definition: fldbas.hxx:44
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:108
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:120
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:780
void CopyFormatAttr(const SfxItemSet &rSet, sal_uLong nNodeIdx)
Definition: rolbck.cxx:1264
const sal_Int32 m_nStart
Definition: rolbck.hxx:121
const sal_uLong m_nNode
Definition: rolbck.hxx:281
std::unique_ptr< SwUndoDelLayFormat > m_pUndo
Definition: rolbck.hxx:232
const sal_Int32 m_nStart
Definition: rolbck.hxx:157
virtual ~SwHistorySetFootnote() override
Definition: rolbck.cxx:481
Connection (text flow) between two FlyFrames.
Definition: fmtcnct.hxx:31
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:309
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:485
void ResetInDoc(SwDoc *pDoc)
Definition: rolbck.cxx:748
SwFrameFormat & m_rFormat
Definition: rolbck.hxx:320
void Add(const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue, sal_uLong nNodeIdx)
Definition: rolbck.cxx:1028
void AddChangeFlyAnchor(SwFrameFormat &rFormat)
Definition: rolbck.cxx:1143
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:171
const sal_Int32 m_nStart
Definition: rolbck.hxx:205
void ResetInDoc(SwDoc *pDoc)
Definition: rolbck.cxx:806
sal_uInt16 Count() const
Definition: rolbck.hxx:378
const OUString m_RefName
Definition: rolbck.hxx:155
void ChangeNodeIndex(sal_uLong nNew)
Definition: rolbck.hxx:437
SwHistorySetTOXMark(const SwTextTOXMark *pTextHt, sal_uLong nNode)
Definition: rolbck.cxx:367
void AddHint(SwTextAttr *pHt, const bool bNew)
Definition: rolbck.cxx:1429
const sal_Int32 m_nOldContentIndex
Definition: rolbck.hxx:322
SwHistorySetRefMark(const SwTextRefMark *pTextHt, sal_uLong nNode)
Definition: rolbck.cxx:340
An SwTextAttr container, stores all directly formatted text portions for a text node.
Definition: ndhints.hxx:67
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:968
SwHistorySetAttrSet(const SfxItemSet &rSet, sal_uLong nNode, const std::set< sal_uInt16 > &rSetArr)
Definition: rolbck.cxx:822
const sal_Int32 m_nContent
Definition: rolbck.hxx:261
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: rolbck.cxx:584
const sal_Int32 m_nEnd
Definition: rolbck.hxx:186
virtual ~SwHistoryTextFlyCnt() override
Definition: rolbck.cxx:572
void MakeSetWhichIds()
Definition: rolbck.cxx:1508
SfxItemSet m_OldSet
Definition: rolbck.hxx:307
SwTOXMark m_TOXMark
Definition: rolbck.hxx:168
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:249
sal_uLong m_nSepNode
Definition: rolbck.hxx:301
sal_uInt16 SetTmpEnd(sal_uInt16 nTmpEnd)
Definition: rolbck.cxx:1243
SwFlyFrameFormat *const m_pFlyFormat
Definition: rolbck.hxx:333
const OUString m_Format
Definition: rolbck.hxx:343
sal_Int32 GetContent() const
Definition: rolbck.hxx:196
SwFlyFrameFormat *const m_pNextFormat
Definition: rolbck.hxx:332
HISTORY_HINT Which() const
Definition: rolbck.hxx:87
const OUString m_sType
Definition: rolbck.hxx:296
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:541
const sal_Int32 m_nStartContent
Definition: rolbck.hxx:298
~SwHistory()
Definition: rolbck.cxx:1024
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:164
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:634
const bool m_bSaveOtherPos
Definition: rolbck.hxx:264
SwHistorySetText(SwTextAttr *pTextHt, sal_uLong nNode)
Definition: rolbck.cxx:221
const HISTORY_HINT m_eWhichId
Definition: rolbck.hxx:81
vcl::KeyCode m_aKeycode
Definition: rolbck.hxx:258
const sal_Int32 m_nEnd
Definition: rolbck.hxx:173
virtual void Modify(const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
Definition: rolbck.cxx:1381
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:893
std::unique_ptr< SfxPoolItem > m_pAttr
Definition: rolbck.hxx:119
bool InsertItems(const SfxItemSet &rSet, sal_Int32 const nStart, sal_Int32 const nEnd, SetAttrMode const nFlags, SwTextAttr **ppNewTextAttr)
Definition: rolbck.cxx:1434
SwHistoryBookmark(const ::sw::mark::IMark &rBkmk, bool bSavePos, bool bSaveOtherPos)
Definition: rolbck.cxx:597
SwFormatColl *const m_pColl
Definition: rolbck.hxx:220
const SwNodeType m_nNodeType
Definition: rolbck.hxx:222
sal_uInt16 m_nEndDiff
Definition: rolbck.hxx:357
std::vector< sal_uInt16 > m_ResetArray
Definition: rolbck.hxx:308
void Move(sal_uInt16 nPos, SwHistory *pIns, sal_uInt16 const nStart=0)
Definition: rolbck.hxx:386
bool m_bFormatIgnoreStart
Definition: rolbck.hxx:123
sal_uLong m_nNodeIndex
Definition: rolbck.hxx:204
SwHistoryChangeFlyAnchor(SwFrameFormat &rFormat)
Definition: rolbck.cxx:918
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:1007
sal_uLong m_nNodeIndex
Definition: rolbck.hxx:416
SwRegHistory(SwHistory *pHst)
Definition: rolbck.cxx:1356
const sal_Int32 m_nOtherContent
Definition: rolbck.hxx:262
bool m_bFormatIgnoreEnd
Definition: rolbck.hxx:124
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:95
Base class of the Writer document model elements.
Definition: node.hxx:79
virtual OUString GetDescription() const override
Definition: rolbck.cxx:303