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

#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, long nMn, 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< sal_uLong > &rNodeCnts)
 
void SaveSection (SwStartNode *pSttNd)
 
void ReNewBoxes (const SwSelBoxes &rBoxes)
 
- Public Member Functions inherited from SwUndo
 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 bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) 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< sal_uLongm_Boxes
 
std::unique_ptr< std::set< BoxMove > > m_pNewSttNds
 
std::unique_ptr< SwUndoSaveSectionsm_pDelSects
 
long m_nMin
 
long m_nMax
 
sal_uLong m_nSttNode
 
sal_uInt16 m_nCount
 
bool const m_bFlag
 
bool const 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 &, 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)
 
- Protected Attributes inherited from SwUndo
bool m_bCacheComment
 
boost::optional< OUString > maComment
 

Detailed Description

Definition at line 166 of file UndoTable.hxx.

Constructor & Destructor Documentation

SwUndoTableNdsChg::SwUndoTableNdsChg ( SwUndoTableNdsChg const &  )
privatedelete
SwUndoTableNdsChg::SwUndoTableNdsChg ( SwUndoId  UndoId,
const SwSelBoxes rBoxes,
const SwTableNode rTableNd,
long  nMn,
long  nMx,
sal_uInt16  nCnt,
bool  bFlg,
bool  bSameHeight 
)

Definition at line 1467 of file untbl.cxx.

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

SwUndoTableNdsChg::~SwUndoTableNdsChg ( )
overridevirtual

Definition at line 1498 of file untbl.cxx.

Member Function Documentation

SwUndoTableNdsChg& SwUndoTableNdsChg::operator= ( SwUndoTableNdsChg const &  )
privatedelete
void SwUndoTableNdsChg::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual
void SwUndoTableNdsChg::ReNewBoxes ( const SwSelBoxes rBoxes)

Definition at line 1486 of file untbl.cxx.

References m_Boxes, and o3tl::sorted_vector< Value, Compare, Find, class >::size().

Referenced by SwUndoTableNdsChg().

void SwUndoTableNdsChg::SaveNewBoxes ( const SwTableNode rTableNd,
const SwTableSortBoxes rOld 
)
void SwUndoTableNdsChg::SaveNewBoxes ( const SwTableNode rTableNd,
const SwTableSortBoxes rOld,
const SwSelBoxes rBoxes,
const std::vector< sal_uLong > &  rNodeCnts 
)
void SwUndoTableNdsChg::SaveSection ( SwStartNode pSttNd)
void SwUndoTableNdsChg::UndoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

Member Data Documentation

bool const SwUndoTableNdsChg::m_bFlag
private

Definition at line 182 of file UndoTable.hxx.

Referenced by RedoImpl().

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

Definition at line 169 of file UndoTable.hxx.

Referenced by RedoImpl(), and ReNewBoxes().

bool const SwUndoTableNdsChg::m_bSameHeight
private

Definition at line 183 of file UndoTable.hxx.

Referenced by RedoImpl().

sal_uInt16 SwUndoTableNdsChg::m_nCount
private

Definition at line 181 of file UndoTable.hxx.

Referenced by RedoImpl(), and SaveNewBoxes().

long SwUndoTableNdsChg::m_nMax
private

Definition at line 179 of file UndoTable.hxx.

Referenced by RedoImpl().

long SwUndoTableNdsChg::m_nMin
private

Definition at line 179 of file UndoTable.hxx.

Referenced by RedoImpl().

sal_uLong SwUndoTableNdsChg::m_nSttNode
private

Definition at line 180 of file UndoTable.hxx.

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

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

Definition at line 178 of file UndoTable.hxx.

Referenced by SaveSection(), and UndoImpl().

std::unique_ptr< std::set<BoxMove> > SwUndoTableNdsChg::m_pNewSttNds
private

Definition at line 177 of file UndoTable.hxx.

Referenced by SaveNewBoxes(), and UndoImpl().

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

Definition at line 168 of file UndoTable.hxx.

Referenced by SwUndoTableNdsChg(), and UndoImpl().


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