diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-05 13:53:57 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-05 13:25:34 +0000 |
commit | 9dd8a0dcfdff21269f6423224d39d168519fb67e (patch) | |
tree | 50f908927005fcf5e7534b09fb38838ed50da212 /include/svl/undo.hxx | |
parent | e50a95b829b327b07ba35e831ae10fb8c40a71ee (diff) |
desktop: add undo/redo support to lok::Document::getCommandValues()
Expose the undo/redo stack and the metadata of each item.
Change-Id: I66b81e855a945c97be3d491ed709959f310d4b73
Reviewed-on: https://gerrit.libreoffice.org/27905
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include/svl/undo.hxx')
-rw-r--r-- | include/svl/undo.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index 789fd171910e..afe09557cfc9 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -197,10 +197,14 @@ namespace svl virtual sal_uInt16 GetUndoActionId() const = 0; virtual OUString GetUndoActionComment( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const = 0; virtual SfxUndoAction* GetUndoAction( size_t nNo=0 ) const = 0; + /// Get info about all undo actions (comment, view shell id, etc.) + virtual OUString GetUndoActionsInfo() const = 0; virtual size_t GetRedoActionCount( bool const i_currentLevel = CurrentLevel ) const = 0; virtual OUString GetRedoActionComment( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const = 0; virtual SfxUndoAction* GetRedoAction() const = 0; + /// Get info about all redo actions (comment, view shell id, etc.) + virtual OUString GetRedoActionsInfo() const = 0; virtual bool Undo() = 0; virtual bool Redo() = 0; @@ -313,9 +317,11 @@ public: virtual sal_uInt16 GetUndoActionId() const override; virtual OUString GetUndoActionComment( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const override; virtual SfxUndoAction* GetUndoAction( size_t nNo=0 ) const override; + OUString GetUndoActionsInfo() const override; virtual size_t GetRedoActionCount( bool const i_currentLevel = CurrentLevel ) const override; virtual OUString GetRedoActionComment( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const override; virtual SfxUndoAction* GetRedoAction() const override; + OUString GetRedoActionsInfo() const override; virtual bool Undo() override; virtual bool Redo() override; virtual void Clear() override; |