Update ooo320-m1
[ooovba.git] / odk / examples / OLE / activex / so_activex.idl
blobaae54e8b64e37f9caa73a16d29be091d959beeb3
1 /*************************************************************************
3 * $RCSfile: so_activex.idl,v $
5 * $Revision: 1.2 $
7 * last change: $Author: hr $ $Date: 2003-06-30 15:51:08 $
9 * The Contents of this file are made available subject to the terms of
10 * the BSD license.
12 * Copyright (c) 2003 by Sun Microsystems, Inc.
13 * All rights reserved.
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 * 3. Neither the name of Sun Microsystems, Inc. nor the names of its
24 * contributors may be used to endorse or promote products derived
25 * from this software without specific prior written permission.
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
30 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
31 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
32 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
33 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
34 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
35 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
36 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
37 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 *************************************************************************/
41 // so_activex.idl : IDL source for so_activex.dll
44 // This file will be processed by the MIDL tool to
45 // produce the type library (so_activex.tlb) and marshalling code.
47 import "oaidl.idl";
48 import "ocidl.idl";
49 #include "olectl.h"
53 object,
54 uuid(DACF7E3F-626B-4BF9-964B-F4910C843711),
55 dual,
56 helpstring("ISOActiveX Interface"),
57 pointer_default(unique)
59 interface ISOActiveX : IDispatch
64 object,
65 uuid(BF5D10F3-8A10-4A0B-B150-2B6AA2D7E118),
66 dual,
67 helpstring("ISOComWindowPeer Interface"),
68 pointer_default(unique)
70 interface ISOComWindowPeer : IDispatch
72 [id(1), helpstring("method getWindowHandle")]
73 HRESULT getWindowHandle( [in] SAFEARRAY(VARIANT) procId,
74 [in] short s,
75 [out,retval] long* ret);
77 [id(2), helpstring("method getToolkit")]
78 HRESULT getToolkit( [out,retval] IDispatch** retVal );
80 [id(3), helpstring("method setPointer")]
81 HRESULT setPointer( [in] IDispatch* xPointer );
83 [id(4), helpstring("method setBackground")]
84 HRESULT setBackground( [in] int nColor );
86 [id(5), helpstring("method invalidate")]
87 HRESULT invalidate( [in] short );
89 [id(6), helpstring("method invalidateRect")]
90 HRESULT invalidateRect( [in] IDispatch* aRect, [in] short nFlags );
92 [id(7), helpstring("method dispose")]
93 HRESULT dispose();
95 [id(8), helpstring("method addEventListener")]
96 HRESULT addEventListener( [in] IDispatch* xListener );
98 [id(9), helpstring("method removeEventListener")]
99 HRESULT removeEventListener( [in] IDispatch* xListener );
101 [propget, id(10), helpstring("property_implementedInterfaces")]
102 HRESULT Bridge_implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal);
106 uuid(61FA3F13-8061-4796-B055-3697ED28CB38),
107 version(1.0),
108 helpstring("so_activex 1.0 Type Library")
110 library SO_ACTIVEXLib
112 importlib("stdole32.tlb");
113 importlib("stdole2.tlb");
116 uuid(7F760565-5719-4F04-BA86-112C474B10EA),
117 helpstring("_ISOActiveXEvents Interface")
119 dispinterface _ISOActiveXEvents
121 properties:
122 methods:
126 uuid(67F2A879-82D5-4A6D-8CC5-FFB3C114B69D),
127 helpstring("SOActiveX Class")
129 coclass SOActiveX
131 [default] interface ISOActiveX;
132 [default, source] dispinterface _ISOActiveXEvents;
136 uuid(EE51BD3E-8BB6-4FB8-B319-F65B1BE3B21D),
137 helpstring("SOComWindowPeer Class")
139 coclass SOComWindowPeer
141 [default] interface ISOComWindowPeer;