1*22e87013SAndrew Rist /************************************************************** 2*22e87013SAndrew Rist * 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 22cdf0e10cSrcweir #ifndef SVGDIALOG_HXX 23cdf0e10cSrcweir #define SVGDIALOG_HXX 24cdf0e10cSrcweir 25cdf0e10cSrcweir #ifndef _COM_SUN_STAR_BEANS_XPROPERTYACCESS_HPP_ 26cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyAccess.hpp> 27cdf0e10cSrcweir #endif 28cdf0e10cSrcweir #ifndef _COM_SUN_STAR_DOCUMENT_XEXPORTER_HPP_ 29cdf0e10cSrcweir #include <com/sun/star/document/XExporter.hpp> 30cdf0e10cSrcweir #endif 31cdf0e10cSrcweir 32cdf0e10cSrcweir #include <svtools/genericunodialog.hxx> 33cdf0e10cSrcweir #include <memory> 34cdf0e10cSrcweir 35cdf0e10cSrcweir // ------------- 36cdf0e10cSrcweir // - SVGDialog - 37cdf0e10cSrcweir // ------------- 38cdf0e10cSrcweir 39cdf0e10cSrcweir class ResMgr; 40cdf0e10cSrcweir 41cdf0e10cSrcweir class SVGDialog : public ::svt::OGenericUnoDialog, 42cdf0e10cSrcweir public ::comphelper::OPropertyArrayUsageHelper< SVGDialog >, 43cdf0e10cSrcweir public ::com::sun::star::beans::XPropertyAccess, 44cdf0e10cSrcweir public ::com::sun::star::document::XExporter 45cdf0e10cSrcweir { 46cdf0e10cSrcweir private: 47cdf0e10cSrcweir 48cdf0e10cSrcweir ::std::auto_ptr< ResMgr > mapResMgr; 49cdf0e10cSrcweir com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > maMediaDescriptor; 50cdf0e10cSrcweir com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > maFilterData; 51cdf0e10cSrcweir com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > mxSrcDoc; 52cdf0e10cSrcweir 53cdf0e10cSrcweir protected: 54cdf0e10cSrcweir 55cdf0e10cSrcweir // XInterface 56cdf0e10cSrcweir virtual com::sun::star::uno::Any SAL_CALL queryInterface( const com::sun::star::uno::Type& aType ) throw (com::sun::star::uno::RuntimeException); 57cdf0e10cSrcweir virtual void SAL_CALL acquire() throw (); 58cdf0e10cSrcweir virtual void SAL_CALL release() throw (); 59cdf0e10cSrcweir 60cdf0e10cSrcweir // OGenericUnoDialog 61cdf0e10cSrcweir virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(com::sun::star::uno::RuntimeException); 62cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName() throw (com::sun::star::uno::RuntimeException); 63cdf0e10cSrcweir virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException); 64cdf0e10cSrcweir virtual Dialog* createDialog( Window* pParent ); 65cdf0e10cSrcweir virtual void executedDialog( sal_Int16 nExecutionResult ); 66cdf0e10cSrcweir virtual com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException); 67cdf0e10cSrcweir virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); 68cdf0e10cSrcweir virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const; 69cdf0e10cSrcweir 70cdf0e10cSrcweir // XPropertyAccess 71cdf0e10cSrcweir using cppu::OPropertySetHelper::getPropertyValues; 72cdf0e10cSrcweir virtual com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues( ) throw (com::sun::star::uno::RuntimeException); 73cdf0e10cSrcweir using cppu::OPropertySetHelper::setPropertyValues; 74cdf0e10cSrcweir 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); 75cdf0e10cSrcweir 76cdf0e10cSrcweir // XExporter 77cdf0e10cSrcweir 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); 78cdf0e10cSrcweir 79cdf0e10cSrcweir public: 80cdf0e10cSrcweir 81cdf0e10cSrcweir SVGDialog( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxMSF ); 82cdf0e10cSrcweir virtual ~SVGDialog(); 83cdf0e10cSrcweir }; 84cdf0e10cSrcweir 85cdf0e10cSrcweir // ----------------------------------------------------------------------------- 86cdf0e10cSrcweir 87cdf0e10cSrcweir ::rtl::OUString SVGDialog_getImplementationName () 88cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 89cdf0e10cSrcweir 90cdf0e10cSrcweir // ----------------------------------------------------------------------------- 91cdf0e10cSrcweir 92cdf0e10cSrcweir sal_Bool SAL_CALL SVGDialog_supportsService( const ::rtl::OUString& ServiceName ) 93cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 94cdf0e10cSrcweir 95cdf0e10cSrcweir // ----------------------------------------------------------------------------- 96cdf0e10cSrcweir 97cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL SVGDialog_getSupportedServiceNames( ) 98cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 99cdf0e10cSrcweir 100cdf0e10cSrcweir // ----------------------------------------------------------------------------- 101cdf0e10cSrcweir 102cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 103cdf0e10cSrcweir SAL_CALL SVGDialog_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr) 104cdf0e10cSrcweir throw ( ::com::sun::star::uno::Exception ); 105cdf0e10cSrcweir 106cdf0e10cSrcweir #endif // SVGDialog_HXX 107