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

Implements undo/redo for Table -> Insert Table. More...

#include <UndoTable.hxx>

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

Public Member Functions

 SwUndoInsTable (const SwPosition &, sal_uInt16 nCols, sal_uInt16 nRows, sal_uInt16 eAdjust, const SwInsertTableOptions &rInsTableOpts, const SwTableAutoFormat *pTAFormat, const std::vector< sal_uInt16 > *pColArr, const OUString &rName)
 
virtual ~SwUndoInsTable () override
 
virtual void UndoImpl (::sw::UndoRedoContext &) override
 
virtual void RedoImpl (::sw::UndoRedoContext &) override
 
virtual void RepeatImpl (::sw::RepeatContext &) override
 
virtual SwRewriter GetRewriter () const override
 Returns the rewriter for this object. More...
 
- 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

OUString m_sTableName
 
SwInsertTableOptions m_aInsTableOptions
 
std::unique_ptr< SwDDEFieldTypem_pDDEFieldType
 
std::optional< std::vector< sal_uInt16 > > m_oColumnWidth
 
std::unique_ptr< SwRedlineDatam_pRedlineData
 
std::unique_ptr< SwTableAutoFormatm_pAutoFormat
 
SwNodeOffset m_nStartNode
 
sal_uInt16 m_nRows
 
sal_uInt16 m_nColumns
 
sal_uInt16 const m_nAdjust
 

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)
 
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

Implements undo/redo for Table -> Insert Table.

Definition at line 57 of file UndoTable.hxx.

Constructor & Destructor Documentation

◆ SwUndoInsTable()

SwUndoInsTable::SwUndoInsTable ( const SwPosition rPos,
sal_uInt16  nCols,
sal_uInt16  nRows,
sal_uInt16  eAdjust,
const SwInsertTableOptions rInsTableOpts,
const SwTableAutoFormat pTAFormat,
const std::vector< sal_uInt16 > *  pColArr,
const OUString &  rName 
)

◆ ~SwUndoInsTable()

SwUndoInsTable::~SwUndoInsTable ( )
overridevirtual

Definition at line 261 of file untbl.cxx.

References m_oColumnWidth, m_pAutoFormat, m_pDDEFieldType, and m_pRedlineData.

Member Function Documentation

◆ GetRewriter()

SwRewriter SwUndoInsTable::GetRewriter ( ) const
overridevirtual

Returns the rewriter for this object.

Returns
the rewriter for this object

Reimplemented from SwUndo.

Definition at line 367 of file untbl.cxx.

References SwRewriter::AddRule(), m_sTableName, SwResId(), UndoArg1, UndoArg2, and UndoArg3.

◆ RedoImpl()

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

◆ RepeatImpl()

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

◆ UndoImpl()

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

Member Data Documentation

◆ m_aInsTableOptions

SwInsertTableOptions SwUndoInsTable::m_aInsTableOptions
private

Definition at line 60 of file UndoTable.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_nAdjust

sal_uInt16 const SwUndoInsTable::m_nAdjust
private

Definition at line 67 of file UndoTable.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_nColumns

sal_uInt16 SwUndoInsTable::m_nColumns
private

Definition at line 66 of file UndoTable.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_nRows

sal_uInt16 SwUndoInsTable::m_nRows
private

Definition at line 66 of file UndoTable.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_nStartNode

SwNodeOffset SwUndoInsTable::m_nStartNode
private

Definition at line 65 of file UndoTable.hxx.

Referenced by RedoImpl(), and UndoImpl().

◆ m_oColumnWidth

std::optional<std::vector<sal_uInt16> > SwUndoInsTable::m_oColumnWidth
private

Definition at line 62 of file UndoTable.hxx.

Referenced by RedoImpl(), RepeatImpl(), SwUndoInsTable(), and ~SwUndoInsTable().

◆ m_pAutoFormat

std::unique_ptr<SwTableAutoFormat> SwUndoInsTable::m_pAutoFormat
private

Definition at line 64 of file UndoTable.hxx.

Referenced by RedoImpl(), RepeatImpl(), SwUndoInsTable(), and ~SwUndoInsTable().

◆ m_pDDEFieldType

std::unique_ptr<SwDDEFieldType> SwUndoInsTable::m_pDDEFieldType
private

Definition at line 61 of file UndoTable.hxx.

Referenced by RedoImpl(), UndoImpl(), and ~SwUndoInsTable().

◆ m_pRedlineData

std::unique_ptr<SwRedlineData> SwUndoInsTable::m_pRedlineData
private

Definition at line 63 of file UndoTable.hxx.

Referenced by RedoImpl(), SwUndoInsTable(), and ~SwUndoInsTable().

◆ m_sTableName

OUString SwUndoInsTable::m_sTableName
private

Definition at line 59 of file UndoTable.hxx.

Referenced by GetRewriter(), RedoImpl(), SwUndoInsTable(), and UndoImpl().


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