summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appcfg.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-17 12:40:11 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-17 12:40:11 +0000
commitc2ec783a7bfa0ab4ae5bd7fb00d4154dabbb129c (patch)
treef280ffec3cbe2558a03a33796137ab5b655bdbda /sfx2/source/appl/appcfg.cxx
parent7c5b83ebd933aaf62ad165ce1f24c96db0ac0386 (diff)
INTEGRATION: CWS basemodelrefactoring (1.69.102); FILE MERGED
2007/03/26 13:23:40 mba 1.69.102.2: warning problem fixed 2007/03/23 15:55:05 mba 1.69.102.1: #i75677#: remove obsolete settings
Diffstat (limited to 'sfx2/source/appl/appcfg.cxx')
-rw-r--r--sfx2/source/appl/appcfg.cxx84
1 files changed, 2 insertions, 82 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index e07b14d6b331..4d616004d05e 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: appcfg.cxx,v $
*
- * $Revision: 1.70 $
+ * $Revision: 1.71 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 22:55:07 $
+ * last change: $Author: obo $ $Date: 2007-07-17 13:40:11 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -319,34 +319,6 @@ BOOL SfxApplication::GetOptions( SfxItemSet& rSet )
bRet = FALSE;
}
break;
- case SID_OPT_SAVEGRAPHICSCOMPRESSED :
- {
- {
- bRet = TRUE;
- if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_SAVEGRAPHICS))
- {
- SfxDocumentInfo *pDocInf = SfxObjectShell::Current() ? &SfxObjectShell::Current()->GetDocInfo() : 0;
- bool bComprGraph = pDocInf ? pDocInf->IsSaveGraphicsCompressed() : aSaveOptions.GetSaveGraphicsMode() == SvtSaveOptions::SaveGraphicsCompressed;
- if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_OPT_SAVEGRAPHICSCOMPRESSED ),bComprGraph )))
- bRet = FALSE;
- }
- }
- break;
- }
- case SID_OPT_SAVEORIGINALGRAPHICS :
- {
- {
- bRet = TRUE;
- if (!aSaveOptions.IsReadOnly(SvtSaveOptions::E_SAVEGRAPHICS))
- {
- SfxDocumentInfo *pDocInf = SfxObjectShell::Current() ? &SfxObjectShell::Current()->GetDocInfo() : 0;
- bool bOrigGraph = pDocInf ? pDocInf->IsSaveOriginalGraphics() : aSaveOptions.GetSaveGraphicsMode() == SvtSaveOptions::SaveGraphicsOriginal;
- if (!rSet.Put( SfxBoolItem( rPool.GetWhich( SID_OPT_SAVEORIGINALGRAPHICS ), bOrigGraph )))
- bRet = FALSE;
- }
- }
- break;
- }
case SID_ATTR_WORKINGSET :
{
bRet = TRUE;
@@ -708,28 +680,6 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet )
aSaveOptions.SetDocInfoSave(((const SfxBoolItem *)pItem)->GetValue());
}
- // Grafiken komprimiert speichern
- SvtSaveOptions::SaveGraphicsMode eMode = SvtSaveOptions::SaveGraphicsNormal;
- if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_OPT_SAVEGRAPHICSCOMPRESSED), TRUE, &pItem))
- {
- DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
- BOOL b = ((const SfxBoolItem *)pItem)->GetValue();
- if ( b )
- eMode = SvtSaveOptions::SaveGraphicsCompressed;
- }
-
- // Grafiken im Original speichern
- if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_OPT_SAVEORIGINALGRAPHICS), TRUE, &pItem))
- {
- DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
- BOOL b = ((const SfxBoolItem *)pItem)->GetValue();
- if ( b )
- eMode = SvtSaveOptions::SaveGraphicsOriginal;
- }
-
- if ( eMode != aSaveOptions.GetSaveGraphicsMode() )
- aSaveOptions.SetSaveGraphicsMode( eMode );
-
// offende Dokumente merken
if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_WORKINGSET), TRUE, &pItem))
{
@@ -976,41 +926,11 @@ void SfxApplication::SetOptions(const SfxItemSet &rSet)
SvtPathOptions aPathOptions;
// Daten werden in DocInfo und IniManager gespeichert
- SfxDocumentInfo *pDocInf = SfxObjectShell::Current()
- ? &SfxObjectShell::Current()->GetDocInfo()
- : 0;
const SfxPoolItem *pItem = 0;
SfxItemPool &rPool = GetPool();
SfxAllItemSet aSendSet( rSet );
- // portable Grafiken
- if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_INDEP_METAFILE), TRUE, &pItem))
- {
- DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
- BOOL b = ((const SfxBoolItem *)pItem)->GetValue();
- if ( pDocInf )
- pDocInf->SetPortableGraphics(b);
- }
-
- // Grafiken komprimiert speichern
- if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_OPT_SAVEGRAPHICSCOMPRESSED), TRUE, &pItem))
- {
- DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
- BOOL b = ((const SfxBoolItem *)pItem)->GetValue();
- if ( pDocInf )
- pDocInf->SetSaveGraphicsCompressed(b);
- }
-
- // Grafiken im Original speichern
- if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_OPT_SAVEORIGINALGRAPHICS), TRUE, &pItem))
- {
- DBG_ASSERT(pItem->ISA(SfxBoolItem), "BoolItem expected");
- BOOL b = ((const SfxBoolItem *)pItem)->GetValue();
- if ( pDocInf )
- pDocInf->SetSaveOriginalGraphics(b);
- }
-
// PathName
if ( SFX_ITEM_SET == rSet.GetItemState(rPool.GetWhich(SID_ATTR_PATHNAME), TRUE, &pItem))
{