diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-04 13:20:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-12 10:14:43 +0200 |
commit | a6a8a8707b6ae111f94bac094d3c2909f523ca6f (patch) | |
tree | 402b668480b3106df0d3055cff037c8a768a419c /starmath | |
parent | f1204419af34b1d2f0ecaa69ceeb1f8c8a7d87df (diff) |
fdo#46808, convert xmloff module code to use XComponentContext
with lots of repurcussions in other modules
Change-Id: I6982671eecc701b06cf85d93533e1fe618044fea
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 10 | ||||
-rw-r--r-- | starmath/source/mathmlimport.hxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 8a4f3a0a7aff..3d730eb63d80 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -413,9 +413,9 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent( //////////////////////////////////////////////////////////// SmXMLImport::SmXMLImport( - const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory, + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, sal_uInt16 nImportFlags) -: SvXMLImport( xServiceFactory, nImportFlags ), +: SvXMLImport( xContext, nImportFlags ), pPresLayoutElemTokenMap(0), pPresLayoutAttrTokenMap(0), pFencedAttrTokenMap(0), @@ -456,7 +456,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImport_createInstance( const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) { - return (cppu::OWeakObject*)new SmXMLImport(rSMgr, IMPORT_ALL); + return (cppu::OWeakObject*)new SmXMLImport(comphelper::getComponentContext(rSMgr), IMPORT_ALL); } //////////////////////////////////////////////////////////// @@ -478,7 +478,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImportMeta_createInstance( const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) { - return (cppu::OWeakObject*)new SmXMLImport( rSMgr, IMPORT_META ); + return (cppu::OWeakObject*)new SmXMLImport( comphelper::getComponentContext(rSMgr), IMPORT_META ); } //////////////////////////////////////////////////////////// @@ -500,7 +500,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImportSettings_createInstance( const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) { - return (cppu::OWeakObject*)new SmXMLImport( rSMgr, IMPORT_SETTINGS ); + return (cppu::OWeakObject*)new SmXMLImport( comphelper::getComponentContext(rSMgr), IMPORT_SETTINGS ); } //////////////////////////////////////////////////////////// diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx index 00405e1622a5..3e3c45092865 100644 --- a/starmath/source/mathmlimport.hxx +++ b/starmath/source/mathmlimport.hxx @@ -87,7 +87,7 @@ class SmXMLImport : public SvXMLImport public: SmXMLImport( - const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory, + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, sal_uInt16 nImportFlags=IMPORT_ALL); virtual ~SmXMLImport() throw (); |