~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/dlls/mshtml/htmlgeneric.c

Version: ~ [ wine-1.5.30 ] ~ [ wine-1.5.29 ] ~ [ wine-1.5.28 ] ~ [ wine-1.5.27 ] ~ [ wine-1.5.26 ] ~ [ wine-1.5.25 ] ~ [ wine-1.5.24 ] ~ [ wine-1.5.23 ] ~ [ wine-1.5.22 ] ~ [ wine-1.5.21 ] ~ [ wine-1.5.20 ] ~ [ wine-1.5.19 ] ~ [ wine-1.5.18 ] ~ [ wine-1.5.17 ] ~ [ wine-1.5.16 ] ~ [ wine-1.5.15 ] ~ [ wine-1.5.14 ] ~ [ wine-1.5.13 ] ~ [ wine-1.5.12 ] ~ [ wine-1.5.11 ] ~ [ wine-1.5.10 ] ~ [ wine-1.5.9 ] ~ [ wine-1.5.8 ] ~ [ wine-1.5.7 ] ~ [ wine-1.4.1 ] ~ [ wine-1.5.6 ] ~ [ wine-1.5.5 ] ~ [ wine-1.5.4 ] ~ [ wine-1.5.3 ] ~ [ wine-1.5.2 ] ~ [ wine-1.5.1 ] ~ [ wine-1.5.0 ] ~ [ wine-1.4 ] ~ [ wine-1.4-rc6 ] ~ [ wine-1.4-rc5 ] ~ [ wine-1.4-rc4 ] ~ [ wine-1.4-rc3 ] ~ [ wine-1.4-rc2 ] ~ [ wine-1.4-rc1 ] ~ [ wine-1.3.37 ] ~ [ wine-1.3.36 ] ~ [ wine-1.3.35 ] ~ [ wine-1.3.34 ] ~ [ wine-1.3.33 ] ~ [ wine-1.3.32 ] ~ [ wine-1.3.31 ] ~ [ wine-1.3.30 ] ~ [ wine-1.3.29 ] ~ [ wine-1.3.28 ] ~ [ wine-1.3.27 ] ~ [ wine-1.3.26 ] ~ [ wine-1.3.25 ] ~ [ wine-1.3.24 ] ~ [ wine-1.3.23 ] ~ [ wine-1.3.22 ] ~ [ wine-1.3.21 ] ~ [ wine-1.3.20 ] ~ [ wine-1.3.19 ] ~ [ wine-1.3.18 ] ~ [ wine-1.2.3 ] ~ [ wine-1.3.17 ] ~ [ wine-1.3.16 ] ~ [ wine-1.3.15 ] ~ [ wine-1.3.14 ] ~ [ wine-1.3.13 ] ~ [ wine-1.3.12 ] ~ [ wine-1.3.11 ] ~ [ wine-1.3.10 ] ~ [ wine-1.3.9 ] ~ [ wine-1.2.2 ] ~ [ wine-1.3.8 ] ~ [ wine-1.3.7 ] ~ [ wine-1.3.6 ] ~ [ wine-1.3.5 ] ~ [ wine-1.2.1 ] ~ [ wine-1.3.4 ] ~ [ wine-1.3.3 ] ~ [ wine-1.3.2 ] ~ [ wine-1.3.1 ] ~ [ wine-1.3.0 ] ~ [ wine-1.2 ] ~ [ wine-1.2-rc7 ] ~ [ wine-1.2-rc6 ] ~ [ wine-1.2-rc5 ] ~ [ wine-1.2-rc4 ] ~ [ wine-1.2-rc3 ] ~ [ wine-1.2-rc2 ] ~ [ wine-1.2-rc1 ] ~ [ wine-1.1.44 ] ~ [ wine-1.1.43 ] ~ [ wine-1.1.42 ] ~ [ wine-1.1.41 ] ~ [ wine-1.1.40 ] ~ [ wine-1.1.39 ] ~ [ wine-1.1.38 ] ~ [ wine-1.1.37 ] ~ [ wine-1.1.36 ] ~ [ wine-1.1.35 ] ~ [ wine-1.1.34 ] ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * Copyright 2008 Jacek Caban for CodeWeavers
  3  *
  4  * This library is free software; you can redistribute it and/or
  5  * modify it under the terms of the GNU Lesser General Public
  6  * License as published by the Free Software Foundation; either
  7  * version 2.1 of the License, or (at your option) any later version.
  8  *
  9  * This library is distributed in the hope that it will be useful,
 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 12  * Lesser General Public License for more details.
 13  *
 14  * You should have received a copy of the GNU Lesser General Public
 15  * License along with this library; if not, write to the Free Software
 16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 17  */
 18 
 19 
 20 #include <stdarg.h>
 21 
 22 #define COBJMACROS
 23 
 24 #include "windef.h"
 25 #include "winbase.h"
 26 #include "winuser.h"
 27 #include "ole2.h"
 28 
 29 #include "wine/debug.h"
 30 
 31 #include "mshtml_private.h"
 32 
 33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
 34 
 35 typedef struct {
 36     HTMLElement element;
 37 
 38     IHTMLGenericElement IHTMLGenericElement_iface;
 39 } HTMLGenericElement;
 40 
 41 static inline HTMLGenericElement *impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
 42 {
 43     return CONTAINING_RECORD(iface, HTMLGenericElement, IHTMLGenericElement_iface);
 44 }
 45 
 46 static HRESULT WINAPI HTMLGenericElement_QueryInterface(IHTMLGenericElement *iface, REFIID riid, void **ppv)
 47 {
 48     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
 49 
 50     return IHTMLDOMNode_QueryInterface(HTMLDOMNODE(&This->element.node), riid, ppv);
 51 }
 52 
 53 static ULONG WINAPI HTMLGenericElement_AddRef(IHTMLGenericElement *iface)
 54 {
 55     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
 56 
 57     return IHTMLDOMNode_AddRef(HTMLDOMNODE(&This->element.node));
 58 }
 59 
 60 static ULONG WINAPI HTMLGenericElement_Release(IHTMLGenericElement *iface)
 61 {
 62     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
 63 
 64     return IHTMLDOMNode_Release(HTMLDOMNODE(&This->element.node));
 65 }
 66 
 67 static HRESULT WINAPI HTMLGenericElement_GetTypeInfoCount(IHTMLGenericElement *iface, UINT *pctinfo)
 68 {
 69     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
 70     return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This->element.node.dispex), pctinfo);
 71 }
 72 
 73 static HRESULT WINAPI HTMLGenericElement_GetTypeInfo(IHTMLGenericElement *iface, UINT iTInfo,
 74                                               LCID lcid, ITypeInfo **ppTInfo)
 75 {
 76     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
 77     return IDispatchEx_GetTypeInfo(DISPATCHEX(&This->element.node.dispex), iTInfo, lcid, ppTInfo);
 78 }
 79 
 80 static HRESULT WINAPI HTMLGenericElement_GetIDsOfNames(IHTMLGenericElement *iface, REFIID riid,
 81         LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 82 {
 83     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
 84     return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This->element.node.dispex), riid, rgszNames, cNames, lcid, rgDispId);
 85 }
 86 
 87 static HRESULT WINAPI HTMLGenericElement_Invoke(IHTMLGenericElement *iface, DISPID dispIdMember,
 88         REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
 89         VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 90 {
 91     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
 92     return IDispatchEx_Invoke(DISPATCHEX(&This->element.node.dispex), dispIdMember, riid, lcid, wFlags, pDispParams,
 93             pVarResult, pExcepInfo, puArgErr);
 94 }
 95 
 96 static HRESULT WINAPI HTMLGenericElement_get_recordset(IHTMLGenericElement *iface, IDispatch **p)
 97 {
 98     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
 99     FIXME("(%p)->(%p)\n", This, p);
100     return E_NOTIMPL;
101 }
102 
103 static HRESULT WINAPI HTMLGenericElement_namedRecordset(IHTMLGenericElement *iface,
104         BSTR dataMember, VARIANT *hierarchy, IDispatch **ppRecordset)
105 {
106     HTMLGenericElement *This = impl_from_IHTMLGenericElement(iface);
107     FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(dataMember), hierarchy, ppRecordset);
108     return E_NOTIMPL;
109 }
110 
111 static const IHTMLGenericElementVtbl HTMLGenericElementVtbl = {
112     HTMLGenericElement_QueryInterface,
113     HTMLGenericElement_AddRef,
114     HTMLGenericElement_Release,
115     HTMLGenericElement_GetTypeInfoCount,
116     HTMLGenericElement_GetTypeInfo,
117     HTMLGenericElement_GetIDsOfNames,
118     HTMLGenericElement_Invoke,
119     HTMLGenericElement_get_recordset,
120     HTMLGenericElement_namedRecordset
121 };
122 
123 #define HTMLGENERIC_NODE_THIS(iface) DEFINE_THIS2(HTMLGenericElement, element.node, iface)
124 
125 static HRESULT HTMLGenericElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
126 {
127     HTMLGenericElement *This = HTMLGENERIC_NODE_THIS(iface);
128 
129     *ppv = NULL;
130 
131     if(IsEqualGUID(&IID_IHTMLGenericElement, riid)) {
132         TRACE("(%p)->(IID_IHTMLGenericElement %p)\n", This, ppv);
133         *ppv = &This->IHTMLGenericElement_iface;
134     }else {
135         return HTMLElement_QI(&This->element.node, riid, ppv);
136     }
137 
138     IUnknown_AddRef((IUnknown*)*ppv);
139     return S_OK;
140 }
141 
142 static void HTMLGenericElement_destructor(HTMLDOMNode *iface)
143 {
144     HTMLGenericElement *This = HTMLGENERIC_NODE_THIS(iface);
145 
146     HTMLElement_destructor(&This->element.node);
147 }
148 
149 #undef HTMLGENERIC_NODE_THIS
150 
151 static const NodeImplVtbl HTMLGenericElementImplVtbl = {
152     HTMLGenericElement_QI,
153     HTMLGenericElement_destructor,
154     HTMLElement_clone
155 };
156 
157 static const tid_t HTMLGenericElement_iface_tids[] = {
158     HTMLELEMENT_TIDS,
159     IHTMLGenericElement_tid,
160     0
161 };
162 
163 static dispex_static_data_t HTMLGenericElement_dispex = {
164     NULL,
165     DispHTMLGenericElement_tid,
166     NULL,
167     HTMLGenericElement_iface_tids
168 };
169 
170 HRESULT HTMLGenericElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
171 {
172     HTMLGenericElement *ret;
173 
174     ret = heap_alloc_zero(sizeof(HTMLGenericElement));
175     if(!ret)
176         return E_OUTOFMEMORY;
177 
178     ret->IHTMLGenericElement_iface.lpVtbl = &HTMLGenericElementVtbl;
179     ret->element.node.vtbl = &HTMLGenericElementImplVtbl;
180 
181     HTMLElement_Init(&ret->element, doc, nselem, &HTMLGenericElement_dispex);
182 
183     *elem = &ret->element;
184     return S_OK;
185 }
186 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.