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
32 #include "wine/debug.h"
33 #include "wine/unicode.h"
35 #include "mshtml_private.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
40 const IHTMLStyleVtbl *lpHTMLStyleVtbl;
44 nsIDOMCSSStyleDeclaration *nsstyle;
47 #define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl);
49 static const WCHAR attrBackgroundColor[] =
50 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
51 static const WCHAR attrColor[] =
52 {'c','o','l','o','r',0};
53 static const WCHAR attrDisplay[] =
54 {'d','i','s','p','l','a','y',0};
55 static const WCHAR attrFontFamily[] =
56 {'f','o','n','t','-','f','a','m','i','l','y',0};
57 static const WCHAR attrFontSize[] =
58 {'f','o','n','t','-','s','i','z','e',0};
59 static const WCHAR attrFontStyle[] =
60 {'f','o','n','t','-','s','t','y','l','e',0};
61 static const WCHAR attrFontWeight[] =
62 {'f','o','n','t','-','w','e','i','g','h','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};
68 static const WCHAR valLineThrough[] =
69 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
70 static const WCHAR valUnderline[] =
71 {'u','n','d','e','r','l','i','n','e',0};
73 static HRESULT set_style_attr(HTMLStyle *This, LPCWSTR name, LPCWSTR value)
75 nsAString str_name, str_value, str_empty;
78 static const PRUnichar wszEmpty[] = {0};
80 TRACE("(%p)->(%s %s)\n", This, debugstr_w(name), debugstr_w(value));
82 nsAString_Init(&str_name, name);
83 nsAString_Init(&str_value, value);
84 nsAString_Init(&str_empty, wszEmpty);
86 nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
88 ERR("SetProperty failed: %08x\n", nsres);
90 nsAString_Finish(&str_name);
91 nsAString_Finish(&str_value);
92 nsAString_Finish(&str_empty);
97 static HRESULT get_style_attr_nsval(HTMLStyle *This, LPCWSTR name, nsAString *value)
102 nsAString_Init(&str_name, name);
104 nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &str_name, value);
105 if(NS_FAILED(nsres)) {
106 ERR("SetProperty failed: %08x\n", nsres);
110 nsAString_Finish(&str_name);
115 static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
118 const PRUnichar *value;
120 nsAString_Init(&str_value, NULL);
122 get_style_attr_nsval(This, name, &str_value);
124 nsAString_GetData(&str_value, &value, NULL);
125 *p = *value ? SysAllocString(value) : NULL;
127 nsAString_Finish(&str_value);
129 TRACE("%s -> %s\n", debugstr_w(name), debugstr_w(*p));
133 static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exval, VARIANT_BOOL *p)
136 const PRUnichar *value;
138 nsAString_Init(&str_value, NULL);
140 get_style_attr_nsval(This, name, &str_value);
142 nsAString_GetData(&str_value, &value, NULL);
143 *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
144 nsAString_Finish(&str_value);
146 TRACE("%s -> %x\n", debugstr_w(name), *p);
150 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
152 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
154 HTMLStyle *This = HTMLSTYLE_THIS(iface);
158 if(IsEqualGUID(&IID_IUnknown, riid)) {
159 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
160 *ppv = HTMLSTYLE(This);
161 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
162 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
163 *ppv = HTMLSTYLE(This);
164 }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
165 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
166 *ppv = HTMLSTYLE(This);
170 IUnknown_AddRef((IUnknown*)*ppv);
174 WARN("unsupported %s\n", debugstr_guid(riid));
175 return E_NOINTERFACE;
178 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
180 HTMLStyle *This = HTMLSTYLE_THIS(iface);
181 LONG ref = InterlockedIncrement(&This->ref);
183 TRACE("(%p) ref=%d\n", This, ref);
188 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
190 HTMLStyle *This = HTMLSTYLE_THIS(iface);
191 LONG ref = InterlockedDecrement(&This->ref);
193 TRACE("(%p) ref=%d\n", This, ref);
201 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
203 HTMLStyle *This = HTMLSTYLE_THIS(iface);
204 FIXME("(%p)->(%p)\n", This, pctinfo);
208 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
209 LCID lcid, ITypeInfo **ppTInfo)
211 HTMLStyle *This = HTMLSTYLE_THIS(iface);
212 FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
216 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
217 LPOLESTR *rgszNames, UINT cNames,
218 LCID lcid, DISPID *rgDispId)
220 HTMLStyle *This = HTMLSTYLE_THIS(iface);
221 FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
226 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
227 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
228 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
230 HTMLStyle *This = HTMLSTYLE_THIS(iface);
231 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
232 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
236 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
238 HTMLStyle *This = HTMLSTYLE_THIS(iface);
240 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
242 return set_style_attr(This, attrFontFamily, v);
245 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
247 HTMLStyle *This = HTMLSTYLE_THIS(iface);
249 TRACE("(%p)->(%p)\n", This, p);
251 return get_style_attr(This, attrFontFamily, p);
254 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
256 HTMLStyle *This = HTMLSTYLE_THIS(iface);
257 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
261 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
263 HTMLStyle *This = HTMLSTYLE_THIS(iface);
265 TRACE("(%p)->(%p)\n", This, p);
267 return get_style_attr(This, attrFontStyle, p);
270 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
272 HTMLStyle *This = HTMLSTYLE_THIS(iface);
273 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
277 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
279 HTMLStyle *This = HTMLSTYLE_THIS(iface);
280 FIXME("(%p)->(%p)\n", This, p);
284 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
286 HTMLStyle *This = HTMLSTYLE_THIS(iface);
287 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
291 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
293 HTMLStyle *This = HTMLSTYLE_THIS(iface);
295 TRACE("(%p)->(%p)\n", This, p);
297 return get_style_attr(This, attrFontWeight, p);
300 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
302 HTMLStyle *This = HTMLSTYLE_THIS(iface);
304 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
308 return set_style_attr(This, attrFontSize, V_BSTR(&v));
310 FIXME("not supported vt %d\n", V_VT(&v));
316 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
318 HTMLStyle *This = HTMLSTYLE_THIS(iface);
320 TRACE("(%p)->(%p)\n", This, p);
323 return get_style_attr(This, attrFontSize, &V_BSTR(p));
326 static HRESULT WINAPI HTMLStyle_put_font(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_font(IHTMLStyle *iface, BSTR *p)
335 HTMLStyle *This = HTMLSTYLE_THIS(iface);
336 FIXME("(%p)->(%p)\n", This, p);
340 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
342 HTMLStyle *This = HTMLSTYLE_THIS(iface);
343 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
347 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
349 HTMLStyle *This = HTMLSTYLE_THIS(iface);
351 TRACE("(%p)->(%p)\n", This, p);
354 return get_style_attr(This, attrColor, &V_BSTR(p));
357 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
359 HTMLStyle *This = HTMLSTYLE_THIS(iface);
360 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
364 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
366 HTMLStyle *This = HTMLSTYLE_THIS(iface);
367 FIXME("(%p)->(%p)\n", This, p);
371 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
373 HTMLStyle *This = HTMLSTYLE_THIS(iface);
375 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
379 return set_style_attr(This, attrBackgroundColor, V_BSTR(&v));
382 static const WCHAR format[] = {'#','%','0','6','x',0};
384 wsprintfW(value, format, V_I4(&v));
385 return set_style_attr(This, attrBackgroundColor, value);
388 FIXME("unsupported vt %d\n", V_VT(&v));
394 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
396 HTMLStyle *This = HTMLSTYLE_THIS(iface);
397 FIXME("(%p)->(%p)\n", This, p);
401 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
403 HTMLStyle *This = HTMLSTYLE_THIS(iface);
404 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
408 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
410 HTMLStyle *This = HTMLSTYLE_THIS(iface);
411 FIXME("(%p)->(%p)\n", This, p);
415 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
417 HTMLStyle *This = HTMLSTYLE_THIS(iface);
418 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
422 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
424 HTMLStyle *This = HTMLSTYLE_THIS(iface);
425 FIXME("(%p)->(%p)\n", This, p);
429 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
431 HTMLStyle *This = HTMLSTYLE_THIS(iface);
432 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
436 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
438 HTMLStyle *This = HTMLSTYLE_THIS(iface);
439 FIXME("(%p)->(%p)\n", This, p);
443 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
445 HTMLStyle *This = HTMLSTYLE_THIS(iface);
446 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
450 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
452 HTMLStyle *This = HTMLSTYLE_THIS(iface);
453 FIXME("(%p)->(%p)\n", This, p);
457 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
459 HTMLStyle *This = HTMLSTYLE_THIS(iface);
460 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
464 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
466 HTMLStyle *This = HTMLSTYLE_THIS(iface);
467 FIXME("(%p)->(%p)\n", This, p);
471 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
473 HTMLStyle *This = HTMLSTYLE_THIS(iface);
474 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
478 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
480 HTMLStyle *This = HTMLSTYLE_THIS(iface);
481 FIXME("(%p)->(%p)\n", This, p);
485 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
487 HTMLStyle *This = HTMLSTYLE_THIS(iface);
488 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
492 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
494 HTMLStyle *This = HTMLSTYLE_THIS(iface);
495 FIXME("(%p)->(%p)\n", This, p);
499 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
501 HTMLStyle *This = HTMLSTYLE_THIS(iface);
502 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
506 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
508 HTMLStyle *This = HTMLSTYLE_THIS(iface);
509 FIXME("(%p)->(%p)\n", This, p);
513 static HRESULT WINAPI HTMLStyle_put_textDecoration(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_textDecoration(IHTMLStyle *iface, BSTR *p)
522 HTMLStyle *This = HTMLSTYLE_THIS(iface);
524 TRACE("(%p)->(%p)\n", This, p);
526 return get_style_attr(This, attrTextDecoration, p);
529 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
531 HTMLStyle *This = HTMLSTYLE_THIS(iface);
532 FIXME("(%p)->(%x)\n", This, v);
536 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
538 HTMLStyle *This = HTMLSTYLE_THIS(iface);
539 FIXME("(%p)->(%p)\n", This, p);
543 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
545 HTMLStyle *This = HTMLSTYLE_THIS(iface);
546 FIXME("(%p)->(%x)\n", This, v);
550 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
552 HTMLStyle *This = HTMLSTYLE_THIS(iface);
554 TRACE("(%p)->(%p)\n", This, p);
556 return check_style_attr_value(This, attrTextDecoration, valUnderline, p);
559 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
561 HTMLStyle *This = HTMLSTYLE_THIS(iface);
562 FIXME("(%p)->(%x)\n", This, v);
566 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
568 HTMLStyle *This = HTMLSTYLE_THIS(iface);
569 FIXME("(%p)->(%p)\n", This, p);
573 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
575 HTMLStyle *This = HTMLSTYLE_THIS(iface);
576 FIXME("(%p)->(%x)\n", This, v);
580 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
582 HTMLStyle *This = HTMLSTYLE_THIS(iface);
584 TRACE("(%p)->(%p)\n", This, p);
586 return check_style_attr_value(This, attrTextDecoration, valLineThrough, p);
589 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
591 HTMLStyle *This = HTMLSTYLE_THIS(iface);
592 FIXME("(%p)->(%x)\n", This, v);
596 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
598 HTMLStyle *This = HTMLSTYLE_THIS(iface);
599 FIXME("(%p)->(%p)\n", This, p);
603 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
605 HTMLStyle *This = HTMLSTYLE_THIS(iface);
606 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
610 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
612 HTMLStyle *This = HTMLSTYLE_THIS(iface);
613 FIXME("(%p)->(%p)\n", This, p);
617 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
619 HTMLStyle *This = HTMLSTYLE_THIS(iface);
620 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
624 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
626 HTMLStyle *This = HTMLSTYLE_THIS(iface);
627 FIXME("(%p)->(%p)\n", This, p);
631 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
633 HTMLStyle *This = HTMLSTYLE_THIS(iface);
634 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
638 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
640 HTMLStyle *This = HTMLSTYLE_THIS(iface);
641 FIXME("(%p)->(%p)\n", This, p);
645 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
647 HTMLStyle *This = HTMLSTYLE_THIS(iface);
648 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
652 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
654 HTMLStyle *This = HTMLSTYLE_THIS(iface);
655 FIXME("(%p)->(%p)\n", This, p);
659 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
661 HTMLStyle *This = HTMLSTYLE_THIS(iface);
662 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
666 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
668 HTMLStyle *This = HTMLSTYLE_THIS(iface);
669 FIXME("(%p)->(%p)\n", This, p);
673 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
675 HTMLStyle *This = HTMLSTYLE_THIS(iface);
676 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
680 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
682 HTMLStyle *This = HTMLSTYLE_THIS(iface);
683 FIXME("(%p)->(%p)\n", This, p);
687 static HRESULT WINAPI HTMLStyle_put_marginRight(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_marginRight(IHTMLStyle *iface, VARIANT *p)
696 HTMLStyle *This = HTMLSTYLE_THIS(iface);
697 FIXME("(%p)->(%p)\n", This, p);
701 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
703 HTMLStyle *This = HTMLSTYLE_THIS(iface);
704 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
708 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
710 HTMLStyle *This = HTMLSTYLE_THIS(iface);
711 FIXME("(%p)->(%p)\n", This, p);
715 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
717 HTMLStyle *This = HTMLSTYLE_THIS(iface);
718 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
722 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
724 HTMLStyle *This = HTMLSTYLE_THIS(iface);
725 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
729 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
731 HTMLStyle *This = HTMLSTYLE_THIS(iface);
732 FIXME("(%p)->(%p)\n", This, p);
736 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
738 HTMLStyle *This = HTMLSTYLE_THIS(iface);
739 FIXME("(%p)->(%p)\n", This, p);
743 static HRESULT WINAPI HTMLStyle_put_paddingTop(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_paddingTop(IHTMLStyle *iface, VARIANT *p)
752 HTMLStyle *This = HTMLSTYLE_THIS(iface);
753 FIXME("(%p)->(%p)\n", This, p);
757 static HRESULT WINAPI HTMLStyle_put_paddingRight(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_paddingRight(IHTMLStyle *iface, VARIANT *p)
766 HTMLStyle *This = HTMLSTYLE_THIS(iface);
767 FIXME("(%p)->(%p)\n", This, p);
771 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
773 HTMLStyle *This = HTMLSTYLE_THIS(iface);
774 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
778 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
780 HTMLStyle *This = HTMLSTYLE_THIS(iface);
781 FIXME("(%p)->(%p)\n", This, p);
785 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
787 HTMLStyle *This = HTMLSTYLE_THIS(iface);
788 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
792 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
794 HTMLStyle *This = HTMLSTYLE_THIS(iface);
795 FIXME("(%p)->(%p)\n", This, p);
799 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
801 HTMLStyle *This = HTMLSTYLE_THIS(iface);
802 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
806 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
808 HTMLStyle *This = HTMLSTYLE_THIS(iface);
809 FIXME("(%p)->(%p)\n", This, p);
813 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
815 HTMLStyle *This = HTMLSTYLE_THIS(iface);
816 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
820 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
822 HTMLStyle *This = HTMLSTYLE_THIS(iface);
823 FIXME("(%p)->(%p)\n", This, p);
827 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
829 HTMLStyle *This = HTMLSTYLE_THIS(iface);
830 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
834 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
836 HTMLStyle *This = HTMLSTYLE_THIS(iface);
837 FIXME("(%p)->(%p)\n", This, p);
841 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
843 HTMLStyle *This = HTMLSTYLE_THIS(iface);
844 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
848 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
850 HTMLStyle *This = HTMLSTYLE_THIS(iface);
851 FIXME("(%p)->(%p)\n", This, p);
855 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
857 HTMLStyle *This = HTMLSTYLE_THIS(iface);
858 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
862 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
864 HTMLStyle *This = HTMLSTYLE_THIS(iface);
865 FIXME("(%p)->(%p)\n", This, p);
869 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
871 HTMLStyle *This = HTMLSTYLE_THIS(iface);
872 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
876 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
878 HTMLStyle *This = HTMLSTYLE_THIS(iface);
879 FIXME("(%p)->(%p)\n", This, p);
883 static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
885 HTMLStyle *This = HTMLSTYLE_THIS(iface);
886 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
890 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
892 HTMLStyle *This = HTMLSTYLE_THIS(iface);
893 FIXME("(%p)->(%p)\n", This, p);
897 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
899 HTMLStyle *This = HTMLSTYLE_THIS(iface);
900 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
904 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
906 HTMLStyle *This = HTMLSTYLE_THIS(iface);
907 FIXME("(%p)->(%p)\n", This, p);
911 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
913 HTMLStyle *This = HTMLSTYLE_THIS(iface);
914 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
918 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
920 HTMLStyle *This = HTMLSTYLE_THIS(iface);
921 FIXME("(%p)->(%p)\n", This, p);
925 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
927 HTMLStyle *This = HTMLSTYLE_THIS(iface);
928 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
932 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
934 HTMLStyle *This = HTMLSTYLE_THIS(iface);
935 FIXME("(%p)->(%p)\n", This, p);
939 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
941 HTMLStyle *This = HTMLSTYLE_THIS(iface);
942 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
946 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
948 HTMLStyle *This = HTMLSTYLE_THIS(iface);
949 FIXME("(%p)->(%p)\n", This, p);
953 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
955 HTMLStyle *This = HTMLSTYLE_THIS(iface);
956 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
960 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
962 HTMLStyle *This = HTMLSTYLE_THIS(iface);
963 FIXME("(%p)->(%p)\n", This, p);
967 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
969 HTMLStyle *This = HTMLSTYLE_THIS(iface);
970 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
974 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
976 HTMLStyle *This = HTMLSTYLE_THIS(iface);
977 FIXME("(%p)->(%p)\n", This, p);
981 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
983 HTMLStyle *This = HTMLSTYLE_THIS(iface);
984 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
988 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
990 HTMLStyle *This = HTMLSTYLE_THIS(iface);
991 FIXME("(%p)->(%p)\n", This, p);
995 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
997 HTMLStyle *This = HTMLSTYLE_THIS(iface);
998 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1002 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1004 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1005 FIXME("(%p)->(%p)\n", This, p);
1009 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1011 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1012 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1016 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1018 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1019 FIXME("(%p)->(%p)\n", This, p);
1023 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1025 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1026 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1030 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1032 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1033 FIXME("(%p)->(%p)\n", This, p);
1037 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1039 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1040 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1044 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1046 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1047 FIXME("(%p)->(%p)\n", This, p);
1051 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1053 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1054 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1058 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1060 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1061 FIXME("(%p)->(%p)\n", This, p);
1065 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1067 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1068 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1072 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1074 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1075 FIXME("(%p)->(%p)\n", This, p);
1079 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1081 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1082 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1086 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1088 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1089 FIXME("(%p)->(%p)\n", This, p);
1093 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1095 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1096 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1100 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1102 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1103 FIXME("(%p)->(%p)\n", This, p);
1107 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1109 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1110 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1114 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1116 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1117 FIXME("(%p)->(%p)\n", This, p);
1121 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1123 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1124 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1128 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1130 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1131 FIXME("(%p)->(%p)\n", This, p);
1135 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1137 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1138 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1142 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1144 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1145 FIXME("(%p)->(%p)\n", This, p);
1149 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1151 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1153 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1155 return set_style_attr(This, attrDisplay, v);
1158 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1160 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1162 TRACE("(%p)->(%p)\n", This, p);
1164 return get_style_attr(This, attrDisplay, p);
1167 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1169 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1171 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1173 return set_style_attr(This, attrVisibility, v);
1176 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1178 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1180 TRACE("(%p)->(%p)\n", This, p);
1182 return get_style_attr(This, attrVisibility, p);
1185 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1187 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1188 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1192 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1194 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1195 FIXME("(%p)->(%p)\n", This, p);
1199 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1201 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1202 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1206 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1208 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1209 FIXME("(%p)->(%p)\n", This, p);
1213 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1215 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1216 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1220 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1222 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1223 FIXME("(%p)->(%p)\n", This, p);
1227 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1229 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1230 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1234 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1236 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1237 FIXME("(%p)->(%p)\n", This, p);
1241 static HRESULT WINAPI HTMLStyle_put_whiteSpace(IHTMLStyle *iface, BSTR v)
1243 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1244 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1248 static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
1250 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1251 FIXME("(%p)->(%p)\n", This, p);
1255 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1257 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1258 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1262 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1264 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1265 FIXME("(%p)->(%p)\n", This, p);
1269 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1271 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1272 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1276 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1278 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1279 FIXME("(%p)->(%p)\n", This, p);
1283 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1285 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1286 FIXME("(%p)->(%p)\n", This, p);
1290 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1292 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1293 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1297 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1299 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1300 FIXME("(%p)->(%p)\n", This, p);
1304 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1306 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1307 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1311 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1313 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1314 FIXME("(%p)->(%p)\n", This, p);
1318 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1320 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1321 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1325 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1327 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1328 FIXME("(%p)->(%p)\n", This, p);
1332 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1334 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1335 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1339 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1341 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1342 FIXME("(%p)->(%p)\n", This, p);
1346 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1348 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1349 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1353 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1355 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1356 FIXME("(%p)->(%p)\n", This, p);
1360 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1362 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1363 FIXME("(%p)->()\n", This);
1367 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1369 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1370 FIXME("(%p)->()\n", This);
1374 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1376 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1377 FIXME("(%p)->()\n", This);
1381 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1383 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1384 FIXME("(%p)->()\n", This);
1388 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1390 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1391 FIXME("(%p)->()\n", This);
1395 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1397 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1398 FIXME("(%p)->()\n", This);
1402 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1404 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1405 FIXME("(%p)->()\n", This);
1409 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1411 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1412 FIXME("(%p)->()\n", This);
1416 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1418 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1419 FIXME("(%p)->()\n", This);
1423 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1425 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1426 FIXME("(%p)->()\n", This);
1430 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1432 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1433 FIXME("(%p)->()\n", This);
1437 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1439 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1440 FIXME("(%p)->()\n", This);
1444 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1446 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1447 FIXME("(%p)->()\n", This);
1451 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1453 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1454 FIXME("(%p)->()\n", This);
1458 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1460 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1461 FIXME("(%p)->()\n", This);
1465 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1467 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1468 FIXME("(%p)->()\n", This);
1472 static HRESULT WINAPI HTMLStyle_put_cursor(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_cursor(IHTMLStyle *iface, BSTR *p)
1481 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1482 FIXME("(%p)->(%p)\n", This, p);
1486 static HRESULT WINAPI HTMLStyle_put_clip(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_clip(IHTMLStyle *iface, BSTR *p)
1495 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1496 FIXME("(%p)->(%p)\n", This, p);
1500 static HRESULT WINAPI HTMLStyle_put_filter(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_filter(IHTMLStyle *iface, BSTR *p)
1509 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1510 FIXME("(%p)->(%p)\n", This, p);
1514 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1515 VARIANT AttributeValue, LONG lFlags)
1517 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1518 FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1519 V_VT(&AttributeValue), lFlags);
1523 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1524 LONG lFlags, VARIANT *AttributeValue)
1526 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1527 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1528 lFlags, AttributeValue);
1532 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1533 LONG lFlags, VARIANT_BOOL *pfSuccess)
1535 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1536 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1541 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1543 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1544 FIXME("(%p)->(%p)\n", This, String);
1548 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1549 HTMLStyle_QueryInterface,
1552 HTMLStyle_GetTypeInfoCount,
1553 HTMLStyle_GetTypeInfo,
1554 HTMLStyle_GetIDsOfNames,
1556 HTMLStyle_put_fontFamily,
1557 HTMLStyle_get_fontFamily,
1558 HTMLStyle_put_fontStyle,
1559 HTMLStyle_get_fontStyle,
1560 HTMLStyle_put_fontVariant,
1561 HTMLStyle_get_fontVariant,
1562 HTMLStyle_put_fontWeight,
1563 HTMLStyle_get_fontWeight,
1564 HTMLStyle_put_fontSize,
1565 HTMLStyle_get_fontSize,
1568 HTMLStyle_put_color,
1569 HTMLStyle_get_color,
1570 HTMLStyle_put_background,
1571 HTMLStyle_get_background,
1572 HTMLStyle_put_backgroundColor,
1573 HTMLStyle_get_backgroundColor,
1574 HTMLStyle_put_backgroundImage,
1575 HTMLStyle_get_backgroundImage,
1576 HTMLStyle_put_backgroundRepeat,
1577 HTMLStyle_get_backgroundRepeat,
1578 HTMLStyle_put_backgroundAttachment,
1579 HTMLStyle_get_backgroundAttachment,
1580 HTMLStyle_put_backgroundPosition,
1581 HTMLStyle_get_backgroundPosition,
1582 HTMLStyle_put_backgroundPositionX,
1583 HTMLStyle_get_backgroundPositionX,
1584 HTMLStyle_put_backgroundPositionY,
1585 HTMLStyle_get_backgroundPositionY,
1586 HTMLStyle_put_wordSpacing,
1587 HTMLStyle_get_wordSpacing,
1588 HTMLStyle_put_letterSpacing,
1589 HTMLStyle_get_letterSpacing,
1590 HTMLStyle_put_textDecoration,
1591 HTMLStyle_get_textDecoration,
1592 HTMLStyle_put_textDecorationNone,
1593 HTMLStyle_get_textDecorationNone,
1594 HTMLStyle_put_textDecorationUnderline,
1595 HTMLStyle_get_textDecorationUnderline,
1596 HTMLStyle_put_textDecorationOverline,
1597 HTMLStyle_get_textDecorationOverline,
1598 HTMLStyle_put_textDecorationLineThrough,
1599 HTMLStyle_get_textDecorationLineThrough,
1600 HTMLStyle_put_textDecorationBlink,
1601 HTMLStyle_get_textDecorationBlink,
1602 HTMLStyle_put_verticalAlign,
1603 HTMLStyle_get_verticalAlign,
1604 HTMLStyle_put_textTransform,
1605 HTMLStyle_get_textTransform,
1606 HTMLStyle_put_textAlign,
1607 HTMLStyle_get_textAlign,
1608 HTMLStyle_put_textIndent,
1609 HTMLStyle_get_textIndent,
1610 HTMLStyle_put_lineHeight,
1611 HTMLStyle_get_lineHeight,
1612 HTMLStyle_put_marginTop,
1613 HTMLStyle_get_marginTop,
1614 HTMLStyle_put_marginRight,
1615 HTMLStyle_get_marginRight,
1616 HTMLStyle_put_marginBottom,
1617 HTMLStyle_get_marginBottom,
1618 HTMLStyle_put_marginLeft,
1619 HTMLStyle_get_marginLeft,
1620 HTMLStyle_put_margin,
1621 HTMLStyle_get_margin,
1622 HTMLStyle_put_paddingTop,
1623 HTMLStyle_get_paddingTop,
1624 HTMLStyle_put_paddingRight,
1625 HTMLStyle_get_paddingRight,
1626 HTMLStyle_put_paddingBottom,
1627 HTMLStyle_get_paddingBottom,
1628 HTMLStyle_put_paddingLeft,
1629 HTMLStyle_get_paddingLeft,
1630 HTMLStyle_put_padding,
1631 HTMLStyle_get_padding,
1632 HTMLStyle_put_border,
1633 HTMLStyle_get_border,
1634 HTMLStyle_put_borderTop,
1635 HTMLStyle_get_borderTop,
1636 HTMLStyle_put_borderRight,
1637 HTMLStyle_get_borderRight,
1638 HTMLStyle_put_borderBottom,
1639 HTMLStyle_get_borderBottom,
1640 HTMLStyle_put_borderLeft,
1641 HTMLStyle_get_borderLeft,
1642 HTMLStyle_put_borderColor,
1643 HTMLStyle_get_borderColor,
1644 HTMLStyle_put_borderTopColor,
1645 HTMLStyle_get_borderTopColor,
1646 HTMLStyle_put_borderRightColor,
1647 HTMLStyle_get_borderRightColor,
1648 HTMLStyle_put_borderBottomColor,
1649 HTMLStyle_get_borderBottomColor,
1650 HTMLStyle_put_borderLeftColor,
1651 HTMLStyle_get_borderLeftColor,
1652 HTMLStyle_put_borderWidth,
1653 HTMLStyle_get_borderWidth,
1654 HTMLStyle_put_borderTopWidth,
1655 HTMLStyle_get_borderTopWidth,
1656 HTMLStyle_put_borderRightWidth,
1657 HTMLStyle_get_borderRightWidth,
1658 HTMLStyle_put_borderBottomWidth,
1659 HTMLStyle_get_borderBottomWidth,
1660 HTMLStyle_put_borderLeftWidth,
1661 HTMLStyle_get_borderLeftWidth,
1662 HTMLStyle_put_borderStyle,
1663 HTMLStyle_get_borderStyle,
1664 HTMLStyle_put_borderTopStyle,
1665 HTMLStyle_get_borderTopStyle,
1666 HTMLStyle_put_borderRightStyle,
1667 HTMLStyle_get_borderRightStyle,
1668 HTMLStyle_put_borderBottomStyle,
1669 HTMLStyle_get_borderBottomStyle,
1670 HTMLStyle_put_borderLeftStyle,
1671 HTMLStyle_get_borderLeftStyle,
1672 HTMLStyle_put_width,
1673 HTMLStyle_get_width,
1674 HTMLStyle_put_height,
1675 HTMLStyle_get_height,
1676 HTMLStyle_put_styleFloat,
1677 HTMLStyle_get_styleFloat,
1678 HTMLStyle_put_clear,
1679 HTMLStyle_get_clear,
1680 HTMLStyle_put_display,
1681 HTMLStyle_get_display,
1682 HTMLStyle_put_visibility,
1683 HTMLStyle_get_visibility,
1684 HTMLStyle_put_listStyleType,
1685 HTMLStyle_get_listStyleType,
1686 HTMLStyle_put_listStylePosition,
1687 HTMLStyle_get_listStylePosition,
1688 HTMLStyle_put_listStyleImage,
1689 HTMLStyle_get_listStyleImage,
1690 HTMLStyle_put_listStyle,
1691 HTMLStyle_get_listStyle,
1692 HTMLStyle_put_whiteSpace,
1693 HTMLStyle_get_whiteSpace,
1698 HTMLStyle_get_position,
1699 HTMLStyle_put_zIndex,
1700 HTMLStyle_get_zIndex,
1701 HTMLStyle_put_overflow,
1702 HTMLStyle_get_overflow,
1703 HTMLStyle_put_pageBreakBefore,
1704 HTMLStyle_get_pageBreakBefore,
1705 HTMLStyle_put_pageBreakAfter,
1706 HTMLStyle_get_pageBreakAfter,
1707 HTMLStyle_put_cssText,
1708 HTMLStyle_get_cssText,
1709 HTMLStyle_put_pixelTop,
1710 HTMLStyle_get_pixelTop,
1711 HTMLStyle_put_pixelLeft,
1712 HTMLStyle_get_pixelLeft,
1713 HTMLStyle_put_pixelWidth,
1714 HTMLStyle_get_pixelWidth,
1715 HTMLStyle_put_pixelHeight,
1716 HTMLStyle_get_pixelHeight,
1717 HTMLStyle_put_posTop,
1718 HTMLStyle_get_posTop,
1719 HTMLStyle_put_posLeft,
1720 HTMLStyle_get_posLeft,
1721 HTMLStyle_put_posWidth,
1722 HTMLStyle_get_posWidth,
1723 HTMLStyle_put_posHeight,
1724 HTMLStyle_get_posHeight,
1725 HTMLStyle_put_cursor,
1726 HTMLStyle_get_cursor,
1729 HTMLStyle_put_filter,
1730 HTMLStyle_get_filter,
1731 HTMLStyle_setAttribute,
1732 HTMLStyle_getAttribute,
1733 HTMLStyle_removeAttribute,
1737 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1739 HTMLStyle *ret = mshtml_alloc(sizeof(HTMLStyle));
1741 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1743 ret->nsstyle = nsstyle;
1745 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1747 return HTMLSTYLE(ret);