Release 0.9.61.
[wine/gsoc-2012-control.git] / dlls / mshtml / htmlstyle.c
blob01aa391d147303633df29407a688e6e8c154d8c3
1 /*
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
19 #include <stdarg.h>
21 #define COBJMACROS
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winuser.h"
26 #include "ole2.h"
28 #include "wine/debug.h"
29 #include "wine/unicode.h"
31 #include "mshtml_private.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
35 typedef struct {
36 DispatchEx dispex;
37 const IHTMLStyleVtbl *lpHTMLStyleVtbl;
39 LONG ref;
41 nsIDOMCSSStyleDeclaration *nsstyle;
42 } HTMLStyle;
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)
85 LPCWSTR ptr = val;
87 while(*ptr) {
88 while(*ptr && isspaceW(*ptr))
89 ptr++;
90 if(!*ptr)
91 break;
93 while(*ptr && isdigitW(*ptr))
94 ptr++;
96 if(!*ptr || isspaceW(*ptr)) {
97 LPWSTR ret, p;
98 int len = strlenW(val)+1;
100 ret = heap_alloc((len+2)*sizeof(WCHAR));
101 memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
102 p = ret + (ptr-val);
103 *p++ = 'p';
104 *p++ = 'x';
105 strcpyW(p, ptr);
107 TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
109 return ret;
112 while(*ptr && !isspaceW(*ptr))
113 ptr++;
116 return NULL;
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;
124 LPWSTR val = NULL;
125 nsresult nsres;
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);
137 heap_free(val);
139 nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
140 if(NS_FAILED(nsres))
141 ERR("SetProperty failed: %08x\n", nsres);
143 nsAString_Finish(&str_name);
144 nsAString_Finish(&str_value);
145 nsAString_Finish(&str_empty);
147 return S_OK;
150 static HRESULT get_style_attr_nsval(HTMLStyle *This, LPCWSTR name, nsAString *value)
152 nsAString str_name;
153 nsresult nsres;
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);
160 return E_FAIL;
163 nsAString_Finish(&str_name);
165 return NS_OK;
168 static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
170 nsAString str_value;
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));
183 return S_OK;
186 static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exval, VARIANT_BOOL *p)
188 nsAString str_value;
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);
200 return S_OK;
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);
209 *ppv = NULL;
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);
225 if(*ppv) {
226 IUnknown_AddRef((IUnknown*)*ppv);
227 return S_OK;
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);
241 return 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);
251 if(!ref)
252 heap_free(This);
254 return ref;
257 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
259 HTMLStyle *This = HTMLSTYLE_THIS(iface);
260 FIXME("(%p)->(%p)\n", This, pctinfo);
261 return E_NOTIMPL;
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);
269 return E_NOTIMPL;
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,
278 lcid, rgDispId);
279 return E_NOTIMPL;
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);
289 return E_NOTIMPL;
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));
314 return E_NOTIMPL;
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));
330 return E_NOTIMPL;
333 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
335 HTMLStyle *This = HTMLSTYLE_THIS(iface);
336 FIXME("(%p)->(%p)\n", This, p);
337 return E_NOTIMPL;
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));
344 return E_NOTIMPL;
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));
362 switch(V_VT(&v)) {
363 case VT_BSTR:
364 return set_style_attr(This, attrFontSize, V_BSTR(&v), 0);
365 default:
366 FIXME("not supported vt %d\n", V_VT(&v));
369 return S_OK;
372 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
374 HTMLStyle *This = HTMLSTYLE_THIS(iface);
376 TRACE("(%p)->(%p)\n", This, p);
378 V_VT(p) = VT_BSTR;
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));
386 return E_NOTIMPL;
389 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
391 HTMLStyle *This = HTMLSTYLE_THIS(iface);
392 FIXME("(%p)->(%p)\n", This, p);
393 return E_NOTIMPL;
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));
400 return E_NOTIMPL;
403 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
405 HTMLStyle *This = HTMLSTYLE_THIS(iface);
407 TRACE("(%p)->(%p)\n", This, p);
409 V_VT(p) = VT_BSTR;
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));
417 return E_NOTIMPL;
420 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
422 HTMLStyle *This = HTMLSTYLE_THIS(iface);
423 FIXME("(%p)->(%p)\n", This, p);
424 return E_NOTIMPL;
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));
433 switch(V_VT(&v)) {
434 case VT_BSTR:
435 return set_style_attr(This, attrBackgroundColor, V_BSTR(&v), 0);
436 case VT_I4: {
437 WCHAR value[10];
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);
443 default:
444 FIXME("unsupported vt %d\n", V_VT(&v));
447 return S_OK;
450 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
452 HTMLStyle *This = HTMLSTYLE_THIS(iface);
453 FIXME("(%p)->(%p)\n", This, p);
454 return E_NOTIMPL;
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);
470 return E_NOTIMPL;
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));
477 return E_NOTIMPL;
480 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
482 HTMLStyle *This = HTMLSTYLE_THIS(iface);
483 FIXME("(%p)->(%p)\n", This, p);
484 return E_NOTIMPL;
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));
491 return E_NOTIMPL;
494 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
496 HTMLStyle *This = HTMLSTYLE_THIS(iface);
497 FIXME("(%p)->(%p)\n", This, p);
498 return E_NOTIMPL;
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));
505 return E_NOTIMPL;
508 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
510 HTMLStyle *This = HTMLSTYLE_THIS(iface);
511 FIXME("(%p)->(%p)\n", This, p);
512 return E_NOTIMPL;
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));
519 return E_NOTIMPL;
522 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
524 HTMLStyle *This = HTMLSTYLE_THIS(iface);
525 FIXME("(%p)->(%p)\n", This, p);
526 return E_NOTIMPL;
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));
533 return E_NOTIMPL;
536 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
538 HTMLStyle *This = HTMLSTYLE_THIS(iface);
539 FIXME("(%p)->(%p)\n", This, p);
540 return E_NOTIMPL;
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));
547 return E_NOTIMPL;
550 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
552 HTMLStyle *This = HTMLSTYLE_THIS(iface);
553 FIXME("(%p)->(%p)\n", This, p);
554 return E_NOTIMPL;
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));
561 return E_NOTIMPL;
564 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
566 HTMLStyle *This = HTMLSTYLE_THIS(iface);
567 FIXME("(%p)->(%p)\n", This, p);
568 return E_NOTIMPL;
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));
575 return E_NOTIMPL;
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);
591 return E_NOTIMPL;
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);
598 return E_NOTIMPL;
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);
605 return E_NOTIMPL;
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);
621 return E_NOTIMPL;
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);
628 return E_NOTIMPL;
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);
635 return E_NOTIMPL;
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);
651 return E_NOTIMPL;
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);
658 return E_NOTIMPL;
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));
665 return E_NOTIMPL;
668 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
670 HTMLStyle *This = HTMLSTYLE_THIS(iface);
671 FIXME("(%p)->(%p)\n", This, p);
672 return E_NOTIMPL;
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));
679 return E_NOTIMPL;
682 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
684 HTMLStyle *This = HTMLSTYLE_THIS(iface);
685 FIXME("(%p)->(%p)\n", This, p);
686 return E_NOTIMPL;
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));
693 return E_NOTIMPL;
696 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
698 HTMLStyle *This = HTMLSTYLE_THIS(iface);
699 FIXME("(%p)->(%p)\n", This, p);
700 return E_NOTIMPL;
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));
707 return E_NOTIMPL;
710 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
712 HTMLStyle *This = HTMLSTYLE_THIS(iface);
713 FIXME("(%p)->(%p)\n", This, p);
714 return E_NOTIMPL;
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));
721 return E_NOTIMPL;
724 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
726 HTMLStyle *This = HTMLSTYLE_THIS(iface);
727 FIXME("(%p)->(%p)\n", This, p);
728 return E_NOTIMPL;
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));
735 return E_NOTIMPL;
738 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
740 HTMLStyle *This = HTMLSTYLE_THIS(iface);
741 FIXME("(%p)->(%p)\n", This, p);
742 return E_NOTIMPL;
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));
751 switch(V_VT(&v)) {
752 case VT_NULL:
753 return set_style_attr(This, attrMarginRight, emptyW, 0);
754 case VT_I4: {
755 WCHAR buf[14];
757 wsprintfW(buf, px_formatW, V_I4(&v));
758 return set_style_attr(This, attrMarginRight, buf, 0);
760 case VT_BSTR:
761 return set_style_attr(This, attrMarginRight, V_BSTR(&v), 0);
762 default:
763 FIXME("Unsupported vt=%d\n", V_VT(&v));
766 return E_NOTIMPL;
769 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
771 HTMLStyle *This = HTMLSTYLE_THIS(iface);
772 FIXME("(%p)->(%p)\n", This, p);
773 return E_NOTIMPL;
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));
780 return E_NOTIMPL;
783 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
785 HTMLStyle *This = HTMLSTYLE_THIS(iface);
786 FIXME("(%p)->(%p)\n", This, p);
787 return E_NOTIMPL;
790 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
792 HTMLStyle *This = HTMLSTYLE_THIS(iface);
794 switch(V_VT(&v)) {
795 case VT_NULL:
796 TRACE("(%p)->(NULL)\n", This);
797 return set_style_attr(This, attrMarginLeft, emptyW, 0);
798 case VT_I4: {
799 WCHAR buf[14];
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);
806 case VT_BSTR:
807 TRACE("(%p)->(%s)\n", This, debugstr_w(V_BSTR(&v)));
808 return set_style_attr(This, attrMarginLeft, V_BSTR(&v), 0);
809 default:
810 FIXME("Unsupported vt=%d\n", V_VT(&v));
813 return E_NOTIMPL;
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));
820 return E_NOTIMPL;
823 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
825 HTMLStyle *This = HTMLSTYLE_THIS(iface);
826 FIXME("(%p)->(%p)\n", This, p);
827 return E_NOTIMPL;
830 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
832 HTMLStyle *This = HTMLSTYLE_THIS(iface);
833 FIXME("(%p)->(%p)\n", This, p);
834 return E_NOTIMPL;
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));
841 return E_NOTIMPL;
844 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
846 HTMLStyle *This = HTMLSTYLE_THIS(iface);
847 FIXME("(%p)->(%p)\n", This, p);
848 return E_NOTIMPL;
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));
855 return E_NOTIMPL;
858 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
860 HTMLStyle *This = HTMLSTYLE_THIS(iface);
861 FIXME("(%p)->(%p)\n", This, p);
862 return E_NOTIMPL;
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));
869 return E_NOTIMPL;
872 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
874 HTMLStyle *This = HTMLSTYLE_THIS(iface);
875 FIXME("(%p)->(%p)\n", This, p);
876 return E_NOTIMPL;
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));
885 switch(V_VT(&v)) {
886 case VT_I4: {
887 WCHAR buf[14];
889 wsprintfW(buf, px_formatW, V_I4(&v));
890 return set_style_attr(This, attrPaddingLeft, buf, 0);
892 case VT_BSTR:
893 return set_style_attr(This, attrPaddingLeft, V_BSTR(&v), 0);
894 default:
895 FIXME("unsupported vt=%d\n", V_VT(&v));
898 return E_NOTIMPL;
901 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
903 HTMLStyle *This = HTMLSTYLE_THIS(iface);
904 FIXME("(%p)->(%p)\n", This, p);
905 return E_NOTIMPL;
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));
912 return E_NOTIMPL;
915 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
917 HTMLStyle *This = HTMLSTYLE_THIS(iface);
918 FIXME("(%p)->(%p)\n", This, p);
919 return E_NOTIMPL;
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));
926 return E_NOTIMPL;
929 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
931 HTMLStyle *This = HTMLSTYLE_THIS(iface);
932 FIXME("(%p)->(%p)\n", This, p);
933 return E_NOTIMPL;
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));
940 return E_NOTIMPL;
943 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
945 HTMLStyle *This = HTMLSTYLE_THIS(iface);
946 FIXME("(%p)->(%p)\n", This, p);
947 return E_NOTIMPL;
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));
954 return E_NOTIMPL;
957 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
959 HTMLStyle *This = HTMLSTYLE_THIS(iface);
960 FIXME("(%p)->(%p)\n", This, p);
961 return E_NOTIMPL;
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));
968 return E_NOTIMPL;
971 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
973 HTMLStyle *This = HTMLSTYLE_THIS(iface);
974 FIXME("(%p)->(%p)\n", This, p);
975 return E_NOTIMPL;
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);
991 return E_NOTIMPL;
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));
998 return E_NOTIMPL;
1001 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
1003 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1004 FIXME("(%p)->(%p)\n", This, p);
1005 return E_NOTIMPL;
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));
1012 return E_NOTIMPL;
1015 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
1017 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1018 FIXME("(%p)->(%p)\n", This, p);
1019 return E_NOTIMPL;
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));
1026 return E_NOTIMPL;
1029 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
1031 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1032 FIXME("(%p)->(%p)\n", This, p);
1033 return E_NOTIMPL;
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));
1040 return E_NOTIMPL;
1043 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
1045 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1046 FIXME("(%p)->(%p)\n", This, p);
1047 return E_NOTIMPL;
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));
1054 return E_NOTIMPL;
1057 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
1059 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1060 FIXME("(%p)->(%p)\n", This, p);
1061 return E_NOTIMPL;
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));
1068 return E_NOTIMPL;
1071 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
1073 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1074 FIXME("(%p)->(%p)\n", This, p);
1075 return E_NOTIMPL;
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));
1082 return E_NOTIMPL;
1085 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
1087 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1088 FIXME("(%p)->(%p)\n", This, p);
1089 return E_NOTIMPL;
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));
1096 return E_NOTIMPL;
1099 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
1101 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1102 FIXME("(%p)->(%p)\n", This, p);
1103 return E_NOTIMPL;
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));
1110 return E_NOTIMPL;
1113 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1115 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1116 FIXME("(%p)->(%p)\n", This, p);
1117 return E_NOTIMPL;
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));
1124 return E_NOTIMPL;
1127 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1129 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1130 FIXME("(%p)->(%p)\n", This, p);
1131 return E_NOTIMPL;
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));
1138 return E_NOTIMPL;
1141 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1143 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1144 FIXME("(%p)->(%p)\n", This, p);
1145 return E_NOTIMPL;
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));
1152 return E_NOTIMPL;
1155 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1157 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1158 FIXME("(%p)->(%p)\n", This, p);
1159 return E_NOTIMPL;
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));
1166 return E_NOTIMPL;
1169 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1171 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1172 FIXME("(%p)->(%p)\n", This, p);
1173 return E_NOTIMPL;
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));
1180 return E_NOTIMPL;
1183 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1185 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1186 FIXME("(%p)->(%p)\n", This, p);
1187 return E_NOTIMPL;
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));
1194 return E_NOTIMPL;
1197 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1199 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1200 FIXME("(%p)->(%p)\n", This, p);
1201 return E_NOTIMPL;
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));
1208 return E_NOTIMPL;
1211 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1213 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1214 FIXME("(%p)->(%p)\n", This, p);
1215 return E_NOTIMPL;
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));
1222 return E_NOTIMPL;
1225 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1227 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1228 FIXME("(%p)->(%p)\n", This, p);
1229 return E_NOTIMPL;
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));
1236 return E_NOTIMPL;
1239 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1241 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1242 FIXME("(%p)->(%p)\n", This, p);
1243 return E_NOTIMPL;
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));
1250 return E_NOTIMPL;
1253 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1255 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1256 FIXME("(%p)->(%p)\n", This, p);
1257 return E_NOTIMPL;
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));
1300 return E_NOTIMPL;
1303 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1305 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1306 FIXME("(%p)->(%p)\n", This, p);
1307 return E_NOTIMPL;
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));
1314 return E_NOTIMPL;
1317 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1319 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1320 FIXME("(%p)->(%p)\n", This, p);
1321 return E_NOTIMPL;
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));
1328 return E_NOTIMPL;
1331 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1333 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1334 FIXME("(%p)->(%p)\n", This, p);
1335 return E_NOTIMPL;
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));
1342 return E_NOTIMPL;
1345 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1347 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1348 FIXME("(%p)->(%p)\n", This, p);
1349 return E_NOTIMPL;
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));
1356 return E_NOTIMPL;
1359 static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
1361 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1362 FIXME("(%p)->(%p)\n", This, p);
1363 return E_NOTIMPL;
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));
1370 return E_NOTIMPL;
1373 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1375 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1376 FIXME("(%p)->(%p)\n", This, p);
1377 return E_NOTIMPL;
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));
1384 return E_NOTIMPL;
1387 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1389 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1390 FIXME("(%p)->(%p)\n", This, p);
1391 return E_NOTIMPL;
1394 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1396 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1397 FIXME("(%p)->(%p)\n", This, p);
1398 return E_NOTIMPL;
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));
1405 return E_NOTIMPL;
1408 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1410 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1411 FIXME("(%p)->(%p)\n", This, p);
1412 return E_NOTIMPL;
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));
1419 return E_NOTIMPL;
1422 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1424 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1425 FIXME("(%p)->(%p)\n", This, p);
1426 return E_NOTIMPL;
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));
1433 return E_NOTIMPL;
1436 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1438 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1439 FIXME("(%p)->(%p)\n", This, p);
1440 return E_NOTIMPL;
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));
1447 return E_NOTIMPL;
1450 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1452 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1453 FIXME("(%p)->(%p)\n", This, p);
1454 return E_NOTIMPL;
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));
1461 return E_NOTIMPL;
1464 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1466 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1467 FIXME("(%p)->(%p)\n", This, p);
1468 return E_NOTIMPL;
1471 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1473 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1474 FIXME("(%p)->()\n", This);
1475 return E_NOTIMPL;
1478 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1480 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1481 FIXME("(%p)->()\n", This);
1482 return E_NOTIMPL;
1485 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1487 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1488 FIXME("(%p)->()\n", This);
1489 return E_NOTIMPL;
1492 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1494 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1495 FIXME("(%p)->()\n", This);
1496 return E_NOTIMPL;
1499 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1501 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1502 FIXME("(%p)->()\n", This);
1503 return E_NOTIMPL;
1506 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1508 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1509 FIXME("(%p)->()\n", This);
1510 return E_NOTIMPL;
1513 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1515 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1516 FIXME("(%p)->()\n", This);
1517 return E_NOTIMPL;
1520 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1522 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1523 FIXME("(%p)->()\n", This);
1524 return E_NOTIMPL;
1527 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1529 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1530 FIXME("(%p)->()\n", This);
1531 return E_NOTIMPL;
1534 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1536 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1537 FIXME("(%p)->()\n", This);
1538 return E_NOTIMPL;
1541 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1543 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1544 FIXME("(%p)->()\n", This);
1545 return E_NOTIMPL;
1548 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1550 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1551 FIXME("(%p)->()\n", This);
1552 return E_NOTIMPL;
1555 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1557 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1558 FIXME("(%p)->()\n", This);
1559 return E_NOTIMPL;
1562 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1564 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1565 FIXME("(%p)->()\n", This);
1566 return E_NOTIMPL;
1569 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1571 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1572 FIXME("(%p)->()\n", This);
1573 return E_NOTIMPL;
1576 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1578 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1579 FIXME("(%p)->()\n", This);
1580 return E_NOTIMPL;
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));
1587 return E_NOTIMPL;
1590 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1592 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1593 FIXME("(%p)->(%p)\n", This, p);
1594 return E_NOTIMPL;
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));
1601 return E_NOTIMPL;
1604 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1606 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1607 FIXME("(%p)->(%p)\n", This, p);
1608 return E_NOTIMPL;
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));
1615 return E_NOTIMPL;
1618 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1620 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1621 FIXME("(%p)->(%p)\n", This, p);
1622 return E_NOTIMPL;
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);
1631 return E_NOTIMPL;
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);
1640 return E_NOTIMPL;
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),
1648 lFlags, pfSuccess);
1649 return E_NOTIMPL;
1652 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1654 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1655 FIXME("(%p)->(%p)\n", This, String);
1656 return E_NOTIMPL;
1659 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1660 HTMLStyle_QueryInterface,
1661 HTMLStyle_AddRef,
1662 HTMLStyle_Release,
1663 HTMLStyle_GetTypeInfoCount,
1664 HTMLStyle_GetTypeInfo,
1665 HTMLStyle_GetIDsOfNames,
1666 HTMLStyle_Invoke,
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,
1677 HTMLStyle_put_font,
1678 HTMLStyle_get_font,
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,
1805 HTMLStyle_put_top,
1806 HTMLStyle_get_top,
1807 HTMLStyle_put_left,
1808 HTMLStyle_get_left,
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,
1838 HTMLStyle_put_clip,
1839 HTMLStyle_get_clip,
1840 HTMLStyle_put_filter,
1841 HTMLStyle_get_filter,
1842 HTMLStyle_setAttribute,
1843 HTMLStyle_getAttribute,
1844 HTMLStyle_removeAttribute,
1845 HTMLStyle_toString
1848 static dispex_static_data_t HTMLStyle_dispex = {
1849 NULL,
1850 DispHTMLStyle_tid,
1851 NULL,
1853 IHTMLStyle_tid,
1858 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1860 HTMLStyle *ret = heap_alloc(sizeof(HTMLStyle));
1862 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1863 ret->ref = 1;
1864 ret->nsstyle = nsstyle;
1866 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1868 init_dispex(&ret->dispex, (IUnknown*)HTMLSTYLE(ret), &HTMLStyle_dispex);
1870 return HTMLSTYLE(ret);