summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-03 13:15:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-03 13:44:15 +0000
commit37a4d67d6885860c279476c2504e35c3190ffc6c (patch)
tree6816c9faf819d7df596dbbd22d469b968b555d6c /include
parente55096a07a450782c4ab919b7ba60852841004c7 (diff)
flatten DocumentUndoGuard
which is a small object, and doesn't need a pimpl pattern Change-Id: Ib76f6e5ad0347be61fe29b22f57e1211ce3337cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148172 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/framework/documentundoguard.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/framework/documentundoguard.hxx b/include/framework/documentundoguard.hxx
index ec1a5951b15c..c0cf232e7f28 100644
--- a/include/framework/documentundoguard.hxx
+++ b/include/framework/documentundoguard.hxx
@@ -21,18 +21,18 @@
#define INCLUDED_FRAMEWORK_DOCUMENTUNDOGUARD_HXX
#include <framework/fwkdllapi.h>
-
#include <com/sun/star/uno/Reference.hxx>
-
-#include <memory>
+#include <rtl/ref.hxx>
namespace com::sun::star::uno { class XInterface; }
+namespace com::sun::star::document { class XUndoManager; }
namespace framework
{
+ class UndoManagerContextListener;
+
//= DocumentUndoGuard
- struct DocumentUndoGuard_Data;
/** a helper class guarding the Undo manager of a document
This class guards, within a given scope, the Undo Manager of a document (or another component supporting
@@ -49,7 +49,8 @@ namespace framework
~DocumentUndoGuard();
private:
- std::unique_ptr< DocumentUndoGuard_Data > m_xData;
+ css::uno::Reference< css::document::XUndoManager > mxUndoManager;
+ ::rtl::Reference< UndoManagerContextListener > mxContextListener;
};