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

#include <UndoTable.hxx>

Inheritance diagram for SwUndoTextToTable:
Collaboration diagram for SwUndoTextToTable:

Public Member Functions

 SwUndoTextToTable (const SwPaM &, const SwInsertTableOptions &, sal_Unicode, sal_uInt16, const SwTableAutoFormat *pAFormat)
virtual ~SwUndoTextToTable () override
virtual void UndoImpl (::sw::UndoRedoContext &) override
virtual void RedoImpl (::sw::UndoRedoContext &) override
virtual void RepeatImpl (::sw::RepeatContext &) override
SwHistoryGetHistory ()
void AddFillBox (const SwTableBox &rBox)
- 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
- Public 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

OUString m_sTableName
SwInsertTableOptions m_aInsertTableOpts
std::vector< SwNodeOffsetmvDelBoxes
std::unique_ptr< SwTableAutoFormatm_pAutoFormat
sal_Unicode m_cSeparator
sal_uInt16 m_nAdjust
bool m_bSplitEnd: 1

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)
- Public Attributes inherited from SwUndRng
SwNodeOffset m_nSttNode
SwNodeOffset m_nEndNode
sal_Int32 m_nSttContent
sal_Int32 m_nEndContent
- 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 84 of file UndoTable.hxx.

Constructor & Destructor Documentation

◆ SwUndoTextToTable()

SwUndoTextToTable::SwUndoTextToTable ( const SwPaM rRg,
const SwInsertTableOptions rInsTableOpts,
sal_Unicode  cCh,
sal_uInt16  nAdj,
const SwTableAutoFormat pAFormat 

◆ ~SwUndoTextToTable()

SwUndoTextToTable::~SwUndoTextToTable ( )

Definition at line 727 of file untbl.cxx.

References m_pAutoFormat.

Member Function Documentation

◆ AddFillBox()

void SwUndoTextToTable::AddFillBox ( const SwTableBox rBox)

Definition at line 827 of file untbl.cxx.

References SwTableBox::GetSttIdx(), and mvDelBoxes.

Referenced by lcl_BalanceTable().

◆ GetHistory()

SwHistory & SwUndoTextToTable::GetHistory ( )

Definition at line 832 of file untbl.cxx.

References m_pHistory.

Referenced by SwDoc::TextToTable().

◆ RedoImpl()

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

◆ RepeatImpl()

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

◆ UndoImpl()

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

Member Data Documentation

◆ m_aInsertTableOpts

SwInsertTableOptions SwUndoTextToTable::m_aInsertTableOpts

Definition at line 87 of file UndoTable.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_bSplitEnd

bool SwUndoTextToTable::m_bSplitEnd

Definition at line 93 of file UndoTable.hxx.

Referenced by SwUndoTextToTable(), and UndoImpl().

◆ m_cSeparator

sal_Unicode SwUndoTextToTable::m_cSeparator

Definition at line 91 of file UndoTable.hxx.

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

◆ m_nAdjust

sal_uInt16 SwUndoTextToTable::m_nAdjust

Definition at line 92 of file UndoTable.hxx.

Referenced by RedoImpl(), and RepeatImpl().

◆ m_pAutoFormat

std::unique_ptr<SwTableAutoFormat> SwUndoTextToTable::m_pAutoFormat

Definition at line 89 of file UndoTable.hxx.

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

◆ m_pHistory

SwHistory* SwUndoTextToTable::m_pHistory

Definition at line 90 of file UndoTable.hxx.

Referenced by GetHistory(), and UndoImpl().

◆ m_sTableName

OUString SwUndoTextToTable::m_sTableName

Definition at line 86 of file UndoTable.hxx.

Referenced by RedoImpl(), and UndoImpl().

◆ mvDelBoxes

std::vector<SwNodeOffset> SwUndoTextToTable::mvDelBoxes

Definition at line 88 of file UndoTable.hxx.

Referenced by AddFillBox(), and UndoImpl().

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