diff options
author | Oliver-Rainer Wittmann <orw@apache.org> | 2013-04-29 11:30:03 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-05-20 11:33:25 +0100 |
commit | 0f9a2c083252fa780e3a7b8278f24aaf0481fdcd (patch) | |
tree | edd7734dcbed3d5eee26f4cc25bee123cf84dd70 /sd | |
parent | 17eeac27fd0c0dfd94091cc520f0d0085e32a8b8 (diff) |
Related: #i122156# #i122087# correct context notification...
regarding the text edit mode for Drawing objects - take two
(cherry picked from commit 3dd1e0f85ba7d0fdcb2de134184407201ca7fae0)
Conflicts:
sc/source/ui/inc/drawview.hxx
sc/source/ui/view/drawview.cxx
Change-Id: Icfe16b76fc4fcc838133d8410736877703e5c23b
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/sdview.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index 6a6714cd4d5a..ae233e96d612 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -88,6 +88,7 @@ #include <drawinglayer/primitive2d/textprimitive2d.hxx> #include <svx/unoapi.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> +#include "DrawController.hxx" #include <numeric> @@ -695,6 +696,11 @@ sal_Bool View::SdrBeginTextEdit( pGivenOutlinerView, bDontDeleteOutliner, bOnlyOneView, bGrabFocus); + if ( mpViewSh ) + { + mpViewSh->GetViewShellBase().GetDrawController().FireSelectionChangeListener(); + } + if (bReturn) { ::Outliner* pOL = GetTextEditOutliner(); @@ -761,6 +767,11 @@ SdrEndTextEditKind View::SdrEndTextEdit(sal_Bool bDontDeleteReally ) if( xObj.is() ) { + if ( mpViewSh ) + { + mpViewSh->GetViewShellBase().GetDrawController().FireSelectionChangeListener(); + } + SdPage* pPage = dynamic_cast< SdPage* >( xObj->GetPage() ); if( pPage ) pPage->onEndTextEdit( xObj.get() ); |