summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/outlnvs2.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2014-09-14 15:48:45 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2014-09-14 16:41:40 +0300
commitf5129ca7610ec4ec20ed1c00e5c94bf51d5de2cc (patch)
tree1a1f1327f1ca245a195f246863e418e62ee8dacb /sd/source/ui/view/outlnvs2.cxx
parent03626d7940d5e2fc2abf65ef1b49a7a89623f08f (diff)
fdo#55903 Immediate effect for zoom in button
That's what apparently people expect from this button to do, similar to the nearby zoom out button. This is also consistent with a similar button in math, and in print preview (both are using the same icon and same tooltip). The zoom mode that was assigned to this button until now, moved to a dedicated button (thus could be further improved to host other functionality as well - see the next commit). Change-Id: Ie640c72cf1aab1e3fc8a14211702a33a86bb3672
Diffstat (limited to 'sd/source/ui/view/outlnvs2.cxx')
-rw-r--r--sd/source/ui/view/outlnvs2.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sd/source/ui/view/outlnvs2.cxx b/sd/source/ui/view/outlnvs2.cxx
index 7ad626c01597..249780c5177e 100644
--- a/sd/source/ui/view/outlnvs2.cxx
+++ b/sd/source/ui/view/outlnvs2.cxx
@@ -143,8 +143,14 @@ void OutlineViewShell::FuTemporary(SfxRequest &rReq)
case SID_ZOOM_OUT:
{
- SetCurrentFunction( FuZoom::Create(this, GetActiveWindow(), pOlView, GetDoc(), rReq) );
- // ends itself, no need for Cancel()!
+ SetZoom( std::min( (long) ( GetActiveWindow()->GetZoom() * 2 ), (long) GetActiveWindow()->GetMaxZoom() ) );
+ Rectangle aVisAreaWin = GetActiveWindow()->PixelToLogic( Rectangle( Point(0,0),
+ GetActiveWindow()->GetOutputSizePixel()) );
+ mpZoomList->InsertZoomRect(aVisAreaWin);
+ Invalidate( SID_ATTR_ZOOM );
+ Invalidate( SID_ZOOM_IN );
+ Invalidate( SID_ATTR_ZOOMSLIDER );
+ Cancel();
rReq.Done();
}
break;