mshtml: Don't crash in UIActivate if Gecko is not available.
[wine.git] / dlls / mshtml / htmlstyle.c
blob756f77223a82e6e788e37306d49806e1449dd957
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 "config.h"
21 #include <stdarg.h>
22 #include <stdio.h>
24 #define COBJMACROS
26 #include "windef.h"
27 #include "winbase.h"
28 #include "winuser.h"
29 #include "winnls.h"
30 #include "ole2.h"
32 #include "wine/debug.h"
33 #include "wine/unicode.h"
35 #include "mshtml_private.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
39 typedef struct {
40 const IHTMLStyleVtbl *lpHTMLStyleVtbl;
42 LONG ref;
44 nsIDOMCSSStyleDeclaration *nsstyle;
45 } HTMLStyle;
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 attrFontFamily[] =
54 {'f','o','n','t','-','f','a','m','i','l','y',0};
55 static const WCHAR attrFontSize[] =
56 {'f','o','n','t','-','s','i','z','e',0};
57 static const WCHAR attrFontStyle[] =
58 {'f','o','n','t','-','s','t','y','l','e',0};
59 static const WCHAR attrFontWeight[] =
60 {'f','o','n','t','-','w','e','i','g','h','t',0};
61 static const WCHAR attrTextDecoration[] =
62 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
64 static const WCHAR valLineThrough[] =
65 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
66 static const WCHAR valUnderline[] =
67 {'u','n','d','e','r','l','i','n','e',0};
69 static HRESULT set_style_attr(HTMLStyle *This, LPCWSTR name, LPCWSTR value)
71 nsAString str_name, str_value, str_empty;
72 nsresult nsres;
74 static const PRUnichar wszEmpty[] = {0};
76 TRACE("(%p)->(%s %s)\n", This, debugstr_w(name), debugstr_w(value));
78 nsAString_Init(&str_name, name);
79 nsAString_Init(&str_value, value);
80 nsAString_Init(&str_empty, wszEmpty);
82 nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
83 if(NS_FAILED(nsres))
84 ERR("SetProperty failed: %08x\n", nsres);
86 nsAString_Finish(&str_name);
87 nsAString_Finish(&str_value);
88 nsAString_Finish(&str_empty);
90 return S_OK;
93 static HRESULT get_style_attr_nsval(HTMLStyle *This, LPCWSTR name, nsAString *value)
95 nsAString str_name;
96 nsresult nsres;
98 nsAString_Init(&str_name, name);
100 nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &str_name, value);
101 if(NS_FAILED(nsres)) {
102 ERR("SetProperty failed: %08x\n", nsres);
103 return E_FAIL;
106 nsAString_Finish(&str_name);
108 return NS_OK;
111 static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
113 nsAString str_value;
114 const PRUnichar *value;
116 nsAString_Init(&str_value, NULL);
118 get_style_attr_nsval(This, name, &str_value);
120 nsAString_GetData(&str_value, &value, NULL);
121 *p = *value ? SysAllocString(value) : NULL;
123 nsAString_Finish(&str_value);
125 TRACE("%s -> %s\n", debugstr_w(name), debugstr_w(*p));
126 return S_OK;
129 static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exval, VARIANT_BOOL *p)
131 nsAString str_value;
132 const PRUnichar *value;
134 nsAString_Init(&str_value, NULL);
136 get_style_attr_nsval(This, name, &str_value);
138 nsAString_GetData(&str_value, &value, NULL);
139 *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
140 nsAString_Finish(&str_value);
142 TRACE("%s -> %x\n", debugstr_w(name), *p);
143 return S_OK;
146 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
148 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
150 HTMLStyle *This = HTMLSTYLE_THIS(iface);
152 *ppv = NULL;
154 if(IsEqualGUID(&IID_IUnknown, riid)) {
155 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
156 *ppv = HTMLSTYLE(This);
157 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
158 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
159 *ppv = HTMLSTYLE(This);
160 }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
161 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
162 *ppv = HTMLSTYLE(This);
165 if(*ppv) {
166 IUnknown_AddRef((IUnknown*)*ppv);
167 return S_OK;
170 WARN("unsupported %s\n", debugstr_guid(riid));
171 return E_NOINTERFACE;
174 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
176 HTMLStyle *This = HTMLSTYLE_THIS(iface);
177 LONG ref = InterlockedIncrement(&This->ref);
179 TRACE("(%p) ref=%d\n", This, ref);
181 return ref;
184 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
186 HTMLStyle *This = HTMLSTYLE_THIS(iface);
187 LONG ref = InterlockedDecrement(&This->ref);
189 TRACE("(%p) ref=%d\n", This, ref);
191 if(!ref)
192 mshtml_free(This);
194 return ref;
197 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
199 HTMLStyle *This = HTMLSTYLE_THIS(iface);
200 FIXME("(%p)->(%p)\n", This, pctinfo);
201 return E_NOTIMPL;
204 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
205 LCID lcid, ITypeInfo **ppTInfo)
207 HTMLStyle *This = HTMLSTYLE_THIS(iface);
208 FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
209 return E_NOTIMPL;
212 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
213 LPOLESTR *rgszNames, UINT cNames,
214 LCID lcid, DISPID *rgDispId)
216 HTMLStyle *This = HTMLSTYLE_THIS(iface);
217 FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
218 lcid, rgDispId);
219 return E_NOTIMPL;
222 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
223 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
224 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
226 HTMLStyle *This = HTMLSTYLE_THIS(iface);
227 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
228 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
229 return E_NOTIMPL;
232 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
234 HTMLStyle *This = HTMLSTYLE_THIS(iface);
236 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
238 return set_style_attr(This, attrFontFamily, v);
241 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
243 HTMLStyle *This = HTMLSTYLE_THIS(iface);
245 TRACE("(%p)->(%p)\n", This, p);
247 return get_style_attr(This, attrFontFamily, p);
250 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
252 HTMLStyle *This = HTMLSTYLE_THIS(iface);
253 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
254 return E_NOTIMPL;
257 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
259 HTMLStyle *This = HTMLSTYLE_THIS(iface);
261 TRACE("(%p)->(%p)\n", This, p);
263 return get_style_attr(This, attrFontStyle, p);
266 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
268 HTMLStyle *This = HTMLSTYLE_THIS(iface);
269 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
270 return E_NOTIMPL;
273 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
275 HTMLStyle *This = HTMLSTYLE_THIS(iface);
276 FIXME("(%p)->(%p)\n", This, p);
277 return E_NOTIMPL;
280 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
282 HTMLStyle *This = HTMLSTYLE_THIS(iface);
283 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
284 return E_NOTIMPL;
287 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
289 HTMLStyle *This = HTMLSTYLE_THIS(iface);
291 TRACE("(%p)->(%p)\n", This, p);
293 return get_style_attr(This, attrFontWeight, p);
296 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
298 HTMLStyle *This = HTMLSTYLE_THIS(iface);
300 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
302 switch(V_VT(&v)) {
303 case VT_BSTR:
304 return set_style_attr(This, attrFontSize, V_BSTR(&v));
305 default:
306 FIXME("not supported vt %d\n", V_VT(&v));
309 return S_OK;
312 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
314 HTMLStyle *This = HTMLSTYLE_THIS(iface);
316 TRACE("(%p)->(%p)\n", This, p);
318 V_VT(p) = VT_BSTR;
319 return get_style_attr(This, attrFontSize, &V_BSTR(p));
322 static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
324 HTMLStyle *This = HTMLSTYLE_THIS(iface);
325 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
326 return E_NOTIMPL;
329 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
331 HTMLStyle *This = HTMLSTYLE_THIS(iface);
332 FIXME("(%p)->(%p)\n", This, p);
333 return E_NOTIMPL;
336 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
338 HTMLStyle *This = HTMLSTYLE_THIS(iface);
339 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
340 return E_NOTIMPL;
343 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
345 HTMLStyle *This = HTMLSTYLE_THIS(iface);
347 TRACE("(%p)->(%p)\n", This, p);
349 V_VT(p) = VT_BSTR;
350 return get_style_attr(This, attrColor, &V_BSTR(p));
353 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
355 HTMLStyle *This = HTMLSTYLE_THIS(iface);
356 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
357 return E_NOTIMPL;
360 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
362 HTMLStyle *This = HTMLSTYLE_THIS(iface);
363 FIXME("(%p)->(%p)\n", This, p);
364 return E_NOTIMPL;
367 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
369 HTMLStyle *This = HTMLSTYLE_THIS(iface);
371 TRACE("(%p)->(v%d)\n", This, V_VT(&v));
373 switch(V_VT(&v)) {
374 case VT_BSTR:
375 return set_style_attr(This, attrBackgroundColor, V_BSTR(&v));
376 case VT_I4: {
377 WCHAR value[10];
378 static const WCHAR format[] = {'#','%','0','6','x',0};
380 wsprintfW(value, format, V_I4(&v));
381 return set_style_attr(This, attrBackgroundColor, value);
383 default:
384 FIXME("unsupported vt %d\n", V_VT(&v));
387 return S_OK;
390 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
392 HTMLStyle *This = HTMLSTYLE_THIS(iface);
393 FIXME("(%p)->(%p)\n", This, p);
394 return E_NOTIMPL;
397 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
399 HTMLStyle *This = HTMLSTYLE_THIS(iface);
400 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
401 return E_NOTIMPL;
404 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
406 HTMLStyle *This = HTMLSTYLE_THIS(iface);
407 FIXME("(%p)->(%p)\n", This, p);
408 return E_NOTIMPL;
411 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
413 HTMLStyle *This = HTMLSTYLE_THIS(iface);
414 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
415 return E_NOTIMPL;
418 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
420 HTMLStyle *This = HTMLSTYLE_THIS(iface);
421 FIXME("(%p)->(%p)\n", This, p);
422 return E_NOTIMPL;
425 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
427 HTMLStyle *This = HTMLSTYLE_THIS(iface);
428 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
429 return E_NOTIMPL;
432 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
434 HTMLStyle *This = HTMLSTYLE_THIS(iface);
435 FIXME("(%p)->(%p)\n", This, p);
436 return E_NOTIMPL;
439 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
441 HTMLStyle *This = HTMLSTYLE_THIS(iface);
442 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
443 return E_NOTIMPL;
446 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
448 HTMLStyle *This = HTMLSTYLE_THIS(iface);
449 FIXME("(%p)->(%p)\n", This, p);
450 return E_NOTIMPL;
453 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
455 HTMLStyle *This = HTMLSTYLE_THIS(iface);
456 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
457 return E_NOTIMPL;
460 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
462 HTMLStyle *This = HTMLSTYLE_THIS(iface);
463 FIXME("(%p)->(%p)\n", This, p);
464 return E_NOTIMPL;
467 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
469 HTMLStyle *This = HTMLSTYLE_THIS(iface);
470 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
471 return E_NOTIMPL;
474 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
476 HTMLStyle *This = HTMLSTYLE_THIS(iface);
477 FIXME("(%p)->(%p)\n", This, p);
478 return E_NOTIMPL;
481 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
483 HTMLStyle *This = HTMLSTYLE_THIS(iface);
484 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
485 return E_NOTIMPL;
488 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
490 HTMLStyle *This = HTMLSTYLE_THIS(iface);
491 FIXME("(%p)->(%p)\n", This, p);
492 return E_NOTIMPL;
495 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
497 HTMLStyle *This = HTMLSTYLE_THIS(iface);
498 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
499 return E_NOTIMPL;
502 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
504 HTMLStyle *This = HTMLSTYLE_THIS(iface);
505 FIXME("(%p)->(%p)\n", This, p);
506 return E_NOTIMPL;
509 static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
511 HTMLStyle *This = HTMLSTYLE_THIS(iface);
512 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
513 return E_NOTIMPL;
516 static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
518 HTMLStyle *This = HTMLSTYLE_THIS(iface);
520 TRACE("(%p)->(%p)\n", This, p);
522 return get_style_attr(This, attrTextDecoration, p);
525 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
527 HTMLStyle *This = HTMLSTYLE_THIS(iface);
528 FIXME("(%p)->(%x)\n", This, v);
529 return E_NOTIMPL;
532 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
534 HTMLStyle *This = HTMLSTYLE_THIS(iface);
535 FIXME("(%p)->(%p)\n", This, p);
536 return E_NOTIMPL;
539 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
541 HTMLStyle *This = HTMLSTYLE_THIS(iface);
542 FIXME("(%p)->(%x)\n", This, v);
543 return E_NOTIMPL;
546 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
548 HTMLStyle *This = HTMLSTYLE_THIS(iface);
550 TRACE("(%p)->(%p)\n", This, p);
552 return check_style_attr_value(This, attrTextDecoration, valUnderline, p);
555 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
557 HTMLStyle *This = HTMLSTYLE_THIS(iface);
558 FIXME("(%p)->(%x)\n", This, v);
559 return E_NOTIMPL;
562 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
564 HTMLStyle *This = HTMLSTYLE_THIS(iface);
565 FIXME("(%p)->(%p)\n", This, p);
566 return E_NOTIMPL;
569 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
571 HTMLStyle *This = HTMLSTYLE_THIS(iface);
572 FIXME("(%p)->(%x)\n", This, v);
573 return E_NOTIMPL;
576 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
578 HTMLStyle *This = HTMLSTYLE_THIS(iface);
580 TRACE("(%p)->(%p)\n", This, p);
582 return check_style_attr_value(This, attrTextDecoration, valLineThrough, p);
585 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
587 HTMLStyle *This = HTMLSTYLE_THIS(iface);
588 FIXME("(%p)->(%x)\n", This, v);
589 return E_NOTIMPL;
592 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
594 HTMLStyle *This = HTMLSTYLE_THIS(iface);
595 FIXME("(%p)->(%p)\n", This, p);
596 return E_NOTIMPL;
599 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
601 HTMLStyle *This = HTMLSTYLE_THIS(iface);
602 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
603 return E_NOTIMPL;
606 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
608 HTMLStyle *This = HTMLSTYLE_THIS(iface);
609 FIXME("(%p)->(%p)\n", This, p);
610 return E_NOTIMPL;
613 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
615 HTMLStyle *This = HTMLSTYLE_THIS(iface);
616 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
617 return E_NOTIMPL;
620 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
622 HTMLStyle *This = HTMLSTYLE_THIS(iface);
623 FIXME("(%p)->(%p)\n", This, p);
624 return E_NOTIMPL;
627 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
629 HTMLStyle *This = HTMLSTYLE_THIS(iface);
630 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
631 return E_NOTIMPL;
634 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
636 HTMLStyle *This = HTMLSTYLE_THIS(iface);
637 FIXME("(%p)->(%p)\n", This, p);
638 return E_NOTIMPL;
641 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
643 HTMLStyle *This = HTMLSTYLE_THIS(iface);
644 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
645 return E_NOTIMPL;
648 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
650 HTMLStyle *This = HTMLSTYLE_THIS(iface);
651 FIXME("(%p)->(%p)\n", This, p);
652 return E_NOTIMPL;
655 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
657 HTMLStyle *This = HTMLSTYLE_THIS(iface);
658 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
659 return E_NOTIMPL;
662 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
664 HTMLStyle *This = HTMLSTYLE_THIS(iface);
665 FIXME("(%p)->(%p)\n", This, p);
666 return E_NOTIMPL;
669 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
671 HTMLStyle *This = HTMLSTYLE_THIS(iface);
672 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
673 return E_NOTIMPL;
676 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
678 HTMLStyle *This = HTMLSTYLE_THIS(iface);
679 FIXME("(%p)->(%p)\n", This, p);
680 return E_NOTIMPL;
683 static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
685 HTMLStyle *This = HTMLSTYLE_THIS(iface);
686 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
687 return E_NOTIMPL;
690 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
692 HTMLStyle *This = HTMLSTYLE_THIS(iface);
693 FIXME("(%p)->(%p)\n", This, p);
694 return E_NOTIMPL;
697 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
699 HTMLStyle *This = HTMLSTYLE_THIS(iface);
700 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
701 return E_NOTIMPL;
704 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
706 HTMLStyle *This = HTMLSTYLE_THIS(iface);
707 FIXME("(%p)->(%p)\n", This, p);
708 return E_NOTIMPL;
711 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
713 HTMLStyle *This = HTMLSTYLE_THIS(iface);
714 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
715 return E_NOTIMPL;
718 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
720 HTMLStyle *This = HTMLSTYLE_THIS(iface);
721 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
722 return E_NOTIMPL;
725 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
727 HTMLStyle *This = HTMLSTYLE_THIS(iface);
728 FIXME("(%p)->(%p)\n", This, p);
729 return E_NOTIMPL;
732 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
734 HTMLStyle *This = HTMLSTYLE_THIS(iface);
735 FIXME("(%p)->(%p)\n", This, p);
736 return E_NOTIMPL;
739 static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
741 HTMLStyle *This = HTMLSTYLE_THIS(iface);
742 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
743 return E_NOTIMPL;
746 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
748 HTMLStyle *This = HTMLSTYLE_THIS(iface);
749 FIXME("(%p)->(%p)\n", This, p);
750 return E_NOTIMPL;
753 static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
755 HTMLStyle *This = HTMLSTYLE_THIS(iface);
756 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
757 return E_NOTIMPL;
760 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
762 HTMLStyle *This = HTMLSTYLE_THIS(iface);
763 FIXME("(%p)->(%p)\n", This, p);
764 return E_NOTIMPL;
767 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
769 HTMLStyle *This = HTMLSTYLE_THIS(iface);
770 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
771 return E_NOTIMPL;
774 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
776 HTMLStyle *This = HTMLSTYLE_THIS(iface);
777 FIXME("(%p)->(%p)\n", This, p);
778 return E_NOTIMPL;
781 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
783 HTMLStyle *This = HTMLSTYLE_THIS(iface);
784 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
785 return E_NOTIMPL;
788 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
790 HTMLStyle *This = HTMLSTYLE_THIS(iface);
791 FIXME("(%p)->(%p)\n", This, p);
792 return E_NOTIMPL;
795 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
797 HTMLStyle *This = HTMLSTYLE_THIS(iface);
798 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
799 return E_NOTIMPL;
802 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
804 HTMLStyle *This = HTMLSTYLE_THIS(iface);
805 FIXME("(%p)->(%p)\n", This, p);
806 return E_NOTIMPL;
809 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
811 HTMLStyle *This = HTMLSTYLE_THIS(iface);
812 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
813 return E_NOTIMPL;
816 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
818 HTMLStyle *This = HTMLSTYLE_THIS(iface);
819 FIXME("(%p)->(%p)\n", This, p);
820 return E_NOTIMPL;
823 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
825 HTMLStyle *This = HTMLSTYLE_THIS(iface);
826 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
827 return E_NOTIMPL;
830 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
832 HTMLStyle *This = HTMLSTYLE_THIS(iface);
833 FIXME("(%p)->(%p)\n", This, p);
834 return E_NOTIMPL;
837 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
839 HTMLStyle *This = HTMLSTYLE_THIS(iface);
840 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
841 return E_NOTIMPL;
844 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
846 HTMLStyle *This = HTMLSTYLE_THIS(iface);
847 FIXME("(%p)->(%p)\n", This, p);
848 return E_NOTIMPL;
851 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
853 HTMLStyle *This = HTMLSTYLE_THIS(iface);
854 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
855 return E_NOTIMPL;
858 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
860 HTMLStyle *This = HTMLSTYLE_THIS(iface);
861 FIXME("(%p)->(%p)\n", This, p);
862 return E_NOTIMPL;
865 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
867 HTMLStyle *This = HTMLSTYLE_THIS(iface);
868 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
869 return E_NOTIMPL;
872 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
874 HTMLStyle *This = HTMLSTYLE_THIS(iface);
875 FIXME("(%p)->(%p)\n", This, p);
876 return E_NOTIMPL;
879 static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
881 HTMLStyle *This = HTMLSTYLE_THIS(iface);
882 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
883 return E_NOTIMPL;
886 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
888 HTMLStyle *This = HTMLSTYLE_THIS(iface);
889 FIXME("(%p)->(%p)\n", This, p);
890 return E_NOTIMPL;
893 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
895 HTMLStyle *This = HTMLSTYLE_THIS(iface);
896 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
897 return E_NOTIMPL;
900 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
902 HTMLStyle *This = HTMLSTYLE_THIS(iface);
903 FIXME("(%p)->(%p)\n", This, p);
904 return E_NOTIMPL;
907 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
909 HTMLStyle *This = HTMLSTYLE_THIS(iface);
910 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
911 return E_NOTIMPL;
914 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
916 HTMLStyle *This = HTMLSTYLE_THIS(iface);
917 FIXME("(%p)->(%p)\n", This, p);
918 return E_NOTIMPL;
921 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
923 HTMLStyle *This = HTMLSTYLE_THIS(iface);
924 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
925 return E_NOTIMPL;
928 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
930 HTMLStyle *This = HTMLSTYLE_THIS(iface);
931 FIXME("(%p)->(%p)\n", This, p);
932 return E_NOTIMPL;
935 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
937 HTMLStyle *This = HTMLSTYLE_THIS(iface);
938 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
939 return E_NOTIMPL;
942 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
944 HTMLStyle *This = HTMLSTYLE_THIS(iface);
945 FIXME("(%p)->(%p)\n", This, p);
946 return E_NOTIMPL;
949 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
951 HTMLStyle *This = HTMLSTYLE_THIS(iface);
952 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
953 return E_NOTIMPL;
956 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
958 HTMLStyle *This = HTMLSTYLE_THIS(iface);
959 FIXME("(%p)->(%p)\n", This, p);
960 return E_NOTIMPL;
963 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
965 HTMLStyle *This = HTMLSTYLE_THIS(iface);
966 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
967 return E_NOTIMPL;
970 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
972 HTMLStyle *This = HTMLSTYLE_THIS(iface);
973 FIXME("(%p)->(%p)\n", This, p);
974 return E_NOTIMPL;
977 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
979 HTMLStyle *This = HTMLSTYLE_THIS(iface);
980 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
981 return E_NOTIMPL;
984 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
986 HTMLStyle *This = HTMLSTYLE_THIS(iface);
987 FIXME("(%p)->(%p)\n", This, p);
988 return E_NOTIMPL;
991 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
993 HTMLStyle *This = HTMLSTYLE_THIS(iface);
994 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
995 return E_NOTIMPL;
998 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1000 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1001 FIXME("(%p)->(%p)\n", This, p);
1002 return E_NOTIMPL;
1005 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1007 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1008 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1009 return E_NOTIMPL;
1012 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1014 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1015 FIXME("(%p)->(%p)\n", This, p);
1016 return E_NOTIMPL;
1019 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1021 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1022 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1023 return E_NOTIMPL;
1026 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1028 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1029 FIXME("(%p)->(%p)\n", This, p);
1030 return E_NOTIMPL;
1033 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1035 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1036 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1037 return E_NOTIMPL;
1040 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1042 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1043 FIXME("(%p)->(%p)\n", This, p);
1044 return E_NOTIMPL;
1047 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1049 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1050 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1051 return E_NOTIMPL;
1054 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1056 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1057 FIXME("(%p)->(%p)\n", This, p);
1058 return E_NOTIMPL;
1061 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1063 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1064 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1065 return E_NOTIMPL;
1068 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1070 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1071 FIXME("(%p)->(%p)\n", This, p);
1072 return E_NOTIMPL;
1075 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1077 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1078 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1079 return E_NOTIMPL;
1082 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1084 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1085 FIXME("(%p)->(%p)\n", This, p);
1086 return E_NOTIMPL;
1089 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1091 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1092 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1093 return E_NOTIMPL;
1096 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1098 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1099 FIXME("(%p)->(%p)\n", This, p);
1100 return E_NOTIMPL;
1103 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1105 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1106 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1107 return E_NOTIMPL;
1110 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1112 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1113 FIXME("(%p)->(%p)\n", This, p);
1114 return E_NOTIMPL;
1117 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1119 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1120 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1121 return E_NOTIMPL;
1124 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1126 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1127 FIXME("(%p)->(%p)\n", This, p);
1128 return E_NOTIMPL;
1131 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1133 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1134 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1135 return E_NOTIMPL;
1138 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1140 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1141 FIXME("(%p)->(%p)\n", This, p);
1142 return E_NOTIMPL;
1145 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1147 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1148 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1149 return E_NOTIMPL;
1152 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1154 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1155 FIXME("(%p)->(%p)\n", This, p);
1156 return E_NOTIMPL;
1159 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1161 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1162 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1163 return E_NOTIMPL;
1166 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1168 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1169 FIXME("(%p)->(%p)\n", This, p);
1170 return E_NOTIMPL;
1173 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1175 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1176 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1177 return E_NOTIMPL;
1180 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1182 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1183 FIXME("(%p)->(%p)\n", This, p);
1184 return E_NOTIMPL;
1187 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1189 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1190 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1191 return E_NOTIMPL;
1194 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1196 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1197 FIXME("(%p)->(%p)\n", This, p);
1198 return E_NOTIMPL;
1201 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1203 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1204 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1205 return E_NOTIMPL;
1208 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1210 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1211 FIXME("(%p)->(%p)\n", This, p);
1212 return E_NOTIMPL;
1215 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1217 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1218 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1219 return E_NOTIMPL;
1222 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1224 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1225 FIXME("(%p)->(%p)\n", This, p);
1226 return E_NOTIMPL;
1229 static HRESULT WINAPI HTMLStyle_put_whiteSpace(IHTMLStyle *iface, BSTR v)
1231 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1232 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1233 return E_NOTIMPL;
1236 static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
1238 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1239 FIXME("(%p)->(%p)\n", This, p);
1240 return E_NOTIMPL;
1243 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1245 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1246 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1247 return E_NOTIMPL;
1250 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1252 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1253 FIXME("(%p)->(%p)\n", This, p);
1254 return E_NOTIMPL;
1257 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1259 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1260 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1261 return E_NOTIMPL;
1264 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1266 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1267 FIXME("(%p)->(%p)\n", This, p);
1268 return E_NOTIMPL;
1271 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1273 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1274 FIXME("(%p)->(%p)\n", This, p);
1275 return E_NOTIMPL;
1278 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1280 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1281 FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1282 return E_NOTIMPL;
1285 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1287 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1288 FIXME("(%p)->(%p)\n", This, p);
1289 return E_NOTIMPL;
1292 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1294 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1295 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1296 return E_NOTIMPL;
1299 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1301 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1302 FIXME("(%p)->(%p)\n", This, p);
1303 return E_NOTIMPL;
1306 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1308 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1309 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1310 return E_NOTIMPL;
1313 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1315 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1316 FIXME("(%p)->(%p)\n", This, p);
1317 return E_NOTIMPL;
1320 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1322 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1323 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1324 return E_NOTIMPL;
1327 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1329 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1330 FIXME("(%p)->(%p)\n", This, p);
1331 return E_NOTIMPL;
1334 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1336 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1337 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1338 return E_NOTIMPL;
1341 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1343 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1344 FIXME("(%p)->(%p)\n", This, p);
1345 return E_NOTIMPL;
1348 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1350 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1351 FIXME("(%p)->()\n", This);
1352 return E_NOTIMPL;
1355 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1357 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1358 FIXME("(%p)->()\n", This);
1359 return E_NOTIMPL;
1362 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1364 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1365 FIXME("(%p)->()\n", This);
1366 return E_NOTIMPL;
1369 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1371 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1372 FIXME("(%p)->()\n", This);
1373 return E_NOTIMPL;
1376 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1378 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1379 FIXME("(%p)->()\n", This);
1380 return E_NOTIMPL;
1383 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1385 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1386 FIXME("(%p)->()\n", This);
1387 return E_NOTIMPL;
1390 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1392 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1393 FIXME("(%p)->()\n", This);
1394 return E_NOTIMPL;
1397 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1399 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1400 FIXME("(%p)->()\n", This);
1401 return E_NOTIMPL;
1404 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1406 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1407 FIXME("(%p)->()\n", This);
1408 return E_NOTIMPL;
1411 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1413 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1414 FIXME("(%p)->()\n", This);
1415 return E_NOTIMPL;
1418 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1420 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1421 FIXME("(%p)->()\n", This);
1422 return E_NOTIMPL;
1425 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1427 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1428 FIXME("(%p)->()\n", This);
1429 return E_NOTIMPL;
1432 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1434 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1435 FIXME("(%p)->()\n", This);
1436 return E_NOTIMPL;
1439 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1441 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1442 FIXME("(%p)->()\n", This);
1443 return E_NOTIMPL;
1446 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1448 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1449 FIXME("(%p)->()\n", This);
1450 return E_NOTIMPL;
1453 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1455 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1456 FIXME("(%p)->()\n", This);
1457 return E_NOTIMPL;
1460 static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
1462 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1463 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1464 return E_NOTIMPL;
1467 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1469 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1470 FIXME("(%p)->(%p)\n", This, p);
1471 return E_NOTIMPL;
1474 static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
1476 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1477 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1478 return E_NOTIMPL;
1481 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1483 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1484 FIXME("(%p)->(%p)\n", This, p);
1485 return E_NOTIMPL;
1488 static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
1490 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1491 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1492 return E_NOTIMPL;
1495 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1497 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1498 FIXME("(%p)->(%p)\n", This, p);
1499 return E_NOTIMPL;
1502 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1503 VARIANT AttributeValue, LONG lFlags)
1505 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1506 FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1507 V_VT(&AttributeValue), lFlags);
1508 return E_NOTIMPL;
1511 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1512 LONG lFlags, VARIANT *AttributeValue)
1514 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1515 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1516 lFlags, AttributeValue);
1517 return E_NOTIMPL;
1520 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1521 LONG lFlags, VARIANT_BOOL *pfSuccess)
1523 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1524 FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1525 lFlags, pfSuccess);
1526 return E_NOTIMPL;
1529 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1531 HTMLStyle *This = HTMLSTYLE_THIS(iface);
1532 FIXME("(%p)->(%p)\n", This, String);
1533 return E_NOTIMPL;
1536 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1537 HTMLStyle_QueryInterface,
1538 HTMLStyle_AddRef,
1539 HTMLStyle_Release,
1540 HTMLStyle_GetTypeInfoCount,
1541 HTMLStyle_GetTypeInfo,
1542 HTMLStyle_GetIDsOfNames,
1543 HTMLStyle_Invoke,
1544 HTMLStyle_put_fontFamily,
1545 HTMLStyle_get_fontFamily,
1546 HTMLStyle_put_fontStyle,
1547 HTMLStyle_get_fontStyle,
1548 HTMLStyle_put_fontVariant,
1549 HTMLStyle_get_fontVariant,
1550 HTMLStyle_put_fontWeight,
1551 HTMLStyle_get_fontWeight,
1552 HTMLStyle_put_fontSize,
1553 HTMLStyle_get_fontSize,
1554 HTMLStyle_put_font,
1555 HTMLStyle_get_font,
1556 HTMLStyle_put_color,
1557 HTMLStyle_get_color,
1558 HTMLStyle_put_background,
1559 HTMLStyle_get_background,
1560 HTMLStyle_put_backgroundColor,
1561 HTMLStyle_get_backgroundColor,
1562 HTMLStyle_put_backgroundImage,
1563 HTMLStyle_get_backgroundImage,
1564 HTMLStyle_put_backgroundRepeat,
1565 HTMLStyle_get_backgroundRepeat,
1566 HTMLStyle_put_backgroundAttachment,
1567 HTMLStyle_get_backgroundAttachment,
1568 HTMLStyle_put_backgroundPosition,
1569 HTMLStyle_get_backgroundPosition,
1570 HTMLStyle_put_backgroundPositionX,
1571 HTMLStyle_get_backgroundPositionX,
1572 HTMLStyle_put_backgroundPositionY,
1573 HTMLStyle_get_backgroundPositionY,
1574 HTMLStyle_put_wordSpacing,
1575 HTMLStyle_get_wordSpacing,
1576 HTMLStyle_put_letterSpacing,
1577 HTMLStyle_get_letterSpacing,
1578 HTMLStyle_put_textDecoration,
1579 HTMLStyle_get_textDecoration,
1580 HTMLStyle_put_textDecorationNone,
1581 HTMLStyle_get_textDecorationNone,
1582 HTMLStyle_put_textDecorationUnderline,
1583 HTMLStyle_get_textDecorationUnderline,
1584 HTMLStyle_put_textDecorationOverline,
1585 HTMLStyle_get_textDecorationOverline,
1586 HTMLStyle_put_textDecorationLineThrough,
1587 HTMLStyle_get_textDecorationLineThrough,
1588 HTMLStyle_put_textDecorationBlink,
1589 HTMLStyle_get_textDecorationBlink,
1590 HTMLStyle_put_verticalAlign,
1591 HTMLStyle_get_verticalAlign,
1592 HTMLStyle_put_textTransform,
1593 HTMLStyle_get_textTransform,
1594 HTMLStyle_put_textAlign,
1595 HTMLStyle_get_textAlign,
1596 HTMLStyle_put_textIndent,
1597 HTMLStyle_get_textIndent,
1598 HTMLStyle_put_lineHeight,
1599 HTMLStyle_get_lineHeight,
1600 HTMLStyle_put_marginTop,
1601 HTMLStyle_get_marginTop,
1602 HTMLStyle_put_marginRight,
1603 HTMLStyle_get_marginRight,
1604 HTMLStyle_put_marginBottom,
1605 HTMLStyle_get_marginBottom,
1606 HTMLStyle_put_marginLeft,
1607 HTMLStyle_get_marginLeft,
1608 HTMLStyle_put_margin,
1609 HTMLStyle_get_margin,
1610 HTMLStyle_put_paddingTop,
1611 HTMLStyle_get_paddingTop,
1612 HTMLStyle_put_paddingRight,
1613 HTMLStyle_get_paddingRight,
1614 HTMLStyle_put_paddingBottom,
1615 HTMLStyle_get_paddingBottom,
1616 HTMLStyle_put_paddingLeft,
1617 HTMLStyle_get_paddingLeft,
1618 HTMLStyle_put_padding,
1619 HTMLStyle_get_padding,
1620 HTMLStyle_put_border,
1621 HTMLStyle_get_border,
1622 HTMLStyle_put_borderTop,
1623 HTMLStyle_get_borderTop,
1624 HTMLStyle_put_borderRight,
1625 HTMLStyle_get_borderRight,
1626 HTMLStyle_put_borderBottom,
1627 HTMLStyle_get_borderBottom,
1628 HTMLStyle_put_borderLeft,
1629 HTMLStyle_get_borderLeft,
1630 HTMLStyle_put_borderColor,
1631 HTMLStyle_get_borderColor,
1632 HTMLStyle_put_borderTopColor,
1633 HTMLStyle_get_borderTopColor,
1634 HTMLStyle_put_borderRightColor,
1635 HTMLStyle_get_borderRightColor,
1636 HTMLStyle_put_borderBottomColor,
1637 HTMLStyle_get_borderBottomColor,
1638 HTMLStyle_put_borderLeftColor,
1639 HTMLStyle_get_borderLeftColor,
1640 HTMLStyle_put_borderWidth,
1641 HTMLStyle_get_borderWidth,
1642 HTMLStyle_put_borderTopWidth,
1643 HTMLStyle_get_borderTopWidth,
1644 HTMLStyle_put_borderRightWidth,
1645 HTMLStyle_get_borderRightWidth,
1646 HTMLStyle_put_borderBottomWidth,
1647 HTMLStyle_get_borderBottomWidth,
1648 HTMLStyle_put_borderLeftWidth,
1649 HTMLStyle_get_borderLeftWidth,
1650 HTMLStyle_put_borderStyle,
1651 HTMLStyle_get_borderStyle,
1652 HTMLStyle_put_borderTopStyle,
1653 HTMLStyle_get_borderTopStyle,
1654 HTMLStyle_put_borderRightStyle,
1655 HTMLStyle_get_borderRightStyle,
1656 HTMLStyle_put_borderBottomStyle,
1657 HTMLStyle_get_borderBottomStyle,
1658 HTMLStyle_put_borderLeftStyle,
1659 HTMLStyle_get_borderLeftStyle,
1660 HTMLStyle_put_width,
1661 HTMLStyle_get_width,
1662 HTMLStyle_put_height,
1663 HTMLStyle_get_height,
1664 HTMLStyle_put_styleFloat,
1665 HTMLStyle_get_styleFloat,
1666 HTMLStyle_put_clear,
1667 HTMLStyle_get_clear,
1668 HTMLStyle_put_display,
1669 HTMLStyle_get_display,
1670 HTMLStyle_put_visibility,
1671 HTMLStyle_get_visibility,
1672 HTMLStyle_put_listStyleType,
1673 HTMLStyle_get_listStyleType,
1674 HTMLStyle_put_listStylePosition,
1675 HTMLStyle_get_listStylePosition,
1676 HTMLStyle_put_listStyleImage,
1677 HTMLStyle_get_listStyleImage,
1678 HTMLStyle_put_listStyle,
1679 HTMLStyle_get_listStyle,
1680 HTMLStyle_put_whiteSpace,
1681 HTMLStyle_get_whiteSpace,
1682 HTMLStyle_put_top,
1683 HTMLStyle_get_top,
1684 HTMLStyle_put_left,
1685 HTMLStyle_get_left,
1686 HTMLStyle_get_position,
1687 HTMLStyle_put_zIndex,
1688 HTMLStyle_get_zIndex,
1689 HTMLStyle_put_overflow,
1690 HTMLStyle_get_overflow,
1691 HTMLStyle_put_pageBreakBefore,
1692 HTMLStyle_get_pageBreakBefore,
1693 HTMLStyle_put_pageBreakAfter,
1694 HTMLStyle_get_pageBreakAfter,
1695 HTMLStyle_put_cssText,
1696 HTMLStyle_get_cssText,
1697 HTMLStyle_put_pixelTop,
1698 HTMLStyle_get_pixelTop,
1699 HTMLStyle_put_pixelLeft,
1700 HTMLStyle_get_pixelLeft,
1701 HTMLStyle_put_pixelWidth,
1702 HTMLStyle_get_pixelWidth,
1703 HTMLStyle_put_pixelHeight,
1704 HTMLStyle_get_pixelHeight,
1705 HTMLStyle_put_posTop,
1706 HTMLStyle_get_posTop,
1707 HTMLStyle_put_posLeft,
1708 HTMLStyle_get_posLeft,
1709 HTMLStyle_put_posWidth,
1710 HTMLStyle_get_posWidth,
1711 HTMLStyle_put_posHeight,
1712 HTMLStyle_get_posHeight,
1713 HTMLStyle_put_cursor,
1714 HTMLStyle_get_cursor,
1715 HTMLStyle_put_clip,
1716 HTMLStyle_get_clip,
1717 HTMLStyle_put_filter,
1718 HTMLStyle_get_filter,
1719 HTMLStyle_setAttribute,
1720 HTMLStyle_getAttribute,
1721 HTMLStyle_removeAttribute,
1722 HTMLStyle_toString
1725 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1727 HTMLStyle *ret = mshtml_alloc(sizeof(HTMLStyle));
1729 ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1730 ret->ref = 1;
1731 ret->nsstyle = nsstyle;
1733 nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1735 return HTMLSTYLE(ret);