diff options
author | Armin Le Grand <alg@apache.org> | 2012-08-10 13:30:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-28 15:55:24 +0100 |
commit | d7b7c9fdfe63deec26c420efc3ff1fd73c21bb27 (patch) | |
tree | 4c615cd17d1dbbf62b091a1ba45288d3680192b6 /sw/source/core/draw/dview.cxx | |
parent | c726a1b12c9fdc91f32e6bed4d6dbd1edf73f9f8 (diff) |
Resolves: #i120515# Implemented and finetuned the enhanced Undo feature
(see #i120498#) for sw
(cherry picked from commit fb2580f1c8ae0cd1418c257823dc2d735607655f)
Conflicts:
sw/source/core/draw/dview.cxx
sw/source/core/inc/UndoManager.hxx
sw/source/core/undo/docundo.cxx
Change-Id: I9970377d66f1104448a2ee7e4fb1cf82bf559cd8
Diffstat (limited to 'sw/source/core/draw/dview.cxx')
-rw-r--r-- | sw/source/core/draw/dview.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/core/draw/dview.cxx b/sw/source/core/draw/dview.cxx index 6cbd572ee37a..3d5f69d8bbad 100644 --- a/sw/source/core/draw/dview.cxx +++ b/sw/source/core/draw/dview.cxx @@ -22,6 +22,9 @@ #include <svx/svdpagv.hxx> #include <svx/fmmodel.hxx> #include <sot/exchange.hxx> +#include <svx/sdrundomanager.hxx> +#include <editeng/outliner.hxx> +#include <com/sun/star/embed/EmbedMisc.hpp> #include "swtypes.hxx" #include "pagefrm.hxx" @@ -53,6 +56,7 @@ // #i28701# #include <sortedobjs.hxx> #include <flyfrms.hxx> +#include <UndoManager.hxx> using namespace com::sun::star; @@ -952,4 +956,12 @@ void SwDrawView::DeleteMarked() pTmpRoot->EndAllAction(); //swmod 080218 } +// support enhanced text edit for draw objects +SdrUndoManager* SwDrawView::getSdrUndoManagerForEnhancedTextEdit() const +{ + SwDoc* pDoc = Imp().GetShell()->GetDoc(); + + return pDoc ? dynamic_cast< SdrUndoManager* >(&(pDoc->GetUndoManager())) : 0; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |