Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / writerperfect / source / impress / KeynoteImportFilter.hxx
blobe4c88001c006a4a1714aeb4c3b3fc15d85216af7
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 #ifndef INCLUDED_WRITERPERFECT_SOURCE_IMPRESS_KEYNOTEIMPORTFILTER_HXX
9 #define INCLUDED_WRITERPERFECT_SOURCE_IMPRESS_KEYNOTEIMPORTFILTER_HXX
11 #include <com/sun/star/lang/XServiceInfo.hpp>
12 #include <com/sun/star/uno/XComponentContext.hpp>
14 #include "ImportFilter.hxx"
15 #include "DocumentHandlerForOdp.hxx"
17 /* This component will be instantiated for both import or export. Whether it calls
18 * setSourceDocument or setTargetDocument determines which Impl function the filter
19 * member calls */
20 class KeynoteImportFilter : public writerperfect::ImportFilter<OdpGenerator>
22 public:
23 explicit KeynoteImportFilter(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
24 : writerperfect::ImportFilter<OdpGenerator>(rxContext) {}
25 virtual ~KeynoteImportFilter() {}
27 //XExtendedFilterDetection
28 virtual OUString SAL_CALL detect(css::uno::Sequence< css::beans::PropertyValue > &Descriptor)
29 throw(css::uno::RuntimeException, std::exception) override;
31 // XServiceInfo
32 virtual OUString SAL_CALL getImplementationName()
33 throw (css::uno::RuntimeException, std::exception) override;
34 virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName)
35 throw (css::uno::RuntimeException, std::exception) override;
36 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
37 throw (css::uno::RuntimeException, std::exception) override;
39 private:
40 virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) override;
41 virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdpGenerator &rGenerator, utl::MediaDescriptor &) override;
44 #endif
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */