nss: upgrade to release 3.73
[LibreOffice.git] / writerperfect / source / impress / KeynoteImportFilter.hxx
blob1ae6002a58e4d8dc3744a59739add8a5eb7c095b
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/uno/XComponentContext.hpp>
13 #include <ImportFilter.hxx>
14 #include <DocumentHandlerForOdp.hxx>
16 /* This component will be instantiated for both import or export. Whether it calls
17 * setSourceDocument or setTargetDocument determines which Impl function the filter
18 * member calls */
19 class KeynoteImportFilter : public writerperfect::ImportFilter<OdpGenerator>
21 public:
22 explicit KeynoteImportFilter(const css::uno::Reference<css::uno::XComponentContext>& rxContext)
23 : writerperfect::ImportFilter<OdpGenerator>(rxContext)
27 //XExtendedFilterDetection
28 virtual OUString SAL_CALL
29 detect(css::uno::Sequence<css::beans::PropertyValue>& Descriptor) override;
31 // XServiceInfo
32 virtual OUString SAL_CALL getImplementationName() override;
33 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
34 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
36 private:
37 virtual bool doDetectFormat(librevenge::RVNGInputStream& rInput, OUString& rTypeName) override;
38 virtual bool doImportDocument(weld::Window* pParent, librevenge::RVNGInputStream& rInput,
39 OdpGenerator& rGenerator, utl::MediaDescriptor&) override;
42 #endif
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */