diff options
author | osnola <alonso@loria.fr> | 2014-05-28 18:13:06 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-05-29 13:33:46 +0200 |
commit | ba0b63869ace532720bd7c13099e62c478d8cc31 (patch) | |
tree | d9a7d13c37b58a1c95362028351c15f19e170cc5 /writerperfect/source/draw | |
parent | 0e17d7bb8acdbc0c36406a352c37f5cb0a987ced (diff) |
add new libmwaw drawing formats (forgotten files)
Change-Id: Ib9ecd643a552063e2a09874776b3ea0f30e8440a
Diffstat (limited to 'writerperfect/source/draw')
-rw-r--r-- | writerperfect/source/draw/ImportFilterBase.cxx | 6 | ||||
-rw-r--r-- | writerperfect/source/draw/ImportFilterBase.hxx | 3 | ||||
-rw-r--r-- | writerperfect/source/draw/wpftdraw.component | 4 | ||||
-rw-r--r-- | writerperfect/source/draw/wpftdraw_genericfilter.cxx | 5 |
4 files changed, 18 insertions, 0 deletions
diff --git a/writerperfect/source/draw/ImportFilterBase.cxx b/writerperfect/source/draw/ImportFilterBase.cxx index 6fc09b2e74dd..fc6c8ee223a0 100644 --- a/writerperfect/source/draw/ImportFilterBase.cxx +++ b/writerperfect/source/draw/ImportFilterBase.cxx @@ -95,6 +95,8 @@ throw (RuntimeException, std::exception) OdgGenerator exporter; exporter.addDocumentHandler(&xHandler, ODF_FLAT_XML); + doRegisterHandlers(exporter); + return doImportDocument(input, exporter); } @@ -170,6 +172,10 @@ throw (Exception, RuntimeException, std::exception) } } +void ImportFilterImpl::doRegisterHandlers( OdgGenerator & ) +{ +} + } } diff --git a/writerperfect/source/draw/ImportFilterBase.hxx b/writerperfect/source/draw/ImportFilterBase.hxx index 56a180820aa7..f326d98b3730 100644 --- a/writerperfect/source/draw/ImportFilterBase.hxx +++ b/writerperfect/source/draw/ImportFilterBase.hxx @@ -39,6 +39,8 @@ namespace xml { namespace sax { } } } } +class OdgGenerator; + namespace writerperfect { namespace draw @@ -80,6 +82,7 @@ public: private: virtual bool doDetectFormat( librevenge::RVNGInputStream &rInput, OUString &rTypeName ) = 0; virtual bool doImportDocument( librevenge::RVNGInputStream &rInput, librevenge::RVNGDrawingInterface &rGenerator ) = 0; + virtual void doRegisterHandlers( OdgGenerator &rGenerator ); private: ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > mxContext; diff --git a/writerperfect/source/draw/wpftdraw.component b/writerperfect/source/draw/wpftdraw.component index d52411659717..cc65f3c778d0 100644 --- a/writerperfect/source/draw/wpftdraw.component +++ b/writerperfect/source/draw/wpftdraw.component @@ -25,6 +25,10 @@ <service name="com.sun.star.document.ImportFilter"/> <service name="com.sun.star.document.ExtendedTypeDetection"/> </implementation> + <implementation name="com.sun.star.comp.Draw.MWAWDrawImportFilter"> + <service name="com.sun.star.document.ImportFilter"/> + <service name="com.sun.star.document.ExtendedTypeDetection"/> + </implementation> <implementation name="com.sun.star.comp.Draw.VisioImportFilter"> <service name="com.sun.star.document.ImportFilter"/> <service name="com.sun.star.document.ExtendedTypeDetection"/> diff --git a/writerperfect/source/draw/wpftdraw_genericfilter.cxx b/writerperfect/source/draw/wpftdraw_genericfilter.cxx index 43cabc175b86..821ac7c14161 100644 --- a/writerperfect/source/draw/wpftdraw_genericfilter.cxx +++ b/writerperfect/source/draw/wpftdraw_genericfilter.cxx @@ -32,6 +32,7 @@ #include "CDRImportFilter.hxx" #include "CMXImportFilter.hxx" #include "MSPUBImportFilter.hxx" +#include "MWAWDrawImportFilter.hxx" #include "FreehandImportFilter.hxx" #include "VisioImportFilter.hxx" #include "WPGImportFilter.hxx" @@ -53,6 +54,10 @@ static cppu::ImplementationEntry const services[] = { &MSPUBImportFilter_getImplementationName, &MSPUBImportFilter_getSupportedServiceNames, &cppu::createSingleComponentFactory, 0, 0 }, + { &MWAWDrawImportFilter_createInstance, + &MWAWDrawImportFilter_getImplementationName, + &MWAWDrawImportFilter_getSupportedServiceNames, + &cppu::createSingleComponentFactory, 0, 0 }, { &VisioImportFilter_createInstance, &VisioImportFilter_getImplementationName, &VisioImportFilter_getSupportedServiceNames, |