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