mshtml: Use IDs instead of strings in HTMLStyle implementation.
[wine/multimedia.git] / dlls / mshtml / htmlstyle.c
blob3805c747d0266a47c519f2e1b8f3488d18a88685
1 /*
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
19 #include <stdarg.h>
21 #define COBJMACROS
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winuser.h"
26 #include "ole2.h"
28 #include "mshtml_private.h"
29 #include "htmlstyle.h"
31 #include "wine/debug.h"
32 #include "wine/unicode.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
36 static const WCHAR attrBackground[] =
37 {'b','a','c','k','g','r','o','u','n','d',0};
38 static const WCHAR attrBackgroundColor[] =
39 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
40 static const WCHAR attrBackgroundImage[] =
41 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
42 static const WCHAR attrBorderLeft[] =
43 {'b','o','r','d','e','r','-','l','e','f','t',0};
44 static const WCHAR attrColor[] =
45 {'c','o','l','o','r',0};
46 static const WCHAR attrDisplay[] =
47 {'d','i','s','p','l','a','y',0};
48 static const WCHAR attrFontFamily[] =
49 {'f','o','n','t','-','f','a','m','i','l','y',0};
50 static const WCHAR attrFontSize[] =
51 {'f','o','n','t','-','s','i','z','e',0};
52 static const WCHAR attrFontStyle[] =
53 {'f','o','n','t','-','s','t','y','l','e',0};
54 static const WCHAR attrFontWeight[] =
55 {'f','o','n','t','-','w','e','i','g','h','t',0};
56 static const WCHAR attrMargin[] =
57 {'m','a','r','g','i','n',0};
58 static const WCHAR attrMarginLeft[] =
59 {'m','a','r','g','i','n','-','l','e','f','t',0};
60 static const WCHAR attrMarginRight[] =
61 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
62 static const WCHAR attrPaddingLeft[] =
63 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
64 static const WCHAR attrTextDecoration[] =
65 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
66 static const WCHAR attrVisibility[] =
67 {'v','i','s','i','b','i','l','i','t','y',0};
68 static const WCHAR attrWidth[] =
69 {'w','i','d','t','h',0};
71 static const LPCWSTR style_strings[] = {
72 attrBackground,
73 attrBackgroundColor,
74 attrBackgroundImage,
75 attrBorderLeft,
76 attrColor,
77 attrDisplay,
78 attrFontFamily,
79 attrFontSize,
80 attrFontStyle,
81 attrFontWeight,
82 attrMargin,
83 attrMarginLeft,
84 attrMarginRight,
85 attrPaddingLeft,
86 attrTextDecoration,
87 attrVisibility,
88 attrWidth,
91 static const WCHAR valLineThrough[] =
92 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
93 static const WCHAR valUnderline[] =
94 {'u','n','d','e','r','l','i','n','e',0};
96 static const WCHAR px_formatW[] = {'%','d','p','x',0};
97 static const WCHAR emptyW[] = {0};
99 static LPWSTR fix_px_value(LPCWSTR val)
101 LPCWSTR ptr = val;
103 while(*ptr) {
104 while(*ptr && isspaceW(*ptr))
105 ptr++;
106 if(!*ptr)
107 break;
109 while(*ptr && isdigitW(*ptr))
110 ptr++;
112 if(!*ptr || isspaceW(*ptr)) {
113 LPWSTR ret, p;
114 int len = strlenW(val)+1;
116 ret = heap_alloc((len+2)*sizeof(WCHAR));
117 memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
118 p = ret + (ptr-val);
119 *p++ = 'p';
120 *p++ = 'x';
121 strcpyW(p, ptr);
123 TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
125 return ret;
128 while(*ptr && !isspaceW(*ptr))
129 ptr++;
132 return NULL;
135 static LPWSTR fix_url_value(LPCWSTR val)
137 WCHAR *ret, *ptr;
139 static const WCHAR urlW[] = {'u','r','l','('};
141 if(strncmpW(val, urlW, sizeof(urlW)/sizeof(WCHAR)) || !strchrW(val, '\\'))
142 return NULL;
144 ret = heap_strdupW(val);
146 for(ptr = ret; *ptr; ptr++) {
147 if(*ptr == '\\')
148 *ptr = '/';
151 return ret;
154 #define ATTR_FIX_PX 1
155 #define ATTR_FIX_URL 2
157 static HRESULT set_style_attr(HTMLStyle *This, styleid_t sid, LPCWSTR value, DWORD flags)
159 nsAString str_name, str_value, str_empty;
160 LPWSTR val = NULL;
161 nsresult nsres;
163 static const PRUnichar wszEmpty[] = {0};
165 TRACE("(%p)->(%s %s)\n", This, debugstr_w(style_strings[sid]), debugstr_w(value));
167 if(flags & ATTR_FIX_PX)
168 val = fix_px_value(value);
169 if(flags & ATTR_FIX_URL)
170 val = fix_url_value(value);
172 nsAString_Init(&str_name, style_strings[sid]);
173 nsAString_Init(&str_value, val ? val : value);
174 nsAString_Init(&str_empty, wszEmpty);
175 heap_free(val);
177 nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
178 if(NS_FAILED(nsres))
179 ERR("SetProperty failed: %08x\n", nsres);
181 nsAString_Finish(&str_name);
182 nsAString_Finish(&str_value);
183 nsAString_Finish(&str_empty);
185 return S_OK;
188 static HRESULT get_style_attr_nsval(HTMLStyle *This, styleid_t sid, nsAString *value)
190 nsAString str_name;
191 nsresult nsres;
193 nsAString_Init(&str_name, style_strings[sid]);
195 nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &str_name, value);
196 if(NS_FAILED(nsres)) {
197 ERR("SetProperty failed: %08x\n", nsres);
198 return E_FAIL;
201 nsAString_Finish(&str_name);
203 return NS_OK;
206 static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
208 nsAString str_value;
209 const PRUnichar *value;
211 nsAString_Init(&str_value, NULL);
213 get_style_attr_nsval(This, sid, &str_value);
215 nsAString_GetData(&str_value, &value);
216 *p = *value ? SysAllocString(value) : NULL;
218 nsAString_Finish(&str_value);
220 TRACE("%s -> %s\n", debugstr_w(style_strings[sid]), debugstr_w(*p));
221 return S_OK;
224 static HRESULT check_style_attr_value(HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
226 nsAString str_value;
227 const PRUnichar *value;
229 nsAString_Init(&str_value, NULL);
231 get_style_attr_nsval(This, sid, &str_value);
233 nsAString_GetData(&str_value, &value);
234 *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
235 nsAString_Finish(&str_value);
237 TRACE("%s -> %x\n", debugstr_w(style_strings[sid]), *p);
238 return S_OK;
241 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
243 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
245 HTMLStyle *This = HTMLSTYLE_THIS(iface);
247 *ppv = NULL;
249 if(IsEqualGUID(&IID_IUnknown, riid)) {
250 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
251 *ppv = HTMLSTYLE(This);
252 }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
253 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
254 *ppv = HTMLSTYLE(This);
255 }else if(IsEqualGUID(&IID_IHTMLStyle2, riid)) {
256 TRACE("(%p)->(IID_IHTMLStyle2 %p)\n", This, ppv);
257 *ppv = HTMLSTYLE2(This);
258 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
259 return *ppv ? S_OK : E_NOINTERFACE;
262 if(*ppv) {
263 IUnknown_AddRef((IUnknown*)*ppv);
264 return S_OK;
267 WARN("unsupported %s\n", debugstr_guid(riid));
268 return E_NOINTERFACE;
271 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
273 HTMLStyle *This = HTMLSTYLE_THIS(iface);
274 LONG ref = InterlockedIncrement(&This->ref);
276 TRACE("(%p) ref=%d\n", This, ref);
278 return ref;
281 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
283 HTMLStyle *This = HTMLSTYLE_THIS(iface);
284 LONG ref = InterlockedDecrement(&This->ref);
286 TRACE("(%p) ref=%d\n", This, ref);
288 if(!ref)
289 heap_free(This);
291 return ref;
294 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
296 HTMLStyle *This = HTMLSTYLE_THIS(iface);
297 return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This->dispex), pctinfo);
300 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
301 LCID lcid, ITypeInfo **ppTInfo)
303 HTMLStyle *This = HTMLSTYLE_THIS(iface);
304 return IDispatchEx_GetTypeInfo(DISPATCHEX(&This->dispex), iTInfo, lcid, ppTInfo);
307 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
308 LPOLESTR *rgszNames, UINT cNames,
309 LCID lcid, DISPID *rgDispId)
311 HTMLStyle *This = HTMLSTYLE_THIS(iface);
312 return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This->dispex), riid, rgszNames, cNames, lcid, rgDispId);
315 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
316 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
317 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
319 HTMLStyle *This = HTMLSTYLE_THIS(iface);
320 return IDispatchEx_Invoke(DISPATCHEX(&This->dispex), dispIdMember, riid, lcid,
321 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
324 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
326 HTMLStyle *This = HTMLSTYLE_THIS(iface);
328 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
330 return set_style_attr(This, STYLEID_FONT_FAMILY, v, 0);
333 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
335 HTMLStyle *This = HTMLSTYLE_THIS(iface);
337 TRACE("(%p)->(%p)\n", This, p);
339 return get_style_attr(This, STYLEID_FONT_FAMILY, p);
342 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
344 HTMLStyle *This = HTMLSTYLE_THIS(iface);
345 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
346 return E_NOTIMPL;
349 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
351 HTMLStyle *This = HTMLSTYLE_THIS(iface);
353 TRACE("(%p)->(%p)\n", This, p);
355 return get_style_attr(This, STYLEID_FONT_STYLE, p);
358 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
360 HTMLStyle *This = HTMLSTYLE_THIS(iface);
361 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
362 return E_NOTIMPL;
365 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
367 HTMLStyle *This = HTMLSTYLE_THIS(iface);
368 FIXME("(%p)->(%p)\n", This, p);
369 return E_NOTIMPL;
372 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
374 HTMLStyle *This = HTMLSTYLE_THIS(iface);
375 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
376 return E_NOTIMPL;
379 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
381 HTMLStyle *This = HTMLSTYLE_THIS(iface);
383 TRACE("(%p)->(%p)\n", This, p);
385 return get_style_attr(This, STYLEID_FONT_WEIGHT, p);
388 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
390 HTMLStyle *This = HTMLSTYLE_THIS(iface);
392 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
394 switch(V_VT(&v)) {
395 case VT_BSTR:
396 return set_style_attr(This, STYLEID_FONT_SIZE, V_BSTR(&v), 0);
397 default:
398 FIXME("not supported vt %d\n", V_VT(&v));
401 return S_OK;
404 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
406 HTMLStyle *This = HTMLSTYLE_THIS(iface);
408 TRACE("(%p)->(%p)\n", This, p);
410 V_VT(p) = VT_BSTR;
411 return get_style_attr(This, STYLEID_FONT_SIZE, &V_BSTR(p));
414 static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
416 HTMLStyle *This = HTMLSTYLE_THIS(iface);
417 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
418 return E_NOTIMPL;
421 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
423 HTMLStyle *This = HTMLSTYLE_THIS(iface);
424 FIXME("(%p)->(%p)\n", This, p);
425 return E_NOTIMPL;
428 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
430 HTMLStyle *This = HTMLSTYLE_THIS(iface);
432 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
434 switch(V_VT(&v)) {
435 case VT_BSTR:
436 TRACE("%s\n", debugstr_w(V_BSTR(&v)));
437 return set_style_attr(This, STYLEID_COLOR, V_BSTR(&v), 0);
439 default:
440 FIXME("unsupported vt=%d\n", V_VT(&v));
443 return E_NOTIMPL;
446 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
448 HTMLStyle *This = HTMLSTYLE_THIS(iface);
450 TRACE("(%p)->(%p)\n", This, p);
452 V_VT(p) = VT_BSTR;
453 return get_style_attr(This, STYLEID_COLOR, &V_BSTR(p));
456 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
458 HTMLStyle *This = HTMLSTYLE_THIS(iface);
460 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
462 return set_style_attr(This, STYLEID_BACKGROUND, v, 0);
465 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
467 HTMLStyle *This = HTMLSTYLE_THIS(iface);
469 TRACE("(%p)->(%p)\n", This, p);
471 return get_style_attr(This, STYLEID_BACKGROUND, p);
474 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
476 HTMLStyle *This = HTMLSTYLE_THIS(iface);
478 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
480 switch(V_VT(&v)) {
481 case VT_BSTR:
482 return set_style_attr(This, STYLEID_BACKGROUND_COLOR, V_BSTR(&v), 0);
483 case VT_I4: {
484 WCHAR value[10];
485 static const WCHAR format[] = {'#','%','0','6','x',0};
487 wsprintfW(value, format, V_I4(&v));
488 return set_style_attr(This, STYLEID_BACKGROUND_COLOR, value, 0);
490 default:
491 FIXME("unsupported vt %d\n", V_VT(&v));
494 return S_OK;
497 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
499 HTMLStyle *This = HTMLSTYLE_THIS(iface);
500 FIXME("(%p)->(%p)\n", This, p);
501 return E_NOTIMPL;
504 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
506 HTMLStyle *This = HTMLSTYLE_THIS(iface);
508 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
510 return set_style_attr(This, STYLEID_BACKGROUND_IMAGE, v, ATTR_FIX_URL);
513 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
515 HTMLStyle *This = HTMLSTYLE_THIS(iface);
516 FIXME("(%p)->(%p)\n", This, p);
517 return E_NOTIMPL;
520 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
522 HTMLStyle *This = HTMLSTYLE_THIS(iface);
523 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
524 return E_NOTIMPL;
527 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
529 HTMLStyle *This = HTMLSTYLE_THIS(iface);
530 FIXME("(%p)->(%p)\n", This, p);
531 return E_NOTIMPL;
534 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
536 HTMLStyle *This = HTMLSTYLE_THIS(iface);
537 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
538 return E_NOTIMPL;
541 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
543 HTMLStyle *This = HTMLSTYLE_THIS(iface);
544 FIXME("(%p)->(%p)\n", This, p);
545 return E_NOTIMPL;
548 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
550 HTMLStyle *This = HTMLSTYLE_THIS(iface);
551 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
552 return E_NOTIMPL;
555 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
557 HTMLStyle *This = HTMLSTYLE_THIS(iface);
558 FIXME("(%p)->(%p)\n", This, p);
559 return E_NOTIMPL;
562 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
564 HTMLStyle *This = HTMLSTYLE_THIS(iface);
565 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
566 return E_NOTIMPL;
569 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
571 HTMLStyle *This = HTMLSTYLE_THIS(iface);
572 FIXME("(%p)->(%p)\n", This, p);
573 return E_NOTIMPL;
576 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
578 HTMLStyle *This = HTMLSTYLE_THIS(iface);
579 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
580 return E_NOTIMPL;
583 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
585 HTMLStyle *This = HTMLSTYLE_THIS(iface);
586 FIXME("(%p)->(%p)\n", This, p);
587 return E_NOTIMPL;
590 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
592 HTMLStyle *This = HTMLSTYLE_THIS(iface);
593 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
594 return E_NOTIMPL;
597 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
599 HTMLStyle *This = HTMLSTYLE_THIS(iface);
600 FIXME("(%p)->(%p)\n", This, p);
601 return E_NOTIMPL;
604 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
606 HTMLStyle *This = HTMLSTYLE_THIS(iface);
607 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
608 return E_NOTIMPL;
611 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
613 HTMLStyle *This = HTMLSTYLE_THIS(iface);
614 FIXME("(%p)->(%p)\n", This, p);
615 return E_NOTIMPL;
618 static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
620 HTMLStyle *This = HTMLSTYLE_THIS(iface);
621 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
622 return E_NOTIMPL;
625 static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
627 HTMLStyle *This = HTMLSTYLE_THIS(iface);
629 TRACE("(%p)->(%p)\n", This, p);
631 return get_style_attr(This, STYLEID_TEXT_DECORATION, p);
634 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
636 HTMLStyle *This = HTMLSTYLE_THIS(iface);
637 FIXME("(%p)->(%x)\n", This, v);
638 return E_NOTIMPL;
641 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
643 HTMLStyle *This = HTMLSTYLE_THIS(iface);
644 FIXME("(%p)->(%p)\n", This, p);
645 return E_NOTIMPL;
648 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
650 HTMLStyle *This = HTMLSTYLE_THIS(iface);
651 FIXME("(%p)->(%x)\n", This, v);
652 return E_NOTIMPL;
655 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
657 HTMLStyle *This = HTMLSTYLE_THIS(iface);
659 TRACE("(%p)->(%p)\n", This, p);
661 return check_style_attr_value(This, STYLEID_TEXT_DECORATION, valUnderline, p);
664 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
666 HTMLStyle *This = HTMLSTYLE_THIS(iface);
667 FIXME("(%p)->(%x)\n", This, v);
668 return E_NOTIMPL;
671 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
673 HTMLStyle *This = HTMLSTYLE_THIS(iface);
674 FIXME("(%p)->(%p)\n", This, p);
675 return E_NOTIMPL;
678 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
680 HTMLStyle *This = HTMLSTYLE_THIS(iface);
681 FIXME("(%p)->(%x)\n", This, v);
682 return E_NOTIMPL;
685 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
687 HTMLStyle *This = HTMLSTYLE_THIS(iface);
689 TRACE("(%p)->(%p)\n", This, p);
691 return check_style_attr_value(This, STYLEID_TEXT_DECORATION, valLineThrough, p);
694 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
696 HTMLStyle *This = HTMLSTYLE_THIS(iface);
697 FIXME("(%p)->(%x)\n", This, v);
698 return E_NOTIMPL;
701 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
703 HTMLStyle *This = HTMLSTYLE_THIS(iface);
704 FIXME("(%p)->(%p)\n", This, p);
705 return E_NOTIMPL;
708 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
710 HTMLStyle *This = HTMLSTYLE_THIS(iface);
711 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
712 return E_NOTIMPL;
715 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
717 HTMLStyle *This = HTMLSTYLE_THIS(iface);
718 FIXME("(%p)->(%p)\n", This, p);
719 return E_NOTIMPL;
722 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
724 HTMLStyle *This = HTMLSTYLE_THIS(iface);
725 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
726 return E_NOTIMPL;
729 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
731 HTMLStyle *This = HTMLSTYLE_THIS(iface);
732 FIXME("(%p)->(%p)\n", This, p);
733 return E_NOTIMPL;
736 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
738 HTMLStyle *This = HTMLSTYLE_THIS(iface);
739 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
740 return E_NOTIMPL;
743 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
745 HTMLStyle *This = HTMLSTYLE_THIS(iface);
746 FIXME("(%p)->(%p)\n", This, p);
747 return E_NOTIMPL;
750 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
752 HTMLStyle *This = HTMLSTYLE_THIS(iface);
753 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
754 return E_NOTIMPL;
757 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
759 HTMLStyle *This = HTMLSTYLE_THIS(iface);
760 FIXME("(%p)->(%p)\n", This, p);
761 return E_NOTIMPL;
764 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
766 HTMLStyle *This = HTMLSTYLE_THIS(iface);
767 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
768 return E_NOTIMPL;
771 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
773 HTMLStyle *This = HTMLSTYLE_THIS(iface);
774 FIXME("(%p)->(%p)\n", This, p);
775 return E_NOTIMPL;
778 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
780 HTMLStyle *This = HTMLSTYLE_THIS(iface);
781 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
782 return E_NOTIMPL;
785 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
787 HTMLStyle *This = HTMLSTYLE_THIS(iface);
788 FIXME("(%p)->(%p)\n", This, p);
789 return E_NOTIMPL;
792 static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
794 HTMLStyle *This = HTMLSTYLE_THIS(iface);
796 TRACE("(%p)->(v(%d))\n", This, V_VT(&v));
798 switch(V_VT(&v)) {
799 case VT_NULL:
800 return set_style_attr(This, STYLEID_MARGIN_RIGHT, emptyW, 0);
801 case VT_I4: {
802 WCHAR buf[14];
804 wsprintfW(buf, px_formatW, V_I4(&v));
805 return set_style_attr(This, STYLEID_MARGIN_RIGHT, buf, 0);
807 case VT_BSTR:
808 return set_style_attr(This, STYLEID_MARGIN_RIGHT, V_BSTR(&v), 0);
809 default:
810 FIXME("Unsupported vt=%d\n", V_VT(&v));
813 return E_NOTIMPL;
816 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
818 HTMLStyle *This = HTMLSTYLE_THIS(iface);
819 FIXME("(%p)->(%p)\n", This, p);
820 return E_NOTIMPL;
823 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
825 HTMLStyle *This = HTMLSTYLE_THIS(iface);
826 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
827 return E_NOTIMPL;
830 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
832 HTMLStyle *This = HTMLSTYLE_THIS(iface);
833 FIXME("(%p)->(%p)\n", This, p);
834 return E_NOTIMPL;
837 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
839 HTMLStyle *This = HTMLSTYLE_THIS(iface);
841 switch(V_VT(&v)) {
842 case VT_NULL:
843 TRACE("(%p)->(NULL)\n", This);
844 return set_style_attr(This, STYLEID_MARGIN_LEFT, emptyW, 0);
845 case VT_I4: {
846 WCHAR buf[14];
848 TRACE("(%p)->(%d)\n", This, V_I4(&v));
850 wsprintfW(buf, px_formatW, V_I4(&v));
851 return set_style_attr(This, STYLEID_MARGIN_LEFT, buf, 0);
853 case VT_BSTR:
854 TRACE("(%p)->(%s)\n", This, debugstr_w(V_BSTR(&v)));
855 return set_style_attr(This, STYLEID_MARGIN_LEFT, V_BSTR(&v), 0);
856 default:
857 FIXME("Unsupported vt=%d\n", V_VT(&v));
860 return E_NOTIMPL;
863 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
865 HTMLStyle *This = HTMLSTYLE_THIS(iface);
867 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
869 return set_style_attr(This, STYLEID_MARGIN, v, 0);
872 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
874 HTMLStyle *This = HTMLSTYLE_THIS(iface);
876 TRACE("(%p)->(%p)\n", This, p);
878 return get_style_attr(This, STYLEID_MARGIN, p);
881 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
883 HTMLStyle *This = HTMLSTYLE_THIS(iface);
884 FIXME("(%p)->(%p)\n", This, p);
885 return E_NOTIMPL;
888 static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
890 HTMLStyle *This = HTMLSTYLE_THIS(iface);
891 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
892 return E_NOTIMPL;
895 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
897 HTMLStyle *This = HTMLSTYLE_THIS(iface);
898 FIXME("(%p)->(%p)\n", This, p);
899 return E_NOTIMPL;
902 static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
904 HTMLStyle *This = HTMLSTYLE_THIS(iface);
905 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
906 return E_NOTIMPL;
909 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
911 HTMLStyle *This = HTMLSTYLE_THIS(iface);
912 FIXME("(%p)->(%p)\n", This, p);
913 return E_NOTIMPL;
916 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
918 HTMLStyle *This = HTMLSTYLE_THIS(iface);
919 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
920 return E_NOTIMPL;
923 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
925 HTMLStyle *This = HTMLSTYLE_THIS(iface);
926 FIXME("(%p)->(%p)\n", This, p);
927 return E_NOTIMPL;
930 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
932 HTMLStyle *This = HTMLSTYLE_THIS(iface);
934 TRACE("(%p)->(vt=%d)\n", This, V_VT(&v));
936 switch(V_VT(&v)) {
937 case VT_I4: {
938 WCHAR buf[14];
940 wsprintfW(buf, px_formatW, V_I4(&v));
941 return set_style_attr(This, STYLEID_PADDING_LEFT, buf, 0);
943 case VT_BSTR:
944 return set_style_attr(This, STYLEID_PADDING_LEFT, V_BSTR(&v), 0);
945 default:
946 FIXME("unsupported vt=%d\n", V_VT(&v));
949 return E_NOTIMPL;
952 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
954 HTMLStyle *This = HTMLSTYLE_THIS(iface);
955 FIXME("(%p)->(%p)\n", This, p);
956 return E_NOTIMPL;
959 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
961 HTMLStyle *This = HTMLSTYLE_THIS(iface);
962 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
963 return E_NOTIMPL;
966 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
968 HTMLStyle *This = HTMLSTYLE_THIS(iface);
969 FIXME("(%p)->(%p)\n", This, p);
970 return E_NOTIMPL;
973 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
975 HTMLStyle *This = HTMLSTYLE_THIS(iface);
976 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
977 return E_NOTIMPL;
980 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
982 HTMLStyle *This = HTMLSTYLE_THIS(iface);
983 FIXME("(%p)->(%p)\n", This, p);
984 return E_NOTIMPL;
987 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
989 HTMLStyle *This = HTMLSTYLE_THIS(iface);
990 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
991 return E_NOTIMPL;
994 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
996 HTMLStyle *This = HTMLSTYLE_THIS(iface);
997 FIXME("(%p)->(%p)\n", This, p);
998 return E_NOTIMPL;
1001 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
1003 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1004 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1005 return E_NOTIMPL;
1008 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
1010 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1011 FIXME("(%p)->(%p)\n", This, p);
1012 return E_NOTIMPL;
1015 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
1017 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1018 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1019 return E_NOTIMPL;
1022 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
1024 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1025 FIXME("(%p)->(%p)\n", This, p);
1026 return E_NOTIMPL;
1029 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
1031 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1033 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1035 return set_style_attr(This, STYLEID_BORDER_LEFT, v, ATTR_FIX_PX);
1038 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
1040 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1041 FIXME("(%p)->(%p)\n", This, p);
1042 return E_NOTIMPL;
1045 static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
1047 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1048 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1049 return E_NOTIMPL;
1052 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
1054 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1055 FIXME("(%p)->(%p)\n", This, p);
1056 return E_NOTIMPL;
1059 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
1061 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1062 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1063 return E_NOTIMPL;
1066 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
1068 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1069 FIXME("(%p)->(%p)\n", This, p);
1070 return E_NOTIMPL;
1073 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
1075 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1076 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1077 return E_NOTIMPL;
1080 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
1082 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1083 FIXME("(%p)->(%p)\n", This, p);
1084 return E_NOTIMPL;
1087 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
1089 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1090 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1091 return E_NOTIMPL;
1094 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
1096 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1097 FIXME("(%p)->(%p)\n", This, p);
1098 return E_NOTIMPL;
1101 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
1103 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1104 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1105 return E_NOTIMPL;
1108 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
1110 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1111 FIXME("(%p)->(%p)\n", This, p);
1112 return E_NOTIMPL;
1115 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
1117 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1118 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1119 return E_NOTIMPL;
1122 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
1124 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1125 FIXME("(%p)->(%p)\n", This, p);
1126 return E_NOTIMPL;
1129 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
1131 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1132 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1133 return E_NOTIMPL;
1136 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
1138 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1139 FIXME("(%p)->(%p)\n", This, p);
1140 return E_NOTIMPL;
1143 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
1145 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1146 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1147 return E_NOTIMPL;
1150 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
1152 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1153 FIXME("(%p)->(%p)\n", This, p);
1154 return E_NOTIMPL;
1157 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
1159 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1160 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1161 return E_NOTIMPL;
1164 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1166 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1167 FIXME("(%p)->(%p)\n", This, p);
1168 return E_NOTIMPL;
1171 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1173 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1174 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1175 return E_NOTIMPL;
1178 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1180 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1181 FIXME("(%p)->(%p)\n", This, p);
1182 return E_NOTIMPL;
1185 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1187 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1188 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1189 return E_NOTIMPL;
1192 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1194 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1195 FIXME("(%p)->(%p)\n", This, p);
1196 return E_NOTIMPL;
1199 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1201 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1202 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1203 return E_NOTIMPL;
1206 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1208 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1209 FIXME("(%p)->(%p)\n", This, p);
1210 return E_NOTIMPL;
1213 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1215 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1216 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1217 return E_NOTIMPL;
1220 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1222 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1223 FIXME("(%p)->(%p)\n", This, p);
1224 return E_NOTIMPL;
1227 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1229 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1230 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1231 return E_NOTIMPL;
1234 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1236 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1237 FIXME("(%p)->(%p)\n", This, p);
1238 return E_NOTIMPL;
1241 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1243 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1244 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1245 return E_NOTIMPL;
1248 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1250 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1251 FIXME("(%p)->(%p)\n", This, p);
1252 return E_NOTIMPL;
1255 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1257 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1259 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
1261 switch(V_VT(&v)) {
1262 case VT_BSTR:
1263 TRACE("%s\n", debugstr_w(V_BSTR(&v)));
1264 return set_style_attr(This, STYLEID_WIDTH, V_BSTR(&v), 0);
1265 default:
1266 FIXME("unsupported vt %d\n", V_VT(&v));
1269 return E_NOTIMPL;
1272 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1274 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1276 TRACE("(%p)->(%p)\n", This, p);
1278 V_VT(p) = VT_BSTR;
1279 return get_style_attr(This, STYLEID_WIDTH, &V_BSTR(p));
1282 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1284 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1285 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1286 return E_NOTIMPL;
1289 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1291 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1292 FIXME("(%p)->(%p)\n", This, p);
1293 return E_NOTIMPL;
1296 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1298 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1299 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1300 return E_NOTIMPL;
1303 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1305 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1306 FIXME("(%p)->(%p)\n", This, p);
1307 return E_NOTIMPL;
1310 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1312 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1313 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1314 return E_NOTIMPL;
1317 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1319 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1320 FIXME("(%p)->(%p)\n", This, p);
1321 return E_NOTIMPL;
1324 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1326 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1328 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1330 return set_style_attr(This, STYLEID_DISPLAY, v, 0);
1333 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1335 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1337 TRACE("(%p)->(%p)\n", This, p);
1339 return get_style_attr(This, STYLEID_DISPLAY, p);
1342 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1344 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1346 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1348 return set_style_attr(This, STYLEID_VISIBILITY, v, 0);
1351 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1353 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1355 TRACE("(%p)->(%p)\n", This, p);
1357 return get_style_attr(This, STYLEID_VISIBILITY, p);
1360 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1362 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1363 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1364 return E_NOTIMPL;
1367 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1369 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1370 FIXME("(%p)->(%p)\n", This, p);
1371 return E_NOTIMPL;
1374 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1376 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1377 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1378 return E_NOTIMPL;
1381 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1383 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1384 FIXME("(%p)->(%p)\n", This, p);
1385 return E_NOTIMPL;
1388 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1390 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1391 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1392 return E_NOTIMPL;
1395 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1397 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1398 FIXME("(%p)->(%p)\n", This, p);
1399 return E_NOTIMPL;
1402 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1404 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1405 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1406 return E_NOTIMPL;
1409 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1411 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1412 FIXME("(%p)->(%p)\n", This, p);
1413 return E_NOTIMPL;
1416 static HRESULT WINAPI HTMLStyle_put_whiteSpace(IHTMLStyle *iface, BSTR v)
1418 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1419 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1420 return E_NOTIMPL;
1423 static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
1425 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1426 FIXME("(%p)->(%p)\n", This, p);
1427 return E_NOTIMPL;
1430 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1432 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1433 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1434 return E_NOTIMPL;
1437 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1439 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1440 FIXME("(%p)->(%p)\n", This, p);
1441 return E_NOTIMPL;
1444 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1446 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1447 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1448 return E_NOTIMPL;
1451 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1453 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1454 FIXME("(%p)->(%p)\n", This, p);
1455 return E_NOTIMPL;
1458 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1460 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1461 FIXME("(%p)->(%p)\n", This, p);
1462 return E_NOTIMPL;
1465 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1467 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1468 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1469 return E_NOTIMPL;
1472 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1474 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1475 FIXME("(%p)->(%p)\n", This, p);
1476 return E_NOTIMPL;
1479 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1481 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1482 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1483 return E_NOTIMPL;
1486 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1488 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1489 FIXME("(%p)->(%p)\n", This, p);
1490 return E_NOTIMPL;
1493 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1495 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1496 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1497 return E_NOTIMPL;
1500 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1502 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1503 FIXME("(%p)->(%p)\n", This, p);
1504 return E_NOTIMPL;
1507 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1509 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1510 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1511 return E_NOTIMPL;
1514 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1516 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1517 FIXME("(%p)->(%p)\n", This, p);
1518 return E_NOTIMPL;
1521 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1523 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1524 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1525 return E_NOTIMPL;
1528 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1530 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1531 FIXME("(%p)->(%p)\n", This, p);
1532 return E_NOTIMPL;
1535 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1537 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1538 FIXME("(%p)->()\n", This);
1539 return E_NOTIMPL;
1542 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1544 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1545 FIXME("(%p)->()\n", This);
1546 return E_NOTIMPL;
1549 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1551 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1552 FIXME("(%p)->()\n", This);
1553 return E_NOTIMPL;
1556 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1558 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1559 FIXME("(%p)->()\n", This);
1560 return E_NOTIMPL;
1563 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1565 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1566 FIXME("(%p)->()\n", This);
1567 return E_NOTIMPL;
1570 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1572 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1573 FIXME("(%p)->()\n", This);
1574 return E_NOTIMPL;
1577 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1579 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1580 FIXME("(%p)->()\n", This);
1581 return E_NOTIMPL;
1584 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1586 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1587 FIXME("(%p)->()\n", This);
1588 return E_NOTIMPL;
1591 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1593 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1594 FIXME("(%p)->()\n", This);
1595 return E_NOTIMPL;
1598 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1600 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1601 FIXME("(%p)->()\n", This);
1602 return E_NOTIMPL;
1605 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1607 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1608 FIXME("(%p)->()\n", This);
1609 return E_NOTIMPL;
1612 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1614 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1615 FIXME("(%p)->()\n", This);
1616 return E_NOTIMPL;
1619 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1621 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1622 FIXME("(%p)->()\n", This);
1623 return E_NOTIMPL;
1626 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1628 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1629 FIXME("(%p)->()\n", This);
1630 return E_NOTIMPL;
1633 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1635 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1636 FIXME("(%p)->()\n", This);
1637 return E_NOTIMPL;
1640 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1642 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1643 FIXME("(%p)->()\n", This);
1644 return E_NOTIMPL;
1647 static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
1649 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1650 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1651 return E_NOTIMPL;
1654 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1656 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1657 FIXME("(%p)->(%p)\n", This, p);
1658 return E_NOTIMPL;
1661 static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
1663 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1664 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1665 return E_NOTIMPL;
1668 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1670 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1671 FIXME("(%p)->(%p)\n", This, p);
1672 return E_NOTIMPL;
1675 static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
1677 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1678 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1679 return E_NOTIMPL;
1682 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1684 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1685 FIXME("(%p)->(%p)\n", This, p);
1686 return E_NOTIMPL;
1689 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1690 VARIANT AttributeValue, LONG lFlags)
1692 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1693 FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1694 V_VT(&AttributeValue), lFlags);
1695 return E_NOTIMPL;
1698 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1699 LONG lFlags, VARIANT *AttributeValue)
1701 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1702 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1703 lFlags, AttributeValue);
1704 return E_NOTIMPL;
1707 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1708 LONG lFlags, VARIANT_BOOL *pfSuccess)
1710 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1711 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1712 lFlags, pfSuccess);
1713 return E_NOTIMPL;
1716 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1718 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1719 FIXME("(%p)->(%p)\n", This, String);
1720 return E_NOTIMPL;
1723 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1724 HTMLStyle_QueryInterface,
1725 HTMLStyle_AddRef,
1726 HTMLStyle_Release,
1727 HTMLStyle_GetTypeInfoCount,
1728 HTMLStyle_GetTypeInfo,
1729 HTMLStyle_GetIDsOfNames,
1730 HTMLStyle_Invoke,
1731 HTMLStyle_put_fontFamily,
1732 HTMLStyle_get_fontFamily,
1733 HTMLStyle_put_fontStyle,
1734 HTMLStyle_get_fontStyle,
1735 HTMLStyle_put_fontVariant,
1736 HTMLStyle_get_fontVariant,
1737 HTMLStyle_put_fontWeight,
1738 HTMLStyle_get_fontWeight,
1739 HTMLStyle_put_fontSize,
1740 HTMLStyle_get_fontSize,
1741 HTMLStyle_put_font,
1742 HTMLStyle_get_font,
1743 HTMLStyle_put_color,
1744 HTMLStyle_get_color,
1745 HTMLStyle_put_background,
1746 HTMLStyle_get_background,
1747 HTMLStyle_put_backgroundColor,
1748 HTMLStyle_get_backgroundColor,
1749 HTMLStyle_put_backgroundImage,
1750 HTMLStyle_get_backgroundImage,
1751 HTMLStyle_put_backgroundRepeat,
1752 HTMLStyle_get_backgroundRepeat,
1753 HTMLStyle_put_backgroundAttachment,
1754 HTMLStyle_get_backgroundAttachment,
1755 HTMLStyle_put_backgroundPosition,
1756 HTMLStyle_get_backgroundPosition,
1757 HTMLStyle_put_backgroundPositionX,
1758 HTMLStyle_get_backgroundPositionX,
1759 HTMLStyle_put_backgroundPositionY,
1760 HTMLStyle_get_backgroundPositionY,
1761 HTMLStyle_put_wordSpacing,
1762 HTMLStyle_get_wordSpacing,
1763 HTMLStyle_put_letterSpacing,
1764 HTMLStyle_get_letterSpacing,
1765 HTMLStyle_put_textDecoration,
1766 HTMLStyle_get_textDecoration,
1767 HTMLStyle_put_textDecorationNone,
1768 HTMLStyle_get_textDecorationNone,
1769 HTMLStyle_put_textDecorationUnderline,
1770 HTMLStyle_get_textDecorationUnderline,
1771 HTMLStyle_put_textDecorationOverline,
1772 HTMLStyle_get_textDecorationOverline,
1773 HTMLStyle_put_textDecorationLineThrough,
1774 HTMLStyle_get_textDecorationLineThrough,
1775 HTMLStyle_put_textDecorationBlink,
1776 HTMLStyle_get_textDecorationBlink,
1777 HTMLStyle_put_verticalAlign,
1778 HTMLStyle_get_verticalAlign,
1779 HTMLStyle_put_textTransform,
1780 HTMLStyle_get_textTransform,
1781 HTMLStyle_put_textAlign,
1782 HTMLStyle_get_textAlign,
1783 HTMLStyle_put_textIndent,
1784 HTMLStyle_get_textIndent,
1785 HTMLStyle_put_lineHeight,
1786 HTMLStyle_get_lineHeight,
1787 HTMLStyle_put_marginTop,
1788 HTMLStyle_get_marginTop,
1789 HTMLStyle_put_marginRight,
1790 HTMLStyle_get_marginRight,
1791 HTMLStyle_put_marginBottom,
1792 HTMLStyle_get_marginBottom,
1793 HTMLStyle_put_marginLeft,
1794 HTMLStyle_get_marginLeft,
1795 HTMLStyle_put_margin,
1796 HTMLStyle_get_margin,
1797 HTMLStyle_put_paddingTop,
1798 HTMLStyle_get_paddingTop,
1799 HTMLStyle_put_paddingRight,
1800 HTMLStyle_get_paddingRight,
1801 HTMLStyle_put_paddingBottom,
1802 HTMLStyle_get_paddingBottom,
1803 HTMLStyle_put_paddingLeft,
1804 HTMLStyle_get_paddingLeft,
1805 HTMLStyle_put_padding,
1806 HTMLStyle_get_padding,
1807 HTMLStyle_put_border,
1808 HTMLStyle_get_border,
1809 HTMLStyle_put_borderTop,
1810 HTMLStyle_get_borderTop,
1811 HTMLStyle_put_borderRight,
1812 HTMLStyle_get_borderRight,
1813 HTMLStyle_put_borderBottom,
1814 HTMLStyle_get_borderBottom,
1815 HTMLStyle_put_borderLeft,
1816 HTMLStyle_get_borderLeft,
1817 HTMLStyle_put_borderColor,
1818 HTMLStyle_get_borderColor,
1819 HTMLStyle_put_borderTopColor,
1820 HTMLStyle_get_borderTopColor,
1821 HTMLStyle_put_borderRightColor,
1822 HTMLStyle_get_borderRightColor,
1823 HTMLStyle_put_borderBottomColor,
1824 HTMLStyle_get_borderBottomColor,
1825 HTMLStyle_put_borderLeftColor,
1826 HTMLStyle_get_borderLeftColor,
1827 HTMLStyle_put_borderWidth,
1828 HTMLStyle_get_borderWidth,
1829 HTMLStyle_put_borderTopWidth,
1830 HTMLStyle_get_borderTopWidth,
1831 HTMLStyle_put_borderRightWidth,
1832 HTMLStyle_get_borderRightWidth,
1833 HTMLStyle_put_borderBottomWidth,
1834 HTMLStyle_get_borderBottomWidth,
1835 HTMLStyle_put_borderLeftWidth,
1836 HTMLStyle_get_borderLeftWidth,
1837 HTMLStyle_put_borderStyle,
1838 HTMLStyle_get_borderStyle,
1839 HTMLStyle_put_borderTopStyle,
1840 HTMLStyle_get_borderTopStyle,
1841 HTMLStyle_put_borderRightStyle,
1842 HTMLStyle_get_borderRightStyle,
1843 HTMLStyle_put_borderBottomStyle,
1844 HTMLStyle_get_borderBottomStyle,
1845 HTMLStyle_put_borderLeftStyle,
1846 HTMLStyle_get_borderLeftStyle,
1847 HTMLStyle_put_width,
1848 HTMLStyle_get_width,
1849 HTMLStyle_put_height,
1850 HTMLStyle_get_height,
1851 HTMLStyle_put_styleFloat,
1852 HTMLStyle_get_styleFloat,
1853 HTMLStyle_put_clear,
1854 HTMLStyle_get_clear,
1855 HTMLStyle_put_display,
1856 HTMLStyle_get_display,
1857 HTMLStyle_put_visibility,
1858 HTMLStyle_get_visibility,
1859 HTMLStyle_put_listStyleType,
1860 HTMLStyle_get_listStyleType,
1861 HTMLStyle_put_listStylePosition,
1862 HTMLStyle_get_listStylePosition,
1863 HTMLStyle_put_listStyleImage,
1864 HTMLStyle_get_listStyleImage,
1865 HTMLStyle_put_listStyle,
1866 HTMLStyle_get_listStyle,
1867 HTMLStyle_put_whiteSpace,
1868 HTMLStyle_get_whiteSpace,
1869 HTMLStyle_put_top,
1870 HTMLStyle_get_top,
1871 HTMLStyle_put_left,
1872 HTMLStyle_get_left,
1873 HTMLStyle_get_position,
1874 HTMLStyle_put_zIndex,
1875 HTMLStyle_get_zIndex,
1876 HTMLStyle_put_overflow,
1877 HTMLStyle_get_overflow,
1878 HTMLStyle_put_pageBreakBefore,
1879 HTMLStyle_get_pageBreakBefore,
1880 HTMLStyle_put_pageBreakAfter,
1881 HTMLStyle_get_pageBreakAfter,
1882 HTMLStyle_put_cssText,
1883 HTMLStyle_get_cssText,
1884 HTMLStyle_put_pixelTop,
1885 HTMLStyle_get_pixelTop,
1886 HTMLStyle_put_pixelLeft,
1887 HTMLStyle_get_pixelLeft,
1888 HTMLStyle_put_pixelWidth,
1889 HTMLStyle_get_pixelWidth,
1890 HTMLStyle_put_pixelHeight,
1891 HTMLStyle_get_pixelHeight,
1892 HTMLStyle_put_posTop,
1893 HTMLStyle_get_posTop,
1894 HTMLStyle_put_posLeft,
1895 HTMLStyle_get_posLeft,
1896 HTMLStyle_put_posWidth,
1897 HTMLStyle_get_posWidth,
1898 HTMLStyle_put_posHeight,
1899 HTMLStyle_get_posHeight,
1900 HTMLStyle_put_cursor,
1901 HTMLStyle_get_cursor,
1902 HTMLStyle_put_clip,
1903 HTMLStyle_get_clip,
1904 HTMLStyle_put_filter,
1905 HTMLStyle_get_filter,
1906 HTMLStyle_setAttribute,
1907 HTMLStyle_getAttribute,
1908 HTMLStyle_removeAttribute,
1909 HTMLStyle_toString
1912 static const tid_t HTMLStyle_iface_tids[] = {
1913 IHTMLStyle_tid,
1914 IHTMLStyle2_tid,
1917 static dispex_static_data_t HTMLStyle_dispex = {
1918 NULL,
1919 DispHTMLStyle_tid,
1920 NULL,
1921 HTMLStyle_iface_tids
1924 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1926 HTMLStyle *ret = heap_alloc_zero(sizeof(HTMLStyle));
1928 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1929 ret->ref = 1;
1930 ret->nsstyle = nsstyle;
1931 HTMLStyle2_Init(ret);
1933 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1935 init_dispex(&ret->dispex, (IUnknown*)HTMLSTYLE(ret), &HTMLStyle_dispex);
1937 return HTMLSTYLE(ret);