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
30 #include "mshtml_private.h"
31 #include "htmlstyle.h"
33 #include "wine/debug.h"
34 #include "wine/unicode.h"
36 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
38 static const WCHAR attrBackground[] =
39 {'b','a','c','k','g','r','o','u','n','d',0};
40 static const WCHAR attrBackgroundColor[] =
41 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
42 static const WCHAR attrBackgroundImage[] =
43 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
44 static const WCHAR attrBorder[] =
45 {'b','o','r','d','e','r',0};
46 static const WCHAR attrBorderLeft[] =
47 {'b','o','r','d','e','r','-','l','e','f','t',0};
48 static const WCHAR attrBorderWidth[] =
49 {'b','o','r','d','e','r','-','w','i','d','t','h',0};
50 static const WCHAR attrColor[] =
51 {'c','o','l','o','r',0};
52 static const WCHAR attrCursor[] =
53 {'c','u','r','s','o','r',0};
54 static const WCHAR attrDisplay[] =
55 {'d','i','s','p','l','a','y',0};
56 static const WCHAR attrFilter[] =
57 {'f','i','l','e','t','e','r',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 attrHeight[] =
67 {'h','e','i','g','h','t',0};
68 static const WCHAR attrLeft[] =
70 static const WCHAR attrMargin[] =
71 {'m','a','r','g','i','n',0};
72 static const WCHAR attrMarginLeft[] =
73 {'m','a','r','g','i','n','-','l','e','f','t',0};
74 static const WCHAR attrMarginRight[] =
75 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
76 static const WCHAR attrPaddingLeft[] =
77 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
78 static const WCHAR attrPosition[] =
79 {'p','o','s','i','t','i','o','n',0};
80 static const WCHAR attrTextAlign[] =
81 {'t','e','x','t','-','a','l','i','g','n',0};
82 static const WCHAR attrTextDecoration[] =
83 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
84 static const WCHAR attrTop[] =
86 static const WCHAR attrVerticalAlign[] =
87 {'v','e','r','t','i','c','a','l','-','a','l','i','g','n',0};
88 static const WCHAR attrVisibility[] =
89 {'v','i','s','i','b','i','l','i','t','y',0};
90 static const WCHAR attrWidth[] =
91 {'w','i','d','t','h',0};
92 static const WCHAR attrZIndex[] =
93 {'z','-','i','n','d','e','x',0};
99 {attrBackground, DISPID_IHTMLSTYLE_BACKGROUND},
100 {attrBackgroundColor, DISPID_IHTMLSTYLE_BACKGROUNDCOLOR},
101 {attrBackgroundImage, DISPID_IHTMLSTYLE_BACKGROUNDIMAGE},
102 {attrBorder, DISPID_IHTMLSTYLE_BORDER},
103 {attrBorderLeft, DISPID_IHTMLSTYLE_BORDERLEFT},
104 {attrBorderWidth, DISPID_IHTMLSTYLE_BORDERWIDTH},
105 {attrColor, DISPID_IHTMLSTYLE_COLOR},
106 {attrCursor, DISPID_IHTMLSTYLE_CURSOR},
107 {attrDisplay, DISPID_IHTMLSTYLE_DISPLAY},
108 {attrFilter, DISPID_IHTMLSTYLE_FILTER},
109 {attrFontFamily, DISPID_IHTMLSTYLE_FONTFAMILY},
110 {attrFontSize, DISPID_IHTMLSTYLE_FONTSIZE},
111 {attrFontStyle, DISPID_IHTMLSTYLE_FONTSTYLE},
112 {attrFontWeight, DISPID_IHTMLSTYLE_FONTWEIGHT},
113 {attrHeight, DISPID_IHTMLSTYLE_HEIGHT},
114 {attrLeft, DISPID_IHTMLSTYLE_LEFT},
115 {attrMargin, DISPID_IHTMLSTYLE_MARGIN},
116 {attrMarginLeft, DISPID_IHTMLSTYLE_MARGINLEFT},
117 {attrMarginRight, DISPID_IHTMLSTYLE_MARGINRIGHT},
118 {attrPaddingLeft, DISPID_IHTMLSTYLE_PADDINGLEFT},
119 {attrPosition, DISPID_IHTMLSTYLE2_POSITION},
120 {attrTextAlign, DISPID_IHTMLSTYLE_TEXTALIGN},
121 {attrTextDecoration, DISPID_IHTMLSTYLE_TEXTDECORATION},
122 {attrTop, DISPID_IHTMLSTYLE_TOP},
123 {attrVerticalAlign, DISPID_IHTMLSTYLE_VERTICALALIGN},
124 {attrVisibility, DISPID_IHTMLSTYLE_VISIBILITY},
125 {attrWidth, DISPID_IHTMLSTYLE_WIDTH},
126 {attrZIndex, DISPID_IHTMLSTYLE_ZINDEX}
129 static const WCHAR valLineThrough[] =
130 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
131 static const WCHAR valUnderline[] =
132 {'u','n','d','e','r','l','i','n','e',0};
134 static const WCHAR px_formatW[] = {'%','d','p','x',0};
135 static const WCHAR emptyW[] = {0};
137 static LPWSTR fix_px_value(LPCWSTR val)
142 while(*ptr && isspaceW(*ptr))
147 while(*ptr && isdigitW(*ptr))
150 if(!*ptr || isspaceW(*ptr)) {
152 int len = strlenW(val)+1;
154 ret = heap_alloc((len+2)*sizeof(WCHAR));
155 memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
161 TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
166 while(*ptr && !isspaceW(*ptr))
173 static LPWSTR fix_url_value(LPCWSTR val)
177 static const WCHAR urlW[] = {'u','r','l','('};
179 if(strncmpW(val, urlW, sizeof(urlW)/sizeof(WCHAR)) || !strchrW(val, '\\'))
182 ret = heap_strdupW(val);
184 for(ptr = ret; *ptr; ptr++) {
192 #define ATTR_FIX_PX 1
193 #define ATTR_FIX_URL 2
194 #define ATTR_STR_TO_INT 4
196 HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, LPCWSTR value, DWORD flags)
198 nsAString str_name, str_value, str_empty;
202 static const PRUnichar wszEmpty[] = {0};
204 if(flags & ATTR_FIX_PX)
205 val = fix_px_value(value);
206 if(flags & ATTR_FIX_URL)
207 val = fix_url_value(value);
209 nsAString_Init(&str_name, style_tbl[sid].name);
210 nsAString_Init(&str_value, val ? val : value);
211 nsAString_Init(&str_empty, wszEmpty);
214 nsres = nsIDOMCSSStyleDeclaration_SetProperty(nsstyle, &str_name, &str_value, &str_empty);
216 ERR("SetProperty failed: %08x\n", nsres);
218 nsAString_Finish(&str_name);
219 nsAString_Finish(&str_value);
220 nsAString_Finish(&str_empty);
225 static HRESULT set_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *value, DWORD flags)
227 switch(V_VT(value)) {
229 return set_nsstyle_attr(nsstyle, sid, emptyW, flags);
232 return set_nsstyle_attr(nsstyle, sid, V_BSTR(value), flags);
235 FIXME("not implemented vt %d\n", V_VT(value));
243 static inline HRESULT set_style_attr(HTMLStyle *This, styleid_t sid, LPCWSTR value, DWORD flags)
245 return set_nsstyle_attr(This->nsstyle, sid, value, flags);
248 static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
253 nsAString_Init(&str_name, style_tbl[sid].name);
255 nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(nsstyle, &str_name, value);
256 if(NS_FAILED(nsres)) {
257 ERR("SetProperty failed: %08x\n", nsres);
261 nsAString_Finish(&str_name);
266 HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR *p)
269 const PRUnichar *value;
271 nsAString_Init(&str_value, NULL);
273 get_nsstyle_attr_nsval(nsstyle, sid, &str_value);
275 nsAString_GetData(&str_value, &value);
276 *p = *value ? SysAllocString(value) : NULL;
278 nsAString_Finish(&str_value);
280 TRACE("%s -> %s\n", debugstr_w(style_tbl[sid].name), debugstr_w(*p));
284 HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
287 const PRUnichar *value;
290 nsAString_Init(&str_value, NULL);
292 get_nsstyle_attr_nsval(nsstyle, sid, &str_value);
294 nsAString_GetData(&str_value, &value);
296 if(flags & ATTR_STR_TO_INT) {
297 const PRUnichar *ptr = value;
306 while(isdigitW(*ptr))
307 i = i*10 + (*ptr++ - '0');
311 V_I4(p) = neg ? -i : i;
320 str = SysAllocString(value);
322 return E_OUTOFMEMORY;
329 nsAString_Finish(&str_value);
331 TRACE("%s -> %s\n", debugstr_w(style_tbl[sid].name), debugstr_variant(p));
335 static inline HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
337 return get_nsstyle_attr(This->nsstyle, sid, p);
340 static HRESULT check_style_attr_value(HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
343 const PRUnichar *value;
345 nsAString_Init(&str_value, NULL);
347 get_nsstyle_attr_nsval(This->nsstyle, sid, &str_value);
349 nsAString_GetData(&str_value, &value);
350 *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
351 nsAString_Finish(&str_value);
353 TRACE("%s -> %x\n", debugstr_w(style_tbl[sid].name), *p);
357 static inline HRESULT set_style_pos(HTMLStyle *This, styleid_t sid, float value)
360 WCHAR szFormat[] = {'%','.','0','f','p','x',0};
362 value = floor(value);
364 sprintfW(szValue, szFormat, value);
366 return set_style_attr(This, sid, szValue, 0);
369 HRESULT get_nsstyle_pos(HTMLStyle *This, styleid_t sid, float *p)
373 WCHAR pxW[] = {'p','x',0};
375 TRACE("%p %d %p\n", This, sid, p);
379 nsAString_Init(&str_value, NULL);
381 hres = get_nsstyle_attr_nsval(This->nsstyle, sid, &str_value);
385 const PRUnichar *value;
387 nsAString_GetData(&str_value, &value);
390 *p = strtolW(value, &ptr, 10);
392 if(*ptr && strcmpW(ptr, pxW))
394 nsAString_Finish(&str_value);
395 FIXME("only px values are currently supported\n");
401 TRACE("ret %f\n", *p);
403 nsAString_Finish(&str_value);
408 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
410 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
412 HTMLStyle *This = HTMLSTYLE_THIS(iface);
416 if(IsEqualGUID(&IID_IUnknown, riid)) {
417 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
418 *ppv = HTMLSTYLE(This);
419 }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
420 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
421 *ppv = HTMLSTYLE(This);
422 }else if(IsEqualGUID(&IID_IHTMLStyle2, riid)) {
423 TRACE("(%p)->(IID_IHTMLStyle2 %p)\n", This, ppv);
424 *ppv = HTMLSTYLE2(This);
425 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
426 return *ppv ? S_OK : E_NOINTERFACE;
430 IUnknown_AddRef((IUnknown*)*ppv);
434 WARN("unsupported %s\n", debugstr_guid(riid));
435 return E_NOINTERFACE;
438 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
440 HTMLStyle *This = HTMLSTYLE_THIS(iface);
441 LONG ref = InterlockedIncrement(&This->ref);
443 TRACE("(%p) ref=%d\n", This, ref);
448 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
450 HTMLStyle *This = HTMLSTYLE_THIS(iface);
451 LONG ref = InterlockedDecrement(&This->ref);
453 TRACE("(%p) ref=%d\n", This, ref);
457 nsIDOMCSSStyleDeclaration_Release(This->nsstyle);
464 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
466 HTMLStyle *This = HTMLSTYLE_THIS(iface);
467 return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This->dispex), pctinfo);
470 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
471 LCID lcid, ITypeInfo **ppTInfo)
473 HTMLStyle *This = HTMLSTYLE_THIS(iface);
474 return IDispatchEx_GetTypeInfo(DISPATCHEX(&This->dispex), iTInfo, lcid, ppTInfo);
477 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
478 LPOLESTR *rgszNames, UINT cNames,
479 LCID lcid, DISPID *rgDispId)
481 HTMLStyle *This = HTMLSTYLE_THIS(iface);
482 return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This->dispex), riid, rgszNames, cNames, lcid, rgDispId);
485 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
486 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
487 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
489 HTMLStyle *This = HTMLSTYLE_THIS(iface);
490 return IDispatchEx_Invoke(DISPATCHEX(&This->dispex), dispIdMember, riid, lcid,
491 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
494 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
496 HTMLStyle *This = HTMLSTYLE_THIS(iface);
498 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
500 return set_style_attr(This, STYLEID_FONT_FAMILY, v, 0);
503 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
505 HTMLStyle *This = HTMLSTYLE_THIS(iface);
507 TRACE("(%p)->(%p)\n", This, p);
509 return get_style_attr(This, STYLEID_FONT_FAMILY, p);
512 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
514 HTMLStyle *This = HTMLSTYLE_THIS(iface);
515 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
519 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
521 HTMLStyle *This = HTMLSTYLE_THIS(iface);
523 TRACE("(%p)->(%p)\n", This, p);
525 return get_style_attr(This, STYLEID_FONT_STYLE, p);
528 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
530 HTMLStyle *This = HTMLSTYLE_THIS(iface);
531 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
535 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
537 HTMLStyle *This = HTMLSTYLE_THIS(iface);
538 FIXME("(%p)->(%p)\n", This, p);
542 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
544 HTMLStyle *This = HTMLSTYLE_THIS(iface);
545 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
549 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
551 HTMLStyle *This = HTMLSTYLE_THIS(iface);
553 TRACE("(%p)->(%p)\n", This, p);
555 return get_style_attr(This, STYLEID_FONT_WEIGHT, p);
558 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
560 HTMLStyle *This = HTMLSTYLE_THIS(iface);
562 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
566 return set_style_attr(This, STYLEID_FONT_SIZE, V_BSTR(&v), 0);
568 FIXME("not supported vt %d\n", V_VT(&v));
574 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
576 HTMLStyle *This = HTMLSTYLE_THIS(iface);
578 TRACE("(%p)->(%p)\n", This, p);
581 return get_style_attr(This, STYLEID_FONT_SIZE, &V_BSTR(p));
584 static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
586 HTMLStyle *This = HTMLSTYLE_THIS(iface);
587 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
591 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
593 HTMLStyle *This = HTMLSTYLE_THIS(iface);
594 FIXME("(%p)->(%p)\n", This, p);
598 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
600 HTMLStyle *This = HTMLSTYLE_THIS(iface);
602 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
606 TRACE("%s\n", debugstr_w(V_BSTR(&v)));
607 return set_style_attr(This, STYLEID_COLOR, V_BSTR(&v), 0);
610 FIXME("unsupported vt=%d\n", V_VT(&v));
616 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
618 HTMLStyle *This = HTMLSTYLE_THIS(iface);
620 TRACE("(%p)->(%p)\n", This, p);
623 return get_style_attr(This, STYLEID_COLOR, &V_BSTR(p));
626 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
628 HTMLStyle *This = HTMLSTYLE_THIS(iface);
630 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
632 return set_style_attr(This, STYLEID_BACKGROUND, v, 0);
635 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
637 HTMLStyle *This = HTMLSTYLE_THIS(iface);
639 TRACE("(%p)->(%p)\n", This, p);
641 return get_style_attr(This, STYLEID_BACKGROUND, p);
644 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
646 HTMLStyle *This = HTMLSTYLE_THIS(iface);
648 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
652 return set_style_attr(This, STYLEID_BACKGROUND_COLOR, V_BSTR(&v), 0);
655 static const WCHAR format[] = {'#','%','0','6','x',0};
657 wsprintfW(value, format, V_I4(&v));
658 return set_style_attr(This, STYLEID_BACKGROUND_COLOR, value, 0);
661 FIXME("unsupported vt %d\n", V_VT(&v));
667 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
669 HTMLStyle *This = HTMLSTYLE_THIS(iface);
670 FIXME("(%p)->(%p)\n", This, p);
674 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
676 HTMLStyle *This = HTMLSTYLE_THIS(iface);
678 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
680 return set_style_attr(This, STYLEID_BACKGROUND_IMAGE, v, ATTR_FIX_URL);
683 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
685 HTMLStyle *This = HTMLSTYLE_THIS(iface);
686 FIXME("(%p)->(%p)\n", This, p);
690 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
692 HTMLStyle *This = HTMLSTYLE_THIS(iface);
693 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
697 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
699 HTMLStyle *This = HTMLSTYLE_THIS(iface);
700 FIXME("(%p)->(%p)\n", This, p);
704 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
706 HTMLStyle *This = HTMLSTYLE_THIS(iface);
707 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
711 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
713 HTMLStyle *This = HTMLSTYLE_THIS(iface);
714 FIXME("(%p)->(%p)\n", This, p);
718 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
720 HTMLStyle *This = HTMLSTYLE_THIS(iface);
721 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
725 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
727 HTMLStyle *This = HTMLSTYLE_THIS(iface);
728 FIXME("(%p)->(%p)\n", This, p);
732 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
734 HTMLStyle *This = HTMLSTYLE_THIS(iface);
735 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
739 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
741 HTMLStyle *This = HTMLSTYLE_THIS(iface);
742 FIXME("(%p)->(%p)\n", This, p);
746 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
748 HTMLStyle *This = HTMLSTYLE_THIS(iface);
749 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
753 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
755 HTMLStyle *This = HTMLSTYLE_THIS(iface);
756 FIXME("(%p)->(%p)\n", This, p);
760 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
762 HTMLStyle *This = HTMLSTYLE_THIS(iface);
763 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
767 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
769 HTMLStyle *This = HTMLSTYLE_THIS(iface);
770 FIXME("(%p)->(%p)\n", This, p);
774 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
776 HTMLStyle *This = HTMLSTYLE_THIS(iface);
777 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
781 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
783 HTMLStyle *This = HTMLSTYLE_THIS(iface);
784 FIXME("(%p)->(%p)\n", This, p);
788 static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
790 HTMLStyle *This = HTMLSTYLE_THIS(iface);
791 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
795 static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
797 HTMLStyle *This = HTMLSTYLE_THIS(iface);
799 TRACE("(%p)->(%p)\n", This, p);
801 return get_style_attr(This, STYLEID_TEXT_DECORATION, p);
804 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
806 HTMLStyle *This = HTMLSTYLE_THIS(iface);
807 FIXME("(%p)->(%x)\n", This, v);
811 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
813 HTMLStyle *This = HTMLSTYLE_THIS(iface);
814 FIXME("(%p)->(%p)\n", This, p);
818 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
820 HTMLStyle *This = HTMLSTYLE_THIS(iface);
821 FIXME("(%p)->(%x)\n", This, v);
825 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
827 HTMLStyle *This = HTMLSTYLE_THIS(iface);
829 TRACE("(%p)->(%p)\n", This, p);
831 return check_style_attr_value(This, STYLEID_TEXT_DECORATION, valUnderline, p);
834 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
836 HTMLStyle *This = HTMLSTYLE_THIS(iface);
837 FIXME("(%p)->(%x)\n", This, v);
841 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
843 HTMLStyle *This = HTMLSTYLE_THIS(iface);
844 FIXME("(%p)->(%p)\n", This, p);
848 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
850 HTMLStyle *This = HTMLSTYLE_THIS(iface);
851 FIXME("(%p)->(%x)\n", This, v);
855 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
857 HTMLStyle *This = HTMLSTYLE_THIS(iface);
859 TRACE("(%p)->(%p)\n", This, p);
861 return check_style_attr_value(This, STYLEID_TEXT_DECORATION, valLineThrough, p);
864 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
866 HTMLStyle *This = HTMLSTYLE_THIS(iface);
867 FIXME("(%p)->(%x)\n", This, v);
871 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
873 HTMLStyle *This = HTMLSTYLE_THIS(iface);
874 FIXME("(%p)->(%p)\n", This, p);
878 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
880 HTMLStyle *This = HTMLSTYLE_THIS(iface);
882 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
886 return set_style_attr(This, STYLEID_VERTICAL_ALIGN, V_BSTR(&v), 0);
888 FIXME("not implemented vt %d\n", V_VT(&v));
895 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
897 HTMLStyle *This = HTMLSTYLE_THIS(iface);
901 TRACE("(%p)->(%p)\n", This, p);
903 hres = get_style_attr(This, STYLEID_VERTICAL_ALIGN, &ret);
912 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
914 HTMLStyle *This = HTMLSTYLE_THIS(iface);
915 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
919 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
921 HTMLStyle *This = HTMLSTYLE_THIS(iface);
922 FIXME("(%p)->(%p)\n", This, p);
926 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
928 HTMLStyle *This = HTMLSTYLE_THIS(iface);
930 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
932 return set_style_attr(This, STYLEID_TEXT_ALIGN, v, 0);
935 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
937 HTMLStyle *This = HTMLSTYLE_THIS(iface);
939 TRACE("(%p)->(%p)\n", This, p);
941 return get_style_attr(This, STYLEID_TEXT_ALIGN, p);
944 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
946 HTMLStyle *This = HTMLSTYLE_THIS(iface);
947 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
951 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
953 HTMLStyle *This = HTMLSTYLE_THIS(iface);
954 FIXME("(%p)->(%p)\n", This, p);
958 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
960 HTMLStyle *This = HTMLSTYLE_THIS(iface);
961 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
965 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
967 HTMLStyle *This = HTMLSTYLE_THIS(iface);
968 FIXME("(%p)->(%p)\n", This, p);
972 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
974 HTMLStyle *This = HTMLSTYLE_THIS(iface);
975 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
979 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
981 HTMLStyle *This = HTMLSTYLE_THIS(iface);
982 FIXME("(%p)->(%p)\n", This, p);
986 static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
988 HTMLStyle *This = HTMLSTYLE_THIS(iface);
990 TRACE("(%p)->(v(%d))\n", This, V_VT(&v));
994 return set_style_attr(This, STYLEID_MARGIN_RIGHT, emptyW, 0);
998 wsprintfW(buf, px_formatW, V_I4(&v));
999 return set_style_attr(This, STYLEID_MARGIN_RIGHT, buf, 0);
1002 return set_style_attr(This, STYLEID_MARGIN_RIGHT, V_BSTR(&v), 0);
1004 FIXME("Unsupported vt=%d\n", V_VT(&v));
1010 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
1012 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1013 FIXME("(%p)->(%p)\n", This, p);
1017 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
1019 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1020 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1024 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
1026 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1027 FIXME("(%p)->(%p)\n", This, p);
1031 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
1033 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1037 TRACE("(%p)->(NULL)\n", This);
1038 return set_style_attr(This, STYLEID_MARGIN_LEFT, emptyW, 0);
1042 TRACE("(%p)->(%d)\n", This, V_I4(&v));
1044 wsprintfW(buf, px_formatW, V_I4(&v));
1045 return set_style_attr(This, STYLEID_MARGIN_LEFT, buf, 0);
1048 TRACE("(%p)->(%s)\n", This, debugstr_w(V_BSTR(&v)));
1049 return set_style_attr(This, STYLEID_MARGIN_LEFT, V_BSTR(&v), 0);
1051 FIXME("Unsupported vt=%d\n", V_VT(&v));
1057 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
1059 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1061 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1063 return set_style_attr(This, STYLEID_MARGIN, v, 0);
1066 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
1068 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1070 TRACE("(%p)->(%p)\n", This, p);
1072 return get_style_attr(This, STYLEID_MARGIN, p);
1075 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
1077 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1078 FIXME("(%p)->(%p)\n", This, p);
1082 static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
1084 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1085 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1089 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
1091 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1092 FIXME("(%p)->(%p)\n", This, p);
1096 static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
1098 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1099 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1103 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
1105 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1106 FIXME("(%p)->(%p)\n", This, p);
1110 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
1112 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1113 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1117 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
1119 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1120 FIXME("(%p)->(%p)\n", This, p);
1124 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
1126 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1128 TRACE("(%p)->(vt=%d)\n", This, V_VT(&v));
1134 wsprintfW(buf, px_formatW, V_I4(&v));
1135 return set_style_attr(This, STYLEID_PADDING_LEFT, buf, 0);
1138 return set_style_attr(This, STYLEID_PADDING_LEFT, V_BSTR(&v), 0);
1140 FIXME("unsupported vt=%d\n", V_VT(&v));
1146 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
1148 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1149 FIXME("(%p)->(%p)\n", This, p);
1153 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
1155 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1156 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1160 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
1162 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1163 FIXME("(%p)->(%p)\n", This, p);
1167 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
1169 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1171 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1173 return set_style_attr(This, STYLEID_BORDER, v, 0);
1176 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
1178 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1180 TRACE("(%p)->(%p)\n", This, p);
1182 return get_style_attr(This, STYLEID_BORDER, p);
1185 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
1187 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1188 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1192 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
1194 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1195 FIXME("(%p)->(%p)\n", This, p);
1199 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
1201 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1202 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1206 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
1208 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1209 FIXME("(%p)->(%p)\n", This, p);
1213 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
1215 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1216 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1220 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
1222 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1223 FIXME("(%p)->(%p)\n", This, p);
1227 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
1229 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1231 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1233 return set_style_attr(This, STYLEID_BORDER_LEFT, v, ATTR_FIX_PX);
1236 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
1238 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1239 FIXME("(%p)->(%p)\n", This, p);
1243 static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
1245 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1246 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1250 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
1252 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1253 FIXME("(%p)->(%p)\n", This, p);
1257 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
1259 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1260 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1264 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
1266 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1267 FIXME("(%p)->(%p)\n", This, p);
1271 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
1273 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1274 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1278 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
1280 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1281 FIXME("(%p)->(%p)\n", This, p);
1285 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
1287 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1288 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1292 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
1294 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1295 FIXME("(%p)->(%p)\n", This, p);
1299 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
1301 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1302 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1306 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
1308 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1309 FIXME("(%p)->(%p)\n", This, p);
1313 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
1315 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1316 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1317 return set_style_attr(This, STYLEID_BORDER_WIDTH, v, ATTR_FIX_PX);
1320 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
1322 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1323 TRACE("(%p)->(%p)\n", This, p);
1324 return get_style_attr(This, STYLEID_BORDER_WIDTH, p);
1327 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
1329 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1330 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1334 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
1336 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1337 FIXME("(%p)->(%p)\n", This, p);
1341 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
1343 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1344 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1348 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
1350 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1351 FIXME("(%p)->(%p)\n", This, p);
1355 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
1357 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1358 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1362 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1364 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1365 FIXME("(%p)->(%p)\n", This, p);
1369 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1371 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1372 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1376 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1378 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1379 FIXME("(%p)->(%p)\n", This, p);
1383 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1385 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1386 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1390 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1392 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1393 FIXME("(%p)->(%p)\n", This, p);
1397 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1399 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1400 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1404 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1406 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1407 FIXME("(%p)->(%p)\n", This, p);
1411 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1413 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1414 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1418 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1420 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1421 FIXME("(%p)->(%p)\n", This, p);
1425 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1427 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1428 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1432 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1434 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1435 FIXME("(%p)->(%p)\n", This, p);
1439 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1441 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1442 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1446 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1448 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1449 FIXME("(%p)->(%p)\n", This, p);
1453 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1455 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1457 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
1461 TRACE("%s\n", debugstr_w(V_BSTR(&v)));
1462 return set_style_attr(This, STYLEID_WIDTH, V_BSTR(&v), 0);
1464 FIXME("unsupported vt %d\n", V_VT(&v));
1470 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1472 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1474 TRACE("(%p)->(%p)\n", This, p);
1477 return get_style_attr(This, STYLEID_WIDTH, &V_BSTR(p));
1480 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1482 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1484 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1488 return set_style_attr(This, STYLEID_HEIGHT, V_BSTR(&v), 0);
1490 FIXME("unimplemented vt %d\n", V_VT(&v));
1497 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1499 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1503 TRACE("(%p)->(%p)\n", This, p);
1505 hres = get_style_attr(This, STYLEID_HEIGHT, &ret);
1514 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1516 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1517 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1521 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1523 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1524 FIXME("(%p)->(%p)\n", This, p);
1528 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1530 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1531 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1535 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1537 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1538 FIXME("(%p)->(%p)\n", This, p);
1542 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1544 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1546 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1548 return set_style_attr(This, STYLEID_DISPLAY, v, 0);
1551 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1553 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1555 TRACE("(%p)->(%p)\n", This, p);
1557 return get_style_attr(This, STYLEID_DISPLAY, p);
1560 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1562 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1564 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1566 return set_style_attr(This, STYLEID_VISIBILITY, v, 0);
1569 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1571 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1573 TRACE("(%p)->(%p)\n", This, p);
1575 return get_style_attr(This, STYLEID_VISIBILITY, p);
1578 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1580 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1581 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1585 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1587 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1588 FIXME("(%p)->(%p)\n", This, p);
1592 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1594 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1595 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1599 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1601 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1602 FIXME("(%p)->(%p)\n", This, p);
1606 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1608 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1609 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1613 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1615 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1616 FIXME("(%p)->(%p)\n", This, p);
1620 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1622 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1623 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1627 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1629 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1630 FIXME("(%p)->(%p)\n", This, p);
1634 static HRESULT WINAPI HTMLStyle_put_whiteSpace(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_whiteSpace(IHTMLStyle *iface, BSTR *p)
1643 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1644 FIXME("(%p)->(%p)\n", This, p);
1648 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1650 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1652 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1654 return set_nsstyle_attr_var(This->nsstyle, STYLEID_TOP, &v, 0);
1657 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1659 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1663 TRACE("(%p)->(%p)\n", This, p);
1665 hres = get_style_attr(This, STYLEID_TOP, &ret);
1674 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1676 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1678 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1680 return set_nsstyle_attr_var(This->nsstyle, STYLEID_LEFT, &v, 0);
1683 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1685 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1689 TRACE("(%p)->(%p)\n", This, p);
1691 hres = get_style_attr(This, STYLEID_LEFT, &ret);
1700 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1702 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1703 FIXME("(%p)->(%p)\n", This, p);
1707 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1709 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1711 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1715 return set_style_attr(This, STYLEID_Z_INDEX, V_BSTR(&v), 0);
1717 FIXME("unimplemented vt %d\n", V_VT(&v));
1724 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1726 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1728 TRACE("(%p)->(%p)\n", This, p);
1730 return get_nsstyle_attr_var(This->nsstyle, STYLEID_Z_INDEX, p, ATTR_STR_TO_INT);
1733 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1735 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1736 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1740 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1742 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1743 FIXME("(%p)->(%p)\n", This, p);
1747 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1749 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1750 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1754 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1756 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1757 FIXME("(%p)->(%p)\n", This, p);
1761 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1763 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1764 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1768 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1770 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1771 FIXME("(%p)->(%p)\n", This, p);
1775 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1777 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1778 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1782 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1784 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1785 FIXME("(%p)->(%p)\n", This, p);
1789 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1791 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1792 FIXME("(%p)->()\n", This);
1796 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1798 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1799 FIXME("(%p)->()\n", This);
1803 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1805 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1806 FIXME("(%p)->()\n", This);
1810 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1812 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1813 FIXME("(%p)->()\n", This);
1817 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1819 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1820 FIXME("(%p)->()\n", This);
1824 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1826 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1827 FIXME("(%p)->()\n", This);
1831 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1833 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1834 FIXME("(%p)->()\n", This);
1838 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1840 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1841 FIXME("(%p)->()\n", This);
1845 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1847 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1849 TRACE("(%p)->(%f)\n", This, v);
1851 return set_style_pos(This, STYLEID_TOP, v);
1854 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1856 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1858 TRACE("(%p)->(%p)\n", This, p);
1863 return get_nsstyle_pos(This, STYLEID_TOP, p);
1866 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1868 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1870 TRACE("(%p)->(%f)\n", This, v);
1872 return set_style_pos(This, STYLEID_LEFT, v);
1875 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1877 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1879 TRACE("(%p)->(%p)\n", This, p);
1884 return get_nsstyle_pos(This, STYLEID_LEFT, p);
1887 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1889 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1890 FIXME("(%p)->()\n", This);
1894 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1896 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1897 FIXME("(%p)->()\n", This);
1901 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1903 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1904 FIXME("(%p)->()\n", This);
1908 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1910 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1911 FIXME("(%p)->()\n", This);
1915 static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
1917 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1919 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1921 return set_style_attr(This, STYLEID_CURSOR, v, 0);
1924 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1926 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1928 TRACE("(%p)->(%p)\n", This, p);
1930 return get_style_attr(This, STYLEID_CURSOR, p);
1933 static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
1935 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1936 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1940 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1942 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1943 FIXME("(%p)->(%p)\n", This, p);
1947 static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
1949 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1951 WARN("(%p)->(%s)\n", This, debugstr_w(v));
1953 /* FIXME: Handle MS-style filters */
1954 return set_style_attr(This, STYLEID_FILTER, v, 0);
1957 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1959 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1961 WARN("(%p)->(%p)\n", This, p);
1963 /* FIXME: Handle MS-style filters */
1964 return get_style_attr(This, STYLEID_FILTER, p);
1967 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1968 VARIANT AttributeValue, LONG lFlags)
1970 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1971 FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1972 V_VT(&AttributeValue), lFlags);
1976 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1977 LONG lFlags, VARIANT *AttributeValue)
1979 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1980 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1981 lFlags, AttributeValue);
1985 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1986 LONG lFlags, VARIANT_BOOL *pfSuccess)
1988 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1989 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1994 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1996 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1997 FIXME("(%p)->(%p)\n", This, String);
2001 static HRESULT HTMLStyle_get_dispid(IUnknown *iface, BSTR name, DWORD flags, DISPID *dispid)
2003 int c, i, min=0, max = sizeof(style_tbl)/sizeof(*style_tbl)-1;
2008 c = strcmpW(style_tbl[i].name, name);
2010 *dispid = style_tbl[i].dispid;
2020 return DISP_E_UNKNOWNNAME;
2023 static const IHTMLStyleVtbl HTMLStyleVtbl = {
2024 HTMLStyle_QueryInterface,
2027 HTMLStyle_GetTypeInfoCount,
2028 HTMLStyle_GetTypeInfo,
2029 HTMLStyle_GetIDsOfNames,
2031 HTMLStyle_put_fontFamily,
2032 HTMLStyle_get_fontFamily,
2033 HTMLStyle_put_fontStyle,
2034 HTMLStyle_get_fontStyle,
2035 HTMLStyle_put_fontVariant,
2036 HTMLStyle_get_fontVariant,
2037 HTMLStyle_put_fontWeight,
2038 HTMLStyle_get_fontWeight,
2039 HTMLStyle_put_fontSize,
2040 HTMLStyle_get_fontSize,
2043 HTMLStyle_put_color,
2044 HTMLStyle_get_color,
2045 HTMLStyle_put_background,
2046 HTMLStyle_get_background,
2047 HTMLStyle_put_backgroundColor,
2048 HTMLStyle_get_backgroundColor,
2049 HTMLStyle_put_backgroundImage,
2050 HTMLStyle_get_backgroundImage,
2051 HTMLStyle_put_backgroundRepeat,
2052 HTMLStyle_get_backgroundRepeat,
2053 HTMLStyle_put_backgroundAttachment,
2054 HTMLStyle_get_backgroundAttachment,
2055 HTMLStyle_put_backgroundPosition,
2056 HTMLStyle_get_backgroundPosition,
2057 HTMLStyle_put_backgroundPositionX,
2058 HTMLStyle_get_backgroundPositionX,
2059 HTMLStyle_put_backgroundPositionY,
2060 HTMLStyle_get_backgroundPositionY,
2061 HTMLStyle_put_wordSpacing,
2062 HTMLStyle_get_wordSpacing,
2063 HTMLStyle_put_letterSpacing,
2064 HTMLStyle_get_letterSpacing,
2065 HTMLStyle_put_textDecoration,
2066 HTMLStyle_get_textDecoration,
2067 HTMLStyle_put_textDecorationNone,
2068 HTMLStyle_get_textDecorationNone,
2069 HTMLStyle_put_textDecorationUnderline,
2070 HTMLStyle_get_textDecorationUnderline,
2071 HTMLStyle_put_textDecorationOverline,
2072 HTMLStyle_get_textDecorationOverline,
2073 HTMLStyle_put_textDecorationLineThrough,
2074 HTMLStyle_get_textDecorationLineThrough,
2075 HTMLStyle_put_textDecorationBlink,
2076 HTMLStyle_get_textDecorationBlink,
2077 HTMLStyle_put_verticalAlign,
2078 HTMLStyle_get_verticalAlign,
2079 HTMLStyle_put_textTransform,
2080 HTMLStyle_get_textTransform,
2081 HTMLStyle_put_textAlign,
2082 HTMLStyle_get_textAlign,
2083 HTMLStyle_put_textIndent,
2084 HTMLStyle_get_textIndent,
2085 HTMLStyle_put_lineHeight,
2086 HTMLStyle_get_lineHeight,
2087 HTMLStyle_put_marginTop,
2088 HTMLStyle_get_marginTop,
2089 HTMLStyle_put_marginRight,
2090 HTMLStyle_get_marginRight,
2091 HTMLStyle_put_marginBottom,
2092 HTMLStyle_get_marginBottom,
2093 HTMLStyle_put_marginLeft,
2094 HTMLStyle_get_marginLeft,
2095 HTMLStyle_put_margin,
2096 HTMLStyle_get_margin,
2097 HTMLStyle_put_paddingTop,
2098 HTMLStyle_get_paddingTop,
2099 HTMLStyle_put_paddingRight,
2100 HTMLStyle_get_paddingRight,
2101 HTMLStyle_put_paddingBottom,
2102 HTMLStyle_get_paddingBottom,
2103 HTMLStyle_put_paddingLeft,
2104 HTMLStyle_get_paddingLeft,
2105 HTMLStyle_put_padding,
2106 HTMLStyle_get_padding,
2107 HTMLStyle_put_border,
2108 HTMLStyle_get_border,
2109 HTMLStyle_put_borderTop,
2110 HTMLStyle_get_borderTop,
2111 HTMLStyle_put_borderRight,
2112 HTMLStyle_get_borderRight,
2113 HTMLStyle_put_borderBottom,
2114 HTMLStyle_get_borderBottom,
2115 HTMLStyle_put_borderLeft,
2116 HTMLStyle_get_borderLeft,
2117 HTMLStyle_put_borderColor,
2118 HTMLStyle_get_borderColor,
2119 HTMLStyle_put_borderTopColor,
2120 HTMLStyle_get_borderTopColor,
2121 HTMLStyle_put_borderRightColor,
2122 HTMLStyle_get_borderRightColor,
2123 HTMLStyle_put_borderBottomColor,
2124 HTMLStyle_get_borderBottomColor,
2125 HTMLStyle_put_borderLeftColor,
2126 HTMLStyle_get_borderLeftColor,
2127 HTMLStyle_put_borderWidth,
2128 HTMLStyle_get_borderWidth,
2129 HTMLStyle_put_borderTopWidth,
2130 HTMLStyle_get_borderTopWidth,
2131 HTMLStyle_put_borderRightWidth,
2132 HTMLStyle_get_borderRightWidth,
2133 HTMLStyle_put_borderBottomWidth,
2134 HTMLStyle_get_borderBottomWidth,
2135 HTMLStyle_put_borderLeftWidth,
2136 HTMLStyle_get_borderLeftWidth,
2137 HTMLStyle_put_borderStyle,
2138 HTMLStyle_get_borderStyle,
2139 HTMLStyle_put_borderTopStyle,
2140 HTMLStyle_get_borderTopStyle,
2141 HTMLStyle_put_borderRightStyle,
2142 HTMLStyle_get_borderRightStyle,
2143 HTMLStyle_put_borderBottomStyle,
2144 HTMLStyle_get_borderBottomStyle,
2145 HTMLStyle_put_borderLeftStyle,
2146 HTMLStyle_get_borderLeftStyle,
2147 HTMLStyle_put_width,
2148 HTMLStyle_get_width,
2149 HTMLStyle_put_height,
2150 HTMLStyle_get_height,
2151 HTMLStyle_put_styleFloat,
2152 HTMLStyle_get_styleFloat,
2153 HTMLStyle_put_clear,
2154 HTMLStyle_get_clear,
2155 HTMLStyle_put_display,
2156 HTMLStyle_get_display,
2157 HTMLStyle_put_visibility,
2158 HTMLStyle_get_visibility,
2159 HTMLStyle_put_listStyleType,
2160 HTMLStyle_get_listStyleType,
2161 HTMLStyle_put_listStylePosition,
2162 HTMLStyle_get_listStylePosition,
2163 HTMLStyle_put_listStyleImage,
2164 HTMLStyle_get_listStyleImage,
2165 HTMLStyle_put_listStyle,
2166 HTMLStyle_get_listStyle,
2167 HTMLStyle_put_whiteSpace,
2168 HTMLStyle_get_whiteSpace,
2173 HTMLStyle_get_position,
2174 HTMLStyle_put_zIndex,
2175 HTMLStyle_get_zIndex,
2176 HTMLStyle_put_overflow,
2177 HTMLStyle_get_overflow,
2178 HTMLStyle_put_pageBreakBefore,
2179 HTMLStyle_get_pageBreakBefore,
2180 HTMLStyle_put_pageBreakAfter,
2181 HTMLStyle_get_pageBreakAfter,
2182 HTMLStyle_put_cssText,
2183 HTMLStyle_get_cssText,
2184 HTMLStyle_put_pixelTop,
2185 HTMLStyle_get_pixelTop,
2186 HTMLStyle_put_pixelLeft,
2187 HTMLStyle_get_pixelLeft,
2188 HTMLStyle_put_pixelWidth,
2189 HTMLStyle_get_pixelWidth,
2190 HTMLStyle_put_pixelHeight,
2191 HTMLStyle_get_pixelHeight,
2192 HTMLStyle_put_posTop,
2193 HTMLStyle_get_posTop,
2194 HTMLStyle_put_posLeft,
2195 HTMLStyle_get_posLeft,
2196 HTMLStyle_put_posWidth,
2197 HTMLStyle_get_posWidth,
2198 HTMLStyle_put_posHeight,
2199 HTMLStyle_get_posHeight,
2200 HTMLStyle_put_cursor,
2201 HTMLStyle_get_cursor,
2204 HTMLStyle_put_filter,
2205 HTMLStyle_get_filter,
2206 HTMLStyle_setAttribute,
2207 HTMLStyle_getAttribute,
2208 HTMLStyle_removeAttribute,
2212 static const dispex_static_data_vtbl_t HTMLStyle_dispex_vtbl = {
2213 HTMLStyle_get_dispid,
2217 static const tid_t HTMLStyle_iface_tids[] = {
2222 static dispex_static_data_t HTMLStyle_dispex = {
2223 &HTMLStyle_dispex_vtbl,
2226 HTMLStyle_iface_tids
2229 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
2231 HTMLStyle *ret = heap_alloc_zero(sizeof(HTMLStyle));
2233 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
2235 ret->nsstyle = nsstyle;
2236 HTMLStyle2_Init(ret);
2238 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
2240 init_dispex(&ret->dispex, (IUnknown*)HTMLSTYLE(ret), &HTMLStyle_dispex);
2242 return HTMLSTYLE(ret);