LibreOffice Module sw (master) 1
dumpfilter.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#ifndef INCLUDED_SW_SOURCE_CORE_INC_DUMPFILTER_HXX
11#define INCLUDED_SW_SOURCE_CORE_INC_DUMPFILTER_HXX
12
13#include <com/sun/star/document/XFilter.hpp>
14#include <com/sun/star/document/XExporter.hpp>
15#include <com/sun/star/lang/XInitialization.hpp>
16#include <com/sun/star/lang/XServiceInfo.hpp>
18
19namespace sw {
20
25 class LayoutDumpFilter final : public cppu::WeakImplHelper
26 <
27 css::document::XFilter,
28 css::document::XExporter,
29 css::lang::XInitialization,
30 css::lang::XServiceInfo
31 >
32 {
33 css::uno::Reference< css::lang::XComponent > m_xSrcDoc;
34
35 public:
37 virtual ~LayoutDumpFilter() override;
38
39 // XFilter
40 virtual sal_Bool SAL_CALL filter( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor ) override;
41 virtual void SAL_CALL cancel( ) override;
42
43 // XExporter
44 virtual void SAL_CALL setSourceDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) override;
45
46 // XInitialization
47 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
48
49 // XServiceInfo
50 virtual OUString SAL_CALL getImplementationName( ) override;
51 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
52 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
53
54 };
55}
56
57#endif
58
59/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Implementation of UNO export service to dump the layout of the document as XML.
Definition: dumpfilter.hxx:32
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
Definition: dumpfilter.cxx:135
css::uno::Reference< css::lang::XComponent > m_xSrcDoc
Definition: dumpfilter.hxx:33
virtual sal_Bool SAL_CALL filter(const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override
Definition: dumpfilter.cxx:79
virtual OUString SAL_CALL getImplementationName() override
Definition: dumpfilter.cxx:140
virtual void SAL_CALL cancel() override
Definition: dumpfilter.cxx:124
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: dumpfilter.cxx:145
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: dumpfilter.cxx:150
virtual ~LayoutDumpFilter() override
Definition: dumpfilter.cxx:74
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
Definition: dumpfilter.cxx:129
Dialog to specify the properties of date form field.
unsigned char sal_Bool