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 DBAUI_FILEPICKER_INTERACTION_HXX 25 #define DBAUI_FILEPICKER_INTERACTION_HXX 26 27 #ifndef _CPPUHELPER_IMPLBASE1_HXX_ 28 #include <cppuhelper/implbase1.hxx> 29 #endif 30 #ifndef _COM_SUN_STAR_TASK_XINTERACTIONHANDLER_HPP_ 31 #include <com/sun/star/task/XInteractionHandler.hpp> 32 #endif 33 34 //........................................................................ 35 namespace dbaui 36 { 37 //........................................................................ 38 39 //==================================================================== 40 //= OFilePickerInteractionHandler 41 //==================================================================== 42 typedef ::cppu::WeakImplHelper1 < ::com::sun::star::task::XInteractionHandler 43 > OFilePickerInteractionHandler_Base; 44 45 /** a InteractionHandler implementation which extends another handler with some customizability 46 */ 47 class OFilePickerInteractionHandler : public OFilePickerInteractionHandler_Base 48 { 49 protected: 50 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler > 51 m_xMaster; // our master handler 52 sal_Bool m_bDoesNotExist; 53 54 public: 55 OFilePickerInteractionHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxMaster ); 56 isDoesNotExist() const57 inline sal_Bool isDoesNotExist( ) const { return m_bDoesNotExist; } 58 59 protected: 60 // XInteractionHandler 61 virtual void SAL_CALL handle( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& _rxRequest ) throw (::com::sun::star::uno::RuntimeException); 62 63 virtual ~OFilePickerInteractionHandler(); 64 }; 65 66 //........................................................................ 67 } // namespace dbaui 68 //........................................................................ 69 70 #endif // DBAUI_FILEPICKER_INTERACTION_HXX 71 72