summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-26 20:56:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-26 20:56:44 +0100
commitd3e30409530a94470a3c19612663b26a9eafa683 (patch)
tree952a846aa33686237ca5d3cfd4779cebd4c9a20d /svx
parente2407767b39df00c4057a8174391ab70b97a39a5 (diff)
Replace SvtCacheOptions with (simplified) direct configuration access.
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdetc.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx
index 0cc8aade8bd1..68406f661d00 100644
--- a/svx/source/svdraw/svdetc.cxx
+++ b/svx/source/svdraw/svdetc.cxx
@@ -26,9 +26,12 @@
*
************************************************************************/
+#include "sal/config.h"
+
#include "editeng/forbiddencharacterstable.hxx"
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <com/sun/star/embed/EmbedStates.hpp>
+#include "officecfg/Office/Common.hxx"
#include <svx/svdetc.hxx>
#include "svx/svditext.hxx"
#include <svx/svdmodel.hxx>
@@ -41,7 +44,6 @@
#include <vcl/bmpacc.hxx>
#include <editeng/eeitem.hxx>
#include <svl/itemset.hxx>
-#include <unotools/cacheoptions.hxx>
#include <svl/whiter.hxx>
#include "editeng/fontitem.hxx"
#include <editeng/colritem.hxx>
@@ -106,9 +108,8 @@ const LocaleDataWrapper* SdrGlobalData::GetLocaleData()
OLEObjCache::OLEObjCache()
: Container( 0 )
{
- SvtCacheOptions aCacheOptions;
-
- nSize = aCacheOptions.GetDrawingEngineOLE_Objects();
+ nSize = officecfg::Office::Common::Cache::DrawingEngine::OLE_Objects::get(
+ comphelper::getProcessComponentContext());
pTimer = new AutoTimer();
Link aLink = LINK(this, OLEObjCache, UnloadCheckHdl);