LibreOffice Module writerperfect (master) 1
CMXImportFilter.hxx
Go to the documentation of this file.
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 */
7
8/* "This product is not manufactured, approved, or supported by
9 * Corel Corporation or Corel Corporation Limited."
10 */
11#pragma once
12
13#include <ImportFilter.hxx>
14
16
17/* This component will be instantiated for both import or export. Whether it calls
18 * setSourceDocument or setTargetDocument determines which Impl function the filter
19 * member calls */
20class CMXImportFilter : public writerperfect::ImportFilter<OdgGenerator>
21{
22public:
23 explicit CMXImportFilter(const css::uno::Reference<css::uno::XComponentContext>& rxContext)
24 : writerperfect::ImportFilter<OdgGenerator>(rxContext)
25 {
26 }
27
28 // XServiceInfo
29 virtual OUString SAL_CALL getImplementationName() override;
30 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
31 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
32
33private:
34 virtual bool doDetectFormat(librevenge::RVNGInputStream& rInput, OUString& rTypeName) override;
35 virtual bool doImportDocument(weld::Window* pParent, librevenge::RVNGInputStream& rInput,
36 OdgGenerator& rGenerator, utl::MediaDescriptor&) override;
37};
38
39/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual bool doImportDocument(weld::Window *pParent, librevenge::RVNGInputStream &rInput, OdgGenerator &rGenerator, utl::MediaDescriptor &) override
virtual OUString SAL_CALL getImplementationName() override
CMXImportFilter(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) override
A base class for import filters.
ImportFilter(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
unsigned char sal_Bool