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 _COMPHELPER_INTERACTIONHANDLERWRAPPER_HXX_ 25 #define _COMPHELPER_INTERACTIONHANDLERWRAPPER_HXX_ 26 27 #ifndef _COM_SUN_STAR_TASK_XINTERACTIONHANDLER_ 28 #include <com/sun/star/task/XInteractionHandler.hpp> 29 #endif 30 #ifndef _COM_SUN_STAR_TASK_XINTERACITONREQUEST_ 31 #include <com/sun/star/task/XInteractionRequest.hpp> 32 #endif 33 #ifndef _COM_SUN_STAR_LANG_XINITIALIZATION_ 34 #include <com/sun/star/lang/XInitialization.hpp> 35 #endif 36 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_ 37 #include <com/sun/star/lang/XServiceInfo.hpp> 38 #endif 39 #ifndef _COM_SUN_STAR_FRAME_DOUBLEINITIALIZATIONEXCEPTION_ 40 #include <com/sun/star/frame/DoubleInitializationException.hpp> 41 #endif 42 43 #ifndef _CPPUHELPER_IMPLBASE3_HXX_ 44 #include <cppuhelper/implbase3.hxx> 45 #endif 46 #ifndef INCLUDED_COMPHELPERDLLAPI_H 47 #include "comphelper/comphelperdllapi.h" 48 #endif 49 50 namespace comphelper { 51 52 class COMPHELPER_DLLPUBLIC OIHWrapNoFilterDialog : public ::cppu::WeakImplHelper3 53 < ::com::sun::star::task::XInteractionHandler 54 , ::com::sun::star::lang::XInitialization 55 , ::com::sun::star::lang::XServiceInfo > 56 { 57 com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > m_xInter; 58 59 public: 60 OIHWrapNoFilterDialog( com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > xInteraction ); 61 ~OIHWrapNoFilterDialog(); 62 63 static ::rtl::OUString SAL_CALL impl_staticGetImplementationName(); 64 static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL impl_staticGetSupportedServiceNames(); 65 66 67 //____________________________________________________________________________________________________ 68 // XInteractionHandler 69 //____________________________________________________________________________________________________ 70 71 virtual void SAL_CALL handle( const com::sun::star::uno::Reference< com::sun::star::task::XInteractionRequest >& xRequest) 72 throw( com::sun::star::uno::RuntimeException ); 73 74 //____________________________________________________________________________________________________ 75 // XInitialization 76 //____________________________________________________________________________________________________ 77 78 virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) 79 throw ( ::com::sun::star::uno::Exception, 80 ::com::sun::star::uno::RuntimeException, 81 ::com::sun::star::frame::DoubleInitializationException ) ; 82 83 //____________________________________________________________________________________________________ 84 // XServiceInfo 85 //____________________________________________________________________________________________________ 86 87 virtual ::rtl::OUString SAL_CALL getImplementationName() 88 throw ( ::com::sun::star::uno::RuntimeException ); 89 90 virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 91 throw ( ::com::sun::star::uno::RuntimeException ); 92 93 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 94 throw ( ::com::sun::star::uno::RuntimeException ); 95 96 }; 97 } 98 #endif 99