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
 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::unique_ptr< SfxItemSet > const m_pAttrSet
 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
 
boost::optional< OUString > maComment
 

Detailed Description

Definition at line 312 of file unsect.cxx.

Constructor & Destructor Documentation

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

Definition at line 337 of file unsect.cxx.

References DELSECTION.

Member Function Documentation

void SwUndoDelSection::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual
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 352 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_pAttrSet, m_pMetadataUndo, m_pSectionData, m_pTOXBase, SwDoc::MakeSectionFormat(), RES_END_AT_TXTEND, RES_FTN_AT_TXTEND, SwSection::SetCondHidden(), SwFormat::SetFormatAttr(), SwFootnoteIdxs::UpdateFootnote(), and USHRT_MAX.

Member Data Documentation

sal_uLong const SwUndoDelSection::m_nEndNode
private

Definition at line 321 of file unsect.cxx.

Referenced by UndoImpl().

sal_uLong const SwUndoDelSection::m_nStartNode
private

Definition at line 320 of file unsect.cxx.

Referenced by RedoImpl(), and UndoImpl().

std::unique_ptr<SfxItemSet> const SwUndoDelSection::m_pAttrSet
private

set iff section is TOX

Definition at line 318 of file unsect.cxx.

Referenced by UndoImpl().

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

Definition at line 319 of file unsect.cxx.

Referenced by UndoImpl().

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

Definition at line 316 of file unsect.cxx.

Referenced by UndoImpl().

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

section not TOX

Definition at line 317 of file unsect.cxx.

Referenced by UndoImpl().


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