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