Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/ole/win32/ifs.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children | 2e09b0e6857a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6dd524f61e62 |
---|---|
1 /* | |
2 * extra interface not define in any other modules, copied from MSDN 2003 | |
3 * don't import this module directly, import std.internal.ole.win32.com instead | |
4 * | |
5 * author : Shawn Liu | |
6 */ | |
7 | |
8 module org.eclipse.swt.internal.ole.win32.ifs; | |
9 | |
10 private import org.eclipse.swt.SWT; | |
11 private import org.eclipse.swt.internal.win32.WINTYPES; | |
12 private import org.eclipse.swt.internal.ole.win32.COM; | |
13 //private import std.c.windows.windows; | |
14 //private import std.c.windows.com; | |
15 private import org.eclipse.swt.internal.ole.win32.COMTYPES; | |
16 private import org.eclipse.swt.internal.ole.win32.OAIDL; | |
17 private import org.eclipse.swt.internal.ole.win32.OBJIDL; | |
18 private import org.eclipse.swt.internal.ole.win32.OLEIDL; | |
19 private import org.eclipse.swt.internal.ole.win32.DOCOBJ; | |
20 private import org.eclipse.swt.internal.ole.win32.EXDISP; | |
21 private import org.eclipse.swt.internal.ole.win32.MSHTMHST; | |
22 private import org.eclipse.swt.internal.ole.win32.extras; | |
23 | |
24 | |
25 interface IAccessible : IDispatch { | |
26 // int GetTypeInfoCount(int pctinfo); | |
27 // int GetTypeInfo(THIS_ UINT itinfo, LCID lcid, ITypeInfo FAR* FAR* pptinfo); | |
28 // int GetIDsOfNames - not implemented | |
29 // int Invoke - not implemented | |
30 HRESULT get_accParent(LPDISPATCH* ppdispParent); | |
31 HRESULT get_accChildCount(LONG* pcountChildren); | |
32 HRESULT get_accChild(VARIANT varChildID, LPDISPATCH* ppdispChild); | |
33 HRESULT get_accName(VARIANT varID, BSTR* pszName); | |
34 HRESULT get_accValue(VARIANT varID, BSTR* pszValue); | |
35 HRESULT get_accDescription(VARIANT varID,BSTR* pszDescription); | |
36 HRESULT get_accRole(VARIANT varID, VARIANT* pvarRole); | |
37 HRESULT get_accState(VARIANT varID, VARIANT* pvarState); | |
38 HRESULT get_accHelp(VARIANT varID, BSTR* pszHelp); | |
39 HRESULT get_accHelpTopic(BSTR* pszHelpFile, VARIANT varChild, LONG* pidTopic); | |
40 HRESULT get_accKeyboardShortcut(VARIANT varID, BSTR* pszKeyboardShortcut); | |
41 HRESULT get_accFocus(VARIANT* pvarID); | |
42 HRESULT get_accSelection(VARIANT* pvarChildren); | |
43 HRESULT get_accDefaultAction(VARIANT varID,BSTR* pszDefaultAction); | |
44 HRESULT accSelect(LONG flagsSelect, VARIANT varID); | |
45 HRESULT accLocation(LONG* pxLeft, LONG* pyTop, LONG* pcxWidth, LONG* pcyHeight, VARIANT varID); | |
46 HRESULT accNavigate(LONG navDir, VARIANT varStart, VARIANT* pvarEnd); | |
47 HRESULT accHitTest(LONG xLeft, LONG yTop, VARIANT* pvarID); | |
48 HRESULT accDoDefaultAction(VARIANT varID); | |
49 HRESULT put_accName(VARIANT varID, BSTR* szName); | |
50 HRESULT put_accValue(VARIANT varID, BSTR* szValue); | |
51 } | |
52 alias IAccessible LPACCESSIBLE; | |
53 | |
54 interface IClassFactory2 : IClassFactory | |
55 { | |
56 HRESULT GetLicInfo(LICINFO * pLicInfo); | |
57 HRESULT RequestLicKey(DWORD dwReserved, BSTR * pbstrKey); | |
58 HRESULT CreateInstanceLic(LPUNKNOWN pUnkOuter, LPUNKNOWN pUnkReserved, REFIID riid, BSTR bstrKey, void ** ppvObject); | |
59 } | |
60 alias IClassFactory2 LPCLASSFACTORY2; | |
61 | |
62 | |
63 interface IConnectionPoint : IUnknown | |
64 { | |
65 HRESULT GetConnectionInterface(IID * pIID); | |
66 HRESULT GetConnectionPointContainer(LPCONNECTIONPOINTCONTAINER * ppCPC); | |
67 HRESULT Advise(LPUNKNOWN pUnk, DWORD * pdwCookie); | |
68 HRESULT Unadvise(DWORD dwCookie); | |
69 HRESULT EnumConnections(LPENUMCONNECTIONS * ppEnum); | |
70 } | |
71 alias IConnectionPoint LPCONNECTIONPOINT; | |
72 | |
73 | |
74 interface IConnectionPointContainer : IUnknown | |
75 { | |
76 HRESULT EnumConnectionPoints(LPENUMCONNECTIONPOINTS * ppEnum); | |
77 HRESULT FindConnectionPoint(REFIID riid, LPCONNECTIONPOINT * ppCP); | |
78 } | |
79 alias IConnectionPointContainer LPCONNECTIONPOINTCONTAINER; | |
80 | |
81 interface IEnumConnectionPoints : IUnknown | |
82 { | |
83 HRESULT Next(ULONG celt, LPCONNECTIONPOINT * rgelt, ULONG * pceltFetched); | |
84 HRESULT Skip(ULONG celt); | |
85 HRESULT Reset(); | |
86 HRESULT Clone(LPENUMCONNECTIONPOINTS * ppenum); | |
87 } | |
88 alias IEnumConnectionPoints LPENUMCONNECTIONPOINTS; | |
89 | |
90 interface IEnumConnections : IUnknown { | |
91 HRESULT Next(ULONG cConnections, CONNECTDATA ** rgpcd, ULONG * pcFetched); | |
92 HRESULT Skip(ULONG cConnections); | |
93 HRESULT Reset(); | |
94 HRESULT Clone(LPENUMCONNECTIONS * ppEnum); | |
95 }alias IEnumConnections LPENUMCONNECTIONS; | |
96 | |
97 interface IEnumVARIANT : IUnknown { | |
98 HRESULT Next(ULONG celt, VARIANT *rgelt, ULONG *pceltFetched); | |
99 HRESULT Skip(ULONG celt); | |
100 HRESULT Reset(); | |
101 HRESULT Clone(LPENUMVARIANT * ppenum); | |
102 } | |
103 alias IEnumVARIANT LPENUMVARIANT; | |
104 | |
105 | |
106 interface IInternetSecurityManager : IUnknown { | |
107 HRESULT SetSecuritySite(LPINTERNETSECURITYMGRSITE pSite); | |
108 HRESULT GetSecuritySite(LPINTERNETSECURITYMGRSITE *ppSite); | |
109 HRESULT MapUrlToZone(LPCWSTR pwszUrl, DWORD *pdwZone, DWORD dwFlags); | |
110 HRESULT GetSecurityId(LPCWSTR pwszUrl, BYTE *pbSecurityId, DWORD *pcbSecurityId, DWORD_PTR dwReserved); | |
111 HRESULT ProcessUrlAction(LPCWSTR pwszUrl, DWORD dwAction, BYTE *pPolicy, DWORD cbPolicy, BYTE *pContext, DWORD cbContext, DWORD dwFlags, DWORD dwReserved); | |
112 HRESULT QueryCustomPolicy(LPCWSTR pwszUrl, REFGUID guidKey, BYTE **ppPolicy, DWORD *pcbPolicy, BYTE *pContext, DWORD cbContext, DWORD dwReserved); | |
113 HRESULT SetZoneMapping(DWORD dwZone, LPCWSTR lpszPattern, DWORD dwFlags); | |
114 HRESULT GetZoneMappings(DWORD dwZone, LPENUMSTRING * ppenumString, DWORD dwFlags); | |
115 } | |
116 interface IInternetSecurityMgrSite : IUnknown { | |
117 HRESULT EnableModeless(BOOL fEnable); | |
118 HRESULT GetWindow(HWND *phwnd); | |
119 } | |
120 alias IInternetSecurityMgrSite LPINTERNETSECURITYMGRSITE; | |
121 | |
122 interface IOleControl : IUnknown | |
123 { | |
124 HRESULT GetControlInfo(CONTROLINFO* pCI); | |
125 HRESULT OnMnemonic(LPMSG pMsg); | |
126 HRESULT OnAmbientPropertyChange(DISPID dispID); | |
127 HRESULT FreezeEvents(BOOL bFreeze); | |
128 } | |
129 alias IOleControl LPOLECONTROL; | |
130 | |
131 | |
132 interface IOleControlSite : IUnknown { | |
133 HRESULT OnControlInfoChanged(); | |
134 HRESULT LockInPlaceActive( | |
135 BOOL fLock //Indicates whether to ensure the active state | |
136 ); | |
137 HRESULT GetExtendedControl( | |
138 LPDISPATCH* ppDisp //Address of output variable that receives the | |
139 // IDispatch interface pointer | |
140 ); | |
141 HRESULT TransformCoords( | |
142 POINTL* pPtlHimetric , //Address of POINTL structure | |
143 POINTF* pPtfContainer , //Address of POINTF structure | |
144 DWORD dwFlags //Flags indicating the exact conversion | |
145 ); | |
146 HRESULT TranslateAccelerator( | |
147 LPMSG pMsg , //Pointer to the structure | |
148 DWORD grfModifiers //Flags describing the state of the keys | |
149 ); | |
150 HRESULT OnFocus( | |
151 BOOL fGotFocus //Indicates whether the control gained focus | |
152 ); | |
153 HRESULT ShowPropertyFrame(); | |
154 } | |
155 alias IOleControlSite LPOLECONTROLSITE; | |
156 | |
157 | |
158 interface IPersistStreamInit : IPersist { | |
159 HRESULT IsDirty(); | |
160 HRESULT Load(LPSTREAM pStm); | |
161 HRESULT Save(LPSTREAM pStm, BOOL fClearDirty); | |
162 HRESULT GetSizeMax(ULARGE_INTEGER * pcbSize); | |
163 HRESULT InitNew(); | |
164 } | |
165 | |
166 interface IPropertyNotifySink : IUnknown { | |
167 HRESULT OnChanged(DISPID dispID); | |
168 HRESULT OnRequestEdit(DISPID dispID); | |
169 } | |
170 alias IPropertyNotifySink LPPROPERTYNOTIFYSINK; | |
171 | |
172 interface IProvideClassInfo : IUnknown | |
173 { | |
174 HRESULT GetClassInfo(LPTYPEINFO * ppTI); | |
175 } | |
176 alias IProvideClassInfo LPPROVIDECLASSINFO; | |
177 | |
178 interface IProvideClassInfo2 : IProvideClassInfo | |
179 { | |
180 HRESULT GetGUID(DWORD dwGuidKind, GUID * pGUID); | |
181 } | |
182 alias IProvideClassInfo2 LPPROVIDECLASSINFO2; | |
183 | |
184 | |
185 /* | |
186 interface IDocHostUIHandler : IUnknown | |
187 { | |
188 int ShowContextMenu( int dwID, POINT* ppt, ComObj pcmdtReserved, ComObj pdispReserved); | |
189 int GetHostInfo( int pInfo ); | |
190 int ShowUI( int dwID, ComObj pActiveObject, ComObj pCommandTarget, ComObj pFrame, ComObj pDoc ); | |
191 int HideUI(); | |
192 int UpdateUI(); | |
193 int EnableModeless( int fEnable ); | |
194 int OnDocWindowActivate( int fActivate ); | |
195 int OnFrameWindowActivate( int fActivate ); | |
196 int ResizeBorder( RECT* prcBorder, ComObj pUIWindow, int fRameWindow ); | |
197 int TranslateAccelerator( int lpMsg, int pguidCmdGroup, int nCmdID ); | |
198 int GetOptionKeyPath( int pchKey, int dw ); | |
199 int GetDropTarget( ComObj pDropTarget, ComObj* ppDropTarget ); | |
200 int GetExternal( ComObj** ppDispatch ); | |
201 int TranslateUrl( int dwTranslate, int pchURLIn, int ppchURLOut ); | |
202 int FilterDataObject( ComObj pDO, ComObj* ppDORet ); | |
203 } | |
204 | |
205 interface IDocHostShowUI : IUnknown | |
206 { | |
207 int ShowMessage( HWND hwnd, wchar* lpstrText, int lpstrCaption, int dwType, int lpstrHelpFile, int dwHelpContext, int plResult); | |
208 int ShowHelp( HWND hwnd, int pszHelpFile, int uCommand, int dwData, long ptMouse, ComObj pDispatchObjectHit ); | |
209 } | |
210 */ | |
211 interface IServiceProvider : IUnknown { | |
212 HRESULT QueryService(REFGUID guidService, REFIID riid, void **ppv); | |
213 } | |
214 alias IServiceProvider LPSERVICEPROVIDER; | |
215 | |
216 interface ISpecifyPropertyPages : IUnknown { | |
217 HRESULT GetPages( | |
218 CAUUID *pPages //Pointer to structure | |
219 ); | |
220 } | |
221 alias ISpecifyPropertyPages LPSPECIFYPROPERTYPAGES; | |
222 | |
223 | |
224 | |
225 | |
226 | |
227 | |
228 | |
229 /* | |
230 interface IEnumFORMATETC : IEnumXXXX {} | |
231 | |
232 | |
233 interface IDataObject : IUnknown { | |
234 int GetData(int pFormatetc, int pmedium); | |
235 int GetDataHere(FORMATETC* pFormatetc, STGMEDIUM* pmedium); | |
236 int QueryGetData(FORMATETC* pFormatetc); | |
237 int GetCanonicalFormatEtc(int pFormatetcIn, int pFormatetcOut); | |
238 int SetData(int pFormatetc, int pmedium, int fRelease); | |
239 int EnumFormatEtc(int dwDirection, int ppenumFormatetc); | |
240 int DAdvise(int pFormatetc, int advf, int pAdvSink, int pdwConnection); | |
241 int DUnadvise(int dwConnection); | |
242 int EnumDAdvise(ComObj* ppenumAdvise); | |
243 } | |
244 | |
245 interface IDropSource : IUnknown { | |
246 int QueryContinueDrag(int fEscapePressed, int grfKeyState); | |
247 int GiveFeedback(int dwEffect); | |
248 } | |
249 | |
250 interface IDropTarget : IUnknown { | |
251 // NOTE : POINT* is splited to pt_x, pt_y | |
252 int DragEnter(ComObj pDataObject, int grfKeyState, int pt_x, int pt_y, int pdwEffect); | |
253 int DragOver(int grfKeyState, int pt_x, int pt_y, int pdwEffect); | |
254 int DragLeave(); | |
255 int Drop(ComObj pDataObject, int grfKeyState, int pt_x, int pt_y, int pdwEffect); | |
256 } | |
257 */ |