diff options
author | Kai Ahrens <ka@openoffice.org> | 2001-04-12 14:02:49 +0000 |
---|---|---|
committer | Kai Ahrens <ka@openoffice.org> | 2001-04-12 14:02:49 +0000 |
commit | 40b437e4badf7b42cf1d551c2d56abc7f9c8c898 (patch) | |
tree | 994df7441e2a439ee22cee70313cb3172fc659e8 /svx/source/svdraw/svdetc.cxx | |
parent | a697e306eaa660f53b9ac30e2a614c6ecb622d70 (diff) |
use SvtCacheOptions for OLE object cache count
Diffstat (limited to 'svx/source/svdraw/svdetc.cxx')
-rw-r--r-- | svx/source/svdraw/svdetc.cxx | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index 740bd17899af..f0bb5ceba410 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdetc.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: cl $ $Date: 2001-04-04 16:00:49 $ + * last change: $Author: ka $ $Date: 2001-04-12 15:02:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -93,6 +93,10 @@ #include <vcl/config.hxx> #endif +#ifndef INCLUDED_SVTOOLS_CACHEOPTIONS_HXX +#include <svtools/cacheoptions.hxx> +#endif + #ifndef _SFX_WHITER_HXX //autogen #include <svtools/whiter.hxx> #endif @@ -201,30 +205,9 @@ SdrGlobalData::~SdrGlobalData() OLEObjCache::OLEObjCache() : Container( 0 ) { - nSize = 20; -/* !!! IniManager - SfxIniManager* pIniMgr = SfxIniManager::Get(); - - if(pIniMgr) - { - sal_Char aTextOLECacheNum[] = "MaxOLEObjectsInDrawingEngineMemory"; - String aKeyName = UniString(aTextOLECacheNum, sizeof(aTextOLECacheNum-1)); - String aGroupName(pIniMgr->GetGroupName(SFX_GROUP_WORKINGSET_IMPL)); + SvtCacheOptions aCacheOptions; - if(!pIniMgr->ReadKey(aGroupName, aKeyName).Len()) - { - pIniMgr->WriteKey(aGroupName, aKeyName, UniString::CreateFromInt32(nSize)); - } - else - { - String aIniManagerString = pIniMgr->Get(SFX_GROUP_WORKINGSET_IMPL, aKeyName); - nSize = aIniManagerString.ToInt32(); - - if(nSize < 5) - nSize = 5; - } - } -*/ + nSize = aCacheOptions.GetDrawingEngineOLE_Objects(); pTimer = new AutoTimer(); Link aLink = LINK(this, OLEObjCache, UnloadCheckHdl); |