summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-01-29 09:02:24 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-02-06 09:07:14 +0100
commit1790ff71bd0772a37ad6ab7885cdbe2752dfdadf (patch)
tree7d986f6a358cc121db45d504116756f173dbd91e /xmloff
parent458c2482da665089f0fe7ca4f419ef11e33c9b13 (diff)
xo: Constructor feature for XMLVersionListPersistence.
Change-Id: I04429d95622f0b5a5988fa3dc3bac16d55aa1b3f
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/xmlversion.hxx13
-rw-r--r--xmloff/source/core/facreg.cxx5
-rw-r--r--xmloff/source/meta/xmlversion.cxx29
-rw-r--r--xmloff/util/xo.component3
4 files changed, 10 insertions, 40 deletions
diff --git a/xmloff/inc/xmlversion.hxx b/xmloff/inc/xmlversion.hxx
index 0bf3113d1549..3f81f1180ee8 100644
--- a/xmloff/inc/xmlversion.hxx
+++ b/xmloff/inc/xmlversion.hxx
@@ -124,19 +124,6 @@ public:
virtual void SAL_CALL store( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage, const ::com::sun::star::uno::Sequence< ::com::sun::star::util::RevisionTag >& List ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
};
-::com::sun::star::uno::Sequence< OUString > SAL_CALL
- XMLVersionListPersistence_getSupportedServiceNames()
- throw();
-
-OUString SAL_CALL XMLVersionPersistence_getImplementationName()
- throw();
-
-::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
- XMLVersionListPersistence_createInstance(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory > & )
- throw( ::com::sun::star::uno::Exception );
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/source/core/facreg.cxx b/xmloff/source/core/facreg.cxx
index 141ef860d743..9d0067f8ceac 100644
--- a/xmloff/source/core/facreg.cxx
+++ b/xmloff/source/core/facreg.cxx
@@ -114,9 +114,6 @@ SERVICE( SchXMLExport );
SERVICE( SchXMLExport_Styles );
SERVICE( SchXMLExport_Content );
-// version list import/export
-SERVICE( XMLVersionListPersistence );
-
// meta export
SERVICE( XMLMetaExportComponent );
@@ -241,8 +238,6 @@ XMLOFF_DLLPUBLIC void * SAL_CALL xo_component_getFactory( const sal_Char * pImpl
else SINGLEFACTORY( XMLMetaExportComponent )
else SINGLEFACTORY( XMLMetaImportComponent )
- else SINGLEFACTORY( XMLVersionListPersistence )
-
// meta import/export OOo
else SINGLEFACTORY( XMLMetaExportOOO )
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index 98fda5d9e74d..46e36c3af9b7 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -427,27 +427,6 @@ uno::Sequence< util::RevisionTag > SAL_CALL XMLVersionListPersistence::load( con
return aVersions;
}
-uno::Sequence< OUString > SAL_CALL XMLVersionListPersistence_getSupportedServiceNames()
- throw()
-{
- const OUString aServiceName(
- "com.sun.star.document.DocumentRevisionListPersistence" );
- const uno::Sequence< OUString > aSeq( &aServiceName, 1 );
- return aSeq;
-}
-
-OUString SAL_CALL XMLVersionListPersistence_getImplementationName() throw()
-{
- return OUString( "XMLVersionListPersistence" );
-}
-
-uno::Reference< uno::XInterface > SAL_CALL XMLVersionListPersistence_createInstance(
- const uno::Reference< lang::XMultiServiceFactory > &)
- throw( uno::Exception )
-{
- return (cppu::OWeakObject*)new XMLVersionListPersistence;
-}
-
uno::Sequence< OUString > SAL_CALL XMLVersionImExportOOO_getSupportedServiceNames()
throw()
{
@@ -469,4 +448,12 @@ uno::Reference< uno::XInterface > SAL_CALL XMLVersionImExportOOO_createInstance(
return (cppu::OWeakObject*)new XMLVersionListPersistence;
}
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
+XMLVersionListPersistence_get_implementation(
+ css::uno::XComponentContext *,
+ css::uno::Sequence<css::uno::Any> const &)
+{
+ return cppu::acquire(new XMLVersionListPersistence());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/util/xo.component b/xmloff/util/xo.component
index 13ae97794f1a..ad180f66c198 100644
--- a/xmloff/util/xo.component
+++ b/xmloff/util/xo.component
@@ -149,7 +149,8 @@
<implementation name="XMLMetaImportComponent">
<service name="com.sun.star.document.XMLOasisMetaImporter"/>
</implementation>
- <implementation name="XMLVersionListPersistence">
+ <implementation name="XMLVersionListPersistence"
+ constructor="XMLVersionListPersistence_get_implementation">
<service name="com.sun.star.document.DocumentRevisionListPersistence"/>
</implementation>
<implementation name="com.sun.star.comp.Writer.XMLAutotextEventsExporter">