LibreOffice Module sw (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwUndoSaveSection Class Reference

#include <undobj.hxx>

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

Public Member Functions

 SwUndoSaveSection ()
 
 ~SwUndoSaveSection ()
 
void SaveSection (const SwNodeIndex &rSttIdx)
 
void SaveSection (const SwNodeRange &rRange, bool bExpandNodes=true)
 
void RestoreSection (SwDoc *pDoc, SwNodeIndex *pIdx, sal_uInt16 nSectType)
 
void RestoreSection (SwDoc *pDoc, const SwNode &rInsPos, bool bForceCreateFrames=false)
 
const SwHistoryGetHistory () const
 
SwHistoryGetHistory ()
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Protected Member Functions

const SwNodeIndexGetMvSttIdx () const
 
SwNodeOffset GetMvNodeCnt () const
 

Private Attributes

std::optional< SwNodeIndexm_oMovedStart
 
std::unique_ptr< SwRedlineSaveDatasm_pRedlineSaveData
 
SwNodeOffset m_nMoveLen
 
SwNodeOffset m_nStartPos
 
- Private Attributes inherited from SwUndoSaveContent
std::unique_ptr< SwHistorym_pHistory
 

Additional Inherited Members

- Private Member Functions inherited from SwUndoSaveContent
 SwUndoSaveContent ()
 
virtual ~SwUndoSaveContent () COVERITY_NOEXCEPT_FALSE
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
void DelContentIndex (const SwPosition &pMark, const SwPosition &pPoint, DelContentType nDelContentType=DelContentType::AllMask)
 
- Static Private Member Functions inherited from SwUndoSaveContent
static void MoveToUndoNds (SwPaM &rPam, SwNodeIndex *pNodeIdx, SwNodeOffset *pEndNdIdx=nullptr)
 
static void MoveFromUndoNds (SwDoc &rDoc, SwNodeOffset nNodeIdx, SwPosition &rInsPos, const SwNodeOffset *pEndNdIdx=nullptr, bool bForceCreateFrames=false)
 
static bool MovePtBackward (SwPaM &rPam)
 
static void MovePtForward (SwPaM &rPam, bool bMvBkwrd)
 

Detailed Description

Definition at line 201 of file undobj.hxx.

Constructor & Destructor Documentation

◆ SwUndoSaveSection()

SwUndoSaveSection::SwUndoSaveSection ( )

Definition at line 1249 of file undobj.cxx.

◆ ~SwUndoSaveSection()

SwUndoSaveSection::~SwUndoSaveSection ( )

Member Function Documentation

◆ dumpAsXml()

void SwUndoSaveSection::dumpAsXml ( xmlTextWriterPtr  pWriter) const
virtual

Reimplemented from SwUndoSaveContent.

Reimplemented in SwUndoFlyBase.

Definition at line 1361 of file undobj.cxx.

References SwUndoSaveContent::dumpAsXml().

Referenced by SwUndoFlyBase::dumpAsXml().

◆ GetHistory() [1/2]

SwHistory * SwUndoSaveSection::GetHistory ( )
inline

Definition at line 222 of file undobj.hxx.

References SwUndoSaveContent::m_pHistory.

◆ GetHistory() [2/2]

const SwHistory * SwUndoSaveSection::GetHistory ( ) const
inline

◆ GetMvNodeCnt()

SwNodeOffset SwUndoSaveSection::GetMvNodeCnt ( ) const
inlineprotected

Definition at line 210 of file undobj.hxx.

Referenced by SwUndoFlyBase::GetMvNodeCnt().

◆ GetMvSttIdx()

const SwNodeIndex * SwUndoSaveSection::GetMvSttIdx ( ) const
inlineprotected

Definition at line 209 of file undobj.hxx.

Referenced by SwUndoFlyBase::GetMvSttIdx(), and SwRedlineSaveData::GetMvSttIdx().

◆ RestoreSection() [1/2]

void SwUndoSaveSection::RestoreSection ( SwDoc pDoc,
const SwNode rInsPos,
bool  bForceCreateFrames = false 
)

◆ RestoreSection() [2/2]

void SwUndoSaveSection::RestoreSection ( SwDoc pDoc,
SwNodeIndex pIdx,
sal_uInt16  nSectType 
)

◆ SaveSection() [1/2]

void SwUndoSaveSection::SaveSection ( const SwNodeIndex rSttIdx)

◆ SaveSection() [2/2]

void SwUndoSaveSection::SaveSection ( const SwNodeRange rRange,
bool  bExpandNodes = true 
)

Member Data Documentation

◆ m_nMoveLen

SwNodeOffset SwUndoSaveSection::m_nMoveLen
private

Definition at line 205 of file undobj.hxx.

Referenced by RestoreSection(), SaveSection(), and ~SwUndoSaveSection().

◆ m_nStartPos

SwNodeOffset SwUndoSaveSection::m_nStartPos
private

Definition at line 206 of file undobj.hxx.

Referenced by RestoreSection(), and SaveSection().

◆ m_oMovedStart

std::optional<SwNodeIndex> SwUndoSaveSection::m_oMovedStart
private

Definition at line 203 of file undobj.hxx.

Referenced by RestoreSection(), SaveSection(), and ~SwUndoSaveSection().

◆ m_pRedlineSaveData

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

Definition at line 204 of file undobj.hxx.

Referenced by RestoreSection(), SaveSection(), and ~SwUndoSaveSection().


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