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
28 #include "wine/debug.h"
29 #include "wine/unicode.h"
31 #include "mshtml_private.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
37 const IHTMLStyleVtbl
*lpHTMLStyleVtbl
;
41 nsIDOMCSSStyleDeclaration
*nsstyle
;
44 #define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl)
46 static const WCHAR attrBackground
[] =
47 {'b','a','c','k','g','r','o','u','n','d',0};
48 static const WCHAR attrBackgroundColor
[] =
49 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
50 static const WCHAR attrBackgroundImage
[] =
51 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
52 static const WCHAR attrBorderLeft
[] =
53 {'b','o','r','d','e','r','-','l','e','f','t',0};
54 static const WCHAR attrColor
[] =
55 {'c','o','l','o','r',0};
56 static const WCHAR attrDisplay
[] =
57 {'d','i','s','p','l','a','y',0};
58 static const WCHAR attrFontFamily
[] =
59 {'f','o','n','t','-','f','a','m','i','l','y',0};
60 static const WCHAR attrFontSize
[] =
61 {'f','o','n','t','-','s','i','z','e',0};
62 static const WCHAR attrFontStyle
[] =
63 {'f','o','n','t','-','s','t','y','l','e',0};
64 static const WCHAR attrFontWeight
[] =
65 {'f','o','n','t','-','w','e','i','g','h','t',0};
66 static const WCHAR attrMargin
[] =
67 {'m','a','r','g','i','n',0};
68 static const WCHAR attrMarginLeft
[] =
69 {'m','a','r','g','i','n','-','l','e','f','t',0};
70 static const WCHAR attrMarginRight
[] =
71 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
72 static const WCHAR attrPaddingLeft
[] =
73 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
74 static const WCHAR attrTextDecoration
[] =
75 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
76 static const WCHAR attrVisibility
[] =
77 {'v','i','s','i','b','i','l','i','t','y',0};
78 static const WCHAR attrWidth
[] =
79 {'w','i','d','t','h',0};
81 static const WCHAR valLineThrough
[] =
82 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
83 static const WCHAR valUnderline
[] =
84 {'u','n','d','e','r','l','i','n','e',0};
86 static const WCHAR px_formatW
[] = {'%','d','p','x',0};
87 static const WCHAR emptyW
[] = {0};
89 static LPWSTR
fix_px_value(LPCWSTR val
)
94 while(*ptr
&& isspaceW(*ptr
))
99 while(*ptr
&& isdigitW(*ptr
))
102 if(!*ptr
|| isspaceW(*ptr
)) {
104 int len
= strlenW(val
)+1;
106 ret
= heap_alloc((len
+2)*sizeof(WCHAR
));
107 memcpy(ret
, val
, (ptr
-val
)*sizeof(WCHAR
));
113 TRACE("fixed %s -> %s\n", debugstr_w(val
), debugstr_w(ret
));
118 while(*ptr
&& !isspaceW(*ptr
))
125 static LPWSTR
fix_url_value(LPCWSTR val
)
129 static const WCHAR urlW
[] = {'u','r','l','('};
131 if(strncmpW(val
, urlW
, sizeof(urlW
)/sizeof(WCHAR
)) || !strchrW(val
, '\\'))
134 ret
= heap_strdupW(val
);
136 for(ptr
= ret
; *ptr
; ptr
++) {
144 #define ATTR_FIX_PX 1
145 #define ATTR_FIX_URL 2
147 static HRESULT
set_style_attr(HTMLStyle
*This
, LPCWSTR name
, LPCWSTR value
, DWORD flags
)
149 nsAString str_name
, str_value
, str_empty
;
153 static const PRUnichar wszEmpty
[] = {0};
155 TRACE("(%p)->(%s %s)\n", This
, debugstr_w(name
), debugstr_w(value
));
157 if(flags
& ATTR_FIX_PX
)
158 val
= fix_px_value(value
);
159 if(flags
& ATTR_FIX_URL
)
160 val
= fix_url_value(value
);
162 nsAString_Init(&str_name
, name
);
163 nsAString_Init(&str_value
, val
? val
: value
);
164 nsAString_Init(&str_empty
, wszEmpty
);
167 nsres
= nsIDOMCSSStyleDeclaration_SetProperty(This
->nsstyle
, &str_name
, &str_value
, &str_empty
);
169 ERR("SetProperty failed: %08x\n", nsres
);
171 nsAString_Finish(&str_name
);
172 nsAString_Finish(&str_value
);
173 nsAString_Finish(&str_empty
);
178 static HRESULT
get_style_attr_nsval(HTMLStyle
*This
, LPCWSTR name
, nsAString
*value
)
183 nsAString_Init(&str_name
, name
);
185 nsres
= nsIDOMCSSStyleDeclaration_GetPropertyValue(This
->nsstyle
, &str_name
, value
);
186 if(NS_FAILED(nsres
)) {
187 ERR("SetProperty failed: %08x\n", nsres
);
191 nsAString_Finish(&str_name
);
196 static HRESULT
get_style_attr(HTMLStyle
*This
, LPCWSTR name
, BSTR
*p
)
199 const PRUnichar
*value
;
201 nsAString_Init(&str_value
, NULL
);
203 get_style_attr_nsval(This
, name
, &str_value
);
205 nsAString_GetData(&str_value
, &value
);
206 *p
= *value
? SysAllocString(value
) : NULL
;
208 nsAString_Finish(&str_value
);
210 TRACE("%s -> %s\n", debugstr_w(name
), debugstr_w(*p
));
214 static HRESULT
check_style_attr_value(HTMLStyle
*This
, LPCWSTR name
, LPCWSTR exval
, VARIANT_BOOL
*p
)
217 const PRUnichar
*value
;
219 nsAString_Init(&str_value
, NULL
);
221 get_style_attr_nsval(This
, name
, &str_value
);
223 nsAString_GetData(&str_value
, &value
);
224 *p
= strcmpW(value
, exval
) ? VARIANT_FALSE
: VARIANT_TRUE
;
225 nsAString_Finish(&str_value
);
227 TRACE("%s -> %x\n", debugstr_w(name
), *p
);
231 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
233 static HRESULT WINAPI
HTMLStyle_QueryInterface(IHTMLStyle
*iface
, REFIID riid
, void **ppv
)
235 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
239 if(IsEqualGUID(&IID_IUnknown
, riid
)) {
240 TRACE("(%p)->(IID_IUnknown %p)\n", This
, ppv
);
241 *ppv
= HTMLSTYLE(This
);
242 }else if(IsEqualGUID(&IID_IHTMLStyle
, riid
)) {
243 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This
, ppv
);
244 *ppv
= HTMLSTYLE(This
);
245 }else if(dispex_query_interface(&This
->dispex
, riid
, ppv
)) {
246 return *ppv
? S_OK
: E_NOINTERFACE
;
250 IUnknown_AddRef((IUnknown
*)*ppv
);
254 WARN("unsupported %s\n", debugstr_guid(riid
));
255 return E_NOINTERFACE
;
258 static ULONG WINAPI
HTMLStyle_AddRef(IHTMLStyle
*iface
)
260 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
261 LONG ref
= InterlockedIncrement(&This
->ref
);
263 TRACE("(%p) ref=%d\n", This
, ref
);
268 static ULONG WINAPI
HTMLStyle_Release(IHTMLStyle
*iface
)
270 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
271 LONG ref
= InterlockedDecrement(&This
->ref
);
273 TRACE("(%p) ref=%d\n", This
, ref
);
281 static HRESULT WINAPI
HTMLStyle_GetTypeInfoCount(IHTMLStyle
*iface
, UINT
*pctinfo
)
283 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
284 return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This
->dispex
), pctinfo
);
287 static HRESULT WINAPI
HTMLStyle_GetTypeInfo(IHTMLStyle
*iface
, UINT iTInfo
,
288 LCID lcid
, ITypeInfo
**ppTInfo
)
290 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
291 return IDispatchEx_GetTypeInfo(DISPATCHEX(&This
->dispex
), iTInfo
, lcid
, ppTInfo
);
294 static HRESULT WINAPI
HTMLStyle_GetIDsOfNames(IHTMLStyle
*iface
, REFIID riid
,
295 LPOLESTR
*rgszNames
, UINT cNames
,
296 LCID lcid
, DISPID
*rgDispId
)
298 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
299 return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This
->dispex
), riid
, rgszNames
, cNames
, lcid
, rgDispId
);
302 static HRESULT WINAPI
HTMLStyle_Invoke(IHTMLStyle
*iface
, DISPID dispIdMember
,
303 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
304 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
306 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
307 return IDispatchEx_Invoke(DISPATCHEX(&This
->dispex
), dispIdMember
, riid
, lcid
,
308 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
311 static HRESULT WINAPI
HTMLStyle_put_fontFamily(IHTMLStyle
*iface
, BSTR v
)
313 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
315 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
317 return set_style_attr(This
, attrFontFamily
, v
, 0);
320 static HRESULT WINAPI
HTMLStyle_get_fontFamily(IHTMLStyle
*iface
, BSTR
*p
)
322 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
324 TRACE("(%p)->(%p)\n", This
, p
);
326 return get_style_attr(This
, attrFontFamily
, p
);
329 static HRESULT WINAPI
HTMLStyle_put_fontStyle(IHTMLStyle
*iface
, BSTR v
)
331 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
332 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
336 static HRESULT WINAPI
HTMLStyle_get_fontStyle(IHTMLStyle
*iface
, BSTR
*p
)
338 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
340 TRACE("(%p)->(%p)\n", This
, p
);
342 return get_style_attr(This
, attrFontStyle
, p
);
345 static HRESULT WINAPI
HTMLStyle_put_fontVariant(IHTMLStyle
*iface
, BSTR v
)
347 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
348 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
352 static HRESULT WINAPI
HTMLStyle_get_fontVariant(IHTMLStyle
*iface
, BSTR
*p
)
354 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
355 FIXME("(%p)->(%p)\n", This
, p
);
359 static HRESULT WINAPI
HTMLStyle_put_fontWeight(IHTMLStyle
*iface
, BSTR v
)
361 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
362 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
366 static HRESULT WINAPI
HTMLStyle_get_fontWeight(IHTMLStyle
*iface
, BSTR
*p
)
368 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
370 TRACE("(%p)->(%p)\n", This
, p
);
372 return get_style_attr(This
, attrFontWeight
, p
);
375 static HRESULT WINAPI
HTMLStyle_put_fontSize(IHTMLStyle
*iface
, VARIANT v
)
377 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
379 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
383 return set_style_attr(This
, attrFontSize
, V_BSTR(&v
), 0);
385 FIXME("not supported vt %d\n", V_VT(&v
));
391 static HRESULT WINAPI
HTMLStyle_get_fontSize(IHTMLStyle
*iface
, VARIANT
*p
)
393 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
395 TRACE("(%p)->(%p)\n", This
, p
);
398 return get_style_attr(This
, attrFontSize
, &V_BSTR(p
));
401 static HRESULT WINAPI
HTMLStyle_put_font(IHTMLStyle
*iface
, BSTR v
)
403 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
404 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
408 static HRESULT WINAPI
HTMLStyle_get_font(IHTMLStyle
*iface
, BSTR
*p
)
410 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
411 FIXME("(%p)->(%p)\n", This
, p
);
415 static HRESULT WINAPI
HTMLStyle_put_color(IHTMLStyle
*iface
, VARIANT v
)
417 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
419 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
423 TRACE("%s\n", debugstr_w(V_BSTR(&v
)));
424 return set_style_attr(This
, attrColor
, V_BSTR(&v
), 0);
427 FIXME("unsupported vt=%d\n", V_VT(&v
));
433 static HRESULT WINAPI
HTMLStyle_get_color(IHTMLStyle
*iface
, VARIANT
*p
)
435 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
437 TRACE("(%p)->(%p)\n", This
, p
);
440 return get_style_attr(This
, attrColor
, &V_BSTR(p
));
443 static HRESULT WINAPI
HTMLStyle_put_background(IHTMLStyle
*iface
, BSTR v
)
445 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
447 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
449 return set_style_attr(This
, attrBackground
, v
, 0);
452 static HRESULT WINAPI
HTMLStyle_get_background(IHTMLStyle
*iface
, BSTR
*p
)
454 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
456 TRACE("(%p)->(%p)\n", This
, p
);
458 return get_style_attr(This
, attrBackground
, p
);
461 static HRESULT WINAPI
HTMLStyle_put_backgroundColor(IHTMLStyle
*iface
, VARIANT v
)
463 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
465 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
469 return set_style_attr(This
, attrBackgroundColor
, V_BSTR(&v
), 0);
472 static const WCHAR format
[] = {'#','%','0','6','x',0};
474 wsprintfW(value
, format
, V_I4(&v
));
475 return set_style_attr(This
, attrBackgroundColor
, value
, 0);
478 FIXME("unsupported vt %d\n", V_VT(&v
));
484 static HRESULT WINAPI
HTMLStyle_get_backgroundColor(IHTMLStyle
*iface
, VARIANT
*p
)
486 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
487 FIXME("(%p)->(%p)\n", This
, p
);
491 static HRESULT WINAPI
HTMLStyle_put_backgroundImage(IHTMLStyle
*iface
, BSTR v
)
493 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
495 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
497 return set_style_attr(This
, attrBackgroundImage
, v
, ATTR_FIX_URL
);
500 static HRESULT WINAPI
HTMLStyle_get_backgroundImage(IHTMLStyle
*iface
, BSTR
*p
)
502 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
503 FIXME("(%p)->(%p)\n", This
, p
);
507 static HRESULT WINAPI
HTMLStyle_put_backgroundRepeat(IHTMLStyle
*iface
, BSTR v
)
509 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
510 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
514 static HRESULT WINAPI
HTMLStyle_get_backgroundRepeat(IHTMLStyle
*iface
, BSTR
*p
)
516 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
517 FIXME("(%p)->(%p)\n", This
, p
);
521 static HRESULT WINAPI
HTMLStyle_put_backgroundAttachment(IHTMLStyle
*iface
, BSTR v
)
523 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
524 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
528 static HRESULT WINAPI
HTMLStyle_get_backgroundAttachment(IHTMLStyle
*iface
, BSTR
*p
)
530 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
531 FIXME("(%p)->(%p)\n", This
, p
);
535 static HRESULT WINAPI
HTMLStyle_put_backgroundPosition(IHTMLStyle
*iface
, BSTR v
)
537 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
538 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
542 static HRESULT WINAPI
HTMLStyle_get_backgroundPosition(IHTMLStyle
*iface
, BSTR
*p
)
544 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
545 FIXME("(%p)->(%p)\n", This
, p
);
549 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionX(IHTMLStyle
*iface
, VARIANT v
)
551 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
552 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
556 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionX(IHTMLStyle
*iface
, VARIANT
*p
)
558 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
559 FIXME("(%p)->(%p)\n", This
, p
);
563 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionY(IHTMLStyle
*iface
, VARIANT v
)
565 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
566 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
570 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionY(IHTMLStyle
*iface
, VARIANT
*p
)
572 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
573 FIXME("(%p)->(%p)\n", This
, p
);
577 static HRESULT WINAPI
HTMLStyle_put_wordSpacing(IHTMLStyle
*iface
, VARIANT v
)
579 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
580 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
584 static HRESULT WINAPI
HTMLStyle_get_wordSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
586 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
587 FIXME("(%p)->(%p)\n", This
, p
);
591 static HRESULT WINAPI
HTMLStyle_put_letterSpacing(IHTMLStyle
*iface
, VARIANT v
)
593 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
594 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
598 static HRESULT WINAPI
HTMLStyle_get_letterSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
600 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
601 FIXME("(%p)->(%p)\n", This
, p
);
605 static HRESULT WINAPI
HTMLStyle_put_textDecoration(IHTMLStyle
*iface
, BSTR v
)
607 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
608 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
612 static HRESULT WINAPI
HTMLStyle_get_textDecoration(IHTMLStyle
*iface
, BSTR
*p
)
614 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
616 TRACE("(%p)->(%p)\n", This
, p
);
618 return get_style_attr(This
, attrTextDecoration
, p
);
621 static HRESULT WINAPI
HTMLStyle_put_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL v
)
623 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
624 FIXME("(%p)->(%x)\n", This
, v
);
628 static HRESULT WINAPI
HTMLStyle_get_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
630 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
631 FIXME("(%p)->(%p)\n", This
, p
);
635 static HRESULT WINAPI
HTMLStyle_put_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
637 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
638 FIXME("(%p)->(%x)\n", This
, v
);
642 static HRESULT WINAPI
HTMLStyle_get_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
644 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
646 TRACE("(%p)->(%p)\n", This
, p
);
648 return check_style_attr_value(This
, attrTextDecoration
, valUnderline
, p
);
651 static HRESULT WINAPI
HTMLStyle_put_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
653 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
654 FIXME("(%p)->(%x)\n", This
, v
);
658 static HRESULT WINAPI
HTMLStyle_get_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
660 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
661 FIXME("(%p)->(%p)\n", This
, p
);
665 static HRESULT WINAPI
HTMLStyle_put_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL v
)
667 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
668 FIXME("(%p)->(%x)\n", This
, v
);
672 static HRESULT WINAPI
HTMLStyle_get_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
674 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
676 TRACE("(%p)->(%p)\n", This
, p
);
678 return check_style_attr_value(This
, attrTextDecoration
, valLineThrough
, p
);
681 static HRESULT WINAPI
HTMLStyle_put_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL v
)
683 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
684 FIXME("(%p)->(%x)\n", This
, v
);
688 static HRESULT WINAPI
HTMLStyle_get_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
690 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
691 FIXME("(%p)->(%p)\n", This
, p
);
695 static HRESULT WINAPI
HTMLStyle_put_verticalAlign(IHTMLStyle
*iface
, VARIANT v
)
697 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
698 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
702 static HRESULT WINAPI
HTMLStyle_get_verticalAlign(IHTMLStyle
*iface
, VARIANT
*p
)
704 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
705 FIXME("(%p)->(%p)\n", This
, p
);
709 static HRESULT WINAPI
HTMLStyle_put_textTransform(IHTMLStyle
*iface
, BSTR v
)
711 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
712 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
716 static HRESULT WINAPI
HTMLStyle_get_textTransform(IHTMLStyle
*iface
, BSTR
*p
)
718 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
719 FIXME("(%p)->(%p)\n", This
, p
);
723 static HRESULT WINAPI
HTMLStyle_put_textAlign(IHTMLStyle
*iface
, BSTR v
)
725 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
726 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
730 static HRESULT WINAPI
HTMLStyle_get_textAlign(IHTMLStyle
*iface
, BSTR
*p
)
732 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
733 FIXME("(%p)->(%p)\n", This
, p
);
737 static HRESULT WINAPI
HTMLStyle_put_textIndent(IHTMLStyle
*iface
, VARIANT v
)
739 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
740 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
744 static HRESULT WINAPI
HTMLStyle_get_textIndent(IHTMLStyle
*iface
, VARIANT
*p
)
746 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
747 FIXME("(%p)->(%p)\n", This
, p
);
751 static HRESULT WINAPI
HTMLStyle_put_lineHeight(IHTMLStyle
*iface
, VARIANT v
)
753 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
754 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
758 static HRESULT WINAPI
HTMLStyle_get_lineHeight(IHTMLStyle
*iface
, VARIANT
*p
)
760 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
761 FIXME("(%p)->(%p)\n", This
, p
);
765 static HRESULT WINAPI
HTMLStyle_put_marginTop(IHTMLStyle
*iface
, VARIANT v
)
767 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
768 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
772 static HRESULT WINAPI
HTMLStyle_get_marginTop(IHTMLStyle
*iface
, VARIANT
*p
)
774 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
775 FIXME("(%p)->(%p)\n", This
, p
);
779 static HRESULT WINAPI
HTMLStyle_put_marginRight(IHTMLStyle
*iface
, VARIANT v
)
781 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
783 TRACE("(%p)->(v(%d))\n", This
, V_VT(&v
));
787 return set_style_attr(This
, attrMarginRight
, emptyW
, 0);
791 wsprintfW(buf
, px_formatW
, V_I4(&v
));
792 return set_style_attr(This
, attrMarginRight
, buf
, 0);
795 return set_style_attr(This
, attrMarginRight
, V_BSTR(&v
), 0);
797 FIXME("Unsupported vt=%d\n", V_VT(&v
));
803 static HRESULT WINAPI
HTMLStyle_get_marginRight(IHTMLStyle
*iface
, VARIANT
*p
)
805 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
806 FIXME("(%p)->(%p)\n", This
, p
);
810 static HRESULT WINAPI
HTMLStyle_put_marginBottom(IHTMLStyle
*iface
, VARIANT v
)
812 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
813 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
817 static HRESULT WINAPI
HTMLStyle_get_marginBottom(IHTMLStyle
*iface
, VARIANT
*p
)
819 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
820 FIXME("(%p)->(%p)\n", This
, p
);
824 static HRESULT WINAPI
HTMLStyle_put_marginLeft(IHTMLStyle
*iface
, VARIANT v
)
826 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
830 TRACE("(%p)->(NULL)\n", This
);
831 return set_style_attr(This
, attrMarginLeft
, emptyW
, 0);
835 TRACE("(%p)->(%d)\n", This
, V_I4(&v
));
837 wsprintfW(buf
, px_formatW
, V_I4(&v
));
838 return set_style_attr(This
, attrMarginLeft
, buf
, 0);
841 TRACE("(%p)->(%s)\n", This
, debugstr_w(V_BSTR(&v
)));
842 return set_style_attr(This
, attrMarginLeft
, V_BSTR(&v
), 0);
844 FIXME("Unsupported vt=%d\n", V_VT(&v
));
850 static HRESULT WINAPI
HTMLStyle_put_margin(IHTMLStyle
*iface
, BSTR v
)
852 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
854 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
856 return set_style_attr(This
, attrMargin
, v
, 0);
859 static HRESULT WINAPI
HTMLStyle_get_margin(IHTMLStyle
*iface
, BSTR
*p
)
861 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
863 TRACE("(%p)->(%p)\n", This
, p
);
865 return get_style_attr(This
, attrMargin
, p
);
868 static HRESULT WINAPI
HTMLStyle_get_marginLeft(IHTMLStyle
*iface
, VARIANT
*p
)
870 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
871 FIXME("(%p)->(%p)\n", This
, p
);
875 static HRESULT WINAPI
HTMLStyle_put_paddingTop(IHTMLStyle
*iface
, VARIANT v
)
877 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
878 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
882 static HRESULT WINAPI
HTMLStyle_get_paddingTop(IHTMLStyle
*iface
, VARIANT
*p
)
884 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
885 FIXME("(%p)->(%p)\n", This
, p
);
889 static HRESULT WINAPI
HTMLStyle_put_paddingRight(IHTMLStyle
*iface
, VARIANT v
)
891 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
892 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
896 static HRESULT WINAPI
HTMLStyle_get_paddingRight(IHTMLStyle
*iface
, VARIANT
*p
)
898 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
899 FIXME("(%p)->(%p)\n", This
, p
);
903 static HRESULT WINAPI
HTMLStyle_put_paddingBottom(IHTMLStyle
*iface
, VARIANT v
)
905 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
906 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
910 static HRESULT WINAPI
HTMLStyle_get_paddingBottom(IHTMLStyle
*iface
, VARIANT
*p
)
912 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
913 FIXME("(%p)->(%p)\n", This
, p
);
917 static HRESULT WINAPI
HTMLStyle_put_paddingLeft(IHTMLStyle
*iface
, VARIANT v
)
919 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
921 TRACE("(%p)->(vt=%d)\n", This
, V_VT(&v
));
927 wsprintfW(buf
, px_formatW
, V_I4(&v
));
928 return set_style_attr(This
, attrPaddingLeft
, buf
, 0);
931 return set_style_attr(This
, attrPaddingLeft
, V_BSTR(&v
), 0);
933 FIXME("unsupported vt=%d\n", V_VT(&v
));
939 static HRESULT WINAPI
HTMLStyle_get_paddingLeft(IHTMLStyle
*iface
, VARIANT
*p
)
941 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
942 FIXME("(%p)->(%p)\n", This
, p
);
946 static HRESULT WINAPI
HTMLStyle_put_padding(IHTMLStyle
*iface
, BSTR v
)
948 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
949 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
953 static HRESULT WINAPI
HTMLStyle_get_padding(IHTMLStyle
*iface
, BSTR
*p
)
955 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
956 FIXME("(%p)->(%p)\n", This
, p
);
960 static HRESULT WINAPI
HTMLStyle_put_border(IHTMLStyle
*iface
, BSTR v
)
962 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
963 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
967 static HRESULT WINAPI
HTMLStyle_get_border(IHTMLStyle
*iface
, BSTR
*p
)
969 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
970 FIXME("(%p)->(%p)\n", This
, p
);
974 static HRESULT WINAPI
HTMLStyle_put_borderTop(IHTMLStyle
*iface
, BSTR v
)
976 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
977 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
981 static HRESULT WINAPI
HTMLStyle_get_borderTop(IHTMLStyle
*iface
, BSTR
*p
)
983 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
984 FIXME("(%p)->(%p)\n", This
, p
);
988 static HRESULT WINAPI
HTMLStyle_put_borderRight(IHTMLStyle
*iface
, BSTR v
)
990 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
991 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
995 static HRESULT WINAPI
HTMLStyle_get_borderRight(IHTMLStyle
*iface
, BSTR
*p
)
997 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
998 FIXME("(%p)->(%p)\n", This
, p
);
1002 static HRESULT WINAPI
HTMLStyle_put_borderBottom(IHTMLStyle
*iface
, BSTR v
)
1004 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1005 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1009 static HRESULT WINAPI
HTMLStyle_get_borderBottom(IHTMLStyle
*iface
, BSTR
*p
)
1011 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1012 FIXME("(%p)->(%p)\n", This
, p
);
1016 static HRESULT WINAPI
HTMLStyle_put_borderLeft(IHTMLStyle
*iface
, BSTR v
)
1018 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1020 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1022 return set_style_attr(This
, attrBorderLeft
, v
, ATTR_FIX_PX
);
1025 static HRESULT WINAPI
HTMLStyle_get_borderLeft(IHTMLStyle
*iface
, BSTR
*p
)
1027 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1028 FIXME("(%p)->(%p)\n", This
, p
);
1032 static HRESULT WINAPI
HTMLStyle_put_borderColor(IHTMLStyle
*iface
, BSTR v
)
1034 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1035 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1039 static HRESULT WINAPI
HTMLStyle_get_borderColor(IHTMLStyle
*iface
, BSTR
*p
)
1041 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1042 FIXME("(%p)->(%p)\n", This
, p
);
1046 static HRESULT WINAPI
HTMLStyle_put_borderTopColor(IHTMLStyle
*iface
, VARIANT v
)
1048 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1049 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1053 static HRESULT WINAPI
HTMLStyle_get_borderTopColor(IHTMLStyle
*iface
, VARIANT
*p
)
1055 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1056 FIXME("(%p)->(%p)\n", This
, p
);
1060 static HRESULT WINAPI
HTMLStyle_put_borderRightColor(IHTMLStyle
*iface
, VARIANT v
)
1062 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1063 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1067 static HRESULT WINAPI
HTMLStyle_get_borderRightColor(IHTMLStyle
*iface
, VARIANT
*p
)
1069 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1070 FIXME("(%p)->(%p)\n", This
, p
);
1074 static HRESULT WINAPI
HTMLStyle_put_borderBottomColor(IHTMLStyle
*iface
, VARIANT v
)
1076 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1077 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1081 static HRESULT WINAPI
HTMLStyle_get_borderBottomColor(IHTMLStyle
*iface
, VARIANT
*p
)
1083 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1084 FIXME("(%p)->(%p)\n", This
, p
);
1088 static HRESULT WINAPI
HTMLStyle_put_borderLeftColor(IHTMLStyle
*iface
, VARIANT v
)
1090 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1091 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1095 static HRESULT WINAPI
HTMLStyle_get_borderLeftColor(IHTMLStyle
*iface
, VARIANT
*p
)
1097 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1098 FIXME("(%p)->(%p)\n", This
, p
);
1102 static HRESULT WINAPI
HTMLStyle_put_borderWidth(IHTMLStyle
*iface
, BSTR v
)
1104 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1105 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1109 static HRESULT WINAPI
HTMLStyle_get_borderWidth(IHTMLStyle
*iface
, BSTR
*p
)
1111 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1112 FIXME("(%p)->(%p)\n", This
, p
);
1116 static HRESULT WINAPI
HTMLStyle_put_borderTopWidth(IHTMLStyle
*iface
, VARIANT v
)
1118 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1119 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1123 static HRESULT WINAPI
HTMLStyle_get_borderTopWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1125 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1126 FIXME("(%p)->(%p)\n", This
, p
);
1130 static HRESULT WINAPI
HTMLStyle_put_borderRightWidth(IHTMLStyle
*iface
, VARIANT v
)
1132 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1133 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1137 static HRESULT WINAPI
HTMLStyle_get_borderRightWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1139 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1140 FIXME("(%p)->(%p)\n", This
, p
);
1144 static HRESULT WINAPI
HTMLStyle_put_borderBottomWidth(IHTMLStyle
*iface
, VARIANT v
)
1146 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1147 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1151 static HRESULT WINAPI
HTMLStyle_get_borderBottomWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1153 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1154 FIXME("(%p)->(%p)\n", This
, p
);
1158 static HRESULT WINAPI
HTMLStyle_put_borderLeftWidth(IHTMLStyle
*iface
, VARIANT v
)
1160 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1161 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1165 static HRESULT WINAPI
HTMLStyle_get_borderLeftWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1167 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1168 FIXME("(%p)->(%p)\n", This
, p
);
1172 static HRESULT WINAPI
HTMLStyle_put_borderStyle(IHTMLStyle
*iface
, BSTR v
)
1174 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1175 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1179 static HRESULT WINAPI
HTMLStyle_get_borderStyle(IHTMLStyle
*iface
, BSTR
*p
)
1181 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1182 FIXME("(%p)->(%p)\n", This
, p
);
1186 static HRESULT WINAPI
HTMLStyle_put_borderTopStyle(IHTMLStyle
*iface
, BSTR v
)
1188 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1189 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1193 static HRESULT WINAPI
HTMLStyle_get_borderTopStyle(IHTMLStyle
*iface
, BSTR
*p
)
1195 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1196 FIXME("(%p)->(%p)\n", This
, p
);
1200 static HRESULT WINAPI
HTMLStyle_put_borderRightStyle(IHTMLStyle
*iface
, BSTR v
)
1202 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1203 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1207 static HRESULT WINAPI
HTMLStyle_get_borderRightStyle(IHTMLStyle
*iface
, BSTR
*p
)
1209 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1210 FIXME("(%p)->(%p)\n", This
, p
);
1214 static HRESULT WINAPI
HTMLStyle_put_borderBottomStyle(IHTMLStyle
*iface
, BSTR v
)
1216 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1217 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1221 static HRESULT WINAPI
HTMLStyle_get_borderBottomStyle(IHTMLStyle
*iface
, BSTR
*p
)
1223 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1224 FIXME("(%p)->(%p)\n", This
, p
);
1228 static HRESULT WINAPI
HTMLStyle_put_borderLeftStyle(IHTMLStyle
*iface
, BSTR v
)
1230 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1231 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1235 static HRESULT WINAPI
HTMLStyle_get_borderLeftStyle(IHTMLStyle
*iface
, BSTR
*p
)
1237 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1238 FIXME("(%p)->(%p)\n", This
, p
);
1242 static HRESULT WINAPI
HTMLStyle_put_width(IHTMLStyle
*iface
, VARIANT v
)
1244 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1246 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
1250 TRACE("%s\n", debugstr_w(V_BSTR(&v
)));
1251 return set_style_attr(This
, attrWidth
, V_BSTR(&v
), 0);
1253 FIXME("unsupported vt %d\n", V_VT(&v
));
1259 static HRESULT WINAPI
HTMLStyle_get_width(IHTMLStyle
*iface
, VARIANT
*p
)
1261 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1263 TRACE("(%p)->(%p)\n", This
, p
);
1266 return get_style_attr(This
, attrWidth
, &V_BSTR(p
));
1269 static HRESULT WINAPI
HTMLStyle_put_height(IHTMLStyle
*iface
, VARIANT v
)
1271 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1272 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1276 static HRESULT WINAPI
HTMLStyle_get_height(IHTMLStyle
*iface
, VARIANT
*p
)
1278 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1279 FIXME("(%p)->(%p)\n", This
, p
);
1283 static HRESULT WINAPI
HTMLStyle_put_styleFloat(IHTMLStyle
*iface
, BSTR v
)
1285 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1286 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1290 static HRESULT WINAPI
HTMLStyle_get_styleFloat(IHTMLStyle
*iface
, BSTR
*p
)
1292 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1293 FIXME("(%p)->(%p)\n", This
, p
);
1297 static HRESULT WINAPI
HTMLStyle_put_clear(IHTMLStyle
*iface
, BSTR v
)
1299 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1300 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1304 static HRESULT WINAPI
HTMLStyle_get_clear(IHTMLStyle
*iface
, BSTR
*p
)
1306 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1307 FIXME("(%p)->(%p)\n", This
, p
);
1311 static HRESULT WINAPI
HTMLStyle_put_display(IHTMLStyle
*iface
, BSTR v
)
1313 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1315 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1317 return set_style_attr(This
, attrDisplay
, v
, 0);
1320 static HRESULT WINAPI
HTMLStyle_get_display(IHTMLStyle
*iface
, BSTR
*p
)
1322 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1324 TRACE("(%p)->(%p)\n", This
, p
);
1326 return get_style_attr(This
, attrDisplay
, p
);
1329 static HRESULT WINAPI
HTMLStyle_put_visibility(IHTMLStyle
*iface
, BSTR v
)
1331 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1333 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1335 return set_style_attr(This
, attrVisibility
, v
, 0);
1338 static HRESULT WINAPI
HTMLStyle_get_visibility(IHTMLStyle
*iface
, BSTR
*p
)
1340 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1342 TRACE("(%p)->(%p)\n", This
, p
);
1344 return get_style_attr(This
, attrVisibility
, p
);
1347 static HRESULT WINAPI
HTMLStyle_put_listStyleType(IHTMLStyle
*iface
, BSTR v
)
1349 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1350 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1354 static HRESULT WINAPI
HTMLStyle_get_listStyleType(IHTMLStyle
*iface
, BSTR
*p
)
1356 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1357 FIXME("(%p)->(%p)\n", This
, p
);
1361 static HRESULT WINAPI
HTMLStyle_put_listStylePosition(IHTMLStyle
*iface
, BSTR v
)
1363 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1364 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1368 static HRESULT WINAPI
HTMLStyle_get_listStylePosition(IHTMLStyle
*iface
, BSTR
*p
)
1370 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1371 FIXME("(%p)->(%p)\n", This
, p
);
1375 static HRESULT WINAPI
HTMLStyle_put_listStyleImage(IHTMLStyle
*iface
, BSTR v
)
1377 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1378 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1382 static HRESULT WINAPI
HTMLStyle_get_listStyleImage(IHTMLStyle
*iface
, BSTR
*p
)
1384 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1385 FIXME("(%p)->(%p)\n", This
, p
);
1389 static HRESULT WINAPI
HTMLStyle_put_listStyle(IHTMLStyle
*iface
, BSTR v
)
1391 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1392 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1396 static HRESULT WINAPI
HTMLStyle_get_listStyle(IHTMLStyle
*iface
, BSTR
*p
)
1398 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1399 FIXME("(%p)->(%p)\n", This
, p
);
1403 static HRESULT WINAPI
HTMLStyle_put_whiteSpace(IHTMLStyle
*iface
, BSTR v
)
1405 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1406 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1410 static HRESULT WINAPI
HTMLStyle_get_whiteSpace(IHTMLStyle
*iface
, BSTR
*p
)
1412 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1413 FIXME("(%p)->(%p)\n", This
, p
);
1417 static HRESULT WINAPI
HTMLStyle_put_top(IHTMLStyle
*iface
, VARIANT v
)
1419 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1420 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1424 static HRESULT WINAPI
HTMLStyle_get_top(IHTMLStyle
*iface
, VARIANT
*p
)
1426 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1427 FIXME("(%p)->(%p)\n", This
, p
);
1431 static HRESULT WINAPI
HTMLStyle_put_left(IHTMLStyle
*iface
, VARIANT v
)
1433 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1434 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1438 static HRESULT WINAPI
HTMLStyle_get_left(IHTMLStyle
*iface
, VARIANT
*p
)
1440 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1441 FIXME("(%p)->(%p)\n", This
, p
);
1445 static HRESULT WINAPI
HTMLStyle_get_position(IHTMLStyle
*iface
, BSTR
*p
)
1447 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1448 FIXME("(%p)->(%p)\n", This
, p
);
1452 static HRESULT WINAPI
HTMLStyle_put_zIndex(IHTMLStyle
*iface
, VARIANT v
)
1454 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1455 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1459 static HRESULT WINAPI
HTMLStyle_get_zIndex(IHTMLStyle
*iface
, VARIANT
*p
)
1461 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1462 FIXME("(%p)->(%p)\n", This
, p
);
1466 static HRESULT WINAPI
HTMLStyle_put_overflow(IHTMLStyle
*iface
, BSTR v
)
1468 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1469 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1473 static HRESULT WINAPI
HTMLStyle_get_overflow(IHTMLStyle
*iface
, BSTR
*p
)
1475 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1476 FIXME("(%p)->(%p)\n", This
, p
);
1480 static HRESULT WINAPI
HTMLStyle_put_pageBreakBefore(IHTMLStyle
*iface
, BSTR v
)
1482 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1483 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1487 static HRESULT WINAPI
HTMLStyle_get_pageBreakBefore(IHTMLStyle
*iface
, BSTR
*p
)
1489 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1490 FIXME("(%p)->(%p)\n", This
, p
);
1494 static HRESULT WINAPI
HTMLStyle_put_pageBreakAfter(IHTMLStyle
*iface
, BSTR v
)
1496 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1497 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1501 static HRESULT WINAPI
HTMLStyle_get_pageBreakAfter(IHTMLStyle
*iface
, BSTR
*p
)
1503 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1504 FIXME("(%p)->(%p)\n", This
, p
);
1508 static HRESULT WINAPI
HTMLStyle_put_cssText(IHTMLStyle
*iface
, BSTR v
)
1510 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1511 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1515 static HRESULT WINAPI
HTMLStyle_get_cssText(IHTMLStyle
*iface
, BSTR
*p
)
1517 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1518 FIXME("(%p)->(%p)\n", This
, p
);
1522 static HRESULT WINAPI
HTMLStyle_put_pixelTop(IHTMLStyle
*iface
, long v
)
1524 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1525 FIXME("(%p)->()\n", This
);
1529 static HRESULT WINAPI
HTMLStyle_get_pixelTop(IHTMLStyle
*iface
, long *p
)
1531 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1532 FIXME("(%p)->()\n", This
);
1536 static HRESULT WINAPI
HTMLStyle_put_pixelLeft(IHTMLStyle
*iface
, long v
)
1538 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1539 FIXME("(%p)->()\n", This
);
1543 static HRESULT WINAPI
HTMLStyle_get_pixelLeft(IHTMLStyle
*iface
, long *p
)
1545 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1546 FIXME("(%p)->()\n", This
);
1550 static HRESULT WINAPI
HTMLStyle_put_pixelWidth(IHTMLStyle
*iface
, long v
)
1552 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1553 FIXME("(%p)->()\n", This
);
1557 static HRESULT WINAPI
HTMLStyle_get_pixelWidth(IHTMLStyle
*iface
, long *p
)
1559 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1560 FIXME("(%p)->()\n", This
);
1564 static HRESULT WINAPI
HTMLStyle_put_pixelHeight(IHTMLStyle
*iface
, long v
)
1566 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1567 FIXME("(%p)->()\n", This
);
1571 static HRESULT WINAPI
HTMLStyle_get_pixelHeight(IHTMLStyle
*iface
, long *p
)
1573 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1574 FIXME("(%p)->()\n", This
);
1578 static HRESULT WINAPI
HTMLStyle_put_posTop(IHTMLStyle
*iface
, float v
)
1580 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1581 FIXME("(%p)->()\n", This
);
1585 static HRESULT WINAPI
HTMLStyle_get_posTop(IHTMLStyle
*iface
, float *p
)
1587 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1588 FIXME("(%p)->()\n", This
);
1592 static HRESULT WINAPI
HTMLStyle_put_posLeft(IHTMLStyle
*iface
, float v
)
1594 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1595 FIXME("(%p)->()\n", This
);
1599 static HRESULT WINAPI
HTMLStyle_get_posLeft(IHTMLStyle
*iface
, float *p
)
1601 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1602 FIXME("(%p)->()\n", This
);
1606 static HRESULT WINAPI
HTMLStyle_put_posWidth(IHTMLStyle
*iface
, float v
)
1608 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1609 FIXME("(%p)->()\n", This
);
1613 static HRESULT WINAPI
HTMLStyle_get_posWidth(IHTMLStyle
*iface
, float *p
)
1615 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1616 FIXME("(%p)->()\n", This
);
1620 static HRESULT WINAPI
HTMLStyle_put_posHeight(IHTMLStyle
*iface
, float v
)
1622 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1623 FIXME("(%p)->()\n", This
);
1627 static HRESULT WINAPI
HTMLStyle_get_posHeight(IHTMLStyle
*iface
, float *p
)
1629 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1630 FIXME("(%p)->()\n", This
);
1634 static HRESULT WINAPI
HTMLStyle_put_cursor(IHTMLStyle
*iface
, BSTR v
)
1636 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1637 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1641 static HRESULT WINAPI
HTMLStyle_get_cursor(IHTMLStyle
*iface
, BSTR
*p
)
1643 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1644 FIXME("(%p)->(%p)\n", This
, p
);
1648 static HRESULT WINAPI
HTMLStyle_put_clip(IHTMLStyle
*iface
, BSTR v
)
1650 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1651 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1655 static HRESULT WINAPI
HTMLStyle_get_clip(IHTMLStyle
*iface
, BSTR
*p
)
1657 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1658 FIXME("(%p)->(%p)\n", This
, p
);
1662 static HRESULT WINAPI
HTMLStyle_put_filter(IHTMLStyle
*iface
, BSTR v
)
1664 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1665 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1669 static HRESULT WINAPI
HTMLStyle_get_filter(IHTMLStyle
*iface
, BSTR
*p
)
1671 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1672 FIXME("(%p)->(%p)\n", This
, p
);
1676 static HRESULT WINAPI
HTMLStyle_setAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1677 VARIANT AttributeValue
, LONG lFlags
)
1679 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1680 FIXME("(%p)->(%s v%d %08x)\n", This
, debugstr_w(strAttributeName
),
1681 V_VT(&AttributeValue
), lFlags
);
1685 static HRESULT WINAPI
HTMLStyle_getAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1686 LONG lFlags
, VARIANT
*AttributeValue
)
1688 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1689 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1690 lFlags
, AttributeValue
);
1694 static HRESULT WINAPI
HTMLStyle_removeAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1695 LONG lFlags
, VARIANT_BOOL
*pfSuccess
)
1697 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1698 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1703 static HRESULT WINAPI
HTMLStyle_toString(IHTMLStyle
*iface
, BSTR
*String
)
1705 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1706 FIXME("(%p)->(%p)\n", This
, String
);
1710 static const IHTMLStyleVtbl HTMLStyleVtbl
= {
1711 HTMLStyle_QueryInterface
,
1714 HTMLStyle_GetTypeInfoCount
,
1715 HTMLStyle_GetTypeInfo
,
1716 HTMLStyle_GetIDsOfNames
,
1718 HTMLStyle_put_fontFamily
,
1719 HTMLStyle_get_fontFamily
,
1720 HTMLStyle_put_fontStyle
,
1721 HTMLStyle_get_fontStyle
,
1722 HTMLStyle_put_fontVariant
,
1723 HTMLStyle_get_fontVariant
,
1724 HTMLStyle_put_fontWeight
,
1725 HTMLStyle_get_fontWeight
,
1726 HTMLStyle_put_fontSize
,
1727 HTMLStyle_get_fontSize
,
1730 HTMLStyle_put_color
,
1731 HTMLStyle_get_color
,
1732 HTMLStyle_put_background
,
1733 HTMLStyle_get_background
,
1734 HTMLStyle_put_backgroundColor
,
1735 HTMLStyle_get_backgroundColor
,
1736 HTMLStyle_put_backgroundImage
,
1737 HTMLStyle_get_backgroundImage
,
1738 HTMLStyle_put_backgroundRepeat
,
1739 HTMLStyle_get_backgroundRepeat
,
1740 HTMLStyle_put_backgroundAttachment
,
1741 HTMLStyle_get_backgroundAttachment
,
1742 HTMLStyle_put_backgroundPosition
,
1743 HTMLStyle_get_backgroundPosition
,
1744 HTMLStyle_put_backgroundPositionX
,
1745 HTMLStyle_get_backgroundPositionX
,
1746 HTMLStyle_put_backgroundPositionY
,
1747 HTMLStyle_get_backgroundPositionY
,
1748 HTMLStyle_put_wordSpacing
,
1749 HTMLStyle_get_wordSpacing
,
1750 HTMLStyle_put_letterSpacing
,
1751 HTMLStyle_get_letterSpacing
,
1752 HTMLStyle_put_textDecoration
,
1753 HTMLStyle_get_textDecoration
,
1754 HTMLStyle_put_textDecorationNone
,
1755 HTMLStyle_get_textDecorationNone
,
1756 HTMLStyle_put_textDecorationUnderline
,
1757 HTMLStyle_get_textDecorationUnderline
,
1758 HTMLStyle_put_textDecorationOverline
,
1759 HTMLStyle_get_textDecorationOverline
,
1760 HTMLStyle_put_textDecorationLineThrough
,
1761 HTMLStyle_get_textDecorationLineThrough
,
1762 HTMLStyle_put_textDecorationBlink
,
1763 HTMLStyle_get_textDecorationBlink
,
1764 HTMLStyle_put_verticalAlign
,
1765 HTMLStyle_get_verticalAlign
,
1766 HTMLStyle_put_textTransform
,
1767 HTMLStyle_get_textTransform
,
1768 HTMLStyle_put_textAlign
,
1769 HTMLStyle_get_textAlign
,
1770 HTMLStyle_put_textIndent
,
1771 HTMLStyle_get_textIndent
,
1772 HTMLStyle_put_lineHeight
,
1773 HTMLStyle_get_lineHeight
,
1774 HTMLStyle_put_marginTop
,
1775 HTMLStyle_get_marginTop
,
1776 HTMLStyle_put_marginRight
,
1777 HTMLStyle_get_marginRight
,
1778 HTMLStyle_put_marginBottom
,
1779 HTMLStyle_get_marginBottom
,
1780 HTMLStyle_put_marginLeft
,
1781 HTMLStyle_get_marginLeft
,
1782 HTMLStyle_put_margin
,
1783 HTMLStyle_get_margin
,
1784 HTMLStyle_put_paddingTop
,
1785 HTMLStyle_get_paddingTop
,
1786 HTMLStyle_put_paddingRight
,
1787 HTMLStyle_get_paddingRight
,
1788 HTMLStyle_put_paddingBottom
,
1789 HTMLStyle_get_paddingBottom
,
1790 HTMLStyle_put_paddingLeft
,
1791 HTMLStyle_get_paddingLeft
,
1792 HTMLStyle_put_padding
,
1793 HTMLStyle_get_padding
,
1794 HTMLStyle_put_border
,
1795 HTMLStyle_get_border
,
1796 HTMLStyle_put_borderTop
,
1797 HTMLStyle_get_borderTop
,
1798 HTMLStyle_put_borderRight
,
1799 HTMLStyle_get_borderRight
,
1800 HTMLStyle_put_borderBottom
,
1801 HTMLStyle_get_borderBottom
,
1802 HTMLStyle_put_borderLeft
,
1803 HTMLStyle_get_borderLeft
,
1804 HTMLStyle_put_borderColor
,
1805 HTMLStyle_get_borderColor
,
1806 HTMLStyle_put_borderTopColor
,
1807 HTMLStyle_get_borderTopColor
,
1808 HTMLStyle_put_borderRightColor
,
1809 HTMLStyle_get_borderRightColor
,
1810 HTMLStyle_put_borderBottomColor
,
1811 HTMLStyle_get_borderBottomColor
,
1812 HTMLStyle_put_borderLeftColor
,
1813 HTMLStyle_get_borderLeftColor
,
1814 HTMLStyle_put_borderWidth
,
1815 HTMLStyle_get_borderWidth
,
1816 HTMLStyle_put_borderTopWidth
,
1817 HTMLStyle_get_borderTopWidth
,
1818 HTMLStyle_put_borderRightWidth
,
1819 HTMLStyle_get_borderRightWidth
,
1820 HTMLStyle_put_borderBottomWidth
,
1821 HTMLStyle_get_borderBottomWidth
,
1822 HTMLStyle_put_borderLeftWidth
,
1823 HTMLStyle_get_borderLeftWidth
,
1824 HTMLStyle_put_borderStyle
,
1825 HTMLStyle_get_borderStyle
,
1826 HTMLStyle_put_borderTopStyle
,
1827 HTMLStyle_get_borderTopStyle
,
1828 HTMLStyle_put_borderRightStyle
,
1829 HTMLStyle_get_borderRightStyle
,
1830 HTMLStyle_put_borderBottomStyle
,
1831 HTMLStyle_get_borderBottomStyle
,
1832 HTMLStyle_put_borderLeftStyle
,
1833 HTMLStyle_get_borderLeftStyle
,
1834 HTMLStyle_put_width
,
1835 HTMLStyle_get_width
,
1836 HTMLStyle_put_height
,
1837 HTMLStyle_get_height
,
1838 HTMLStyle_put_styleFloat
,
1839 HTMLStyle_get_styleFloat
,
1840 HTMLStyle_put_clear
,
1841 HTMLStyle_get_clear
,
1842 HTMLStyle_put_display
,
1843 HTMLStyle_get_display
,
1844 HTMLStyle_put_visibility
,
1845 HTMLStyle_get_visibility
,
1846 HTMLStyle_put_listStyleType
,
1847 HTMLStyle_get_listStyleType
,
1848 HTMLStyle_put_listStylePosition
,
1849 HTMLStyle_get_listStylePosition
,
1850 HTMLStyle_put_listStyleImage
,
1851 HTMLStyle_get_listStyleImage
,
1852 HTMLStyle_put_listStyle
,
1853 HTMLStyle_get_listStyle
,
1854 HTMLStyle_put_whiteSpace
,
1855 HTMLStyle_get_whiteSpace
,
1860 HTMLStyle_get_position
,
1861 HTMLStyle_put_zIndex
,
1862 HTMLStyle_get_zIndex
,
1863 HTMLStyle_put_overflow
,
1864 HTMLStyle_get_overflow
,
1865 HTMLStyle_put_pageBreakBefore
,
1866 HTMLStyle_get_pageBreakBefore
,
1867 HTMLStyle_put_pageBreakAfter
,
1868 HTMLStyle_get_pageBreakAfter
,
1869 HTMLStyle_put_cssText
,
1870 HTMLStyle_get_cssText
,
1871 HTMLStyle_put_pixelTop
,
1872 HTMLStyle_get_pixelTop
,
1873 HTMLStyle_put_pixelLeft
,
1874 HTMLStyle_get_pixelLeft
,
1875 HTMLStyle_put_pixelWidth
,
1876 HTMLStyle_get_pixelWidth
,
1877 HTMLStyle_put_pixelHeight
,
1878 HTMLStyle_get_pixelHeight
,
1879 HTMLStyle_put_posTop
,
1880 HTMLStyle_get_posTop
,
1881 HTMLStyle_put_posLeft
,
1882 HTMLStyle_get_posLeft
,
1883 HTMLStyle_put_posWidth
,
1884 HTMLStyle_get_posWidth
,
1885 HTMLStyle_put_posHeight
,
1886 HTMLStyle_get_posHeight
,
1887 HTMLStyle_put_cursor
,
1888 HTMLStyle_get_cursor
,
1891 HTMLStyle_put_filter
,
1892 HTMLStyle_get_filter
,
1893 HTMLStyle_setAttribute
,
1894 HTMLStyle_getAttribute
,
1895 HTMLStyle_removeAttribute
,
1899 static const tid_t HTMLStyle_iface_tids
[] = {
1903 static dispex_static_data_t HTMLStyle_dispex
= {
1907 HTMLStyle_iface_tids
1910 IHTMLStyle
*HTMLStyle_Create(nsIDOMCSSStyleDeclaration
*nsstyle
)
1912 HTMLStyle
*ret
= heap_alloc(sizeof(HTMLStyle
));
1914 ret
->lpHTMLStyleVtbl
= &HTMLStyleVtbl
;
1916 ret
->nsstyle
= nsstyle
;
1918 nsIDOMCSSStyleDeclaration_AddRef(nsstyle
);
1920 init_dispex(&ret
->dispex
, (IUnknown
*)HTMLSTYLE(ret
), &HTMLStyle_dispex
);
1922 return HTMLSTYLE(ret
);