1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 /* "This product is not manufactured, approved, or supported by
11 * Corel Corporation or Corel Corporation Limited."
15 #include <ImportFilter.hxx>
17 #include <DocumentHandlerForOdg.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
22 class WPGImportFilter
: public writerperfect::ImportFilter
<OdgGenerator
>
25 explicit WPGImportFilter(const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
)
26 : writerperfect::ImportFilter
<OdgGenerator
>(rxContext
)
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
;
36 virtual bool doDetectFormat(librevenge::RVNGInputStream
& rInput
, OUString
& rTypeName
) override
;
37 virtual bool doImportDocument(weld::Window
* pParent
, librevenge::RVNGInputStream
& rInput
,
38 OdgGenerator
& rGenerator
, utl::MediaDescriptor
&) override
;
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */