diff options
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventImport.cxx | 9 | ||||
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventImport.hxx | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/xmloff/source/text/XMLAutoTextEventImport.cxx b/xmloff/source/text/XMLAutoTextEventImport.cxx index c313accca867..875b29a6eb25 100644 --- a/xmloff/source/text/XMLAutoTextEventImport.cxx +++ b/xmloff/source/text/XMLAutoTextEventImport.cxx @@ -27,6 +27,7 @@ #include "xmloff/xmlnmspe.hxx" #include <xmloff/xmltoken.hxx> #include <tools/debug.hxx> +#include <comphelper/processfactory.hxx> using namespace ::com::sun::star; @@ -50,8 +51,8 @@ const sal_Char sAPI_AutoText[] = "com.sun.star.text.AutoTextContainer"; // #110680# XMLAutoTextEventImport::XMLAutoTextEventImport( - const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory) throw() -: SvXMLImport(xServiceFactory) + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext) throw() +: SvXMLImport(xContext) { } @@ -126,9 +127,7 @@ Reference< XInterface > SAL_CALL XMLAutoTextEventImport_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ) { - // #110680# - // return (cppu::OWeakObject*)new XMLAutoTextEventImport; - return (cppu::OWeakObject*)new XMLAutoTextEventImport(rSMgr); + return (cppu::OWeakObject*)new XMLAutoTextEventImport( comphelper::getComponentContext(rSMgr) ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/text/XMLAutoTextEventImport.hxx b/xmloff/source/text/XMLAutoTextEventImport.hxx index a18501ccf6a1..ec4de83c9d2b 100644 --- a/xmloff/source/text/XMLAutoTextEventImport.hxx +++ b/xmloff/source/text/XMLAutoTextEventImport.hxx @@ -45,10 +45,8 @@ class XMLAutoTextEventImport : public SvXMLImport ::com::sun::star::container::XNameReplace> xEvents; public: - // #110680# - // XMLAutoTextEventImport() throw(); XMLAutoTextEventImport( - const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) throw(); ~XMLAutoTextEventImport() throw(); |