diff options
author | Armin Le Grand <alg@apache.org> | 2012-08-09 08:42:27 +0000 |
---|---|---|
committer | Armin Le Grand <alg@apache.org> | 2012-08-09 08:42:27 +0000 |
commit | a096725779b210c7a2706e72596fd7c80e049fdd (patch) | |
tree | a5515afecb4b91d75566039393f47eaf6334beb3 /sd | |
parent | 24796e7163489d0c10fc9e98e09a2f1cd1e95866 (diff) |
#120498# Enhanced Undo/Redo and user experience when editing texts in graphic objects and/or tables
Notes
Notes:
merged as: 12a4200e8ff7f045efcc7e9d15a24b15b248c437
Diffstat (limited to 'sd')
-rw-r--r-- | sd/inc/undo/undomanager.hxx | 10 | ||||
-rw-r--r-- | sd/source/core/undo/undomanager.cxx | 9 | ||||
-rw-r--r-- | sd/source/ui/view/drviewse.cxx | 4 |
3 files changed, 10 insertions, 13 deletions
diff --git a/sd/inc/undo/undomanager.hxx b/sd/inc/undo/undomanager.hxx index 9db16a02250c..81e9af752ed0 100644 --- a/sd/inc/undo/undomanager.hxx +++ b/sd/inc/undo/undomanager.hxx @@ -24,13 +24,13 @@ #ifndef _SD_UNDOMANAGER_HXX #define _SD_UNDOMANAGER_HXX -#include "misc/scopelock.hxx" -#include <svl/undo.hxx> +#include <misc/scopelock.hxx> +#include <svx/sdrundomanager.hxx> namespace sd { -class UndoManager : public SfxUndoManager +class UndoManager : public SdrUndoManager { public: UndoManager( sal_uInt16 nMaxUndoActionCount = 20 ); @@ -44,8 +44,8 @@ public: void SetLinkedUndoManager (::svl::IUndoManager* pLinkedUndoManager); private: - using SfxUndoManager::Undo; - using SfxUndoManager::Redo; + using SdrUndoManager::Undo; + using SdrUndoManager::Redo; /** Used when the outline view is visible as a last resort to synchronize the undo managers. diff --git a/sd/source/core/undo/undomanager.cxx b/sd/source/core/undo/undomanager.cxx index 675e8a93c78b..b3abb0191381 100644 --- a/sd/source/core/undo/undomanager.cxx +++ b/sd/source/core/undo/undomanager.cxx @@ -23,13 +23,14 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sd.hxx" + #include <tools/debug.hxx> -#include "undo/undomanager.hxx" +#include <undo/undomanager.hxx> using namespace sd; UndoManager::UndoManager( sal_uInt16 nMaxUndoActionCount /* = 20 */ ) -: SfxUndoManager( nMaxUndoActionCount ) +: SdrUndoManager( nMaxUndoActionCount ) , mpLinkedUndoManager(NULL) { } @@ -39,7 +40,7 @@ void UndoManager::EnterListAction(const UniString &rComment, const UniString& rR if( !IsDoing() ) { ClearLinkedRedoActions(); - SfxUndoManager::EnterListAction( rComment, rRepeatComment, nId ); + SdrUndoManager::EnterListAction( rComment, rRepeatComment, nId ); } } @@ -48,7 +49,7 @@ void UndoManager::AddUndoAction( SfxUndoAction *pAction, sal_Bool bTryMerg /* = if( !IsDoing() ) { ClearLinkedRedoActions(); - SfxUndoManager::AddUndoAction( pAction, bTryMerg ); + SdrUndoManager::AddUndoAction( pAction, bTryMerg ); } else { diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index f7aed4d6f7ac..075384674b57 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -639,10 +639,6 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) } } -////////////////////////////////////////////////////////////////////////////// -// service routine for Undo/Redo implementation -extern SfxUndoManager* ImpGetUndoManagerFromViewShell(DrawViewShell& rDViewShell); - /************************************************************************* |* |* SfxRequests fuer Support-Funktionen |