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);
35 static const WCHAR attrBackground[] =
36 {'b','a','c','k','g','r','o','u','n','d',0};
37 static const WCHAR attrBackgroundColor[] =
38 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
39 static const WCHAR attrBackgroundImage[] =
40 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
41 static const WCHAR attrBorderLeft[] =
42 {'b','o','r','d','e','r','-','l','e','f','t',0};
43 static const WCHAR attrColor[] =
44 {'c','o','l','o','r',0};
45 static const WCHAR attrDisplay[] =
46 {'d','i','s','p','l','a','y',0};
47 static const WCHAR attrFontFamily[] =
48 {'f','o','n','t','-','f','a','m','i','l','y',0};
49 static const WCHAR attrFontSize[] =
50 {'f','o','n','t','-','s','i','z','e',0};
51 static const WCHAR attrFontStyle[] =
52 {'f','o','n','t','-','s','t','y','l','e',0};
53 static const WCHAR attrFontWeight[] =
54 {'f','o','n','t','-','w','e','i','g','h','t',0};
55 static const WCHAR attrMargin[] =
56 {'m','a','r','g','i','n',0};
57 static const WCHAR attrMarginLeft[] =
58 {'m','a','r','g','i','n','-','l','e','f','t',0};
59 static const WCHAR attrMarginRight[] =
60 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
61 static const WCHAR attrPaddingLeft[] =
62 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
63 static const WCHAR attrTextDecoration[] =
64 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
65 static const WCHAR attrVisibility[] =
66 {'v','i','s','i','b','i','l','i','t','y',0};
67 static const WCHAR attrWidth[] =
68 {'w','i','d','t','h',0};
70 static const WCHAR valLineThrough[] =
71 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
72 static const WCHAR valUnderline[] =
73 {'u','n','d','e','r','l','i','n','e',0};
75 static const WCHAR px_formatW[] = {'%','d','p','x',0};
76 static const WCHAR emptyW[] = {0};
78 static LPWSTR fix_px_value(LPCWSTR val)
83 while(*ptr && isspaceW(*ptr))
88 while(*ptr && isdigitW(*ptr))
91 if(!*ptr || isspaceW(*ptr)) {
93 int len = strlenW(val)+1;
95 ret = heap_alloc((len+2)*sizeof(WCHAR));
96 memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
102 TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
107 while(*ptr && !isspaceW(*ptr))
114 static LPWSTR fix_url_value(LPCWSTR val)
118 static const WCHAR urlW[] = {'u','r','l','('};
120 if(strncmpW(val, urlW, sizeof(urlW)/sizeof(WCHAR)) || !strchrW(val, '\\'))
123 ret = heap_strdupW(val);
125 for(ptr = ret; *ptr; ptr++) {
133 #define ATTR_FIX_PX 1
134 #define ATTR_FIX_URL 2
136 static HRESULT set_style_attr(HTMLStyle *This, LPCWSTR name, LPCWSTR value, DWORD flags)
138 nsAString str_name, str_value, str_empty;
142 static const PRUnichar wszEmpty[] = {0};
144 TRACE("(%p)->(%s %s)\n", This, debugstr_w(name), debugstr_w(value));
146 if(flags & ATTR_FIX_PX)
147 val = fix_px_value(value);
148 if(flags & ATTR_FIX_URL)
149 val = fix_url_value(value);
151 nsAString_Init(&str_name, name);
152 nsAString_Init(&str_value, val ? val : value);
153 nsAString_Init(&str_empty, wszEmpty);
156 nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
158 ERR("SetProperty failed: %08x\n", nsres);
160 nsAString_Finish(&str_name);
161 nsAString_Finish(&str_value);
162 nsAString_Finish(&str_empty);
167 static HRESULT get_style_attr_nsval(HTMLStyle *This, LPCWSTR name, nsAString *value)
172 nsAString_Init(&str_name, name);
174 nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &str_name, value);
175 if(NS_FAILED(nsres)) {
176 ERR("SetProperty failed: %08x\n", nsres);
180 nsAString_Finish(&str_name);
185 static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
188 const PRUnichar *value;
190 nsAString_Init(&str_value, NULL);
192 get_style_attr_nsval(This, name, &str_value);
194 nsAString_GetData(&str_value, &value);
195 *p = *value ? SysAllocString(value) : NULL;
197 nsAString_Finish(&str_value);
199 TRACE("%s -> %s\n", debugstr_w(name), debugstr_w(*p));
203 static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exval, VARIANT_BOOL *p)
206 const PRUnichar *value;
208 nsAString_Init(&str_value, NULL);
210 get_style_attr_nsval(This, name, &str_value);
212 nsAString_GetData(&str_value, &value);
213 *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
214 nsAString_Finish(&str_value);
216 TRACE("%s -> %x\n", debugstr_w(name), *p);
220 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
222 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
224 HTMLStyle *This = HTMLSTYLE_THIS(iface);
228 if(IsEqualGUID(&IID_IUnknown, riid)) {
229 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
230 *ppv = HTMLSTYLE(This);
231 }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
232 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
233 *ppv = HTMLSTYLE(This);
234 }else if(IsEqualGUID(&IID_IHTMLStyle2, riid)) {
235 TRACE("(%p)->(IID_IHTMLStyle2 %p)\n", This, ppv);
236 *ppv = HTMLSTYLE2(This);
237 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
238 return *ppv ? S_OK : E_NOINTERFACE;
242 IUnknown_AddRef((IUnknown*)*ppv);
246 WARN("unsupported %s\n", debugstr_guid(riid));
247 return E_NOINTERFACE;
250 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
252 HTMLStyle *This = HTMLSTYLE_THIS(iface);
253 LONG ref = InterlockedIncrement(&This->ref);
255 TRACE("(%p) ref=%d\n", This, ref);
260 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
262 HTMLStyle *This = HTMLSTYLE_THIS(iface);
263 LONG ref = InterlockedDecrement(&This->ref);
265 TRACE("(%p) ref=%d\n", This, ref);
273 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
275 HTMLStyle *This = HTMLSTYLE_THIS(iface);
276 return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This->dispex), pctinfo);
279 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
280 LCID lcid, ITypeInfo **ppTInfo)
282 HTMLStyle *This = HTMLSTYLE_THIS(iface);
283 return IDispatchEx_GetTypeInfo(DISPATCHEX(&This->dispex), iTInfo, lcid, ppTInfo);
286 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
287 LPOLESTR *rgszNames, UINT cNames,
288 LCID lcid, DISPID *rgDispId)
290 HTMLStyle *This = HTMLSTYLE_THIS(iface);
291 return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This->dispex), riid, rgszNames, cNames, lcid, rgDispId);
294 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
295 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
296 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
298 HTMLStyle *This = HTMLSTYLE_THIS(iface);
299 return IDispatchEx_Invoke(DISPATCHEX(&This->dispex), dispIdMember, riid, lcid,
300 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
303 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
305 HTMLStyle *This = HTMLSTYLE_THIS(iface);
307 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
309 return set_style_attr(This, attrFontFamily, v, 0);
312 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
314 HTMLStyle *This = HTMLSTYLE_THIS(iface);
316 TRACE("(%p)->(%p)\n", This, p);
318 return get_style_attr(This, attrFontFamily, p);
321 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
323 HTMLStyle *This = HTMLSTYLE_THIS(iface);
324 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
328 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
330 HTMLStyle *This = HTMLSTYLE_THIS(iface);
332 TRACE("(%p)->(%p)\n", This, p);
334 return get_style_attr(This, attrFontStyle, p);
337 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
339 HTMLStyle *This = HTMLSTYLE_THIS(iface);
340 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
344 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
346 HTMLStyle *This = HTMLSTYLE_THIS(iface);
347 FIXME("(%p)->(%p)\n", This, p);
351 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
353 HTMLStyle *This = HTMLSTYLE_THIS(iface);
354 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
358 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
360 HTMLStyle *This = HTMLSTYLE_THIS(iface);
362 TRACE("(%p)->(%p)\n", This, p);
364 return get_style_attr(This, attrFontWeight, p);
367 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
369 HTMLStyle *This = HTMLSTYLE_THIS(iface);
371 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
375 return set_style_attr(This, attrFontSize, V_BSTR(&v), 0);
377 FIXME("not supported vt %d\n", V_VT(&v));
383 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
385 HTMLStyle *This = HTMLSTYLE_THIS(iface);
387 TRACE("(%p)->(%p)\n", This, p);
390 return get_style_attr(This, attrFontSize, &V_BSTR(p));
393 static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
395 HTMLStyle *This = HTMLSTYLE_THIS(iface);
396 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
400 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
402 HTMLStyle *This = HTMLSTYLE_THIS(iface);
403 FIXME("(%p)->(%p)\n", This, p);
407 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
409 HTMLStyle *This = HTMLSTYLE_THIS(iface);
411 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
415 TRACE("%s\n", debugstr_w(V_BSTR(&v)));
416 return set_style_attr(This, attrColor, V_BSTR(&v), 0);
419 FIXME("unsupported vt=%d\n", V_VT(&v));
425 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
427 HTMLStyle *This = HTMLSTYLE_THIS(iface);
429 TRACE("(%p)->(%p)\n", This, p);
432 return get_style_attr(This, attrColor, &V_BSTR(p));
435 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
437 HTMLStyle *This = HTMLSTYLE_THIS(iface);
439 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
441 return set_style_attr(This, attrBackground, v, 0);
444 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
446 HTMLStyle *This = HTMLSTYLE_THIS(iface);
448 TRACE("(%p)->(%p)\n", This, p);
450 return get_style_attr(This, attrBackground, p);
453 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
455 HTMLStyle *This = HTMLSTYLE_THIS(iface);
457 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
461 return set_style_attr(This, attrBackgroundColor, V_BSTR(&v), 0);
464 static const WCHAR format[] = {'#','%','0','6','x',0};
466 wsprintfW(value, format, V_I4(&v));
467 return set_style_attr(This, attrBackgroundColor, value, 0);
470 FIXME("unsupported vt %d\n", V_VT(&v));
476 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
478 HTMLStyle *This = HTMLSTYLE_THIS(iface);
479 FIXME("(%p)->(%p)\n", This, p);
483 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
485 HTMLStyle *This = HTMLSTYLE_THIS(iface);
487 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
489 return set_style_attr(This, attrBackgroundImage, v, ATTR_FIX_URL);
492 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
494 HTMLStyle *This = HTMLSTYLE_THIS(iface);
495 FIXME("(%p)->(%p)\n", This, p);
499 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
501 HTMLStyle *This = HTMLSTYLE_THIS(iface);
502 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
506 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
508 HTMLStyle *This = HTMLSTYLE_THIS(iface);
509 FIXME("(%p)->(%p)\n", This, p);
513 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
515 HTMLStyle *This = HTMLSTYLE_THIS(iface);
516 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
520 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
522 HTMLStyle *This = HTMLSTYLE_THIS(iface);
523 FIXME("(%p)->(%p)\n", This, p);
527 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
529 HTMLStyle *This = HTMLSTYLE_THIS(iface);
530 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
534 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
536 HTMLStyle *This = HTMLSTYLE_THIS(iface);
537 FIXME("(%p)->(%p)\n", This, p);
541 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
543 HTMLStyle *This = HTMLSTYLE_THIS(iface);
544 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
548 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
550 HTMLStyle *This = HTMLSTYLE_THIS(iface);
551 FIXME("(%p)->(%p)\n", This, p);
555 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
557 HTMLStyle *This = HTMLSTYLE_THIS(iface);
558 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
562 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
564 HTMLStyle *This = HTMLSTYLE_THIS(iface);
565 FIXME("(%p)->(%p)\n", This, p);
569 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
571 HTMLStyle *This = HTMLSTYLE_THIS(iface);
572 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
576 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
578 HTMLStyle *This = HTMLSTYLE_THIS(iface);
579 FIXME("(%p)->(%p)\n", This, p);
583 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
585 HTMLStyle *This = HTMLSTYLE_THIS(iface);
586 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
590 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
592 HTMLStyle *This = HTMLSTYLE_THIS(iface);
593 FIXME("(%p)->(%p)\n", This, p);
597 static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
599 HTMLStyle *This = HTMLSTYLE_THIS(iface);
600 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
604 static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
606 HTMLStyle *This = HTMLSTYLE_THIS(iface);
608 TRACE("(%p)->(%p)\n", This, p);
610 return get_style_attr(This, attrTextDecoration, p);
613 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
615 HTMLStyle *This = HTMLSTYLE_THIS(iface);
616 FIXME("(%p)->(%x)\n", This, v);
620 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
622 HTMLStyle *This = HTMLSTYLE_THIS(iface);
623 FIXME("(%p)->(%p)\n", This, p);
627 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
629 HTMLStyle *This = HTMLSTYLE_THIS(iface);
630 FIXME("(%p)->(%x)\n", This, v);
634 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
636 HTMLStyle *This = HTMLSTYLE_THIS(iface);
638 TRACE("(%p)->(%p)\n", This, p);
640 return check_style_attr_value(This, attrTextDecoration, valUnderline, p);
643 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
645 HTMLStyle *This = HTMLSTYLE_THIS(iface);
646 FIXME("(%p)->(%x)\n", This, v);
650 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
652 HTMLStyle *This = HTMLSTYLE_THIS(iface);
653 FIXME("(%p)->(%p)\n", This, p);
657 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
659 HTMLStyle *This = HTMLSTYLE_THIS(iface);
660 FIXME("(%p)->(%x)\n", This, v);
664 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
666 HTMLStyle *This = HTMLSTYLE_THIS(iface);
668 TRACE("(%p)->(%p)\n", This, p);
670 return check_style_attr_value(This, attrTextDecoration, valLineThrough, p);
673 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
675 HTMLStyle *This = HTMLSTYLE_THIS(iface);
676 FIXME("(%p)->(%x)\n", This, v);
680 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
682 HTMLStyle *This = HTMLSTYLE_THIS(iface);
683 FIXME("(%p)->(%p)\n", This, p);
687 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
689 HTMLStyle *This = HTMLSTYLE_THIS(iface);
690 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
694 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
696 HTMLStyle *This = HTMLSTYLE_THIS(iface);
697 FIXME("(%p)->(%p)\n", This, p);
701 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
703 HTMLStyle *This = HTMLSTYLE_THIS(iface);
704 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
708 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
710 HTMLStyle *This = HTMLSTYLE_THIS(iface);
711 FIXME("(%p)->(%p)\n", This, p);
715 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
717 HTMLStyle *This = HTMLSTYLE_THIS(iface);
718 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
722 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
724 HTMLStyle *This = HTMLSTYLE_THIS(iface);
725 FIXME("(%p)->(%p)\n", This, p);
729 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
731 HTMLStyle *This = HTMLSTYLE_THIS(iface);
732 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
736 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
738 HTMLStyle *This = HTMLSTYLE_THIS(iface);
739 FIXME("(%p)->(%p)\n", This, p);
743 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
745 HTMLStyle *This = HTMLSTYLE_THIS(iface);
746 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
750 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
752 HTMLStyle *This = HTMLSTYLE_THIS(iface);
753 FIXME("(%p)->(%p)\n", This, p);
757 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
759 HTMLStyle *This = HTMLSTYLE_THIS(iface);
760 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
764 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
766 HTMLStyle *This = HTMLSTYLE_THIS(iface);
767 FIXME("(%p)->(%p)\n", This, p);
771 static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
773 HTMLStyle *This = HTMLSTYLE_THIS(iface);
775 TRACE("(%p)->(v(%d))\n", This, V_VT(&v));
779 return set_style_attr(This, attrMarginRight, emptyW, 0);
783 wsprintfW(buf, px_formatW, V_I4(&v));
784 return set_style_attr(This, attrMarginRight, buf, 0);
787 return set_style_attr(This, attrMarginRight, V_BSTR(&v), 0);
789 FIXME("Unsupported vt=%d\n", V_VT(&v));
795 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
797 HTMLStyle *This = HTMLSTYLE_THIS(iface);
798 FIXME("(%p)->(%p)\n", This, p);
802 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
804 HTMLStyle *This = HTMLSTYLE_THIS(iface);
805 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
809 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
811 HTMLStyle *This = HTMLSTYLE_THIS(iface);
812 FIXME("(%p)->(%p)\n", This, p);
816 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
818 HTMLStyle *This = HTMLSTYLE_THIS(iface);
822 TRACE("(%p)->(NULL)\n", This);
823 return set_style_attr(This, attrMarginLeft, emptyW, 0);
827 TRACE("(%p)->(%d)\n", This, V_I4(&v));
829 wsprintfW(buf, px_formatW, V_I4(&v));
830 return set_style_attr(This, attrMarginLeft, buf, 0);
833 TRACE("(%p)->(%s)\n", This, debugstr_w(V_BSTR(&v)));
834 return set_style_attr(This, attrMarginLeft, V_BSTR(&v), 0);
836 FIXME("Unsupported vt=%d\n", V_VT(&v));
842 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
844 HTMLStyle *This = HTMLSTYLE_THIS(iface);
846 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
848 return set_style_attr(This, attrMargin, v, 0);
851 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
853 HTMLStyle *This = HTMLSTYLE_THIS(iface);
855 TRACE("(%p)->(%p)\n", This, p);
857 return get_style_attr(This, attrMargin, p);
860 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
862 HTMLStyle *This = HTMLSTYLE_THIS(iface);
863 FIXME("(%p)->(%p)\n", This, p);
867 static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
869 HTMLStyle *This = HTMLSTYLE_THIS(iface);
870 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
874 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
876 HTMLStyle *This = HTMLSTYLE_THIS(iface);
877 FIXME("(%p)->(%p)\n", This, p);
881 static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
883 HTMLStyle *This = HTMLSTYLE_THIS(iface);
884 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
888 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
890 HTMLStyle *This = HTMLSTYLE_THIS(iface);
891 FIXME("(%p)->(%p)\n", This, p);
895 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
897 HTMLStyle *This = HTMLSTYLE_THIS(iface);
898 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
902 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
904 HTMLStyle *This = HTMLSTYLE_THIS(iface);
905 FIXME("(%p)->(%p)\n", This, p);
909 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
911 HTMLStyle *This = HTMLSTYLE_THIS(iface);
913 TRACE("(%p)->(vt=%d)\n", This, V_VT(&v));
919 wsprintfW(buf, px_formatW, V_I4(&v));
920 return set_style_attr(This, attrPaddingLeft, buf, 0);
923 return set_style_attr(This, attrPaddingLeft, V_BSTR(&v), 0);
925 FIXME("unsupported vt=%d\n", V_VT(&v));
931 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
933 HTMLStyle *This = HTMLSTYLE_THIS(iface);
934 FIXME("(%p)->(%p)\n", This, p);
938 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
940 HTMLStyle *This = HTMLSTYLE_THIS(iface);
941 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
945 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
947 HTMLStyle *This = HTMLSTYLE_THIS(iface);
948 FIXME("(%p)->(%p)\n", This, p);
952 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
954 HTMLStyle *This = HTMLSTYLE_THIS(iface);
955 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
959 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
961 HTMLStyle *This = HTMLSTYLE_THIS(iface);
962 FIXME("(%p)->(%p)\n", This, p);
966 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
968 HTMLStyle *This = HTMLSTYLE_THIS(iface);
969 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
973 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
975 HTMLStyle *This = HTMLSTYLE_THIS(iface);
976 FIXME("(%p)->(%p)\n", This, p);
980 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
982 HTMLStyle *This = HTMLSTYLE_THIS(iface);
983 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
987 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
989 HTMLStyle *This = HTMLSTYLE_THIS(iface);
990 FIXME("(%p)->(%p)\n", This, p);
994 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
996 HTMLStyle *This = HTMLSTYLE_THIS(iface);
997 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1001 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
1003 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1004 FIXME("(%p)->(%p)\n", This, p);
1008 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
1010 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1012 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1014 return set_style_attr(This, attrBorderLeft, v, ATTR_FIX_PX);
1017 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
1019 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1020 FIXME("(%p)->(%p)\n", This, p);
1024 static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
1026 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1027 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1031 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
1033 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1034 FIXME("(%p)->(%p)\n", This, p);
1038 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
1040 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1041 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1045 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
1047 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1048 FIXME("(%p)->(%p)\n", This, p);
1052 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
1054 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1055 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1059 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
1061 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1062 FIXME("(%p)->(%p)\n", This, p);
1066 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
1068 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1069 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1073 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
1075 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1076 FIXME("(%p)->(%p)\n", This, p);
1080 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
1082 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1083 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1087 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
1089 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1090 FIXME("(%p)->(%p)\n", This, p);
1094 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
1096 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1097 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1101 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
1103 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1104 FIXME("(%p)->(%p)\n", This, p);
1108 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
1110 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1111 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1115 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
1117 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1118 FIXME("(%p)->(%p)\n", This, p);
1122 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
1124 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1125 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1129 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
1131 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1132 FIXME("(%p)->(%p)\n", This, p);
1136 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
1138 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1139 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1143 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1145 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1146 FIXME("(%p)->(%p)\n", This, p);
1150 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1152 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1153 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1157 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1159 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1160 FIXME("(%p)->(%p)\n", This, p);
1164 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1166 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1167 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1171 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1173 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1174 FIXME("(%p)->(%p)\n", This, p);
1178 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1180 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1181 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1185 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1187 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1188 FIXME("(%p)->(%p)\n", This, p);
1192 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1194 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1195 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1199 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1201 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1202 FIXME("(%p)->(%p)\n", This, p);
1206 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1208 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1209 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1213 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1215 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1216 FIXME("(%p)->(%p)\n", This, p);
1220 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1222 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1223 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1227 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1229 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1230 FIXME("(%p)->(%p)\n", This, p);
1234 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1236 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1238 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
1242 TRACE("%s\n", debugstr_w(V_BSTR(&v)));
1243 return set_style_attr(This, attrWidth, V_BSTR(&v), 0);
1245 FIXME("unsupported vt %d\n", V_VT(&v));
1251 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1253 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1255 TRACE("(%p)->(%p)\n", This, p);
1258 return get_style_attr(This, attrWidth, &V_BSTR(p));
1261 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1263 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1264 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1268 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1270 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1271 FIXME("(%p)->(%p)\n", This, p);
1275 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1277 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1278 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1282 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1284 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1285 FIXME("(%p)->(%p)\n", This, p);
1289 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1291 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1292 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1296 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1298 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1299 FIXME("(%p)->(%p)\n", This, p);
1303 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1305 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1307 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1309 return set_style_attr(This, attrDisplay, v, 0);
1312 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1314 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1316 TRACE("(%p)->(%p)\n", This, p);
1318 return get_style_attr(This, attrDisplay, p);
1321 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1323 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1325 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1327 return set_style_attr(This, attrVisibility, v, 0);
1330 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1332 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1334 TRACE("(%p)->(%p)\n", This, p);
1336 return get_style_attr(This, attrVisibility, p);
1339 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1341 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1342 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1346 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1348 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1349 FIXME("(%p)->(%p)\n", This, p);
1353 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1355 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1356 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1360 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1362 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1363 FIXME("(%p)->(%p)\n", This, p);
1367 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1369 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1370 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1374 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1376 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1377 FIXME("(%p)->(%p)\n", This, p);
1381 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1383 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1384 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1388 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1390 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1391 FIXME("(%p)->(%p)\n", This, p);
1395 static HRESULT WINAPI HTMLStyle_put_whiteSpace(IHTMLStyle *iface, BSTR v)
1397 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1398 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1402 static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
1404 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1405 FIXME("(%p)->(%p)\n", This, p);
1409 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1411 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1412 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1416 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1418 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1419 FIXME("(%p)->(%p)\n", This, p);
1423 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1425 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1426 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1430 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1432 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1433 FIXME("(%p)->(%p)\n", This, p);
1437 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1439 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1440 FIXME("(%p)->(%p)\n", This, p);
1444 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1446 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1447 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1451 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1453 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1454 FIXME("(%p)->(%p)\n", This, p);
1458 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1460 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1461 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1465 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1467 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1468 FIXME("(%p)->(%p)\n", This, p);
1472 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1474 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1475 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1479 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1481 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1482 FIXME("(%p)->(%p)\n", This, p);
1486 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1488 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1489 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1493 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1495 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1496 FIXME("(%p)->(%p)\n", This, p);
1500 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1502 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1503 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1507 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1509 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1510 FIXME("(%p)->(%p)\n", This, p);
1514 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1516 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1517 FIXME("(%p)->()\n", This);
1521 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1523 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1524 FIXME("(%p)->()\n", This);
1528 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1530 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1531 FIXME("(%p)->()\n", This);
1535 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1537 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1538 FIXME("(%p)->()\n", This);
1542 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1544 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1545 FIXME("(%p)->()\n", This);
1549 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1551 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1552 FIXME("(%p)->()\n", This);
1556 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1558 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1559 FIXME("(%p)->()\n", This);
1563 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1565 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1566 FIXME("(%p)->()\n", This);
1570 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1572 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1573 FIXME("(%p)->()\n", This);
1577 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1579 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1580 FIXME("(%p)->()\n", This);
1584 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1586 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1587 FIXME("(%p)->()\n", This);
1591 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1593 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1594 FIXME("(%p)->()\n", This);
1598 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1600 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1601 FIXME("(%p)->()\n", This);
1605 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1607 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1608 FIXME("(%p)->()\n", This);
1612 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1614 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1615 FIXME("(%p)->()\n", This);
1619 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1621 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1622 FIXME("(%p)->()\n", This);
1626 static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
1628 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1629 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1633 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1635 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1636 FIXME("(%p)->(%p)\n", This, p);
1640 static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
1642 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1643 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1647 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1649 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1650 FIXME("(%p)->(%p)\n", This, p);
1654 static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
1656 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1657 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1661 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1663 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1664 FIXME("(%p)->(%p)\n", This, p);
1668 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1669 VARIANT AttributeValue, LONG lFlags)
1671 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1672 FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1673 V_VT(&AttributeValue), lFlags);
1677 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1678 LONG lFlags, VARIANT *AttributeValue)
1680 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1681 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1682 lFlags, AttributeValue);
1686 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1687 LONG lFlags, VARIANT_BOOL *pfSuccess)
1689 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1690 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1695 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1697 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1698 FIXME("(%p)->(%p)\n", This, String);
1702 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1703 HTMLStyle_QueryInterface,
1706 HTMLStyle_GetTypeInfoCount,
1707 HTMLStyle_GetTypeInfo,
1708 HTMLStyle_GetIDsOfNames,
1710 HTMLStyle_put_fontFamily,
1711 HTMLStyle_get_fontFamily,
1712 HTMLStyle_put_fontStyle,
1713 HTMLStyle_get_fontStyle,
1714 HTMLStyle_put_fontVariant,
1715 HTMLStyle_get_fontVariant,
1716 HTMLStyle_put_fontWeight,
1717 HTMLStyle_get_fontWeight,
1718 HTMLStyle_put_fontSize,
1719 HTMLStyle_get_fontSize,
1722 HTMLStyle_put_color,
1723 HTMLStyle_get_color,
1724 HTMLStyle_put_background,
1725 HTMLStyle_get_background,
1726 HTMLStyle_put_backgroundColor,
1727 HTMLStyle_get_backgroundColor,
1728 HTMLStyle_put_backgroundImage,
1729 HTMLStyle_get_backgroundImage,
1730 HTMLStyle_put_backgroundRepeat,
1731 HTMLStyle_get_backgroundRepeat,
1732 HTMLStyle_put_backgroundAttachment,
1733 HTMLStyle_get_backgroundAttachment,
1734 HTMLStyle_put_backgroundPosition,
1735 HTMLStyle_get_backgroundPosition,
1736 HTMLStyle_put_backgroundPositionX,
1737 HTMLStyle_get_backgroundPositionX,
1738 HTMLStyle_put_backgroundPositionY,
1739 HTMLStyle_get_backgroundPositionY,
1740 HTMLStyle_put_wordSpacing,
1741 HTMLStyle_get_wordSpacing,
1742 HTMLStyle_put_letterSpacing,
1743 HTMLStyle_get_letterSpacing,
1744 HTMLStyle_put_textDecoration,
1745 HTMLStyle_get_textDecoration,
1746 HTMLStyle_put_textDecorationNone,
1747 HTMLStyle_get_textDecorationNone,
1748 HTMLStyle_put_textDecorationUnderline,
1749 HTMLStyle_get_textDecorationUnderline,
1750 HTMLStyle_put_textDecorationOverline,
1751 HTMLStyle_get_textDecorationOverline,
1752 HTMLStyle_put_textDecorationLineThrough,
1753 HTMLStyle_get_textDecorationLineThrough,
1754 HTMLStyle_put_textDecorationBlink,
1755 HTMLStyle_get_textDecorationBlink,
1756 HTMLStyle_put_verticalAlign,
1757 HTMLStyle_get_verticalAlign,
1758 HTMLStyle_put_textTransform,
1759 HTMLStyle_get_textTransform,
1760 HTMLStyle_put_textAlign,
1761 HTMLStyle_get_textAlign,
1762 HTMLStyle_put_textIndent,
1763 HTMLStyle_get_textIndent,
1764 HTMLStyle_put_lineHeight,
1765 HTMLStyle_get_lineHeight,
1766 HTMLStyle_put_marginTop,
1767 HTMLStyle_get_marginTop,
1768 HTMLStyle_put_marginRight,
1769 HTMLStyle_get_marginRight,
1770 HTMLStyle_put_marginBottom,
1771 HTMLStyle_get_marginBottom,
1772 HTMLStyle_put_marginLeft,
1773 HTMLStyle_get_marginLeft,
1774 HTMLStyle_put_margin,
1775 HTMLStyle_get_margin,
1776 HTMLStyle_put_paddingTop,
1777 HTMLStyle_get_paddingTop,
1778 HTMLStyle_put_paddingRight,
1779 HTMLStyle_get_paddingRight,
1780 HTMLStyle_put_paddingBottom,
1781 HTMLStyle_get_paddingBottom,
1782 HTMLStyle_put_paddingLeft,
1783 HTMLStyle_get_paddingLeft,
1784 HTMLStyle_put_padding,
1785 HTMLStyle_get_padding,
1786 HTMLStyle_put_border,
1787 HTMLStyle_get_border,
1788 HTMLStyle_put_borderTop,
1789 HTMLStyle_get_borderTop,
1790 HTMLStyle_put_borderRight,
1791 HTMLStyle_get_borderRight,
1792 HTMLStyle_put_borderBottom,
1793 HTMLStyle_get_borderBottom,
1794 HTMLStyle_put_borderLeft,
1795 HTMLStyle_get_borderLeft,
1796 HTMLStyle_put_borderColor,
1797 HTMLStyle_get_borderColor,
1798 HTMLStyle_put_borderTopColor,
1799 HTMLStyle_get_borderTopColor,
1800 HTMLStyle_put_borderRightColor,
1801 HTMLStyle_get_borderRightColor,
1802 HTMLStyle_put_borderBottomColor,
1803 HTMLStyle_get_borderBottomColor,
1804 HTMLStyle_put_borderLeftColor,
1805 HTMLStyle_get_borderLeftColor,
1806 HTMLStyle_put_borderWidth,
1807 HTMLStyle_get_borderWidth,
1808 HTMLStyle_put_borderTopWidth,
1809 HTMLStyle_get_borderTopWidth,
1810 HTMLStyle_put_borderRightWidth,
1811 HTMLStyle_get_borderRightWidth,
1812 HTMLStyle_put_borderBottomWidth,
1813 HTMLStyle_get_borderBottomWidth,
1814 HTMLStyle_put_borderLeftWidth,
1815 HTMLStyle_get_borderLeftWidth,
1816 HTMLStyle_put_borderStyle,
1817 HTMLStyle_get_borderStyle,
1818 HTMLStyle_put_borderTopStyle,
1819 HTMLStyle_get_borderTopStyle,
1820 HTMLStyle_put_borderRightStyle,
1821 HTMLStyle_get_borderRightStyle,
1822 HTMLStyle_put_borderBottomStyle,
1823 HTMLStyle_get_borderBottomStyle,
1824 HTMLStyle_put_borderLeftStyle,
1825 HTMLStyle_get_borderLeftStyle,
1826 HTMLStyle_put_width,
1827 HTMLStyle_get_width,
1828 HTMLStyle_put_height,
1829 HTMLStyle_get_height,
1830 HTMLStyle_put_styleFloat,
1831 HTMLStyle_get_styleFloat,
1832 HTMLStyle_put_clear,
1833 HTMLStyle_get_clear,
1834 HTMLStyle_put_display,
1835 HTMLStyle_get_display,
1836 HTMLStyle_put_visibility,
1837 HTMLStyle_get_visibility,
1838 HTMLStyle_put_listStyleType,
1839 HTMLStyle_get_listStyleType,
1840 HTMLStyle_put_listStylePosition,
1841 HTMLStyle_get_listStylePosition,
1842 HTMLStyle_put_listStyleImage,
1843 HTMLStyle_get_listStyleImage,
1844 HTMLStyle_put_listStyle,
1845 HTMLStyle_get_listStyle,
1846 HTMLStyle_put_whiteSpace,
1847 HTMLStyle_get_whiteSpace,
1852 HTMLStyle_get_position,
1853 HTMLStyle_put_zIndex,
1854 HTMLStyle_get_zIndex,
1855 HTMLStyle_put_overflow,
1856 HTMLStyle_get_overflow,
1857 HTMLStyle_put_pageBreakBefore,
1858 HTMLStyle_get_pageBreakBefore,
1859 HTMLStyle_put_pageBreakAfter,
1860 HTMLStyle_get_pageBreakAfter,
1861 HTMLStyle_put_cssText,
1862 HTMLStyle_get_cssText,
1863 HTMLStyle_put_pixelTop,
1864 HTMLStyle_get_pixelTop,
1865 HTMLStyle_put_pixelLeft,
1866 HTMLStyle_get_pixelLeft,
1867 HTMLStyle_put_pixelWidth,
1868 HTMLStyle_get_pixelWidth,
1869 HTMLStyle_put_pixelHeight,
1870 HTMLStyle_get_pixelHeight,
1871 HTMLStyle_put_posTop,
1872 HTMLStyle_get_posTop,
1873 HTMLStyle_put_posLeft,
1874 HTMLStyle_get_posLeft,
1875 HTMLStyle_put_posWidth,
1876 HTMLStyle_get_posWidth,
1877 HTMLStyle_put_posHeight,
1878 HTMLStyle_get_posHeight,
1879 HTMLStyle_put_cursor,
1880 HTMLStyle_get_cursor,
1883 HTMLStyle_put_filter,
1884 HTMLStyle_get_filter,
1885 HTMLStyle_setAttribute,
1886 HTMLStyle_getAttribute,
1887 HTMLStyle_removeAttribute,
1891 static const tid_t HTMLStyle_iface_tids[] = {
1896 static dispex_static_data_t HTMLStyle_dispex = {
1900 HTMLStyle_iface_tids
1903 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1905 HTMLStyle *ret = heap_alloc_zero(sizeof(HTMLStyle));
1907 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1909 ret->nsstyle = nsstyle;
1910 HTMLStyle2_Init(ret);
1912 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1914 init_dispex(&ret->dispex, (IUnknown*)HTMLSTYLE(ret), &HTMLStyle_dispex);
1916 return HTMLSTYLE(ret);