diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-08 15:29:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-01-15 09:56:03 +0200 |
commit | abcbababca2ff10bb78d36cf1a625b9d615eaa9a (patch) | |
tree | 1c95f7dc1e7f20c013f13c1f1fff637853e23256 /dbaccess | |
parent | 251f1b0b38be7d1267339898e44e320f05849e22 (diff) |
fdo#46808, Convert comphelper::MimeConfigurationHelper to XComponentContext
Change-Id: I74b4f0c4a84f02b218102405eaba24cf47f654ce
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/documentcontainer.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/documentdefinition.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/filter/xml/xmlfilter.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx index d765d7ecd23b..9e91fd447a0a 100644 --- a/dbaccess/source/core/dataaccess/documentcontainer.cxx +++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx @@ -253,7 +253,7 @@ Reference< XInterface > SAL_CALL ODocumentContainer::createInstanceWithArguments ODocumentDefinition::GetDocumentServiceFromMediaType( sMediaType, m_aContext, aClassID ); else if ( !sDocServiceName.isEmpty() ) { - ::comphelper::MimeConfigurationHelper aConfigHelper( m_aContext.getLegacyServiceFactory() ); + ::comphelper::MimeConfigurationHelper aConfigHelper( m_aContext.getUNOContext() ); const Sequence< NamedValue > aProps( aConfigHelper.GetObjectPropsByDocumentName( sDocServiceName ) ); const ::comphelper::NamedValueCollection aMediaTypeProps( aProps ); aClassID = aMediaTypeProps.getOrDefault( "ClassID", Sequence< sal_Int8 >() ); diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx index 75737630278f..120ffdbc44d4 100644 --- a/dbaccess/source/core/dataaccess/documentdefinition.cxx +++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx @@ -386,7 +386,7 @@ namespace dbaccess ::rtl::OUString sResult; try { - ::comphelper::MimeConfigurationHelper aConfigHelper( _rContext.getLegacyServiceFactory() ); + ::comphelper::MimeConfigurationHelper aConfigHelper( _rContext.getUNOContext() ); sResult = aConfigHelper.GetDocServiceNameFromMediaType( _rMediaType ); _rClassId = aConfigHelper.GetSequenceClassIDRepresentation(aConfigHelper.GetExplicitlyRegisteredObjClassID( _rMediaType )); if ( !_rClassId.getLength() && !sResult.isEmpty() ) diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx index a625398598b2..21c2da5eb152 100644 --- a/dbaccess/source/filter/xml/xmlfilter.cxx +++ b/dbaccess/source/filter/xml/xmlfilter.cxx @@ -144,7 +144,7 @@ namespace dbaxml aArgs[nLen].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Hidden")); aArgs[nLen++].Value <<= sal_True; - ::comphelper::MimeConfigurationHelper aHelper(m_xFactory); + ::comphelper::MimeConfigurationHelper aHelper( comphelper::getComponentContext(m_xFactory) ); SvtModuleOptions aModuleOptions; uno::Reference< frame::XModel > xModel(xFrameLoad->loadComponentFromURL( aModuleOptions.GetFactoryEmptyDocumentURL( aModuleOptions.ClassifyFactoryByServiceName( aHelper.GetDocServiceNameFromMediaType(MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET) )), |