LibreOffice Module sw (master) 1
|
#include <UndoTable.hxx>
Public Member Functions | |
SwUndoTableMerge (const SwPaM &rTableSel) | |
virtual | ~SwUndoTableMerge () override |
virtual void | UndoImpl (::sw::UndoRedoContext &) override |
virtual void | RedoImpl (::sw::UndoRedoContext &) override |
void | MoveBoxContent (SwDoc &rDoc, SwNodeRange &rRg, SwNode &rPos) |
void | SetSelBoxes (const SwSelBoxes &rBoxes) |
void | AddNewBox (SwNodeOffset nSttNdIdx) |
void | SaveCollection (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 DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Attributes | |
SwNodeOffset | m_nTableNode |
std::unique_ptr< SaveTable > | m_pSaveTable |
std::set< SwNodeOffset > | m_Boxes |
std::vector< SwNodeOffset > | m_aNewStartNodes |
std::vector< std::unique_ptr< SwUndoMove > > | m_vMoves |
std::unique_ptr< SwHistory > | m_pHistory |
Private Attributes inherited from SwUndRng | |
SwNodeOffset | m_nSttNode |
SwNodeOffset | m_nEndNode |
sal_Int32 | m_nSttContent |
sal_Int32 | m_nEndContent |
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 |
Private Member Functions inherited from SwUndRng | |
SwUndRng () | |
SwUndRng (const SwPaM &) | |
void | SetValues (const SwPaM &rPam) |
void | SetPaM (SwPaM &, bool bCorrToContent=false) const |
SwPaM & | AddUndoRedoPaM (::sw::UndoRedoContext &, bool const bCorrToContent=false) const |
Definition at line 221 of file UndoTable.hxx.
SwUndoTableMerge::SwUndoTableMerge | ( | const SwPaM & | rTableSel | ) |
Definition at line 1836 of file untbl.cxx.
References SwNode::FindTableNode(), SwNode::GetIndex(), SwPaM::GetPointNode(), SwTableNode::GetTable(), m_nTableNode, m_pSaveTable, and TABLE_MERGE.
|
overridevirtual |
Definition at line 1845 of file untbl.cxx.
References m_pHistory, m_pSaveTable, and m_vMoves.
|
inline |
Definition at line 242 of file UndoTable.hxx.
References m_aNewStartNodes.
Referenced by GetMergeSel(), SwTable::OldMerge(), and SwTable::PrepareMerge().
void SwUndoTableMerge::MoveBoxContent | ( | SwDoc & | rDoc, |
SwNodeRange & | rRg, | ||
SwNode & | rPos | ||
) |
Definition at line 1998 of file untbl.cxx.
References SwNodeRange::aStart, DEFAULT, SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetNode(), m_pSaveTable, m_vMoves, IDocumentContentOperations::MoveNodeRange(), and NO_DELFRMS.
Referenced by GetMergeSel(), and SwTable::PrepareMerge().
|
overridevirtual |
Implements SwUndo.
Definition at line 1991 of file untbl.cxx.
References SwUndRng::AddUndoRedoPaM(), sw::UndoRedoContext::GetDoc(), and SwDoc::MergeTable().
void SwUndoTableMerge::SaveCollection | ( | const SwTableBox & | rBox | ) |
Definition at line 2030 of file untbl.cxx.
References SwNode::GetContentNode(), SwContentNode::GetFormatColl(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwNodeIndex::GetNodes(), SwNode::GetNodeType(), SwContentNode::GetpSwAttrSet(), SwTableBox::GetSttNd(), SwNodes::GoNext(), SwContentNode::HasSwAttrSet(), and m_pHistory.
Referenced by GetMergeSel().
void SwUndoTableMerge::SetSelBoxes | ( | const SwSelBoxes & | rBoxes | ) |
Definition at line 2013 of file untbl.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), m_aNewStartNodes, m_Boxes, m_nTableNode, n, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by SwTable::NewMerge(), and SwTable::OldMerge().
|
overridevirtual |
Implements SwUndo.
Definition at line 1852 of file untbl.cxx.
References SwPosition::Assign(), CHECKTABLE, ClearFEShellTabCols(), SwDoc::CorrAbs(), SwpHints::Count(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwNodes::Delete(), SwChartDataProvider::DeleteBox(), SwPaM::DeleteMark(), IDocumentContentOperations::DeleteSection(), SwNode::EndOfSectionNode(), SwTextNode::EraseText(), IDocumentChartDataProviderAccess::GetChartDataProvider(), SwNode::GetContentNode(), sw::UndoRedoContext::GetCursorSupplier(), SwUndoMove::GetDestSttContent(), SwUndoMove::GetDestSttNode(), sw::UndoRedoContext::GetDoc(), SwUndoMove::GetEndNode(), SwTable::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentStylePoolAccess(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTextNode::GetpSwpHints(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwNode::GetTableNode(), SwTable::GetTabSortBoxes(), SwTextNode::GetText(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwTableBox::GetUpper(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwUndoMove::IsMoveRange(), m_aNewStartNodes, m_Boxes, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, m_nTableNode, m_pHistory, m_pSaveTable, m_vMoves, SwNodes::MakeTextNode(), SwNodes::MakeTextSection(), n, RES_POOLCOLL_STANDARD, SwTextNode::RstTextAttr(), SwPaM::SetMark(), SwTable::SwitchFormulasToInternalRepresentation(), SwTableBoxStartNode, SwUndoMove::UndoImpl(), and SwDoc::UpdateCharts().
|
private |
Definition at line 226 of file UndoTable.hxx.
Referenced by AddNewBox(), SetSelBoxes(), and UndoImpl().
|
private |
Definition at line 225 of file UndoTable.hxx.
Referenced by SetSelBoxes(), and UndoImpl().
|
private |
Definition at line 223 of file UndoTable.hxx.
Referenced by SetSelBoxes(), SwUndoTableMerge(), and UndoImpl().
|
private |
Definition at line 228 of file UndoTable.hxx.
Referenced by SaveCollection(), UndoImpl(), and ~SwUndoTableMerge().
|
private |
Definition at line 224 of file UndoTable.hxx.
Referenced by MoveBoxContent(), SwUndoTableMerge(), UndoImpl(), and ~SwUndoTableMerge().
|
private |
Definition at line 227 of file UndoTable.hxx.
Referenced by MoveBoxContent(), UndoImpl(), and ~SwUndoTableMerge().