ReactOS  0.4.15-dev-499-g1f31905
selection.c File Reference
#include "mshtml_private.h"
Include dependency graph for selection.c:

Go to the source code of this file.

Classes

struct  HTMLSelectionObject
 

Functions

static HTMLSelectionObjectimpl_from_IHTMLSelectionObject (IHTMLSelectionObject *iface)
 
static HRESULT WINAPI HTMLSelectionObject_QueryInterface (IHTMLSelectionObject *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLSelectionObject_AddRef (IHTMLSelectionObject *iface)
 
static ULONG WINAPI HTMLSelectionObject_Release (IHTMLSelectionObject *iface)
 
static HRESULT WINAPI HTMLSelectionObject_GetTypeInfoCount (IHTMLSelectionObject *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLSelectionObject_GetTypeInfo (IHTMLSelectionObject *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLSelectionObject_GetIDsOfNames (IHTMLSelectionObject *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLSelectionObject_Invoke (IHTMLSelectionObject *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLSelectionObject_createRange (IHTMLSelectionObject *iface, IDispatch **range)
 
static HRESULT WINAPI HTMLSelectionObject_empty (IHTMLSelectionObject *iface)
 
static HRESULT WINAPI HTMLSelectionObject_clear (IHTMLSelectionObject *iface)
 
static HRESULT WINAPI HTMLSelectionObject_get_type (IHTMLSelectionObject *iface, BSTR *p)
 
static HTMLSelectionObjectimpl_from_IHTMLSelectionObject2 (IHTMLSelectionObject2 *iface)
 
static HRESULT WINAPI HTMLSelectionObject2_QueryInterface (IHTMLSelectionObject2 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLSelectionObject2_AddRef (IHTMLSelectionObject2 *iface)
 
static ULONG WINAPI HTMLSelectionObject2_Release (IHTMLSelectionObject2 *iface)
 
static HRESULT WINAPI HTMLSelectionObject2_GetTypeInfoCount (IHTMLSelectionObject2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLSelectionObject2_GetTypeInfo (IHTMLSelectionObject2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLSelectionObject2_GetIDsOfNames (IHTMLSelectionObject2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLSelectionObject2_Invoke (IHTMLSelectionObject2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLSelectionObject2_createRangeCollection (IHTMLSelectionObject2 *iface, IDispatch **rangeCollection)
 
static HRESULT WINAPI HTMLSelectionObject2_get_typeDetail (IHTMLSelectionObject2 *iface, BSTR *p)
 
HRESULT HTMLSelectionObject_Create (HTMLDocumentNode *doc, nsISelection *nsselection, IHTMLSelectionObject **ret)
 
void detach_selection (HTMLDocumentNode *This)
 

Variables

static const IHTMLSelectionObjectVtbl HTMLSelectionObjectVtbl
 
static const IHTMLSelectionObject2Vtbl HTMLSelectionObject2Vtbl
 
static const tid_t HTMLSelectionObject_iface_tids []
 
static dispex_static_data_t HTMLSelectionObject_dispex
 

Function Documentation

◆ detach_selection()

void detach_selection ( HTMLDocumentNode This)

Definition at line 347 of file selection.c.

348 {
349  HTMLSelectionObject *iter;
350 
351  LIST_FOR_EACH_ENTRY(iter, &This->selection_list, HTMLSelectionObject, entry) {
352  iter->doc = NULL;
353  }
354 }
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Definition: list.h:198
HTMLDocumentNode * doc
Definition: selection.c:29
smooth NULL
Definition: ftsmooth.c:416
uint32_t entry
Definition: isohybrid.c:63

Referenced by HTMLDocumentNode_destructor().

◆ HTMLSelectionObject2_AddRef()

static ULONG WINAPI HTMLSelectionObject2_AddRef ( IHTMLSelectionObject2 *  iface)
static

Definition at line 239 of file selection.c.

240 {
242 
243  return IHTMLSelectionObject_AddRef(&This->IHTMLSelectionObject_iface);
244 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227

◆ HTMLSelectionObject2_createRangeCollection()

static HRESULT WINAPI HTMLSelectionObject2_createRangeCollection ( IHTMLSelectionObject2 *  iface,
IDispatch **  rangeCollection 
)
static

Definition at line 287 of file selection.c.

288 {
290  FIXME("(%p)->(%p)\n", This, rangeCollection);
291  return E_NOTIMPL;
292 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLSelectionObject2_get_typeDetail()

static HRESULT WINAPI HTMLSelectionObject2_get_typeDetail ( IHTMLSelectionObject2 *  iface,
BSTR p 
)
static

Definition at line 294 of file selection.c.

295 {
297  FIXME("(%p)->(%p)\n", This, p);
298  return E_NOTIMPL;
299 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLSelectionObject2_GetIDsOfNames()

static HRESULT WINAPI HTMLSelectionObject2_GetIDsOfNames ( IHTMLSelectionObject2 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 268 of file selection.c.

270 {
272 
273  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames,
274  cNames, lcid, rgDispId);
275 }
REFIID riid
Definition: precomp.h:44
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227

◆ HTMLSelectionObject2_GetTypeInfo()

static HRESULT WINAPI HTMLSelectionObject2_GetTypeInfo ( IHTMLSelectionObject2 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 260 of file selection.c.

262 {
264 
265  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
266 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227

◆ HTMLSelectionObject2_GetTypeInfoCount()

static HRESULT WINAPI HTMLSelectionObject2_GetTypeInfoCount ( IHTMLSelectionObject2 *  iface,
UINT pctinfo 
)
static

Definition at line 253 of file selection.c.

254 {
256 
257  return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
258 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227

◆ HTMLSelectionObject2_Invoke()

static HRESULT WINAPI HTMLSelectionObject2_Invoke ( IHTMLSelectionObject2 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 277 of file selection.c.

280 {
282 
283  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid,
284  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
285 }
REFIID riid
Definition: precomp.h:44
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:534

◆ HTMLSelectionObject2_QueryInterface()

static HRESULT WINAPI HTMLSelectionObject2_QueryInterface ( IHTMLSelectionObject2 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 232 of file selection.c.

233 {
235 
236  return IHTMLSelectionObject_QueryInterface(&This->IHTMLSelectionObject_iface, riid, ppv);
237 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227

◆ HTMLSelectionObject2_Release()

static ULONG WINAPI HTMLSelectionObject2_Release ( IHTMLSelectionObject2 *  iface)
static

Definition at line 246 of file selection.c.

247 {
249 
250  return IHTMLSelectionObject_Release(&This->IHTMLSelectionObject_iface);
251 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject2(IHTMLSelectionObject2 *iface)
Definition: selection.c:227

◆ HTMLSelectionObject_AddRef()

static ULONG WINAPI HTMLSelectionObject_AddRef ( IHTMLSelectionObject *  iface)
static

Definition at line 66 of file selection.c.

67 {
70 
71  TRACE("(%p) ref=%d\n", This, ref);
72 
73  return ref;
74 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34
Definition: send.c:48
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53

◆ HTMLSelectionObject_clear()

static HRESULT WINAPI HTMLSelectionObject_clear ( IHTMLSelectionObject *  iface)
static

Definition at line 188 of file selection.c.

189 {
191  FIXME("(%p)\n", This);
192  return E_NOTIMPL;
193 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLSelectionObject_Create()

HRESULT HTMLSelectionObject_Create ( HTMLDocumentNode doc,
nsISelection nsselection,
IHTMLSelectionObject **  ret 
)

Definition at line 325 of file selection.c.

326 {
328 
330  if(!selection)
331  return E_OUTOFMEMORY;
332 
333  init_dispex(&selection->dispex, (IUnknown*)&selection->IHTMLSelectionObject_iface, &HTMLSelectionObject_dispex);
334 
335  selection->IHTMLSelectionObject_iface.lpVtbl = &HTMLSelectionObjectVtbl;
336  selection->IHTMLSelectionObject2_iface.lpVtbl = &HTMLSelectionObject2Vtbl;
337  selection->ref = 1;
338  selection->nsselection = nsselection; /* We shouldn't call AddRef here */
339 
340  selection->doc = doc;
341  list_add_head(&doc->selection_list, &selection->entry);
342 
343  *ret = &selection->IHTMLSelectionObject_iface;
344  return S_OK;
345 }
__WINE_SERVER_LIST_INLINE void list_add_head(struct list *list, struct list *elem)
Definition: list.h:96
static const IHTMLSelectionObjectVtbl HTMLSelectionObjectVtbl
Definition: selection.c:213
int selection
Definition: ctm.c:92
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const IHTMLSelectionObject2Vtbl HTMLSelectionObject2Vtbl
Definition: selection.c:301
struct list selection_list
int ret
#define S_OK
Definition: intsafe.h:59
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
static dispex_static_data_t HTMLSelectionObject_dispex
Definition: selection.c:318

Referenced by HTMLDocument_get_selection().

◆ HTMLSelectionObject_createRange()

static HRESULT WINAPI HTMLSelectionObject_createRange ( IHTMLSelectionObject *  iface,
IDispatch **  range 
)
static

Definition at line 131 of file selection.c.

132 {
134  IHTMLTxtRange *range_obj = NULL;
135  nsIDOMRange *nsrange = NULL;
136  HRESULT hres;
137 
138  TRACE("(%p)->(%p)\n", This, range);
139 
140  if(This->nsselection) {
141  LONG nsrange_cnt = 0;
142  nsresult nsres;
143 
144  nsISelection_GetRangeCount(This->nsselection, &nsrange_cnt);
145  if(!nsrange_cnt) {
146  nsIDOMHTMLElement *nsbody = NULL;
147 
148  TRACE("nsrange_cnt = 0\n");
149 
150  if(!This->doc->nsdoc) {
151  WARN("nsdoc is NULL\n");
152  return E_UNEXPECTED;
153  }
154 
155  nsres = nsIDOMHTMLDocument_GetBody(This->doc->nsdoc, &nsbody);
156  if(NS_FAILED(nsres) || !nsbody) {
157  ERR("Could not get body: %08x\n", nsres);
158  return E_FAIL;
159  }
160 
161  nsres = nsISelection_Collapse(This->nsselection, (nsIDOMNode*)nsbody, 0);
162  nsIDOMHTMLElement_Release(nsbody);
163  if(NS_FAILED(nsres))
164  ERR("Collapse failed: %08x\n", nsres);
165  }else if(nsrange_cnt > 1) {
166  FIXME("range_cnt = %d\n", nsrange_cnt);
167  }
168 
169  nsres = nsISelection_GetRangeAt(This->nsselection, 0, &nsrange);
170  if(NS_FAILED(nsres))
171  ERR("GetRangeAt failed: %08x\n", nsres);
172  }
173 
174  hres = HTMLTxtRange_Create(This->doc, nsrange, &range_obj);
175 
176  if (nsrange) nsIDOMRange_Release(nsrange);
177  *range = (IDispatch*)range_obj;
178  return hres;
179 }
#define WARN(fmt,...)
Definition: debug.h:112
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34
HRESULT HTMLTxtRange_Create(HTMLDocumentNode *, nsIDOMRange *, IHTMLTxtRange **) DECLSPEC_HIDDEN
Definition: txtrange.c:1722
#define E_FAIL
Definition: ddrawi.h:102
long LONG
Definition: pedump.c:60
#define FIXME(fmt,...)
Definition: debug.h:111
smooth NULL
Definition: ftsmooth.c:416
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:78
GLenum GLint * range
Definition: glext.h:7539
#define ERR(fmt,...)
Definition: debug.h:110
#define E_UNEXPECTED
Definition: winerror.h:2456
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLSelectionObject_empty()

static HRESULT WINAPI HTMLSelectionObject_empty ( IHTMLSelectionObject *  iface)
static

Definition at line 181 of file selection.c.

182 {
184  FIXME("(%p)\n", This);
185  return E_NOTIMPL;
186 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLSelectionObject_get_type()

static HRESULT WINAPI HTMLSelectionObject_get_type ( IHTMLSelectionObject *  iface,
BSTR p 
)
static

Definition at line 195 of file selection.c.

196 {
198  cpp_bool collapsed = TRUE;
199 
200  static const WCHAR wszNone[] = {'N','o','n','e',0};
201  static const WCHAR wszText[] = {'T','e','x','t',0};
202 
203  TRACE("(%p)->(%p)\n", This, p);
204 
205  if(This->nsselection)
206  nsISelection_GetIsCollapsed(This->nsselection, &collapsed);
207 
208  *p = SysAllocString(collapsed ? wszNone : wszText); /* FIXME: control */
209  TRACE("ret %s\n", debugstr_w(*p));
210  return S_OK;
211 }
#define TRUE
Definition: types.h:120
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34
#define debugstr_w
Definition: kernel32.h:32
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
unsigned char cpp_bool
Definition: atl.c:38
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLSelectionObject_GetIDsOfNames()

static HRESULT WINAPI HTMLSelectionObject_GetIDsOfNames ( IHTMLSelectionObject *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 110 of file selection.c.

113 {
115 
116  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames,
117  cNames, lcid, rgDispId);
118 }
REFIID riid
Definition: precomp.h:44
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34

◆ HTMLSelectionObject_GetTypeInfo()

static HRESULT WINAPI HTMLSelectionObject_GetTypeInfo ( IHTMLSelectionObject *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 102 of file selection.c.

104 {
106 
107  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
108 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34

◆ HTMLSelectionObject_GetTypeInfoCount()

static HRESULT WINAPI HTMLSelectionObject_GetTypeInfoCount ( IHTMLSelectionObject *  iface,
UINT pctinfo 
)
static

Definition at line 95 of file selection.c.

96 {
98 
99  return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
100 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34

◆ HTMLSelectionObject_Invoke()

static HRESULT WINAPI HTMLSelectionObject_Invoke ( IHTMLSelectionObject *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 120 of file selection.c.

123 {
125 
126 
127  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid,
128  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
129 }
REFIID riid
Definition: precomp.h:44
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:534

◆ HTMLSelectionObject_QueryInterface()

static HRESULT WINAPI HTMLSelectionObject_QueryInterface ( IHTMLSelectionObject *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 39 of file selection.c.

41 {
43 
44  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
45 
47  *ppv = &This->IHTMLSelectionObject_iface;
48  }else if(IsEqualGUID(&IID_IDispatch, riid)) {
49  *ppv = &This->IHTMLSelectionObject_iface;
50  }else if(IsEqualGUID(&IID_IHTMLSelectionObject, riid)) {
51  *ppv = &This->IHTMLSelectionObject_iface;
52  }else if(IsEqualGUID(&IID_IHTMLSelectionObject2, riid)) {
53  *ppv = &This->IHTMLSelectionObject2_iface;
54  }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
55  return *ppv ? S_OK : E_NOINTERFACE;
56  }else {
57  *ppv = NULL;
58  WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
59  return E_NOINTERFACE;
60  }
61 
62  IUnknown_AddRef((IUnknown*)*ppv);
63  return S_OK;
64 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:112
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34
REFIID LPVOID * ppv
Definition: atlbase.h:39
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
const GUID IID_IDispatch
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ HTMLSelectionObject_Release()

static ULONG WINAPI HTMLSelectionObject_Release ( IHTMLSelectionObject *  iface)
static

Definition at line 76 of file selection.c.

77 {
80 
81  TRACE("(%p) ref=%d\n", This, ref);
82 
83  if(!ref) {
84  if(This->nsselection)
85  nsISelection_Release(This->nsselection);
86  if(This->doc)
87  list_remove(&This->entry);
88  release_dispex(&This->dispex);
89  heap_free(This);
90  }
91 
92  return ref;
93 }
static HTMLSelectionObject * impl_from_IHTMLSelectionObject(IHTMLSelectionObject *iface)
Definition: selection.c:34
Definition: send.c:48
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
__WINE_SERVER_LIST_INLINE void list_remove(struct list *elem)
Definition: list.h:108
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
void release_dispex(DispatchEx *This)
Definition: dispex.c:1706
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ impl_from_IHTMLSelectionObject()

static HTMLSelectionObject* impl_from_IHTMLSelectionObject ( IHTMLSelectionObject *  iface)
inlinestatic

Definition at line 34 of file selection.c.

35 {
36  return CONTAINING_RECORD(iface, HTMLSelectionObject, IHTMLSelectionObject_iface);
37 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLSelectionObject_AddRef(), HTMLSelectionObject_clear(), HTMLSelectionObject_createRange(), HTMLSelectionObject_empty(), HTMLSelectionObject_get_type(), HTMLSelectionObject_GetIDsOfNames(), HTMLSelectionObject_GetTypeInfo(), HTMLSelectionObject_GetTypeInfoCount(), HTMLSelectionObject_Invoke(), HTMLSelectionObject_QueryInterface(), and HTMLSelectionObject_Release().

◆ impl_from_IHTMLSelectionObject2()

static HTMLSelectionObject* impl_from_IHTMLSelectionObject2 ( IHTMLSelectionObject2 *  iface)
inlinestatic

Definition at line 227 of file selection.c.

228 {
229  return CONTAINING_RECORD(iface, HTMLSelectionObject, IHTMLSelectionObject2_iface);
230 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLSelectionObject2_AddRef(), HTMLSelectionObject2_createRangeCollection(), HTMLSelectionObject2_get_typeDetail(), HTMLSelectionObject2_GetIDsOfNames(), HTMLSelectionObject2_GetTypeInfo(), HTMLSelectionObject2_GetTypeInfoCount(), HTMLSelectionObject2_Invoke(), HTMLSelectionObject2_QueryInterface(), and HTMLSelectionObject2_Release().

Variable Documentation

◆ HTMLSelectionObject2Vtbl

const IHTMLSelectionObject2Vtbl HTMLSelectionObject2Vtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLSelectionObject2_QueryInterface(IHTMLSelectionObject2 *iface, REFIID riid, void **ppv)
Definition: selection.c:232
static HRESULT WINAPI HTMLSelectionObject2_GetTypeInfo(IHTMLSelectionObject2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: selection.c:260
static ULONG WINAPI HTMLSelectionObject2_Release(IHTMLSelectionObject2 *iface)
Definition: selection.c:246
static HRESULT WINAPI HTMLSelectionObject2_GetIDsOfNames(IHTMLSelectionObject2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: selection.c:268
static HRESULT WINAPI HTMLSelectionObject2_GetTypeInfoCount(IHTMLSelectionObject2 *iface, UINT *pctinfo)
Definition: selection.c:253
static HRESULT WINAPI HTMLSelectionObject2_get_typeDetail(IHTMLSelectionObject2 *iface, BSTR *p)
Definition: selection.c:294
static HRESULT WINAPI HTMLSelectionObject2_Invoke(IHTMLSelectionObject2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: selection.c:277
static ULONG WINAPI HTMLSelectionObject2_AddRef(IHTMLSelectionObject2 *iface)
Definition: selection.c:239
static HRESULT WINAPI HTMLSelectionObject2_createRangeCollection(IHTMLSelectionObject2 *iface, IDispatch **rangeCollection)
Definition: selection.c:287

Definition at line 301 of file selection.c.

Referenced by HTMLSelectionObject_Create().

◆ HTMLSelectionObject_dispex

dispex_static_data_t HTMLSelectionObject_dispex
static
Initial value:
= {
IHTMLSelectionObject_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t HTMLSelectionObject_iface_tids[]
Definition: selection.c:313

Definition at line 318 of file selection.c.

Referenced by HTMLSelectionObject_Create().

◆ HTMLSelectionObject_iface_tids

const tid_t HTMLSelectionObject_iface_tids[]
static
Initial value:
= {
IHTMLSelectionObject_tid,
IHTMLSelectionObject2_tid,
0
}

Definition at line 313 of file selection.c.

◆ HTMLSelectionObjectVtbl

const IHTMLSelectionObjectVtbl HTMLSelectionObjectVtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLSelectionObject_AddRef(IHTMLSelectionObject *iface)
Definition: selection.c:66
static HRESULT WINAPI HTMLSelectionObject_GetTypeInfoCount(IHTMLSelectionObject *iface, UINT *pctinfo)
Definition: selection.c:95
static ULONG WINAPI HTMLSelectionObject_Release(IHTMLSelectionObject *iface)
Definition: selection.c:76
static HRESULT WINAPI HTMLSelectionObject_createRange(IHTMLSelectionObject *iface, IDispatch **range)
Definition: selection.c:131
static HRESULT WINAPI HTMLSelectionObject_get_type(IHTMLSelectionObject *iface, BSTR *p)
Definition: selection.c:195
static HRESULT WINAPI HTMLSelectionObject_Invoke(IHTMLSelectionObject *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: selection.c:120
static HRESULT WINAPI HTMLSelectionObject_clear(IHTMLSelectionObject *iface)
Definition: selection.c:188
static HRESULT WINAPI HTMLSelectionObject_QueryInterface(IHTMLSelectionObject *iface, REFIID riid, void **ppv)
Definition: selection.c:39
static HRESULT WINAPI HTMLSelectionObject_empty(IHTMLSelectionObject *iface)
Definition: selection.c:181
static HRESULT WINAPI HTMLSelectionObject_GetTypeInfo(IHTMLSelectionObject *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: selection.c:102
static HRESULT WINAPI HTMLSelectionObject_GetIDsOfNames(IHTMLSelectionObject *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: selection.c:110

Definition at line 213 of file selection.c.

Referenced by HTMLSelectionObject_Create().