From d3e30409530a94470a3c19612663b26a9eafa683 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Jan 2012 20:56:06 +0100 Subject: Replace SvtCacheOptions with (simplified) direct configuration access. --- svtools/source/graphic/grfmgr.cxx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'svtools') diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx index 2c4997532451..8098e77179e5 100644 --- a/svtools/source/graphic/grfmgr.cxx +++ b/svtools/source/graphic/grfmgr.cxx @@ -26,9 +26,12 @@ * ************************************************************************/ +#include "sal/config.h" #include +#include +#include #include #include #include @@ -38,7 +41,6 @@ #include #include #include -#include #include #include @@ -176,11 +178,14 @@ void GraphicObject::ImplSetGraphicManager( const GraphicManager* pMgr, const rtl { if( !mpGlobalMgr ) { - SvtCacheOptions aCacheOptions; - - mpGlobalMgr = new GraphicManager( aCacheOptions.GetGraphicManagerTotalCacheSize(), - aCacheOptions.GetGraphicManagerObjectCacheSize() ); - mpGlobalMgr->SetCacheTimeout( aCacheOptions.GetGraphicManagerObjectReleaseTime() ); + mpGlobalMgr = new GraphicManager( + officecfg::Office::Common::Cache::GraphicManager::TotalCacheSize::get( + comphelper::getProcessComponentContext()), + officecfg::Office::Common::Cache::GraphicManager::ObjectCacheSize::get( + comphelper::getProcessComponentContext())); + mpGlobalMgr->SetCacheTimeout( + officecfg::Office::Common::Cache::GraphicManager::ObjectReleaseTime::get( + comphelper::getProcessComponentContext())); } mpMgr = mpGlobalMgr; -- cgit