ReactOS 0.4.15-dev-7931-gfd331f1
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
21static inline HTMLTextContainer *impl_from_IHTMLTextContainer(IHTMLTextContainer *iface)
22{
23 return CONTAINING_RECORD(iface, HTMLTextContainer, IHTMLTextContainer_iface);
24}
25
26static HRESULT WINAPI HTMLTextContainer_QueryInterface(IHTMLTextContainer *iface,
27 REFIID riid, void **ppv)
28{
30 return IHTMLElement_QueryInterface(&This->element.IHTMLElement_iface, riid, ppv);
31}
32
33static ULONG WINAPI HTMLTextContainer_AddRef(IHTMLTextContainer *iface)
34{
36 return IHTMLElement_AddRef(&This->element.IHTMLElement_iface);
37}
38
39static ULONG WINAPI HTMLTextContainer_Release(IHTMLTextContainer *iface)
40{
42 return IHTMLElement_Release(&This->element.IHTMLElement_iface);
43}
44
45static HRESULT WINAPI HTMLTextContainer_GetTypeInfoCount(IHTMLTextContainer *iface, UINT *pctinfo)
46{
48 return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
49}
50
51static 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
59static 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
68static 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
77static HRESULT WINAPI HTMLTextContainer_createControlRange(IHTMLTextContainer *iface,
79{
81 FIXME("(%p)->(%p)\n", This, range);
82 return E_NOTIMPL;
83}
84
85static 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
94static 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
103static 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
112static 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
121static 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
130static 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
139static HRESULT WINAPI HTMLTextContainer_put_onscroll(IHTMLTextContainer *iface, VARIANT v)
140{
142 FIXME("(%p)->()\n", This);
143 return E_NOTIMPL;
144}
145
146static HRESULT WINAPI HTMLTextContainer_get_onscroll(IHTMLTextContainer *iface, VARIANT *p)
147{
149 FIXME("(%p)->(%p)\n", This, p);
150 return E_NOTIMPL;
151}
152
153static 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}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
unsigned short WORD
Definition: ntddk_ex.h:93
const GLdouble * v
Definition: gl.h:2040
GLenum GLint * range
Definition: glext.h:7539
GLfloat GLfloat p
Definition: glext.h:8902
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
static HRESULT WINAPI HTMLTextContainer_QueryInterface(IHTMLTextContainer *iface, REFIID riid, void **ppv)
Definition: htmltextcont.c:26
static HRESULT WINAPI HTMLTextContainer_get_onscroll(IHTMLTextContainer *iface, VARIANT *p)
Definition: htmltextcont.c:146
static HRESULT WINAPI HTMLTextContainer_get_scrollLeft(IHTMLTextContainer *iface, LONG *p)
Definition: htmltextcont.c:130
static ULONG WINAPI HTMLTextContainer_Release(IHTMLTextContainer *iface)
Definition: htmltextcont.c:39
static HRESULT WINAPI HTMLTextContainer_put_scrollTop(IHTMLTextContainer *iface, LONG v)
Definition: htmltextcont.c:103
void HTMLTextContainer_Init(HTMLTextContainer *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmltextcont.c:172
static HRESULT WINAPI HTMLTextContainer_createControlRange(IHTMLTextContainer *iface, IDispatch **range)
Definition: htmltextcont.c:77
static HRESULT WINAPI HTMLTextContainer_put_onscroll(IHTMLTextContainer *iface, VARIANT v)
Definition: htmltextcont.c:139
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
static HRESULT WINAPI HTMLTextContainer_get_scrollWidth(IHTMLTextContainer *iface, LONG *p)
Definition: htmltextcont.c:94
static HRESULT WINAPI HTMLTextContainer_GetTypeInfo(IHTMLTextContainer *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmltextcont.c:51
static HRESULT WINAPI HTMLTextContainer_put_scrollLeft(IHTMLTextContainer *iface, LONG v)
Definition: htmltextcont.c:121
static HTMLTextContainer * impl_from_IHTMLTextContainer(IHTMLTextContainer *iface)
Definition: htmltextcont.c:21
static HRESULT WINAPI HTMLTextContainer_get_scrollTop(IHTMLTextContainer *iface, LONG *p)
Definition: htmltextcont.c:112
static HRESULT WINAPI HTMLTextContainer_get_scrollHeight(IHTMLTextContainer *iface, LONG *p)
Definition: htmltextcont.c:85
static HRESULT WINAPI HTMLTextContainer_GetIDsOfNames(IHTMLTextContainer *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmltextcont.c:59
static ULONG WINAPI HTMLTextContainer_AddRef(IHTMLTextContainer *iface)
Definition: htmltextcont.c:33
static HRESULT WINAPI HTMLTextContainer_GetTypeInfoCount(IHTMLTextContainer *iface, UINT *pctinfo)
Definition: htmltextcont.c:45
static const IHTMLTextContainerVtbl HTMLTextContainerVtbl
Definition: htmltextcont.c:153
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
static LPOLESTR
Definition: stg_prop.c:27
static VARIANTARG static DISPID
Definition: ordinal.c:52
unsigned int UINT
Definition: ndis.h:50
long LONG
Definition: pedump.c:60
#define REFIID
Definition: guiddef.h:118
DWORD LCID
Definition: nls.h:13
#define TRACE(s)
Definition: solgame.cpp:4
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
uint32_t ULONG
Definition: typedefs.h:59
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531
#define WINAPI
Definition: msvc.h:6