summaryrefslogtreecommitdiff
path: root/sc/source/ui/optdlg
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-21 18:10:25 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-21 18:10:25 +0000
commit93830e674afe74dc8cb84c50aba8d04a9bcacbd7 (patch)
tree88941bff65a29017f2b3916c9330a136fd7d6dde /sc/source/ui/optdlg
parent0846c467a921a27ebd3691e4bc187ece8d0ae7aa (diff)
INTEGRATION: CWS sheetzoom (1.18.176); FILE MERGED
2007/11/12 13:44:23 nn 1.18.176.1: #i24372# allow separate zoom per sheet
Diffstat (limited to 'sc/source/ui/optdlg')
-rw-r--r--sc/source/ui/optdlg/tpview.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sc/source/ui/optdlg/tpview.cxx b/sc/source/ui/optdlg/tpview.cxx
index 83d52996bb16..cdf0aac26222 100644
--- a/sc/source/ui/optdlg/tpview.cxx
+++ b/sc/source/ui/optdlg/tpview.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: tpview.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: kz $ $Date: 2007-05-10 16:57:58 $
+ * last change: $Author: ihi $ $Date: 2007-11-21 19:10:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -103,6 +103,9 @@ ScTpContentOptions::ScTpContentOptions( Window* pParent,
aDrawFT( this, ScResId(FT_DRAW )),
aDrawLB( this, ScResId(LB_DRAW )),
+ aZoomGB( this, ScResId(GB_ZOOM) ),
+ aSyncZoomCB( this, ScResId(CB_SYNCZOOM) ),
+
aSeparator2FL (this, ScResId(FL_SEPARATOR2)),
aWindowGB( this, ScResId(GB_WINDOW )),
aRowColHeaderCB(this, ScResId(CB_ROWCOLHEADER )),
@@ -195,6 +198,11 @@ BOOL ScTpContentOptions::FillItemSet( SfxItemSet& rCoreSet )
rCoreSet.Put(SfxBoolItem(SID_SC_INPUT_RANGEFINDER, aRangeFindCB.IsChecked()));
bRet = TRUE;
}
+ if(aSyncZoomCB.GetSavedValue() != aSyncZoomCB.IsChecked())
+ {
+ rCoreSet.Put(SfxBoolItem(SID_SC_OPT_SYNCZOOM, aSyncZoomCB.IsChecked()));
+ bRet = TRUE;
+ }
return bRet;
@@ -237,8 +245,11 @@ void ScTpContentOptions::Reset( const SfxItemSet& rCoreSet )
if(SFX_ITEM_SET == rCoreSet.GetItemState(SID_SC_INPUT_RANGEFINDER, FALSE, &pItem))
aRangeFindCB.Check(((const SfxBoolItem*)pItem)->GetValue());
+ if(SFX_ITEM_SET == rCoreSet.GetItemState(SID_SC_OPT_SYNCZOOM, FALSE, &pItem))
+ aSyncZoomCB.Check(((const SfxBoolItem*)pItem)->GetValue());
aRangeFindCB.SaveValue();
+ aSyncZoomCB.SaveValue();
aFormulaCB .SaveValue();
aNilCB .SaveValue();