29 #include <strings.hrc>
33 :
SwUndo(nUndoId, &rDoc), m_pNew(_pNew),
34 m_rDoc(rDoc), m_pNewSet(
nullptr), m_nId(0), m_bAuto(
false)
37 m_sDerivedFrom = _pDerivedFrom->
GetName();
104 m_bAuto = _pOld->
IsAuto();
147 const OUString & _sOldName,
148 const OUString & _sNewName,
150 :
SwUndo(nUndoId, &rDoc), m_sOldName(_sOldName),
151 m_sNewName(_sNewName),
m_rDoc(rDoc)
255 const OUString & sInitNewName,
309 const OUString & sInitNewName,
363 const OUString & sInitNewName,
377 m_bInitialized(false)
438 const OUString & _aNewName,
SwTextFormatColl * MakeTextFormatColl(const OUString &rFormatName, SwTextFormatColl *pDerivedFrom, bool bBroadcast=false)
Create the FormatCollections.
Represents the style of a paragraph.
SwCharFormat * FindCharFormatByName(std::u16string_view rName) const
SwCharFormat * MakeCharFormat(const OUString &rFormatName, SwCharFormat *pDerivedFrom, bool bBroadcast=false)
const sal_uInt16 COLL_GET_RANGE_BITS
SwUndoCondTextFormatCollDelete(SwTextFormatColl const *pOld, SwDoc &rDoc)
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
SwFrameFormat * MakeFrameFormat(const OUString &rFormatName, SwFrameFormat *pDerivedFrom, bool bBroadcast=false, bool bAuto=true)
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
const OUString & GetName() const
virtual void Delete(SwFormat *pFormat) override
void RenameFormat(SwFormat &rFormat, const OUString &sNewName, bool bBroadcast=false)
SwFrameFormat * FindFrameFormatByName(std::u16string_view rName) const
SwUndoCondTextFormatCollCreate(SwConditionTextFormatColl *pNew, SwTextFormatColl const *pDerivedFrom, SwDoc &rDoc)
void DelCharFormat(size_t nFormat, bool bBroadcast=false)
Delete the formats.
bool RenameNumRule(const OUString &aOldName, const OUString &aNewName, bool bBroadcast=false)
virtual SwFormat * Create(SwFormat *pDerivedFrom) override
void DelTextFormatColl(size_t nFormat, bool bBroadcast=false)
virtual void RedoImpl(::sw::UndoRedoContext &) override
SwRewriter GetRewriter() const override
Returns the rewriter for this object.
SwUndoNumruleCreate(const SwNumRule *pNew, SwDoc &rDoc)
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void RedoImpl(::sw::UndoRedoContext &) override
void AddRule(SwUndoArg eWhat, const OUString &rWith)
OUString SwResId(const char *pId)
SwUndoTextFormatCollDelete(SwTextFormatColl const *pOld, SwDoc &rDoc)
virtual void Delete() override
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwTextFormatColl * FindTextFormatCollByName(std::u16string_view rName) const
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwConditionTextFormatColl * MakeCondTextFormatColl(const OUString &rFormatName, SwTextFormatColl *pDerivedFrom, bool bBroadcast=false)
SwRewriter GetRewriter() const override
Returns the rewriter for this object.
sal_uInt16 MakeNumRule(const OUString &rName, const SwNumRule *pCpy=nullptr, bool bBroadcast=false, const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode=SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
void ChgFormat(SwFormat &rFormat, const SfxItemSet &rSet)
void DelFrameFormat(SwFrameFormat *pFormat, bool bBroadcast=false)
virtual SwFormat * Find(const OUString &rName) const override
SwUndoTextFormatCollCreate(SwTextFormatColl *pNew, SwTextFormatColl const *pDerivedFrom, SwDoc &rDoc)
bool DelNumRule(const OUString &rName, bool bBroadCast=false)
virtual SwFormat * Find(const OUString &rName) const override
SwUndoNumruleRename(const OUString &aOldName, const OUString &aNewName, SwDoc &rDoc)
SwUndoNumruleDelete(const SwNumRule &rRule, SwDoc &rDoc)
SwRewriter GetRewriter() const override
Returns the rewriter for this object.
virtual SwFormat * Create(SwFormat *pDerivedFrom) override