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

#include <UndoTable.hxx>

Inheritance diagram for SwUndoSplitTable:
Collaboration diagram for SwUndoSplitTable:

Public Member Functions

 SwUndoSplitTable (const SwTableNode &rTableNd, std::unique_ptr< SwSaveRowSpan > pRowSp, SplitTable_HeadlineOption nMode, bool bCalcNewSize)
virtual ~SwUndoSplitTable () override
virtual void UndoImpl (::sw::UndoRedoContext &) override
virtual void RedoImpl (::sw::UndoRedoContext &) override
virtual void RepeatImpl (::sw::RepeatContext &) override
void SetTableNodeOffset (SwNodeOffset nIdx)
SwHistoryGetHistory ()
void SaveFormula (SwHistory &rHistory)
- 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 Attributes

SwNodeOffset m_nTableNode
SwNodeOffset m_nOffset
std::unique_ptr< SwSaveRowSpanmpSaveRowSpan
std::unique_ptr< SaveTablem_pSavedTable
std::unique_ptr< SwHistorym_pHistory
SplitTable_HeadlineOption const m_nMode
sal_uInt16 m_nFormulaEnd
bool m_bCalcNewSize

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 321 of file UndoTable.hxx.

Constructor & Destructor Documentation

◆ SwUndoSplitTable()

SwUndoSplitTable::SwUndoSplitTable ( const SwTableNode rTableNd,
std::unique_ptr< SwSaveRowSpan pRowSp,
SplitTable_HeadlineOption  nMode,
bool  bCalcNewSize 

◆ ~SwUndoSplitTable()

SwUndoSplitTable::~SwUndoSplitTable ( )

Definition at line 2817 of file untbl.cxx.

References m_pHistory, m_pSavedTable, and mpSaveRowSpan.

Member Function Documentation

◆ GetHistory()

SwHistory * SwUndoSplitTable::GetHistory ( )

Definition at line 342 of file UndoTable.hxx.

References m_pHistory.

Referenced by SwDoc::SplitTable().

◆ RedoImpl()

void SwUndoSplitTable::RedoImpl ( ::sw::UndoRedoContext rContext)

◆ RepeatImpl()

void SwUndoSplitTable::RepeatImpl ( ::sw::RepeatContext rContext)

◆ SaveFormula()

void SwUndoSplitTable::SaveFormula ( SwHistory rHistory)

Definition at line 2917 of file untbl.cxx.

References SwHistory::Count(), m_nFormulaEnd, and m_pHistory.

Referenced by SwDoc::SplitTable().

◆ SetTableNodeOffset()

void SwUndoSplitTable::SetTableNodeOffset ( SwNodeOffset  nIdx)

Definition at line 341 of file UndoTable.hxx.

References m_nOffset, and m_nTableNode.

Referenced by SwDoc::SplitTable().

◆ UndoImpl()

void SwUndoSplitTable::UndoImpl ( ::sw::UndoRedoContext rContext)

Member Data Documentation

◆ m_bCalcNewSize

bool SwUndoSplitTable::m_bCalcNewSize

Definition at line 329 of file UndoTable.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_nFormulaEnd

sal_uInt16 SwUndoSplitTable::m_nFormulaEnd

Definition at line 328 of file UndoTable.hxx.

Referenced by SaveFormula(), and UndoImpl().

◆ m_nMode

SplitTable_HeadlineOption const SwUndoSplitTable::m_nMode

Definition at line 327 of file UndoTable.hxx.

Referenced by RedoImpl(), RepeatImpl(), SwUndoSplitTable(), and UndoImpl().

◆ m_nOffset

SwNodeOffset SwUndoSplitTable::m_nOffset

Definition at line 323 of file UndoTable.hxx.

Referenced by SetTableNodeOffset(), and UndoImpl().

◆ m_nTableNode

SwNodeOffset SwUndoSplitTable::m_nTableNode

Definition at line 323 of file UndoTable.hxx.

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

◆ m_pHistory

std::unique_ptr<SwHistory> SwUndoSplitTable::m_pHistory

Definition at line 326 of file UndoTable.hxx.

Referenced by GetHistory(), SaveFormula(), SwUndoSplitTable(), UndoImpl(), and ~SwUndoSplitTable().

◆ m_pSavedTable

std::unique_ptr<SaveTable> SwUndoSplitTable::m_pSavedTable

Definition at line 325 of file UndoTable.hxx.

Referenced by SwUndoSplitTable(), UndoImpl(), and ~SwUndoSplitTable().

◆ mpSaveRowSpan

std::unique_ptr<SwSaveRowSpan> SwUndoSplitTable::mpSaveRowSpan

Definition at line 324 of file UndoTable.hxx.

Referenced by UndoImpl(), and ~SwUndoSplitTable().

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