19#ifndef INCLUDED_SW_SOURCE_CORE_INC_ROLBCK_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_ROLBCK_HXX
34 class MetadatableUndo;
205 const std::unique_ptr<SwUndoSaveSection, o3tl::default_delete<SwUndoSaveSection>>
m_pUndo;
250 bool bSavePos,
bool bSaveOtherPos);
375 void Add( const ::sw::mark::IMark&,
bool bSavePos,
bool bSaveOtherPos );
383 sal_uInt16
SetTmpEnd( sal_uInt16 nTmpEnd );
390 sal_uInt16
const nStart = 0)
392 auto itSourceBegin = pIns->
m_SwpHstry.begin() + nStart;
394 if (itSourceBegin == itSourceEnd)
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 );
405 const sal_Int32 nStart,
406 const sal_Int32 nEnd,
407 const bool bCopyFields );
431 sal_Int32
const nStart, sal_Int32
const nEnd,
Instances of SwFields and those derived from it occur 0 to n times.
const OUString & GetName() const
const bool m_bSaveOtherPos
SwHistoryBookmark(const ::sw::mark::IMark &rBkmk, bool bSavePos, bool bSaveOtherPos)
const SwNodeOffset m_nNode
OUString m_aHideCondition
const bool m_bHadOtherPos
std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo
const sal_Int32 m_nOtherContent
virtual void SetInDoc(SwDoc *pDoc, bool) override
bool IsEqualBookmark(const ::sw::mark::IMark &rBkmk)
const SwNodeOffset m_nOtherNode
const IDocumentMarkAccess::MarkType m_eBkmkType
const sal_Int32 m_nContent
SwHistoryChangeCharFormat(SfxItemSet aSet, OUString sFormat)
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
const SfxItemSet m_OldSet
const sal_Int32 m_nOldContentIndex
sw::SpzFrameFormat & m_rFormat
const SwNodeOffset m_nOldNodeIndex
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
SwHistoryChangeFlyAnchor(sw::SpzFrameFormat &rFormat)
SwHistoryChangeFlyChain(SwFlyFrameFormat &rFormat, const SwFormatChain &rAttr)
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
SwFlyFrameFormat *const m_pPrevFormat
SwFlyFrameFormat *const m_pFlyFormat
SwFlyFrameFormat *const m_pNextFormat
const SwNodeType m_nNodeType
const SwNodeOffset m_nNodeIndex
SwFormatColl *const m_pColl
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
SwHistoryChangeFormatColl(SwFormatColl *pColl, SwNodeOffset nNode, SwNodeType nNodeWhich)
const HISTORY_HINT m_eWhichId
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
HISTORY_HINT Which() const
virtual OUString GetDescription() const
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet)=0
SwHistoryHint(HISTORY_HINT eWhich)
History object containing all information used during undo / redo of checkbox and drop-down form fiel...
virtual void SetInDoc(SwDoc *pDoc, bool) override
void ResetInDoc(SwDoc &rDoc)
const SwNodeOffset m_nNode
SwHistoryNoTextFieldmark(const ::sw::mark::IFieldmark &rFieldMark)
const sal_Int32 m_nContent
const SwNodeOffset m_nNodeIndex
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
const sal_uInt16 m_nWhich
SwHistoryResetFormat(const SfxPoolItem *pFormatHt, SwNodeOffset nNodeIdx)
SwHistoryResetText(sal_uInt16 nWhich, sal_Int32 nStt, sal_Int32 nEnd, SwNodeOffset nNode)
sal_uInt16 GetWhich() const
const SwNodeOffset m_nNodeIndex
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
sal_Int32 GetContent() const
SwNodeOffset GetNode() const
const SwNodeOffset m_nNodeIndex
std::vector< sal_uInt16 > m_ResetArray
SwHistorySetAttrSet(const SfxItemSet &rSet, SwNodeOffset nNode, const o3tl::sorted_vector< sal_uInt16 > &rSetArr)
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
const SwNodeOffset m_nNodeIndex
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual ~SwHistorySetFormat() override
virtual OUString GetDescription() const override
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
std::unique_ptr< SfxPoolItem > m_pAttr
SwHistorySetFormat(const SfxPoolItem *pFormatHt, SwNodeOffset nNode)
SwHistorySetRefMark(const SwTextRefMark *pTextHt, SwNodeOffset nNode)
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
const OUString & GetRefName()
const SwNodeOffset m_nNodeIndex
const TOXTypes m_eTOXTypes
bool IsEqual(const SwTOXMark &rCmp) const
static SwTOXType * GetSwTOXType(SwDoc &rDoc, TOXTypes eTOXTypes, const OUString &rTOXName)
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
SwHistorySetTOXMark(const SwTextTOXMark *pTextHt, SwNodeOffset nNode)
const SwNodeOffset m_nNodeIndex
SwNodeOffset m_nNodeIndex
virtual ~SwHistorySetTextField() override
virtual OUString GetDescription() const override
const std::unique_ptr< SwFormatField > m_pField
std::unique_ptr< SwFieldType > m_pFieldType
! beware of the order for the declaration of the unique_ptrs.
SwHistorySetTextField(const SwTextField *pTextField, SwNodeOffset nNode)
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
std::unique_ptr< SfxPoolItem > m_pAttr
const SwNodeOffset m_nNodeIndex
virtual ~SwHistorySetText() override
SwHistorySetText(SwTextAttr *pTextHt, SwNodeOffset nNode)
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
bool m_bFormatIgnoreStart
History object containing all information used during undo / redo of text form field insertion.
const sal_Int32 m_nStartContent
const sal_Int32 m_nEndContent
const SwNodeOffset m_nStartNode
virtual void SetInDoc(SwDoc *pDoc, bool) override
const SwNodeOffset m_nEndNode
SwHistoryTextFieldmark(const ::sw::mark::IFieldmark &rFieldMark)
void ResetInDoc(SwDoc &rDoc)
SwUndoDelLayFormat * GetUDelLFormat()
SwHistoryTextFlyCnt(SwFrameFormat *const pFlyFormat)
virtual ~SwHistoryTextFlyCnt() override
virtual void SetInDoc(SwDoc *pDoc, bool bTmpSet) override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
std::unique_ptr< SwUndoDelLayFormat > m_pUndo
void CopyFormatAttr(const SfxItemSet &rSet, SwNodeOffset nNodeIdx)
void CopyAttr(SwpHints const *pHts, const SwNodeOffset nNodeIdx, const sal_Int32 nStart, const sal_Int32 nEnd, const bool bCopyFields)
void dumpAsXml(xmlTextWriterPtr pWriter) const
void AddDeleteFly(SwFrameFormat &, sal_uInt16 &rSetPos)
std::vector< std::unique_ptr< SwHistoryHint > > m_SwpHstry
SwHistoryHint * operator[](sal_uInt16 nPos)
sal_uInt16 SetTmpEnd(sal_uInt16 nTmpEnd)
void Add(const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue, SwNodeOffset nNodeIdx)
SwHistoryHint const * operator[](sal_uInt16 nPos) const
bool TmpRollback(SwDoc *pDoc, sal_uInt16 nStart, bool ToFirst=true)
void AddChangeFlyAnchor(sw::SpzFrameFormat &rFormat)
bool Rollback(SwDoc *pDoc, sal_uInt16 nStart=0)
void Move(sal_uInt16 nPos, SwHistory *pIns, sal_uInt16 const nStart=0)
sal_uInt16 GetTmpEnd() const
Base class of the Writer document model elements.
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
SwRegHistory(SwHistory *pHst)
SwHistory *const m_pHistory
o3tl::sorted_vector< sal_uInt16 > m_WhichIdSet
SwNodeOffset m_nNodeIndex
bool InsertItems(const SfxItemSet &rSet, sal_Int32 const nStart, sal_Int32 const nEnd, SetAttrMode const nFlags, SwTextAttr **ppNewTextAttr)
void ChangeNodeIndex(SwNodeOffset nNew)
void AddHint(SwTextAttr *pHt, const bool bNew)
void RegisterInModify(sw::BroadcastingModify *pRegIn, const SwNode &rNd)
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
An SwTextAttr container, stores all directly formatted text portions for a text node.
struct _xmlTextWriter * xmlTextWriterPtr
Dialog to specify the properties of date form field.
struct _xmlTextWriter * xmlTextWriterPtr