merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / dlg / finteraction.hxx
blob92ab33abb96cebbcc2ec18178b7da07cf7c55fdf
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: finteraction.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef DBAUI_FILEPICKER_INTERACTION_HXX
32 #define DBAUI_FILEPICKER_INTERACTION_HXX
34 #ifndef _CPPUHELPER_IMPLBASE1_HXX_
35 #include <cppuhelper/implbase1.hxx>
36 #endif
37 #ifndef _COM_SUN_STAR_TASK_XINTERACTIONHANDLER_HPP_
38 #include <com/sun/star/task/XInteractionHandler.hpp>
39 #endif
41 //........................................................................
42 namespace dbaui
44 //........................................................................
46 //====================================================================
47 //= OFilePickerInteractionHandler
48 //====================================================================
49 typedef ::cppu::WeakImplHelper1 < ::com::sun::star::task::XInteractionHandler
50 > OFilePickerInteractionHandler_Base;
52 /** a InteractionHandler implementation which extends another handler with some customizability
54 class OFilePickerInteractionHandler : public OFilePickerInteractionHandler_Base
56 protected:
57 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >
58 m_xMaster; // our master handler
59 sal_Bool m_bDoesNotExist;
61 public:
62 OFilePickerInteractionHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxMaster );
64 inline sal_Bool isDoesNotExist( ) const { return m_bDoesNotExist; }
66 protected:
67 // XInteractionHandler
68 virtual void SAL_CALL handle( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& _rxRequest ) throw (::com::sun::star::uno::RuntimeException);
70 virtual ~OFilePickerInteractionHandler();
73 //........................................................................
74 } // namespace dbaui
75 //........................................................................
77 #endif // DBAUI_FILEPICKER_INTERACTION_HXX