summaryrefslogtreecommitdiff
path: root/dbaccess/source/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-08 14:11:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-08 14:11:58 +0100
commit31911b3cdcd405973b689e10ee86add6f1c40bd1 (patch)
tree3f2de8a7ddacd3e769d391fbd572a8a8a740301e /dbaccess/source/filter
parentd7a360eb99a403df65574d1e237db04da6e1c4c2 (diff)
Consolidate XServiceInfo for classes derived from SvXMLExport
Change-Id: Ia3e2b5e682a64844bb6c713912c50c7681393d52
Diffstat (limited to 'dbaccess/source/filter')
-rw-r--r--dbaccess/source/filter/xml/xmlExport.cxx19
-rw-r--r--dbaccess/source/filter/xml/xmlExport.hxx12
2 files changed, 24 insertions, 7 deletions
diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index 63e80fbc00de..9ac4b0b664d3 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -27,6 +27,7 @@
#include <xmloff/xmlnmspe.hxx>
#include <xmloff/nmspmap.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/sequence.hxx>
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
#include "xmlstrings.hrc"
@@ -187,7 +188,7 @@ namespace dbaxml
}
};
ODBExport::ODBExport(const Reference< XComponentContext >& _rxContext,sal_uInt16 nExportFlag)
-: SvXMLExport( util::MeasureUnit::MM_10TH, _rxContext, XML_DATABASE,
+: SvXMLExport( util::MeasureUnit::MM_10TH, _rxContext, getImplementationName_Static(), XML_DATABASE,
EXPORT_OASIS | nExportFlag)
,m_aTypeCollection(_rxContext)
,m_bAllreadyFilled(sal_False)
@@ -252,9 +253,19 @@ ODBExport::ODBExport(const Reference< XComponentContext >& _rxContext,sal_uInt16
OUString(XML_STYLE_FAMILY_TABLE_ROW_STYLES_PREFIX ));
}
-IMPLEMENT_SERVICE_INFO_IMPLNAME_STATIC(ODBExport, "com.sun.star.comp.sdb.DBExportFilter")
-IMPLEMENT_SERVICE_INFO_SUPPORTS(ODBExport)
-IMPLEMENT_SERVICE_INFO_GETSUPPORTED1_STATIC(ODBExport, "com.sun.star.document.ExportFilter")
+OUString ODBExport::getImplementationName_Static()
+ throw (css::uno::RuntimeException)
+{
+ return OUString("com.sun.star.comp.sdb.DBExportFilter");
+}
+
+css::uno::Sequence<OUString> ODBExport::getSupportedServiceNames_Static()
+ throw (css::uno::RuntimeException)
+{
+ css::uno::Sequence<OUString> s(1);
+ s[0] = "com.sun.star.document.ExportFilter";
+ return s;
+}
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
SAL_CALL ODBExport::Create(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB)
diff --git a/dbaccess/source/filter/xml/xmlExport.hxx b/dbaccess/source/filter/xml/xmlExport.hxx
index a436016916de..2365f4010c0f 100644
--- a/dbaccess/source/filter/xml/xmlExport.hxx
+++ b/dbaccess/source/filter/xml/xmlExport.hxx
@@ -38,7 +38,6 @@
#include <unotools/ucbstreamhelper.hxx>
#include <xmloff/xmlexp.hxx>
#include <xmloff/xmlimp.hxx>
-#include "apitools.hxx"
#include "dsntypes.hxx"
#include <comphelper/stl_types.hxx>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
@@ -175,8 +174,15 @@ protected:
public:
ODBExport(const Reference< XComponentContext >& _rxContext, sal_uInt16 nExportFlag = EXPORT_CONTENT | EXPORT_AUTOSTYLES | EXPORT_PRETTY | EXPORT_FONTDECLS | EXPORT_SCRIPTS );
- // XServiceInfo
- DECLARE_SERVICE_INFO_STATIC( );
+
+ static OUString SAL_CALL getImplementationName_Static()
+ throw (css::uno::RuntimeException);
+
+ static css::uno::Sequence<OUString> SAL_CALL
+ getSupportedServiceNames_Static() throw (css::uno::RuntimeException);
+
+ static css::uno::Reference<css::uno::XInterface> SAL_CALL Create(
+ css::uno::Reference<css::lang::XMultiServiceFactory> const & _rxORB);
UniReference < XMLPropertySetMapper > GetColumnStylesPropertySetMapper() const;
UniReference < XMLPropertySetMapper > GetCellStylesPropertySetMapper() const;