summaryrefslogtreecommitdiff
path: root/writerperfect/source/draw/CMXImportFilter.hxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2014-10-20 22:34:24 +0900
committerDavid Tardon <dtardon@redhat.com>2014-10-24 08:12:29 +0000
commitbddd965764130656ee8daf84b592de6de3c1db4f (patch)
tree244ac62f7122e9b778209fd2384a2a77736d4cd6 /writerperfect/source/draw/CMXImportFilter.hxx
parent0a82645c360158f9cc0fdabe2a52f1ff8f981bed (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/CMXImportFilter.hxx')
-rw-r--r--writerperfect/source/draw/CMXImportFilter.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/writerperfect/source/draw/CMXImportFilter.hxx b/writerperfect/source/draw/CMXImportFilter.hxx
index dcb43e8cb7ad..ac40cd8a4319 100644
--- a/writerperfect/source/draw/CMXImportFilter.hxx
+++ b/writerperfect/source/draw/CMXImportFilter.hxx
@@ -11,16 +11,18 @@
#ifndef _CMXIMPORTFILTER_HXX
#define _CMXIMPORTFILTER_HXX
-#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 CMXImportFilter : public writerperfect::draw::ImportFilterBase
+class CMXImportFilter : public writerperfect::ImportFilter<OdgGenerator>
{
public:
CMXImportFilter(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
- : writerperfect::draw::ImportFilterBase(rxContext)
+ : writerperfect::ImportFilter<OdgGenerator>(rxContext)
{
}
@@ -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;
};
OUString CMXImportFilter_getImplementationName()