Update ooo320-m1
[ooovba.git] / filter / source / flash / swfdialog.hxx
blob3e81f4025cf379da504512f5bbd4ad82df0005e9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swfdialog.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SWFDIALOG_HXX
32 #define SWFDIALOG_HXX
34 #include <com/sun/star/beans/XPropertyAccess.hpp>
35 #include <com/sun/star/document/XExporter.hpp>
37 #include <svtools/genericunodialog.hxx>
39 // -------------
40 // - SWFDialog -
41 // -------------
43 class Window;
44 class ResMgr;
46 class SWFDialog : public ::svt::OGenericUnoDialog,
47 public ::comphelper::OPropertyArrayUsageHelper< SWFDialog >,
48 public ::com::sun::star::beans::XPropertyAccess,
49 public ::com::sun::star::document::XExporter
51 private:
53 ResMgr* mpResMgr;
54 com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > maMediaDescriptor;
55 com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > maFilterData;
56 com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > mxSrcDoc;
58 protected:
60 // XInterface
61 virtual com::sun::star::uno::Any SAL_CALL queryInterface( const com::sun::star::uno::Type& aType ) throw (com::sun::star::uno::RuntimeException);
62 virtual void SAL_CALL acquire() throw ();
63 virtual void SAL_CALL release() throw ();
65 // OGenericUnoDialog
66 virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(com::sun::star::uno::RuntimeException);
67 virtual rtl::OUString SAL_CALL getImplementationName() throw (com::sun::star::uno::RuntimeException);
68 virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException);
69 virtual Dialog* createDialog( Window* pParent );
70 virtual void executedDialog( sal_Int16 nExecutionResult );
71 virtual com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException);
72 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
73 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
75 // XPropertyAccess
76 using ::cppu::OPropertySetHelper::getPropertyValues;
77 using ::cppu::OPropertySetHelper::setPropertyValues;
78 virtual com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues( ) throw (com::sun::star::uno::RuntimeException);
79 virtual void SAL_CALL setPropertyValues( const com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps ) throw (com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException);
81 // XExporter
82 virtual void SAL_CALL setSourceDocument( const com::sun::star::uno::Reference< com::sun::star::lang::XComponent >& xDoc ) throw(com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException);
84 public:
86 SWFDialog( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxMSF );
87 virtual ~SWFDialog();
90 // -----------------------------------------------------------------------------
92 #endif // SWFDialog_HXX