42 SCTAB nNewCount, std::unique_ptr<
SCTAB[]> pNewTabs, std::unique_ptr<
SCTAB[]> pNewScenarios,
44 bool bNewPartOfPaste );
47 virtual void Undo()
override;
48 virtual void Redo()
override;
59 std::unique_ptr<SCTAB[]>
61 std::unique_ptr<SCTAB[]>
66 std::unique_ptr<SfxUndoAction>
78 SCTAB nNewCount, std::unique_ptr<
SCTAB[]> pNewTabs, std::unique_ptr<
SCTAB[]> pNewScenarios,
82 virtual void Undo()
override;
83 virtual void Redo()
override;
92 std::unique_ptr<SCTAB[]>
94 std::unique_ptr<SCTAB[]>
109 bool bNewRows,
bool bNeedsRefresh,
SCTAB nNewTab,
110 std::vector<sc::ColRowSpan>&& rSpans,
115 virtual void Undo()
override;
116 virtual void Redo()
override;
144 virtual void Undo()
override;
145 virtual void Redo()
override;
159 void DoChange(
const bool bUndo );
160 void SetChangeTrack();
187 std::unique_ptr<ScRefUndoData> pRefData,
188 bool bRedoIsFilled =
true,
192 virtual void Undo()
override;
193 virtual void Redo()
override;
211 void DoChange(
bool bUndo);
212 void SetChangeTrack();
224 virtual void Undo()
override;
225 virtual void Redo()
override;
258 virtual void Undo()
override;
259 virtual void Redo()
override;
265 void SetDataSpans(
const std::shared_ptr<DataSpansType>& pSpans );
294 virtual void Undo()
override;
295 virtual void Redo()
override;
330 const ScRange* pRangeCover =
nullptr );
333 virtual void Undo()
override;
334 virtual void Redo()
override;
364 std::vector<sc::ColRowSpan>&& rRanges,
365 std::unique_ptr<ScOutlineTable> pNewUndoTab,
366 ScSizeMode eNewMode, sal_uInt16 nNewSizeTwips,
370 virtual void Undo()
override;
371 virtual void Redo()
override;
400 double fNewStartValue,
double fNewStepValue,
double fNewMaxValue );
403 virtual void Undo()
override;
404 virtual void Redo()
override;
432 std::unique_ptr<SdrUndoAction> pDrawUndo);
435 virtual void Undo()
override;
436 virtual void Redo()
override;
457 bool bNewSize, sal_uInt16 nNewFormatNo );
460 virtual void Undo()
override;
461 virtual void Redo()
override;
485 virtual void Undo()
override;
486 virtual void Redo()
override;
518 virtual void Undo()
override;
519 virtual void Redo()
override;
546 virtual void Undo()
override;
547 virtual void Redo()
override;
575 virtual void Undo()
override;
576 virtual void Redo()
override;
602 virtual void Undo()
override;
603 virtual void Redo()
override;
623 virtual void Undo()
override;
624 virtual void Redo()
override;
644 virtual void Undo()
override;
645 virtual void Redo()
override;
667 virtual void Undo()
override;
668 virtual void Redo()
override;
692 virtual void Undo()
override;
693 virtual void Redo()
override;
715 virtual void Undo()
override;
716 virtual void Redo()
override;
736 virtual void Undo()
override;
737 virtual void Redo()
override;
763 virtual void Undo()
override;
764 virtual void Redo()
override;
789 virtual void Undo()
override;
790 virtual void Redo()
override;
810 OUString aOldF, OUString aOldO,
811 OUString aOldA,
const ScRange& rOldR,
814 OUString aNewF, OUString aNewO,
815 OUString aNewA,
const ScRange& rNewR,
820 virtual void Undo()
override;
821 virtual void Redo()
override;
844 void DoChange(
const bool bUndo )
const;
854 virtual void Undo()
override;
855 virtual void Redo()
override;
875 virtual void Undo()
override;
876 virtual void Redo()
override;
897 virtual void Undo()
override;
898 virtual void Redo()
override;
908 std::unique_ptr<sal_uInt16[]>
919 virtual void Undo()
override;
920 virtual void Redo()
override;
943 virtual void Undo()
override;
944 virtual void Redo()
override;
969 virtual void Undo()
override;
970 virtual void Redo()
override;
Parameters for conversion.
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
ScDocumentUniquePtr pUndoDoc
sal_uLong nEndChangeAction
ScUndoAutoFill(ScDocShell *pNewDocShell, const ScRange &rRange, const ScRange &rSourceArea, ScDocumentUniquePtr pNewUndoDoc, const ScMarkData &rMark, FillDir eNewFillDir, FillCmd eNewFillCmd, FillDateCmd eNewFillDateCmd, double fNewStartValue, double fNewStepValue, double fNewMaxValue)
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual void Redo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual OUString GetComment() const override
virtual void Undo() override
virtual ~ScUndoAutoFill() override
sal_uLong nStartChangeAction
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual OUString GetComment() const override
std::unique_ptr< ScRangeList > xRanges
virtual void Redo() override
ScUndoBorder(ScDocShell *pNewDocShell, const ScRangeList &rRangeList, ScDocumentUniquePtr pNewUndoDoc, const SvxBoxItem &rNewOuter, const SvxBoxInfoItem &rNewInner)
std::unique_ptr< SvxBoxInfoItem > xInner
ScDocumentUniquePtr xUndoDoc
virtual void Undo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
std::unique_ptr< SvxBoxItem > xOuter
std::unique_ptr< sal_uInt16[]> pWhich
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual ~ScUndoClearItems() override
ScDocumentUniquePtr pUndoDoc
ScUndoClearItems(ScDocShell *pNewDocShell, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, const sal_uInt16 *pW)
virtual OUString GetComment() const override
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual void Redo() override
ScDocumentUniquePtr pRedoDoc
void DoChange(ScDocument *pRefDoc, const ScAddress &rCursorPos)
Conversion type and parameters.
ScDocumentUniquePtr pUndoDoc
virtual void Undo() override
virtual OUString GetComment() const override
sal_uLong nStartChangeAction
ScUndoConversion(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScDocumentUniquePtr pNewUndoDoc, SCCOL nNewX, SCROW nNewY, SCTAB nNewZ, ScDocumentUniquePtr pNewRedoDoc, ScConversionParam aConvParam)
sal_uLong nEndChangeAction
ScConversionParam maConvParam
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Redo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual ~ScUndoConversion() override
ScDocumentUniquePtr pUndoDoc
sal_uLong nStartChangeAction
sal_uLong nEndChangeAction
virtual ~ScUndoDeleteCells() override
std::unique_ptr< SCTAB[]> pTabs
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual void Undo() override
void DoChange(const bool bUndo)
virtual OUString GetComment() const override
ScUndoDeleteCells(ScDocShell *pNewDocShell, const ScRange &rRange, SCTAB nNewCount, std::unique_ptr< SCTAB[]> pNewTabs, std::unique_ptr< SCTAB[]> pNewScenarios, DelCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
virtual void Redo() override
std::unique_ptr< SCTAB[]> pScenarios
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
sal_uLong nStartChangeAction
sal_uLong nEndChangeAction
void DoChange(const bool bUndo)
sal_uLong nStartChangeAction
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
ScDocumentUniquePtr pUndoDoc
virtual void Redo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
std::shared_ptr< DataSpansType > mpDataSpans
virtual void Undo() override
virtual ~ScUndoDeleteContents() override
sal_uLong nEndChangeAction
std::unique_ptr< SdrUndoAction > pDrawUndo
virtual OUString GetComment() const override
void SetDataSpans(const std::shared_ptr< DataSpansType > &pSpans)
ScUndoDeleteContents(ScDocShell *pNewDocShell, const ScMarkData &rMark, const ScRange &rRange, ScDocumentUniquePtr &&pNewUndoDoc, bool bNewMulti, InsertDeleteFlags nNewFlags, bool bObjects)
sal_uLong nEndChangeAction
sal_uLong nStartChangeAction
virtual void Redo() override
ScUndoDeleteMulti(ScDocShell *pNewDocShell, bool bNewRows, bool bNeedsRefresh, SCTAB nNewTab, std::vector< sc::ColRowSpan > &&rSpans, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData)
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Undo() override
virtual ~ScUndoDeleteMulti() override
virtual OUString GetComment() const override
virtual void Repeat(SfxRepeatTarget &rTarget) override
std::vector< sc::ColRowSpan > maSpans
virtual void Undo() override
ScRangeList maPaintRanges
sal_uLong nEndChangeAction
virtual void Redo() override
ScUndoDragDrop(ScDocShell *pNewDocShell, const ScRange &rRange, const ScAddress &aNewDestPos, bool bNewCut, ScDocumentUniquePtr pUndoDocument, bool bScenario)
sal_uInt16 mnPaintExtFlags
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
sal_uLong nStartChangeAction
virtual ~ScUndoDragDrop() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
void DoUndo(ScRange aRange)
virtual OUString GetComment() const override
void PaintArea(ScRange aRange, sal_uInt16 nExtFlags) const
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
sal_uLong nStartChangeAction
virtual void Redo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScDocumentUniquePtr pUndoDoc
ScUndoEnterMatrix(ScDocShell *pNewDocShell, const ScRange &rArea, ScDocumentUniquePtr pNewUndoDoc, OUString aForm)
virtual OUString GetComment() const override
virtual void Undo() override
sal_uLong nEndChangeAction
virtual ~ScUndoEnterMatrix() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScDocumentUniquePtr pUndoDoc
virtual ~ScUndoFillTable() override
virtual void Undo() override
virtual void Redo() override
ScUndoFillTable(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti, SCTAB nSrc, InsertDeleteFlags nFlg, ScPasteFunc nFunc, bool bSkip, bool bLink)
void DoChange(const bool bUndo)
sal_uLong nStartChangeAction
virtual OUString GetComment() const override
sal_uLong nEndChangeAction
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
ScDocumentUniquePtr pUndoDoc
virtual ~ScUndoIndent() override
virtual void Undo() override
virtual void Redo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual OUString GetComment() const override
ScUndoIndent(ScDocShell *pNewDocShell, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, bool bIncrement)
virtual void Undo() override
virtual OUString GetComment() const override
virtual void Redo() override
ScUndoInsertAreaLink(ScDocShell *pShell, OUString aDocName, OUString aFltName, OUString aOptions, OUString aAreaName, const ScRange &rDestRange, sal_uLong nRefreshDelay)
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual ~ScUndoInsertAreaLink() override
std::unique_ptr< SCTAB[]> pScenarios
virtual bool Merge(SfxUndoAction *pNextAction) override
virtual void Repeat(SfxRepeatTarget &rTarget) override
void DoChange(const bool bUndo)
sal_uLong nEndChangeAction
ScUndoInsertCells(ScDocShell *pNewDocShell, const ScRange &rRange, SCTAB nNewCount, std::unique_ptr< SCTAB[]> pNewTabs, std::unique_ptr< SCTAB[]> pNewScenarios, InsCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData, bool bNewPartOfPaste)
virtual ~ScUndoInsertCells() override
std::unique_ptr< SfxUndoAction > pPasteUndo
virtual OUString GetComment() const override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Undo() override
virtual void Redo() override
std::unique_ptr< SCTAB[]> pTabs
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScUndoListNames(ScDocShell *pNewDocShell, const ScRange &rRange, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc)
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
ScDocumentUniquePtr xUndoDoc
virtual OUString GetComment() const override
ScDocumentUniquePtr xRedoDoc
virtual void Redo() override
void DoChange(ScDocument *pSrcDoc) const
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual ~ScUndoMerge() override
ScCellMergeOption maOption
virtual void Redo() override
ScDocumentUniquePtr mxUndoDoc
virtual OUString GetComment() const override
ScUndoMerge(ScDocShell *pNewDocShell, ScCellMergeOption aOption, bool bMergeContents, ScDocumentUniquePtr pUndoDoc, std::unique_ptr< SdrUndoAction > pDrawUndo)
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
void DoChange(bool bUndo) const
virtual void Undo() override
std::unique_ptr< SdrUndoAction > mpDrawUndo
ScDocumentUniquePtr pRedoDoc
sal_uLong nStartChangeAction
sal_uLong nEndChangeAction
ScUndoPasteOptions aPasteOptions
ScDocumentUniquePtr pUndoDoc
std::unique_ptr< ScRefUndoData > pRefRedoData
std::unique_ptr< ScRefUndoData > pRefUndoData
virtual void Redo() override
virtual OUString GetComment() const override
sal_uLong nEndChangeAction
ScDocumentUniquePtr pUndoDoc
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScDocumentUniquePtr pRedoDoc
void DoChange(ScDocument *pRefDoc)
virtual void Undo() override
sal_uLong nStartChangeAction
ScUndoRefConversion(ScDocShell *pNewDocShell, const ScRange &aMarkRange, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, bool bNewMulti)
virtual ~ScUndoRefConversion() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual void Redo() override
ScUndoRefreshLink(ScDocShell *pNewDocShell, ScDocumentUniquePtr pNewUndoDoc)
virtual void Undo() override
virtual OUString GetComment() const override
ScDocumentUniquePtr xRedoDoc
ScDocumentUniquePtr xUndoDoc
virtual ~ScUndoRemoveAreaLink() override
virtual void Redo() override
virtual OUString GetComment() const override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScUndoRemoveAreaLink(ScDocShell *pShell, OUString aDocName, OUString aFltName, OUString aOptions, OUString aAreaName, const ScRange &rDestRange, sal_uLong nRefreshDelay)
virtual void Undo() override
ScDocumentUniquePtr pUndoDoc
virtual OUString GetComment() const override
ScUndoRemoveBreaks(ScDocShell *pNewDocShell, SCTAB nNewTab, ScDocumentUniquePtr pNewUndoDoc)
virtual ~ScUndoRemoveBreaks() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual void Redo() override
virtual void Undo() override
ScUndoRemoveMerge(ScDocShell *pNewDocShell, const ScCellMergeOption &rOption, ScDocumentUniquePtr pNewUndoDoc)
virtual void Undo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
ScDocumentUniquePtr pUndoDoc
std::vector< ScCellMergeOption > maOptions
virtual OUString GetComment() const override
virtual void Redo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
void AddCellMergeOption(const ScCellMergeOption &rOption)
virtual ~ScUndoRemoveMerge() override
ScDocument * GetUndoDoc()
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual OUString GetComment() const override
virtual void Redo() override
std::unique_ptr< SvxSearchItem > pSearchItem
sal_uLong nStartChangeAction
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual ~ScUndoReplace() override
ScDocumentUniquePtr pUndoDoc
ScUndoReplace(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, OUString aNewUndoStr, ScDocumentUniquePtr pNewUndoDoc, const SvxSearchItem *pItem)
virtual void Undo() override
sal_uLong nEndChangeAction
virtual void Redo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
ScUndoSelectionAttr(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti, const ScPatternAttr *pNewApply, const SvxBoxItem *pNewOuter=nullptr, const SvxBoxInfoItem *pNewInner=nullptr, const ScRange *pRangeCover=nullptr)
SvxBoxInfoItem * pLineInner
virtual OUString GetComment() const override
virtual ~ScUndoSelectionAttr() override
std::unique_ptr< ScEditDataArray > mpDataArray
ScPatternAttr * pApplyPattern
virtual void Undo() override
void DoChange(const bool bUndo)
ScDocumentUniquePtr pUndoDoc
void ChangeEditData(const bool bUndo)
ScEditDataArray * GetDataArray()
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual ~ScUndoSelectionStyle() override
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual OUString GetComment() const override
ScUndoSelectionStyle(ScDocShell *pNewDocShell, const ScMarkData &rMark, const ScRange &rRange, OUString aName, ScDocumentUniquePtr pNewUndoDoc)
virtual void Redo() override
void DoChange(const bool bUndo)
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
ScDocumentUniquePtr pUndoDoc
virtual OUString GetComment() const override
virtual ~ScUndoTabOp() override
ScTabOpParam::Mode meMode
ScUndoTabOp(ScDocShell *pNewDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, const ScRefAddress &rFormulaCell, const ScRefAddress &rFormulaEnd, const ScRefAddress &rRowCell, const ScRefAddress &rColCell, ScTabOpParam::Mode eMode)
virtual void Redo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScDocumentUniquePtr pUndoDoc
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
ScRefAddress theFormulaEnd
ScRefAddress theFormulaCell
virtual void Undo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual OUString GetComment() const override
virtual void Undo() override
TransliterationFlags nTransliterationType
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual ~ScUndoTransliterate() override
ScDocumentUniquePtr pUndoDoc
virtual void Redo() override
ScUndoTransliterate(ScDocShell *pNewDocShell, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, TransliterationFlags nType)
void DoChange(const bool bUndo) const
virtual void Undo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Redo() override
ScDocumentUniquePtr xRedoDoc
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScUndoUpdateAreaLink(ScDocShell *pShell, OUString aOldD, OUString aOldF, OUString aOldO, OUString aOldA, const ScRange &rOldR, sal_uLong nOldRD, OUString aNewD, OUString aNewF, OUString aNewO, OUString aNewA, const ScRange &rNewR, sal_uLong nNewRD, ScDocumentUniquePtr pUndo, ScDocumentUniquePtr pRedo, bool bDoInsert)
ScDocumentUniquePtr xUndoDoc
virtual OUString GetComment() const override
virtual ~ScUndoUseScenario() override
virtual void Redo() override
virtual void Undo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual OUString GetComment() const override
ScUndoUseScenario(ScDocShell *pNewDocShell, const ScMarkData &rMark, const ScArea &rDestArea, ScDocumentUniquePtr pNewUndoDoc, OUString aNewName)
ScDocumentUniquePtr pUndoDoc
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual ~ScUndoWidthOrHeight() override
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
std::vector< sc::ColRowSpan > maRanges
std::unique_ptr< ScOutlineTable > pUndoTab
std::unique_ptr< SdrUndoAction > pDrawUndo
ScDocumentUniquePtr pUndoDoc
virtual void Redo() override
ScUndoWidthOrHeight(ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOLROW nNewStart, SCTAB nNewStartTab, SCCOLROW nNewEnd, SCTAB nNewEndTab, ScDocumentUniquePtr pNewUndoDoc, std::vector< sc::ColRowSpan > &&rRanges, std::unique_ptr< ScOutlineTable > pNewUndoTab, ScSizeMode eNewMode, sal_uInt16 nNewSizeTwips, bool bNewWidth)
Change column widths or row heights.
virtual OUString GetComment() const override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Repeat(SfxRepeatTarget &)
virtual OUString GetComment() const
virtual bool CanRepeat(SfxRepeatTarget &) const
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW