1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
19 class KeynoteImportFilter
: public writerperfect::ImportFilter
<OdpGenerator
>
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
;
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
;
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
;
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */