diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-21 18:11:57 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-21 18:11:57 +0000 |
commit | 2cf24b3e5f58d55dffb3e4a472df8c35fefd0350 (patch) | |
tree | dd571f96909f4c5e2b2e2a788828c780aa9a7741 /sc/source/ui/view/tabview5.cxx | |
parent | c142141b908ebc56a9271e989939922e7f49ad33 (diff) |
INTEGRATION: CWS sheetzoom (1.21.176); FILE MERGED
2007/11/12 13:44:24 nn 1.21.176.1: #i24372# allow separate zoom per sheet
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index f76f8040f6cb..79dc392441e5 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -4,9 +4,9 @@ * * $RCSfile: tabview5.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: kz $ $Date: 2007-05-10 17:03:09 $ + * last change: $Author: ihi $ $Date: 2007-11-21 19:11:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -415,14 +415,32 @@ String ScTabView::GetSelectedChartName() const return EMPTY_STRING; } -void ScTabView::SetZoom( const Fraction& rNewX, const Fraction& rNewY ) +SvxZoomType ScTabView::GetZoomType() const { - aViewData.SetZoom(rNewX,rNewY); + return aViewData.GetZoomType(); +} + +void ScTabView::SetZoomType( SvxZoomType eNew, BOOL bAll ) +{ + aViewData.SetZoomType( eNew, bAll ); +} + +void ScTabView::SetZoom( const Fraction& rNewX, const Fraction& rNewY, BOOL bAll ) +{ + aViewData.SetZoom( rNewX, rNewY, bAll ); if (pDrawView) pDrawView->RecalcScale(); ZoomChanged(); // einzeln wegen CLOOKs } +void ScTabView::RefreshZoom() +{ + aViewData.RefreshZoom(); + if (pDrawView) + pDrawView->RecalcScale(); + ZoomChanged(); +} + void ScTabView::SetPagebreakMode( BOOL bSet ) { aViewData.SetPagebreakMode(bSet); |