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>
24#include <svl/itemset.hxx>
25#include <vcl/keycod.hxx>
26#include <tox.hxx>
27
29
30#include <memory>
31#include <vector>
32
33namespace sfx2 {
34 class MetadatableUndo;
35}
36namespace sw {
37 class SpzFrameFormat;
38}
39
40class SwDoc;
41class SwFormatColl;
42class SwTextAttr;
43class SfxPoolItem;
45class SwTextFootnote;
48class SwFormatField;
49class SwTextField;
50class SwFieldType;
51class SwTextTOXMark;
52class SwTextRefMark;
53class SwFrameFormat;
54class SwpHints;
55class SwFormatChain;
56class SwNode;
57class SwCharFormat;
58enum class SwFieldIds : sal_uInt16;
59typedef struct _xmlTextWriter* xmlTextWriterPtr;
60
79};
80
82{
84
85public:
86 SwHistoryHint( HISTORY_HINT eWhich ) : m_eWhichId( eWhich ) {}
87 virtual ~SwHistoryHint() {}
88 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) = 0;
89 HISTORY_HINT Which() const { return m_eWhichId; }
90 virtual OUString GetDescription() const;
91 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
92};
93
95{
96 std::unique_ptr<SfxPoolItem> m_pAttr;
98
99public:
100 SwHistorySetFormat( const SfxPoolItem* pFormatHt, SwNodeOffset nNode );
101 virtual ~SwHistorySetFormat() override;
102 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
103 virtual OUString GetDescription() const override;
104
105 void dumpAsXml(xmlTextWriterPtr pWriter) const override;
106};
107
109{
111 const sal_uInt16 m_nWhich;
112
113public:
114 SwHistoryResetFormat( const SfxPoolItem* pFormatHt, SwNodeOffset nNodeIdx );
115 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
116
117};
118
119class SwHistorySetText final : public SwHistoryHint
120{
121 std::unique_ptr<SfxPoolItem> m_pAttr;
123 const sal_Int32 m_nStart;
124 const sal_Int32 m_nEnd;
127
128public:
129 SwHistorySetText( SwTextAttr* pTextHt, SwNodeOffset nNode );
130 virtual ~SwHistorySetText() override;
131 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
132
133};
134
136{
139 std::unique_ptr<SwFieldType> m_pFieldType;
140 const std::unique_ptr<SwFormatField> m_pField;
141
143 sal_Int32 m_nPos;
145
146public:
147 SwHistorySetTextField( const SwTextField* pTextField, SwNodeOffset nNode );
148 virtual ~SwHistorySetTextField() override;
149 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
150
151 virtual OUString GetDescription() const override;
152
153};
154
156{
157 const OUString m_RefName;
159 const sal_Int32 m_nStart;
160 const sal_Int32 m_nEnd;
161
162public:
163 SwHistorySetRefMark( const SwTextRefMark* pTextHt, SwNodeOffset nNode );
164 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
165 const OUString& GetRefName() {return m_RefName;}
166};
167
169{
171 const OUString m_TOXName;
174 const sal_Int32 m_nStart;
175 const sal_Int32 m_nEnd;
176
177public:
178 SwHistorySetTOXMark( const SwTextTOXMark* pTextHt, SwNodeOffset nNode );
179 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
180 bool IsEqual( const SwTOXMark& rCmp ) const;
181
182 static SwTOXType* GetSwTOXType(SwDoc& rDoc, TOXTypes eTOXTypes, const OUString& rTOXName);
183};
184
186{
188 const sal_Int32 m_nStart;
189 const sal_Int32 m_nEnd;
190 const sal_uInt16 m_nAttr;
191
192public:
193 SwHistoryResetText( sal_uInt16 nWhich, sal_Int32 nStt, sal_Int32 nEnd,
194 SwNodeOffset nNode );
195 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
196
197 sal_uInt16 GetWhich() const { return m_nAttr; }
199 sal_Int32 GetContent() const { return m_nStart; }
200
201};
202
204{
205 const std::unique_ptr<SwUndoSaveSection, o3tl::default_delete<SwUndoSaveSection>> m_pUndo;
206 const OUString m_FootnoteNumber;
208 const sal_Int32 m_nStart;
209 const bool m_bEndNote;
210
211public:
212 SwHistorySetFootnote( SwTextFootnote* pTextFootnote, SwNodeOffset nNode );
214 virtual ~SwHistorySetFootnote() override;
215 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
216
217 virtual OUString GetDescription() const override;
218
219};
220
222{
226
227public:
229 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
230
231};
232
234{
235 std::unique_ptr<SwUndoDelLayFormat> m_pUndo;
236
237public:
238 SwHistoryTextFlyCnt( SwFrameFormat* const pFlyFormat );
239 virtual ~SwHistoryTextFlyCnt() override;
240 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
242
243 void dumpAsXml(xmlTextWriterPtr pWriter) const override;
244};
245
247{
248 public:
249 SwHistoryBookmark(const ::sw::mark::IMark& rBkmk,
250 bool bSavePos, bool bSaveOtherPos);
251 virtual void SetInDoc(SwDoc * pDoc, bool) override;
252
253 bool IsEqualBookmark(const ::sw::mark::IMark& rBkmk);
254 const OUString& GetName() const { return m_aName;}
255
256 private:
257 const OUString m_aName;
258 OUString m_aShortName;
264 const sal_Int32 m_nContent;
265 const sal_Int32 m_nOtherContent;
266 const bool m_bSavePos;
267 const bool m_bSaveOtherPos;
268 const bool m_bHadOtherPos;
270 std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo;
271};
272
276{
277 public:
278 SwHistoryNoTextFieldmark(const ::sw::mark::IFieldmark& rFieldMark);
279 virtual void SetInDoc(SwDoc* pDoc, bool) override;
280 void ResetInDoc(SwDoc& rDoc);
281
282 private:
283 const OUString m_sType;
285 const sal_Int32 m_nContent;
286};
287
291{
292 public:
293 SwHistoryTextFieldmark(const ::sw::mark::IFieldmark& rFieldMark);
294 virtual void SetInDoc(SwDoc* pDoc, bool) override;
295 void ResetInDoc(SwDoc& rDoc);
296
297 private:
298 const OUString m_sName;
299 const OUString m_sType;
301 const sal_Int32 m_nStartContent;
303 const sal_Int32 m_nEndContent;
305 /*const*/ sal_Int32 m_nSepContent;
306};
307
309{
311 std::vector<sal_uInt16> m_ResetArray;
313
314public:
315 SwHistorySetAttrSet( const SfxItemSet& rSet, SwNodeOffset nNode,
316 const o3tl::sorted_vector<sal_uInt16> &rSetArr );
317 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
318
319};
320
322{
323 sw::SpzFrameFormat& m_rFormat; // despite the name, this is not only used for flys, but also for draw formats(!)
325 const sal_Int32 m_nOldContentIndex;
326
327public:
329 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
330};
331
333{
337
338public:
340 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
341};
342
344{
346 const OUString m_Format;
347
348public:
349 SwHistoryChangeCharFormat( SfxItemSet aSet, OUString sFormat);
350 virtual void SetInDoc( SwDoc* pDoc, bool bTmpSet ) override;
351
352};
353
355{
356 friend class SwDoc; // actually only SwDoc::DelUndoObj may access
357 friend class SwRegHistory; // for inserting History attributes
358
359 std::vector<std::unique_ptr<SwHistoryHint>> m_SwpHstry;
360 sal_uInt16 m_nEndDiff;
361
362public:
363 SwHistory();
364 ~SwHistory();
365
366 // call and delete all objects between nStart and array end
367 bool Rollback( SwDoc* pDoc, sal_uInt16 nStart = 0 );
368 // call all objects between nStart and TmpEnd; store nStart as TmpEnd
369 bool TmpRollback( SwDoc* pDoc, sal_uInt16 nStart, bool ToFirst = true );
370
371 void Add( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue,
372 SwNodeOffset nNodeIdx );
373 void Add( SwTextAttr* pTextHt, SwNodeOffset nNodeIdx, bool bNewAttr );
374 void Add( SwFormatColl*, SwNodeOffset nNodeIdx, SwNodeType nWhichNd );
375 void Add( const ::sw::mark::IMark&, bool bSavePos, bool bSaveOtherPos );
377 void AddDeleteFly( SwFrameFormat&, sal_uInt16& rSetPos );
378 void Add( const SwTextFootnote& );
379 void Add( const SfxItemSet & rSet, const SwCharFormat & rCharFormat);
380
381 sal_uInt16 Count() const { return m_SwpHstry.size(); }
382 sal_uInt16 GetTmpEnd() const { return m_SwpHstry.size() - m_nEndDiff; }
383 sal_uInt16 SetTmpEnd( sal_uInt16 nTmpEnd ); // return previous value
384 SwHistoryHint * operator[]( sal_uInt16 nPos ) { return m_SwpHstry[nPos].get(); }
385 SwHistoryHint const* operator[]( sal_uInt16 nPos ) const
386 { return m_SwpHstry[nPos].get(); }
387
388 // for SwUndoDelete::Undo/Redo
389 void Move( sal_uInt16 nPos, SwHistory *pIns,
390 sal_uInt16 const nStart = 0)
391 {
392 auto itSourceBegin = pIns->m_SwpHstry.begin() + nStart;
393 auto itSourceEnd = pIns->m_SwpHstry.end();
394 if (itSourceBegin == itSourceEnd)
395 return;
396 m_SwpHstry.insert(m_SwpHstry.begin() + nPos, std::make_move_iterator(itSourceBegin), std::make_move_iterator(itSourceEnd));
397 pIns->m_SwpHstry.erase( itSourceBegin, itSourceEnd );
398 }
399
400 // helper methods for recording attribute in History
401 // used by Undo classes (Delete/Overwrite/Inserts)
402 void CopyAttr(
403 SwpHints const * pHts,
404 const SwNodeOffset nNodeIdx,
405 const sal_Int32 nStart,
406 const sal_Int32 nEnd,
407 const bool bCopyFields );
408
409 void CopyFormatAttr( const SfxItemSet& rSet, SwNodeOffset nNodeIdx );
410
411 void dumpAsXml(xmlTextWriterPtr pWriter) const;
412};
413
414class SwRegHistory final: public SwClient
415{
416private:
420
421 void MakeSetWhichIds();
422
423public:
424 SwRegHistory( SwHistory* pHst );
425 SwRegHistory( const SwNode& rNd, SwHistory* pHst );
426 SwRegHistory( sw::BroadcastingModify* pRegIn, const SwNode& rNd, SwHistory* pHst );
427 virtual void SwClientNotify(const SwModify&, const SfxHint& rHint) override;
428
430 bool InsertItems( const SfxItemSet& rSet,
431 sal_Int32 const nStart, sal_Int32 const nEnd,
432 SetAttrMode const nFlags,
433 SwTextAttr **ppNewTextAttr );
434
435 void AddHint( SwTextAttr* pHt, const bool bNew );
436
437 void RegisterInModify( sw::BroadcastingModify* pRegIn, const SwNode& rNd );
439};
440
441#endif // INCLUDED_SW_SOURCE_CORE_INC_ROLBCK_HXX
442
443/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Represents the style of a text portion.
Definition: charfmt.hxx:27
Definition: doc.hxx:197
Instances of SwFields and those derived from it occur 0 to n times.
Definition: fldbas.hxx:247
Connection (text flow) between two FlyFrames.
Definition: fmtcnct.hxx:32
SwFormatColl is just an SwFormat subclass that defaults to m_bAutoFormat=false, expressing that this ...
Definition: fmtcol.hxx:38
Style of a layout element.
Definition: frmfmt.hxx:72
const OUString & GetName() const
Definition: rolbck.hxx:254
const bool m_bSaveOtherPos
Definition: rolbck.hxx:267
SwHistoryBookmark(const ::sw::mark::IMark &rBkmk, bool bSavePos, bool bSaveOtherPos)
Definition: rolbck.cxx:605
const SwNodeOffset m_nNode
Definition: rolbck.hxx:262
OUString m_aHideCondition
Definition: rolbck.hxx:260
const bool m_bHadOtherPos
Definition: rolbck.hxx:268
std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo
Definition: rolbck.hxx:270
const sal_Int32 m_nOtherContent
Definition: rolbck.hxx:265
const OUString m_aName
Definition: rolbck.hxx:257
vcl::KeyCode m_aKeycode
Definition: rolbck.hxx:261
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:642
const bool m_bSavePos
Definition: rolbck.hxx:266
bool IsEqualBookmark(const ::sw::mark::IMark &rBkmk)
Definition: rolbck.cxx:722
const SwNodeOffset m_nOtherNode
Definition: rolbck.hxx:263
const IDocumentMarkAccess::MarkType m_eBkmkType
Definition: rolbck.hxx:269
OUString m_aShortName
Definition: rolbck.hxx:258
const sal_Int32 m_nContent
Definition: rolbck.hxx:264
SwHistoryChangeCharFormat(SfxItemSet aSet, OUString sFormat)
Definition: rolbck.cxx:1002
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:1009
const SfxItemSet m_OldSet
Definition: rolbck.hxx:345
const OUString m_Format
Definition: rolbck.hxx:346
const sal_Int32 m_nOldContentIndex
Definition: rolbck.hxx:325
sw::SpzFrameFormat & m_rFormat
Definition: rolbck.hxx:323
const SwNodeOffset m_nOldNodeIndex
Definition: rolbck.hxx:324
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:934
SwHistoryChangeFlyAnchor(sw::SpzFrameFormat &rFormat)
Definition: rolbck.cxx:924
SwHistoryChangeFlyChain(SwFlyFrameFormat &rFormat, const SwFormatChain &rAttr)
Definition: rolbck.cxx:961
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:970
SwFlyFrameFormat *const m_pPrevFormat
Definition: rolbck.hxx:334
SwFlyFrameFormat *const m_pFlyFormat
Definition: rolbck.hxx:336
SwFlyFrameFormat *const m_pNextFormat
Definition: rolbck.hxx:335
const SwNodeType m_nNodeType
Definition: rolbck.hxx:225
const SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:224
SwFormatColl *const m_pColl
Definition: rolbck.hxx:223
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:549
SwHistoryChangeFormatColl(SwFormatColl *pColl, SwNodeOffset nNode, SwNodeType nNodeWhich)
Definition: rolbck.cxx:540
const HISTORY_HINT m_eWhichId
Definition: rolbck.hxx:83
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: rolbck.cxx:68
virtual ~SwHistoryHint()
Definition: rolbck.hxx:87
HISTORY_HINT Which() const
Definition: rolbck.hxx:89
virtual OUString GetDescription() const
Definition: rolbck.cxx:63
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet)=0
SwHistoryHint(HISTORY_HINT eWhich)
Definition: rolbck.hxx:86
History object containing all information used during undo / redo of checkbox and drop-down form fiel...
Definition: rolbck.hxx:276
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:737
const OUString m_sType
Definition: rolbck.hxx:283
void ResetInDoc(SwDoc &rDoc)
Definition: rolbck.cxx:755
const SwNodeOffset m_nNode
Definition: rolbck.hxx:284
SwHistoryNoTextFieldmark(const ::sw::mark::IFieldmark &rFieldMark)
Definition: rolbck.cxx:729
const sal_Int32 m_nContent
Definition: rolbck.hxx:285
const SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:110
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:208
const sal_uInt16 m_nWhich
Definition: rolbck.hxx:111
SwHistoryResetFormat(const SfxPoolItem *pFormatHt, SwNodeOffset nNodeIdx)
Definition: rolbck.cxx:201
const sal_Int32 m_nEnd
Definition: rolbck.hxx:189
SwHistoryResetText(sal_uInt16 nWhich, sal_Int32 nStt, sal_Int32 nEnd, SwNodeOffset nNode)
Definition: rolbck.cxx:430
const sal_uInt16 m_nAttr
Definition: rolbck.hxx:190
sal_uInt16 GetWhich() const
Definition: rolbck.hxx:197
const SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:187
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:438
sal_Int32 GetContent() const
Definition: rolbck.hxx:199
const sal_Int32 m_nStart
Definition: rolbck.hxx:188
SwNodeOffset GetNode() const
Definition: rolbck.hxx:198
const SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:312
std::vector< sal_uInt16 > m_ResetArray
Definition: rolbck.hxx:311
SwHistorySetAttrSet(const SfxItemSet &rSet, SwNodeOffset nNode, const o3tl::sorted_vector< sal_uInt16 > &rSetArr)
Definition: rolbck.cxx:829
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:899
SfxItemSet m_OldSet
Definition: rolbck.hxx:310
virtual OUString GetDescription() const override
Definition: rolbck.cxx:484
const sal_Int32 m_nStart
Definition: rolbck.hxx:208
const std::unique_ptr< SwUndoSaveSection, o3tl::default_delete< SwUndoSaveSection > > m_pUndo
Definition: rolbck.hxx:205
SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:207
virtual ~SwHistorySetFootnote() override
Definition: rolbck.cxx:489
const bool m_bEndNote
Definition: rolbck.hxx:209
const OUString m_FootnoteNumber
Definition: rolbck.hxx:206
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:493
SwHistorySetFootnote(SwTextFootnote *pTextFootnote, SwNodeOffset nNode)
Definition: rolbck.cxx:448
const SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:97
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: rolbck.cxx:150
virtual ~SwHistorySetFormat() override
Definition: rolbck.cxx:197
virtual OUString GetDescription() const override
Definition: rolbck.cxx:118
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:165
std::unique_ptr< SfxPoolItem > m_pAttr
Definition: rolbck.hxx:96
SwHistorySetFormat(const SfxPoolItem *pFormatHt, SwNodeOffset nNode)
Definition: rolbck.cxx:78
const sal_Int32 m_nEnd
Definition: rolbck.hxx:160
SwHistorySetRefMark(const SwTextRefMark *pTextHt, SwNodeOffset nNode)
Definition: rolbck.cxx:341
const OUString m_RefName
Definition: rolbck.hxx:157
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:350
const OUString & GetRefName()
Definition: rolbck.hxx:165
const sal_Int32 m_nStart
Definition: rolbck.hxx:159
const SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:158
const TOXTypes m_eTOXTypes
Definition: rolbck.hxx:172
bool IsEqual(const SwTOXMark &rCmp) const
Definition: rolbck.cxx:418
static SwTOXType * GetSwTOXType(SwDoc &rDoc, TOXTypes eTOXTypes, const OUString &rTOXName)
Definition: rolbck.cxx:380
const sal_Int32 m_nEnd
Definition: rolbck.hxx:175
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:402
const sal_Int32 m_nStart
Definition: rolbck.hxx:174
SwTOXMark m_TOXMark
Definition: rolbck.hxx:170
SwHistorySetTOXMark(const SwTextTOXMark *pTextHt, SwNodeOffset nNode)
Definition: rolbck.cxx:368
const SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:173
const OUString m_TOXName
Definition: rolbck.hxx:171
SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:142
SwFieldIds m_nFieldWhich
Definition: rolbck.hxx:144
virtual ~SwHistorySetTextField() override
Definition: rolbck.cxx:309
virtual OUString GetDescription() const override
Definition: rolbck.cxx:304
const std::unique_ptr< SwFormatField > m_pField
Definition: rolbck.hxx:140
std::unique_ptr< SwFieldType > m_pFieldType
! beware of the order for the declaration of the unique_ptrs.
Definition: rolbck.hxx:139
SwHistorySetTextField(const SwTextField *pTextField, SwNodeOffset nNode)
Definition: rolbck.cxx:283
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:313
std::unique_ptr< SfxPoolItem > m_pAttr
Definition: rolbck.hxx:121
const sal_Int32 m_nEnd
Definition: rolbck.hxx:124
bool m_bFormatIgnoreEnd
Definition: rolbck.hxx:126
const SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:122
virtual ~SwHistorySetText() override
Definition: rolbck.cxx:246
SwHistorySetText(SwTextAttr *pTextHt, SwNodeOffset nNode)
Definition: rolbck.cxx:222
const sal_Int32 m_nStart
Definition: rolbck.hxx:123
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:250
bool m_bFormatIgnoreStart
Definition: rolbck.hxx:125
History object containing all information used during undo / redo of text form field insertion.
Definition: rolbck.hxx:291
const sal_Int32 m_nStartContent
Definition: rolbck.hxx:301
const sal_Int32 m_nEndContent
Definition: rolbck.hxx:303
const OUString m_sType
Definition: rolbck.hxx:299
const SwNodeOffset m_nStartNode
Definition: rolbck.hxx:300
virtual void SetInDoc(SwDoc *pDoc, bool) override
Definition: rolbck.cxx:787
sal_Int32 m_nSepContent
Definition: rolbck.hxx:305
const SwNodeOffset m_nEndNode
Definition: rolbck.hxx:302
SwHistoryTextFieldmark(const ::sw::mark::IFieldmark &rFieldMark)
Definition: rolbck.cxx:773
void ResetInDoc(SwDoc &rDoc)
Definition: rolbck.cxx:813
SwNodeOffset m_nSepNode
Definition: rolbck.hxx:304
const OUString m_sName
Definition: rolbck.hxx:298
SwUndoDelLayFormat * GetUDelLFormat()
Definition: rolbck.hxx:241
SwHistoryTextFlyCnt(SwFrameFormat *const pFlyFormat)
Definition: rolbck.cxx:572
virtual ~SwHistoryTextFlyCnt() override
Definition: rolbck.cxx:580
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
Definition: rolbck.cxx:584
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: rolbck.cxx:592
std::unique_ptr< SwUndoDelLayFormat > m_pUndo
Definition: rolbck.hxx:235
void CopyFormatAttr(const SfxItemSet &rSet, SwNodeOffset nNodeIdx)
Definition: rolbck.cxx:1263
void CopyAttr(SwpHints const *pHts, const SwNodeOffset nNodeIdx, const sal_Int32 nStart, const sal_Int32 nEnd, const bool bCopyFields)
Definition: rolbck.cxx:1299
sal_uInt16 Count() const
Definition: rolbck.hxx:381
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: rolbck.cxx:1284
void AddDeleteFly(SwFrameFormat &, sal_uInt16 &rSetPos)
Definition: rolbck.cxx:1150
std::vector< std::unique_ptr< SwHistoryHint > > m_SwpHstry
Definition: rolbck.hxx:359
SwHistoryHint * operator[](sal_uInt16 nPos)
Definition: rolbck.hxx:384
sal_uInt16 SetTmpEnd(sal_uInt16 nTmpEnd)
Definition: rolbck.cxx:1242
void Add(const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue, SwNodeOffset nNodeIdx)
Definition: rolbck.cxx:1029
~SwHistory()
Definition: rolbck.cxx:1025
SwHistoryHint const * operator[](sal_uInt16 nPos) const
Definition: rolbck.hxx:385
sal_uInt16 m_nEndDiff
Definition: rolbck.hxx:360
bool TmpRollback(SwDoc *pDoc, sal_uInt16 nStart, bool ToFirst=true)
Definition: rolbck.cxx:1217
void AddChangeFlyAnchor(sw::SpzFrameFormat &rFormat)
Definition: rolbck.cxx:1144
bool Rollback(SwDoc *pDoc, sal_uInt16 nStart=0)
Definition: rolbck.cxx:1202
void Move(sal_uInt16 nPos, SwHistory *pIns, sal_uInt16 const nStart=0)
Definition: rolbck.hxx:389
sal_uInt16 GetTmpEnd() const
Definition: rolbck.hxx:382
Base class of the Writer document model elements.
Definition: node.hxx:98
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
Definition: rolbck.cxx:1380
SwRegHistory(SwHistory *pHst)
Definition: rolbck.cxx:1355
SwHistory *const m_pHistory
Definition: rolbck.hxx:418
o3tl::sorted_vector< sal_uInt16 > m_WhichIdSet
Definition: rolbck.hxx:417
void MakeSetWhichIds()
Definition: rolbck.cxx:1504
SwNodeOffset m_nNodeIndex
Definition: rolbck.hxx:419
bool InsertItems(const SfxItemSet &rSet, sal_Int32 const nStart, sal_Int32 const nEnd, SetAttrMode const nFlags, SwTextAttr **ppNewTextAttr)
Definition: rolbck.cxx:1430
void ChangeNodeIndex(SwNodeOffset nNew)
Definition: rolbck.hxx:438
void AddHint(SwTextAttr *pHt, const bool bNew)
Definition: rolbck.cxx:1425
void RegisterInModify(sw::BroadcastingModify *pRegIn, const SwNode &rNd)
Definition: rolbck.cxx:1490
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
Definition: txatbase.hxx:44
SwTextAttr subclass for footnotes and endnotes.
Definition: txtftn.hxx:34
An SwTextAttr container, stores all directly formatted text portions for a text node.
Definition: ndhints.hxx:68
struct _xmlTextWriter * xmlTextWriterPtr
SwFieldIds
Definition: fldbas.hxx:49
sal_uInt16 nPos
Dialog to specify the properties of date form field.
SwNodeType
Definition: ndtyp.hxx:28
struct _xmlTextWriter * xmlTextWriterPtr
Definition: rolbck.hxx:59
HISTORY_HINT
Definition: rolbck.hxx:61
@ HSTRY_CHGFLYANCHOR
Definition: rolbck.hxx:74
@ HSTRY_BOOKMARK
Definition: rolbck.hxx:72
@ HSTRY_SETFTNHNT
Definition: rolbck.hxx:69
@ HSTRY_SETTOXMARKHNT
Definition: rolbck.hxx:67
@ HSTRY_CHGFLYCHAIN
Definition: rolbck.hxx:75
@ HSTRY_CHGFMTCOLL
Definition: rolbck.hxx:70
@ HSTRY_NOTEXTFIELDMARK
Definition: rolbck.hxx:77
@ HSTRY_SETTXTHNT
Definition: rolbck.hxx:64
@ HSTRY_RESETTXTHNT
Definition: rolbck.hxx:68
@ HSTRY_SETFMTHNT
Definition: rolbck.hxx:62
@ HSTRY_SETTXTFLDHNT
Definition: rolbck.hxx:65
@ HSTRY_SETREFMARKHNT
Definition: rolbck.hxx:66
@ HSTRY_RESETFMTHNT
Definition: rolbck.hxx:63
@ HSTRY_FLYCNT
Definition: rolbck.hxx:71
@ HSTRY_CHGCHARFMT
Definition: rolbck.hxx:76
@ HSTRY_SETATTRSET
Definition: rolbck.hxx:73
@ HSTRY_TEXTFIELDMARK
Definition: rolbck.hxx:78
SetAttrMode
Definition: swtypes.hxx:133
TOXTypes
Definition: toxe.hxx:40