diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2014-10-20 22:34:24 +0900 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-10-24 08:12:29 +0000 |
commit | bddd965764130656ee8daf84b592de6de3c1db4f (patch) | |
tree | 244ac62f7122e9b778209fd2384a2a77736d4cd6 /writerperfect/source/draw/MWAWDrawImportFilter.hxx | |
parent | 0a82645c360158f9cc0fdabe2a52f1ff8f981bed (diff) |
fdo#84168 change writerperfect filters to use a new base class template
in writerperfect/source/draw.
Change-Id: I8ec2861da2af1e203157faa1319b837fe236b507
Reviewed-on: https://gerrit.libreoffice.org/12072
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'writerperfect/source/draw/MWAWDrawImportFilter.hxx')
-rw-r--r-- | writerperfect/source/draw/MWAWDrawImportFilter.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/writerperfect/source/draw/MWAWDrawImportFilter.hxx b/writerperfect/source/draw/MWAWDrawImportFilter.hxx index 84a562b1431c..29ce1e0aeca4 100644 --- a/writerperfect/source/draw/MWAWDrawImportFilter.hxx +++ b/writerperfect/source/draw/MWAWDrawImportFilter.hxx @@ -13,16 +13,18 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/uno/XComponentContext.hpp> -#include "ImportFilterBase.hxx" +#include "writerperfect/ImportFilter.hxx" + +#include "DocumentHandlerForOdg.hxx" /* This component will be instantiated for both import or export. Whether it calls * setSourceDocument or setTargetDocument determines which Impl function the filter * member calls */ -class MWAWDrawImportFilter : public writerperfect::draw::ImportFilterBase +class MWAWDrawImportFilter : public writerperfect::ImportFilter<OdgGenerator> { public: MWAWDrawImportFilter(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext) - : writerperfect::draw::ImportFilterBase(rxContext) {} + : writerperfect::ImportFilter<OdgGenerator>(rxContext) {} // XServiceInfo virtual OUString SAL_CALL getImplementationName() @@ -34,7 +36,7 @@ public: private: virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) SAL_OVERRIDE; - virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, librevenge::RVNGDrawingInterface &rGenerator, utl::MediaDescriptor &) SAL_OVERRIDE; + virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdgGenerator &rGenerator, utl::MediaDescriptor &) SAL_OVERRIDE; virtual void doRegisterHandlers(OdgGenerator &rGenerator) SAL_OVERRIDE; }; |