LibreOffice Module sw (master) 1
|
#include <UndoTable.hxx>
Classes | |
struct | BoxMove |
Public Member Functions | |
SwUndoTableNdsChg (SwUndoId UndoId, const SwSelBoxes &rBoxes, const SwTableNode &rTableNd, tools::Long nMn, tools::Long nMx, sal_uInt16 nCnt, bool bFlg, bool bSameHeight) | |
virtual | ~SwUndoTableNdsChg () override |
virtual void | UndoImpl (::sw::UndoRedoContext &) override |
virtual void | RedoImpl (::sw::UndoRedoContext &) override |
void | SaveNewBoxes (const SwTableNode &rTableNd, const SwTableSortBoxes &rOld) |
void | SaveNewBoxes (const SwTableNode &rTableNd, const SwTableSortBoxes &rOld, const SwSelBoxes &rBoxes, const std::vector< SwNodeOffset > &rNodeCnts) |
void | SaveSection (SwStartNode *pSttNd) |
void | ReNewBoxes (const SwSelBoxes &rBoxes) |
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 Member Functions | |
SwUndoTableNdsChg (SwUndoTableNdsChg const &)=delete | |
SwUndoTableNdsChg & | operator= (SwUndoTableNdsChg const &)=delete |
Private Attributes | |
std::unique_ptr< SaveTable > | m_pSaveTable |
std::set< SwNodeOffset > | m_Boxes |
std::optional< std::set< BoxMove > > | m_xNewSttNds |
std::unique_ptr< SwUndoSaveSections > | m_pDelSects |
tools::Long | m_nMin |
tools::Long | m_nMax |
SwNodeOffset | m_nSttNode |
sal_uInt16 | m_nCount |
bool | m_bFlag |
bool | m_bSameHeight |
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 177 of file UndoTable.hxx.
|
privatedelete |
SwUndoTableNdsChg::SwUndoTableNdsChg | ( | SwUndoId | UndoId, |
const SwSelBoxes & | rBoxes, | ||
const SwTableNode & | rTableNd, | ||
tools::Long | nMn, | ||
tools::Long | nMx, | ||
sal_uInt16 | nCnt, | ||
bool | bFlg, | ||
bool | bSameHeight | ||
) |
Definition at line 1470 of file untbl.cxx.
References SwTableNode::GetTable(), m_nCount, m_pSaveTable, and ReNewBoxes().
|
overridevirtual |
|
privatedelete |
|
overridevirtual |
Implements SwUndo.
Definition at line 1788 of file untbl.cxx.
References CHECK_TABLE, ClearFEShellTabCols(), COL_DELETE, SwTable::DeleteSel(), sw::UndoRedoContext::GetDoc(), SwUndo::GetId(), SwNode::GetIndex(), SwDoc::GetNodes(), SwTableNode::GetTable(), SwTable::GetTableBox(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwDoc::InsertCol(), SwDoc::InsertRow(), SwTable::IsNewModel(), m_bFlag, m_Boxes, m_bSameHeight, m_nCount, m_nMax, m_nMin, m_nSttNode, SwTable::PrepareDeleteCol(), ROW_DELETE, SwDoc::SplitTable(), SwTable::SwitchFormulasToInternalRepresentation(), TABLE_DELBOX, TABLE_INSCOL, TABLE_INSROW, and TABLE_SPLIT.
void SwUndoTableNdsChg::ReNewBoxes | ( | const SwSelBoxes & | rBoxes | ) |
Definition at line 1489 of file untbl.cxx.
References m_Boxes, n, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by SwUndoTableNdsChg().
void SwUndoTableNdsChg::SaveNewBoxes | ( | const SwTableNode & | rTableNd, |
const SwTableSortBoxes & | rOld | ||
) |
Definition at line 1505 of file untbl.cxx.
References SwTableNode::GetTable(), SwTable::GetTabSortBoxes(), i, SwUndo::IsDelBox(), m_xNewSttNds, n, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
void SwUndoTableNdsChg::SaveNewBoxes | ( | const SwTableNode & | rTableNd, |
const SwTableSortBoxes & | rOld, | ||
const SwSelBoxes & | rBoxes, | ||
const std::vector< SwNodeOffset > & | rNodeCnts | ||
) |
Definition at line 1555 of file untbl.cxx.
References SwNode::EndOfSectionIndex(), SwTableLines::GetPos(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableNode::GetTable(), SwTable::GetTabSortBoxes(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), i, SwUndo::IsDelBox(), SwTable::IsNewModel(), lcl_FindParentLines(), m_nCount, m_xNewSttNds, n, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
void SwUndoTableNdsChg::SaveSection | ( | SwStartNode * | pSttNd | ) |
Definition at line 1636 of file untbl.cxx.
References SwNode::FindTableNode(), SwNode::GetIndex(), SwUndo::IsDelBox(), m_nSttNode, and m_pDelSects.
Referenced by DeleteBox_().
|
overridevirtual |
Implements SwUndo.
Definition at line 1650 of file untbl.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, CHECK_TABLE, ClearFEShellTabCols(), SwChartDataProvider::DeleteBox(), IDocumentContentOperations::DeleteSection(), FndBox_::DelFrames(), SwNode::EndOfSectionNode(), IDocumentChartDataProviderAccess::GetChartDataProvider(), sw::UndoRedoContext::GetDoc(), SwDoc::GetDocShell(), SwDocShell::GetFEShell(), SwTable::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwUndoSaveSection::GetHistory(), SwDoc::getIDocumentChartDataProviderAccess(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwNode::GetTableNode(), SwTable::GetTabSortBoxes(), SwTableBox::GetUpper(), i, index, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwUndo::IsDelBox(), lcl_FindTableLine(), m_nSttNode, m_pDelSects, m_pSaveTable, m_xNewSttNds, SwNodes::MoveNodes(), n, SwUndoSaveSection::RestoreSection(), SwHistory::Rollback(), FndBox_::SetTableLines(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), SwTable::SwitchFormulasToInternalRepresentation(), SwTableBoxStartNode, and SwDoc::UpdateCharts().
|
private |
Definition at line 193 of file UndoTable.hxx.
Referenced by RedoImpl().
|
private |
Definition at line 180 of file UndoTable.hxx.
Referenced by RedoImpl(), and ReNewBoxes().
|
private |
Definition at line 194 of file UndoTable.hxx.
Referenced by RedoImpl().
|
private |
Definition at line 192 of file UndoTable.hxx.
Referenced by RedoImpl(), and SaveNewBoxes().
|
private |
Definition at line 190 of file UndoTable.hxx.
Referenced by RedoImpl().
|
private |
Definition at line 190 of file UndoTable.hxx.
Referenced by RedoImpl().
|
private |
Definition at line 191 of file UndoTable.hxx.
Referenced by RedoImpl(), SaveSection(), and UndoImpl().
|
private |
Definition at line 189 of file UndoTable.hxx.
Referenced by SaveSection(), and UndoImpl().
|
private |
Definition at line 179 of file UndoTable.hxx.
Referenced by SwUndoTableNdsChg(), and UndoImpl().
Definition at line 188 of file UndoTable.hxx.
Referenced by SaveNewBoxes(), and UndoImpl().