LibreOffice Module sw (master)  1
SwUndoFmt.cxx
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 
20 #include <poolfmt.hxx>
21 #include <charfmt.hxx>
22 #include <frmfmt.hxx>
23 #include <SwUndoFmt.hxx>
24 #include <SwRewriter.hxx>
25 #include <swundo.hxx>
26 #include <undobj.hxx>
27 #include <fmtcol.hxx>
28 #include <doc.hxx>
29 #include <strings.hrc>
30 
32 (SwUndoId nUndoId, SwFormat * _pNew, SwFormat const * _pDerivedFrom, SwDoc * _pDoc)
33  : SwUndo(nUndoId, _pDoc), m_pNew(_pNew),
34  m_pDoc(_pDoc), m_pNewSet(nullptr), m_nId(0), m_bAuto(false)
35 {
36  if (_pDerivedFrom)
37  m_sDerivedFrom = _pDerivedFrom->GetName();
38 }
39 
41 {
42 }
43 
45 {
46  if (!m_pNew)
47  return;
48 
49  if (m_sNewName.isEmpty())
51 
52  if (!m_sNewName.isEmpty())
54 
55  if (m_pNew)
56  {
59  m_bAuto = m_pNew->IsAuto();
60 
61  Delete();
62  }
63 }
64 
66 {
67  SwFormat * pDerivedFrom = Find(m_sDerivedFrom);
68  SwFormat * pFormat = Create(pDerivedFrom);
69 
70  if (pFormat && m_pNewSet)
71  {
72  pFormat->SetAuto(m_bAuto);
73  m_pDoc->ChgFormat(*pFormat, *m_pNewSet);
74  pFormat->SetPoolFormatId((pFormat->GetPoolFormatId()
76  | m_nId);
77 
78  m_pNew = pFormat;
79  }
80  else
81  m_pNew = nullptr;
82 }
83 
85 {
86  if (m_sNewName.isEmpty() && m_pNew)
88 
89  SwRewriter aRewriter;
90 
91  aRewriter.AddRule(UndoArg1, m_sNewName);
92 
93  return aRewriter;
94 }
95 
97 (SwUndoId nUndoId, SwFormat const * _pOld, SwDoc * _pDoc)
98  : SwUndo(nUndoId, _pDoc),
99  m_pDoc(_pDoc), m_sOldName(_pOld->GetName()),
100  m_aOldSet(_pOld->GetAttrSet())
101 {
102  m_sDerivedFrom = _pOld->DerivedFrom()->GetName();
104  m_bAuto = _pOld->IsAuto();
105 }
106 
108 {
109 }
110 
112 {
113  SwFormat * pDerivedFrom = Find(m_sDerivedFrom);
114 
115  SwFormat * pFormat = Create(pDerivedFrom);
116 
117  if (pFormat)
118  {
119  m_pDoc->ChgFormat(*pFormat, m_aOldSet);
120  pFormat->SetAuto(m_bAuto);
121  pFormat->SetPoolFormatId((pFormat->GetPoolFormatId() &
123  | m_nId);
124  }
125 }
126 
128 {
129  SwFormat * pOld = Find(m_sOldName);
130 
131  if (pOld)
132  {
133  Delete(pOld);
134  }
135 }
136 
138 {
139  SwRewriter aRewriter;
140 
141  aRewriter.AddRule(UndoArg1, m_sOldName);
142 
143  return aRewriter;
144 }
145 
147  const OUString & _sOldName,
148  const OUString & _sNewName,
149  SwDoc * _pDoc)
150  : SwUndo(nUndoId, _pDoc), m_sOldName(_sOldName),
151  m_sNewName(_sNewName), m_pDoc(_pDoc)
152 {
153 }
154 
156 {
157 }
158 
160 {
161  SwFormat * pFormat = Find(m_sNewName);
162 
163  if (pFormat)
164  {
165  m_pDoc->RenameFormat(*pFormat, m_sOldName, true);
166  }
167 }
168 
170 {
171  SwFormat * pFormat = Find(m_sOldName);
172 
173  if (pFormat)
174  {
175  m_pDoc->RenameFormat(*pFormat, m_sNewName, true);
176  }
177 }
178 
180 {
181  SwRewriter aRewriter;
182 
183  aRewriter.AddRule(UndoArg1, m_sOldName);
184  aRewriter.AddRule(UndoArg2, SwResId(STR_YIELDS));
185  aRewriter.AddRule(UndoArg3, m_sNewName);
186 
187  return aRewriter;
188 }
189 
191 (SwTextFormatColl * _pNew, SwTextFormatColl const * _pDerivedFrom, SwDoc * _pDoc)
192  : SwUndoFormatCreate(SwUndoId::TXTFMTCOL_CREATE, _pNew, _pDerivedFrom, _pDoc)
193 {
194 }
195 
197 {
198  return m_pDoc->MakeTextFormatColl(m_sNewName, static_cast<SwTextFormatColl *>(pDerivedFrom), true);
199 }
200 
202 {
203  m_pDoc->DelTextFormatColl(static_cast<SwTextFormatColl *>(m_pNew), true);
204 }
205 
206 SwFormat * SwUndoTextFormatCollCreate::Find(const OUString & rName) const
207 {
208  return m_pDoc->FindTextFormatCollByName(rName);
209 }
210 
212  SwDoc * _pDoc)
214 {
215 }
216 
218 {
219  return m_pDoc->MakeTextFormatColl(m_sOldName, static_cast<SwTextFormatColl *>(pDerivedFrom), true);
220 }
221 
223 {
224  m_pDoc->DelTextFormatColl(static_cast<SwTextFormatColl *>(pOld), true);
225 }
226 
227 SwFormat * SwUndoTextFormatCollDelete::Find(const OUString & rName) const
228 {
229  return m_pDoc->FindTextFormatCollByName(rName);
230 }
231 
233  SwTextFormatColl const *_pDerivedFrom, SwDoc *_pDoc)
234  : SwUndoTextFormatCollCreate(_pNew, _pDerivedFrom, _pDoc)
235 {
236 }
237 
239 {
240  return m_pDoc->MakeCondTextFormatColl(m_sNewName, static_cast<SwTextFormatColl *>(pDerivedFrom), true);
241 }
242 
244  SwDoc * _pDoc)
245  : SwUndoTextFormatCollDelete(_pOld, _pDoc)
246 {
247 }
248 
250 {
251  return m_pDoc->MakeCondTextFormatColl(m_sOldName, static_cast<SwTextFormatColl *>(pDerivedFrom), true);
252 }
253 
255  const OUString & sInitNewName,
256  SwDoc * _pDoc)
257  : SwUndoRenameFormat(SwUndoId::TXTFMTCOL_RENAME, sInitOldName, sInitNewName, _pDoc)
258 {
259 }
260 
261 SwFormat * SwUndoRenameFormatColl::Find(const OUString & rName) const
262 {
263  return m_pDoc->FindTextFormatCollByName(rName);
264 }
265 
267  SwCharFormat const * pDerivedFrom,
268  SwDoc * pDocument)
269  : SwUndoFormatCreate(SwUndoId::CHARFMT_CREATE, pNewFormat, pDerivedFrom, pDocument)
270 {
271 }
272 
274 {
275  return m_pDoc->MakeCharFormat(m_sNewName, static_cast<SwCharFormat *>(pDerivedFrom), true);
276 }
277 
279 {
280  m_pDoc->DelCharFormat(static_cast<SwCharFormat *>(m_pNew), true);
281 }
282 
283 SwFormat * SwUndoCharFormatCreate::Find(const OUString & rName) const
284 {
285  return m_pDoc->FindCharFormatByName(rName);
286 }
287 
289  : SwUndoFormatDelete(SwUndoId::CHARFMT_DELETE, pOld, pDocument)
290 {
291 }
292 
294 {
295  return m_pDoc->MakeCharFormat(m_sOldName, static_cast<SwCharFormat *>(pDerivedFrom), true);
296 }
297 
299 {
300  m_pDoc->DelCharFormat(static_cast<SwCharFormat *>(pFormat), true);
301 }
302 
303 SwFormat * SwUndoCharFormatDelete::Find(const OUString & rName) const
304 {
305  return m_pDoc->FindCharFormatByName(rName);
306 }
307 
309  const OUString & sInitNewName,
310  SwDoc * pDocument)
311  : SwUndoRenameFormat(SwUndoId::CHARFMT_RENAME, sInitOldName, sInitNewName, pDocument)
312 {
313 }
314 
315 SwFormat * SwUndoRenameCharFormat::Find(const OUString & rName) const
316 {
317  return m_pDoc->FindCharFormatByName(rName);
318 }
319 
321  SwFrameFormat const * pDerivedFrom,
322  SwDoc * pDocument)
323  : SwUndoFormatCreate(SwUndoId::FRMFMT_CREATE, pNewFormat, pDerivedFrom, pDocument)
324 {
325 }
326 
328 {
329  return m_pDoc->MakeFrameFormat(m_sNewName, static_cast<SwFrameFormat *>(pDerivedFrom), true, m_pNew->IsAuto());
330 }
331 
333 {
334  m_pDoc->DelFrameFormat(static_cast<SwFrameFormat *>(m_pNew), true);
335 }
336 
337 SwFormat * SwUndoFrameFormatCreate::Find(const OUString & rName) const
338 {
339  return m_pDoc->FindFrameFormatByName(rName);
340 }
341 
343  : SwUndoFormatDelete(SwUndoId::FRMFMT_DELETE, pOld, pDocument)
344 {
345 }
346 
348 {
349  return m_pDoc->MakeFrameFormat(m_sOldName, static_cast<SwFrameFormat *>(pDerivedFrom), true);
350 }
351 
353 {
354  m_pDoc->DelFrameFormat(static_cast<SwFrameFormat *>(pFormat), true);
355 }
356 
357 SwFormat * SwUndoFrameFormatDelete::Find(const OUString & rName) const
358 {
359  return m_pDoc->FindFrameFormatByName(rName);
360 }
361 
363  const OUString & sInitNewName,
364  SwDoc * pDocument)
365  : SwUndoRenameFormat(SwUndoId::FRMFMT_RENAME, sInitOldName, sInitNewName, pDocument)
366 {
367 }
368 
369 SwFormat * SwUndoRenameFrameFormat::Find(const OUString & rName) const
370 {
371  return m_pDoc->FindFrameFormatByName(rName);
372 }
373 
375  SwDoc * _pDoc)
376  : SwUndo(SwUndoId::NUMRULE_CREATE, _pDoc), m_pNew(_pNew), m_aNew(*_pNew), m_pDoc(_pDoc),
377  m_bInitialized(false)
378 {
379 }
380 
382 {
383  if (! m_bInitialized)
384  {
385  m_aNew = *m_pNew;
386  m_bInitialized = true;
387  }
388 
389  m_pDoc->DelNumRule(m_aNew.GetName(), true);
390 }
391 
393 {
394  m_pDoc->MakeNumRule(m_aNew.GetName(), &m_aNew, true);
395 }
396 
398 {
399  SwRewriter aResult;
400 
401  if (! m_bInitialized)
402  {
403  m_aNew = *m_pNew;
404  m_bInitialized = true;
405  }
406 
407  aResult.AddRule(UndoArg1, m_aNew.GetName());
408 
409  return aResult;
410 }
411 
413  SwDoc * _pDoc)
414  : SwUndo(SwUndoId::NUMRULE_DELETE, _pDoc), m_aOld(rRule), m_pDoc(_pDoc)
415 {
416 }
417 
419 {
420  m_pDoc->MakeNumRule(m_aOld.GetName(), &m_aOld, true);
421 }
422 
424 {
425  m_pDoc->DelNumRule(m_aOld.GetName(), true);
426 }
427 
429 {
430  SwRewriter aResult;
431 
432  aResult.AddRule(UndoArg1, m_aOld.GetName());
433 
434  return aResult;
435 }
436 
437 SwUndoNumruleRename::SwUndoNumruleRename(const OUString & _aOldName,
438  const OUString & _aNewName,
439  SwDoc * _pDoc)
440  : SwUndo(SwUndoId::NUMRULE_RENAME, _pDoc), m_aOldName(_aOldName), m_aNewName(_aNewName),
441  m_pDoc(_pDoc)
442 {
443 }
444 
446 {
448 }
449 
451 {
453 }
454 
456 {
457  SwRewriter aRewriter;
458 
459  aRewriter.AddRule(UndoArg1, m_aOldName);
460  aRewriter.AddRule(UndoArg2, SwResId(STR_YIELDS));
461  aRewriter.AddRule(UndoArg3, m_aNewName);
462 
463  return aRewriter;
464 }
465 
466 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwFormat * m_pNew
Definition: SwUndoFmt.hxx:35
SwTextFormatColl * MakeTextFormatColl(const OUString &rFormatName, SwTextFormatColl *pDerivedFrom, bool bBroadcast=false)
Create the FormatCollections.
Definition: docfmt.cxx:877
virtual ~SwUndoFormatCreate() override
Definition: SwUndoFmt.cxx:40
virtual void Delete(SwFormat *pFormat) override
Definition: SwUndoFmt.cxx:352
Represents the style of a paragraph.
Definition: fmtcol.hxx:55
virtual void UndoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:159
SwUndoNumruleDelete(const SwNumRule &aRule, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:412
SwCharFormat * MakeCharFormat(const OUString &rFormatName, SwCharFormat *pDerivedFrom, bool bBroadcast=false)
Definition: docfmt.cxx:843
SwUndoId
Definition: swundo.hxx:29
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:369
virtual void RedoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:127
SwUndoFrameFormatDelete(SwFrameFormat const *pOld, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:342
const sal_uInt16 COLL_GET_RANGE_BITS
Definition: poolfmt.hxx:72
SwTextFormatColl * FindTextFormatCollByName(const OUString &rName) const
Definition: doc.hxx:796
virtual void RedoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:169
sal_uInt16 m_nId
Definition: SwUndoFmt.hxx:40
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
Definition: SwUndoFmt.cxx:238
SfxItemSet m_aOldSet
Definition: SwUndoFmt.hxx:64
SwFrameFormat * MakeFrameFormat(const OUString &rFormatName, SwFrameFormat *pDerivedFrom, bool bBroadcast=false, bool bAuto=true)
Definition: docfmt.cxx:809
OUString m_sDerivedFrom
Definition: SwUndoFmt.hxx:36
Definition: doc.hxx:184
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
Definition: SwUndoFmt.cxx:217
const OUString & GetName() const
Definition: numrule.hxx:222
virtual void Delete(SwFormat *pFormat) override
Definition: SwUndoFmt.cxx:222
void RenameFormat(SwFormat &rFormat, const OUString &sNewName, bool bBroadcast=false)
Definition: docfmt.cxx:1892
SwUndoFrameFormatCreate(SwFrameFormat *pNew, SwFrameFormat const *pDerivedFrom, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:320
SwUndoFormatDelete(SwUndoId nUndoId, SwFormat const *pOld, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:97
SwFrameFormat * FindFrameFormatByName(const OUString &rName) const
Definition: docfmt.cxx:734
SwDoc * m_pDoc
Definition: docbm.cxx:1190
void DelCharFormat(size_t nFormat, bool bBroadcast=false)
Delete the formats.
Definition: docfmt.cxx:659
void SetPoolFormatId(sal_uInt16 nId)
Definition: format.hxx:144
virtual void Delete()=0
virtual void Delete(SwFormat *pFormat)=0
virtual ~SwUndoRenameFormat() override
Definition: SwUndoFmt.cxx:155
const OUString & GetName() const
Definition: format.hxx:111
virtual SwFormat * Create(SwFormat *pDerivedFrom)=0
SwUndoTextFormatCollDelete(SwTextFormatColl const *pOld, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:211
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:337
bool RenameNumRule(const OUString &aOldName, const OUString &aNewName, bool bBroadcast=false)
Definition: docnum.cxx:1108
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
Definition: SwUndoFmt.cxx:249
sal_uInt16 m_nId
Definition: SwUndoFmt.hxx:65
sal_uInt16 GetPoolFormatId() const
Get and set Pool style IDs.
Definition: format.hxx:143
SwUndoCondTextFormatCollCreate(SwConditionTextFormatColl *pNew, SwTextFormatColl const *pDerivedFrom, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:232
Base class for various Writer styles.
Definition: format.hxx:43
SwUndoRenameFormatColl(const OUString &sOldName, const OUString &sNewName, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:254
void DelTextFormatColl(size_t nFormat, bool bBroadcast=false)
Definition: docfmt.cxx:948
SwUndoNumruleCreate(const SwNumRule *pNew, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:374
virtual void RedoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:392
SwRewriter GetRewriter() const override
Returns the rewriter for this object.
Definition: SwUndoFmt.cxx:455
OUString m_sOldName
Definition: SwUndoFmt.hxx:85
SfxItemSet * m_pNewSet
Definition: SwUndoFmt.hxx:39
Style of a layout element.
Definition: frmfmt.hxx:57
SwUndoCharFormatCreate(SwCharFormat *pNew, SwCharFormat const *pDerivedFrom, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:266
virtual void UndoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:418
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
Definition: SwUndoFmt.cxx:273
virtual void RedoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:450
virtual void UndoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:111
void SetAuto(bool bNew)
Definition: format.hxx:159
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:315
OUString m_sNewName
Definition: SwUndoFmt.hxx:38
SwRewriter GetRewriter() const override
Returns the rewriter for this object.
Definition: SwUndoFmt.cxx:179
SwUndoNumruleRename(const OUString &aOldName, const OUString &aNewName, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:437
virtual void RedoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:423
void AddRule(SwUndoArg eWhat, const OUString &rWith)
Definition: SwRewriter.cxx:29
virtual SwFormat * Find(const OUString &rName) const =0
virtual void Delete() override
Definition: SwUndoFmt.cxx:278
OUString SwResId(const char *pId)
Definition: swmodule.cxx:165
virtual void RedoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:65
OUString m_sDerivedFrom
Definition: SwUndoFmt.hxx:61
virtual void Delete() override
Definition: SwUndoFmt.cxx:201
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
Definition: SwUndoFmt.cxx:347
virtual SwFormat * Find(const OUString &rName) const =0
virtual void UndoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:445
SwUndoFormatCreate(SwUndoId nUndoId, SwFormat *pNew, SwFormat const *pDerivedFrom, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:32
SwCharFormat * FindCharFormatByName(const OUString &rName) const
Definition: doc.hxx:768
SwFormat * DerivedFrom() const
Definition: format.hxx:108
const SwNumRule * m_pNew
Definition: SwUndoFmt.hxx:211
SwUndoRenameFormat(SwUndoId nUndoId, const OUString &sOldName, const OUString &sNewName, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:146
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:283
SwUndoCondTextFormatCollDelete(SwTextFormatColl const *pOld, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:243
SwUndoRenameCharFormat(const OUString &sOldName, const OUString &sNewName, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:308
virtual void UndoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:381
virtual ~SwUndoFormatDelete() override
Definition: SwUndoFmt.cxx:107
OUString m_sOldName
Definition: SwUndoFmt.hxx:63
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
Definition: SwUndoFmt.cxx:327
SwConditionTextFormatColl * MakeCondTextFormatColl(const OUString &rFormatName, SwTextFormatColl *pDerivedFrom, bool bBroadcast=false)
Definition: docfmt.cxx:911
SwRewriter GetRewriter() const override
Returns the rewriter for this object.
Definition: SwUndoFmt.cxx:428
sal_uInt16 MakeNumRule(const OUString &rName, const SwNumRule *pCpy=nullptr, bool bBroadcast=false, const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode=SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
Definition: docnum.cxx:2450
SwUndoCharFormatDelete(SwCharFormat const *pOld, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:288
void ChgFormat(SwFormat &rFormat, const SfxItemSet &rSet)
Definition: docfmt.cxx:1860
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
Definition: SwUndoFmt.cxx:293
virtual void UndoImpl(::sw::UndoRedoContext &) override
Definition: SwUndoFmt.cxx:44
void DelFrameFormat(SwFrameFormat *pFormat, bool bBroadcast=false)
Definition: docfmt.cxx:686
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:357
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:206
virtual void Delete() override
Definition: SwUndoFmt.cxx:332
SwUndoRenameFrameFormat(const OUString &sOldName, const OUString &sNewName, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:362
bool DelNumRule(const OUString &rName, bool bBroadCast=false)
Definition: docnum.cxx:1046
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:116
virtual SwRewriter GetRewriter() const override
Returns the rewriter for this object.
Definition: SwUndoFmt.cxx:84
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:303
SwUndoTextFormatCollCreate(SwTextFormatColl *pNew, SwTextFormatColl const *pDerivedFrom, SwDoc *pDoc)
Definition: SwUndoFmt.cxx:191
virtual void Delete(SwFormat *pFormat) override
Definition: SwUndoFmt.cxx:298
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:227
OUString m_sNewName
Definition: SwUndoFmt.hxx:85
virtual SwRewriter GetRewriter() const override
Returns the rewriter for this object.
Definition: SwUndoFmt.cxx:137
virtual SwFormat * Find(const OUString &rName) const =0
bool IsAuto() const
Query / set AutoFormat-flag.
Definition: format.hxx:158
sal_uInt32 m_nId
virtual SwFormat * Create(SwFormat *pDerivedFrom)=0
SwRewriter GetRewriter() const override
Returns the rewriter for this object.
Definition: SwUndoFmt.cxx:397
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
Definition: SwUndoFmt.cxx:196
virtual SwFormat * Find(const OUString &rName) const override
Definition: SwUndoFmt.cxx:261