diff options
Diffstat (limited to 'sw/source/core/inc')
-rw-r--r-- | sw/source/core/inc/UndoManager.hxx | 6 | ||||
-rw-r--r-- | sw/source/core/inc/dview.hxx | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sw/source/core/inc/UndoManager.hxx b/sw/source/core/inc/UndoManager.hxx index 14696b380477..0db18261bf60 100644 --- a/sw/source/core/inc/UndoManager.hxx +++ b/sw/source/core/inc/UndoManager.hxx @@ -22,7 +22,7 @@ #include <IDocumentUndoRedo.hxx> #include <memory> -#include <svl/undo.hxx> +#include <svx/sdrundomanager.hxx> class IDocumentDrawModelAccess; class IDocumentRedlineAccess; @@ -32,7 +32,7 @@ namespace sw { class UndoManager : public IDocumentUndoRedo - , public SfxUndoManager + , public SdrUndoManager { public: UndoManager(::std::auto_ptr<SwNodes> pUndoNodes, @@ -102,7 +102,7 @@ private: bool impl_DoUndoRedo(UndoOrRedo_t const undoOrRedo); // UGLY: should not be called - using SfxUndoManager::Repeat; + using SdrUndoManager::Repeat; }; } // namespace sw diff --git a/sw/source/core/inc/dview.hxx b/sw/source/core/inc/dview.hxx index e722be6dc879..66aa2c3dcda6 100644 --- a/sw/source/core/inc/dview.hxx +++ b/sw/source/core/inc/dview.hxx @@ -26,6 +26,7 @@ class SwViewImp; class SwFrm; class SwFlyFrm; class SwAnchoredObject; +class SdrUndoManager; class SwDrawView : public FmFormView { @@ -74,6 +75,9 @@ protected: using FmFormView::CheckSingleSdrObjectHit; virtual SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObject* pObj, SdrPageView* pPV, sal_uLong nOptions, const SetOfByte* pMVisLay) const; + // support enhanced text edit for draw objects + virtual SdrUndoManager* getSdrUndoManagerForEnhancedTextEdit() const; + public: SwDrawView( SwViewImp &rI, SdrModel *pMd, OutputDevice* pOutDev=NULL ); |