LibreOffice Module sw (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwUndoTableNdsChg Class Referencefinal

#include <UndoTable.hxx>

Inheritance diagram for SwUndoTableNdsChg:
[legend]
Collaboration diagram for SwUndoTableNdsChg:
[legend]

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 DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

 SwUndoTableNdsChg (SwUndoTableNdsChg const &)=delete
 
SwUndoTableNdsChgoperator= (SwUndoTableNdsChg const &)=delete
 

Private Attributes

std::unique_ptr< SaveTablem_pSaveTable
 
std::set< SwNodeOffsetm_Boxes
 
std::optional< std::set< BoxMove > > m_xNewSttNds
 
std::unique_ptr< SwUndoSaveSectionsm_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
 

Detailed Description

Definition at line 177 of file UndoTable.hxx.

Constructor & Destructor Documentation

◆ SwUndoTableNdsChg() [1/2]

SwUndoTableNdsChg::SwUndoTableNdsChg ( SwUndoTableNdsChg const &  )
privatedelete

◆ SwUndoTableNdsChg() [2/2]

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 1473 of file untbl.cxx.

References SwTableNode::GetTable(), m_nCount, m_pSaveTable, and ReNewBoxes().

◆ ~SwUndoTableNdsChg()

SwUndoTableNdsChg::~SwUndoTableNdsChg ( )
overridevirtual

Definition at line 1504 of file untbl.cxx.

Member Function Documentation

◆ operator=()

SwUndoTableNdsChg & SwUndoTableNdsChg::operator= ( SwUndoTableNdsChg const &  )
privatedelete

◆ RedoImpl()

void SwUndoTableNdsChg::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

◆ ReNewBoxes()

void SwUndoTableNdsChg::ReNewBoxes ( const SwSelBoxes rBoxes)

◆ SaveNewBoxes() [1/2]

void SwUndoTableNdsChg::SaveNewBoxes ( const SwTableNode rTableNd,
const SwTableSortBoxes rOld 
)

◆ SaveNewBoxes() [2/2]

void SwUndoTableNdsChg::SaveNewBoxes ( const SwTableNode rTableNd,
const SwTableSortBoxes rOld,
const SwSelBoxes rBoxes,
const std::vector< SwNodeOffset > &  rNodeCnts 
)

◆ SaveSection()

void SwUndoTableNdsChg::SaveSection ( SwStartNode pSttNd)

Definition at line 1639 of file untbl.cxx.

References SwNode::FindTableNode(), SwNode::GetIndex(), SwUndo::IsDelBox(), m_nSttNode, and m_pDelSects.

Referenced by DeleteBox_().

◆ UndoImpl()

void SwUndoTableNdsChg::UndoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

Implements SwUndo.

Definition at line 1653 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(), SwDoc::getIDocumentFieldsAccess(), 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(), SwTableFormulaUpdate::m_eFlags, 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(), SwTableBoxStartNode, TBL_BOXPTR, SwDoc::UpdateCharts(), IDocumentFieldsAccess::UpdateTableFields(), and SwFEShell::UpdateTableStyleFormatting().

Member Data Documentation

◆ m_bFlag

bool SwUndoTableNdsChg::m_bFlag
private

Definition at line 193 of file UndoTable.hxx.

Referenced by RedoImpl().

◆ m_Boxes

std::set<SwNodeOffset> SwUndoTableNdsChg::m_Boxes
private

Definition at line 180 of file UndoTable.hxx.

Referenced by RedoImpl(), and ReNewBoxes().

◆ m_bSameHeight

bool SwUndoTableNdsChg::m_bSameHeight
private

Definition at line 194 of file UndoTable.hxx.

Referenced by RedoImpl().

◆ m_nCount

sal_uInt16 SwUndoTableNdsChg::m_nCount
private

Definition at line 192 of file UndoTable.hxx.

Referenced by RedoImpl(), and SaveNewBoxes().

◆ m_nMax

tools::Long SwUndoTableNdsChg::m_nMax
private

Definition at line 190 of file UndoTable.hxx.

Referenced by RedoImpl().

◆ m_nMin

tools::Long SwUndoTableNdsChg::m_nMin
private

Definition at line 190 of file UndoTable.hxx.

Referenced by RedoImpl().

◆ m_nSttNode

SwNodeOffset SwUndoTableNdsChg::m_nSttNode
private

Definition at line 191 of file UndoTable.hxx.

Referenced by RedoImpl(), SaveSection(), and UndoImpl().

◆ m_pDelSects

std::unique_ptr<SwUndoSaveSections> SwUndoTableNdsChg::m_pDelSects
private

Definition at line 189 of file UndoTable.hxx.

Referenced by SaveSection(), and UndoImpl().

◆ m_pSaveTable

std::unique_ptr<SaveTable> SwUndoTableNdsChg::m_pSaveTable
private

Definition at line 179 of file UndoTable.hxx.

Referenced by SwUndoTableNdsChg(), and UndoImpl().

◆ m_xNewSttNds

std::optional< std::set<BoxMove> > SwUndoTableNdsChg::m_xNewSttNds
private

Definition at line 188 of file UndoTable.hxx.

Referenced by SaveNewBoxes(), and UndoImpl().


The documentation for this class was generated from the following files: