summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsh3.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-21 18:12:15 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-21 18:12:15 +0000
commite216f7ad97efb245fb5278a953b3966134d44b2c (patch)
tree2956f377b5db6a3371fac62ee02c6bc59ff241b9 /sc/source/ui/view/tabvwsh3.cxx
parent94bcd02a5fa12eb39d76475b08de3f01d60272a4 (diff)
INTEGRATION: CWS sheetzoom (1.35.50); FILE MERGED
2007/11/12 13:44:24 nn 1.35.50.1: #i24372# allow separate zoom per sheet
Diffstat (limited to 'sc/source/ui/view/tabvwsh3.cxx')
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 79bae23c5..ef9d7ad9d 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: tabvwsh3.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: hr $ $Date: 2007-09-27 13:56:50 $
+ * last change: $Author: ihi $ $Date: 2007-11-21 19:12:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -627,6 +627,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
case SID_ATTR_ZOOM: // Statuszeile
case FID_SCALE:
{
+ BOOL bSyncZoom = SC_MOD()->GetAppOptions().GetSynchronizeZoom();
SvxZoomType eOldZoomType = GetZoomType();
SvxZoomType eNewZoomType = eOldZoomType;
const Fraction& rOldY = GetViewData()->GetZoomY(); // Y wird angezeigt
@@ -704,11 +705,11 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
{
case SVX_ZOOM_WHOLEPAGE:
case SVX_ZOOM_PAGEWIDTH:
- SetZoomType( eNewZoomType );
+ SetZoomType( eNewZoomType, bSyncZoom );
break;
default:
- SetZoomType( SVX_ZOOM_PERCENT );
+ SetZoomType( SVX_ZOOM_PERCENT, bSyncZoom );
}
}
@@ -722,7 +723,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
pScMod->SetAppOptions( aNewOpt );
}
Fraction aFract( nZoom, 100 );
- SetZoom( aFract, aFract );
+ SetZoom( aFract, aFract, bSyncZoom );
PaintGrid();
PaintTop();
PaintLeft();