diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-04 15:55:45 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-04 14:36:43 +0000 |
commit | 33a5ab1eb74d140265b471fb33ca98aca7cfb1a6 (patch) | |
tree | 4f488db18aa2da3ae791c07257d30daf564ffafc /include/svl | |
parent | 5a5db03acc605a02c76c0f2977079b3dcf48de22 (diff) |
svl: track creation time of SfxUndoAction instances
It's not yet clear how to expose this on the UI, though.
Change-Id: Iee6737922d36e896653b4fae557442747dda1b8b
Reviewed-on: https://gerrit.libreoffice.org/27878
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/undo.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index 032738e57851..789fd171910e 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -21,6 +21,7 @@ #include <svl/svldllapi.h> #include <rtl/ustring.hxx> +#include <tools/datetime.hxx> #include <limits> #include <memory> @@ -61,11 +62,15 @@ public: virtual sal_uInt16 GetId() const; /// ID of the view shell that created this undo action. virtual sal_Int32 GetViewShellId() const; + /// Timestamp when this undo item was created. + const DateTime& GetDateTime() const; virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const; private: SfxUndoAction( const SfxUndoAction& ) = delete; SfxUndoAction& operator=( const SfxUndoAction& ) = delete; + + DateTime m_aDateTime; }; |