oleaut32: Use WdtpInterfacePointer_* functions in VARIANT marshalling.
[wine.git] / dlls / mshtml / htmlstyle3.c
blob9355bd0b1cb265051c57fe6055bdc4cfaed0d690
1 /*
2 * Copyright 2009 Alistair Leslie-Hughes
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
19 #include <stdarg.h>
21 #define COBJMACROS
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winuser.h"
26 #include "ole2.h"
28 #include "mshtml_private.h"
29 #include "htmlstyle.h"
31 #include "wine/debug.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
35 static inline HTMLStyle *impl_from_IHTMLStyle3(IHTMLStyle3 *iface)
37 return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle3_iface);
40 static HRESULT WINAPI HTMLStyle3_QueryInterface(IHTMLStyle3 *iface, REFIID riid, void **ppv)
42 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
44 return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
47 static ULONG WINAPI HTMLStyle3_AddRef(IHTMLStyle3 *iface)
49 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
51 return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
54 static ULONG WINAPI HTMLStyle3_Release(IHTMLStyle3 *iface)
56 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
58 return IHTMLStyle_Release(&This->IHTMLStyle_iface);
61 static HRESULT WINAPI HTMLStyle3_GetTypeInfoCount(IHTMLStyle3 *iface, UINT *pctinfo)
63 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
64 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
67 static HRESULT WINAPI HTMLStyle3_GetTypeInfo(IHTMLStyle3 *iface, UINT iTInfo,
68 LCID lcid, ITypeInfo **ppTInfo)
70 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
71 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
74 static HRESULT WINAPI HTMLStyle3_GetIDsOfNames(IHTMLStyle3 *iface, REFIID riid,
75 LPOLESTR *rgszNames, UINT cNames,
76 LCID lcid, DISPID *rgDispId)
78 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
79 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
80 lcid, rgDispId);
83 static HRESULT WINAPI HTMLStyle3_Invoke(IHTMLStyle3 *iface, DISPID dispIdMember,
84 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
85 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
87 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
88 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
89 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
92 static HRESULT WINAPI HTMLStyle3_put_layoutFlow(IHTMLStyle3 *iface, BSTR v)
94 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
95 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
96 return E_NOTIMPL;
99 static HRESULT WINAPI HTMLStyle3_get_layoutFlow(IHTMLStyle3 *iface, BSTR *p)
101 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
102 FIXME("(%p)->(%p)\n", This, p);
103 return E_NOTIMPL;
106 static const WCHAR zoomW[] = {'z','o','o','m',0};
108 static HRESULT WINAPI HTMLStyle3_put_zoom(IHTMLStyle3 *iface, VARIANT v)
110 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
111 VARIANT *var;
112 HRESULT hres;
114 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
116 /* zoom property is IE CSS extension that is mostly used as a hack to workaround IE bugs.
117 * The value is set to 1 then. We can safely ignore setting zoom to 1. */
118 if(V_VT(&v) != VT_I4 || V_I4(&v) != 1)
119 WARN("stub for %s\n", debugstr_variant(&v));
121 hres = dispex_get_dprop_ref(&This->dispex, zoomW, TRUE, &var);
122 if(FAILED(hres))
123 return hres;
125 return VariantChangeType(var, &v, 0, VT_BSTR);
128 static HRESULT WINAPI HTMLStyle3_get_zoom(IHTMLStyle3 *iface, VARIANT *p)
130 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
131 VARIANT *var;
132 HRESULT hres;
134 TRACE("(%p)->(%p)\n", This, p);
136 hres = dispex_get_dprop_ref(&This->dispex, zoomW, FALSE, &var);
137 if(hres == DISP_E_UNKNOWNNAME) {
138 V_VT(p) = VT_BSTR;
139 V_BSTR(p) = NULL;
140 return S_OK;
142 if(FAILED(hres))
143 return hres;
145 return VariantCopy(p, var);
148 static HRESULT WINAPI HTMLStyle3_put_wordWrap(IHTMLStyle3 *iface, BSTR v)
150 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
152 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
154 return set_nsstyle_attr(This->nsstyle, STYLEID_WORD_WRAP, v, 0);
157 static HRESULT WINAPI HTMLStyle3_get_wordWrap(IHTMLStyle3 *iface, BSTR *p)
159 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
161 TRACE("(%p)->(%p)\n", This, p);
163 return get_nsstyle_attr(This->nsstyle, STYLEID_WORD_WRAP, p, 0);
166 static HRESULT WINAPI HTMLStyle3_put_textUnderlinePosition(IHTMLStyle3 *iface, BSTR v)
168 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
169 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
170 return E_NOTIMPL;
173 static HRESULT WINAPI HTMLStyle3_get_textUnderlinePosition(IHTMLStyle3 *iface, BSTR *p)
175 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
176 FIXME("(%p)->(%p)\n", This, p);
177 return E_NOTIMPL;
180 static HRESULT WINAPI HTMLStyle3_put_scrollbarBaseColor(IHTMLStyle3 *iface, VARIANT v)
182 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
183 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
184 return E_NOTIMPL;
187 static HRESULT WINAPI HTMLStyle3_get_scrollbarBaseColor(IHTMLStyle3 *iface, VARIANT *p)
189 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
190 FIXME("(%p)->(%p)\n", This, p);
191 return E_NOTIMPL;
194 static HRESULT WINAPI HTMLStyle3_put_scrollbarFaceColor(IHTMLStyle3 *iface, VARIANT v)
196 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
197 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
198 return E_NOTIMPL;
201 static HRESULT WINAPI HTMLStyle3_get_scrollbarFaceColor(IHTMLStyle3 *iface, VARIANT *p)
203 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
204 FIXME("(%p)->(%p)\n", This, p);
205 return E_NOTIMPL;
208 static HRESULT WINAPI HTMLStyle3_put_scrollbar3dLightColor(IHTMLStyle3 *iface, VARIANT v)
210 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
211 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
212 return E_NOTIMPL;
215 static HRESULT WINAPI HTMLStyle3_get_scrollbar3dLightColor(IHTMLStyle3 *iface, VARIANT *p)
217 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
218 FIXME("(%p)->(%p)\n", This, p);
219 return E_NOTIMPL;
222 static HRESULT WINAPI HTMLStyle3_put_scrollbarShadowColor(IHTMLStyle3 *iface, VARIANT v)
224 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
225 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
226 return E_NOTIMPL;
229 static HRESULT WINAPI HTMLStyle3_get_scrollbarShadowColor(IHTMLStyle3 *iface, VARIANT *p)
231 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
232 FIXME("(%p)->(%p)\n", This, p);
233 return E_NOTIMPL;
236 static HRESULT WINAPI HTMLStyle3_put_scrollbarHighlightColor(IHTMLStyle3 *iface, VARIANT v)
238 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
239 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
240 return E_NOTIMPL;
243 static HRESULT WINAPI HTMLStyle3_get_scrollbarHighlightColor(IHTMLStyle3 *iface, VARIANT *p)
245 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
246 FIXME("(%p)->(%p)\n", This, p);
247 return E_NOTIMPL;
250 static HRESULT WINAPI HTMLStyle3_put_scrollbarDarkShadowColor(IHTMLStyle3 *iface, VARIANT v)
252 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
253 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
254 return E_NOTIMPL;
257 static HRESULT WINAPI HTMLStyle3_get_scrollbarDarkShadowColor(IHTMLStyle3 *iface, VARIANT *p)
259 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
260 FIXME("(%p)->(%p)\n", This, p);
261 return E_NOTIMPL;
264 static HRESULT WINAPI HTMLStyle3_put_scrollbarArrowColor(IHTMLStyle3 *iface, VARIANT v)
266 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
267 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
268 return E_NOTIMPL;
271 static HRESULT WINAPI HTMLStyle3_get_scrollbarArrowColor(IHTMLStyle3 *iface, VARIANT *p)
273 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
274 FIXME("(%p)->(%p)\n", This, p);
275 return E_NOTIMPL;
278 static HRESULT WINAPI HTMLStyle3_put_scrollbarTrackColor(IHTMLStyle3 *iface, VARIANT v)
280 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
281 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
282 return E_NOTIMPL;
285 static HRESULT WINAPI HTMLStyle3_get_scrollbarTrackColor(IHTMLStyle3 *iface, VARIANT *p)
287 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
288 FIXME("(%p)->(%p)\n", This, p);
289 return E_NOTIMPL;
292 static HRESULT WINAPI HTMLStyle3_put_writingMode(IHTMLStyle3 *iface, BSTR v)
294 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
295 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
296 return E_NOTIMPL;
299 static HRESULT WINAPI HTMLStyle3_get_writingMode(IHTMLStyle3 *iface, BSTR *p)
301 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
302 FIXME("(%p)->(%p)\n", This, p);
303 return E_NOTIMPL;
306 static HRESULT WINAPI HTMLStyle3_put_textAlignLast(IHTMLStyle3 *iface, BSTR v)
308 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
309 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
310 return E_NOTIMPL;
313 static HRESULT WINAPI HTMLStyle3_get_textAlignLast(IHTMLStyle3 *iface, BSTR *p)
315 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
316 FIXME("(%p)->(%p)\n", This, p);
317 return E_NOTIMPL;
320 static HRESULT WINAPI HTMLStyle3_put_textKashidaSpace(IHTMLStyle3 *iface, VARIANT v)
322 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
323 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
324 return E_NOTIMPL;
327 static HRESULT WINAPI HTMLStyle3_get_textKashidaSpace(IHTMLStyle3 *iface, VARIANT *p)
329 HTMLStyle *This = impl_from_IHTMLStyle3(iface);
330 FIXME("(%p)->(%p)\n", This, p);
331 return E_NOTIMPL;
334 static const IHTMLStyle3Vtbl HTMLStyle3Vtbl = {
335 HTMLStyle3_QueryInterface,
336 HTMLStyle3_AddRef,
337 HTMLStyle3_Release,
338 HTMLStyle3_GetTypeInfoCount,
339 HTMLStyle3_GetTypeInfo,
340 HTMLStyle3_GetIDsOfNames,
341 HTMLStyle3_Invoke,
342 HTMLStyle3_put_layoutFlow,
343 HTMLStyle3_get_layoutFlow,
344 HTMLStyle3_put_zoom,
345 HTMLStyle3_get_zoom,
346 HTMLStyle3_put_wordWrap,
347 HTMLStyle3_get_wordWrap,
348 HTMLStyle3_put_textUnderlinePosition,
349 HTMLStyle3_get_textUnderlinePosition,
350 HTMLStyle3_put_scrollbarBaseColor,
351 HTMLStyle3_get_scrollbarBaseColor,
352 HTMLStyle3_put_scrollbarFaceColor,
353 HTMLStyle3_get_scrollbarFaceColor,
354 HTMLStyle3_put_scrollbar3dLightColor,
355 HTMLStyle3_get_scrollbar3dLightColor,
356 HTMLStyle3_put_scrollbarShadowColor,
357 HTMLStyle3_get_scrollbarShadowColor,
358 HTMLStyle3_put_scrollbarHighlightColor,
359 HTMLStyle3_get_scrollbarHighlightColor,
360 HTMLStyle3_put_scrollbarDarkShadowColor,
361 HTMLStyle3_get_scrollbarDarkShadowColor,
362 HTMLStyle3_put_scrollbarArrowColor,
363 HTMLStyle3_get_scrollbarArrowColor,
364 HTMLStyle3_put_scrollbarTrackColor,
365 HTMLStyle3_get_scrollbarTrackColor,
366 HTMLStyle3_put_writingMode,
367 HTMLStyle3_get_writingMode,
368 HTMLStyle3_put_textAlignLast,
369 HTMLStyle3_get_textAlignLast,
370 HTMLStyle3_put_textKashidaSpace,
371 HTMLStyle3_get_textKashidaSpace
375 * IHTMLStyle4 Interface
377 static inline HTMLStyle *impl_from_IHTMLStyle4(IHTMLStyle4 *iface)
379 return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle4_iface);
382 static HRESULT WINAPI HTMLStyle4_QueryInterface(IHTMLStyle4 *iface, REFIID riid, void **ppv)
384 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
386 return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
389 static ULONG WINAPI HTMLStyle4_AddRef(IHTMLStyle4 *iface)
391 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
393 return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
396 static ULONG WINAPI HTMLStyle4_Release(IHTMLStyle4 *iface)
398 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
400 return IHTMLStyle_Release(&This->IHTMLStyle_iface);
403 static HRESULT WINAPI HTMLStyle4_GetTypeInfoCount(IHTMLStyle4 *iface, UINT *pctinfo)
405 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
406 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
409 static HRESULT WINAPI HTMLStyle4_GetTypeInfo(IHTMLStyle4 *iface, UINT iTInfo,
410 LCID lcid, ITypeInfo **ppTInfo)
412 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
413 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
416 static HRESULT WINAPI HTMLStyle4_GetIDsOfNames(IHTMLStyle4 *iface, REFIID riid,
417 LPOLESTR *rgszNames, UINT cNames,
418 LCID lcid, DISPID *rgDispId)
420 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
421 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
422 lcid, rgDispId);
425 static HRESULT WINAPI HTMLStyle4_Invoke(IHTMLStyle4 *iface, DISPID dispIdMember,
426 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
427 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
429 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
430 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
431 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
434 static HRESULT WINAPI HTMLStyle4_put_textOverflow(IHTMLStyle4 *iface, BSTR v)
436 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
437 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
438 return E_NOTIMPL;
441 static HRESULT WINAPI HTMLStyle4_get_textOverflow(IHTMLStyle4 *iface, BSTR *p)
443 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
444 FIXME("(%p)->(%p)\n", This, p);
445 return E_NOTIMPL;
448 static HRESULT WINAPI HTMLStyle4_put_minHeight(IHTMLStyle4 *iface, VARIANT v)
450 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
452 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
454 return set_nsstyle_attr_var(This->nsstyle, STYLEID_MIN_HEIGHT, &v, 0);
457 static HRESULT WINAPI HTMLStyle4_get_minHeight(IHTMLStyle4 *iface, VARIANT *p)
459 HTMLStyle *This = impl_from_IHTMLStyle4(iface);
461 TRACE("(%p)->(%p)\n", This, p);
463 return get_nsstyle_attr_var(This->nsstyle, STYLEID_MIN_HEIGHT, p, 0);
466 static const IHTMLStyle4Vtbl HTMLStyle4Vtbl = {
467 HTMLStyle4_QueryInterface,
468 HTMLStyle4_AddRef,
469 HTMLStyle4_Release,
470 HTMLStyle4_GetTypeInfoCount,
471 HTMLStyle4_GetTypeInfo,
472 HTMLStyle4_GetIDsOfNames,
473 HTMLStyle4_Invoke,
474 HTMLStyle4_put_textOverflow,
475 HTMLStyle4_get_textOverflow,
476 HTMLStyle4_put_minHeight,
477 HTMLStyle4_get_minHeight
480 static inline HTMLStyle *impl_from_IHTMLStyle5(IHTMLStyle5 *iface)
482 return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle5_iface);
485 static HRESULT WINAPI HTMLStyle5_QueryInterface(IHTMLStyle5 *iface, REFIID riid, void **ppv)
487 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
489 return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
492 static ULONG WINAPI HTMLStyle5_AddRef(IHTMLStyle5 *iface)
494 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
496 return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
499 static ULONG WINAPI HTMLStyle5_Release(IHTMLStyle5 *iface)
501 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
503 return IHTMLStyle_Release(&This->IHTMLStyle_iface);
506 static HRESULT WINAPI HTMLStyle5_GetTypeInfoCount(IHTMLStyle5 *iface, UINT *pctinfo)
508 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
509 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
512 static HRESULT WINAPI HTMLStyle5_GetTypeInfo(IHTMLStyle5 *iface, UINT iTInfo,
513 LCID lcid, ITypeInfo **ppTInfo)
515 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
516 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
519 static HRESULT WINAPI HTMLStyle5_GetIDsOfNames(IHTMLStyle5 *iface, REFIID riid,
520 LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
522 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
523 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
524 lcid, rgDispId);
527 static HRESULT WINAPI HTMLStyle5_Invoke(IHTMLStyle5 *iface, DISPID dispIdMember,
528 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
529 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
531 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
532 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
533 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
536 static HRESULT WINAPI HTMLStyle5_put_msInterpolationMode(IHTMLStyle5 *iface, BSTR v)
538 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
539 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
540 return E_NOTIMPL;
543 static HRESULT WINAPI HTMLStyle5_get_msInterpolationMode(IHTMLStyle5 *iface, BSTR *p)
545 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
546 FIXME("(%p)->(%p)\n", This, p);
547 return E_NOTIMPL;
550 static HRESULT WINAPI HTMLStyle5_put_maxHeight(IHTMLStyle5 *iface, VARIANT v)
552 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
554 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
556 return set_nsstyle_attr_var(This->nsstyle, STYLEID_MAX_HEIGHT, &v, ATTR_FIX_PX);
559 static HRESULT WINAPI HTMLStyle5_get_maxHeight(IHTMLStyle5 *iface, VARIANT *p)
561 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
563 TRACE("(%p)->(%p)\n", This, debugstr_variant(p));
565 return get_nsstyle_attr_var(This->nsstyle, STYLEID_MAX_HEIGHT, p, 0);
568 static HRESULT WINAPI HTMLStyle5_put_minWidth(IHTMLStyle5 *iface, VARIANT v)
570 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
572 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
574 return set_nsstyle_attr_var(This->nsstyle, STYLEID_MIN_WIDTH, &v, ATTR_FIX_PX);
577 static HRESULT WINAPI HTMLStyle5_get_minWidth(IHTMLStyle5 *iface, VARIANT *p)
579 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
581 TRACE("(%p)->(%p)\n", This, p);
583 return get_nsstyle_attr_var(This->nsstyle, STYLEID_MIN_WIDTH, p, 0);
586 static HRESULT WINAPI HTMLStyle5_put_maxWidth(IHTMLStyle5 *iface, VARIANT v)
588 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
590 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
592 return set_nsstyle_attr_var(This->nsstyle, STYLEID_MAX_WIDTH, &v, ATTR_FIX_PX);
595 static HRESULT WINAPI HTMLStyle5_get_maxWidth(IHTMLStyle5 *iface, VARIANT *p)
597 HTMLStyle *This = impl_from_IHTMLStyle5(iface);
599 TRACE("(%p)->(%p)\n", This, p);
601 return get_nsstyle_attr_var(This->nsstyle, STYLEID_MAX_WIDTH, p, 0);
604 static const IHTMLStyle5Vtbl HTMLStyle5Vtbl = {
605 HTMLStyle5_QueryInterface,
606 HTMLStyle5_AddRef,
607 HTMLStyle5_Release,
608 HTMLStyle5_GetTypeInfoCount,
609 HTMLStyle5_GetTypeInfo,
610 HTMLStyle5_GetIDsOfNames,
611 HTMLStyle5_Invoke,
612 HTMLStyle5_put_msInterpolationMode,
613 HTMLStyle5_get_msInterpolationMode,
614 HTMLStyle5_put_maxHeight,
615 HTMLStyle5_get_maxHeight,
616 HTMLStyle5_put_minWidth,
617 HTMLStyle5_get_minWidth,
618 HTMLStyle5_put_maxWidth,
619 HTMLStyle5_get_maxWidth
622 static inline HTMLStyle *impl_from_IHTMLStyle6(IHTMLStyle6 *iface)
624 return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle6_iface);
627 static HRESULT WINAPI HTMLStyle6_QueryInterface(IHTMLStyle6 *iface, REFIID riid, void **ppv)
629 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
631 return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
634 static ULONG WINAPI HTMLStyle6_AddRef(IHTMLStyle6 *iface)
636 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
638 return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
641 static ULONG WINAPI HTMLStyle6_Release(IHTMLStyle6 *iface)
643 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
645 return IHTMLStyle_Release(&This->IHTMLStyle_iface);
648 static HRESULT WINAPI HTMLStyle6_GetTypeInfoCount(IHTMLStyle6 *iface, UINT *pctinfo)
650 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
651 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
654 static HRESULT WINAPI HTMLStyle6_GetTypeInfo(IHTMLStyle6 *iface, UINT iTInfo,
655 LCID lcid, ITypeInfo **ppTInfo)
657 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
658 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
661 static HRESULT WINAPI HTMLStyle6_GetIDsOfNames(IHTMLStyle6 *iface, REFIID riid,
662 LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
664 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
665 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
666 lcid, rgDispId);
669 static HRESULT WINAPI HTMLStyle6_Invoke(IHTMLStyle6 *iface, DISPID dispIdMember,
670 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
671 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
673 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
674 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
675 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
678 static HRESULT WINAPI HTMLStyle6_put_content(IHTMLStyle6 *iface, BSTR v)
680 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
681 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
682 return E_NOTIMPL;
685 static HRESULT WINAPI HTMLStyle6_get_content(IHTMLStyle6 *iface, BSTR *p)
687 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
688 FIXME("(%p)->(%p)\n", This, p);
689 return E_NOTIMPL;
692 static HRESULT WINAPI HTMLStyle6_put_contentSide(IHTMLStyle6 *iface, BSTR v)
694 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
695 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
696 return E_NOTIMPL;
699 static HRESULT WINAPI HTMLStyle6_get_contentSide(IHTMLStyle6 *iface, BSTR *p)
701 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
702 FIXME("(%p)->(%p)\n", This, p);
703 return E_NOTIMPL;
706 static HRESULT WINAPI HTMLStyle6_put_counterIncrement(IHTMLStyle6 *iface, BSTR v)
708 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
709 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
710 return E_NOTIMPL;
713 static HRESULT WINAPI HTMLStyle6_get_counterIncrement(IHTMLStyle6 *iface, BSTR *p)
715 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
716 FIXME("(%p)->(%p)\n", This, p);
717 return E_NOTIMPL;
720 static HRESULT WINAPI HTMLStyle6_put_counterReset(IHTMLStyle6 *iface, BSTR v)
722 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
723 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
724 return E_NOTIMPL;
727 static HRESULT WINAPI HTMLStyle6_get_counterReset(IHTMLStyle6 *iface, BSTR *p)
729 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
730 FIXME("(%p)->(%p)\n", This, p);
731 return E_NOTIMPL;
734 static HRESULT WINAPI HTMLStyle6_put_outline(IHTMLStyle6 *iface, BSTR v)
736 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
738 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
740 return set_nsstyle_attr(This->nsstyle, STYLEID_OUTLINE, v, 0);
743 static HRESULT WINAPI HTMLStyle6_get_outline(IHTMLStyle6 *iface, BSTR *p)
745 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
747 TRACE("(%p)->(%p)\n", This, p);
749 return get_nsstyle_attr(This->nsstyle, STYLEID_OUTLINE, p, ATTR_NO_NULL);
752 static HRESULT WINAPI HTMLStyle6_put_outlineWidth(IHTMLStyle6 *iface, VARIANT v)
754 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
755 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
756 return E_NOTIMPL;
759 static HRESULT WINAPI HTMLStyle6_get_outlineWidth(IHTMLStyle6 *iface, VARIANT *p)
761 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
762 FIXME("(%p)->(%p)\n", This, p);
763 return E_NOTIMPL;
766 static HRESULT WINAPI HTMLStyle6_put_outlineStyle(IHTMLStyle6 *iface, BSTR v)
768 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
769 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
770 return E_NOTIMPL;
773 static HRESULT WINAPI HTMLStyle6_get_outlineStyle(IHTMLStyle6 *iface, BSTR *p)
775 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
776 FIXME("(%p)->(%p)\n", This, p);
777 return E_NOTIMPL;
780 static HRESULT WINAPI HTMLStyle6_put_outlineColor(IHTMLStyle6 *iface, VARIANT v)
782 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
783 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
784 return E_NOTIMPL;
787 static HRESULT WINAPI HTMLStyle6_get_outlineColor(IHTMLStyle6 *iface, VARIANT *p)
789 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
790 FIXME("(%p)->(%p)\n", This, p);
791 return E_NOTIMPL;
794 static HRESULT WINAPI HTMLStyle6_put_boxSizing(IHTMLStyle6 *iface, BSTR v)
796 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
798 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
800 return set_nsstyle_attr(This->nsstyle, STYLEID_BOX_SIZING, v, 0);
803 static HRESULT WINAPI HTMLStyle6_get_boxSizing(IHTMLStyle6 *iface, BSTR *p)
805 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
807 TRACE("(%p)->(%p)\n", This, p);
809 return get_nsstyle_attr(This->nsstyle, STYLEID_BOX_SIZING, p, 0);
812 static HRESULT WINAPI HTMLStyle6_put_boxSpacing(IHTMLStyle6 *iface, BSTR v)
814 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
815 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
816 return E_NOTIMPL;
819 static HRESULT WINAPI HTMLStyle6_get_boxSpacing(IHTMLStyle6 *iface, BSTR *p)
821 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
822 FIXME("(%p)->(%p)\n", This, p);
823 return E_NOTIMPL;
826 static HRESULT WINAPI HTMLStyle6_put_orphans(IHTMLStyle6 *iface, VARIANT v)
828 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
829 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
830 return E_NOTIMPL;
833 static HRESULT WINAPI HTMLStyle6_get_orphans(IHTMLStyle6 *iface, VARIANT *p)
835 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
836 FIXME("(%p)->(%p)\n", This, p);
837 return E_NOTIMPL;
840 static HRESULT WINAPI HTMLStyle6_put_windows(IHTMLStyle6 *iface, VARIANT v)
842 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
843 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
844 return E_NOTIMPL;
847 static HRESULT WINAPI HTMLStyle6_get_windows(IHTMLStyle6 *iface, VARIANT *p)
849 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
850 FIXME("(%p)->(%p)\n", This, p);
851 return E_NOTIMPL;
854 static HRESULT WINAPI HTMLStyle6_put_pageBreakInside(IHTMLStyle6 *iface, BSTR v)
856 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
857 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
858 return E_NOTIMPL;
861 static HRESULT WINAPI HTMLStyle6_get_pageBreakInside(IHTMLStyle6 *iface, BSTR *p)
863 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
864 FIXME("(%p)->(%p)\n", This, p);
865 return E_NOTIMPL;
868 static HRESULT WINAPI HTMLStyle6_put_emptyCells(IHTMLStyle6 *iface, BSTR v)
870 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
871 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
872 return E_NOTIMPL;
875 static HRESULT WINAPI HTMLStyle6_get_emptyCells(IHTMLStyle6 *iface, BSTR *p)
877 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
878 FIXME("(%p)->(%p)\n", This, p);
879 return E_NOTIMPL;
882 static HRESULT WINAPI HTMLStyle6_put_msBlockProgression(IHTMLStyle6 *iface, BSTR v)
884 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
885 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
886 return E_NOTIMPL;
889 static HRESULT WINAPI HTMLStyle6_get_msBlockProgression(IHTMLStyle6 *iface, BSTR *p)
891 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
892 FIXME("(%p)->(%p)\n", This, p);
893 return E_NOTIMPL;
896 static HRESULT WINAPI HTMLStyle6_put_quotes(IHTMLStyle6 *iface, BSTR v)
898 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
899 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
900 return E_NOTIMPL;
903 static HRESULT WINAPI HTMLStyle6_get_quotes(IHTMLStyle6 *iface, BSTR *p)
905 HTMLStyle *This = impl_from_IHTMLStyle6(iface);
906 FIXME("(%p)->(%p)\n", This, p);
907 return E_NOTIMPL;
910 static const IHTMLStyle6Vtbl HTMLStyle6Vtbl = {
911 HTMLStyle6_QueryInterface,
912 HTMLStyle6_AddRef,
913 HTMLStyle6_Release,
914 HTMLStyle6_GetTypeInfoCount,
915 HTMLStyle6_GetTypeInfo,
916 HTMLStyle6_GetIDsOfNames,
917 HTMLStyle6_Invoke,
918 HTMLStyle6_put_content,
919 HTMLStyle6_get_content,
920 HTMLStyle6_put_contentSide,
921 HTMLStyle6_get_contentSide,
922 HTMLStyle6_put_counterIncrement,
923 HTMLStyle6_get_counterIncrement,
924 HTMLStyle6_put_counterReset,
925 HTMLStyle6_get_counterReset,
926 HTMLStyle6_put_outline,
927 HTMLStyle6_get_outline,
928 HTMLStyle6_put_outlineWidth,
929 HTMLStyle6_get_outlineWidth,
930 HTMLStyle6_put_outlineStyle,
931 HTMLStyle6_get_outlineStyle,
932 HTMLStyle6_put_outlineColor,
933 HTMLStyle6_get_outlineColor,
934 HTMLStyle6_put_boxSizing,
935 HTMLStyle6_get_boxSizing,
936 HTMLStyle6_put_boxSpacing,
937 HTMLStyle6_get_boxSpacing,
938 HTMLStyle6_put_orphans,
939 HTMLStyle6_get_orphans,
940 HTMLStyle6_put_windows,
941 HTMLStyle6_get_windows,
942 HTMLStyle6_put_pageBreakInside,
943 HTMLStyle6_get_pageBreakInside,
944 HTMLStyle6_put_emptyCells,
945 HTMLStyle6_get_emptyCells,
946 HTMLStyle6_put_msBlockProgression,
947 HTMLStyle6_get_msBlockProgression,
948 HTMLStyle6_put_quotes,
949 HTMLStyle6_get_quotes
952 void HTMLStyle3_Init(HTMLStyle *This)
954 This->IHTMLStyle3_iface.lpVtbl = &HTMLStyle3Vtbl;
955 This->IHTMLStyle4_iface.lpVtbl = &HTMLStyle4Vtbl;
956 This->IHTMLStyle5_iface.lpVtbl = &HTMLStyle5Vtbl;
957 This->IHTMLStyle6_iface.lpVtbl = &HTMLStyle6Vtbl;