xref: /trunk/main/filter/source/flash/swfdialog.hxx (revision 22e87013)
1*22e87013SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*22e87013SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*22e87013SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*22e87013SAndrew Rist  * distributed with this work for additional information
6*22e87013SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*22e87013SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*22e87013SAndrew Rist  * "License"); you may not use this file except in compliance
9*22e87013SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*22e87013SAndrew Rist  *
11*22e87013SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*22e87013SAndrew Rist  *
13*22e87013SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*22e87013SAndrew Rist  * software distributed under the License is distributed on an
15*22e87013SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*22e87013SAndrew Rist  * KIND, either express or implied.  See the License for the
17*22e87013SAndrew Rist  * specific language governing permissions and limitations
18*22e87013SAndrew Rist  * under the License.
19*22e87013SAndrew Rist  *
20*22e87013SAndrew Rist  *************************************************************/
21*22e87013SAndrew Rist 
22*22e87013SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SWFDIALOG_HXX
25cdf0e10cSrcweir #define SWFDIALOG_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyAccess.hpp>
28cdf0e10cSrcweir #include <com/sun/star/document/XExporter.hpp>
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #include <svtools/genericunodialog.hxx>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir // -------------
33cdf0e10cSrcweir // - SWFDialog -
34cdf0e10cSrcweir // -------------
35cdf0e10cSrcweir 
36cdf0e10cSrcweir class Window;
37cdf0e10cSrcweir class ResMgr;
38cdf0e10cSrcweir 
39cdf0e10cSrcweir class SWFDialog : public ::svt::OGenericUnoDialog,
40cdf0e10cSrcweir     			  public ::comphelper::OPropertyArrayUsageHelper< SWFDialog >,
41cdf0e10cSrcweir 				  public ::com::sun::star::beans::XPropertyAccess,
42cdf0e10cSrcweir 				  public ::com::sun::star::document::XExporter
43cdf0e10cSrcweir {
44cdf0e10cSrcweir private:
45cdf0e10cSrcweir 
46cdf0e10cSrcweir     ResMgr*                     mpResMgr;
47cdf0e10cSrcweir     com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >   maMediaDescriptor;
48cdf0e10cSrcweir     com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >   maFilterData;
49cdf0e10cSrcweir     com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >     mxSrcDoc;
50cdf0e10cSrcweir 
51cdf0e10cSrcweir protected:
52cdf0e10cSrcweir 
53cdf0e10cSrcweir     // XInterface
54cdf0e10cSrcweir 	virtual com::sun::star::uno::Any SAL_CALL queryInterface( const com::sun::star::uno::Type& aType ) throw (com::sun::star::uno::RuntimeException);
55cdf0e10cSrcweir 	virtual void SAL_CALL acquire() throw ();
56cdf0e10cSrcweir 	virtual void SAL_CALL release() throw ();
57cdf0e10cSrcweir 
58cdf0e10cSrcweir 	// OGenericUnoDialog
59cdf0e10cSrcweir     virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(com::sun::star::uno::RuntimeException);
60cdf0e10cSrcweir     virtual rtl::OUString SAL_CALL getImplementationName() throw (com::sun::star::uno::RuntimeException);
61cdf0e10cSrcweir     virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException);
62cdf0e10cSrcweir     virtual Dialog*	createDialog( Window* pParent );
63cdf0e10cSrcweir     virtual void executedDialog( sal_Int16 nExecutionResult );
64cdf0e10cSrcweir 	virtual com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo>  SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException);
65cdf0e10cSrcweir 	virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
66cdf0e10cSrcweir 	virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
67cdf0e10cSrcweir 
68cdf0e10cSrcweir     // XPropertyAccess
69cdf0e10cSrcweir 	using ::cppu::OPropertySetHelper::getPropertyValues;
70cdf0e10cSrcweir 	using ::cppu::OPropertySetHelper::setPropertyValues;
71cdf0e10cSrcweir 	virtual com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues(  ) throw (com::sun::star::uno::RuntimeException);
72cdf0e10cSrcweir     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);
73cdf0e10cSrcweir 
74cdf0e10cSrcweir    	// XExporter
75cdf0e10cSrcweir     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);
76cdf0e10cSrcweir 
77cdf0e10cSrcweir public:
78cdf0e10cSrcweir 
79cdf0e10cSrcweir 				SWFDialog( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxMSF );
80cdf0e10cSrcweir 	virtual		~SWFDialog();
81cdf0e10cSrcweir };
82cdf0e10cSrcweir 
83cdf0e10cSrcweir // -----------------------------------------------------------------------------
84cdf0e10cSrcweir 
85cdf0e10cSrcweir #endif // SWFDialog_HXX
86