2 * Copyright 2006 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
28 #include "wine/debug.h"
29 #include "wine/unicode.h"
31 #include "mshtml_private.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
37 const IHTMLStyleVtbl *lpHTMLStyleVtbl;
41 nsIDOMCSSStyleDeclaration *nsstyle;
44 #define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl)
46 static const WCHAR attrBackground[] =
47 {'b','a','c','k','g','r','o','u','n','d',0};
48 static const WCHAR attrBackgroundColor[] =
49 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
50 static const WCHAR attrBackgroundImage[] =
51 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
52 static const WCHAR attrBorderLeft[] =
53 {'b','o','r','d','e','r','-','l','e','f','t',0};
54 static const WCHAR attrColor[] =
55 {'c','o','l','o','r',0};
56 static const WCHAR attrDisplay[] =
57 {'d','i','s','p','l','a','y',0};
58 static const WCHAR attrFontFamily[] =
59 {'f','o','n','t','-','f','a','m','i','l','y',0};
60 static const WCHAR attrFontSize[] =
61 {'f','o','n','t','-','s','i','z','e',0};
62 static const WCHAR attrFontStyle[] =
63 {'f','o','n','t','-','s','t','y','l','e',0};
64 static const WCHAR attrFontWeight[] =
65 {'f','o','n','t','-','w','e','i','g','h','t',0};
66 static const WCHAR attrMarginLeft[] =
67 {'m','a','r','g','i','n','-','l','e','f','t',0};
68 static const WCHAR attrMarginRight[] =
69 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
70 static const WCHAR attrPaddingLeft[] =
71 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
72 static const WCHAR attrTextDecoration[] =
73 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
74 static const WCHAR attrVisibility[] =
75 {'v','i','s','i','b','i','l','i','t','y',0};
76 static const WCHAR attrWidth[] =
77 {'w','i','d','t','h',0};
79 static const WCHAR valLineThrough[] =
80 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
81 static const WCHAR valUnderline[] =
82 {'u','n','d','e','r','l','i','n','e',0};
84 static const WCHAR px_formatW[] = {'%','d','p','x',0};
85 static const WCHAR emptyW[] = {0};
87 static LPWSTR fix_px_value(LPCWSTR val)
92 while(*ptr && isspaceW(*ptr))
97 while(*ptr && isdigitW(*ptr))
100 if(!*ptr || isspaceW(*ptr)) {
102 int len = strlenW(val)+1;
104 ret = heap_alloc((len+2)*sizeof(WCHAR));
105 memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
111 TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
116 while(*ptr && !isspaceW(*ptr))
123 static LPWSTR fix_url_value(LPCWSTR val)
127 static const WCHAR urlW[] = {'u','r','l','('};
129 if(strncmpW(val, urlW, sizeof(urlW)/sizeof(WCHAR)) || !strchrW(val, '\\'))
132 ret = heap_strdupW(val);
134 for(ptr = ret; *ptr; ptr++) {
142 #define ATTR_FIX_PX 1
143 #define ATTR_FIX_URL 2
145 static HRESULT set_style_attr(HTMLStyle *This, LPCWSTR name, LPCWSTR value, DWORD flags)
147 nsAString str_name, str_value, str_empty;
151 static const PRUnichar wszEmpty[] = {0};
153 TRACE("(%p)->(%s %s)\n", This, debugstr_w(name), debugstr_w(value));
155 if(flags & ATTR_FIX_PX)
156 val = fix_px_value(value);
157 if(flags & ATTR_FIX_URL)
158 val = fix_url_value(value);
160 nsAString_Init(&str_name, name);
161 nsAString_Init(&str_value, val ? val : value);
162 nsAString_Init(&str_empty, wszEmpty);
165 nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
167 ERR("SetProperty failed: %08x\n", nsres);
169 nsAString_Finish(&str_name);
170 nsAString_Finish(&str_value);
171 nsAString_Finish(&str_empty);
176 static HRESULT get_style_attr_nsval(HTMLStyle *This, LPCWSTR name, nsAString *value)
181 nsAString_Init(&str_name, name);
183 nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &str_name, value);
184 if(NS_FAILED(nsres)) {
185 ERR("SetProperty failed: %08x\n", nsres);
189 nsAString_Finish(&str_name);
194 static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
197 const PRUnichar *value;
199 nsAString_Init(&str_value, NULL);
201 get_style_attr_nsval(This, name, &str_value);
203 nsAString_GetData(&str_value, &value);
204 *p = *value ? SysAllocString(value) : NULL;
206 nsAString_Finish(&str_value);
208 TRACE("%s -> %s\n", debugstr_w(name), debugstr_w(*p));
212 static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exval, VARIANT_BOOL *p)
215 const PRUnichar *value;
217 nsAString_Init(&str_value, NULL);
219 get_style_attr_nsval(This, name, &str_value);
221 nsAString_GetData(&str_value, &value);
222 *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
223 nsAString_Finish(&str_value);
225 TRACE("%s -> %x\n", debugstr_w(name), *p);
229 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
231 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
233 HTMLStyle *This = HTMLSTYLE_THIS(iface);
237 if(IsEqualGUID(&IID_IUnknown, riid)) {
238 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
239 *ppv = HTMLSTYLE(This);
240 }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
241 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
242 *ppv = HTMLSTYLE(This);
243 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
244 return *ppv ? S_OK : E_NOINTERFACE;
248 IUnknown_AddRef((IUnknown*)*ppv);
252 WARN("unsupported %s\n", debugstr_guid(riid));
253 return E_NOINTERFACE;
256 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
258 HTMLStyle *This = HTMLSTYLE_THIS(iface);
259 LONG ref = InterlockedIncrement(&This->ref);
261 TRACE("(%p) ref=%d\n", This, ref);
266 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
268 HTMLStyle *This = HTMLSTYLE_THIS(iface);
269 LONG ref = InterlockedDecrement(&This->ref);
271 TRACE("(%p) ref=%d\n", This, ref);
279 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
281 HTMLStyle *This = HTMLSTYLE_THIS(iface);
282 FIXME("(%p)->(%p)\n", This, pctinfo);
286 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
287 LCID lcid, ITypeInfo **ppTInfo)
289 HTMLStyle *This = HTMLSTYLE_THIS(iface);
290 FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
294 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
295 LPOLESTR *rgszNames, UINT cNames,
296 LCID lcid, DISPID *rgDispId)
298 HTMLStyle *This = HTMLSTYLE_THIS(iface);
299 FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
304 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
305 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
306 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
308 HTMLStyle *This = HTMLSTYLE_THIS(iface);
309 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
310 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
314 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
316 HTMLStyle *This = HTMLSTYLE_THIS(iface);
318 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
320 return set_style_attr(This, attrFontFamily, v, 0);
323 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
325 HTMLStyle *This = HTMLSTYLE_THIS(iface);
327 TRACE("(%p)->(%p)\n", This, p);
329 return get_style_attr(This, attrFontFamily, p);
332 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
334 HTMLStyle *This = HTMLSTYLE_THIS(iface);
335 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
339 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
341 HTMLStyle *This = HTMLSTYLE_THIS(iface);
343 TRACE("(%p)->(%p)\n", This, p);
345 return get_style_attr(This, attrFontStyle, p);
348 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
350 HTMLStyle *This = HTMLSTYLE_THIS(iface);
351 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
355 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
357 HTMLStyle *This = HTMLSTYLE_THIS(iface);
358 FIXME("(%p)->(%p)\n", This, p);
362 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
364 HTMLStyle *This = HTMLSTYLE_THIS(iface);
365 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
369 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
371 HTMLStyle *This = HTMLSTYLE_THIS(iface);
373 TRACE("(%p)->(%p)\n", This, p);
375 return get_style_attr(This, attrFontWeight, p);
378 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
380 HTMLStyle *This = HTMLSTYLE_THIS(iface);
382 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
386 return set_style_attr(This, attrFontSize, V_BSTR(&v), 0);
388 FIXME("not supported vt %d\n", V_VT(&v));
394 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
396 HTMLStyle *This = HTMLSTYLE_THIS(iface);
398 TRACE("(%p)->(%p)\n", This, p);
401 return get_style_attr(This, attrFontSize, &V_BSTR(p));
404 static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
406 HTMLStyle *This = HTMLSTYLE_THIS(iface);
407 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
411 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
413 HTMLStyle *This = HTMLSTYLE_THIS(iface);
414 FIXME("(%p)->(%p)\n", This, p);
418 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
420 HTMLStyle *This = HTMLSTYLE_THIS(iface);
422 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
426 TRACE("%s\n", debugstr_w(V_BSTR(&v)));
427 return set_style_attr(This, attrColor, V_BSTR(&v), 0);
430 FIXME("unsupported vt=%d\n", V_VT(&v));
436 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
438 HTMLStyle *This = HTMLSTYLE_THIS(iface);
440 TRACE("(%p)->(%p)\n", This, p);
443 return get_style_attr(This, attrColor, &V_BSTR(p));
446 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
448 HTMLStyle *This = HTMLSTYLE_THIS(iface);
450 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
452 return set_style_attr(This, attrBackground, v, 0);
455 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
457 HTMLStyle *This = HTMLSTYLE_THIS(iface);
458 FIXME("(%p)->(%p)\n", This, p);
462 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
464 HTMLStyle *This = HTMLSTYLE_THIS(iface);
466 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
470 return set_style_attr(This, attrBackgroundColor, V_BSTR(&v), 0);
473 static const WCHAR format[] = {'#','%','0','6','x',0};
475 wsprintfW(value, format, V_I4(&v));
476 return set_style_attr(This, attrBackgroundColor, value, 0);
479 FIXME("unsupported vt %d\n", V_VT(&v));
485 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
487 HTMLStyle *This = HTMLSTYLE_THIS(iface);
488 FIXME("(%p)->(%p)\n", This, p);
492 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
494 HTMLStyle *This = HTMLSTYLE_THIS(iface);
496 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
498 return set_style_attr(This, attrBackgroundImage, v, ATTR_FIX_URL);
501 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
503 HTMLStyle *This = HTMLSTYLE_THIS(iface);
504 FIXME("(%p)->(%p)\n", This, p);
508 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
510 HTMLStyle *This = HTMLSTYLE_THIS(iface);
511 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
515 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
517 HTMLStyle *This = HTMLSTYLE_THIS(iface);
518 FIXME("(%p)->(%p)\n", This, p);
522 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
524 HTMLStyle *This = HTMLSTYLE_THIS(iface);
525 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
529 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
531 HTMLStyle *This = HTMLSTYLE_THIS(iface);
532 FIXME("(%p)->(%p)\n", This, p);
536 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
538 HTMLStyle *This = HTMLSTYLE_THIS(iface);
539 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
543 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
545 HTMLStyle *This = HTMLSTYLE_THIS(iface);
546 FIXME("(%p)->(%p)\n", This, p);
550 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
552 HTMLStyle *This = HTMLSTYLE_THIS(iface);
553 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
557 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
559 HTMLStyle *This = HTMLSTYLE_THIS(iface);
560 FIXME("(%p)->(%p)\n", This, p);
564 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
566 HTMLStyle *This = HTMLSTYLE_THIS(iface);
567 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
571 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
573 HTMLStyle *This = HTMLSTYLE_THIS(iface);
574 FIXME("(%p)->(%p)\n", This, p);
578 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
580 HTMLStyle *This = HTMLSTYLE_THIS(iface);
581 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
585 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
587 HTMLStyle *This = HTMLSTYLE_THIS(iface);
588 FIXME("(%p)->(%p)\n", This, p);
592 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
594 HTMLStyle *This = HTMLSTYLE_THIS(iface);
595 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
599 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
601 HTMLStyle *This = HTMLSTYLE_THIS(iface);
602 FIXME("(%p)->(%p)\n", This, p);
606 static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
608 HTMLStyle *This = HTMLSTYLE_THIS(iface);
609 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
613 static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
615 HTMLStyle *This = HTMLSTYLE_THIS(iface);
617 TRACE("(%p)->(%p)\n", This, p);
619 return get_style_attr(This, attrTextDecoration, p);
622 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
624 HTMLStyle *This = HTMLSTYLE_THIS(iface);
625 FIXME("(%p)->(%x)\n", This, v);
629 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
631 HTMLStyle *This = HTMLSTYLE_THIS(iface);
632 FIXME("(%p)->(%p)\n", This, p);
636 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
638 HTMLStyle *This = HTMLSTYLE_THIS(iface);
639 FIXME("(%p)->(%x)\n", This, v);
643 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
645 HTMLStyle *This = HTMLSTYLE_THIS(iface);
647 TRACE("(%p)->(%p)\n", This, p);
649 return check_style_attr_value(This, attrTextDecoration, valUnderline, p);
652 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
654 HTMLStyle *This = HTMLSTYLE_THIS(iface);
655 FIXME("(%p)->(%x)\n", This, v);
659 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
661 HTMLStyle *This = HTMLSTYLE_THIS(iface);
662 FIXME("(%p)->(%p)\n", This, p);
666 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
668 HTMLStyle *This = HTMLSTYLE_THIS(iface);
669 FIXME("(%p)->(%x)\n", This, v);
673 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
675 HTMLStyle *This = HTMLSTYLE_THIS(iface);
677 TRACE("(%p)->(%p)\n", This, p);
679 return check_style_attr_value(This, attrTextDecoration, valLineThrough, p);
682 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
684 HTMLStyle *This = HTMLSTYLE_THIS(iface);
685 FIXME("(%p)->(%x)\n", This, v);
689 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
691 HTMLStyle *This = HTMLSTYLE_THIS(iface);
692 FIXME("(%p)->(%p)\n", This, p);
696 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
698 HTMLStyle *This = HTMLSTYLE_THIS(iface);
699 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
703 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
705 HTMLStyle *This = HTMLSTYLE_THIS(iface);
706 FIXME("(%p)->(%p)\n", This, p);
710 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
712 HTMLStyle *This = HTMLSTYLE_THIS(iface);
713 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
717 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
719 HTMLStyle *This = HTMLSTYLE_THIS(iface);
720 FIXME("(%p)->(%p)\n", This, p);
724 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
726 HTMLStyle *This = HTMLSTYLE_THIS(iface);
727 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
731 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
733 HTMLStyle *This = HTMLSTYLE_THIS(iface);
734 FIXME("(%p)->(%p)\n", This, p);
738 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
740 HTMLStyle *This = HTMLSTYLE_THIS(iface);
741 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
745 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
747 HTMLStyle *This = HTMLSTYLE_THIS(iface);
748 FIXME("(%p)->(%p)\n", This, p);
752 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
754 HTMLStyle *This = HTMLSTYLE_THIS(iface);
755 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
759 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
761 HTMLStyle *This = HTMLSTYLE_THIS(iface);
762 FIXME("(%p)->(%p)\n", This, p);
766 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
768 HTMLStyle *This = HTMLSTYLE_THIS(iface);
769 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
773 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
775 HTMLStyle *This = HTMLSTYLE_THIS(iface);
776 FIXME("(%p)->(%p)\n", This, p);
780 static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
782 HTMLStyle *This = HTMLSTYLE_THIS(iface);
784 TRACE("(%p)->(v(%d))\n", This, V_VT(&v));
788 return set_style_attr(This, attrMarginRight, emptyW, 0);
792 wsprintfW(buf, px_formatW, V_I4(&v));
793 return set_style_attr(This, attrMarginRight, buf, 0);
796 return set_style_attr(This, attrMarginRight, V_BSTR(&v), 0);
798 FIXME("Unsupported vt=%d\n", V_VT(&v));
804 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
806 HTMLStyle *This = HTMLSTYLE_THIS(iface);
807 FIXME("(%p)->(%p)\n", This, p);
811 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
813 HTMLStyle *This = HTMLSTYLE_THIS(iface);
814 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
818 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
820 HTMLStyle *This = HTMLSTYLE_THIS(iface);
821 FIXME("(%p)->(%p)\n", This, p);
825 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
827 HTMLStyle *This = HTMLSTYLE_THIS(iface);
831 TRACE("(%p)->(NULL)\n", This);
832 return set_style_attr(This, attrMarginLeft, emptyW, 0);
836 TRACE("(%p)->(%d)\n", This, V_I4(&v));
838 wsprintfW(buf, px_formatW, V_I4(&v));
839 return set_style_attr(This, attrMarginLeft, buf, 0);
842 TRACE("(%p)->(%s)\n", This, debugstr_w(V_BSTR(&v)));
843 return set_style_attr(This, attrMarginLeft, V_BSTR(&v), 0);
845 FIXME("Unsupported vt=%d\n", V_VT(&v));
851 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
853 HTMLStyle *This = HTMLSTYLE_THIS(iface);
854 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
858 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
860 HTMLStyle *This = HTMLSTYLE_THIS(iface);
861 FIXME("(%p)->(%p)\n", This, p);
865 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
867 HTMLStyle *This = HTMLSTYLE_THIS(iface);
868 FIXME("(%p)->(%p)\n", This, p);
872 static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
874 HTMLStyle *This = HTMLSTYLE_THIS(iface);
875 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
879 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
881 HTMLStyle *This = HTMLSTYLE_THIS(iface);
882 FIXME("(%p)->(%p)\n", This, p);
886 static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
888 HTMLStyle *This = HTMLSTYLE_THIS(iface);
889 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
893 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
895 HTMLStyle *This = HTMLSTYLE_THIS(iface);
896 FIXME("(%p)->(%p)\n", This, p);
900 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
902 HTMLStyle *This = HTMLSTYLE_THIS(iface);
903 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
907 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
909 HTMLStyle *This = HTMLSTYLE_THIS(iface);
910 FIXME("(%p)->(%p)\n", This, p);
914 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
916 HTMLStyle *This = HTMLSTYLE_THIS(iface);
918 TRACE("(%p)->(vt=%d)\n", This, V_VT(&v));
924 wsprintfW(buf, px_formatW, V_I4(&v));
925 return set_style_attr(This, attrPaddingLeft, buf, 0);
928 return set_style_attr(This, attrPaddingLeft, V_BSTR(&v), 0);
930 FIXME("unsupported vt=%d\n", V_VT(&v));
936 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
938 HTMLStyle *This = HTMLSTYLE_THIS(iface);
939 FIXME("(%p)->(%p)\n", This, p);
943 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
945 HTMLStyle *This = HTMLSTYLE_THIS(iface);
946 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
950 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
952 HTMLStyle *This = HTMLSTYLE_THIS(iface);
953 FIXME("(%p)->(%p)\n", This, p);
957 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
959 HTMLStyle *This = HTMLSTYLE_THIS(iface);
960 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
964 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
966 HTMLStyle *This = HTMLSTYLE_THIS(iface);
967 FIXME("(%p)->(%p)\n", This, p);
971 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
973 HTMLStyle *This = HTMLSTYLE_THIS(iface);
974 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
978 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
980 HTMLStyle *This = HTMLSTYLE_THIS(iface);
981 FIXME("(%p)->(%p)\n", This, p);
985 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
987 HTMLStyle *This = HTMLSTYLE_THIS(iface);
988 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
992 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
994 HTMLStyle *This = HTMLSTYLE_THIS(iface);
995 FIXME("(%p)->(%p)\n", This, p);
999 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
1001 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1002 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1006 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
1008 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1009 FIXME("(%p)->(%p)\n", This, p);
1013 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
1015 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1017 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1019 return set_style_attr(This, attrBorderLeft, v, ATTR_FIX_PX);
1022 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
1024 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1025 FIXME("(%p)->(%p)\n", This, p);
1029 static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
1031 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1032 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1036 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
1038 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1039 FIXME("(%p)->(%p)\n", This, p);
1043 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
1045 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1046 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1050 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
1052 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1053 FIXME("(%p)->(%p)\n", This, p);
1057 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
1059 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1060 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1064 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
1066 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1067 FIXME("(%p)->(%p)\n", This, p);
1071 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
1073 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1074 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1078 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
1080 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1081 FIXME("(%p)->(%p)\n", This, p);
1085 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
1087 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1088 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1092 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
1094 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1095 FIXME("(%p)->(%p)\n", This, p);
1099 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
1101 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1102 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1106 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
1108 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1109 FIXME("(%p)->(%p)\n", This, p);
1113 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
1115 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1116 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1120 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
1122 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1123 FIXME("(%p)->(%p)\n", This, p);
1127 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
1129 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1130 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1134 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
1136 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1137 FIXME("(%p)->(%p)\n", This, p);
1141 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
1143 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1144 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1148 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1150 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1151 FIXME("(%p)->(%p)\n", This, p);
1155 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1157 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1158 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1162 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1164 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1165 FIXME("(%p)->(%p)\n", This, p);
1169 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1171 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1172 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1176 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1178 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1179 FIXME("(%p)->(%p)\n", This, p);
1183 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1185 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1186 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1190 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1192 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1193 FIXME("(%p)->(%p)\n", This, p);
1197 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1199 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1200 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1204 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1206 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1207 FIXME("(%p)->(%p)\n", This, p);
1211 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1213 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1214 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1218 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1220 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1221 FIXME("(%p)->(%p)\n", This, p);
1225 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1227 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1228 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1232 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1234 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1235 FIXME("(%p)->(%p)\n", This, p);
1239 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1241 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1243 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
1247 TRACE("%s\n", debugstr_w(V_BSTR(&v)));
1248 return set_style_attr(This, attrWidth, V_BSTR(&v), 0);
1250 FIXME("unsupported vt %d\n", V_VT(&v));
1256 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1258 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1260 TRACE("(%p)->(%p)\n", This, p);
1263 return get_style_attr(This, attrWidth, &V_BSTR(p));
1266 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1268 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1269 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1273 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1275 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1276 FIXME("(%p)->(%p)\n", This, p);
1280 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1282 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1283 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1287 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1289 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1290 FIXME("(%p)->(%p)\n", This, p);
1294 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1296 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1297 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1301 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1303 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1304 FIXME("(%p)->(%p)\n", This, p);
1308 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1310 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1312 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1314 return set_style_attr(This, attrDisplay, v, 0);
1317 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1319 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1321 TRACE("(%p)->(%p)\n", This, p);
1323 return get_style_attr(This, attrDisplay, p);
1326 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1328 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1330 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1332 return set_style_attr(This, attrVisibility, v, 0);
1335 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1337 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1339 TRACE("(%p)->(%p)\n", This, p);
1341 return get_style_attr(This, attrVisibility, p);
1344 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1346 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1347 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1351 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1353 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1354 FIXME("(%p)->(%p)\n", This, p);
1358 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1360 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1361 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1365 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1367 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1368 FIXME("(%p)->(%p)\n", This, p);
1372 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1374 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1375 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1379 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1381 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1382 FIXME("(%p)->(%p)\n", This, p);
1386 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1388 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1389 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1393 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1395 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1396 FIXME("(%p)->(%p)\n", This, p);
1400 static HRESULT WINAPI HTMLStyle_put_whiteSpace(IHTMLStyle *iface, BSTR v)
1402 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1403 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1407 static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
1409 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1410 FIXME("(%p)->(%p)\n", This, p);
1414 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1416 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1417 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1421 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1423 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1424 FIXME("(%p)->(%p)\n", This, p);
1428 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1430 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1431 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1435 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1437 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1438 FIXME("(%p)->(%p)\n", This, p);
1442 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1444 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1445 FIXME("(%p)->(%p)\n", This, p);
1449 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1451 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1452 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1456 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1458 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1459 FIXME("(%p)->(%p)\n", This, p);
1463 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1465 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1466 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1470 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1472 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1473 FIXME("(%p)->(%p)\n", This, p);
1477 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1479 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1480 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1484 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1486 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1487 FIXME("(%p)->(%p)\n", This, p);
1491 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1493 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1494 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1498 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1500 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1501 FIXME("(%p)->(%p)\n", This, p);
1505 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1507 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1508 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1512 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1514 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1515 FIXME("(%p)->(%p)\n", This, p);
1519 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1521 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1522 FIXME("(%p)->()\n", This);
1526 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1528 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1529 FIXME("(%p)->()\n", This);
1533 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1535 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1536 FIXME("(%p)->()\n", This);
1540 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1542 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1543 FIXME("(%p)->()\n", This);
1547 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1549 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1550 FIXME("(%p)->()\n", This);
1554 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1556 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1557 FIXME("(%p)->()\n", This);
1561 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1563 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1564 FIXME("(%p)->()\n", This);
1568 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1570 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1571 FIXME("(%p)->()\n", This);
1575 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1577 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1578 FIXME("(%p)->()\n", This);
1582 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1584 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1585 FIXME("(%p)->()\n", This);
1589 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1591 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1592 FIXME("(%p)->()\n", This);
1596 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1598 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1599 FIXME("(%p)->()\n", This);
1603 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1605 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1606 FIXME("(%p)->()\n", This);
1610 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1612 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1613 FIXME("(%p)->()\n", This);
1617 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1619 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1620 FIXME("(%p)->()\n", This);
1624 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1626 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1627 FIXME("(%p)->()\n", This);
1631 static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
1633 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1634 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1638 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1640 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1641 FIXME("(%p)->(%p)\n", This, p);
1645 static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
1647 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1648 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1652 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1654 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1655 FIXME("(%p)->(%p)\n", This, p);
1659 static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
1661 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1662 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1666 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1668 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1669 FIXME("(%p)->(%p)\n", This, p);
1673 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1674 VARIANT AttributeValue, LONG lFlags)
1676 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1677 FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1678 V_VT(&AttributeValue), lFlags);
1682 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1683 LONG lFlags, VARIANT *AttributeValue)
1685 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1686 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1687 lFlags, AttributeValue);
1691 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1692 LONG lFlags, VARIANT_BOOL *pfSuccess)
1694 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1695 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1700 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1702 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1703 FIXME("(%p)->(%p)\n", This, String);
1707 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1708 HTMLStyle_QueryInterface,
1711 HTMLStyle_GetTypeInfoCount,
1712 HTMLStyle_GetTypeInfo,
1713 HTMLStyle_GetIDsOfNames,
1715 HTMLStyle_put_fontFamily,
1716 HTMLStyle_get_fontFamily,
1717 HTMLStyle_put_fontStyle,
1718 HTMLStyle_get_fontStyle,
1719 HTMLStyle_put_fontVariant,
1720 HTMLStyle_get_fontVariant,
1721 HTMLStyle_put_fontWeight,
1722 HTMLStyle_get_fontWeight,
1723 HTMLStyle_put_fontSize,
1724 HTMLStyle_get_fontSize,
1727 HTMLStyle_put_color,
1728 HTMLStyle_get_color,
1729 HTMLStyle_put_background,
1730 HTMLStyle_get_background,
1731 HTMLStyle_put_backgroundColor,
1732 HTMLStyle_get_backgroundColor,
1733 HTMLStyle_put_backgroundImage,
1734 HTMLStyle_get_backgroundImage,
1735 HTMLStyle_put_backgroundRepeat,
1736 HTMLStyle_get_backgroundRepeat,
1737 HTMLStyle_put_backgroundAttachment,
1738 HTMLStyle_get_backgroundAttachment,
1739 HTMLStyle_put_backgroundPosition,
1740 HTMLStyle_get_backgroundPosition,
1741 HTMLStyle_put_backgroundPositionX,
1742 HTMLStyle_get_backgroundPositionX,
1743 HTMLStyle_put_backgroundPositionY,
1744 HTMLStyle_get_backgroundPositionY,
1745 HTMLStyle_put_wordSpacing,
1746 HTMLStyle_get_wordSpacing,
1747 HTMLStyle_put_letterSpacing,
1748 HTMLStyle_get_letterSpacing,
1749 HTMLStyle_put_textDecoration,
1750 HTMLStyle_get_textDecoration,
1751 HTMLStyle_put_textDecorationNone,
1752 HTMLStyle_get_textDecorationNone,
1753 HTMLStyle_put_textDecorationUnderline,
1754 HTMLStyle_get_textDecorationUnderline,
1755 HTMLStyle_put_textDecorationOverline,
1756 HTMLStyle_get_textDecorationOverline,
1757 HTMLStyle_put_textDecorationLineThrough,
1758 HTMLStyle_get_textDecorationLineThrough,
1759 HTMLStyle_put_textDecorationBlink,
1760 HTMLStyle_get_textDecorationBlink,
1761 HTMLStyle_put_verticalAlign,
1762 HTMLStyle_get_verticalAlign,
1763 HTMLStyle_put_textTransform,
1764 HTMLStyle_get_textTransform,
1765 HTMLStyle_put_textAlign,
1766 HTMLStyle_get_textAlign,
1767 HTMLStyle_put_textIndent,
1768 HTMLStyle_get_textIndent,
1769 HTMLStyle_put_lineHeight,
1770 HTMLStyle_get_lineHeight,
1771 HTMLStyle_put_marginTop,
1772 HTMLStyle_get_marginTop,
1773 HTMLStyle_put_marginRight,
1774 HTMLStyle_get_marginRight,
1775 HTMLStyle_put_marginBottom,
1776 HTMLStyle_get_marginBottom,
1777 HTMLStyle_put_marginLeft,
1778 HTMLStyle_get_marginLeft,
1779 HTMLStyle_put_margin,
1780 HTMLStyle_get_margin,
1781 HTMLStyle_put_paddingTop,
1782 HTMLStyle_get_paddingTop,
1783 HTMLStyle_put_paddingRight,
1784 HTMLStyle_get_paddingRight,
1785 HTMLStyle_put_paddingBottom,
1786 HTMLStyle_get_paddingBottom,
1787 HTMLStyle_put_paddingLeft,
1788 HTMLStyle_get_paddingLeft,
1789 HTMLStyle_put_padding,
1790 HTMLStyle_get_padding,
1791 HTMLStyle_put_border,
1792 HTMLStyle_get_border,
1793 HTMLStyle_put_borderTop,
1794 HTMLStyle_get_borderTop,
1795 HTMLStyle_put_borderRight,
1796 HTMLStyle_get_borderRight,
1797 HTMLStyle_put_borderBottom,
1798 HTMLStyle_get_borderBottom,
1799 HTMLStyle_put_borderLeft,
1800 HTMLStyle_get_borderLeft,
1801 HTMLStyle_put_borderColor,
1802 HTMLStyle_get_borderColor,
1803 HTMLStyle_put_borderTopColor,
1804 HTMLStyle_get_borderTopColor,
1805 HTMLStyle_put_borderRightColor,
1806 HTMLStyle_get_borderRightColor,
1807 HTMLStyle_put_borderBottomColor,
1808 HTMLStyle_get_borderBottomColor,
1809 HTMLStyle_put_borderLeftColor,
1810 HTMLStyle_get_borderLeftColor,
1811 HTMLStyle_put_borderWidth,
1812 HTMLStyle_get_borderWidth,
1813 HTMLStyle_put_borderTopWidth,
1814 HTMLStyle_get_borderTopWidth,
1815 HTMLStyle_put_borderRightWidth,
1816 HTMLStyle_get_borderRightWidth,
1817 HTMLStyle_put_borderBottomWidth,
1818 HTMLStyle_get_borderBottomWidth,
1819 HTMLStyle_put_borderLeftWidth,
1820 HTMLStyle_get_borderLeftWidth,
1821 HTMLStyle_put_borderStyle,
1822 HTMLStyle_get_borderStyle,
1823 HTMLStyle_put_borderTopStyle,
1824 HTMLStyle_get_borderTopStyle,
1825 HTMLStyle_put_borderRightStyle,
1826 HTMLStyle_get_borderRightStyle,
1827 HTMLStyle_put_borderBottomStyle,
1828 HTMLStyle_get_borderBottomStyle,
1829 HTMLStyle_put_borderLeftStyle,
1830 HTMLStyle_get_borderLeftStyle,
1831 HTMLStyle_put_width,
1832 HTMLStyle_get_width,
1833 HTMLStyle_put_height,
1834 HTMLStyle_get_height,
1835 HTMLStyle_put_styleFloat,
1836 HTMLStyle_get_styleFloat,
1837 HTMLStyle_put_clear,
1838 HTMLStyle_get_clear,
1839 HTMLStyle_put_display,
1840 HTMLStyle_get_display,
1841 HTMLStyle_put_visibility,
1842 HTMLStyle_get_visibility,
1843 HTMLStyle_put_listStyleType,
1844 HTMLStyle_get_listStyleType,
1845 HTMLStyle_put_listStylePosition,
1846 HTMLStyle_get_listStylePosition,
1847 HTMLStyle_put_listStyleImage,
1848 HTMLStyle_get_listStyleImage,
1849 HTMLStyle_put_listStyle,
1850 HTMLStyle_get_listStyle,
1851 HTMLStyle_put_whiteSpace,
1852 HTMLStyle_get_whiteSpace,
1857 HTMLStyle_get_position,
1858 HTMLStyle_put_zIndex,
1859 HTMLStyle_get_zIndex,
1860 HTMLStyle_put_overflow,
1861 HTMLStyle_get_overflow,
1862 HTMLStyle_put_pageBreakBefore,
1863 HTMLStyle_get_pageBreakBefore,
1864 HTMLStyle_put_pageBreakAfter,
1865 HTMLStyle_get_pageBreakAfter,
1866 HTMLStyle_put_cssText,
1867 HTMLStyle_get_cssText,
1868 HTMLStyle_put_pixelTop,
1869 HTMLStyle_get_pixelTop,
1870 HTMLStyle_put_pixelLeft,
1871 HTMLStyle_get_pixelLeft,
1872 HTMLStyle_put_pixelWidth,
1873 HTMLStyle_get_pixelWidth,
1874 HTMLStyle_put_pixelHeight,
1875 HTMLStyle_get_pixelHeight,
1876 HTMLStyle_put_posTop,
1877 HTMLStyle_get_posTop,
1878 HTMLStyle_put_posLeft,
1879 HTMLStyle_get_posLeft,
1880 HTMLStyle_put_posWidth,
1881 HTMLStyle_get_posWidth,
1882 HTMLStyle_put_posHeight,
1883 HTMLStyle_get_posHeight,
1884 HTMLStyle_put_cursor,
1885 HTMLStyle_get_cursor,
1888 HTMLStyle_put_filter,
1889 HTMLStyle_get_filter,
1890 HTMLStyle_setAttribute,
1891 HTMLStyle_getAttribute,
1892 HTMLStyle_removeAttribute,
1896 static const tid_t HTMLStyle_iface_tids[] = {
1900 static dispex_static_data_t HTMLStyle_dispex = {
1904 HTMLStyle_iface_tids
1907 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1909 HTMLStyle *ret = heap_alloc(sizeof(HTMLStyle));
1911 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1913 ret->nsstyle = nsstyle;
1915 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1917 init_dispex(&ret->dispex, (IUnknown*)HTMLSTYLE(ret), &HTMLStyle_dispex);
1919 return HTMLSTYLE(ret);