20#ifndef INCLUDED_SW_SOURCE_CORE_INC_UNDOTABLE_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_UNDOTABLE_HXX
73 const OUString & rName);
133 sal_Int32 nContentIdx = SAL_MAX_INT32);
158 std::vector< std::shared_ptr<SwUndoTableNumFormat> >
m_Undos;
175using SwUndoSaveSections = std::vector<std::unique_ptr<SwUndoSaveSection, o3tl::default_delete<SwUndoSaveSection>>>;
204 sal_uInt16 nCnt,
bool bFlg,
bool bSameHeight );
213 const SwSelBoxes& rBoxes,
const std::vector<SwNodeOffset> &rNodeCnts );
280 std::vector<std::unique_ptr<UndoTableCpyTable_Entry>>
m_vArr;
381void InsertSort( std::vector<sal_uInt16>& rArr, sal_uInt16 nIdx );
403 SwUndoTableStyleDelete(std::unique_ptr<SwTableAutoFormat> pAutoFormat, std::vector<SwTable*>&& rAffectedTables,
const SwDoc& rDoc);
std::vector< std::unique_ptr< SwUndoSaveSection, o3tl::default_delete< SwUndoSaveSection > > > SwUndoSaveSections
void InsertSort(std::vector< sal_uInt16 > &rArr, sal_uInt16 nIdx)
Marks a node in the document model.
Base class of the Writer document model elements.
PaM is Point and Mark: a selection of the document model.
Starts a section of nodes in the document model.
SwTableBox is one table cell in the document model.
SwTable is one table in the document model, containing rows (which contain cells).
SwNodeOffset m_nStartNode
virtual void RedoImpl(::sw::UndoRedoContext &) override
SwUndoAttrTable(const SwTableNode &rTableNd, bool bClearTabCols=false)
std::unique_ptr< SaveTable > m_pSaveTable
virtual ~SwUndoAttrTable() override
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwNodeOffset m_nTableNode
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual ~SwUndoCpyTable() override
void SetTableSttIdx(SwNodeOffset nIdx)
SwUndoCpyTable(const SwDoc &rDoc)
virtual void RedoImpl(::sw::UndoRedoContext &) override
std::unique_ptr< SwUndoDelete > m_pDelete
Implements undo/redo for Table -> Insert Table.
std::optional< std::vector< sal_uInt16 > > m_oColumnWidth
virtual ~SwUndoInsTable() override
SwNodeOffset m_nStartNode
SwUndoInsTable(const SwPosition &, sal_uInt16 nCols, sal_uInt16 nRows, sal_uInt16 eAdjust, const SwInsertTableOptions &rInsTableOpts, const SwTableAutoFormat *pTAFormat, const std::vector< sal_uInt16 > *pColArr, const OUString &rName)
virtual SwRewriter GetRewriter() const override
Returns the rewriter for this object.
std::unique_ptr< SwTableAutoFormat > m_pAutoFormat
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
std::unique_ptr< SwRedlineData > m_pRedlineData
virtual void RepeatImpl(::sw::RepeatContext &) override
sal_uInt16 const m_nAdjust
std::unique_ptr< SwDDEFieldType > m_pDDEFieldType
SwInsertTableOptions m_aInsTableOptions
SwNodeOffset m_nTableNode
std::unique_ptr< SaveTable > m_pSaveHdl
SwUndoMergeTable(const SwTableNode &rTableNd, const SwTableNode &rDelTableNd, bool bWithPrev)
void SaveFormula(SwHistory &rHistory)
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual ~SwUndoMergeTable() override
std::unique_ptr< SaveTable > m_pSaveTable
std::unique_ptr< SwHistory > m_pHistory
virtual void RedoImpl(::sw::UndoRedoContext &) override
std::unique_ptr< SwSaveRowSpan > mpSaveRowSpan
std::unique_ptr< SwHistory > m_pHistory
SplitTable_HeadlineOption const m_nMode
void SetTableNodeOffset(SwNodeOffset nIdx)
void SaveFormula(SwHistory &rHistory)
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual ~SwUndoSplitTable() override
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void RedoImpl(::sw::UndoRedoContext &) override
std::unique_ptr< SaveTable > m_pSavedTable
SwNodeOffset m_nTableNode
SwUndoSplitTable(const SwTableNode &rTableNd, std::unique_ptr< SwSaveRowSpan > pRowSp, SplitTable_HeadlineOption nMode, bool bCalcNewSize)
std::vector< std::unique_ptr< UndoTableCpyTable_Entry > > m_vArr
virtual void RedoImpl(::sw::UndoRedoContext &) override
void AddBoxAfter(const SwTableBox &rBox, const SwNodeIndex &rIdx, bool bDelContent)
static std::unique_ptr< SwUndo > PrepareRedline(SwDoc *pDoc, const SwTableBox &rBox, SwPosition &rPos, bool &rJoin, bool bRedo)
virtual ~SwUndoTableCpyTable() override
SwUndoTableCpyTable(const SwDoc &rDoc)
virtual void UndoImpl(::sw::UndoRedoContext &) override
std::unique_ptr< SwUndoTableNdsChg > m_pInsRowUndo
bool InsertRow(SwTable &rTable, const SwSelBoxes &rBoxes, sal_uInt16 nCnt)
void dumpAsXml(xmlTextWriterPtr pWriter) const override
void AddBoxBefore(const SwTableBox &rBox, bool bDelContent)
SwUndoTableHeadline(const SwTable &, sal_uInt16 nOldHdl, sal_uInt16 nNewHdl)
virtual void RedoImpl(::sw::UndoRedoContext &) override
SwNodeOffset m_nTableNode
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
sal_uInt16 m_nOldHeadline
sal_uInt16 m_nNewHeadline
virtual ~SwUndoTableMerge() override
std::unique_ptr< SaveTable > m_pSaveTable
virtual void RedoImpl(::sw::UndoRedoContext &) override
std::set< SwNodeOffset > m_Boxes
void SetSelBoxes(const SwSelBoxes &rBoxes)
std::vector< SwNodeOffset > m_aNewStartNodes
SwNodeOffset m_nTableNode
void MoveBoxContent(SwDoc &rDoc, SwNodeRange &rRg, SwNode &rPos)
void AddNewBox(SwNodeOffset nSttNdIdx)
SwUndoTableMerge(const SwPaM &rTableSel)
std::vector< std::unique_ptr< SwUndoMove > > m_vMoves
void SaveCollection(const SwTableBox &rBox)
virtual void UndoImpl(::sw::UndoRedoContext &) override
std::unique_ptr< SwHistory > m_pHistory
SwUndoTableNdsChg & operator=(SwUndoTableNdsChg const &)=delete
std::optional< std::set< BoxMove > > m_xNewSttNds
void ReNewBoxes(const SwSelBoxes &rBoxes)
virtual ~SwUndoTableNdsChg() override
std::unique_ptr< SwUndoSaveSections > m_pDelSects
std::set< SwNodeOffset > m_Boxes
virtual void RedoImpl(::sw::UndoRedoContext &) override
void SaveSection(SwStartNode *pSttNd)
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwUndoTableNdsChg(SwUndoTableNdsChg const &)=delete
std::unique_ptr< SaveTable > m_pSaveTable
void SaveNewBoxes(const SwTableNode &rTableNd, const SwTableSortBoxes &rOld)
virtual void UndoImpl(::sw::UndoRedoContext &) override
std::unique_ptr< SwTableAutoFormat > m_pAutoFormat
virtual ~SwUndoTableStyleDelete() override
std::vector< SwTable * > m_rAffectedTables
SwUndoTableStyleDelete(std::unique_ptr< SwTableAutoFormat > pAutoFormat, std::vector< SwTable * > &&rAffectedTables, const SwDoc &rDoc)
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual SwRewriter GetRewriter() const override
Returns the rewriter for this object.
virtual SwRewriter GetRewriter() const override
Returns the rewriter for this object.
SwUndoTableStyleMake(OUString aName, const SwDoc &rDoc)
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual ~SwUndoTableStyleMake() override
std::unique_ptr< SwTableAutoFormat > m_pAutoFormat
virtual void RedoImpl(::sw::UndoRedoContext &) override
SwUndoTableStyleUpdate(const SwTableAutoFormat &rNewFormat, const SwTableAutoFormat &rOldFormat, const SwDoc &rDoc)
std::unique_ptr< SwTableAutoFormat > m_pNewFormat
std::unique_ptr< SwTableAutoFormat > m_pOldFormat
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual SwRewriter GetRewriter() const override
Returns the rewriter for this object.
virtual ~SwUndoTableStyleUpdate() override
std::unique_ptr< SwHistory > m_pHistory
virtual void RepeatImpl(::sw::RepeatContext &) override
std::unique_ptr< SwDDEFieldType > m_pDDEFieldType
void AddBoxPos(SwDoc &rDoc, SwNodeOffset nNdIdx, SwNodeOffset nEndIdx, sal_Int32 nContentIdx=SAL_MAX_INT32)
virtual ~SwUndoTableToText() override
SwNodeOffset m_nStartNode
std::unique_ptr< SaveTable > m_pTableSave
SwTableToTextSaves m_vBoxSaves
SwUndoTableToText(const SwTable &rTable, sal_Unicode cCh)
void SetRange(const SwNodeRange &)
virtual void UndoImpl(::sw::UndoRedoContext &) override
sal_uInt16 m_nHeadlineRepeat
virtual void RedoImpl(::sw::UndoRedoContext &) override
void AddFillBox(const SwTableBox &rBox)
virtual void UndoImpl(::sw::UndoRedoContext &) override
std::vector< SwNodeOffset > mvDelBoxes
SwUndoTextToTable(const SwPaM &, const SwInsertTableOptions &, sal_Unicode, sal_uInt16, const SwTableAutoFormat *pAFormat)
std::unique_ptr< SwTableAutoFormat > m_pAutoFormat
virtual void RepeatImpl(::sw::RepeatContext &) override
SwInsertTableOptions m_aInsertTableOpts
virtual ~SwUndoTextToTable() override
virtual void RedoImpl(::sw::UndoRedoContext &) override
struct _xmlTextWriter * xmlTextWriterPtr
Dialog to specify the properties of date form field.
void NotifyTableCollapsedParagraph(const SwContentNode *const pNode, SwCursorShell *const pShell)
An empty paragraph inside a table with a nested table preceding it should be hidden,...
std::vector< std::unique_ptr< SwTableToTextSave > > SwTableToTextSaves
Marks a position in the document model.
This structure is needed by Undo to restore row span attributes when a table has been split into two ...
SwNodeOffset index
Index of this box.
bool hasMoved
Has this box been moved already.
BoxMove(SwNodeOffset idx, bool moved=false)
bool operator<(const BoxMove &other) const
SplitTable_HeadlineOption