android: Update app-specific/MIME type icons
[LibreOffice.git] / writerperfect / source / impress / KeynoteImportFilter.hxx
blob7180a8c8648390a704417c1ee7ad44be7bdddeaa
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 #pragma once
10 #include <com/sun/star/uno/XComponentContext.hpp>
12 #include <ImportFilter.hxx>
13 #include <DocumentHandlerForOdp.hxx>
15 /* This component will be instantiated for both import or export. Whether it calls
16 * setSourceDocument or setTargetDocument determines which Impl function the filter
17 * member calls */
18 class KeynoteImportFilter : public writerperfect::ImportFilter<OdpGenerator>
20 public:
21 explicit KeynoteImportFilter(const css::uno::Reference<css::uno::XComponentContext>& rxContext)
22 : writerperfect::ImportFilter<OdpGenerator>(rxContext)
26 //XExtendedFilterDetection
27 virtual OUString SAL_CALL
28 detect(css::uno::Sequence<css::beans::PropertyValue>& Descriptor) override;
30 // XServiceInfo
31 virtual OUString SAL_CALL getImplementationName() override;
32 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
33 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
35 private:
36 virtual bool doDetectFormat(librevenge::RVNGInputStream& rInput, OUString& rTypeName) override;
37 virtual bool doImportDocument(weld::Window* pParent, librevenge::RVNGInputStream& rInput,
38 OdpGenerator& rGenerator, utl::MediaDescriptor&) override;
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */