nss: upgrade to release 3.73
[LibreOffice.git] / writerperfect / source / writer / EBookImportFilter.hxx
blob9ebdc9234a88627f8b53bfc33c7018db5b0988c0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef EBOOKIMPORTFILTER_HXX
11 #define EBOOKIMPORTFILTER_HXX
13 #include <com/sun/star/uno/XComponentContext.hpp>
15 #include <ImportFilter.hxx>
17 #include <DocumentHandlerForOdt.hxx>
19 /* This component will be instantiated for both import or export. Whether it calls
20 * setSourceDocument or setTargetDocument determines which Impl function the filter
21 * member calls */
22 class EBookImportFilter : public writerperfect::ImportFilter<OdtGenerator>
24 public:
25 explicit EBookImportFilter(const css::uno::Reference<css::uno::XComponentContext>& rxContext)
26 : writerperfect::ImportFilter<OdtGenerator>(rxContext)
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 OdtGenerator& rGenerator,
39 utl::MediaDescriptor& rDescriptor) override;
42 #endif
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */