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, SwNodeIndex &rPos) |
void | SetSelBoxes (const SwSelBoxes &rBoxes) |
void | AddNewBox (sal_uLong nSttNdIdx) |
void | SaveCollection (const SwTableBox &rBox) |
![]() | |
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 () |
![]() | |
SfxUndoAction () | |
virtual | ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE |
virtual bool | Merge (SfxUndoAction *pNextAction) |
virtual OUString | GetRepeatComment (SfxRepeatTarget &) const |
const DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Attributes | |
sal_uLong | m_nTableNode |
std::unique_ptr< SaveTable > | m_pSaveTable |
std::set< sal_uLong > | m_Boxes |
std::vector< sal_uLong > | m_aNewStartNodes |
std::vector< std::unique_ptr< SwUndoMove > > | m_vMoves |
std::unique_ptr< SwHistory > | m_pHistory |
![]() | |
sal_uLong | m_nSttNode |
sal_uLong | m_nEndNode |
sal_Int32 | m_nSttContent |
sal_Int32 | m_nEndContent |
Additional Inherited Members | |
![]() | |
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 void | RemoveIdxFromSection (SwDoc &, sal_uLong nSttIdx, const sal_uLong *pEndIdx=nullptr) |
static void | RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext) |
static void | RemoveIdxRel (sal_uLong, const SwPosition &) |
static bool | CanRedlineGroup (SwRedlineSaveDatas &rCurr, const SwRedlineSaveDatas &rCheck, bool bCurrIsEnd) |
![]() | |
bool | m_bCacheComment |
std::optional< OUString > | maComment |
![]() | |
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 211 of file UndoTable.hxx.
SwUndoTableMerge::SwUndoTableMerge | ( | const SwPaM & | rTableSel | ) |
Definition at line 1814 of file untbl.cxx.
References SwNode::FindTableNode(), SwNode::GetIndex(), SwPaM::GetNode(), SwTableNode::GetTable(), and SwUndoTableNdsChg::m_pSaveTable.
|
overridevirtual |
Definition at line 1823 of file untbl.cxx.
References SwUndoTableNdsChg::m_pSaveTable.
Definition at line 232 of file UndoTable.hxx.
Referenced by GetMergeSel(), SwTable::OldMerge(), and SwTable::PrepareMerge().
void SwUndoTableMerge::MoveBoxContent | ( | SwDoc & | rDoc, |
SwNodeRange & | rRg, | ||
SwNodeIndex & | rPos | ||
) |
Definition at line 1979 of file untbl.cxx.
References SwNodeRange::aStart, DEFAULT, SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwUndoTableNdsChg::m_pSaveTable, IDocumentContentOperations::MoveNodeRange(), and NO_DELFRMS.
Referenced by GetMergeSel(), and SwTable::PrepareMerge().
|
overridevirtual |
Implements SwUndo.
Definition at line 1972 of file untbl.cxx.
References sw::UndoRedoContext::GetDoc(), and SwDoc::MergeTable().
void SwUndoTableMerge::SaveCollection | ( | const SwTableBox & | rBox | ) |
Definition at line 2011 of file untbl.cxx.
References SwModify::Add(), SwNode::GetContentNode(), SwNode::GetNodes(), SwTableBox::GetSttNd(), and SwNodes::GoNext().
Referenced by GetMergeSel().
void SwUndoTableMerge::SetSelBoxes | ( | const SwSelBoxes & | rBoxes | ) |
Definition at line 1994 of file untbl.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::empty(), n, and o3tl::sorted_vector< Value, Compare, Find, class >::size().
Referenced by SwTable::NewMerge(), and SwTable::OldMerge().
|
overridevirtual |
Implements SwUndo.
Definition at line 1830 of file untbl.cxx.
References 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(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentStylePoolAccess(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwTextNode::GetpSwpHints(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwNode::GetTableNode(), SwTextNode::GetText(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwTableBox::GetUpper(), i, SwUndoMove::IsMoveRange(), SwTableFormulaUpdate::m_eFlags, SwUndoTableNdsChg::m_nSttNode, SwUndoTableNdsChg::m_pSaveTable, SwNodes::MakeTextNode(), SwNodes::MakeTextSection(), SwIndexReg::MoveTo(), n, RES_POOLCOLL_STANDARD, SwTextNode::RstTextAttr(), SwTableBoxStartNode, TBL_BOXPTR, SwUndoMove::UndoImpl(), SwDoc::UpdateCharts(), and IDocumentFieldsAccess::UpdateTableFields().
|
private |
Definition at line 216 of file UndoTable.hxx.
Definition at line 215 of file UndoTable.hxx.
|
private |
Definition at line 213 of file UndoTable.hxx.
|
private |
Definition at line 218 of file UndoTable.hxx.
|
private |
Definition at line 214 of file UndoTable.hxx.
|
private |
Definition at line 217 of file UndoTable.hxx.