LibreOffice Module sw (master) 1
|
#include <UndoTable.hxx>
Public Member Functions | |
SwUndoMergeTable (const SwTableNode &rTableNd, const SwTableNode &rDelTableNd, bool bWithPrev) | |
virtual | ~SwUndoMergeTable () override |
virtual void | UndoImpl (::sw::UndoRedoContext &) override |
virtual void | RedoImpl (::sw::UndoRedoContext &) override |
virtual void | RepeatImpl (::sw::RepeatContext &) override |
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 | |
OUString | m_aName |
SwNodeOffset | m_nTableNode |
std::unique_ptr< SaveTable > | m_pSaveTable |
std::unique_ptr< SaveTable > | m_pSaveHdl |
std::unique_ptr< SwHistory > | m_pHistory |
bool | m_bWithPrev |
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 346 of file UndoTable.hxx.
SwUndoMergeTable::SwUndoMergeTable | ( | const SwTableNode & | rTableNd, |
const SwTableNode & | rDelTableNd, | ||
bool | bWithPrev | ||
) |
Definition at line 2926 of file untbl.cxx.
References SwNode::EndOfSectionIndex(), SwTable::GetFrameFormat(), SwFormat::GetName(), SwTableNode::GetTable(), m_aName, m_bWithPrev, m_nTableNode, m_pSaveHdl, m_pSaveTable, and MERGE_TABLE.
|
overridevirtual |
Definition at line 2945 of file untbl.cxx.
References m_pHistory, m_pSaveHdl, and m_pSaveTable.
|
overridevirtual |
Implements SwUndo.
Definition at line 3012 of file untbl.cxx.
References SwPosition::Assign(), ClearFEShellTabCols(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwPaM::DeleteMark(), sw::UndoRedoContext::GetCursorSupplier(), sw::UndoRedoContext::GetDoc(), SwPaM::GetPoint(), m_bWithPrev, m_nTableNode, and SwDoc::MergeTable().
|
overridevirtual |
Reimplemented from SwUndo.
Definition at line 3028 of file untbl.cxx.
References ClearFEShellTabCols(), sw::RepeatContext::GetDoc(), SwPaM::GetPoint(), sw::RepeatContext::GetRepeatPaM(), m_bWithPrev, and SwDoc::MergeTable().
void SwUndoMergeTable::SaveFormula | ( | SwHistory & | rHistory | ) |
Definition at line 3037 of file untbl.cxx.
References m_pHistory.
Referenced by SwDoc::MergeTable().
|
overridevirtual |
Implements SwUndo.
Definition at line 2952 of file untbl.cxx.
References SwPosition::Assign(), ClearFEShellTabCols(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwPaM::DeleteMark(), FndBox_::DelFrames(), SwNode::FindTableNode(), IDocumentChartDataProviderAccess::GetChartDataProvider(), sw::UndoRedoContext::GetCursorSupplier(), sw::UndoRedoContext::GetDoc(), SwTable::GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), SwFormat::GetName(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTableNode::GetTable(), SwNodes::GoNext(), m_aName, m_bWithPrev, m_nTableNode, m_pHistory, m_pSaveHdl, m_pSaveTable, FndBox_::MakeFrames(), SwTableNode::MakeOwnFrames(), SwFrameFormat::SetFormatName(), FndBox_::SetTableLines(), SwNodes::SplitTable(), SwTable::SwitchFormulasToInternalRepresentation(), and SwDoc::UpdateCharts().
|
private |
Definition at line 348 of file UndoTable.hxx.
Referenced by SwUndoMergeTable(), and UndoImpl().
|
private |
Definition at line 352 of file UndoTable.hxx.
Referenced by RedoImpl(), RepeatImpl(), SwUndoMergeTable(), and UndoImpl().
|
private |
Definition at line 349 of file UndoTable.hxx.
Referenced by RedoImpl(), SwUndoMergeTable(), and UndoImpl().
|
private |
Definition at line 351 of file UndoTable.hxx.
Referenced by SaveFormula(), UndoImpl(), and ~SwUndoMergeTable().
|
private |
Definition at line 350 of file UndoTable.hxx.
Referenced by SwUndoMergeTable(), UndoImpl(), and ~SwUndoMergeTable().
|
private |
Definition at line 350 of file UndoTable.hxx.
Referenced by SwUndoMergeTable(), UndoImpl(), and ~SwUndoMergeTable().