LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwUndoDelSection Class Reference
Inheritance diagram for SwUndoDelSection:
[legend]
Collaboration diagram for SwUndoDelSection:
[legend]

Public Member Functions

 SwUndoDelSection (SwSectionFormat const &, SwSection const &, SwNodeIndex const *const)
 
virtual void UndoImpl (::sw::UndoRedoContext &) override
 
virtual void RedoImpl (::sw::UndoRedoContext &) override
 
- Public Member Functions inherited from SwUndo
virtual void UndoImpl (::sw::UndoRedoContext &)=0
 
virtual void RedoImpl (::sw::UndoRedoContext &)=0
 
 SwUndo (SwUndoId const nId, const SwDoc *pDoc)
 
virtual ~SwUndo () override
 
SwUndoId GetId () const
 
virtual OUString GetComment () const override
 Returns textual comment for this undo object. More...
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
RedlineFlags GetRedlineFlags () const
 
void SetRedlineFlags (RedlineFlags eMode)
 
bool IsDelBox () const
 
void IgnoreRepeat ()
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void Undo ()
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void Redo ()
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
virtual ViewShellId GetViewShellId () const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

std::unique_ptr< SwSectionData > const m_pSectionData
 
std::unique_ptr< SwTOXBase > const m_pTOXBase
 section not TOX More...
 
std::optional< SfxItemSet > const m_oAttrSet
 set iff section is TOX More...
 
std::shared_ptr< ::sfx2::MetadatableUndo > const m_pMetadataUndo
 
SwNodeOffset const m_nStartNode
 
SwNodeOffset const m_nEndNode
 

Additional Inherited Members

- Static Public Member Functions inherited from SwUndo
static bool FillSaveData (const SwPaM &rRange, SwRedlineSaveDatas &rSData, bool bDelRange=true, bool bCopyNext=true)
 
static bool FillSaveDataForFormat (const SwPaM &, SwRedlineSaveDatas &)
 
static void SetSaveData (SwDoc &rDoc, SwRedlineSaveDatas &rSData)
 
static bool HasHiddenRedlines (const SwRedlineSaveDatas &rSData)
 
- Protected Member Functions inherited from SwUndo
virtual SwRewriter GetRewriter () const
 Returns the rewriter for this object. More...
 
virtual void RepeatImpl (::sw::RepeatContext &)
 
- Static Protected Member Functions inherited from SwUndo
static void RemoveIdxFromSection (SwDoc &, SwNodeOffset nSttIdx, const SwNodeOffset *pEndIdx=nullptr)
 
static void RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext)
 
static void RemoveIdxRel (SwNodeOffset, const SwPosition &)
 
static bool CanRedlineGroup (SwRedlineSaveDatas &rCurr, const SwRedlineSaveDatas &rCheck, bool bCurrIsEnd)
 
- Protected Attributes inherited from SwUndo
bool m_bCacheComment
 
std::optional< OUString > maComment
 

Detailed Description

Definition at line 320 of file unsect.cxx.

Constructor & Destructor Documentation

◆ SwUndoDelSection()

SwUndoDelSection::SwUndoDelSection ( SwSectionFormat const &  rSectionFormat,
SwSection const &  rSection,
SwNodeIndex const * const  pIndex 
)

Definition at line 345 of file unsect.cxx.

References DELSECTION.

Member Function Documentation

◆ RedoImpl()

void SwUndoDelSection::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

◆ UndoImpl()

void SwUndoDelSection::UndoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

OD 04.10.2002 #102894# remember inserted section node for further calculations

OD 04.10.2002 #102894# consider that section is hidden by condition. If section is hidden by condition, recalculate condition and update hidden condition flag. Recalculation is necessary, because fields, on which the hide condition depends, can be changed - fields changes aren't undoable. NOTE: setting hidden condition flag also creates/deletes corresponding frames, if the hidden condition flag changes.

Implements SwUndo.

Definition at line 360 of file unsect.cxx.

References SwCalc::Calculate(), IDocumentFieldsAccess::FieldsToCalc(), SwSbxValue::GetBool(), SwSection::GetCondition(), sw::UndoRedoContext::GetDoc(), SwDoc::GetFootnoteIdxs(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), SwFormat::GetItemState(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwSectionNode::GetSection(), SwDoc::InsertTableOf(), SwNodes::InsertTextSection(), SwSection::IsHidden(), m_nEndNode, m_nStartNode, m_oAttrSet, m_pMetadataUndo, m_pSectionData, m_pTOXBase, SwDoc::MakeSectionFormat(), RES_END_AT_TXTEND(), RES_FTN_AT_TXTEND(), SAL_MAX_INT32, SwSection::SetCondHidden(), SwFormat::SetFormatAttr(), and SwFootnoteIdxs::UpdateFootnote().

Member Data Documentation

◆ m_nEndNode

SwNodeOffset const SwUndoDelSection::m_nEndNode
private

Definition at line 329 of file unsect.cxx.

Referenced by UndoImpl().

◆ m_nStartNode

SwNodeOffset const SwUndoDelSection::m_nStartNode
private

Definition at line 328 of file unsect.cxx.

Referenced by RedoImpl(), and UndoImpl().

◆ m_oAttrSet

std::optional<SfxItemSet> const SwUndoDelSection::m_oAttrSet
private

set iff section is TOX

Definition at line 326 of file unsect.cxx.

Referenced by UndoImpl().

◆ m_pMetadataUndo

std::shared_ptr< ::sfx2::MetadatableUndo > const SwUndoDelSection::m_pMetadataUndo
private

Definition at line 327 of file unsect.cxx.

Referenced by UndoImpl().

◆ m_pSectionData

std::unique_ptr<SwSectionData> const SwUndoDelSection::m_pSectionData
private

Definition at line 324 of file unsect.cxx.

Referenced by UndoImpl().

◆ m_pTOXBase

std::unique_ptr<SwTOXBase> const SwUndoDelSection::m_pTOXBase
private

section not TOX

Definition at line 325 of file unsect.cxx.

Referenced by UndoImpl().


The documentation for this class was generated from the following file: