2 * Copyright 2006 Jacek Caban for CodeWeavers
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.
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.
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
31 #include "wine/debug.h"
33 #include "mshtml_private.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
37 #define HTMLTEXTCONT_THIS(iface) DEFINE_THIS(HTMLTextContainer, HTMLTextContainer, iface)
39 static HRESULT WINAPI
HTMLTextContainer_QueryInterface(IHTMLTextContainer
*iface
,
40 REFIID riid
, void **ppv
)
42 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
43 return IHTMLElement_QueryInterface(HTMLELEM(&This
->element
), riid
, ppv
);
46 static ULONG WINAPI
HTMLTextContainer_AddRef(IHTMLTextContainer
*iface
)
48 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
49 return IHTMLElement_AddRef(HTMLELEM(&This
->element
));
52 static ULONG WINAPI
HTMLTextContainer_Release(IHTMLTextContainer
*iface
)
54 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
55 return IHTMLElement_Release(HTMLELEM(&This
->element
));
58 static HRESULT WINAPI
HTMLTextContainer_GetTypeInfoCount(IHTMLTextContainer
*iface
, UINT
*pctinfo
)
60 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
61 FIXME("(%p)->(%p)\n", This
, pctinfo
);
65 static HRESULT WINAPI
HTMLTextContainer_GetTypeInfo(IHTMLTextContainer
*iface
, UINT iTInfo
,
66 LCID lcid
, ITypeInfo
**ppTInfo
)
68 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
69 FIXME("(%p)->(%u %u %p)\n", This
, iTInfo
, lcid
, ppTInfo
);
73 static HRESULT WINAPI
HTMLTextContainer_GetIDsOfNames(IHTMLTextContainer
*iface
, REFIID riid
,
74 LPOLESTR
*rgszNames
, UINT cNames
,
75 LCID lcid
, DISPID
*rgDispId
)
77 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
78 FIXME("(%p)->(%s %p %u %u %p)\n", This
, debugstr_guid(riid
), rgszNames
, cNames
,
83 static HRESULT WINAPI
HTMLTextContainer_Invoke(IHTMLTextContainer
*iface
, DISPID dispIdMember
,
84 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
85 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
87 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
88 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This
, dispIdMember
, debugstr_guid(riid
),
89 lcid
, wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
93 static HRESULT WINAPI
HTMLTextContainer_createControlRange(IHTMLTextContainer
*iface
,
96 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
97 FIXME("(%p)->(%p)\n", This
, range
);
101 static HRESULT WINAPI
HTMLTextContainer_get_scrollHeight(IHTMLTextContainer
*iface
, long *p
)
103 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
105 TRACE("(%p)->(%p)\n", This
, p
);
107 return IHTMLElement2_get_scrollHeight(HTMLELEM2(&This
->element
), p
);
110 static HRESULT WINAPI
HTMLTextContainer_get_scrollWidth(IHTMLTextContainer
*iface
, long *p
)
112 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
114 TRACE("(%p)->(%p)\n", This
, p
);
116 return IHTMLElement2_get_scrollWidth(HTMLELEM2(&This
->element
), p
);
119 static HRESULT WINAPI
HTMLTextContainer_put_scrollTop(IHTMLTextContainer
*iface
, long v
)
121 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
123 TRACE("(%p)->(%ld)\n", This
, v
);
125 return IHTMLElement2_put_scrollTop(HTMLELEM2(&This
->element
), v
);
128 static HRESULT WINAPI
HTMLTextContainer_get_scrollTop(IHTMLTextContainer
*iface
, long *p
)
130 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
132 TRACE("(%p)->(%p)\n", This
, p
);
134 return IHTMLElement2_get_scrollTop(HTMLELEM2(&This
->element
), p
);
137 static HRESULT WINAPI
HTMLTextContainer_put_scrollLeft(IHTMLTextContainer
*iface
, long v
)
139 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
141 TRACE("(%p)->(%ld)\n", This
, v
);
143 return IHTMLElement2_put_scrollLeft(HTMLELEM2(&This
->element
), v
);
146 static HRESULT WINAPI
HTMLTextContainer_get_scrollLeft(IHTMLTextContainer
*iface
, long *p
)
148 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
149 FIXME("(%p)->(%p)\n", This
, p
);
153 static HRESULT WINAPI
HTMLTextContainer_put_onscroll(IHTMLTextContainer
*iface
, VARIANT v
)
155 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
156 FIXME("(%p)->()\n", This
);
160 static HRESULT WINAPI
HTMLTextContainer_get_onscroll(IHTMLTextContainer
*iface
, VARIANT
*p
)
162 HTMLTextContainer
*This
= HTMLTEXTCONT_THIS(iface
);
163 FIXME("(%p)->(%p)\n", This
, p
);
167 #undef HTMLTEXTCONT_THIS
169 static const IHTMLTextContainerVtbl HTMLTextContainerVtbl
= {
170 HTMLTextContainer_QueryInterface
,
171 HTMLTextContainer_AddRef
,
172 HTMLTextContainer_Release
,
173 HTMLTextContainer_GetTypeInfoCount
,
174 HTMLTextContainer_GetTypeInfo
,
175 HTMLTextContainer_GetIDsOfNames
,
176 HTMLTextContainer_Invoke
,
177 HTMLTextContainer_createControlRange
,
178 HTMLTextContainer_get_scrollHeight
,
179 HTMLTextContainer_get_scrollWidth
,
180 HTMLTextContainer_put_scrollTop
,
181 HTMLTextContainer_get_scrollTop
,
182 HTMLTextContainer_put_scrollLeft
,
183 HTMLTextContainer_get_scrollLeft
,
184 HTMLTextContainer_put_onscroll
,
185 HTMLTextContainer_get_onscroll
188 void HTMLTextContainer_Init(HTMLTextContainer
*This
)
190 HTMLElement_Init(&This
->element
);
192 This
->lpHTMLTextContainerVtbl
= &HTMLTextContainerVtbl
;
194 ConnectionPoint_Init(&This
->cp
, &This
->element
.cp_container
, &DIID_HTMLTextContainerEvents
);