LibreOffice Module sw (master) 1
|
#include <UndoTable.hxx>
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) |
SwHistory * | GetHistory () |
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 DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Attributes | |
SwNodeOffset | m_nTableNode |
SwNodeOffset | m_nOffset |
std::unique_ptr< SwSaveRowSpan > | mpSaveRowSpan |
std::unique_ptr< SaveTable > | m_pSavedTable |
std::unique_ptr< SwHistory > | m_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 |
Definition at line 321 of file UndoTable.hxx.
SwUndoSplitTable::SwUndoSplitTable | ( | const SwTableNode & | rTableNd, |
std::unique_ptr< SwSaveRowSpan > | pRowSp, | ||
SplitTable_HeadlineOption | nMode, | ||
bool | bCalcNewSize | ||
) |
Definition at line 2798 of file untbl.cxx.
References BorderCopy, BoxAttrAllCopy, BoxAttrCopy, eMode, SwTableNode::GetTable(), m_nMode, m_pHistory, m_pSavedTable, and SPLIT_TABLE.
|
overridevirtual |
Definition at line 2817 of file untbl.cxx.
References m_pHistory, m_pSavedTable, and mpSaveRowSpan.
|
inline |
Definition at line 342 of file UndoTable.hxx.
References m_pHistory.
Referenced by SwDoc::SplitTable().
|
overridevirtual |
Implements SwUndo.
Definition at line 2896 of file untbl.cxx.
References SwPosition::Assign(), ClearFEShellTabCols(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwPaM::DeleteMark(), sw::UndoRedoContext::GetCursorSupplier(), sw::UndoRedoContext::GetDoc(), SwPaM::GetPoint(), m_bCalcNewSize, m_nMode, m_nTableNode, and SwDoc::SplitTable().
|
overridevirtual |
Reimplemented from SwUndo.
Definition at line 2908 of file untbl.cxx.
References ClearFEShellTabCols(), sw::RepeatContext::GetDoc(), SwPaM::GetPoint(), sw::RepeatContext::GetRepeatPaM(), m_bCalcNewSize, m_nMode, and SwDoc::SplitTable().
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().
|
inline |
Definition at line 341 of file UndoTable.hxx.
References m_nOffset, and m_nTableNode.
Referenced by SwDoc::SplitTable().
|
overridevirtual |
Implements SwUndo.
Definition at line 2824 of file untbl.cxx.
References SwPosition::Assign(), BorderCopy, BoxAttrAllCopy, BoxAttrCopy, ClearFEShellTabCols(), ContentCopy, sw::IShellCursorSupplier::CreateNewShellCursor(), SwNodes::Delete(), SwTable::DeleteSel(), FndBox_::DelFrames(), SwNode::FindTableNode(), fnMoveBackward, SwNode::GetContentNode(), sw::UndoRedoContext::GetCursorSupplier(), sw::UndoRedoContext::GetDoc(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwNode::GetTableNode(), GoInContent(), idx, SwContentNode::Len(), m_nFormulaEnd, m_nMode, m_nOffset, m_nTableNode, m_pHistory, m_pSavedTable, SwNodes::MergeTable(), SwPaM::Move(), mpSaveRowSpan, PaMCorrAbs(), SwTable::RestoreRowSpan(), SwTable::SelLineFromBox(), FndBox_::SetTableLines(), and SwTable::SwitchFormulasToInternalRepresentation().
|
private |
Definition at line 329 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 328 of file UndoTable.hxx.
Referenced by SaveFormula(), and UndoImpl().
|
private |
Definition at line 327 of file UndoTable.hxx.
Referenced by RedoImpl(), RepeatImpl(), SwUndoSplitTable(), and UndoImpl().
|
private |
Definition at line 323 of file UndoTable.hxx.
Referenced by SetTableNodeOffset(), and UndoImpl().
|
private |
Definition at line 323 of file UndoTable.hxx.
Referenced by RedoImpl(), SetTableNodeOffset(), and UndoImpl().
|
private |
Definition at line 326 of file UndoTable.hxx.
Referenced by GetHistory(), SaveFormula(), SwUndoSplitTable(), UndoImpl(), and ~SwUndoSplitTable().
|
private |
Definition at line 325 of file UndoTable.hxx.
Referenced by SwUndoSplitTable(), UndoImpl(), and ~SwUndoSplitTable().
|
private |
Definition at line 324 of file UndoTable.hxx.
Referenced by UndoImpl(), and ~SwUndoSplitTable().