LibreOffice Module sw (master) 1
IndexingExportFilter.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/document/XFilter.hpp>
13#include <com/sun/star/document/XExporter.hpp>
14#include <com/sun/star/lang/XInitialization.hpp>
15#include <com/sun/star/lang/XServiceInfo.hpp>
18
19namespace sw
20{
22 : public cppu::WeakImplHelper<css::document::XFilter, css::document::XExporter,
23 css::lang::XInitialization, css::lang::XServiceInfo>
24{
25private:
26 css::uno::Reference<css::lang::XComponent> m_xSourceDocument;
27
28public:
30
31 // XFilter
32 virtual sal_Bool SAL_CALL
33 filter(const css::uno::Sequence<css::beans::PropertyValue>& aDescriptor) override;
34
35 virtual void SAL_CALL cancel() override {}
36
37 // XExporter
38 virtual void SAL_CALL
39 setSourceDocument(const css::uno::Reference<css::lang::XComponent>& xDocument) override
40 {
41 m_xSourceDocument = xDocument;
42 }
43
44 // XInitialization
45 virtual void SAL_CALL
46 initialize(const css::uno::Sequence<css::uno::Any>& /*aArguments*/) override
47 {
48 }
49
50 // XServiceInfo
51 virtual OUString SAL_CALL getImplementationName() override
52 {
53 return "com.sun.star.comp.Writer.IndexingExportFilter";
54 }
55
56 virtual sal_Bool SAL_CALL supportsService(OUString const& rServiceName) override
57 {
58 return cppu::supportsService(this, rServiceName);
59 }
60
61 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
62 {
63 return { "com.sun.star.document.ExportFilter" };
64 }
65};
66}
67
68/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &) override
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDocument) override
virtual void SAL_CALL cancel() override
virtual sal_Bool SAL_CALL filter(const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Reference< css::lang::XComponent > m_xSourceDocument
virtual sal_Bool SAL_CALL supportsService(OUString const &rServiceName) override
virtual OUString SAL_CALL getImplementationName() override
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
Dialog to specify the properties of date form field.
unsigned char sal_Bool