diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-10-19 09:17:07 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-10-19 09:17:07 +0000 |
commit | 5b6152207a6e9c572c2adb18431b9e8f9abfef55 (patch) | |
tree | fbca7470305949b84517dfd1160c7beb502df96a /sfx2/source/appl/appcfg.cxx | |
parent | 7e83865e0e545216bfdaf701d8683459954fe707 (diff) |
#93467# +SID_ATTR_PRETTYPRINTING
Diffstat (limited to 'sfx2/source/appl/appcfg.cxx')
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index 436df66653..05eae7c4d2 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: appcfg.cxx,v $ * - * $Revision: 1.37 $ + * $Revision: 1.38 $ * - * last change: $Author: as $ $Date: 2001-10-09 09:06:33 $ + * last change: $Author: fs $ $Date: 2001-10-19 10:17:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -324,6 +324,10 @@ BOOL SfxApplication::GetOptions( SfxItemSet& rSet ) aSaveOptions.IsBackup()))) bRet = TRUE; break; + case SID_ATTR_PRETTYPRINTING: + if ( rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_PRETTYPRINTING ), aSaveOptions.IsPrettyPrinting() ) ) ) + bRet = TRUE; + break; case SID_ATTR_AUTOSAVE : if(rSet.Put( SfxBoolItem( rPool.GetWhich( SID_ATTR_AUTOSAVE ), aSaveOptions.IsAutoSave()))) @@ -687,6 +691,13 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet ) aSaveOptions.SetBackup( ( (const SfxBoolItem*)pItem )->GetValue() ); } + // PrettyPrinting + if ( SFX_ITEM_SET == rSet.GetItemState( rPool.GetWhich( SID_ATTR_PRETTYPRINTING ), TRUE, &pItem ) ) + { + DBG_ASSERT( pItem->ISA( SfxBoolItem ), "BoolItem expected" ); + aSaveOptions.SetPrettyPrinting( static_cast< const SfxBoolItem*> ( pItem )->GetValue() ); + } + // AutoSave if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_AUTOSAVE), TRUE, &pItem)) { |