android: Update app-specific/MIME type icons
[LibreOffice.git] / filter / source / pdf / pdfdialog.hxx
blob2410192a26170e0650a835b9c3720d57b3fd4017
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <comphelper/proparrhlp.hxx>
23 #include <cppuhelper/implbase.hxx>
25 #include <com/sun/star/beans/XPropertyAccess.hpp>
26 #include <com/sun/star/document/XExporter.hpp>
27 #include <com/sun/star/lang/XComponent.hpp>
29 #include <sfx2/tabdlg.hxx>
30 #include <svtools/genericasyncunodialog.hxx>
32 using namespace ::com::sun::star::beans;
33 using namespace ::com::sun::star::document;
34 using namespace ::com::sun::star::lang;
35 using namespace ::com::sun::star::uno;
37 typedef ::cppu::ImplInheritanceHelper < ::svt::OGenericUnoAsyncDialog<SfxTabDialogController>,
38 XPropertyAccess, XExporter > PDFDialog_Base;
40 class PDFDialog final:
41 public PDFDialog_Base,
42 public ::comphelper::OPropertyArrayUsageHelper< PDFDialog >
44 private:
45 Sequence< PropertyValue > maMediaDescriptor;
46 Sequence< PropertyValue > maFilterData;
47 Reference< XComponent > mxSrcDoc;
49 // OGenericUnoDialog
50 virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
51 virtual OUString SAL_CALL getImplementationName() override;
52 virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
53 virtual std::unique_ptr<weld::DialogController> createDialog(const css::uno::Reference<css::awt::XWindow>& rParent) override;
54 virtual void executedDialog( sal_Int16 nExecutionResult ) override;
55 virtual Reference< XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
56 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
57 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
59 // OGenericUnoAsyncDialog
60 virtual std::shared_ptr<SfxTabDialogController> createAsyncDialog(const css::uno::Reference<css::awt::XWindow>& rParent) override;
61 virtual void runAsync(const css::uno::Reference< css::ui::dialogs::XDialogClosedListener >& xListener) override;
62 virtual void executedAsyncDialog(std::shared_ptr<SfxTabDialogController> xAsyncDialog, sal_Int32 nExecutionResult) override;
64 // XPropertyAccess
65 using OPropertySetHelper::getPropertyValues;
66 virtual Sequence< PropertyValue > SAL_CALL getPropertyValues( ) override;
67 using OPropertySetHelper::setPropertyValues;
68 virtual void SAL_CALL setPropertyValues( const Sequence< PropertyValue >& aProps ) override;
70 // XExporter
71 virtual void SAL_CALL setSourceDocument( const Reference< XComponent >& xDoc ) override;
73 public:
75 explicit PDFDialog( const Reference< XComponentContext >& rxContext );
76 virtual ~PDFDialog() override;
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */