45 virtual void Undo()
override;
46 virtual void Redo()
override;
55 void SetEditData( std::unique_ptr<EditTextObject> pOld, std::unique_ptr<EditTextObject> pNew );
67 void DoChange(
const ScPatternAttr* pWhichPattern,
const std::unique_ptr<EditTextObject>& pEditData )
const;
88 ValuesType& rOldValues, OUString aNewStr, std::unique_ptr<EditTextObject> pObj );
90 virtual void Undo()
override;
91 virtual void Redo()
override;
92 virtual void Repeat(SfxRepeatTarget& rTarget)
override;
93 virtual bool CanRepeat(SfxRepeatTarget& rTarget)
const override;
120 virtual void Undo()
override;
121 virtual void Redo()
override;
145 virtual void Undo()
override;
146 virtual void Redo()
override;
170 bool bNewColumn,
bool bNewInsert );
173 virtual void Undo()
override;
174 virtual void Redo()
override;
194 sal_uInt16 nOS, sal_uInt16 nOP, sal_uInt16 nNS, sal_uInt16 nNP );
197 virtual void Undo()
override;
198 virtual void Redo()
override;
222 virtual void Undo()
override;
223 virtual void Redo()
override;
253 std::unique_ptr<SdrUndoAction> pDrawUndo );
261 std::unique_ptr<SdrUndoAction> pDrawUndo );
265 virtual void Undo()
override;
266 virtual void Redo()
override;
292 virtual void Undo()
override;
293 virtual void Redo()
override;
310 std::unique_ptr<SdrUndoAction> pDraw,
const ScDetOpData* pOperation,
311 std::unique_ptr<ScDetOpList> pUndoList =
nullptr );
314 virtual void Undo()
override;
315 virtual void Redo()
override;
334 std::unique_ptr<ScRangeName> pOld, std::unique_ptr<ScRangeName> pNew ,
SCTAB nTab);
337 virtual void Undo()
override;
338 virtual void Redo()
override;
366 virtual void Undo()
override;
367 virtual void Redo()
override;
369 virtual bool CanRepeat( SfxRepeatTarget& )
const override;
374 void SetNewValues(
const std::vector<ScFormulaCell*>& rVals );
std::unique_ptr< EditTextObject > pOldEditData
virtual void Undo() override
std::unique_ptr< EditTextObject > pNewEditData
void DoChange(const ScPatternAttr *pWhichPattern, const std::unique_ptr< EditTextObject > &pEditData) const
virtual void Redo() override
ScPatternAttr * pNewPattern
ScPatternAttr * pApplyPattern
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual OUString GetComment() const override
virtual ~ScUndoCursorAttr() override
ScUndoCursorAttr(ScDocShell *pNewDocShell, SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, const ScPatternAttr *pOldPat, const ScPatternAttr *pNewPat, const ScPatternAttr *pApplyPat)
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScPatternAttr * pOldPattern
void SetEditData(std::unique_ptr< EditTextObject > pOld, std::unique_ptr< EditTextObject > pNew)
once the objects are passed to this class, their life-cycle is managed by this class; the calling fun...
virtual void Redo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Undo() override
std::unique_ptr< ScDetOpList > pOldList
virtual ~ScUndoDetective() override
virtual OUString GetComment() const override
ScUndoDetective(ScDocShell *pNewDocShell, std::unique_ptr< SdrUndoAction > pDraw, const ScDetOpData *pOperation, std::unique_ptr< ScDetOpList > pUndoList=nullptr)
virtual void Repeat(SfxRepeatTarget &rTarget) override
std::unique_ptr< SdrUndoAction > pDrawUndo
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual OUString GetComment() const override
sal_uLong mnEndChangeAction
virtual void Undo() override
virtual std::optional< ScRange > getAffectedRange() const override
ScUndoEnterData(ScDocShell *pNewDocShell, const ScAddress &rPos, ValuesType &rOldValues, OUString aNewStr, std::unique_ptr< EditTextObject > pObj)
std::unique_ptr< EditTextObject > mpNewEditData
std::vector< Value > ValuesType
virtual void Redo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual std::optional< ScRange > getAffectedRange() const override
virtual OUString GetComment() const override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Redo() override
sal_uLong nEndChangeAction
ScUndoEnterValue(ScDocShell *pNewDocShell, const ScAddress &rNewPos, ScCellValue aUndoCell, double nVal)
virtual ~ScUndoEnterValue() override
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual OUString GetComment() const override
virtual ~ScUndoPageBreak() override
ScUndoPageBreak(ScDocShell *pNewDocShell, SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, bool bNewColumn, bool bNewInsert)
virtual void Undo() override
virtual void Redo() override
void DoChange(bool bInsert) const
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual ~ScUndoPrintZoom() override
void DoChange(bool bUndo)
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScUndoPrintZoom(ScDocShell *pNewDocShell, SCTAB nT, sal_uInt16 nOS, sal_uInt16 nOP, sal_uInt16 nNS, sal_uInt16 nNP)
virtual OUString GetComment() const override
virtual void Redo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
std::unique_ptr< ScRangeName > pOldRanges
std::unique_ptr< ScRangeName > pNewRanges
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
void DoChange(bool bUndo)
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Redo() override
virtual ~ScUndoRangeNames() override
virtual OUString GetComment() const override
ScUndoRangeNames(ScDocShell *pNewDocShell, std::unique_ptr< ScRangeName > pOld, std::unique_ptr< ScRangeName > pNew, SCTAB nTab)
Undo action for inserting, removing, and replacing a cell note.
virtual std::optional< ScRange > getAffectedRange() const override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual OUString GetComment() const override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual void Undo() override
virtual void Redo() override
virtual ~ScUndoReplaceNote() override
ScUndoReplaceNote(ScDocShell &rDocShell, const ScAddress &rPos, const ScNoteData &rNoteData, bool bInsert, std::unique_ptr< SdrUndoAction > pDrawUndo)
Constructs an undo action for inserting or removing a cell note.
void DoInsertNote(const ScNoteData &rNoteData)
void DoRemoveNote(const ScNoteData &rNoteData)
std::unique_ptr< SdrUndoAction > mpDrawUndo
virtual OUString GetComment() const override
sal_uLong mnEndChangeAction
virtual void Redo() override
virtual std::optional< ScRange > getAffectedRange() const override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual ~ScUndoSetCell() override
void SetValue(const ScCellValue &rVal)
ScUndoSetCell(ScDocShell *pDocSh, const ScAddress &rPos, ScCellValue aOldVal, ScCellValue aNewVal)
Undo action for showing or hiding a cell note caption.
virtual OUString GetComment() const override
virtual ~ScUndoShowHideNote() override
virtual void Redo() override
virtual std::optional< ScRange > getAffectedRange() const override
virtual void Repeat(SfxRepeatTarget &rTarget) override
ScUndoShowHideNote(ScDocShell &rDocShell, const ScAddress &rPos, bool bShow)
virtual void Undo() override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual OUString GetComment() const override
virtual void Redo() override
sal_uLong nEndChangeAction
void SetChangeTrack(const ScCellValue &rOldCell)
ScUndoThesaurus(ScDocShell *pNewDocShell, SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, ScCellValue aOldText, ScCellValue aNewText)
virtual void Repeat(SfxRepeatTarget &rTarget) override
virtual void Undo() override
void DoChange(bool bUndo, const ScCellValue &rText)
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
virtual ~ScUndoThesaurus() override
Think of this as a mini-ScColumn like storage that only stores cell values in a column.
UndoSetCells(ScDocShell *pDocSh, const ScAddress &rTopPos)
virtual void Redo() override
void SetNewValues(const std::vector< double > &rVals)
virtual ~UndoSetCells() override
void DoChange(const CellValues &rValues)
virtual void Undo() override
virtual OUString GetComment() const override
CellValues & GetOldValues()
virtual bool CanRepeat(SfxRepeatTarget &) const override
CAUTION! The following defines must be in the same namespace as the respective type.
Store arbitrary cell value of any kind.
Internal data for a cell annotation.