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 
76 };
77 
79 {
81 
82 public:
83  SwHistoryHint( HISTORY_HINT eWhich ) : m_eWhichId( eWhich ) {}
84  virtual ~SwHistoryHint() {}
85  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) = 0;
86  HISTORY_HINT Which() const { return m_eWhichId; }
87  virtual OUString GetDescription() const;
88 };
89 
91 {
92  std::unique_ptr<SfxPoolItem> m_pAttr;
94 
95 public:
96  SwHistorySetFormat( const SfxPoolItem* pFormatHt, sal_uLong nNode );
97  virtual ~SwHistorySetFormat() override;
98  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
99  virtual OUString GetDescription() const override;
100 
101 };
102 
104 {
106  const sal_uInt16 m_nWhich;
107 
108 public:
109  SwHistoryResetFormat( const SfxPoolItem* pFormatHt, sal_uLong nNodeIdx );
110  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
111 
112 };
113 
115 {
116  std::unique_ptr<SfxPoolItem> m_pAttr;
118  const sal_Int32 m_nStart;
119  const sal_Int32 m_nEnd;
120  bool const m_bFormatIgnoreStart : 1;
121  bool const m_bFormatIgnoreEnd : 1;
122 
123 public:
124  SwHistorySetText( SwTextAttr* pTextHt, sal_uLong nNode );
125  virtual ~SwHistorySetText() override;
126  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
127 
128 };
129 
131 {
134  std::unique_ptr<SwFieldType> m_pFieldType;
135  const std::unique_ptr<SwFormatField> m_pField;
136 
138  sal_Int32 m_nPos;
140 
141 public:
142  SwHistorySetTextField( SwTextField* pTextField, sal_uLong nNode );
143  virtual ~SwHistorySetTextField() override;
144  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
145 
146  virtual OUString GetDescription() const override;
147 
148 };
149 
151 {
152  const OUString m_RefName;
154  const sal_Int32 m_nStart;
155  const sal_Int32 m_nEnd;
156 
157 public:
158  SwHistorySetRefMark( SwTextRefMark* pTextHt, sal_uLong nNode );
159  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
160 
161 };
162 
164 {
166  const OUString m_TOXName;
169  const sal_Int32 m_nStart;
170  const sal_Int32 m_nEnd;
171 
172 public:
173  SwHistorySetTOXMark( SwTextTOXMark* pTextHt, sal_uLong nNode );
174  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
175  bool IsEqual( const SwTOXMark& rCmp ) const;
176 
177 };
178 
180 {
182  const sal_Int32 m_nStart;
183  const sal_Int32 m_nEnd;
184  const sal_uInt16 m_nAttr;
185 
186 public:
187  SwHistoryResetText( sal_uInt16 nWhich, sal_Int32 nStt, sal_Int32 nEnd,
188  sal_uLong nNode );
189  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
190 
191  sal_uInt16 GetWhich() const { return m_nAttr; }
192  sal_uLong GetNode() const { return m_nNodeIndex; }
193  sal_Int32 GetContent() const { return m_nStart; }
194 
195 };
196 
198 {
199  const std::unique_ptr<SwUndoSaveSection, o3tl::default_delete<SwUndoSaveSection>> m_pUndo;
200  const OUString m_FootnoteNumber;
202  const sal_Int32 m_nStart;
203  const bool m_bEndNote;
204 
205 public:
206  SwHistorySetFootnote( SwTextFootnote* pTextFootnote, sal_uLong nNode );
208  virtual ~SwHistorySetFootnote() override;
209  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
210 
211  virtual OUString GetDescription() const override;
212 
213 };
214 
216 {
220 
221 public:
222  SwHistoryChangeFormatColl( SwFormatColl* pColl, sal_uLong nNode, SwNodeType nNodeWhich );
223  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
224 
225 };
226 
228 {
229  std::unique_ptr<SwUndoDelLayFormat> m_pUndo;
230 
231 public:
232  SwHistoryTextFlyCnt( SwFrameFormat* const pFlyFormat );
233  virtual ~SwHistoryTextFlyCnt() override;
234  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
235  SwUndoDelLayFormat* GetUDelLFormat() { return m_pUndo.get(); }
236 
237 };
238 
240 {
241  public:
242  SwHistoryBookmark(const ::sw::mark::IMark& rBkmk,
243  bool bSavePos, bool bSaveOtherPos);
244  virtual void SetInDoc(SwDoc * pDoc, bool) override;
245 
246  bool IsEqualBookmark(const ::sw::mark::IMark& rBkmk);
247  const OUString& GetName() const { return m_aName;}
248 
249  private:
250  const OUString m_aName;
251  OUString m_aShortName;
255  const sal_Int32 m_nContent;
256  const sal_Int32 m_nOtherContent;
257  const bool m_bSavePos;
258  const bool m_bSaveOtherPos;
259  const bool m_bHadOtherPos;
261  std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo;
262 };
263 
267 {
268  public:
269  SwHistoryNoTextFieldmark(const ::sw::mark::IFieldmark& rFieldMark);
270  virtual void SetInDoc(SwDoc* pDoc, bool) override;
271  void ResetInDoc(SwDoc* pDoc);
272 
273  private:
274  const OUString m_sType;
276  const sal_Int32 m_nContent;
277 };
278 
282 {
283  public:
284  SwHistoryTextFieldmark(const ::sw::mark::IFieldmark& rFieldMark);
285  virtual void SetInDoc(SwDoc* pDoc, bool) override;
286  void ResetInDoc(SwDoc* pDoc);
287 
288  private:
289  const OUString m_sName;
290  const OUString m_sType;
292  const sal_Int32 m_nContent;
293 };
294 
296 {
298  std::vector<sal_uInt16> m_ResetArray;
300 
301 public:
302  SwHistorySetAttrSet( const SfxItemSet& rSet, sal_uLong nNode,
303  const std::set<sal_uInt16> &rSetArr );
304  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
305 
306 };
307 
309 {
312  const sal_Int32 m_nOldContentIndex;
313 
314 public:
316  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
317 };
318 
320 {
324 
325 public:
326  SwHistoryChangeFlyChain( SwFlyFrameFormat& rFormat, const SwFormatChain& rAttr );
327  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
328 };
329 
331 {
333  const OUString m_Format;
334 
335 public:
336  SwHistoryChangeCharFormat( const SfxItemSet& rSet, const OUString & sFormat);
337  virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
338 
339 };
340 
342 {
343  friend class SwDoc; // actually only SwDoc::DelUndoObj may access
344  friend class SwRegHistory; // for inserting History attributes
345 
346  std::vector<std::unique_ptr<SwHistoryHint>> m_SwpHstry;
347  sal_uInt16 m_nEndDiff;
348 
349 public:
350  SwHistory();
351  ~SwHistory();
352 
353  // call and delete all objects between nStart and array end
354  bool Rollback( SwDoc* pDoc, sal_uInt16 nStart = 0 );
355  // call all objects between nStart and TmpEnd; store nStart as TmpEnd
356  bool TmpRollback( SwDoc* pDoc, sal_uInt16 nStart, bool ToFirst = true );
357 
358  void Add( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue,
359  sal_uLong nNodeIdx );
360  void Add( SwTextAttr* pTextHt, sal_uLong nNodeIdx, bool bNewAttr );
361  void Add( SwFormatColl*, sal_uLong nNodeIdx, SwNodeType nWhichNd );
362  void Add( const ::sw::mark::IMark&, bool bSavePos, bool bSaveOtherPos );
363  void Add( SwFrameFormat& rFormat );
364  void Add( SwFlyFrameFormat&, sal_uInt16& rSetPos );
365  void Add( const SwTextFootnote& );
366  void Add( const SfxItemSet & rSet, const SwCharFormat & rCharFormat);
367 
368  sal_uInt16 Count() const { return m_SwpHstry.size(); }
369  sal_uInt16 GetTmpEnd() const { return m_SwpHstry.size() - m_nEndDiff; }
370  sal_uInt16 SetTmpEnd( sal_uInt16 nTmpEnd ); // return previous value
371  SwHistoryHint * operator[]( sal_uInt16 nPos ) { return m_SwpHstry[nPos].get(); }
372  SwHistoryHint const* operator[]( sal_uInt16 nPos ) const
373  { return m_SwpHstry[nPos].get(); }
374 
375  // for SwUndoDelete::Undo/Redo
376  void Move( sal_uInt16 nPos, SwHistory *pIns,
377  sal_uInt16 const nStart = 0)
378  {
379  auto itSourceBegin = pIns->m_SwpHstry.begin() + nStart;
380  auto itSourceEnd = pIns->m_SwpHstry.end();
381  if (itSourceBegin == itSourceEnd)
382  return;
383  m_SwpHstry.insert(m_SwpHstry.begin() + nPos, std::make_move_iterator(itSourceBegin), std::make_move_iterator(itSourceEnd));
384  pIns->m_SwpHstry.erase( itSourceBegin, itSourceEnd );
385  }
386 
387  // helper methods for recording attribute in History
388  // used by Undo classes (Delete/Overwrite/Inserts)
389  void CopyAttr(
390  SwpHints const * pHts,
391  const sal_uLong nNodeIdx,
392  const sal_Int32 nStart,
393  const sal_Int32 nEnd,
394  const bool bCopyFields );
395 
396  void CopyFormatAttr( const SfxItemSet& rSet, sal_uLong nNodeIdx );
397 };
398 
399 class SwRegHistory : public SwClient
400 {
401 private:
402  std::set<sal_uInt16> m_WhichIdSet;
405 
406  void MakeSetWhichIds();
407 
408 protected:
409  virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) override;
410 
411 public:
412  SwRegHistory( SwHistory* pHst );
413  SwRegHistory( const SwNode& rNd, SwHistory* pHst );
414  SwRegHistory( SwModify* pRegIn, const SwNode& rNd, SwHistory* pHst );
415 
417  bool InsertItems( const SfxItemSet& rSet,
418  sal_Int32 const nStart, sal_Int32 const nEnd,
419  SetAttrMode const nFlags,
420  SwTextAttr **ppNewTextAttr );
421 
422  void AddHint( SwTextAttr* pHt, const bool bNew );
423 
424  void RegisterInModify( SwModify* pRegIn, const SwNode& rNd );
425  void ChangeNodeIndex( sal_uLong nNew ) { m_nNodeIndex = nNew; }
426 };
427 
428 #endif // INCLUDED_SW_SOURCE_CORE_INC_ROLBCK_HXX
429 
430 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const std::unique_ptr< SwFormatField > m_pField
Definition: rolbck.hxx:135
Instances of SwFields and those derived from it occur 0 to n times.
Definition: fldbas.hxx:233
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:179
bool const m_bFormatIgnoreEnd
Definition: rolbck.hxx:121
History object containing all information used during undo / redo of text form field insertion...
Definition: rolbck.hxx:281
const OUString m_sType
Definition: rolbck.hxx:274
TOXTypes
Definition: toxe.hxx:39
const TOXTypes m_eTOXTypes
Definition: rolbck.hxx:167
SwHistoryNoTextFieldmark(const ::sw::mark::IFieldmark &rFieldMark)
Definition: rolbck.cxx:677
const std::unique_ptr< SwUndoSaveSection, o3tl::default_delete< SwUndoSaveSection > > m_pUndo
Definition: rolbck.hxx:199
sal_uInt16 GetWhich() const
Definition: rolbck.hxx:191
std::vector< std::unique_ptr< SwHistoryHint > > m_SwpHstry
Definition: rolbck.hxx:346
const sal_Int32 m_nStart
Definition: rolbck.hxx:182
const sal_uInt16 m_nWhich
Definition: rolbck.hxx:106
const sal_uInt16 m_nAttr
Definition: rolbck.hxx:184
const bool m_bHadOtherPos
Definition: rolbck.hxx:259
SwHistoryChangeCharFormat(const SfxItemSet &rSet, const OUString &sFormat)
Definition: rolbck.cxx:946
bool Rollback(SwDoc *pDoc, sal_uInt16 nStart=0)
Definition: rolbck.cxx:1126
const bool m_bSavePos
Definition: rolbck.hxx:257
void RegisterInModify(SwModify *pRegIn, const SwNode &rNd)
Definition: rolbck.cxx:1412
const SfxItemSet m_OldSet
Definition: rolbck.hxx:332
sal_uIntPtr sal_uLong
virtual ~SwHistorySetFormat() override
Definition: rolbck.cxx:168
SwHistorySetTextField(SwTextField *pTextField, sal_uLong nNode)
Definition: rolbck.cxx:254
SwHistorySetFootnote(SwTextFootnote *pTextFootnote, sal_uLong nNode)
Definition: rolbck.cxx:412
Definition: doc.hxx:185
sal_uInt16 GetTmpEnd() const
Definition: rolbck.hxx:369
SwHistoryHint * operator[](sal_uInt16 nPos)
Definition: rolbck.hxx:371
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:685
bool IsEqual(const SwTOXMark &rCmp) const
Definition: rolbck.cxx:382
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:284
virtual OUString GetDescription() const
Definition: rolbck.cxx:59
bool TmpRollback(SwDoc *pDoc, sal_uInt16 nStart, bool ToFirst=true)
Definition: rolbck.cxx:1141
const sal_Int32 m_nEnd
Definition: rolbck.hxx:119
const OUString & GetName() const
Definition: rolbck.hxx:247
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:351
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet)=0
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:402
virtual ~SwHistorySetText() override
Definition: rolbck.cxx:217
SwHistoryHint const * operator[](sal_uInt16 nPos) const
Definition: rolbck.hxx:372
const sal_Int32 m_nStart
Definition: rolbck.hxx:169
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:181
SwHistoryHint(HISTORY_HINT eWhich)
Definition: rolbck.hxx:83
SwHistoryChangeFormatColl(SwFormatColl *pColl, sal_uLong nNode, SwNodeType nNodeWhich)
Definition: rolbck.cxx:504
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:321
const sal_uLong m_nOldNodeIndex
Definition: rolbck.hxx:311
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:153
std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo
Definition: rolbck.hxx:261
const IDocumentMarkAccess::MarkType m_eBkmkType
Definition: rolbck.hxx:260
History object containing all information used during undo / redo of checkbox and drop-down form fiel...
Definition: rolbck.hxx:266
SwFlyFrameFormat *const m_pPrevFormat
Definition: rolbck.hxx:321
std::unique_ptr< SwFieldType > m_pFieldType
! beware of the order for the declaration of the unique_ptrs.
Definition: rolbck.hxx:134
const sal_uLong m_nNode
Definition: rolbck.hxx:253
virtual ~SwHistoryHint()
Definition: rolbck.hxx:84
bool IsEqualBookmark(const ::sw::mark::IMark &rBkmk)
Definition: rolbck.cxx:670
const OUString m_FootnoteNumber
Definition: rolbck.hxx:200
SwHistoryChangeFlyChain(SwFlyFrameFormat &rFormat, const SwFormatChain &rAttr)
Definition: rolbck.cxx:905
virtual OUString GetDescription() const override
Definition: rolbck.cxx:448
const sal_uLong m_nOtherNode
Definition: rolbck.hxx:254
SwUndoDelLayFormat * GetUDelLFormat()
Definition: rolbck.hxx:235
virtual OUString GetDescription() const override
Definition: rolbck.cxx:104
SwHistorySetFormat(const SfxPoolItem *pFormatHt, sal_uLong nNode)
Definition: rolbck.cxx:64
const sal_Int32 m_nContent
Definition: rolbck.hxx:276
const OUString m_sName
Definition: rolbck.hxx:289
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:548
const sal_Int32 m_nEnd
Definition: rolbck.hxx:155
SwHistoryTextFieldmark(const ::sw::mark::IFieldmark &rFieldMark)
Definition: rolbck.cxx:721
SwHistory *const m_pHistory
Definition: rolbck.hxx:403
std::unique_ptr< SfxPoolItem > m_pAttr
Definition: rolbck.hxx:92
sal_uLong GetNode() const
Definition: rolbck.hxx:192
SwHistoryResetFormat(const SfxPoolItem *pFormatHt, sal_uLong nNodeIdx)
Definition: rolbck.cxx:172
SwHistorySetRefMark(SwTextRefMark *pTextHt, sal_uLong nNode)
Definition: rolbck.cxx:312
OUString m_aShortName
Definition: rolbck.hxx:251
SwHistoryTextFlyCnt(SwFrameFormat *const pFlyFormat)
Definition: rolbck.cxx:536
HISTORY_HINT
Definition: rolbck.hxx:58
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:874
Style of a layout element.
Definition: frmfmt.hxx:57
SwNodeType
Definition: ndtyp.hxx:28
std::set< sal_uInt16 > m_WhichIdSet
Definition: rolbck.hxx:402
const OUString m_TOXName
Definition: rolbck.hxx:166
SwHistoryResetText(sal_uInt16 nWhich, sal_Int32 nStt, sal_Int32 nEnd, sal_uLong nNode)
Definition: rolbck.cxx:394
SwFieldIds m_nFieldWhich
Definition: rolbck.hxx:139
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:218
const OUString m_aName
Definition: rolbck.hxx:250
virtual ~SwHistorySetTextField() override
Definition: rolbck.cxx:280
void CopyAttr(SwpHints const *pHts, const sal_uLong nNodeIdx, const sal_Int32 nStart, const sal_Int32 nEnd, const bool bCopyFields)
Definition: rolbck.cxx:1218
SetAttrMode
Definition: swtypes.hxx:143
const bool m_bEndNote
Definition: rolbck.hxx:203
sal_uLong m_nNodeIndex
Definition: rolbck.hxx:137
SwFieldIds
Definition: fldbas.hxx:38
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:105
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:117
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:730
void CopyFormatAttr(const SfxItemSet &rSet, sal_uLong nNodeIdx)
Definition: rolbck.cxx:1187
const sal_Int32 m_nStart
Definition: rolbck.hxx:118
const sal_uLong m_nNode
Definition: rolbck.hxx:275
std::unique_ptr< SwUndoDelLayFormat > m_pUndo
Definition: rolbck.hxx:229
const sal_Int32 m_nStart
Definition: rolbck.hxx:154
virtual ~SwHistorySetFootnote() override
Definition: rolbck.cxx:453
Connection (text flow) between two FlyFrames.
Definition: fmtcnct.hxx:31
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:299
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:457
void ResetInDoc(SwDoc *pDoc)
Definition: rolbck.cxx:703
SwFrameFormat & m_rFormat
Definition: rolbck.hxx:310
void Add(const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue, sal_uLong nNodeIdx)
Definition: rolbck.cxx:974
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:168
const sal_Int32 m_nStart
Definition: rolbck.hxx:202
void ResetInDoc(SwDoc *pDoc)
Definition: rolbck.cxx:750
SwHistory()
Definition: rolbck.cxx:964
sal_uInt16 Count() const
Definition: rolbck.hxx:368
const OUString m_RefName
Definition: rolbck.hxx:152
void ChangeNodeIndex(sal_uLong nNew)
Definition: rolbck.hxx:425
bool const m_bFormatIgnoreStart
Definition: rolbck.hxx:120
void AddHint(SwTextAttr *pHt, const bool bNew)
Definition: rolbck.cxx:1347
const sal_Int32 m_nOldContentIndex
Definition: rolbck.hxx:312
An SwTextAttr container, stores all directly formatted text portions for a text node.
Definition: ndhints.hxx:67
const sal_uLong m_nNode
Definition: rolbck.hxx:291
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:914
SwHistorySetAttrSet(const SfxItemSet &rSet, sal_uLong nNode, const std::set< sal_uInt16 > &rSetArr)
Definition: rolbck.cxx:768
const sal_Int32 m_nContent
Definition: rolbck.hxx:255
const sal_Int32 m_nEnd
Definition: rolbck.hxx:183
SwHistorySetTOXMark(SwTextTOXMark *pTextHt, sal_uLong nNode)
Definition: rolbck.cxx:339
virtual ~SwHistoryTextFlyCnt() override
Definition: rolbck.cxx:544
void MakeSetWhichIds()
Definition: rolbck.cxx:1426
SfxItemSet m_OldSet
Definition: rolbck.hxx:297
SwTOXMark m_TOXMark
Definition: rolbck.hxx:165
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:221
sal_uInt16 SetTmpEnd(sal_uInt16 nTmpEnd)
Definition: rolbck.cxx:1166
SwFlyFrameFormat *const m_pFlyFormat
Definition: rolbck.hxx:323
const OUString m_Format
Definition: rolbck.hxx:333
sal_Int32 GetContent() const
Definition: rolbck.hxx:193
SwFlyFrameFormat *const m_pNextFormat
Definition: rolbck.hxx:322
HISTORY_HINT Which() const
Definition: rolbck.hxx:86
const OUString m_sType
Definition: rolbck.hxx:290
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:513
~SwHistory()
Definition: rolbck.cxx:970
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:136
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:592
const bool m_bSaveOtherPos
Definition: rolbck.hxx:258
SwHistorySetText(SwTextAttr *pTextHt, sal_uLong nNode)
Definition: rolbck.cxx:193
const HISTORY_HINT m_eWhichId
Definition: rolbck.hxx:80
vcl::KeyCode m_aKeycode
Definition: rolbck.hxx:252
const sal_Int32 m_nEnd
Definition: rolbck.hxx:170
virtual void Modify(const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
Definition: rolbck.cxx:1299
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:839
std::unique_ptr< SfxPoolItem > m_pAttr
Definition: rolbck.hxx:116
bool InsertItems(const SfxItemSet &rSet, sal_Int32 const nStart, sal_Int32 const nEnd, SetAttrMode const nFlags, SwTextAttr **ppNewTextAttr)
Definition: rolbck.cxx:1352
SwHistoryBookmark(const ::sw::mark::IMark &rBkmk, bool bSavePos, bool bSaveOtherPos)
Definition: rolbck.cxx:556
SwFormatColl *const m_pColl
Definition: rolbck.hxx:217
const SwNodeType m_nNodeType
Definition: rolbck.hxx:219
sal_uInt16 m_nEndDiff
Definition: rolbck.hxx:347
std::vector< sal_uInt16 > m_ResetArray
Definition: rolbck.hxx:298
void Move(sal_uInt16 nPos, SwHistory *pIns, sal_uInt16 const nStart=0)
Definition: rolbck.hxx:376
sal_uLong m_nNodeIndex
Definition: rolbck.hxx:201
SwHistoryChangeFlyAnchor(SwFrameFormat &rFormat)
Definition: rolbck.cxx:864
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:953
sal_uLong m_nNodeIndex
Definition: rolbck.hxx:404
SwRegHistory(SwHistory *pHst)
Definition: rolbck.cxx:1274
const sal_Int32 m_nOtherContent
Definition: rolbck.hxx:256
const sal_Int32 m_nContent
Definition: rolbck.hxx:292
const sal_uLong m_nNodeIndex
Definition: rolbck.hxx:93
Base class of the Writer document model elements.
Definition: node.hxx:79
virtual OUString GetDescription() const override
Definition: rolbck.cxx:275