diff options
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: */ |