LibreOffice Module writerperfect (master) 1
EPUBExportUIComponent.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/beans/XPropertyAccess.hpp>
13#include <com/sun/star/lang/XServiceInfo.hpp>
14#include <com/sun/star/lang/XInitialization.hpp>
15#include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp>
16#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
17#include <com/sun/star/document/XExporter.hpp>
18#include <com/sun/star/awt/XWindow.hpp>
19
22
23namespace weld
24{
25class DialogController;
26}
27
28namespace com::sun::star::uno
29{
30class XComponentContext;
31}
32
33namespace writerperfect
34{
37 : public cppu::WeakImplHelper<css::beans::XPropertyAccess, css::lang::XInitialization,
38 css::lang::XServiceInfo, css::ui::dialogs::XExecutableDialog,
39 css::ui::dialogs::XAsynchronousExecutableDialog,
40 css::document::XExporter>
41{
42public:
43 EPUBExportUIComponent(css::uno::Reference<css::uno::XComponentContext> xContext);
44
45 // XPropertyAccess
46 css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getPropertyValues() override;
47 void SAL_CALL
48 setPropertyValues(const css::uno::Sequence<css::beans::PropertyValue>& rProperties) override;
49
50 // XServiceInfo
51 OUString SAL_CALL getImplementationName() override;
52 sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
53 css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
54
55 // XExecutableDialog
56 void SAL_CALL setTitle(const OUString& rTitle) override;
57 sal_Int16 SAL_CALL execute() override;
58
59 // XAsynchronousExecutableDialog
60 void SAL_CALL setDialogTitle(const OUString& aTitle) override;
61
62 void SAL_CALL startExecuteModal(
63 const css::uno::Reference<css::ui::dialogs::XDialogClosedListener>& xListener) override;
64
65 // XExporter
66 void SAL_CALL
67 setSourceDocument(const css::uno::Reference<css::lang::XComponent>& xDocument) override;
68
69 // XInitialization
70 void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
71
72private:
78 css::uno::Reference<css::uno::XComponentContext> mxContext;
79 css::uno::Reference<css::lang::XComponent> mxSourceDocument;
80 css::uno::Reference<css::awt::XWindow> mxDialogParent;
81 std::shared_ptr<weld::DialogController> mxAsyncDialog;
82};
83
84} // namespace writerperfect
85
86/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
EPUB export UI component implementation.
void SAL_CALL startExecuteModal(const css::uno::Reference< css::ui::dialogs::XDialogClosedListener > &xListener) override
void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
sal_Int16 SAL_CALL execute() override
comphelper::SequenceAsHashMap maMediaDescriptor
The full set of property values.
css::uno::Reference< css::lang::XComponent > mxSourceDocument
css::uno::Reference< css::uno::XComponentContext > mxContext
UNO context.
css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues() override
sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
std::shared_ptr< weld::DialogController > mxAsyncDialog
css::uno::Reference< css::awt::XWindow > mxDialogParent
void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDocument) override
EPUBExportUIComponent(css::uno::Reference< css::uno::XComponentContext > xContext)
comphelper::SequenceAsHashMap maFilterData
The filter data key.
void SAL_CALL setTitle(const OUString &rTitle) override
void SAL_CALL setDialogTitle(const OUString &aTitle) override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
OUString SAL_CALL getImplementationName() override
void SAL_CALL setPropertyValues(const css::uno::Sequence< css::beans::PropertyValue > &rProperties) override
unsigned char sal_Bool