LibreOffice Module sw (master) 1
|
#include <UndoTable.hxx>
Public Member Functions | |
SwUndoTableToText (const SwTable &rTable, sal_Unicode cCh) | |
virtual | ~SwUndoTableToText () override |
virtual void | UndoImpl (::sw::UndoRedoContext &) override |
virtual void | RedoImpl (::sw::UndoRedoContext &) override |
virtual void | RepeatImpl (::sw::RepeatContext &) override |
void | SetRange (const SwNodeRange &) |
void | AddBoxPos (SwDoc &rDoc, SwNodeOffset nNdIdx, SwNodeOffset nEndIdx, sal_Int32 nContentIdx=SAL_MAX_INT32) |
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 |
std::unique_ptr< SwDDEFieldType > | m_pDDEFieldType |
std::unique_ptr< SaveTable > | m_pTableSave |
SwTableToTextSaves | m_vBoxSaves |
std::unique_ptr< SwHistory > | m_pHistory |
SwNodeOffset | m_nStartNode |
SwNodeOffset | m_nEndNode |
sal_Unicode | m_cSeparator |
sal_uInt16 | m_nHeadlineRepeat |
bool | m_bCheckNumFormat: 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) |
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 110 of file UndoTable.hxx.
SwUndoTableToText::SwUndoTableToText | ( | const SwTable & | rTable, |
sal_Unicode | cCh | ||
) |
Definition at line 419 of file untbl.cxx.
References SwNode::EndOfSectionIndex(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwNode::GetDoc(), SwFormat::GetDoc(), SwTable::GetFrameFormat(), SwNode::GetIndex(), GetName(), SwDoc::GetSpzFrameFormats(), SwTable::GetTableNode(), SwTable::GetTabSortBoxes(), SwDoc::IsInsTableFormatNum(), m_bCheckNumFormat, m_pDDEFieldType, m_pHistory, m_pTableSave, m_sTableName, m_vBoxSaves, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and TABLETOTEXT.
|
overridevirtual |
Definition at line 457 of file untbl.cxx.
References m_pDDEFieldType, m_pHistory, m_pTableSave, and m_vBoxSaves.
void SwUndoTableToText::AddBoxPos | ( | SwDoc & | rDoc, |
SwNodeOffset | nNdIdx, | ||
SwNodeOffset | nEndIdx, | ||
sal_Int32 | nContentIdx = SAL_MAX_INT32 |
||
) |
Definition at line 705 of file untbl.cxx.
References m_vBoxSaves.
|
overridevirtual |
Implements SwUndo.
Definition at line 650 of file untbl.cxx.
References SwPosition::Assign(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwPaM::DeleteMark(), SwNode::GetContentNode(), sw::UndoRedoContext::GetCursorSupplier(), sw::UndoRedoContext::GetDoc(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTableNode::GetTable(), SwNode::GetTableNode(), SwNodes::GoNext(), SwNodes::GoPrevious(), m_cSeparator, m_nStartNode, m_pDDEFieldType, SwPaM::SetMark(), and SwDoc::TableToText().
|
overridevirtual |
Reimplemented from SwUndo.
Definition at line 683 of file untbl.cxx.
References SwPosition::Assign(), SwPaM::DeleteMark(), SwNode::EndOfSectionNode(), SwNode::FindTableNode(), fnMoveForward, sw::RepeatContext::GetDoc(), SwPaM::GetPoint(), SwPaM::GetPointNode(), sw::RepeatContext::GetRepeatPaM(), GoInContent(), m_cSeparator, SwPaM::Move(), SwPaM::SetMark(), and SwDoc::TableToText().
void SwUndoTableToText::SetRange | ( | const SwNodeRange & | rRg | ) |
Definition at line 699 of file untbl.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, SwNodeIndex::GetIndex(), m_nEndNode, and m_nStartNode.
|
overridevirtual |
Implements SwUndo.
Definition at line 465 of file untbl.cxx.
References SwPosition::Assign(), SwDoc::ChkBoxNumFormat(), ClearFEShellTabCols(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwPaM::DeleteMark(), SwDoc::DelNumRules(), SwNode::EndOfSectionNode(), SwPaM::Exchange(), fnMoveBackward, fnMoveForward, sw::UndoRedoContext::GetCursorSupplier(), SwDoc::GetDfltFrameFormat(), sw::UndoRedoContext::GetDoc(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTableNode::GetTable(), SwTable::GetTabSortBoxes(), GoInContent(), IDocumentFieldsAccess::InsertFieldType(), m_bCheckNumFormat, m_nEndNode, m_nHeadlineRepeat, m_nStartNode, m_pDDEFieldType, m_pHistory, m_pTableSave, m_sTableName, m_vBoxSaves, SwDoc::MakeTableFrameFormat(), SwPaM::Move(), SwTable::RegisterToFormat(), SwNode2LayoutSaveUpperFrames::RestoreUpperFrames(), SwPaM::SetMark(), SwTableNode::SetNewTable(), SwTable::SetRowsToRepeat(), SwTable::SetTableModel(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), SwNode::StartOfSectionNode(), and SwNodes::UndoTableToText().
|
private |
Definition at line 120 of file UndoTable.hxx.
Referenced by SwUndoTableToText(), and UndoImpl().
|
private |
Definition at line 118 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 117 of file UndoTable.hxx.
Referenced by SetRange(), and UndoImpl().
|
private |
Definition at line 119 of file UndoTable.hxx.
Referenced by UndoImpl().
|
private |
Definition at line 117 of file UndoTable.hxx.
Referenced by RedoImpl(), SetRange(), and UndoImpl().
|
private |
Definition at line 113 of file UndoTable.hxx.
Referenced by RedoImpl(), SwUndoTableToText(), UndoImpl(), and ~SwUndoTableToText().
|
private |
Definition at line 116 of file UndoTable.hxx.
Referenced by SwUndoTableToText(), UndoImpl(), and ~SwUndoTableToText().
|
private |
Definition at line 114 of file UndoTable.hxx.
Referenced by SwUndoTableToText(), UndoImpl(), and ~SwUndoTableToText().
|
private |
Definition at line 112 of file UndoTable.hxx.
Referenced by UndoImpl().
|
private |
Definition at line 115 of file UndoTable.hxx.
Referenced by AddBoxPos(), SwUndoTableToText(), UndoImpl(), and ~SwUndoTableToText().