diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-11-17 10:24:30 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2014-11-17 10:29:59 +0200 |
commit | a4450fe6d06a138c1f3b1c43546a7246be8a26c5 (patch) | |
tree | 9444c89a383ab2d71d1bd9384a4a9374e799f048 /sd | |
parent | acd78552de4179d869cf7061dffab22063466f1c (diff) |
Related: fdo#83572 Try to fix zoom mode button state
Change-Id: I4e146788c3ab83f714bfb0aef1da018b038be64d
Diffstat (limited to 'sd')
-rw-r--r-- | sd/sdi/_drvwsh.sdi | 4 | ||||
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 11 | ||||
-rw-r--r-- | sd/source/ui/view/drviews7.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviewse.cxx | 10 |
4 files changed, 13 insertions, 14 deletions
diff --git a/sd/sdi/_drvwsh.sdi b/sd/sdi/_drvwsh.sdi index 216647073923..38953ca2b1fc 100644 --- a/sd/sdi/_drvwsh.sdi +++ b/sd/sdi/_drvwsh.sdi @@ -629,12 +629,12 @@ interface DrawView ] SID_ZOOM_MODE // ole : no, status : play rec [ - ExecMethod = FuTemporary ; + ExecMethod = FuPermanent ; StateMethod = GetMenuState ; ] SID_ZOOM_PANNING // ole : no, status : play rec [ - ExecMethod = FuTemporary ; + ExecMethod = FuPermanent ; StateMethod = GetMenuState ; ] SID_ZOOM_IN // ole : no, status : play rec diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index c85eb2cf3a29..c8b6c07f498e 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -156,7 +156,6 @@ #include "futxtatt.hxx" #include "fuvect.hxx" #include "futext.hxx" -#include "fuzoom.hxx" #include "helpids.h" #include "optsitem.hxx" #include "sdabstdlg.hxx" @@ -1222,16 +1221,6 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) } break; - case SID_ZOOM_MODE: - case SID_ZOOM_PANNING: - { - mbZoomOnPage = false; - SetCurrentFunction( FuZoom::Create(this, GetActiveWindow(), mpDrawView, GetDoc(), rReq) ); - Invalidate( SID_ZOOM_TOOLBOX ); - rReq.Ignore (); - } - break; - case SID_BEFORE_OBJ: case SID_BEHIND_OBJ: { diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 4bb781fff1e6..37e8a31d668d 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -289,7 +289,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) // map images of the toolboxes UpdateToolboxImages( rSet ); - if( nId != SID_ZOOM_TOOLBOX && + if( nSId != SID_ZOOM_TOOLBOX && nSId != SID_DRAWTBX_INSERT && nSId != SID_POSITION && nSId != SID_OBJECT_ALIGN ) diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index 100d1f82a475..95367394f289 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -94,6 +94,7 @@ #include "optsitem.hxx" #include "Window.hxx" #include "fuformatpaintbrush.hxx" +#include "fuzoom.hxx" using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -533,6 +534,15 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) break; } + case SID_ZOOM_MODE: + case SID_ZOOM_PANNING: + { + mbZoomOnPage = false; + SetCurrentFunction( FuZoom::Create(this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); + rReq.Done(); + } + break; + default: break; } |