summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsh4.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-21 18:12:31 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-21 18:12:31 +0000
commit4de10f59941a4a4ac0b6cd5968bde2faa17ed576 (patch)
treeee9066fb0ae6fb671c6ce0be48b922e0c6a97a67 /sc/source/ui/view/tabvwsh4.cxx
parente216f7ad97efb245fb5278a953b3966134d44b2c (diff)
INTEGRATION: CWS sheetzoom (1.68.110); FILE MERGED
2007/11/12 13:44:24 nn 1.68.110.1: #i24372# allow separate zoom per sheet
Diffstat (limited to 'sc/source/ui/view/tabvwsh4.cxx')
-rw-r--r--sc/source/ui/view/tabvwsh4.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index 46225f9e8..e7cb8249c 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: tabvwsh4.cxx,v $
*
- * $Revision: 1.68 $
+ * $Revision: 1.69 $
*
- * last change: $Author: obo $ $Date: 2007-07-17 13:35:24 $
+ * last change: $Author: ihi $ $Date: 2007-11-21 19:12:31 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -483,7 +483,7 @@ void __EXPORT ScTabViewShell::SetZoomFactor( const Fraction &rZoomX, const Fract
aNewY = aFrac400;
GetViewData()->UpdateScreenZoom( aNewX, aNewY );
- SetZoom( aNewX, aNewY );
+ SetZoom( aNewX, aNewY, TRUE );
PaintGrid();
PaintTop();
@@ -1766,9 +1766,7 @@ void ScTabViewShell::Construct( BYTE nForceDesignMode )
else if ( bFirstView )
{
pDocSh->SetInplace( FALSE );
- GetViewData()->SetZoom( // PPT neu berechnen
- GetViewData()->GetZoomX(),
- GetViewData()->GetZoomY());
+ GetViewData()->RefreshZoom(); // recalculate PPT
if (!pDoc->IsEmbedded())
pDoc->SetEmbedded( aVisArea ); // VisArea markieren
}
@@ -1954,13 +1952,13 @@ ScTabViewShell::ScTabViewShell( SfxViewFrame* pViewFrame,
if ( GetViewData()->GetDocShell()->IsPreview() )
{
// preview for template dialog: always show whole page
- SetZoomType( SVX_ZOOM_WHOLEPAGE ); // zoom value is recalculated at next Resize
+ SetZoomType( SVX_ZOOM_WHOLEPAGE, TRUE ); // zoom value is recalculated at next Resize
}
else
{
Fraction aFract( rAppOpt.GetZoom(), 100 );
- SetZoom( aFract, aFract );
- SetZoomType( rAppOpt.GetZoomType() );
+ SetZoom( aFract, aFract, TRUE );
+ SetZoomType( rAppOpt.GetZoomType(), TRUE );
}
/*uno::Reference<frame::XFrame> xFrame = pViewFrame->GetFrame()->GetFrameInterface();