2 * Copyright 2006 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
28 #include "wine/debug.h"
29 #include "wine/unicode.h"
31 #include "mshtml_private.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
37 const IHTMLStyleVtbl *lpHTMLStyleVtbl;
41 nsIDOMCSSStyleDeclaration *nsstyle;
44 #define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl)
46 static const WCHAR attrBackgroundColor[] =
47 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
48 static const WCHAR attrBackgroundImage[] =
49 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
50 static const WCHAR attrBorderLeft[] =
51 {'b','o','r','d','e','r','-','l','e','f','t',0};
52 static const WCHAR attrColor[] =
53 {'c','o','l','o','r',0};
54 static const WCHAR attrDisplay[] =
55 {'d','i','s','p','l','a','y',0};
56 static const WCHAR attrFontFamily[] =
57 {'f','o','n','t','-','f','a','m','i','l','y',0};
58 static const WCHAR attrFontSize[] =
59 {'f','o','n','t','-','s','i','z','e',0};
60 static const WCHAR attrFontStyle[] =
61 {'f','o','n','t','-','s','t','y','l','e',0};
62 static const WCHAR attrFontWeight[] =
63 {'f','o','n','t','-','w','e','i','g','h','t',0};
64 static const WCHAR attrMarginLeft[] =
65 {'m','a','r','g','i','n','-','l','e','f','t',0};
66 static const WCHAR attrMarginRight[] =
67 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
68 static const WCHAR attrPaddingLeft[] =
69 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
70 static const WCHAR attrTextDecoration[] =
71 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
72 static const WCHAR attrVisibility[] =
73 {'v','i','s','i','b','i','l','i','t','y',0};
75 static const WCHAR valLineThrough[] =
76 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
77 static const WCHAR valUnderline[] =
78 {'u','n','d','e','r','l','i','n','e',0};
80 static const WCHAR px_formatW[] = {'%','d','p','x',0};
81 static const WCHAR emptyW[] = {0};
83 static LPWSTR fix_px_value(LPCWSTR val)
88 while(*ptr && isspaceW(*ptr))
93 while(*ptr && isdigitW(*ptr))
96 if(!*ptr || isspaceW(*ptr)) {
98 int len = strlenW(val)+1;
100 ret = heap_alloc((len+2)*sizeof(WCHAR));
101 memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
107 TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
112 while(*ptr && !isspaceW(*ptr))
119 #define ATTR_FIX_PX 1
121 static HRESULT set_style_attr(HTMLStyle *This, LPCWSTR name, LPCWSTR value, DWORD flags)
123 nsAString str_name, str_value, str_empty;
127 static const PRUnichar wszEmpty[] = {0};
129 TRACE("(%p)->(%s %s)\n", This, debugstr_w(name), debugstr_w(value));
131 if(flags & ATTR_FIX_PX)
132 val = fix_px_value(value);
134 nsAString_Init(&str_name, name);
135 nsAString_Init(&str_value, val ? val : value);
136 nsAString_Init(&str_empty, wszEmpty);
139 nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
141 ERR("SetProperty failed: %08x\n", nsres);
143 nsAString_Finish(&str_name);
144 nsAString_Finish(&str_value);
145 nsAString_Finish(&str_empty);
150 static HRESULT get_style_attr_nsval(HTMLStyle *This, LPCWSTR name, nsAString *value)
155 nsAString_Init(&str_name, name);
157 nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &str_name, value);
158 if(NS_FAILED(nsres)) {
159 ERR("SetProperty failed: %08x\n", nsres);
163 nsAString_Finish(&str_name);
168 static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
171 const PRUnichar *value;
173 nsAString_Init(&str_value, NULL);
175 get_style_attr_nsval(This, name, &str_value);
177 nsAString_GetData(&str_value, &value);
178 *p = *value ? SysAllocString(value) : NULL;
180 nsAString_Finish(&str_value);
182 TRACE("%s -> %s\n", debugstr_w(name), debugstr_w(*p));
186 static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exval, VARIANT_BOOL *p)
189 const PRUnichar *value;
191 nsAString_Init(&str_value, NULL);
193 get_style_attr_nsval(This, name, &str_value);
195 nsAString_GetData(&str_value, &value);
196 *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
197 nsAString_Finish(&str_value);
199 TRACE("%s -> %x\n", debugstr_w(name), *p);
203 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
205 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
207 HTMLStyle *This = HTMLSTYLE_THIS(iface);
211 if(IsEqualGUID(&IID_IUnknown, riid)) {
212 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
213 *ppv = HTMLSTYLE(This);
214 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
215 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
216 *ppv = HTMLSTYLE(This);
217 }else if(IsEqualGUID(&IID_IDispatchEx, riid)) {
218 TRACE("(%p)->(IID_IDispatchEx %p)\n", This, ppv);
219 *ppv = DISPATCHEX(&This->dispex);
220 }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
221 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
222 *ppv = HTMLSTYLE(This);
226 IUnknown_AddRef((IUnknown*)*ppv);
230 WARN("unsupported %s\n", debugstr_guid(riid));
231 return E_NOINTERFACE;
234 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
236 HTMLStyle *This = HTMLSTYLE_THIS(iface);
237 LONG ref = InterlockedIncrement(&This->ref);
239 TRACE("(%p) ref=%d\n", This, ref);
244 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
246 HTMLStyle *This = HTMLSTYLE_THIS(iface);
247 LONG ref = InterlockedDecrement(&This->ref);
249 TRACE("(%p) ref=%d\n", This, ref);
257 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
259 HTMLStyle *This = HTMLSTYLE_THIS(iface);
260 FIXME("(%p)->(%p)\n", This, pctinfo);
264 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
265 LCID lcid, ITypeInfo **ppTInfo)
267 HTMLStyle *This = HTMLSTYLE_THIS(iface);
268 FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
272 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
273 LPOLESTR *rgszNames, UINT cNames,
274 LCID lcid, DISPID *rgDispId)
276 HTMLStyle *This = HTMLSTYLE_THIS(iface);
277 FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
282 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
283 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
284 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
286 HTMLStyle *This = HTMLSTYLE_THIS(iface);
287 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
288 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
292 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
294 HTMLStyle *This = HTMLSTYLE_THIS(iface);
296 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
298 return set_style_attr(This, attrFontFamily, v, 0);
301 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
303 HTMLStyle *This = HTMLSTYLE_THIS(iface);
305 TRACE("(%p)->(%p)\n", This, p);
307 return get_style_attr(This, attrFontFamily, p);
310 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
312 HTMLStyle *This = HTMLSTYLE_THIS(iface);
313 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
317 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
319 HTMLStyle *This = HTMLSTYLE_THIS(iface);
321 TRACE("(%p)->(%p)\n", This, p);
323 return get_style_attr(This, attrFontStyle, p);
326 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
328 HTMLStyle *This = HTMLSTYLE_THIS(iface);
329 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
333 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
335 HTMLStyle *This = HTMLSTYLE_THIS(iface);
336 FIXME("(%p)->(%p)\n", This, p);
340 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
342 HTMLStyle *This = HTMLSTYLE_THIS(iface);
343 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
347 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
349 HTMLStyle *This = HTMLSTYLE_THIS(iface);
351 TRACE("(%p)->(%p)\n", This, p);
353 return get_style_attr(This, attrFontWeight, p);
356 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
358 HTMLStyle *This = HTMLSTYLE_THIS(iface);
360 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
364 return set_style_attr(This, attrFontSize, V_BSTR(&v), 0);
366 FIXME("not supported vt %d\n", V_VT(&v));
372 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
374 HTMLStyle *This = HTMLSTYLE_THIS(iface);
376 TRACE("(%p)->(%p)\n", This, p);
379 return get_style_attr(This, attrFontSize, &V_BSTR(p));
382 static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
384 HTMLStyle *This = HTMLSTYLE_THIS(iface);
385 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
389 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
391 HTMLStyle *This = HTMLSTYLE_THIS(iface);
392 FIXME("(%p)->(%p)\n", This, p);
396 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
398 HTMLStyle *This = HTMLSTYLE_THIS(iface);
399 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
403 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
405 HTMLStyle *This = HTMLSTYLE_THIS(iface);
407 TRACE("(%p)->(%p)\n", This, p);
410 return get_style_attr(This, attrColor, &V_BSTR(p));
413 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
415 HTMLStyle *This = HTMLSTYLE_THIS(iface);
416 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
420 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
422 HTMLStyle *This = HTMLSTYLE_THIS(iface);
423 FIXME("(%p)->(%p)\n", This, p);
427 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
429 HTMLStyle *This = HTMLSTYLE_THIS(iface);
431 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
435 return set_style_attr(This, attrBackgroundColor, V_BSTR(&v), 0);
438 static const WCHAR format[] = {'#','%','0','6','x',0};
440 wsprintfW(value, format, V_I4(&v));
441 return set_style_attr(This, attrBackgroundColor, value, 0);
444 FIXME("unsupported vt %d\n", V_VT(&v));
450 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
452 HTMLStyle *This = HTMLSTYLE_THIS(iface);
453 FIXME("(%p)->(%p)\n", This, p);
457 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
459 HTMLStyle *This = HTMLSTYLE_THIS(iface);
461 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
463 return set_style_attr(This, attrBackgroundImage, v, 0);
466 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
468 HTMLStyle *This = HTMLSTYLE_THIS(iface);
469 FIXME("(%p)->(%p)\n", This, p);
473 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
475 HTMLStyle *This = HTMLSTYLE_THIS(iface);
476 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
480 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
482 HTMLStyle *This = HTMLSTYLE_THIS(iface);
483 FIXME("(%p)->(%p)\n", This, p);
487 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
489 HTMLStyle *This = HTMLSTYLE_THIS(iface);
490 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
494 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
496 HTMLStyle *This = HTMLSTYLE_THIS(iface);
497 FIXME("(%p)->(%p)\n", This, p);
501 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
503 HTMLStyle *This = HTMLSTYLE_THIS(iface);
504 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
508 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
510 HTMLStyle *This = HTMLSTYLE_THIS(iface);
511 FIXME("(%p)->(%p)\n", This, p);
515 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
517 HTMLStyle *This = HTMLSTYLE_THIS(iface);
518 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
522 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
524 HTMLStyle *This = HTMLSTYLE_THIS(iface);
525 FIXME("(%p)->(%p)\n", This, p);
529 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
531 HTMLStyle *This = HTMLSTYLE_THIS(iface);
532 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
536 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
538 HTMLStyle *This = HTMLSTYLE_THIS(iface);
539 FIXME("(%p)->(%p)\n", This, p);
543 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
545 HTMLStyle *This = HTMLSTYLE_THIS(iface);
546 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
550 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
552 HTMLStyle *This = HTMLSTYLE_THIS(iface);
553 FIXME("(%p)->(%p)\n", This, p);
557 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
559 HTMLStyle *This = HTMLSTYLE_THIS(iface);
560 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
564 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
566 HTMLStyle *This = HTMLSTYLE_THIS(iface);
567 FIXME("(%p)->(%p)\n", This, p);
571 static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
573 HTMLStyle *This = HTMLSTYLE_THIS(iface);
574 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
578 static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
580 HTMLStyle *This = HTMLSTYLE_THIS(iface);
582 TRACE("(%p)->(%p)\n", This, p);
584 return get_style_attr(This, attrTextDecoration, p);
587 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
589 HTMLStyle *This = HTMLSTYLE_THIS(iface);
590 FIXME("(%p)->(%x)\n", This, v);
594 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
596 HTMLStyle *This = HTMLSTYLE_THIS(iface);
597 FIXME("(%p)->(%p)\n", This, p);
601 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
603 HTMLStyle *This = HTMLSTYLE_THIS(iface);
604 FIXME("(%p)->(%x)\n", This, v);
608 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
610 HTMLStyle *This = HTMLSTYLE_THIS(iface);
612 TRACE("(%p)->(%p)\n", This, p);
614 return check_style_attr_value(This, attrTextDecoration, valUnderline, p);
617 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
619 HTMLStyle *This = HTMLSTYLE_THIS(iface);
620 FIXME("(%p)->(%x)\n", This, v);
624 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
626 HTMLStyle *This = HTMLSTYLE_THIS(iface);
627 FIXME("(%p)->(%p)\n", This, p);
631 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
633 HTMLStyle *This = HTMLSTYLE_THIS(iface);
634 FIXME("(%p)->(%x)\n", This, v);
638 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
640 HTMLStyle *This = HTMLSTYLE_THIS(iface);
642 TRACE("(%p)->(%p)\n", This, p);
644 return check_style_attr_value(This, attrTextDecoration, valLineThrough, p);
647 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
649 HTMLStyle *This = HTMLSTYLE_THIS(iface);
650 FIXME("(%p)->(%x)\n", This, v);
654 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
656 HTMLStyle *This = HTMLSTYLE_THIS(iface);
657 FIXME("(%p)->(%p)\n", This, p);
661 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
663 HTMLStyle *This = HTMLSTYLE_THIS(iface);
664 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
668 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
670 HTMLStyle *This = HTMLSTYLE_THIS(iface);
671 FIXME("(%p)->(%p)\n", This, p);
675 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
677 HTMLStyle *This = HTMLSTYLE_THIS(iface);
678 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
682 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
684 HTMLStyle *This = HTMLSTYLE_THIS(iface);
685 FIXME("(%p)->(%p)\n", This, p);
689 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
691 HTMLStyle *This = HTMLSTYLE_THIS(iface);
692 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
696 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
698 HTMLStyle *This = HTMLSTYLE_THIS(iface);
699 FIXME("(%p)->(%p)\n", This, p);
703 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
705 HTMLStyle *This = HTMLSTYLE_THIS(iface);
706 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
710 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
712 HTMLStyle *This = HTMLSTYLE_THIS(iface);
713 FIXME("(%p)->(%p)\n", This, p);
717 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
719 HTMLStyle *This = HTMLSTYLE_THIS(iface);
720 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
724 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
726 HTMLStyle *This = HTMLSTYLE_THIS(iface);
727 FIXME("(%p)->(%p)\n", This, p);
731 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
733 HTMLStyle *This = HTMLSTYLE_THIS(iface);
734 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
738 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
740 HTMLStyle *This = HTMLSTYLE_THIS(iface);
741 FIXME("(%p)->(%p)\n", This, p);
745 static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
747 HTMLStyle *This = HTMLSTYLE_THIS(iface);
749 TRACE("(%p)->(v(%d))\n", This, V_VT(&v));
753 return set_style_attr(This, attrMarginRight, emptyW, 0);
757 wsprintfW(buf, px_formatW, V_I4(&v));
758 return set_style_attr(This, attrMarginRight, buf, 0);
761 return set_style_attr(This, attrMarginRight, V_BSTR(&v), 0);
763 FIXME("Unsupported vt=%d\n", V_VT(&v));
769 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
771 HTMLStyle *This = HTMLSTYLE_THIS(iface);
772 FIXME("(%p)->(%p)\n", This, p);
776 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
778 HTMLStyle *This = HTMLSTYLE_THIS(iface);
779 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
783 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
785 HTMLStyle *This = HTMLSTYLE_THIS(iface);
786 FIXME("(%p)->(%p)\n", This, p);
790 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
792 HTMLStyle *This = HTMLSTYLE_THIS(iface);
796 TRACE("(%p)->(NULL)\n", This);
797 return set_style_attr(This, attrMarginLeft, emptyW, 0);
801 TRACE("(%p)->(%d)\n", This, V_I4(&v));
803 wsprintfW(buf, px_formatW, V_I4(&v));
804 return set_style_attr(This, attrMarginLeft, buf, 0);
807 TRACE("(%p)->(%s)\n", This, debugstr_w(V_BSTR(&v)));
808 return set_style_attr(This, attrMarginLeft, V_BSTR(&v), 0);
810 FIXME("Unsupported vt=%d\n", V_VT(&v));
816 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
818 HTMLStyle *This = HTMLSTYLE_THIS(iface);
819 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
823 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
825 HTMLStyle *This = HTMLSTYLE_THIS(iface);
826 FIXME("(%p)->(%p)\n", This, p);
830 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
832 HTMLStyle *This = HTMLSTYLE_THIS(iface);
833 FIXME("(%p)->(%p)\n", This, p);
837 static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
839 HTMLStyle *This = HTMLSTYLE_THIS(iface);
840 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
844 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
846 HTMLStyle *This = HTMLSTYLE_THIS(iface);
847 FIXME("(%p)->(%p)\n", This, p);
851 static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
853 HTMLStyle *This = HTMLSTYLE_THIS(iface);
854 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
858 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
860 HTMLStyle *This = HTMLSTYLE_THIS(iface);
861 FIXME("(%p)->(%p)\n", This, p);
865 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
867 HTMLStyle *This = HTMLSTYLE_THIS(iface);
868 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
872 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
874 HTMLStyle *This = HTMLSTYLE_THIS(iface);
875 FIXME("(%p)->(%p)\n", This, p);
879 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
881 HTMLStyle *This = HTMLSTYLE_THIS(iface);
883 TRACE("(%p)->(vt=%d)\n", This, V_VT(&v));
889 wsprintfW(buf, px_formatW, V_I4(&v));
890 return set_style_attr(This, attrPaddingLeft, buf, 0);
893 return set_style_attr(This, attrPaddingLeft, V_BSTR(&v), 0);
895 FIXME("unsupported vt=%d\n", V_VT(&v));
901 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
903 HTMLStyle *This = HTMLSTYLE_THIS(iface);
904 FIXME("(%p)->(%p)\n", This, p);
908 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
910 HTMLStyle *This = HTMLSTYLE_THIS(iface);
911 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
915 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
917 HTMLStyle *This = HTMLSTYLE_THIS(iface);
918 FIXME("(%p)->(%p)\n", This, p);
922 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
924 HTMLStyle *This = HTMLSTYLE_THIS(iface);
925 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
929 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
931 HTMLStyle *This = HTMLSTYLE_THIS(iface);
932 FIXME("(%p)->(%p)\n", This, p);
936 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
938 HTMLStyle *This = HTMLSTYLE_THIS(iface);
939 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
943 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
945 HTMLStyle *This = HTMLSTYLE_THIS(iface);
946 FIXME("(%p)->(%p)\n", This, p);
950 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
952 HTMLStyle *This = HTMLSTYLE_THIS(iface);
953 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
957 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
959 HTMLStyle *This = HTMLSTYLE_THIS(iface);
960 FIXME("(%p)->(%p)\n", This, p);
964 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
966 HTMLStyle *This = HTMLSTYLE_THIS(iface);
967 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
971 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
973 HTMLStyle *This = HTMLSTYLE_THIS(iface);
974 FIXME("(%p)->(%p)\n", This, p);
978 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
980 HTMLStyle *This = HTMLSTYLE_THIS(iface);
982 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
984 return set_style_attr(This, attrBorderLeft, v, ATTR_FIX_PX);
987 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
989 HTMLStyle *This = HTMLSTYLE_THIS(iface);
990 FIXME("(%p)->(%p)\n", This, p);
994 static HRESULT WINAPI HTMLStyle_put_borderColor(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_borderColor(IHTMLStyle *iface, BSTR *p)
1003 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1004 FIXME("(%p)->(%p)\n", This, p);
1008 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
1010 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1011 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1015 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
1017 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1018 FIXME("(%p)->(%p)\n", This, p);
1022 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
1024 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1025 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1029 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
1031 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1032 FIXME("(%p)->(%p)\n", This, p);
1036 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
1038 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1039 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1043 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
1045 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1046 FIXME("(%p)->(%p)\n", This, p);
1050 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
1052 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1053 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1057 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
1059 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1060 FIXME("(%p)->(%p)\n", This, p);
1064 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
1066 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1067 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1071 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
1073 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1074 FIXME("(%p)->(%p)\n", This, p);
1078 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
1080 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1081 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1085 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
1087 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1088 FIXME("(%p)->(%p)\n", This, p);
1092 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
1094 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1095 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1099 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
1101 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1102 FIXME("(%p)->(%p)\n", This, p);
1106 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
1108 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1109 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1113 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1115 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1116 FIXME("(%p)->(%p)\n", This, p);
1120 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1122 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1123 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1127 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1129 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1130 FIXME("(%p)->(%p)\n", This, p);
1134 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1136 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1137 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1141 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1143 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1144 FIXME("(%p)->(%p)\n", This, p);
1148 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1150 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1151 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1155 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1157 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1158 FIXME("(%p)->(%p)\n", This, p);
1162 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1164 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1165 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1169 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1171 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1172 FIXME("(%p)->(%p)\n", This, p);
1176 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1178 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1179 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1183 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1185 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1186 FIXME("(%p)->(%p)\n", This, p);
1190 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1192 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1193 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1197 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1199 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1200 FIXME("(%p)->(%p)\n", This, p);
1204 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1206 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1207 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1211 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1213 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1214 FIXME("(%p)->(%p)\n", This, p);
1218 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1220 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1221 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1225 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1227 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1228 FIXME("(%p)->(%p)\n", This, p);
1232 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1234 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1235 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1239 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1241 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1242 FIXME("(%p)->(%p)\n", This, p);
1246 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1248 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1249 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1253 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1255 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1256 FIXME("(%p)->(%p)\n", This, p);
1260 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1262 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1264 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1266 return set_style_attr(This, attrDisplay, v, 0);
1269 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1271 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1273 TRACE("(%p)->(%p)\n", This, p);
1275 return get_style_attr(This, attrDisplay, p);
1278 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1280 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1282 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1284 return set_style_attr(This, attrVisibility, v, 0);
1287 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1289 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1291 TRACE("(%p)->(%p)\n", This, p);
1293 return get_style_attr(This, attrVisibility, p);
1296 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1298 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1299 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1303 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1305 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1306 FIXME("(%p)->(%p)\n", This, p);
1310 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1312 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1313 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1317 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1319 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1320 FIXME("(%p)->(%p)\n", This, p);
1324 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1326 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1327 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1331 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1333 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1334 FIXME("(%p)->(%p)\n", This, p);
1338 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1340 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1341 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1345 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1347 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1348 FIXME("(%p)->(%p)\n", This, p);
1352 static HRESULT WINAPI HTMLStyle_put_whiteSpace(IHTMLStyle *iface, BSTR v)
1354 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1355 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1359 static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
1361 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1362 FIXME("(%p)->(%p)\n", This, p);
1366 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1368 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1369 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1373 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1375 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1376 FIXME("(%p)->(%p)\n", This, p);
1380 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1382 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1383 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1387 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1389 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1390 FIXME("(%p)->(%p)\n", This, p);
1394 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1396 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1397 FIXME("(%p)->(%p)\n", This, p);
1401 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1403 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1404 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1408 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1410 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1411 FIXME("(%p)->(%p)\n", This, p);
1415 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1417 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1418 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1422 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1424 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1425 FIXME("(%p)->(%p)\n", This, p);
1429 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1431 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1432 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1436 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1438 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1439 FIXME("(%p)->(%p)\n", This, p);
1443 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1445 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1446 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1450 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1452 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1453 FIXME("(%p)->(%p)\n", This, p);
1457 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1459 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1460 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1464 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1466 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1467 FIXME("(%p)->(%p)\n", This, p);
1471 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1473 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1474 FIXME("(%p)->()\n", This);
1478 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1480 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1481 FIXME("(%p)->()\n", This);
1485 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1487 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1488 FIXME("(%p)->()\n", This);
1492 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1494 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1495 FIXME("(%p)->()\n", This);
1499 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1501 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1502 FIXME("(%p)->()\n", This);
1506 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1508 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1509 FIXME("(%p)->()\n", This);
1513 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1515 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1516 FIXME("(%p)->()\n", This);
1520 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1522 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1523 FIXME("(%p)->()\n", This);
1527 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1529 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1530 FIXME("(%p)->()\n", This);
1534 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1536 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1537 FIXME("(%p)->()\n", This);
1541 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1543 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1544 FIXME("(%p)->()\n", This);
1548 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1550 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1551 FIXME("(%p)->()\n", This);
1555 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1557 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1558 FIXME("(%p)->()\n", This);
1562 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1564 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1565 FIXME("(%p)->()\n", This);
1569 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1571 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1572 FIXME("(%p)->()\n", This);
1576 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1578 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1579 FIXME("(%p)->()\n", This);
1583 static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
1585 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1586 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1590 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1592 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1593 FIXME("(%p)->(%p)\n", This, p);
1597 static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
1599 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1600 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1604 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1606 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1607 FIXME("(%p)->(%p)\n", This, p);
1611 static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
1613 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1614 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1618 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1620 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1621 FIXME("(%p)->(%p)\n", This, p);
1625 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1626 VARIANT AttributeValue, LONG lFlags)
1628 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1629 FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1630 V_VT(&AttributeValue), lFlags);
1634 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1635 LONG lFlags, VARIANT *AttributeValue)
1637 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1638 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1639 lFlags, AttributeValue);
1643 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1644 LONG lFlags, VARIANT_BOOL *pfSuccess)
1646 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1647 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1652 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1654 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1655 FIXME("(%p)->(%p)\n", This, String);
1659 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1660 HTMLStyle_QueryInterface,
1663 HTMLStyle_GetTypeInfoCount,
1664 HTMLStyle_GetTypeInfo,
1665 HTMLStyle_GetIDsOfNames,
1667 HTMLStyle_put_fontFamily,
1668 HTMLStyle_get_fontFamily,
1669 HTMLStyle_put_fontStyle,
1670 HTMLStyle_get_fontStyle,
1671 HTMLStyle_put_fontVariant,
1672 HTMLStyle_get_fontVariant,
1673 HTMLStyle_put_fontWeight,
1674 HTMLStyle_get_fontWeight,
1675 HTMLStyle_put_fontSize,
1676 HTMLStyle_get_fontSize,
1679 HTMLStyle_put_color,
1680 HTMLStyle_get_color,
1681 HTMLStyle_put_background,
1682 HTMLStyle_get_background,
1683 HTMLStyle_put_backgroundColor,
1684 HTMLStyle_get_backgroundColor,
1685 HTMLStyle_put_backgroundImage,
1686 HTMLStyle_get_backgroundImage,
1687 HTMLStyle_put_backgroundRepeat,
1688 HTMLStyle_get_backgroundRepeat,
1689 HTMLStyle_put_backgroundAttachment,
1690 HTMLStyle_get_backgroundAttachment,
1691 HTMLStyle_put_backgroundPosition,
1692 HTMLStyle_get_backgroundPosition,
1693 HTMLStyle_put_backgroundPositionX,
1694 HTMLStyle_get_backgroundPositionX,
1695 HTMLStyle_put_backgroundPositionY,
1696 HTMLStyle_get_backgroundPositionY,
1697 HTMLStyle_put_wordSpacing,
1698 HTMLStyle_get_wordSpacing,
1699 HTMLStyle_put_letterSpacing,
1700 HTMLStyle_get_letterSpacing,
1701 HTMLStyle_put_textDecoration,
1702 HTMLStyle_get_textDecoration,
1703 HTMLStyle_put_textDecorationNone,
1704 HTMLStyle_get_textDecorationNone,
1705 HTMLStyle_put_textDecorationUnderline,
1706 HTMLStyle_get_textDecorationUnderline,
1707 HTMLStyle_put_textDecorationOverline,
1708 HTMLStyle_get_textDecorationOverline,
1709 HTMLStyle_put_textDecorationLineThrough,
1710 HTMLStyle_get_textDecorationLineThrough,
1711 HTMLStyle_put_textDecorationBlink,
1712 HTMLStyle_get_textDecorationBlink,
1713 HTMLStyle_put_verticalAlign,
1714 HTMLStyle_get_verticalAlign,
1715 HTMLStyle_put_textTransform,
1716 HTMLStyle_get_textTransform,
1717 HTMLStyle_put_textAlign,
1718 HTMLStyle_get_textAlign,
1719 HTMLStyle_put_textIndent,
1720 HTMLStyle_get_textIndent,
1721 HTMLStyle_put_lineHeight,
1722 HTMLStyle_get_lineHeight,
1723 HTMLStyle_put_marginTop,
1724 HTMLStyle_get_marginTop,
1725 HTMLStyle_put_marginRight,
1726 HTMLStyle_get_marginRight,
1727 HTMLStyle_put_marginBottom,
1728 HTMLStyle_get_marginBottom,
1729 HTMLStyle_put_marginLeft,
1730 HTMLStyle_get_marginLeft,
1731 HTMLStyle_put_margin,
1732 HTMLStyle_get_margin,
1733 HTMLStyle_put_paddingTop,
1734 HTMLStyle_get_paddingTop,
1735 HTMLStyle_put_paddingRight,
1736 HTMLStyle_get_paddingRight,
1737 HTMLStyle_put_paddingBottom,
1738 HTMLStyle_get_paddingBottom,
1739 HTMLStyle_put_paddingLeft,
1740 HTMLStyle_get_paddingLeft,
1741 HTMLStyle_put_padding,
1742 HTMLStyle_get_padding,
1743 HTMLStyle_put_border,
1744 HTMLStyle_get_border,
1745 HTMLStyle_put_borderTop,
1746 HTMLStyle_get_borderTop,
1747 HTMLStyle_put_borderRight,
1748 HTMLStyle_get_borderRight,
1749 HTMLStyle_put_borderBottom,
1750 HTMLStyle_get_borderBottom,
1751 HTMLStyle_put_borderLeft,
1752 HTMLStyle_get_borderLeft,
1753 HTMLStyle_put_borderColor,
1754 HTMLStyle_get_borderColor,
1755 HTMLStyle_put_borderTopColor,
1756 HTMLStyle_get_borderTopColor,
1757 HTMLStyle_put_borderRightColor,
1758 HTMLStyle_get_borderRightColor,
1759 HTMLStyle_put_borderBottomColor,
1760 HTMLStyle_get_borderBottomColor,
1761 HTMLStyle_put_borderLeftColor,
1762 HTMLStyle_get_borderLeftColor,
1763 HTMLStyle_put_borderWidth,
1764 HTMLStyle_get_borderWidth,
1765 HTMLStyle_put_borderTopWidth,
1766 HTMLStyle_get_borderTopWidth,
1767 HTMLStyle_put_borderRightWidth,
1768 HTMLStyle_get_borderRightWidth,
1769 HTMLStyle_put_borderBottomWidth,
1770 HTMLStyle_get_borderBottomWidth,
1771 HTMLStyle_put_borderLeftWidth,
1772 HTMLStyle_get_borderLeftWidth,
1773 HTMLStyle_put_borderStyle,
1774 HTMLStyle_get_borderStyle,
1775 HTMLStyle_put_borderTopStyle,
1776 HTMLStyle_get_borderTopStyle,
1777 HTMLStyle_put_borderRightStyle,
1778 HTMLStyle_get_borderRightStyle,
1779 HTMLStyle_put_borderBottomStyle,
1780 HTMLStyle_get_borderBottomStyle,
1781 HTMLStyle_put_borderLeftStyle,
1782 HTMLStyle_get_borderLeftStyle,
1783 HTMLStyle_put_width,
1784 HTMLStyle_get_width,
1785 HTMLStyle_put_height,
1786 HTMLStyle_get_height,
1787 HTMLStyle_put_styleFloat,
1788 HTMLStyle_get_styleFloat,
1789 HTMLStyle_put_clear,
1790 HTMLStyle_get_clear,
1791 HTMLStyle_put_display,
1792 HTMLStyle_get_display,
1793 HTMLStyle_put_visibility,
1794 HTMLStyle_get_visibility,
1795 HTMLStyle_put_listStyleType,
1796 HTMLStyle_get_listStyleType,
1797 HTMLStyle_put_listStylePosition,
1798 HTMLStyle_get_listStylePosition,
1799 HTMLStyle_put_listStyleImage,
1800 HTMLStyle_get_listStyleImage,
1801 HTMLStyle_put_listStyle,
1802 HTMLStyle_get_listStyle,
1803 HTMLStyle_put_whiteSpace,
1804 HTMLStyle_get_whiteSpace,
1809 HTMLStyle_get_position,
1810 HTMLStyle_put_zIndex,
1811 HTMLStyle_get_zIndex,
1812 HTMLStyle_put_overflow,
1813 HTMLStyle_get_overflow,
1814 HTMLStyle_put_pageBreakBefore,
1815 HTMLStyle_get_pageBreakBefore,
1816 HTMLStyle_put_pageBreakAfter,
1817 HTMLStyle_get_pageBreakAfter,
1818 HTMLStyle_put_cssText,
1819 HTMLStyle_get_cssText,
1820 HTMLStyle_put_pixelTop,
1821 HTMLStyle_get_pixelTop,
1822 HTMLStyle_put_pixelLeft,
1823 HTMLStyle_get_pixelLeft,
1824 HTMLStyle_put_pixelWidth,
1825 HTMLStyle_get_pixelWidth,
1826 HTMLStyle_put_pixelHeight,
1827 HTMLStyle_get_pixelHeight,
1828 HTMLStyle_put_posTop,
1829 HTMLStyle_get_posTop,
1830 HTMLStyle_put_posLeft,
1831 HTMLStyle_get_posLeft,
1832 HTMLStyle_put_posWidth,
1833 HTMLStyle_get_posWidth,
1834 HTMLStyle_put_posHeight,
1835 HTMLStyle_get_posHeight,
1836 HTMLStyle_put_cursor,
1837 HTMLStyle_get_cursor,
1840 HTMLStyle_put_filter,
1841 HTMLStyle_get_filter,
1842 HTMLStyle_setAttribute,
1843 HTMLStyle_getAttribute,
1844 HTMLStyle_removeAttribute,
1848 static const tid_t HTMLStyle_iface_tids[] = {
1852 static dispex_static_data_t HTMLStyle_dispex = {
1856 HTMLStyle_iface_tids
1859 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1861 HTMLStyle *ret = heap_alloc(sizeof(HTMLStyle));
1863 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1865 ret->nsstyle = nsstyle;
1867 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1869 init_dispex(&ret->dispex, (IUnknown*)HTMLSTYLE(ret), &HTMLStyle_dispex);
1871 return HTMLSTYLE(ret);