LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwUndoInsSection Class Referencefinal

#include <UndoSection.hxx>

Inheritance diagram for SwUndoInsSection:
[legend]
Collaboration diagram for SwUndoInsSection:
[legend]

Public Member Functions

 SwUndoInsSection (SwPaM const &, SwSectionData const &, SfxItemSet const *pSet, std::tuple< SwTOXBase const *, sw::RedlineMode, sw::FieldmarkMode, sw::ParagraphBreakMode > const *pTOXBase)
 
virtual ~SwUndoInsSection () override
 
virtual void UndoImpl (::sw::UndoRedoContext &) override
 
virtual void RedoImpl (::sw::UndoRedoContext &) override
 
virtual void RepeatImpl (::sw::RepeatContext &) override
 
void SetSectNdPos (SwNodeOffset const nPos)
 
void SaveSplitNode (SwTextNode *const pTextNd, bool const bAtStart)
 
void SetUpdateFootnoteFlag (bool const bFlag)
 
- 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 Member Functions

void Join (SwDoc &rDoc, SwNodeOffset nNode)
 
- Private Member Functions inherited from SwUndRng
 SwUndRng ()
 
 SwUndRng (const SwPaM &)
 
void SetValues (const SwPaM &rPam)
 
void SetPaM (SwPaM &, bool bCorrToContent=false) const
 
SwPaMAddUndoRedoPaM (::sw::UndoRedoContext &, bool const bCorrToContent=false) const
 

Private Attributes

const std::unique_ptr< SwSectionDatam_pSectionData
 
std::optional< std::tuple< std::unique_ptr< SwTOXBase >, sw::RedlineMode, sw::FieldmarkMode, sw::ParagraphBreakMode > > m_xTOXBase
 
const std::unique_ptr< SfxItemSetm_pAttrSet
 set iff section is TOX More...
 
std::unique_ptr< SwHistorym_pHistory
 
std::unique_ptr< SwRedlineDatam_pRedlData
 
std::unique_ptr< SwRedlineSaveDatasm_pRedlineSaveData
 
SwNodeOffset m_nSectionNodePos
 
bool m_bSplitAtStart: 1
 
bool m_bSplitAtEnd: 1
 
bool m_bUpdateFootnote: 1
 
- Private Attributes inherited from SwUndRng
SwNodeOffset m_nSttNode
 
SwNodeOffset m_nEndNode
 
sal_Int32 m_nSttContent
 
sal_Int32 m_nEndContent
 

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 41 of file UndoSection.hxx.

Constructor & Destructor Documentation

◆ SwUndoInsSection()

SwUndoInsSection::SwUndoInsSection ( SwPaM const &  rPam,
SwSectionData const &  rNewData,
SfxItemSet const *  pSet,
std::tuple< SwTOXBase const *, sw::RedlineMode, sw::FieldmarkMode, sw::ParagraphBreakMode > const *  pTOXBase 
)

◆ ~SwUndoInsSection()

SwUndoInsSection::~SwUndoInsSection ( )
overridevirtual

Definition at line 125 of file unsect.cxx.

Member Function Documentation

◆ Join()

void SwUndoInsSection::Join ( SwDoc rDoc,
SwNodeOffset  nNode 
)
private

◆ RedoImpl()

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

◆ RepeatImpl()

void SwUndoInsSection::RepeatImpl ( ::sw::RepeatContext rContext)
overridevirtual

◆ SaveSplitNode()

void SwUndoInsSection::SaveSplitNode ( SwTextNode *const  pTextNd,
bool const  bAtStart 
)

◆ SetSectNdPos()

void SwUndoInsSection::SetSectNdPos ( SwNodeOffset const  nPos)
inline

Definition at line 68 of file UndoSection.hxx.

References m_nSectionNodePos, and nPos.

Referenced by SwDoc::InsertSwSection().

◆ SetUpdateFootnoteFlag()

void SwUndoInsSection::SetUpdateFootnoteFlag ( bool const  bFlag)
inline

Definition at line 70 of file UndoSection.hxx.

References m_bUpdateFootnote.

Referenced by SwDoc::InsertSwSection().

◆ UndoImpl()

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

Member Data Documentation

◆ m_bSplitAtEnd

bool SwUndoInsSection::m_bSplitAtEnd
private

Definition at line 52 of file UndoSection.hxx.

Referenced by SaveSplitNode(), and UndoImpl().

◆ m_bSplitAtStart

bool SwUndoInsSection::m_bSplitAtStart
private

Definition at line 51 of file UndoSection.hxx.

Referenced by SaveSplitNode(), and UndoImpl().

◆ m_bUpdateFootnote

bool SwUndoInsSection::m_bUpdateFootnote
private

Definition at line 53 of file UndoSection.hxx.

Referenced by SetUpdateFootnoteFlag(), and UndoImpl().

◆ m_nSectionNodePos

SwNodeOffset SwUndoInsSection::m_nSectionNodePos
private

Definition at line 50 of file UndoSection.hxx.

Referenced by RedoImpl(), SetSectNdPos(), and UndoImpl().

◆ m_pAttrSet

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

set iff section is TOX

Definition at line 46 of file UndoSection.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_pHistory

std::unique_ptr<SwHistory> SwUndoInsSection::m_pHistory
private

Definition at line 47 of file UndoSection.hxx.

Referenced by Join(), RedoImpl(), SaveSplitNode(), SwUndoInsSection(), and UndoImpl().

◆ m_pRedlData

std::unique_ptr<SwRedlineData> SwUndoInsSection::m_pRedlData
private

Definition at line 48 of file UndoSection.hxx.

Referenced by RedoImpl(), and SwUndoInsSection().

◆ m_pRedlineSaveData

std::unique_ptr<SwRedlineSaveDatas> SwUndoInsSection::m_pRedlineSaveData
private

Definition at line 49 of file UndoSection.hxx.

Referenced by SwUndoInsSection(), and UndoImpl().

◆ m_pSectionData

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

Definition at line 44 of file UndoSection.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_xTOXBase

std::optional<std::tuple<std::unique_ptr<SwTOXBase>, sw::RedlineMode, sw::FieldmarkMode, sw::ParagraphBreakMode> > SwUndoInsSection::m_xTOXBase
private

Definition at line 45 of file UndoSection.hxx.

Referenced by RedoImpl(), RepeatImpl(), and SwUndoInsSection().


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