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 _SV_FILTER_OPTIONS_DIALOG_HXX_ 25 #define _SV_FILTER_OPTIONS_DIALOG_HXX_ 26 27 #include <tools/fldunit.hxx> 28 #include <cppuhelper/implbase5.hxx> 29 #include <com/sun/star/lang/XInitialization.hpp> 30 #include <com/sun/star/lang/XServiceInfo.hpp> 31 #include <com/sun/star/beans/XPropertyAccess.hpp> 32 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> 33 #include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp> 34 #include <com/sun/star/document/XExporter.hpp> 35 36 class SvFilterOptionsDialog : public cppu::WeakImplHelper5 37 < 38 com::sun::star::document::XExporter, 39 com::sun::star::ui::dialogs::XExecutableDialog, 40 com::sun::star::beans::XPropertyAccess, 41 com::sun::star::lang::XInitialization, 42 com::sun::star::lang::XServiceInfo 43 > 44 { 45 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > 46 mxMgr; 47 com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > 48 maMediaDescriptor; 49 com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > 50 maFilterDataSequence; 51 com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > 52 mxSourceDocument; 53 54 rtl::OUString maDialogTitle; 55 FieldUnit meFieldUnit; 56 sal_Bool mbExportSelection; 57 58 public: 59 60 SvFilterOptionsDialog( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > _rxORB ); 61 ~SvFilterOptionsDialog(); 62 63 // XInterface 64 virtual void SAL_CALL acquire() throw(); 65 virtual void SAL_CALL release() throw(); 66 67 // XInitialization 68 virtual void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any > & aArguments ) 69 throw ( com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException ); 70 71 // XServiceInfo 72 virtual rtl::OUString SAL_CALL getImplementationName() 73 throw ( com::sun::star::uno::RuntimeException ); 74 virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName ) 75 throw ( com::sun::star::uno::RuntimeException ); 76 virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() 77 throw ( com::sun::star::uno::RuntimeException ); 78 79 // XPropertyAccess 80 virtual com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues() 81 throw ( com::sun::star::uno::RuntimeException ); 82 virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > & aProps ) 83 throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, 84 ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, 85 ::com::sun::star::uno::RuntimeException ); 86 87 // XExecuteDialog 88 virtual sal_Int16 SAL_CALL execute() 89 throw ( com::sun::star::uno::RuntimeException ); 90 virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle ) 91 throw ( ::com::sun::star::uno::RuntimeException ); 92 93 // XExporter 94 virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) 95 throw ( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); 96 97 }; 98 99 100 #endif // _SV_FILTER_OPTIONS_DIALOG_HXX_ 101 102