ReactOS  0.4.13-dev-544-gede3fdd
htmltextcont.c
Go to the documentation of this file.
1 /*
2  * Copyright 2006 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 #include "mshtml_private.h"
20 
21 static inline HTMLTextContainer *impl_from_IHTMLTextContainer(IHTMLTextContainer *iface)
22 {
23  return CONTAINING_RECORD(iface, HTMLTextContainer, IHTMLTextContainer_iface);
24 }
25 
26 static HRESULT WINAPI HTMLTextContainer_QueryInterface(IHTMLTextContainer *iface,
27  REFIID riid, void **ppv)
28 {
30  return IHTMLElement_QueryInterface(&This->element.IHTMLElement_iface, riid, ppv);
31 }
32 
33 static ULONG WINAPI HTMLTextContainer_AddRef(IHTMLTextContainer *iface)
34 {
36  return IHTMLElement_AddRef(&This->element.IHTMLElement_iface);
37 }
38 
39 static ULONG WINAPI HTMLTextContainer_Release(IHTMLTextContainer *iface)
40 {
42  return IHTMLElement_Release(&This->element.IHTMLElement_iface);
43 }
44 
45 static HRESULT WINAPI HTMLTextContainer_GetTypeInfoCount(IHTMLTextContainer *iface, UINT *pctinfo)
46 {
48  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
49 }
50 
51 static HRESULT WINAPI HTMLTextContainer_GetTypeInfo(IHTMLTextContainer *iface, UINT iTInfo,
52  LCID lcid, ITypeInfo **ppTInfo)
53 {
55  return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
56  ppTInfo);
57 }
58 
59 static HRESULT WINAPI HTMLTextContainer_GetIDsOfNames(IHTMLTextContainer *iface, REFIID riid,
60  LPOLESTR *rgszNames, UINT cNames,
61  LCID lcid, DISPID *rgDispId)
62 {
64  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
65  cNames, lcid, rgDispId);
66 }
67 
68 static HRESULT WINAPI HTMLTextContainer_Invoke(IHTMLTextContainer *iface, DISPID dispIdMember,
69  REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
70  VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
71 {
73  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
74  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
75 }
76 
77 static HRESULT WINAPI HTMLTextContainer_createControlRange(IHTMLTextContainer *iface,
78  IDispatch **range)
79 {
81  FIXME("(%p)->(%p)\n", This, range);
82  return E_NOTIMPL;
83 }
84 
85 static HRESULT WINAPI HTMLTextContainer_get_scrollHeight(IHTMLTextContainer *iface, LONG *p)
86 {
88 
89  TRACE("(%p)->(%p)\n", This, p);
90 
91  return IHTMLElement2_get_scrollHeight(&This->element.IHTMLElement2_iface, p);
92 }
93 
94 static HRESULT WINAPI HTMLTextContainer_get_scrollWidth(IHTMLTextContainer *iface, LONG *p)
95 {
97 
98  TRACE("(%p)->(%p)\n", This, p);
99 
100  return IHTMLElement2_get_scrollWidth(&This->element.IHTMLElement2_iface, p);
101 }
102 
103 static HRESULT WINAPI HTMLTextContainer_put_scrollTop(IHTMLTextContainer *iface, LONG v)
104 {
106 
107  TRACE("(%p)->(%d)\n", This, v);
108 
109  return IHTMLElement2_put_scrollTop(&This->element.IHTMLElement2_iface, v);
110 }
111 
112 static HRESULT WINAPI HTMLTextContainer_get_scrollTop(IHTMLTextContainer *iface, LONG *p)
113 {
115 
116  TRACE("(%p)->(%p)\n", This, p);
117 
118  return IHTMLElement2_get_scrollTop(&This->element.IHTMLElement2_iface, p);
119 }
120 
121 static HRESULT WINAPI HTMLTextContainer_put_scrollLeft(IHTMLTextContainer *iface, LONG v)
122 {
124 
125  TRACE("(%p)->(%d)\n", This, v);
126 
127  return IHTMLElement2_put_scrollLeft(&This->element.IHTMLElement2_iface, v);
128 }
129 
130 static HRESULT WINAPI HTMLTextContainer_get_scrollLeft(IHTMLTextContainer *iface, LONG *p)
131 {
133 
134  TRACE("(%p)->(%p)\n", This, p);
135 
136  return IHTMLElement2_get_scrollLeft(&This->element.IHTMLElement2_iface, p);
137 }
138 
139 static HRESULT WINAPI HTMLTextContainer_put_onscroll(IHTMLTextContainer *iface, VARIANT v)
140 {
142  FIXME("(%p)->()\n", This);
143  return E_NOTIMPL;
144 }
145 
146 static HRESULT WINAPI HTMLTextContainer_get_onscroll(IHTMLTextContainer *iface, VARIANT *p)
147 {
149  FIXME("(%p)->(%p)\n", This, p);
150  return E_NOTIMPL;
151 }
152 
153 static const IHTMLTextContainerVtbl HTMLTextContainerVtbl = {
170 };
171 
173  dispex_static_data_t *dispex_data)
174 {
175  This->IHTMLTextContainer_iface.lpVtbl = &HTMLTextContainerVtbl;
176 
177  HTMLElement_Init(&This->element, doc, nselem, dispex_data);
178 }
static HTMLTextContainer * impl_from_IHTMLTextContainer(IHTMLTextContainer *iface)
Definition: htmltextcont.c:21
#define REFIID
Definition: guiddef.h:113
static HRESULT WINAPI HTMLTextContainer_QueryInterface(IHTMLTextContainer *iface, REFIID riid, void **ppv)
Definition: htmltextcont.c:26
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
DWORD LCID
Definition: nls.h:13
static HRESULT WINAPI HTMLTextContainer_get_scrollHeight(IHTMLTextContainer *iface, LONG *p)
Definition: htmltextcont.c:85
static LPOLESTR
Definition: stg_prop.c:27
static HRESULT WINAPI HTMLTextContainer_put_scrollTop(IHTMLTextContainer *iface, LONG v)
Definition: htmltextcont.c:103
long LONG
Definition: pedump.c:60
#define FIXME(fmt,...)
Definition: debug.h:110
static HRESULT WINAPI HTMLTextContainer_get_scrollLeft(IHTMLTextContainer *iface, LONG *p)
Definition: htmltextcont.c:130
static HRESULT WINAPI HTMLTextContainer_put_scrollLeft(IHTMLTextContainer *iface, LONG v)
Definition: htmltextcont.c:121
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
static ULONG WINAPI HTMLTextContainer_AddRef(IHTMLTextContainer *iface)
Definition: htmltextcont.c:33
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:77
static const IHTMLTextContainerVtbl HTMLTextContainerVtbl
Definition: htmltextcont.c:153
#define WINAPI
Definition: msvc.h:8
static HRESULT WINAPI HTMLTextContainer_GetTypeInfoCount(IHTMLTextContainer *iface, UINT *pctinfo)
Definition: htmltextcont.c:45
unsigned short WORD
Definition: ntddk_ex.h:93
static ULONG WINAPI HTMLTextContainer_Release(IHTMLTextContainer *iface)
Definition: htmltextcont.c:39
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
static HRESULT WINAPI HTMLTextContainer_createControlRange(IHTMLTextContainer *iface, IDispatch **range)
Definition: htmltextcont.c:77
void HTMLTextContainer_Init(HTMLTextContainer *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmltextcont.c:172
GLenum GLint * range
Definition: glext.h:7539
static HRESULT WINAPI HTMLTextContainer_GetIDsOfNames(IHTMLTextContainer *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmltextcont.c:59
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
struct stdole::EXCEPINFO EXCEPINFO
static VARIANTARG static DISPID
Definition: ordinal.c:49
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI HTMLTextContainer_Invoke(IHTMLTextContainer *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmltextcont.c:68
unsigned int UINT
Definition: ndis.h:50
struct stdole::DISPPARAMS DISPPARAMS
static HRESULT WINAPI HTMLTextContainer_get_onscroll(IHTMLTextContainer *iface, VARIANT *p)
Definition: htmltextcont.c:146
unsigned int ULONG
Definition: retypes.h:1
static HRESULT WINAPI HTMLTextContainer_get_scrollTop(IHTMLTextContainer *iface, LONG *p)
Definition: htmltextcont.c:112
static HRESULT WINAPI HTMLTextContainer_GetTypeInfo(IHTMLTextContainer *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmltextcont.c:51
GLfloat GLfloat p
Definition: glext.h:8902
static HRESULT WINAPI HTMLTextContainer_put_onscroll(IHTMLTextContainer *iface, VARIANT v)
Definition: htmltextcont.c:139
static HRESULT WINAPI HTMLTextContainer_get_scrollWidth(IHTMLTextContainer *iface, LONG *p)
Definition: htmltextcont.c:94