diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-05 10:35:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 14:48:19 +0200 |
commit | 27c6434fccfec5fb4184c1efa2057595c8716fad (patch) | |
tree | c0c65b6653853b345d066324a5e847daa1347fa8 /filter/source/xmlfilteradaptor | |
parent | b83edcf00d4ccd0c734731ed66d167286bf89d6b (diff) |
fdo#46808, Replace usage of SpecialConfigManager
with usage of the underlying SvtPathOptions. The service is just
a thing wrapper that serves no real purpose.
Change-Id: Id762edf71ba0f699ef091261905c88c2d93e1c12
Diffstat (limited to 'filter/source/xmlfilteradaptor')
-rw-r--r-- | filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx index 19dfbb1f620b..bba852d2d94e 100644 --- a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx +++ b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx @@ -49,6 +49,7 @@ #include <com/sun/star/beans/PropertyAttribute.hpp> #include <comphelper/genericpropertyset.hxx> #include <comphelper/propertysetinfo.hxx> +#include <unotools/pathoptions.hxx> using namespace comphelper; using namespace com::sun::star::uno; @@ -160,9 +161,8 @@ sal_Bool SAL_CALL XmlFilterAdaptor::importImpl( const Sequence< ::com::sun::star //Load the Styles from the Template URL Supplied in the TypeDetection file if(msTemplateName.indexOf(OUString( "file:" ))==-1) { - Reference< XConfigManager >xCfgMgr ( mxContext->getServiceManager()->createInstanceWithContext( - "com.sun.star.config.SpecialConfigManager", mxContext ), UNO_QUERY ); - OUString PathString(xCfgMgr->substituteVariables(OUString("$(progurl)"))); + SvtPathOptions aOptions; + OUString PathString = aOptions.SubstituteVariable(OUString("$(progurl)")); PathString = PathString.concat(OUString( "/" )); msTemplateName=PathString.concat(msTemplateName); } |