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