Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / filter / source / flash / swfdialog.hxx
blob0ba61a6d7681666ea99c0a0d9f59fffdad405b5c
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 #ifndef INCLUDED_FILTER_SOURCE_FLASH_SWFDIALOG_HXX
21 #define INCLUDED_FILTER_SOURCE_FLASH_SWFDIALOG_HXX
23 #include <com/sun/star/beans/XPropertyAccess.hpp>
24 #include <com/sun/star/document/XExporter.hpp>
26 #include <comphelper/proparrhlp.hxx>
27 #include <svtools/genericunodialog.hxx>
30 namespace vcl { class Window; }
33 class SWFDialog final:
34 public ::svt::OGenericUnoDialog,
35 public ::comphelper::OPropertyArrayUsageHelper< SWFDialog >,
36 public css::beans::XPropertyAccess,
37 public css::document::XExporter
39 private:
41 css::uno::Sequence< css::beans::PropertyValue > maMediaDescriptor;
42 css::uno::Sequence< css::beans::PropertyValue > maFilterData;
43 css::uno::Reference< css::lang::XComponent > mxSrcDoc;
45 // XInterface
46 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
47 virtual void SAL_CALL acquire() throw () override;
48 virtual void SAL_CALL release() throw () override;
50 // OGenericUnoDialog
51 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
52 virtual OUString SAL_CALL getImplementationName() override;
53 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
54 virtual std::unique_ptr<weld::DialogController> createDialog(const css::uno::Reference<css::awt::XWindow>& rParent) override;
55 virtual void executedDialog( sal_Int16 nExecutionResult ) override;
56 virtual css::uno::Reference< css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
57 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
58 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
60 // XPropertyAccess
61 using ::cppu::OPropertySetHelper::getPropertyValues;
62 using ::cppu::OPropertySetHelper::setPropertyValues;
63 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues( ) override;
64 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& aProps ) override;
66 // XExporter
67 virtual void SAL_CALL setSourceDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) override;
69 public:
71 explicit SWFDialog( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
72 virtual ~SWFDialog() override;
76 #endif // INCLUDED_FILTER_SOURCE_FLASH_SWFDIALOG_HXX
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */