From 3d0d1c4cb7d08e8b99757cca1b56f8e8c259f147 Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Fri, 22 Sep 2000 06:57:08 +0000 Subject: app options / doc options use configuration service --- sc/source/ui/app/scmod.cxx | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'sc/source/ui/app/scmod.cxx') diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 3e5cd3596b77..ee9661f30074 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -2,9 +2,9 @@ * * $RCSfile: scmod.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:44:53 $ + * last change: $Author: nn $ $Date: 2000-09-22 07:57:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -713,18 +713,13 @@ void ScModule::SetDocOptions( const ScDocOptions& rOpt ) if ( !pDocCfg ) pDocCfg = new ScDocCfg; - *(ScDocOptions*)pDocCfg = rOpt; - pDocCfg->SetDefault( FALSE ); - pDocCfg->StoreConfig(); + pDocCfg->SetOptions( rOpt ); } const ScDocOptions& ScModule::GetDocOptions() { if ( !pDocCfg ) - { pDocCfg = new ScDocCfg; - pDocCfg->Initialize(); - } return *pDocCfg; } @@ -789,8 +784,7 @@ void ScModule::SetAppOptions( const ScAppOptions& rOpt ) if ( !pAppCfg ) pAppCfg = new ScAppCfg; - *(ScAppOptions*)pAppCfg = rOpt; - pAppCfg->SetDefault( FALSE ); + pAppCfg->SetOptions( rOpt ); } void global_InitAppOptions() @@ -801,10 +795,7 @@ void global_InitAppOptions() const ScAppOptions& ScModule::GetAppOptions() { if ( !pAppCfg ) - { pAppCfg = new ScAppCfg; - pAppCfg->Initialize(); - } return *pAppCfg; } @@ -1168,9 +1159,7 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet ) #endif if ( bSaveAppOptions ) - { - pAppCfg->SetDefault( FALSE ); - } + pAppCfg->OptionsChanged(); if ( bSaveInputOptions ) pInputCfg->OptionsChanged(); -- cgit