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

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
 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 bool Merge (SfxUndoAction *pNextAction)
virtual OUString GetRepeatComment (SfxRepeatTarget &) 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
sal_uLong const m_nStartNode
sal_uLong 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 &, sal_uLong nSttIdx, const sal_uLong *pEndIdx=nullptr)
static void RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext)
static void RemoveIdxRel (sal_uLong, 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 319 of file unsect.cxx.

Constructor & Destructor Documentation

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

Definition at line 344 of file unsect.cxx.

References DELSECTION.

Member Function Documentation

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

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 359 of file unsect.cxx.

References SwCalc::Calculate(), IDocumentFieldsAccess::FieldsToCalc(), SwSection::GetCondition(), sw::UndoRedoContext::GetDoc(), SwDoc::GetFootnoteIdxs(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), 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

sal_uLong const SwUndoDelSection::m_nEndNode

Definition at line 328 of file unsect.cxx.

Referenced by UndoImpl().

sal_uLong const SwUndoDelSection::m_nStartNode

Definition at line 327 of file unsect.cxx.

Referenced by RedoImpl(), and UndoImpl().

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

set iff section is TOX

Definition at line 325 of file unsect.cxx.

Referenced by UndoImpl().

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

Definition at line 326 of file unsect.cxx.

Referenced by UndoImpl().

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

Definition at line 323 of file unsect.cxx.

Referenced by UndoImpl().

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

section not TOX

Definition at line 324 of file unsect.cxx.

Referenced by UndoImpl().

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