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