diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-08-31 11:30:28 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-08-31 11:30:28 +0000 |
commit | a7a56daf3283fa8ac613ac382f6e148250e479b8 (patch) | |
tree | 02c421617d58625100651516bab2a52596ab1fe7 /sc/source/ui/unoobj/confuno.cxx | |
parent | e47d0ea5731e5b1e3ec64fdbc2aec98856d32739 (diff) |
INTEGRATION: CWS xmlsec05 (1.19.58); FILE MERGED
2004/08/25 06:26:53 pb 1.19.58.1: fix: #i33095# load and save 'LoadReadonly' in settings.xml
Diffstat (limited to 'sc/source/ui/unoobj/confuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/confuno.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx index f2ce5b823b5d..55c7405b051e 100644 --- a/sc/source/ui/unoobj/confuno.cxx +++ b/sc/source/ui/unoobj/confuno.cxx @@ -2,9 +2,9 @@ * * $RCSfile: confuno.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: obo $ $Date: 2004-06-04 11:53:56 $ + * last change: $Author: kz $ $Date: 2004-08-31 12:30:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -131,6 +131,9 @@ const SfxItemPropertyMap* lcl_GetConfigPropertyMap() {MAP_CHAR_LEN(SC_UNO_UPDTEMPL), 0, &getBooleanCppuType(), 0}, /*Stampit enable/disable print cancel */ {MAP_CHAR_LEN(SC_UNO_ALLOWPRINTJOBCANCEL), 0, &getBooleanCppuType(), 0}, + // --> PB 2004-08-25 #i33095# Security Options + {MAP_CHAR_LEN(SC_UNO_LOADREADONLY), 0, &getBooleanCppuType(), 0}, + // <-- {0,0,0,0} }; return aConfigPropertyMap_Impl; @@ -282,6 +285,10 @@ void SAL_CALL ScDocumentConfiguration::setPropertyValue( pDocShell->GetDocInfo().SetSaveVersionOnClose( ScUnoHelpFunctions::GetBoolFromAny( aValue ) ); else if ( aPropertyName.compareToAscii( SC_UNO_UPDTEMPL ) == 0 ) pDocShell->GetDocInfo().SetQueryLoadTemplate( ScUnoHelpFunctions::GetBoolFromAny( aValue ) ); + // --> PB 2004-08-25 #i33095# Security Options + else if ( aPropertyName.compareToAscii( SC_UNO_LOADREADONLY ) == 0 ) + pDocShell->GetDocInfo().SetLoadReadonly( ScUnoHelpFunctions::GetBoolFromAny( aValue ) ); + // <-- else { ScGridOptions aGridOpt(aViewOpt.GetGridOptions()); @@ -403,6 +410,10 @@ uno::Any SAL_CALL ScDocumentConfiguration::getPropertyValue( const rtl::OUString ScUnoHelpFunctions::SetBoolInAny( aRet, pDocShell->GetDocInfo().IsSaveVersionOnClose() ); else if ( aPropertyName.compareToAscii( SC_UNO_UPDTEMPL ) == 0 ) ScUnoHelpFunctions::SetBoolInAny( aRet, pDocShell->GetDocInfo().IsQueryLoadTemplate()); + // --> PB 2004-08-25 #i33095# Security Options + else if ( aPropertyName.compareToAscii( SC_UNO_LOADREADONLY ) == 0 ) + ScUnoHelpFunctions::SetBoolInAny( aRet, pDocShell->GetDocInfo().IsLoadReadonly() ); + // <-- else { const ScGridOptions& aGridOpt = aViewOpt.GetGridOptions(); |