diff options
author | Daniel Rentz <dr@openoffice.org> | 2002-07-11 09:56:31 +0000 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2002-07-11 09:56:31 +0000 |
commit | fa379c504de1b5801b38648f278611bd9f537ef2 (patch) | |
tree | b6bae097f4b711f4a0062ac088900d675aea1c75 /sc/source/ui/optdlg/tpview.cxx | |
parent | #100000# syntax for linux prod (diff) | |
download | core-fa379c504de1b5801b38648f278611bd9f537ef2.tar.gz core-fa379c504de1b5801b38648f278611bd9f537ef2.zip |
#101160# UI/API for ReplaceCellsWarning
Diffstat (limited to 'sc/source/ui/optdlg/tpview.cxx')
-rw-r--r-- | sc/source/ui/optdlg/tpview.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sc/source/ui/optdlg/tpview.cxx b/sc/source/ui/optdlg/tpview.cxx index 0e8a1a31b7a0..7e906384d8c6 100644 --- a/sc/source/ui/optdlg/tpview.cxx +++ b/sc/source/ui/optdlg/tpview.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tpview.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: nn $ $Date: 2001-10-01 09:30:25 $ + * last change: $Author: dr $ $Date: 2002-07-11 10:55:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -472,6 +472,7 @@ ScTpLayoutOptions::ScTpLayoutOptions( Window* pParent, aExpRefCB( this, ResId( CB_EXPREF )), aMarkHdrCB( this, ResId( CB_MARKHDR )), aTextFmtCB( this, ResId( CB_TEXTFMT )), + aReplWarnCB( this, ResId( CB_REPLWARN )), aUnitArr( ResId(ST_UNIT )), pDoc(NULL) { @@ -613,6 +614,12 @@ BOOL ScTpLayoutOptions::FillItemSet( SfxItemSet& rCoreSet ) bRet = TRUE; } + if( aReplWarnCB.GetSavedValue() != aReplWarnCB.IsChecked() ) + { + rCoreSet.Put( SfxBoolItem( SID_SC_INPUT_REPLCELLSWARN, aReplWarnCB.IsChecked() ) ); + bRet = TRUE; + } + return bRet; } /*-----------------11.01.97 10.53------------------- @@ -688,6 +695,9 @@ void ScTpLayoutOptions::Reset( const SfxItemSet& rCoreSet ) if(SFX_ITEM_SET == rCoreSet.GetItemState(SID_SC_INPUT_TEXTWYSIWYG, FALSE, &pItem)) aTextFmtCB.Check(((const SfxBoolItem*)pItem)->GetValue()); + if( SFX_ITEM_SET == rCoreSet.GetItemState( SID_SC_INPUT_REPLCELLSWARN, FALSE, &pItem ) ) + aReplWarnCB.Check( ( (const SfxBoolItem*)pItem)->GetValue() ); + aAlignCB .SaveValue(); aAlignLB .SaveValue(); aEditModeCB .SaveValue(); @@ -696,6 +706,7 @@ void ScTpLayoutOptions::Reset( const SfxItemSet& rCoreSet ) aExpRefCB .SaveValue(); aMarkHdrCB .SaveValue(); aTextFmtCB .SaveValue(); + aReplWarnCB .SaveValue(); AlignHdl(&aAlignCB); aAlwaysRB.SaveValue(); |