From a70f500bc9110bab1483e09d1c4a306e8c2a661b Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Wed, 20 Oct 2010 14:54:59 +0200 Subject: undoapi: made SfxUndoManager an implementation of the new, abstract ::svl::IUndoManager interface. Change the SfxShell's UndoManager attribute to be an IUndoManager. Did all the resulting changes up the source tree. This way, we'll hopefully be able to provide an IUndoManager implementation in Writer, which is not based on the SfxUndoManager, but on Writer's own Undo implementation. --- basctl/source/inc/bastypes.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'basctl/source/inc/bastypes.hxx') diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index bc588fccaf14..38c1f5bbc89c 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -228,7 +228,8 @@ public: virtual Window* GetLayoutWindow(); - virtual SfxUndoManager* GetUndoManager(); + virtual ::svl::IUndoManager* + GetUndoManager(); virtual USHORT GetSearchOptions(); -- cgit v1.2.3 From c4f5b38275354f089af27a3fcff01acdaeae1b2c Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Fri, 22 Oct 2010 14:11:53 +0200 Subject: undoapi: adjusted forward declaration SfxUndoManager->IUndoManager. Not sure why this slipped my (the compiler's) attention originally ... --- basctl/source/inc/bastypes.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'basctl/source/inc/bastypes.hxx') diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index 38c1f5bbc89c..33f2d45549ad 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -164,9 +164,13 @@ public: #define BASWIN_INRESCHEDULE 0x08 class Printer; -class SfxUndoManager; class BasicEntryDescriptor; +namespace svl +{ + class IUndoManager; +} + class IDEBaseWindow : public Window { private: -- cgit v1.2.3