summaryrefslogtreecommitdiff
path: root/xmloff/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-16 17:12:47 +0200
committerNoel Grandin <noel@peralex.com>2013-02-11 08:02:11 +0200
commite5fdaec54a54e42b487c37e6b01493bcdfc30b4c (patch)
tree26421d24cee78af24feb748fc52845f279dd299e /xmloff/inc
parentc4d051c5dbee532264e1bfc2ccdb337c6dcf83ed (diff)
fdo#46808, Adapt document::XML*BasicExporter UNO services to new style
The services are document::XMLBasicExporter document::XMLOasisBasicExporter Change-Id: Ifd93e5735cae94d34904d79769cdb3edf587fe43
Diffstat (limited to 'xmloff/inc')
-rw-r--r--xmloff/inc/MetaExportComponent.hxx4
-rw-r--r--xmloff/inc/SchXMLExport.hxx2
-rw-r--r--xmloff/inc/xmloff/xmlexp.hxx30
-rw-r--r--xmloff/inc/xmloff/xmluconv.hxx5
-rw-r--r--xmloff/inc/xmlversion.hxx2
5 files changed, 11 insertions, 32 deletions
diff --git a/xmloff/inc/MetaExportComponent.hxx b/xmloff/inc/MetaExportComponent.hxx
index c91f1b1fbcc4..2d4881a0f01e 100644
--- a/xmloff/inc/MetaExportComponent.hxx
+++ b/xmloff/inc/MetaExportComponent.hxx
@@ -30,10 +30,8 @@ class XMLMetaExportComponent : public SvXMLExport
::com::sun::star::document::XDocumentProperties > mxDocProps;
public:
- // #110680#
- // XMLMetaExportComponent();
XMLMetaExportComponent(
- 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 nFlags
);
diff --git a/xmloff/inc/SchXMLExport.hxx b/xmloff/inc/SchXMLExport.hxx
index 204abba6288c..46f63c9aa5af 100644
--- a/xmloff/inc/SchXMLExport.hxx
+++ b/xmloff/inc/SchXMLExport.hxx
@@ -55,7 +55,7 @@ protected:
public:
// #110680#
SchXMLExport(
- 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 nExportFlags = EXPORT_ALL );
virtual ~SchXMLExport();
diff --git a/xmloff/inc/xmloff/xmlexp.hxx b/xmloff/inc/xmloff/xmlexp.hxx
index 7482971c1614..7ec93bd70206 100644
--- a/xmloff/inc/xmloff/xmlexp.hxx
+++ b/xmloff/inc/xmloff/xmlexp.hxx
@@ -50,6 +50,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XEventListener.hpp>
+#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <unotools/saveopt.hxx>
@@ -75,7 +76,6 @@ class XMLErrors;
namespace rtl { class OUString; }
namespace com { namespace sun { namespace star {
- namespace uno { class XComponentContext; }
namespace frame { class XModel; }
namespace container { class XIndexContainer; }
} } }
@@ -106,8 +106,7 @@ class XMLOFF_DLLPUBLIC SvXMLExport : public ::cppu::WeakImplHelper6<
{
SvXMLExport_Impl *mpImpl; // dummy
- // #110680#
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxServiceFactory;
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > mxHandler; // the handlers
@@ -264,36 +263,20 @@ protected:
public:
- // #110680#
- //SvXMLExport( MapUnit eDfltUnit,
- // const enum ::xmloff::token::XMLTokenEnum eClass = xmloff::token::XML_TOKEN_INVALID,
- // sal_uInt16 nExportFlag = EXPORT_ALL );
SvXMLExport(
sal_Int16 const eDefaultMeasureUnit /*css::util::MeasureUnit*/,
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
const enum ::xmloff::token::XMLTokenEnum eClass = xmloff::token::XML_TOKEN_INVALID,
sal_uInt16 nExportFlag = EXPORT_ALL );
- // #110680#
- //SvXMLExport( const ::rtl::OUString& rFileName,
- // const ::com::sun::star::uno::Reference<
- // ::com::sun::star::xml::sax::XDocumentHandler > & rHandler,
- // MapUnit eDfltUnit = MAP_INCH );
SvXMLExport(
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
const ::rtl::OUString& rFileName,
sal_Int16 const eDefaultMeasureUnit /*css::util::MeasureUnit*/,
const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler);
- // #110680#
- //SvXMLExport( const ::rtl::OUString& rFileName,
- // const ::com::sun::star::uno::Reference<
- // ::com::sun::star::xml::sax::XDocumentHandler > & rHandler,
- // const ::com::sun::star::uno::Reference<
- // ::com::sun::star::frame::XModel > &,
- // sal_Int16 eDfltUnit );
SvXMLExport(
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
const ::rtl::OUString& rFileName,
const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > &,
@@ -523,8 +506,7 @@ public:
::comphelper::UnoInterfaceToUniqueIdentifierMapper& getInterfaceToIdentifierMapper();
- // #110680#
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getServiceFactory();
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getComponentContext();
// Shapes in Writer cannot be named via context menu (#i51726#)
SvtModuleOptions::EFactory GetModelType() const
diff --git a/xmloff/inc/xmloff/xmluconv.hxx b/xmloff/inc/xmloff/xmluconv.hxx
index 0fb3fa2485ac..7e6e33a82256 100644
--- a/xmloff/inc/xmloff/xmluconv.hxx
+++ b/xmloff/inc/xmloff/xmluconv.hxx
@@ -36,8 +36,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/drawing/Position3D.hpp>
-// #110680#
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#include <com/sun/star/uno/XComponentContext.hpp>
//////////////////////////////////////////////////////////////////////////////
// predeclarations
@@ -95,7 +94,7 @@ public:
the default unit for textual measures */
SvXMLUnitConverter(
const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
+ ::com::sun::star::uno::XComponentContext >& xContext,
sal_Int16 eCoreMeasureUnit,
sal_Int16 eXMLMeasureUnit);
diff --git a/xmloff/inc/xmlversion.hxx b/xmloff/inc/xmlversion.hxx
index dacb331e934f..6c116edd4a8a 100644
--- a/xmloff/inc/xmlversion.hxx
+++ b/xmloff/inc/xmlversion.hxx
@@ -39,7 +39,7 @@ private:
const com::sun::star::uno::Sequence < com::sun::star::util::RevisionTag >& maVersions;
public:
XMLVersionListExport(
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
const com::sun::star::uno::Sequence < com::sun::star::util::RevisionTag >& rVersions,
const rtl::OUString &rFileName,
com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler > &rHandler );