Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / awt / XDisplayConnection.idl
blobb3125bb9b46b0ccba90ff56a12c6a4aeb2c01488
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: XDisplayConnection.idl,v $
10 * $Revision: 1.7 $
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 __com_sun_star_awt_XDisplayConnection_idl__
32 #define __com_sun_star_awt_XDisplayConnection_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include <com/sun/star/uno/XInterface.idl>
36 #endif
38 //=============================================================================
40 module com { module sun { module star { module awt {
42 published interface XEventHandler;
44 //=============================================================================
46 /** This interface should be implemented by toolkits that want to give access
47 to their internal message handling loop.
49 published interface XDisplayConnection: com::sun::star::uno::XInterface
51 //-------------------------------------------------------------------------
53 /** registers an event handler.
55 @param window
56 the platform specific window id. If empty, the handler should be
57 registered for all windows.
59 @param eventHandler
60 the handler to register.
62 @param eventMask
63 the event mask specifies the events the handler is interested in.
65 [oneway] void addEventHandler( [in] any window, [in] XEventHandler eventHandler, [in] long eventMask );
67 //-------------------------------------------------------------------------
69 /** removes a eventHandler from the handler list.
71 @param window
72 the platform specific window id the handler should be deregistered for.
73 If empty, the handler should be deregistered completly.
75 @param eventHandler
76 the handler to remove.
78 [oneway] void removeEventHandler( [in] any window, [in] XEventHandler eventHandler );
80 //-------------------------------------------------------------------------
82 /** register an error handler for toolkit specific errors.
84 @param errorHandler
85 the handler to register.
87 [oneway] void addErrorHandler( [in] XEventHandler errorHandler );
89 //-------------------------------------------------------------------------
91 /** remover an error handler from the handler list.
93 @param errorHandler
94 the handler to remove.
96 [oneway] void removeErrorHandler( [in] XEventHandler errorhandler );
98 //-------------------------------------------------------------------------
100 /** returns a identifier.
102 @returns a unique platform dependend identifier for a display connection.
104 any getIdentifier();
108 //=============================================================================
110 }; }; }; };
112 #endif