Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / writerperfect / source / draw / CDRImportFilter.hxx
blob6fe957d019d5e3efdbd6481952a9c4d49ec80d72
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 */
8 /* "This product is not manufactured, approved, or supported by
9 * Corel Corporation or Corel Corporation Limited."
11 #ifndef INCLUDED_WRITERPERFECT_SOURCE_DRAW_CDRIMPORTFILTER_HXX
12 #define INCLUDED_WRITERPERFECT_SOURCE_DRAW_CDRIMPORTFILTER_HXX
14 #include "ImportFilter.hxx"
16 #include "DocumentHandlerForOdg.hxx"
18 /* This component will be instantiated for both import or export. Whether it calls
19 * setSourceDocument or setTargetDocument determines which Impl function the filter
20 * member calls */
21 class CDRImportFilter : public writerperfect::ImportFilter<OdgGenerator>
23 public:
24 explicit CDRImportFilter(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
25 : writerperfect::ImportFilter<OdgGenerator>(rxContext)
29 // XServiceInfo
30 virtual OUString SAL_CALL getImplementationName()
31 throw (css::uno::RuntimeException, std::exception) override;
32 virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName)
33 throw (css::uno::RuntimeException, std::exception) override;
34 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
35 throw (css::uno::RuntimeException, std::exception) override;
37 private:
38 virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) override;
39 virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdgGenerator &rGenerator, utl::MediaDescriptor &) override;
42 #endif
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */