merge the formfield patch from ooo-build
[ooovba.git] / fpicker / source / win32 / filepicker / filepickereventnotification.hxx
blobac74ceace0896d289371f6b5544a716d827661e9
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: filepickereventnotification.hxx,v $
10 * $Revision: 1.4 $
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 _FILEPICKEREVENTNOTIFICATION_HXX_
32 #define _FILEPICKEREVENTNOTIFICATION_HXX_
34 #include "eventnotification.hxx"
35 #include <com/sun/star/ui/dialogs/XFilePickerListener.hpp>
36 #include <com/sun/star/ui/dialogs/FilePickerEvent.hpp>
38 //-----------------------------------
39 // A FilePicker event without
40 // parameter
41 //-----------------------------------
43 class CFilePickerEventNotification : public CEventNotification
45 public:
46 typedef void (SAL_CALL ::com::sun::star::ui::dialogs::XFilePickerListener::*EventListenerMethod_t)();
48 public:
49 CFilePickerEventNotification(EventListenerMethod_t EventListenerMethod);
51 virtual void SAL_CALL notifyEventListener( com::sun::star::uno::Reference< com::sun::star::uno::XInterface > xListener );
53 private:
54 EventListenerMethod_t m_EventListenerMethod;
57 //----------------------------------
58 // A FilePicker event with parameter
59 //----------------------------------
61 class CFilePickerParamEventNotification : public CEventNotification
63 public:
64 typedef void (SAL_CALL ::com::sun::star::ui::dialogs::XFilePickerListener::*EventListenerMethod_t)(const ::com::sun::star::ui::dialogs::FilePickerEvent&);
66 CFilePickerParamEventNotification(EventListenerMethod_t EventListenerMethod, const ::com::sun::star::ui::dialogs::FilePickerEvent& FilePickerEvent);
68 virtual void SAL_CALL notifyEventListener( com::sun::star::uno::Reference< com::sun::star::uno::XInterface > xListener );
70 private:
71 EventListenerMethod_t m_EventListenerMethod;
72 com::sun::star::ui::dialogs::FilePickerEvent m_FilePickerEvent;
76 #endif