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);
36 const IHTMLStyleVtbl *lpHTMLStyleVtbl;
40 nsIDOMCSSStyleDeclaration *nsstyle;
43 #define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl);
45 static const WCHAR attrBackgroundColor[] =
46 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
47 static const WCHAR attrBorderLeft[] =
48 {'b','o','r','d','e','r','-','l','e','f','t',0};
49 static const WCHAR attrColor[] =
50 {'c','o','l','o','r',0};
51 static const WCHAR attrDisplay[] =
52 {'d','i','s','p','l','a','y',0};
53 static const WCHAR attrFontFamily[] =
54 {'f','o','n','t','-','f','a','m','i','l','y',0};
55 static const WCHAR attrFontSize[] =
56 {'f','o','n','t','-','s','i','z','e',0};
57 static const WCHAR attrFontStyle[] =
58 {'f','o','n','t','-','s','t','y','l','e',0};
59 static const WCHAR attrFontWeight[] =
60 {'f','o','n','t','-','w','e','i','g','h','t',0};
61 static const WCHAR attrMarginLeft[] =
62 {'m','a','r','g','i','n','-','l','e','f','t',0};
63 static const WCHAR attrMarginRight[] =
64 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
65 static const WCHAR attrPaddingLeft[] =
66 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
67 static const WCHAR attrTextDecoration[] =
68 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
69 static const WCHAR attrVisibility[] =
70 {'v','i','s','i','b','i','l','i','t','y',0};
72 static const WCHAR valLineThrough[] =
73 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
74 static const WCHAR valUnderline[] =
75 {'u','n','d','e','r','l','i','n','e',0};
77 static const WCHAR px_formatW[] = {'%','d','p','x',0};
78 static const WCHAR emptyW[] = {0};
80 static LPWSTR fix_px_value(LPCWSTR val)
85 while(*ptr && isspaceW(*ptr))
90 while(*ptr && isdigitW(*ptr))
93 if(!*ptr || isspaceW(*ptr)) {
95 int len = strlenW(val)+1;
97 ret = heap_alloc((len+2)*sizeof(WCHAR));
98 memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
104 TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
109 while(*ptr && !isspaceW(*ptr))
116 #define ATTR_FIX_PX 1
118 static HRESULT set_style_attr(HTMLStyle *This, LPCWSTR name, LPCWSTR value, DWORD flags)
120 nsAString str_name, str_value, str_empty;
124 static const PRUnichar wszEmpty[] = {0};
126 TRACE("(%p)->(%s %s)\n", This, debugstr_w(name), debugstr_w(value));
128 if(flags & ATTR_FIX_PX)
129 val = fix_px_value(value);
131 nsAString_Init(&str_name, name);
132 nsAString_Init(&str_value, val ? val : value);
133 nsAString_Init(&str_empty, wszEmpty);
136 nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
138 ERR("SetProperty failed: %08x\n", nsres);
140 nsAString_Finish(&str_name);
141 nsAString_Finish(&str_value);
142 nsAString_Finish(&str_empty);
147 static HRESULT get_style_attr_nsval(HTMLStyle *This, LPCWSTR name, nsAString *value)
152 nsAString_Init(&str_name, name);
154 nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &str_name, value);
155 if(NS_FAILED(nsres)) {
156 ERR("SetProperty failed: %08x\n", nsres);
160 nsAString_Finish(&str_name);
165 static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
168 const PRUnichar *value;
170 nsAString_Init(&str_value, NULL);
172 get_style_attr_nsval(This, name, &str_value);
174 nsAString_GetData(&str_value, &value);
175 *p = *value ? SysAllocString(value) : NULL;
177 nsAString_Finish(&str_value);
179 TRACE("%s -> %s\n", debugstr_w(name), debugstr_w(*p));
183 static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exval, VARIANT_BOOL *p)
186 const PRUnichar *value;
188 nsAString_Init(&str_value, NULL);
190 get_style_attr_nsval(This, name, &str_value);
192 nsAString_GetData(&str_value, &value);
193 *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
194 nsAString_Finish(&str_value);
196 TRACE("%s -> %x\n", debugstr_w(name), *p);
200 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
202 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
204 HTMLStyle *This = HTMLSTYLE_THIS(iface);
208 if(IsEqualGUID(&IID_IUnknown, riid)) {
209 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
210 *ppv = HTMLSTYLE(This);
211 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
212 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
213 *ppv = HTMLSTYLE(This);
214 }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
215 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
216 *ppv = HTMLSTYLE(This);
220 IUnknown_AddRef((IUnknown*)*ppv);
224 WARN("unsupported %s\n", debugstr_guid(riid));
225 return E_NOINTERFACE;
228 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
230 HTMLStyle *This = HTMLSTYLE_THIS(iface);
231 LONG ref = InterlockedIncrement(&This->ref);
233 TRACE("(%p) ref=%d\n", This, ref);
238 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
240 HTMLStyle *This = HTMLSTYLE_THIS(iface);
241 LONG ref = InterlockedDecrement(&This->ref);
243 TRACE("(%p) ref=%d\n", This, ref);
251 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
253 HTMLStyle *This = HTMLSTYLE_THIS(iface);
254 FIXME("(%p)->(%p)\n", This, pctinfo);
258 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
259 LCID lcid, ITypeInfo **ppTInfo)
261 HTMLStyle *This = HTMLSTYLE_THIS(iface);
262 FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
266 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
267 LPOLESTR *rgszNames, UINT cNames,
268 LCID lcid, DISPID *rgDispId)
270 HTMLStyle *This = HTMLSTYLE_THIS(iface);
271 FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
276 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
277 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
278 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
280 HTMLStyle *This = HTMLSTYLE_THIS(iface);
281 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
282 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
286 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
288 HTMLStyle *This = HTMLSTYLE_THIS(iface);
290 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
292 return set_style_attr(This, attrFontFamily, v, 0);
295 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
297 HTMLStyle *This = HTMLSTYLE_THIS(iface);
299 TRACE("(%p)->(%p)\n", This, p);
301 return get_style_attr(This, attrFontFamily, p);
304 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
306 HTMLStyle *This = HTMLSTYLE_THIS(iface);
307 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
311 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
313 HTMLStyle *This = HTMLSTYLE_THIS(iface);
315 TRACE("(%p)->(%p)\n", This, p);
317 return get_style_attr(This, attrFontStyle, p);
320 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
322 HTMLStyle *This = HTMLSTYLE_THIS(iface);
323 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
327 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
329 HTMLStyle *This = HTMLSTYLE_THIS(iface);
330 FIXME("(%p)->(%p)\n", This, p);
334 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
336 HTMLStyle *This = HTMLSTYLE_THIS(iface);
337 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
341 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
343 HTMLStyle *This = HTMLSTYLE_THIS(iface);
345 TRACE("(%p)->(%p)\n", This, p);
347 return get_style_attr(This, attrFontWeight, p);
350 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
352 HTMLStyle *This = HTMLSTYLE_THIS(iface);
354 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
358 return set_style_attr(This, attrFontSize, V_BSTR(&v), 0);
360 FIXME("not supported vt %d\n", V_VT(&v));
366 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
368 HTMLStyle *This = HTMLSTYLE_THIS(iface);
370 TRACE("(%p)->(%p)\n", This, p);
373 return get_style_attr(This, attrFontSize, &V_BSTR(p));
376 static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
378 HTMLStyle *This = HTMLSTYLE_THIS(iface);
379 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
383 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
385 HTMLStyle *This = HTMLSTYLE_THIS(iface);
386 FIXME("(%p)->(%p)\n", This, p);
390 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
392 HTMLStyle *This = HTMLSTYLE_THIS(iface);
393 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
397 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
399 HTMLStyle *This = HTMLSTYLE_THIS(iface);
401 TRACE("(%p)->(%p)\n", This, p);
404 return get_style_attr(This, attrColor, &V_BSTR(p));
407 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
409 HTMLStyle *This = HTMLSTYLE_THIS(iface);
410 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
414 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
416 HTMLStyle *This = HTMLSTYLE_THIS(iface);
417 FIXME("(%p)->(%p)\n", This, p);
421 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
423 HTMLStyle *This = HTMLSTYLE_THIS(iface);
425 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
429 return set_style_attr(This, attrBackgroundColor, V_BSTR(&v), 0);
432 static const WCHAR format[] = {'#','%','0','6','x',0};
434 wsprintfW(value, format, V_I4(&v));
435 return set_style_attr(This, attrBackgroundColor, value, 0);
438 FIXME("unsupported vt %d\n", V_VT(&v));
444 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
446 HTMLStyle *This = HTMLSTYLE_THIS(iface);
447 FIXME("(%p)->(%p)\n", This, p);
451 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
453 HTMLStyle *This = HTMLSTYLE_THIS(iface);
454 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
458 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
460 HTMLStyle *This = HTMLSTYLE_THIS(iface);
461 FIXME("(%p)->(%p)\n", This, p);
465 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
467 HTMLStyle *This = HTMLSTYLE_THIS(iface);
468 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
472 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
474 HTMLStyle *This = HTMLSTYLE_THIS(iface);
475 FIXME("(%p)->(%p)\n", This, p);
479 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
481 HTMLStyle *This = HTMLSTYLE_THIS(iface);
482 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
486 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
488 HTMLStyle *This = HTMLSTYLE_THIS(iface);
489 FIXME("(%p)->(%p)\n", This, p);
493 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
495 HTMLStyle *This = HTMLSTYLE_THIS(iface);
496 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
500 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
502 HTMLStyle *This = HTMLSTYLE_THIS(iface);
503 FIXME("(%p)->(%p)\n", This, p);
507 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
509 HTMLStyle *This = HTMLSTYLE_THIS(iface);
510 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
514 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
516 HTMLStyle *This = HTMLSTYLE_THIS(iface);
517 FIXME("(%p)->(%p)\n", This, p);
521 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
523 HTMLStyle *This = HTMLSTYLE_THIS(iface);
524 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
528 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
530 HTMLStyle *This = HTMLSTYLE_THIS(iface);
531 FIXME("(%p)->(%p)\n", This, p);
535 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
537 HTMLStyle *This = HTMLSTYLE_THIS(iface);
538 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
542 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
544 HTMLStyle *This = HTMLSTYLE_THIS(iface);
545 FIXME("(%p)->(%p)\n", This, p);
549 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
551 HTMLStyle *This = HTMLSTYLE_THIS(iface);
552 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
556 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
558 HTMLStyle *This = HTMLSTYLE_THIS(iface);
559 FIXME("(%p)->(%p)\n", This, p);
563 static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
565 HTMLStyle *This = HTMLSTYLE_THIS(iface);
566 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
570 static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
572 HTMLStyle *This = HTMLSTYLE_THIS(iface);
574 TRACE("(%p)->(%p)\n", This, p);
576 return get_style_attr(This, attrTextDecoration, p);
579 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
581 HTMLStyle *This = HTMLSTYLE_THIS(iface);
582 FIXME("(%p)->(%x)\n", This, v);
586 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
588 HTMLStyle *This = HTMLSTYLE_THIS(iface);
589 FIXME("(%p)->(%p)\n", This, p);
593 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
595 HTMLStyle *This = HTMLSTYLE_THIS(iface);
596 FIXME("(%p)->(%x)\n", This, v);
600 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
602 HTMLStyle *This = HTMLSTYLE_THIS(iface);
604 TRACE("(%p)->(%p)\n", This, p);
606 return check_style_attr_value(This, attrTextDecoration, valUnderline, p);
609 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
611 HTMLStyle *This = HTMLSTYLE_THIS(iface);
612 FIXME("(%p)->(%x)\n", This, v);
616 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
618 HTMLStyle *This = HTMLSTYLE_THIS(iface);
619 FIXME("(%p)->(%p)\n", This, p);
623 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
625 HTMLStyle *This = HTMLSTYLE_THIS(iface);
626 FIXME("(%p)->(%x)\n", This, v);
630 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
632 HTMLStyle *This = HTMLSTYLE_THIS(iface);
634 TRACE("(%p)->(%p)\n", This, p);
636 return check_style_attr_value(This, attrTextDecoration, valLineThrough, p);
639 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
641 HTMLStyle *This = HTMLSTYLE_THIS(iface);
642 FIXME("(%p)->(%x)\n", This, v);
646 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
648 HTMLStyle *This = HTMLSTYLE_THIS(iface);
649 FIXME("(%p)->(%p)\n", This, p);
653 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
655 HTMLStyle *This = HTMLSTYLE_THIS(iface);
656 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
660 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
662 HTMLStyle *This = HTMLSTYLE_THIS(iface);
663 FIXME("(%p)->(%p)\n", This, p);
667 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
669 HTMLStyle *This = HTMLSTYLE_THIS(iface);
670 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
674 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
676 HTMLStyle *This = HTMLSTYLE_THIS(iface);
677 FIXME("(%p)->(%p)\n", This, p);
681 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
683 HTMLStyle *This = HTMLSTYLE_THIS(iface);
684 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
688 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
690 HTMLStyle *This = HTMLSTYLE_THIS(iface);
691 FIXME("(%p)->(%p)\n", This, p);
695 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
697 HTMLStyle *This = HTMLSTYLE_THIS(iface);
698 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
702 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
704 HTMLStyle *This = HTMLSTYLE_THIS(iface);
705 FIXME("(%p)->(%p)\n", This, p);
709 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
711 HTMLStyle *This = HTMLSTYLE_THIS(iface);
712 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
716 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
718 HTMLStyle *This = HTMLSTYLE_THIS(iface);
719 FIXME("(%p)->(%p)\n", This, p);
723 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
725 HTMLStyle *This = HTMLSTYLE_THIS(iface);
726 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
730 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
732 HTMLStyle *This = HTMLSTYLE_THIS(iface);
733 FIXME("(%p)->(%p)\n", This, p);
737 static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
739 HTMLStyle *This = HTMLSTYLE_THIS(iface);
741 TRACE("(%p)->(v(%d))\n", This, V_VT(&v));
745 return set_style_attr(This, attrMarginRight, emptyW, 0);
749 wsprintfW(buf, px_formatW, V_I4(&v));
750 return set_style_attr(This, attrMarginRight, buf, 0);
753 return set_style_attr(This, attrMarginRight, V_BSTR(&v), 0);
755 FIXME("Unsupported vt=%d\n", V_VT(&v));
761 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
763 HTMLStyle *This = HTMLSTYLE_THIS(iface);
764 FIXME("(%p)->(%p)\n", This, p);
768 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
770 HTMLStyle *This = HTMLSTYLE_THIS(iface);
771 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
775 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
777 HTMLStyle *This = HTMLSTYLE_THIS(iface);
778 FIXME("(%p)->(%p)\n", This, p);
782 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
784 HTMLStyle *This = HTMLSTYLE_THIS(iface);
788 TRACE("(%p)->(NULL)\n", This);
789 return set_style_attr(This, attrMarginLeft, emptyW, 0);
793 TRACE("(%p)->(%d)\n", This, V_I4(&v));
795 wsprintfW(buf, px_formatW, V_I4(&v));
796 return set_style_attr(This, attrMarginLeft, buf, 0);
799 TRACE("(%p)->(%s)\n", This, debugstr_w(V_BSTR(&v)));
800 return set_style_attr(This, attrMarginLeft, V_BSTR(&v), 0);
802 FIXME("Unsupported vt=%d\n", V_VT(&v));
808 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
810 HTMLStyle *This = HTMLSTYLE_THIS(iface);
811 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
815 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
817 HTMLStyle *This = HTMLSTYLE_THIS(iface);
818 FIXME("(%p)->(%p)\n", This, p);
822 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
824 HTMLStyle *This = HTMLSTYLE_THIS(iface);
825 FIXME("(%p)->(%p)\n", This, p);
829 static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
831 HTMLStyle *This = HTMLSTYLE_THIS(iface);
832 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
836 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
838 HTMLStyle *This = HTMLSTYLE_THIS(iface);
839 FIXME("(%p)->(%p)\n", This, p);
843 static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
845 HTMLStyle *This = HTMLSTYLE_THIS(iface);
846 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
850 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
852 HTMLStyle *This = HTMLSTYLE_THIS(iface);
853 FIXME("(%p)->(%p)\n", This, p);
857 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
859 HTMLStyle *This = HTMLSTYLE_THIS(iface);
860 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
864 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
866 HTMLStyle *This = HTMLSTYLE_THIS(iface);
867 FIXME("(%p)->(%p)\n", This, p);
871 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
873 HTMLStyle *This = HTMLSTYLE_THIS(iface);
875 TRACE("(%p)->(vt=%d)\n", This, V_VT(&v));
881 wsprintfW(buf, px_formatW, V_I4(&v));
882 return set_style_attr(This, attrPaddingLeft, buf, 0);
885 return set_style_attr(This, attrPaddingLeft, V_BSTR(&v), 0);
887 FIXME("unsupported vt=%d\n", V_VT(&v));
893 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
895 HTMLStyle *This = HTMLSTYLE_THIS(iface);
896 FIXME("(%p)->(%p)\n", This, p);
900 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
902 HTMLStyle *This = HTMLSTYLE_THIS(iface);
903 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
907 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
909 HTMLStyle *This = HTMLSTYLE_THIS(iface);
910 FIXME("(%p)->(%p)\n", This, p);
914 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
916 HTMLStyle *This = HTMLSTYLE_THIS(iface);
917 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
921 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
923 HTMLStyle *This = HTMLSTYLE_THIS(iface);
924 FIXME("(%p)->(%p)\n", This, p);
928 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
930 HTMLStyle *This = HTMLSTYLE_THIS(iface);
931 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
935 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
937 HTMLStyle *This = HTMLSTYLE_THIS(iface);
938 FIXME("(%p)->(%p)\n", This, p);
942 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
944 HTMLStyle *This = HTMLSTYLE_THIS(iface);
945 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
949 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
951 HTMLStyle *This = HTMLSTYLE_THIS(iface);
952 FIXME("(%p)->(%p)\n", This, p);
956 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
958 HTMLStyle *This = HTMLSTYLE_THIS(iface);
959 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
963 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
965 HTMLStyle *This = HTMLSTYLE_THIS(iface);
966 FIXME("(%p)->(%p)\n", This, p);
970 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
972 HTMLStyle *This = HTMLSTYLE_THIS(iface);
974 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
976 return set_style_attr(This, attrBorderLeft, v, ATTR_FIX_PX);
979 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
981 HTMLStyle *This = HTMLSTYLE_THIS(iface);
982 FIXME("(%p)->(%p)\n", This, p);
986 static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
988 HTMLStyle *This = HTMLSTYLE_THIS(iface);
989 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
993 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
995 HTMLStyle *This = HTMLSTYLE_THIS(iface);
996 FIXME("(%p)->(%p)\n", This, p);
1000 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
1002 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1003 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1007 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
1009 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1010 FIXME("(%p)->(%p)\n", This, p);
1014 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
1016 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1017 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1021 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
1023 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1024 FIXME("(%p)->(%p)\n", This, p);
1028 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
1030 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1031 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1035 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
1037 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1038 FIXME("(%p)->(%p)\n", This, p);
1042 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
1044 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1045 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1049 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
1051 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1052 FIXME("(%p)->(%p)\n", This, p);
1056 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
1058 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1059 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1063 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
1065 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1066 FIXME("(%p)->(%p)\n", This, p);
1070 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
1072 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1073 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1077 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
1079 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1080 FIXME("(%p)->(%p)\n", This, p);
1084 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
1086 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1087 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1091 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
1093 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1094 FIXME("(%p)->(%p)\n", This, p);
1098 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
1100 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1101 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1105 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1107 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1108 FIXME("(%p)->(%p)\n", This, p);
1112 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1114 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1115 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1119 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1121 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1122 FIXME("(%p)->(%p)\n", This, p);
1126 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1128 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1129 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1133 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1135 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1136 FIXME("(%p)->(%p)\n", This, p);
1140 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1142 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1143 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1147 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1149 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1150 FIXME("(%p)->(%p)\n", This, p);
1154 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1156 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1157 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1161 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1163 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1164 FIXME("(%p)->(%p)\n", This, p);
1168 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1170 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1171 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1175 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1177 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1178 FIXME("(%p)->(%p)\n", This, p);
1182 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1184 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1185 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1189 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1191 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1192 FIXME("(%p)->(%p)\n", This, p);
1196 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1198 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1199 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1203 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1205 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1206 FIXME("(%p)->(%p)\n", This, p);
1210 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1212 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1213 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1217 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1219 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1220 FIXME("(%p)->(%p)\n", This, p);
1224 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1226 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1227 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1231 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1233 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1234 FIXME("(%p)->(%p)\n", This, p);
1238 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1240 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1241 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1245 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1247 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1248 FIXME("(%p)->(%p)\n", This, p);
1252 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1254 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1256 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1258 return set_style_attr(This, attrDisplay, v, 0);
1261 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1263 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1265 TRACE("(%p)->(%p)\n", This, p);
1267 return get_style_attr(This, attrDisplay, p);
1270 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1272 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1274 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1276 return set_style_attr(This, attrVisibility, v, 0);
1279 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1281 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1283 TRACE("(%p)->(%p)\n", This, p);
1285 return get_style_attr(This, attrVisibility, p);
1288 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1290 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1291 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1295 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1297 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1298 FIXME("(%p)->(%p)\n", This, p);
1302 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1304 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1305 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1309 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1311 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1312 FIXME("(%p)->(%p)\n", This, p);
1316 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1318 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1319 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1323 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1325 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1326 FIXME("(%p)->(%p)\n", This, p);
1330 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1332 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1333 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1337 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1339 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1340 FIXME("(%p)->(%p)\n", This, p);
1344 static HRESULT WINAPI HTMLStyle_put_whiteSpace(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_whiteSpace(IHTMLStyle *iface, BSTR *p)
1353 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1354 FIXME("(%p)->(%p)\n", This, p);
1358 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1360 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1361 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1365 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1367 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1368 FIXME("(%p)->(%p)\n", This, p);
1372 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1374 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1375 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1379 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1381 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1382 FIXME("(%p)->(%p)\n", This, p);
1386 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1388 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1389 FIXME("(%p)->(%p)\n", This, p);
1393 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1395 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1396 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1400 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1402 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1403 FIXME("(%p)->(%p)\n", This, p);
1407 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1409 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1410 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1414 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1416 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1417 FIXME("(%p)->(%p)\n", This, p);
1421 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1423 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1424 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1428 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1430 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1431 FIXME("(%p)->(%p)\n", This, p);
1435 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1437 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1438 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1442 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1444 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1445 FIXME("(%p)->(%p)\n", This, p);
1449 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1451 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1452 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1456 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1458 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1459 FIXME("(%p)->(%p)\n", This, p);
1463 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1465 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1466 FIXME("(%p)->()\n", This);
1470 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1472 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1473 FIXME("(%p)->()\n", This);
1477 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1479 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1480 FIXME("(%p)->()\n", This);
1484 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1486 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1487 FIXME("(%p)->()\n", This);
1491 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1493 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1494 FIXME("(%p)->()\n", This);
1498 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1500 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1501 FIXME("(%p)->()\n", This);
1505 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1507 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1508 FIXME("(%p)->()\n", This);
1512 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1514 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1515 FIXME("(%p)->()\n", This);
1519 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1521 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1522 FIXME("(%p)->()\n", This);
1526 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1528 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1529 FIXME("(%p)->()\n", This);
1533 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1535 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1536 FIXME("(%p)->()\n", This);
1540 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1542 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1543 FIXME("(%p)->()\n", This);
1547 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1549 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1550 FIXME("(%p)->()\n", This);
1554 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1556 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1557 FIXME("(%p)->()\n", This);
1561 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1563 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1564 FIXME("(%p)->()\n", This);
1568 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1570 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1571 FIXME("(%p)->()\n", This);
1575 static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
1577 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1578 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1582 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1584 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1585 FIXME("(%p)->(%p)\n", This, p);
1589 static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
1591 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1592 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1596 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1598 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1599 FIXME("(%p)->(%p)\n", This, p);
1603 static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
1605 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1606 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1610 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1612 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1613 FIXME("(%p)->(%p)\n", This, p);
1617 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1618 VARIANT AttributeValue, LONG lFlags)
1620 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1621 FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1622 V_VT(&AttributeValue), lFlags);
1626 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1627 LONG lFlags, VARIANT *AttributeValue)
1629 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1630 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1631 lFlags, AttributeValue);
1635 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1636 LONG lFlags, VARIANT_BOOL *pfSuccess)
1638 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1639 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1644 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1646 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1647 FIXME("(%p)->(%p)\n", This, String);
1651 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1652 HTMLStyle_QueryInterface,
1655 HTMLStyle_GetTypeInfoCount,
1656 HTMLStyle_GetTypeInfo,
1657 HTMLStyle_GetIDsOfNames,
1659 HTMLStyle_put_fontFamily,
1660 HTMLStyle_get_fontFamily,
1661 HTMLStyle_put_fontStyle,
1662 HTMLStyle_get_fontStyle,
1663 HTMLStyle_put_fontVariant,
1664 HTMLStyle_get_fontVariant,
1665 HTMLStyle_put_fontWeight,
1666 HTMLStyle_get_fontWeight,
1667 HTMLStyle_put_fontSize,
1668 HTMLStyle_get_fontSize,
1671 HTMLStyle_put_color,
1672 HTMLStyle_get_color,
1673 HTMLStyle_put_background,
1674 HTMLStyle_get_background,
1675 HTMLStyle_put_backgroundColor,
1676 HTMLStyle_get_backgroundColor,
1677 HTMLStyle_put_backgroundImage,
1678 HTMLStyle_get_backgroundImage,
1679 HTMLStyle_put_backgroundRepeat,
1680 HTMLStyle_get_backgroundRepeat,
1681 HTMLStyle_put_backgroundAttachment,
1682 HTMLStyle_get_backgroundAttachment,
1683 HTMLStyle_put_backgroundPosition,
1684 HTMLStyle_get_backgroundPosition,
1685 HTMLStyle_put_backgroundPositionX,
1686 HTMLStyle_get_backgroundPositionX,
1687 HTMLStyle_put_backgroundPositionY,
1688 HTMLStyle_get_backgroundPositionY,
1689 HTMLStyle_put_wordSpacing,
1690 HTMLStyle_get_wordSpacing,
1691 HTMLStyle_put_letterSpacing,
1692 HTMLStyle_get_letterSpacing,
1693 HTMLStyle_put_textDecoration,
1694 HTMLStyle_get_textDecoration,
1695 HTMLStyle_put_textDecorationNone,
1696 HTMLStyle_get_textDecorationNone,
1697 HTMLStyle_put_textDecorationUnderline,
1698 HTMLStyle_get_textDecorationUnderline,
1699 HTMLStyle_put_textDecorationOverline,
1700 HTMLStyle_get_textDecorationOverline,
1701 HTMLStyle_put_textDecorationLineThrough,
1702 HTMLStyle_get_textDecorationLineThrough,
1703 HTMLStyle_put_textDecorationBlink,
1704 HTMLStyle_get_textDecorationBlink,
1705 HTMLStyle_put_verticalAlign,
1706 HTMLStyle_get_verticalAlign,
1707 HTMLStyle_put_textTransform,
1708 HTMLStyle_get_textTransform,
1709 HTMLStyle_put_textAlign,
1710 HTMLStyle_get_textAlign,
1711 HTMLStyle_put_textIndent,
1712 HTMLStyle_get_textIndent,
1713 HTMLStyle_put_lineHeight,
1714 HTMLStyle_get_lineHeight,
1715 HTMLStyle_put_marginTop,
1716 HTMLStyle_get_marginTop,
1717 HTMLStyle_put_marginRight,
1718 HTMLStyle_get_marginRight,
1719 HTMLStyle_put_marginBottom,
1720 HTMLStyle_get_marginBottom,
1721 HTMLStyle_put_marginLeft,
1722 HTMLStyle_get_marginLeft,
1723 HTMLStyle_put_margin,
1724 HTMLStyle_get_margin,
1725 HTMLStyle_put_paddingTop,
1726 HTMLStyle_get_paddingTop,
1727 HTMLStyle_put_paddingRight,
1728 HTMLStyle_get_paddingRight,
1729 HTMLStyle_put_paddingBottom,
1730 HTMLStyle_get_paddingBottom,
1731 HTMLStyle_put_paddingLeft,
1732 HTMLStyle_get_paddingLeft,
1733 HTMLStyle_put_padding,
1734 HTMLStyle_get_padding,
1735 HTMLStyle_put_border,
1736 HTMLStyle_get_border,
1737 HTMLStyle_put_borderTop,
1738 HTMLStyle_get_borderTop,
1739 HTMLStyle_put_borderRight,
1740 HTMLStyle_get_borderRight,
1741 HTMLStyle_put_borderBottom,
1742 HTMLStyle_get_borderBottom,
1743 HTMLStyle_put_borderLeft,
1744 HTMLStyle_get_borderLeft,
1745 HTMLStyle_put_borderColor,
1746 HTMLStyle_get_borderColor,
1747 HTMLStyle_put_borderTopColor,
1748 HTMLStyle_get_borderTopColor,
1749 HTMLStyle_put_borderRightColor,
1750 HTMLStyle_get_borderRightColor,
1751 HTMLStyle_put_borderBottomColor,
1752 HTMLStyle_get_borderBottomColor,
1753 HTMLStyle_put_borderLeftColor,
1754 HTMLStyle_get_borderLeftColor,
1755 HTMLStyle_put_borderWidth,
1756 HTMLStyle_get_borderWidth,
1757 HTMLStyle_put_borderTopWidth,
1758 HTMLStyle_get_borderTopWidth,
1759 HTMLStyle_put_borderRightWidth,
1760 HTMLStyle_get_borderRightWidth,
1761 HTMLStyle_put_borderBottomWidth,
1762 HTMLStyle_get_borderBottomWidth,
1763 HTMLStyle_put_borderLeftWidth,
1764 HTMLStyle_get_borderLeftWidth,
1765 HTMLStyle_put_borderStyle,
1766 HTMLStyle_get_borderStyle,
1767 HTMLStyle_put_borderTopStyle,
1768 HTMLStyle_get_borderTopStyle,
1769 HTMLStyle_put_borderRightStyle,
1770 HTMLStyle_get_borderRightStyle,
1771 HTMLStyle_put_borderBottomStyle,
1772 HTMLStyle_get_borderBottomStyle,
1773 HTMLStyle_put_borderLeftStyle,
1774 HTMLStyle_get_borderLeftStyle,
1775 HTMLStyle_put_width,
1776 HTMLStyle_get_width,
1777 HTMLStyle_put_height,
1778 HTMLStyle_get_height,
1779 HTMLStyle_put_styleFloat,
1780 HTMLStyle_get_styleFloat,
1781 HTMLStyle_put_clear,
1782 HTMLStyle_get_clear,
1783 HTMLStyle_put_display,
1784 HTMLStyle_get_display,
1785 HTMLStyle_put_visibility,
1786 HTMLStyle_get_visibility,
1787 HTMLStyle_put_listStyleType,
1788 HTMLStyle_get_listStyleType,
1789 HTMLStyle_put_listStylePosition,
1790 HTMLStyle_get_listStylePosition,
1791 HTMLStyle_put_listStyleImage,
1792 HTMLStyle_get_listStyleImage,
1793 HTMLStyle_put_listStyle,
1794 HTMLStyle_get_listStyle,
1795 HTMLStyle_put_whiteSpace,
1796 HTMLStyle_get_whiteSpace,
1801 HTMLStyle_get_position,
1802 HTMLStyle_put_zIndex,
1803 HTMLStyle_get_zIndex,
1804 HTMLStyle_put_overflow,
1805 HTMLStyle_get_overflow,
1806 HTMLStyle_put_pageBreakBefore,
1807 HTMLStyle_get_pageBreakBefore,
1808 HTMLStyle_put_pageBreakAfter,
1809 HTMLStyle_get_pageBreakAfter,
1810 HTMLStyle_put_cssText,
1811 HTMLStyle_get_cssText,
1812 HTMLStyle_put_pixelTop,
1813 HTMLStyle_get_pixelTop,
1814 HTMLStyle_put_pixelLeft,
1815 HTMLStyle_get_pixelLeft,
1816 HTMLStyle_put_pixelWidth,
1817 HTMLStyle_get_pixelWidth,
1818 HTMLStyle_put_pixelHeight,
1819 HTMLStyle_get_pixelHeight,
1820 HTMLStyle_put_posTop,
1821 HTMLStyle_get_posTop,
1822 HTMLStyle_put_posLeft,
1823 HTMLStyle_get_posLeft,
1824 HTMLStyle_put_posWidth,
1825 HTMLStyle_get_posWidth,
1826 HTMLStyle_put_posHeight,
1827 HTMLStyle_get_posHeight,
1828 HTMLStyle_put_cursor,
1829 HTMLStyle_get_cursor,
1832 HTMLStyle_put_filter,
1833 HTMLStyle_get_filter,
1834 HTMLStyle_setAttribute,
1835 HTMLStyle_getAttribute,
1836 HTMLStyle_removeAttribute,
1840 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1842 HTMLStyle *ret = heap_alloc(sizeof(HTMLStyle));
1844 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1846 ret->nsstyle = nsstyle;
1848 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1850 return HTMLSTYLE(ret);