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// so_activex.idl : IDL source for so_activex.dll 23// 24 25// This file will be processed by the MIDL tool to 26// produce the type library (so_activex.tlb) and marshalling code. 27 28import "oaidl.idl"; 29import "ocidl.idl"; 30#include "olectl.h" 31 32 33 [ 34 object, 35 uuid(DACF7E3F-626B-4BF9-964B-F4910C843711), 36 dual, 37 helpstring("ISOActiveX Interface"), 38 pointer_default(unique) 39 ] 40 interface ISOActiveX : IDispatch 41 { 42 }; 43 44[ 45 object, 46 uuid(BF5D10F3-8A10-4A0B-B150-2B6AA2D7E118), 47 dual, 48 helpstring("ISOComWindowPeer Interface"), 49 pointer_default(unique) 50] 51interface ISOComWindowPeer : IDispatch 52{ 53 [id(1), helpstring("method getWindowHandle")] 54 HRESULT getWindowHandle( [in] SAFEARRAY(VARIANT) procId, 55 [in] short s, 56 [out,retval] long* ret); 57 58 [id(2), helpstring("method getToolkit")] 59 HRESULT getToolkit( [out,retval] IDispatch** retVal ); 60 61 [id(3), helpstring("method setPointer")] 62 HRESULT setPointer( [in] IDispatch* xPointer ); 63 64 [id(4), helpstring("method setBackground")] 65 HRESULT setBackground( [in] int nColor ); 66 67 [id(5), helpstring("method invalidate")] 68 HRESULT invalidate( [in] short ); 69 70 [id(6), helpstring("method invalidateRect")] 71 HRESULT invalidateRect( [in] IDispatch* aRect, [in] short nFlags ); 72 73 [id(7), helpstring("method dispose")] 74 HRESULT dispose(); 75 76 [id(8), helpstring("method addEventListener")] 77 HRESULT addEventListener( [in] IDispatch* xListener ); 78 79 [id(9), helpstring("method removeEventListener")] 80 HRESULT removeEventListener( [in] IDispatch* xListener ); 81 82 [propget, id(10), helpstring("property_implementedInterfaces")] 83 HRESULT Bridge_implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal); 84}; 85 86[ 87 object, 88 uuid(9337694C-B27D-4384-95A4-9D8E0EABC9E5), 89 dual, 90 helpstring("ISODispatchInterceptor Interface"), 91 pointer_default(unique) 92] 93interface ISODispatchInterceptor : IDispatch 94{ 95//com.sun.star.frame.XDispatchProviderInterceptor 96 97 [id(1), helpstring("method getSlaveDispatchProvider")] 98 HRESULT getSlaveDispatchProvider( [out,retval] IDispatch** retVal ); 99 100 [id(2), helpstring("method setSlaveDispatchProvider")] 101 HRESULT setSlaveDispatchProvider( [in] IDispatch* xNewDispatchProvider ); 102 103 [id(3), helpstring("method getMasterDispatchProvider")] 104 HRESULT getMasterDispatchProvider( [out,retval] IDispatch** retVal ); 105 106 [id(4), helpstring("method setMasterDispatchProvider")] 107 HRESULT setMasterDispatchProvider( [in] IDispatch* xNewSupplier ); 108 109// com.sun.star.frame.XDispatchProvider 110 111 [id(5), helpstring("method queryDispatch")] 112 HRESULT queryDispatch( [in] IDispatch* aURL, 113 [in] BSTR aTargetFrameName, 114 [in] long nSearchFlags, 115 [out,retval] IDispatch** retVal ); 116 117 [id(6), helpstring("method queryDispatches")] 118 HRESULT queryDispatches( [in] SAFEARRAY(IDispatch*) aDescripts, 119 [out,retval] SAFEARRAY(VARIANT)* retVal ); 120 121 122// com.sun.star.frame.XDispatch 123 124 [id(7), helpstring("method dispatch")] 125 HRESULT dispatch( [in] IDispatch* aURL, 126 [in] SAFEARRAY(VARIANT) aArgs ); 127 128 [id(8), helpstring("method addStatusListener")] 129 HRESULT addStatusListener( [in] IDispatch* xControl, 130 [in] IDispatch* aURL ); 131 132 [id(9), helpstring("method removeStatusListener")] 133 HRESULT removeStatusListener( [in] IDispatch* xControl, 134 [in] IDispatch* aURL ); 135 136// com.sun.star.frame.XInterceptorInfo 137 138 139 [id(10), helpstring("method getInterceptedURLs")] 140 HRESULT getInterceptedURLs( [out,retval] SAFEARRAY(BSTR)* pVal ); 141 142// the common UNO-COM staff 143 [propget, id(11), helpstring("property_implementedInterfaces")] 144 HRESULT Bridge_implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal); 145 146}; 147 148 149 150 151[ 152 object, 153 uuid(029E9F1E-2B3F-4297-9160-8197DE7ED54F), 154 dual, 155 helpstring("ISOActionsApproval Interface"), 156 pointer_default(unique) 157] 158interface ISOActionsApproval : IDispatch 159{ 160//com.sun.star.embed.XActionsApproval 161 162 [id(1), helpstring("method approveAction")] 163 HRESULT approveAction( [in] long aActionID, 164 [out,retval] boolean* pbApproval ); 165 166// the common UNO-COM staff 167 [propget, id(2), helpstring("property_implementedInterfaces")] 168 HRESULT Bridge_implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal); 169}; 170 171 172 173[ 174 uuid(61FA3F13-8061-4796-B055-3697ED28CB38), 175 version(1.0), 176 helpstring("so_activex 1.0 Type Library") 177] 178library SO_ACTIVEXLib 179{ 180 importlib("stdole32.tlb"); 181 importlib("stdole2.tlb"); 182 183 [ 184 uuid(7F760565-5719-4F04-BA86-112C474B10EA), 185 helpstring("_ISOActiveXEvents Interface") 186 ] 187 dispinterface _ISOActiveXEvents 188 { 189 properties: 190 methods: 191 }; 192 193 [ 194 uuid(67F2A879-82D5-4A6D-8CC5-FFB3C114B69D), 195 helpstring("SOActiveX Class") 196 ] 197 coclass SOActiveX 198 { 199 [default] interface ISOActiveX; 200 [default, source] dispinterface _ISOActiveXEvents; 201 }; 202 203 [ 204 uuid(EE51BD3E-8BB6-4FB8-B319-F65B1BE3B21D), 205 helpstring("SOComWindowPeer Class") 206 ] 207 coclass SOComWindowPeer 208 { 209 [default] interface ISOComWindowPeer; 210 }; 211 212 [ 213 uuid(C5D6D568-57DA-4D6C-819A-451CB565E682), 214 helpstring("SODispatchInterceptor Class") 215 ] 216 coclass SODispatchInterceptor 217 { 218 [default] interface ISODispatchInterceptor; 219 }; 220 221 [ 222 uuid(9F3697AC-7A18-4335-AF0A-65FAC2C35CC1), 223 helpstring("SOActionsApproval Class") 224 ] 225 coclass SOActionsApproval 226 { 227 [default] interface ISOActionsApproval; 228 }; 229 230}; 231 232