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

#include <UndoTable.hxx>

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

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

Private Attributes

SwNodeOffset m_nTableNode
 
std::unique_ptr< SaveTablem_pSaveTable
 
std::set< SwNodeOffsetm_Boxes
 
std::vector< SwNodeOffsetm_aNewStartNodes
 
std::vector< std::unique_ptr< SwUndoMove > > m_vMoves
 
std::unique_ptr< SwHistorym_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
 
SwPaMAddUndoRedoPaM (::sw::UndoRedoContext &, bool const bCorrToContent=false) const
 

Detailed Description

Definition at line 221 of file UndoTable.hxx.

Constructor & Destructor Documentation

◆ SwUndoTableMerge()

SwUndoTableMerge::SwUndoTableMerge ( const SwPaM rTableSel)

◆ ~SwUndoTableMerge()

SwUndoTableMerge::~SwUndoTableMerge ( )
overridevirtual

Definition at line 1852 of file untbl.cxx.

References m_pHistory, m_pSaveTable, and m_vMoves.

Member Function Documentation

◆ AddNewBox()

void SwUndoTableMerge::AddNewBox ( SwNodeOffset  nSttNdIdx)
inline

Definition at line 242 of file UndoTable.hxx.

References m_aNewStartNodes.

Referenced by GetMergeSel(), SwTable::OldMerge(), and SwTable::PrepareMerge().

◆ MoveBoxContent()

void SwUndoTableMerge::MoveBoxContent ( SwDoc rDoc,
SwNodeRange rRg,
SwNode rPos 
)

◆ RedoImpl()

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

Implements SwUndo.

Definition at line 2000 of file untbl.cxx.

References SwUndRng::AddUndoRedoPaM(), sw::UndoRedoContext::GetDoc(), and SwDoc::MergeTable().

◆ SaveCollection()

void SwUndoTableMerge::SaveCollection ( const SwTableBox rBox)

◆ SetSelBoxes()

void SwUndoTableMerge::SetSelBoxes ( const SwSelBoxes rBoxes)

◆ UndoImpl()

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

Implements SwUndo.

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

Member Data Documentation

◆ m_aNewStartNodes

std::vector<SwNodeOffset> SwUndoTableMerge::m_aNewStartNodes
private

Definition at line 226 of file UndoTable.hxx.

Referenced by AddNewBox(), SetSelBoxes(), and UndoImpl().

◆ m_Boxes

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

Definition at line 225 of file UndoTable.hxx.

Referenced by SetSelBoxes(), and UndoImpl().

◆ m_nTableNode

SwNodeOffset SwUndoTableMerge::m_nTableNode
private

Definition at line 223 of file UndoTable.hxx.

Referenced by SetSelBoxes(), SwUndoTableMerge(), and UndoImpl().

◆ m_pHistory

std::unique_ptr<SwHistory> SwUndoTableMerge::m_pHistory
private

Definition at line 228 of file UndoTable.hxx.

Referenced by SaveCollection(), UndoImpl(), and ~SwUndoTableMerge().

◆ m_pSaveTable

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

Definition at line 224 of file UndoTable.hxx.

Referenced by MoveBoxContent(), SwUndoTableMerge(), UndoImpl(), and ~SwUndoTableMerge().

◆ m_vMoves

std::vector<std::unique_ptr<SwUndoMove> > SwUndoTableMerge::m_vMoves
private

Definition at line 227 of file UndoTable.hxx.

Referenced by MoveBoxContent(), UndoImpl(), and ~SwUndoTableMerge().


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