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

#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::pair< SwTOXBase const *, sw::RedlineMode > 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 (sal_uLong const nPos)
 
void SaveSplitNode (SwTextNode *const pTextNd, bool const bAtStart)
 
void SetUpdateFootnoteFlag (bool const bFlag)
 
- 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 Member Functions

void Join (SwDoc &rDoc, sal_uLong 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
 
const std::unique_ptr< std::pair< SwTOXBase *, sw::RedlineMode > > m_pTOXBase
 
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
 
sal_uLong m_nSectionNodePos
 
bool m_bSplitAtStart: 1
 
bool m_bSplitAtEnd: 1
 
bool m_bUpdateFootnote: 1
 
- Private Attributes inherited from SwUndRng
sal_uLong m_nSttNode
 
sal_uLong 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...
 
- 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 37 of file UndoSection.hxx.

Constructor & Destructor Documentation

SwUndoInsSection::SwUndoInsSection ( SwPaM const &  rPam,
SwSectionData const &  rNewData,
SfxItemSet const *  pSet,
std::pair< SwTOXBase const *, sw::RedlineMode > const *  pTOXBase 
)
SwUndoInsSection::~SwUndoInsSection ( )
overridevirtual

Definition at line 121 of file unsect.cxx.

Member Function Documentation

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

Definition at line 269 of file unsect.cxx.

References SwDoc::GetNodes(), SwNode::GetTextNode(), m_pHistory, and SwUndo::RemoveIdxRel().

Referenced by UndoImpl().

void SwUndoInsSection::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual
void SwUndoInsSection::RepeatImpl ( ::sw::RepeatContext rContext)
overridevirtual
void SwUndoInsSection::SaveSplitNode ( SwTextNode *const  pTextNd,
bool const  bAtStart 
)
void SwUndoInsSection::SetSectNdPos ( sal_uLong const  nPos)
inline

Definition at line 64 of file UndoSection.hxx.

Referenced by SwDoc::InsertSwSection().

void SwUndoInsSection::SetUpdateFootnoteFlag ( bool const  bFlag)
inline

Definition at line 66 of file UndoSection.hxx.

References m_bUpdateFootnote.

Referenced by SwDoc::InsertSwSection().

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

Member Data Documentation

bool SwUndoInsSection::m_bSplitAtEnd
private

Definition at line 48 of file UndoSection.hxx.

Referenced by SaveSplitNode(), and UndoImpl().

bool SwUndoInsSection::m_bSplitAtStart
private

Definition at line 47 of file UndoSection.hxx.

Referenced by SaveSplitNode(), and UndoImpl().

bool SwUndoInsSection::m_bUpdateFootnote
private

Definition at line 49 of file UndoSection.hxx.

Referenced by SetUpdateFootnoteFlag(), and UndoImpl().

sal_uLong SwUndoInsSection::m_nSectionNodePos
private

Definition at line 46 of file UndoSection.hxx.

Referenced by RedoImpl(), and UndoImpl().

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

set iff section is TOX

Definition at line 42 of file UndoSection.hxx.

Referenced by RedoImpl(), and RepeatImpl().

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

Definition at line 43 of file UndoSection.hxx.

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

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

Definition at line 44 of file UndoSection.hxx.

Referenced by RedoImpl(), and SwUndoInsSection().

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

Definition at line 45 of file UndoSection.hxx.

Referenced by SwUndoInsSection(), and UndoImpl().

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

Definition at line 40 of file UndoSection.hxx.

Referenced by RedoImpl(), and RepeatImpl().

const std::unique_ptr<std::pair<SwTOXBase *, sw::RedlineMode> > SwUndoInsSection::m_pTOXBase
private

Definition at line 41 of file UndoSection.hxx.

Referenced by RedoImpl(), and RepeatImpl().


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