LibreOffice Module sw (master) 1
|
Implements undo/redo for Table -> Insert Table. More...
#include <UndoTable.hxx>
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 DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Attributes | |
OUString | m_sTableName |
SwInsertTableOptions | m_aInsTableOptions |
std::unique_ptr< SwDDEFieldType > | m_pDDEFieldType |
std::optional< std::vector< sal_uInt16 > > | m_oColumnWidth |
std::unique_ptr< SwRedlineData > | m_pRedlineData |
std::unique_ptr< SwTableAutoFormat > | m_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 |
Implements undo/redo for Table -> Insert Table.
Definition at line 57 of file UndoTable.hxx.
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 | ||
) |
Definition at line 234 of file untbl.cxx.
References SwNode::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwPosition::GetNode(), IDocumentRedlineAccess::GetRedlineAuthor(), IDocumentRedlineAccess::GetRedlineFlags(), INSTABLE, IDocumentRedlineAccess::IsRedlineOn(), m_oColumnWidth, m_pAutoFormat, m_pRedlineData, m_sTableName, and SwUndo::SetRedlineFlags().
|
overridevirtual |
Definition at line 261 of file untbl.cxx.
References m_oColumnWidth, m_pAutoFormat, m_pDDEFieldType, and m_pRedlineData.
|
overridevirtual |
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.
|
overridevirtual |
Implements SwUndo.
Definition at line 311 of file untbl.cxx.
References IDocumentRedlineAccess::AppendRedline(), SwRedlineTable::empty(), SwNode::EndOfSectionNode(), fnTableStart, sw::UndoRedoContext::GetDoc(), SwDoc::GetEditShell(), SwTable::GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetNodes(), SwUndo::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlineTable(), SwTableNode::GetTable(), GotoPrevTable(), Ignore, IDocumentFieldsAccess::InsertFieldType(), SwDoc::InsertTable(), IDocumentRedlineAccess::IsRedlineOn(), m_aInsTableOptions, m_nAdjust, m_nColumns, m_nRows, m_nStartNode, m_oColumnWidth, m_pAutoFormat, m_pDDEFieldType, m_pRedlineData, m_sTableName, SwCursorShell::MoveTable(), SwTableNode::SetNewTable(), IDocumentRedlineAccess::SetRedlineFlags_intern(), and IDocumentRedlineAccess::SplitRedline().
|
overridevirtual |
Reimplemented from SwUndo.
Definition at line 359 of file untbl.cxx.
References sw::RepeatContext::GetDoc(), SwPaM::GetPoint(), sw::RepeatContext::GetRepeatPaM(), SwDoc::InsertTable(), m_aInsTableOptions, m_nAdjust, m_nColumns, m_nRows, m_oColumnWidth, and m_pAutoFormat.
|
overridevirtual |
Implements SwUndo.
Definition at line 269 of file untbl.cxx.
References SwPosition::Assign(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwNodes::Delete(), SwPaM::DeleteMark(), IDocumentRedlineAccess::DeleteRedline(), SwTableNode::DelFrames(), SwNode::EndOfSectionIndex(), sw::UndoRedoContext::GetCursorSupplier(), sw::UndoRedoContext::GetDoc(), SwTable::GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetIndex(), SwFormat::GetItemIfSet(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwUndo::GetRedlineFlags(), SwTableNode::GetTable(), SwNode::GetTableNode(), IDocumentRedlineAccess::IsRedlineOn(), m_nStartNode, m_pDDEFieldType, m_sTableName, sw::NotifyTableCollapsedParagraph(), SwUndo::RemoveIdxFromSection(), RES_BREAK(), RES_PAGEDESC(), and SwContentNode::SetAttr().
|
private |
Definition at line 60 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 67 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 66 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 66 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 65 of file UndoTable.hxx.
Referenced by RedoImpl(), and UndoImpl().
|
private |
Definition at line 62 of file UndoTable.hxx.
Referenced by RedoImpl(), RepeatImpl(), SwUndoInsTable(), and ~SwUndoInsTable().
|
private |
Definition at line 64 of file UndoTable.hxx.
Referenced by RedoImpl(), RepeatImpl(), SwUndoInsTable(), and ~SwUndoInsTable().
|
private |
Definition at line 61 of file UndoTable.hxx.
Referenced by RedoImpl(), UndoImpl(), and ~SwUndoInsTable().
|
private |
Definition at line 63 of file UndoTable.hxx.
Referenced by RedoImpl(), SwUndoInsTable(), and ~SwUndoInsTable().
|
private |
Definition at line 59 of file UndoTable.hxx.
Referenced by GetRewriter(), RedoImpl(), SwUndoInsTable(), and UndoImpl().