2 * Copyright 2006 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
28 #include "wine/debug.h"
29 #include "wine/unicode.h"
31 #include "mshtml_private.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
37 const IHTMLStyleVtbl
*lpHTMLStyleVtbl
;
41 nsIDOMCSSStyleDeclaration
*nsstyle
;
44 #define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl)
46 static const WCHAR attrBackgroundColor
[] =
47 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
48 static const WCHAR attrBackgroundImage
[] =
49 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
50 static const WCHAR attrBorderLeft
[] =
51 {'b','o','r','d','e','r','-','l','e','f','t',0};
52 static const WCHAR attrColor
[] =
53 {'c','o','l','o','r',0};
54 static const WCHAR attrDisplay
[] =
55 {'d','i','s','p','l','a','y',0};
56 static const WCHAR attrFontFamily
[] =
57 {'f','o','n','t','-','f','a','m','i','l','y',0};
58 static const WCHAR attrFontSize
[] =
59 {'f','o','n','t','-','s','i','z','e',0};
60 static const WCHAR attrFontStyle
[] =
61 {'f','o','n','t','-','s','t','y','l','e',0};
62 static const WCHAR attrFontWeight
[] =
63 {'f','o','n','t','-','w','e','i','g','h','t',0};
64 static const WCHAR attrMarginLeft
[] =
65 {'m','a','r','g','i','n','-','l','e','f','t',0};
66 static const WCHAR attrMarginRight
[] =
67 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
68 static const WCHAR attrPaddingLeft
[] =
69 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
70 static const WCHAR attrTextDecoration
[] =
71 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
72 static const WCHAR attrVisibility
[] =
73 {'v','i','s','i','b','i','l','i','t','y',0};
75 static const WCHAR valLineThrough
[] =
76 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
77 static const WCHAR valUnderline
[] =
78 {'u','n','d','e','r','l','i','n','e',0};
80 static const WCHAR px_formatW
[] = {'%','d','p','x',0};
81 static const WCHAR emptyW
[] = {0};
83 static LPWSTR
fix_px_value(LPCWSTR val
)
88 while(*ptr
&& isspaceW(*ptr
))
93 while(*ptr
&& isdigitW(*ptr
))
96 if(!*ptr
|| isspaceW(*ptr
)) {
98 int len
= strlenW(val
)+1;
100 ret
= heap_alloc((len
+2)*sizeof(WCHAR
));
101 memcpy(ret
, val
, (ptr
-val
)*sizeof(WCHAR
));
107 TRACE("fixed %s -> %s\n", debugstr_w(val
), debugstr_w(ret
));
112 while(*ptr
&& !isspaceW(*ptr
))
119 static LPWSTR
fix_url_value(LPCWSTR val
)
123 static const WCHAR urlW
[] = {'u','r','l','('};
125 if(strncmpW(val
, urlW
, sizeof(urlW
)/sizeof(WCHAR
)) || !strchrW(val
, '\\'))
128 ret
= heap_strdupW(val
);
130 for(ptr
= ret
; *ptr
; ptr
++) {
138 #define ATTR_FIX_PX 1
139 #define ATTR_FIX_URL 2
141 static HRESULT
set_style_attr(HTMLStyle
*This
, LPCWSTR name
, LPCWSTR value
, DWORD flags
)
143 nsAString str_name
, str_value
, str_empty
;
147 static const PRUnichar wszEmpty
[] = {0};
149 TRACE("(%p)->(%s %s)\n", This
, debugstr_w(name
), debugstr_w(value
));
151 if(flags
& ATTR_FIX_PX
)
152 val
= fix_px_value(value
);
153 if(flags
& ATTR_FIX_URL
)
154 val
= fix_url_value(value
);
156 nsAString_Init(&str_name
, name
);
157 nsAString_Init(&str_value
, val
? val
: value
);
158 nsAString_Init(&str_empty
, wszEmpty
);
161 nsres
= nsIDOMCSSStyleDeclaration_SetProperty(This
->nsstyle
, &str_name
, &str_value
, &str_empty
);
163 ERR("SetProperty failed: %08x\n", nsres
);
165 nsAString_Finish(&str_name
);
166 nsAString_Finish(&str_value
);
167 nsAString_Finish(&str_empty
);
172 static HRESULT
get_style_attr_nsval(HTMLStyle
*This
, LPCWSTR name
, nsAString
*value
)
177 nsAString_Init(&str_name
, name
);
179 nsres
= nsIDOMCSSStyleDeclaration_GetPropertyValue(This
->nsstyle
, &str_name
, value
);
180 if(NS_FAILED(nsres
)) {
181 ERR("SetProperty failed: %08x\n", nsres
);
185 nsAString_Finish(&str_name
);
190 static HRESULT
get_style_attr(HTMLStyle
*This
, LPCWSTR name
, BSTR
*p
)
193 const PRUnichar
*value
;
195 nsAString_Init(&str_value
, NULL
);
197 get_style_attr_nsval(This
, name
, &str_value
);
199 nsAString_GetData(&str_value
, &value
);
200 *p
= *value
? SysAllocString(value
) : NULL
;
202 nsAString_Finish(&str_value
);
204 TRACE("%s -> %s\n", debugstr_w(name
), debugstr_w(*p
));
208 static HRESULT
check_style_attr_value(HTMLStyle
*This
, LPCWSTR name
, LPCWSTR exval
, VARIANT_BOOL
*p
)
211 const PRUnichar
*value
;
213 nsAString_Init(&str_value
, NULL
);
215 get_style_attr_nsval(This
, name
, &str_value
);
217 nsAString_GetData(&str_value
, &value
);
218 *p
= strcmpW(value
, exval
) ? VARIANT_FALSE
: VARIANT_TRUE
;
219 nsAString_Finish(&str_value
);
221 TRACE("%s -> %x\n", debugstr_w(name
), *p
);
225 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
227 static HRESULT WINAPI
HTMLStyle_QueryInterface(IHTMLStyle
*iface
, REFIID riid
, void **ppv
)
229 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
233 if(IsEqualGUID(&IID_IUnknown
, riid
)) {
234 TRACE("(%p)->(IID_IUnknown %p)\n", This
, ppv
);
235 *ppv
= HTMLSTYLE(This
);
236 }else if(IsEqualGUID(&IID_IDispatch
, riid
)) {
237 TRACE("(%p)->(IID_IDispatch %p)\n", This
, ppv
);
238 *ppv
= HTMLSTYLE(This
);
239 }else if(IsEqualGUID(&IID_IDispatchEx
, riid
)) {
240 TRACE("(%p)->(IID_IDispatchEx %p)\n", This
, ppv
);
241 *ppv
= DISPATCHEX(&This
->dispex
);
242 }else if(IsEqualGUID(&IID_IHTMLStyle
, riid
)) {
243 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This
, ppv
);
244 *ppv
= HTMLSTYLE(This
);
248 IUnknown_AddRef((IUnknown
*)*ppv
);
252 WARN("unsupported %s\n", debugstr_guid(riid
));
253 return E_NOINTERFACE
;
256 static ULONG WINAPI
HTMLStyle_AddRef(IHTMLStyle
*iface
)
258 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
259 LONG ref
= InterlockedIncrement(&This
->ref
);
261 TRACE("(%p) ref=%d\n", This
, ref
);
266 static ULONG WINAPI
HTMLStyle_Release(IHTMLStyle
*iface
)
268 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
269 LONG ref
= InterlockedDecrement(&This
->ref
);
271 TRACE("(%p) ref=%d\n", This
, ref
);
279 static HRESULT WINAPI
HTMLStyle_GetTypeInfoCount(IHTMLStyle
*iface
, UINT
*pctinfo
)
281 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
282 FIXME("(%p)->(%p)\n", This
, pctinfo
);
286 static HRESULT WINAPI
HTMLStyle_GetTypeInfo(IHTMLStyle
*iface
, UINT iTInfo
,
287 LCID lcid
, ITypeInfo
**ppTInfo
)
289 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
290 FIXME("(%p)->(%u %u %p)\n", This
, iTInfo
, lcid
, ppTInfo
);
294 static HRESULT WINAPI
HTMLStyle_GetIDsOfNames(IHTMLStyle
*iface
, REFIID riid
,
295 LPOLESTR
*rgszNames
, UINT cNames
,
296 LCID lcid
, DISPID
*rgDispId
)
298 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
299 FIXME("(%p)->(%s %p %u %u %p)\n", This
, debugstr_guid(riid
), rgszNames
, cNames
,
304 static HRESULT WINAPI
HTMLStyle_Invoke(IHTMLStyle
*iface
, DISPID dispIdMember
,
305 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
306 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
308 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
309 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This
, dispIdMember
, debugstr_guid(riid
),
310 lcid
, wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
314 static HRESULT WINAPI
HTMLStyle_put_fontFamily(IHTMLStyle
*iface
, BSTR v
)
316 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
318 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
320 return set_style_attr(This
, attrFontFamily
, v
, 0);
323 static HRESULT WINAPI
HTMLStyle_get_fontFamily(IHTMLStyle
*iface
, BSTR
*p
)
325 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
327 TRACE("(%p)->(%p)\n", This
, p
);
329 return get_style_attr(This
, attrFontFamily
, p
);
332 static HRESULT WINAPI
HTMLStyle_put_fontStyle(IHTMLStyle
*iface
, BSTR v
)
334 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
335 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
339 static HRESULT WINAPI
HTMLStyle_get_fontStyle(IHTMLStyle
*iface
, BSTR
*p
)
341 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
343 TRACE("(%p)->(%p)\n", This
, p
);
345 return get_style_attr(This
, attrFontStyle
, p
);
348 static HRESULT WINAPI
HTMLStyle_put_fontVariant(IHTMLStyle
*iface
, BSTR v
)
350 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
351 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
355 static HRESULT WINAPI
HTMLStyle_get_fontVariant(IHTMLStyle
*iface
, BSTR
*p
)
357 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
358 FIXME("(%p)->(%p)\n", This
, p
);
362 static HRESULT WINAPI
HTMLStyle_put_fontWeight(IHTMLStyle
*iface
, BSTR v
)
364 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
365 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
369 static HRESULT WINAPI
HTMLStyle_get_fontWeight(IHTMLStyle
*iface
, BSTR
*p
)
371 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
373 TRACE("(%p)->(%p)\n", This
, p
);
375 return get_style_attr(This
, attrFontWeight
, p
);
378 static HRESULT WINAPI
HTMLStyle_put_fontSize(IHTMLStyle
*iface
, VARIANT v
)
380 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
382 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
386 return set_style_attr(This
, attrFontSize
, V_BSTR(&v
), 0);
388 FIXME("not supported vt %d\n", V_VT(&v
));
394 static HRESULT WINAPI
HTMLStyle_get_fontSize(IHTMLStyle
*iface
, VARIANT
*p
)
396 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
398 TRACE("(%p)->(%p)\n", This
, p
);
401 return get_style_attr(This
, attrFontSize
, &V_BSTR(p
));
404 static HRESULT WINAPI
HTMLStyle_put_font(IHTMLStyle
*iface
, BSTR v
)
406 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
407 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
411 static HRESULT WINAPI
HTMLStyle_get_font(IHTMLStyle
*iface
, BSTR
*p
)
413 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
414 FIXME("(%p)->(%p)\n", This
, p
);
418 static HRESULT WINAPI
HTMLStyle_put_color(IHTMLStyle
*iface
, VARIANT v
)
420 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
421 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
425 static HRESULT WINAPI
HTMLStyle_get_color(IHTMLStyle
*iface
, VARIANT
*p
)
427 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
429 TRACE("(%p)->(%p)\n", This
, p
);
432 return get_style_attr(This
, attrColor
, &V_BSTR(p
));
435 static HRESULT WINAPI
HTMLStyle_put_background(IHTMLStyle
*iface
, BSTR v
)
437 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
438 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
442 static HRESULT WINAPI
HTMLStyle_get_background(IHTMLStyle
*iface
, BSTR
*p
)
444 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
445 FIXME("(%p)->(%p)\n", This
, p
);
449 static HRESULT WINAPI
HTMLStyle_put_backgroundColor(IHTMLStyle
*iface
, VARIANT v
)
451 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
453 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
457 return set_style_attr(This
, attrBackgroundColor
, V_BSTR(&v
), 0);
460 static const WCHAR format
[] = {'#','%','0','6','x',0};
462 wsprintfW(value
, format
, V_I4(&v
));
463 return set_style_attr(This
, attrBackgroundColor
, value
, 0);
466 FIXME("unsupported vt %d\n", V_VT(&v
));
472 static HRESULT WINAPI
HTMLStyle_get_backgroundColor(IHTMLStyle
*iface
, VARIANT
*p
)
474 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
475 FIXME("(%p)->(%p)\n", This
, p
);
479 static HRESULT WINAPI
HTMLStyle_put_backgroundImage(IHTMLStyle
*iface
, BSTR v
)
481 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
483 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
485 return set_style_attr(This
, attrBackgroundImage
, v
, ATTR_FIX_URL
);
488 static HRESULT WINAPI
HTMLStyle_get_backgroundImage(IHTMLStyle
*iface
, BSTR
*p
)
490 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
491 FIXME("(%p)->(%p)\n", This
, p
);
495 static HRESULT WINAPI
HTMLStyle_put_backgroundRepeat(IHTMLStyle
*iface
, BSTR v
)
497 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
498 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
502 static HRESULT WINAPI
HTMLStyle_get_backgroundRepeat(IHTMLStyle
*iface
, BSTR
*p
)
504 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
505 FIXME("(%p)->(%p)\n", This
, p
);
509 static HRESULT WINAPI
HTMLStyle_put_backgroundAttachment(IHTMLStyle
*iface
, BSTR v
)
511 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
512 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
516 static HRESULT WINAPI
HTMLStyle_get_backgroundAttachment(IHTMLStyle
*iface
, BSTR
*p
)
518 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
519 FIXME("(%p)->(%p)\n", This
, p
);
523 static HRESULT WINAPI
HTMLStyle_put_backgroundPosition(IHTMLStyle
*iface
, BSTR v
)
525 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
526 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
530 static HRESULT WINAPI
HTMLStyle_get_backgroundPosition(IHTMLStyle
*iface
, BSTR
*p
)
532 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
533 FIXME("(%p)->(%p)\n", This
, p
);
537 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionX(IHTMLStyle
*iface
, VARIANT v
)
539 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
540 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
544 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionX(IHTMLStyle
*iface
, VARIANT
*p
)
546 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
547 FIXME("(%p)->(%p)\n", This
, p
);
551 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionY(IHTMLStyle
*iface
, VARIANT v
)
553 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
554 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
558 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionY(IHTMLStyle
*iface
, VARIANT
*p
)
560 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
561 FIXME("(%p)->(%p)\n", This
, p
);
565 static HRESULT WINAPI
HTMLStyle_put_wordSpacing(IHTMLStyle
*iface
, VARIANT v
)
567 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
568 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
572 static HRESULT WINAPI
HTMLStyle_get_wordSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
574 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
575 FIXME("(%p)->(%p)\n", This
, p
);
579 static HRESULT WINAPI
HTMLStyle_put_letterSpacing(IHTMLStyle
*iface
, VARIANT v
)
581 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
582 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
586 static HRESULT WINAPI
HTMLStyle_get_letterSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
588 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
589 FIXME("(%p)->(%p)\n", This
, p
);
593 static HRESULT WINAPI
HTMLStyle_put_textDecoration(IHTMLStyle
*iface
, BSTR v
)
595 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
596 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
600 static HRESULT WINAPI
HTMLStyle_get_textDecoration(IHTMLStyle
*iface
, BSTR
*p
)
602 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
604 TRACE("(%p)->(%p)\n", This
, p
);
606 return get_style_attr(This
, attrTextDecoration
, p
);
609 static HRESULT WINAPI
HTMLStyle_put_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL v
)
611 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
612 FIXME("(%p)->(%x)\n", This
, v
);
616 static HRESULT WINAPI
HTMLStyle_get_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
618 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
619 FIXME("(%p)->(%p)\n", This
, p
);
623 static HRESULT WINAPI
HTMLStyle_put_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
625 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
626 FIXME("(%p)->(%x)\n", This
, v
);
630 static HRESULT WINAPI
HTMLStyle_get_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
632 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
634 TRACE("(%p)->(%p)\n", This
, p
);
636 return check_style_attr_value(This
, attrTextDecoration
, valUnderline
, p
);
639 static HRESULT WINAPI
HTMLStyle_put_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
641 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
642 FIXME("(%p)->(%x)\n", This
, v
);
646 static HRESULT WINAPI
HTMLStyle_get_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
648 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
649 FIXME("(%p)->(%p)\n", This
, p
);
653 static HRESULT WINAPI
HTMLStyle_put_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL v
)
655 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
656 FIXME("(%p)->(%x)\n", This
, v
);
660 static HRESULT WINAPI
HTMLStyle_get_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
662 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
664 TRACE("(%p)->(%p)\n", This
, p
);
666 return check_style_attr_value(This
, attrTextDecoration
, valLineThrough
, p
);
669 static HRESULT WINAPI
HTMLStyle_put_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL v
)
671 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
672 FIXME("(%p)->(%x)\n", This
, v
);
676 static HRESULT WINAPI
HTMLStyle_get_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
678 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
679 FIXME("(%p)->(%p)\n", This
, p
);
683 static HRESULT WINAPI
HTMLStyle_put_verticalAlign(IHTMLStyle
*iface
, VARIANT v
)
685 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
686 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
690 static HRESULT WINAPI
HTMLStyle_get_verticalAlign(IHTMLStyle
*iface
, VARIANT
*p
)
692 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
693 FIXME("(%p)->(%p)\n", This
, p
);
697 static HRESULT WINAPI
HTMLStyle_put_textTransform(IHTMLStyle
*iface
, BSTR v
)
699 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
700 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
704 static HRESULT WINAPI
HTMLStyle_get_textTransform(IHTMLStyle
*iface
, BSTR
*p
)
706 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
707 FIXME("(%p)->(%p)\n", This
, p
);
711 static HRESULT WINAPI
HTMLStyle_put_textAlign(IHTMLStyle
*iface
, BSTR v
)
713 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
714 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
718 static HRESULT WINAPI
HTMLStyle_get_textAlign(IHTMLStyle
*iface
, BSTR
*p
)
720 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
721 FIXME("(%p)->(%p)\n", This
, p
);
725 static HRESULT WINAPI
HTMLStyle_put_textIndent(IHTMLStyle
*iface
, VARIANT v
)
727 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
728 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
732 static HRESULT WINAPI
HTMLStyle_get_textIndent(IHTMLStyle
*iface
, VARIANT
*p
)
734 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
735 FIXME("(%p)->(%p)\n", This
, p
);
739 static HRESULT WINAPI
HTMLStyle_put_lineHeight(IHTMLStyle
*iface
, VARIANT v
)
741 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
742 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
746 static HRESULT WINAPI
HTMLStyle_get_lineHeight(IHTMLStyle
*iface
, VARIANT
*p
)
748 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
749 FIXME("(%p)->(%p)\n", This
, p
);
753 static HRESULT WINAPI
HTMLStyle_put_marginTop(IHTMLStyle
*iface
, VARIANT v
)
755 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
756 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
760 static HRESULT WINAPI
HTMLStyle_get_marginTop(IHTMLStyle
*iface
, VARIANT
*p
)
762 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
763 FIXME("(%p)->(%p)\n", This
, p
);
767 static HRESULT WINAPI
HTMLStyle_put_marginRight(IHTMLStyle
*iface
, VARIANT v
)
769 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
771 TRACE("(%p)->(v(%d))\n", This
, V_VT(&v
));
775 return set_style_attr(This
, attrMarginRight
, emptyW
, 0);
779 wsprintfW(buf
, px_formatW
, V_I4(&v
));
780 return set_style_attr(This
, attrMarginRight
, buf
, 0);
783 return set_style_attr(This
, attrMarginRight
, V_BSTR(&v
), 0);
785 FIXME("Unsupported vt=%d\n", V_VT(&v
));
791 static HRESULT WINAPI
HTMLStyle_get_marginRight(IHTMLStyle
*iface
, VARIANT
*p
)
793 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
794 FIXME("(%p)->(%p)\n", This
, p
);
798 static HRESULT WINAPI
HTMLStyle_put_marginBottom(IHTMLStyle
*iface
, VARIANT v
)
800 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
801 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
805 static HRESULT WINAPI
HTMLStyle_get_marginBottom(IHTMLStyle
*iface
, VARIANT
*p
)
807 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
808 FIXME("(%p)->(%p)\n", This
, p
);
812 static HRESULT WINAPI
HTMLStyle_put_marginLeft(IHTMLStyle
*iface
, VARIANT v
)
814 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
818 TRACE("(%p)->(NULL)\n", This
);
819 return set_style_attr(This
, attrMarginLeft
, emptyW
, 0);
823 TRACE("(%p)->(%d)\n", This
, V_I4(&v
));
825 wsprintfW(buf
, px_formatW
, V_I4(&v
));
826 return set_style_attr(This
, attrMarginLeft
, buf
, 0);
829 TRACE("(%p)->(%s)\n", This
, debugstr_w(V_BSTR(&v
)));
830 return set_style_attr(This
, attrMarginLeft
, V_BSTR(&v
), 0);
832 FIXME("Unsupported vt=%d\n", V_VT(&v
));
838 static HRESULT WINAPI
HTMLStyle_put_margin(IHTMLStyle
*iface
, BSTR v
)
840 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
841 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
845 static HRESULT WINAPI
HTMLStyle_get_margin(IHTMLStyle
*iface
, BSTR
*p
)
847 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
848 FIXME("(%p)->(%p)\n", This
, p
);
852 static HRESULT WINAPI
HTMLStyle_get_marginLeft(IHTMLStyle
*iface
, VARIANT
*p
)
854 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
855 FIXME("(%p)->(%p)\n", This
, p
);
859 static HRESULT WINAPI
HTMLStyle_put_paddingTop(IHTMLStyle
*iface
, VARIANT v
)
861 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
862 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
866 static HRESULT WINAPI
HTMLStyle_get_paddingTop(IHTMLStyle
*iface
, VARIANT
*p
)
868 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
869 FIXME("(%p)->(%p)\n", This
, p
);
873 static HRESULT WINAPI
HTMLStyle_put_paddingRight(IHTMLStyle
*iface
, VARIANT v
)
875 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
876 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
880 static HRESULT WINAPI
HTMLStyle_get_paddingRight(IHTMLStyle
*iface
, VARIANT
*p
)
882 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
883 FIXME("(%p)->(%p)\n", This
, p
);
887 static HRESULT WINAPI
HTMLStyle_put_paddingBottom(IHTMLStyle
*iface
, VARIANT v
)
889 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
890 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
894 static HRESULT WINAPI
HTMLStyle_get_paddingBottom(IHTMLStyle
*iface
, VARIANT
*p
)
896 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
897 FIXME("(%p)->(%p)\n", This
, p
);
901 static HRESULT WINAPI
HTMLStyle_put_paddingLeft(IHTMLStyle
*iface
, VARIANT v
)
903 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
905 TRACE("(%p)->(vt=%d)\n", This
, V_VT(&v
));
911 wsprintfW(buf
, px_formatW
, V_I4(&v
));
912 return set_style_attr(This
, attrPaddingLeft
, buf
, 0);
915 return set_style_attr(This
, attrPaddingLeft
, V_BSTR(&v
), 0);
917 FIXME("unsupported vt=%d\n", V_VT(&v
));
923 static HRESULT WINAPI
HTMLStyle_get_paddingLeft(IHTMLStyle
*iface
, VARIANT
*p
)
925 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
926 FIXME("(%p)->(%p)\n", This
, p
);
930 static HRESULT WINAPI
HTMLStyle_put_padding(IHTMLStyle
*iface
, BSTR v
)
932 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
933 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
937 static HRESULT WINAPI
HTMLStyle_get_padding(IHTMLStyle
*iface
, BSTR
*p
)
939 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
940 FIXME("(%p)->(%p)\n", This
, p
);
944 static HRESULT WINAPI
HTMLStyle_put_border(IHTMLStyle
*iface
, BSTR v
)
946 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
947 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
951 static HRESULT WINAPI
HTMLStyle_get_border(IHTMLStyle
*iface
, BSTR
*p
)
953 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
954 FIXME("(%p)->(%p)\n", This
, p
);
958 static HRESULT WINAPI
HTMLStyle_put_borderTop(IHTMLStyle
*iface
, BSTR v
)
960 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
961 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
965 static HRESULT WINAPI
HTMLStyle_get_borderTop(IHTMLStyle
*iface
, BSTR
*p
)
967 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
968 FIXME("(%p)->(%p)\n", This
, p
);
972 static HRESULT WINAPI
HTMLStyle_put_borderRight(IHTMLStyle
*iface
, BSTR v
)
974 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
975 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
979 static HRESULT WINAPI
HTMLStyle_get_borderRight(IHTMLStyle
*iface
, BSTR
*p
)
981 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
982 FIXME("(%p)->(%p)\n", This
, p
);
986 static HRESULT WINAPI
HTMLStyle_put_borderBottom(IHTMLStyle
*iface
, BSTR v
)
988 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
989 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
993 static HRESULT WINAPI
HTMLStyle_get_borderBottom(IHTMLStyle
*iface
, BSTR
*p
)
995 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
996 FIXME("(%p)->(%p)\n", This
, p
);
1000 static HRESULT WINAPI
HTMLStyle_put_borderLeft(IHTMLStyle
*iface
, BSTR v
)
1002 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1004 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1006 return set_style_attr(This
, attrBorderLeft
, v
, ATTR_FIX_PX
);
1009 static HRESULT WINAPI
HTMLStyle_get_borderLeft(IHTMLStyle
*iface
, BSTR
*p
)
1011 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1012 FIXME("(%p)->(%p)\n", This
, p
);
1016 static HRESULT WINAPI
HTMLStyle_put_borderColor(IHTMLStyle
*iface
, BSTR v
)
1018 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1019 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1023 static HRESULT WINAPI
HTMLStyle_get_borderColor(IHTMLStyle
*iface
, BSTR
*p
)
1025 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1026 FIXME("(%p)->(%p)\n", This
, p
);
1030 static HRESULT WINAPI
HTMLStyle_put_borderTopColor(IHTMLStyle
*iface
, VARIANT v
)
1032 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1033 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1037 static HRESULT WINAPI
HTMLStyle_get_borderTopColor(IHTMLStyle
*iface
, VARIANT
*p
)
1039 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1040 FIXME("(%p)->(%p)\n", This
, p
);
1044 static HRESULT WINAPI
HTMLStyle_put_borderRightColor(IHTMLStyle
*iface
, VARIANT v
)
1046 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1047 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1051 static HRESULT WINAPI
HTMLStyle_get_borderRightColor(IHTMLStyle
*iface
, VARIANT
*p
)
1053 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1054 FIXME("(%p)->(%p)\n", This
, p
);
1058 static HRESULT WINAPI
HTMLStyle_put_borderBottomColor(IHTMLStyle
*iface
, VARIANT v
)
1060 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1061 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1065 static HRESULT WINAPI
HTMLStyle_get_borderBottomColor(IHTMLStyle
*iface
, VARIANT
*p
)
1067 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1068 FIXME("(%p)->(%p)\n", This
, p
);
1072 static HRESULT WINAPI
HTMLStyle_put_borderLeftColor(IHTMLStyle
*iface
, VARIANT v
)
1074 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1075 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1079 static HRESULT WINAPI
HTMLStyle_get_borderLeftColor(IHTMLStyle
*iface
, VARIANT
*p
)
1081 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1082 FIXME("(%p)->(%p)\n", This
, p
);
1086 static HRESULT WINAPI
HTMLStyle_put_borderWidth(IHTMLStyle
*iface
, BSTR v
)
1088 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1089 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1093 static HRESULT WINAPI
HTMLStyle_get_borderWidth(IHTMLStyle
*iface
, BSTR
*p
)
1095 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1096 FIXME("(%p)->(%p)\n", This
, p
);
1100 static HRESULT WINAPI
HTMLStyle_put_borderTopWidth(IHTMLStyle
*iface
, VARIANT v
)
1102 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1103 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1107 static HRESULT WINAPI
HTMLStyle_get_borderTopWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1109 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1110 FIXME("(%p)->(%p)\n", This
, p
);
1114 static HRESULT WINAPI
HTMLStyle_put_borderRightWidth(IHTMLStyle
*iface
, VARIANT v
)
1116 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1117 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1121 static HRESULT WINAPI
HTMLStyle_get_borderRightWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1123 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1124 FIXME("(%p)->(%p)\n", This
, p
);
1128 static HRESULT WINAPI
HTMLStyle_put_borderBottomWidth(IHTMLStyle
*iface
, VARIANT v
)
1130 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1131 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1135 static HRESULT WINAPI
HTMLStyle_get_borderBottomWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1137 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1138 FIXME("(%p)->(%p)\n", This
, p
);
1142 static HRESULT WINAPI
HTMLStyle_put_borderLeftWidth(IHTMLStyle
*iface
, VARIANT v
)
1144 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1145 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1149 static HRESULT WINAPI
HTMLStyle_get_borderLeftWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1151 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1152 FIXME("(%p)->(%p)\n", This
, p
);
1156 static HRESULT WINAPI
HTMLStyle_put_borderStyle(IHTMLStyle
*iface
, BSTR v
)
1158 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1159 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1163 static HRESULT WINAPI
HTMLStyle_get_borderStyle(IHTMLStyle
*iface
, BSTR
*p
)
1165 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1166 FIXME("(%p)->(%p)\n", This
, p
);
1170 static HRESULT WINAPI
HTMLStyle_put_borderTopStyle(IHTMLStyle
*iface
, BSTR v
)
1172 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1173 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1177 static HRESULT WINAPI
HTMLStyle_get_borderTopStyle(IHTMLStyle
*iface
, BSTR
*p
)
1179 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1180 FIXME("(%p)->(%p)\n", This
, p
);
1184 static HRESULT WINAPI
HTMLStyle_put_borderRightStyle(IHTMLStyle
*iface
, BSTR v
)
1186 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1187 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1191 static HRESULT WINAPI
HTMLStyle_get_borderRightStyle(IHTMLStyle
*iface
, BSTR
*p
)
1193 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1194 FIXME("(%p)->(%p)\n", This
, p
);
1198 static HRESULT WINAPI
HTMLStyle_put_borderBottomStyle(IHTMLStyle
*iface
, BSTR v
)
1200 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1201 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1205 static HRESULT WINAPI
HTMLStyle_get_borderBottomStyle(IHTMLStyle
*iface
, BSTR
*p
)
1207 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1208 FIXME("(%p)->(%p)\n", This
, p
);
1212 static HRESULT WINAPI
HTMLStyle_put_borderLeftStyle(IHTMLStyle
*iface
, BSTR v
)
1214 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1215 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1219 static HRESULT WINAPI
HTMLStyle_get_borderLeftStyle(IHTMLStyle
*iface
, BSTR
*p
)
1221 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1222 FIXME("(%p)->(%p)\n", This
, p
);
1226 static HRESULT WINAPI
HTMLStyle_put_width(IHTMLStyle
*iface
, VARIANT v
)
1228 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1229 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1233 static HRESULT WINAPI
HTMLStyle_get_width(IHTMLStyle
*iface
, VARIANT
*p
)
1235 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1236 FIXME("(%p)->(%p)\n", This
, p
);
1240 static HRESULT WINAPI
HTMLStyle_put_height(IHTMLStyle
*iface
, VARIANT v
)
1242 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1243 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1247 static HRESULT WINAPI
HTMLStyle_get_height(IHTMLStyle
*iface
, VARIANT
*p
)
1249 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1250 FIXME("(%p)->(%p)\n", This
, p
);
1254 static HRESULT WINAPI
HTMLStyle_put_styleFloat(IHTMLStyle
*iface
, BSTR v
)
1256 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1257 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1261 static HRESULT WINAPI
HTMLStyle_get_styleFloat(IHTMLStyle
*iface
, BSTR
*p
)
1263 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1264 FIXME("(%p)->(%p)\n", This
, p
);
1268 static HRESULT WINAPI
HTMLStyle_put_clear(IHTMLStyle
*iface
, BSTR v
)
1270 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1271 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1275 static HRESULT WINAPI
HTMLStyle_get_clear(IHTMLStyle
*iface
, BSTR
*p
)
1277 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1278 FIXME("(%p)->(%p)\n", This
, p
);
1282 static HRESULT WINAPI
HTMLStyle_put_display(IHTMLStyle
*iface
, BSTR v
)
1284 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1286 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1288 return set_style_attr(This
, attrDisplay
, v
, 0);
1291 static HRESULT WINAPI
HTMLStyle_get_display(IHTMLStyle
*iface
, BSTR
*p
)
1293 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1295 TRACE("(%p)->(%p)\n", This
, p
);
1297 return get_style_attr(This
, attrDisplay
, p
);
1300 static HRESULT WINAPI
HTMLStyle_put_visibility(IHTMLStyle
*iface
, BSTR v
)
1302 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1304 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1306 return set_style_attr(This
, attrVisibility
, v
, 0);
1309 static HRESULT WINAPI
HTMLStyle_get_visibility(IHTMLStyle
*iface
, BSTR
*p
)
1311 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1313 TRACE("(%p)->(%p)\n", This
, p
);
1315 return get_style_attr(This
, attrVisibility
, p
);
1318 static HRESULT WINAPI
HTMLStyle_put_listStyleType(IHTMLStyle
*iface
, BSTR v
)
1320 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1321 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1325 static HRESULT WINAPI
HTMLStyle_get_listStyleType(IHTMLStyle
*iface
, BSTR
*p
)
1327 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1328 FIXME("(%p)->(%p)\n", This
, p
);
1332 static HRESULT WINAPI
HTMLStyle_put_listStylePosition(IHTMLStyle
*iface
, BSTR v
)
1334 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1335 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1339 static HRESULT WINAPI
HTMLStyle_get_listStylePosition(IHTMLStyle
*iface
, BSTR
*p
)
1341 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1342 FIXME("(%p)->(%p)\n", This
, p
);
1346 static HRESULT WINAPI
HTMLStyle_put_listStyleImage(IHTMLStyle
*iface
, BSTR v
)
1348 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1349 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1353 static HRESULT WINAPI
HTMLStyle_get_listStyleImage(IHTMLStyle
*iface
, BSTR
*p
)
1355 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1356 FIXME("(%p)->(%p)\n", This
, p
);
1360 static HRESULT WINAPI
HTMLStyle_put_listStyle(IHTMLStyle
*iface
, BSTR v
)
1362 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1363 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1367 static HRESULT WINAPI
HTMLStyle_get_listStyle(IHTMLStyle
*iface
, BSTR
*p
)
1369 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1370 FIXME("(%p)->(%p)\n", This
, p
);
1374 static HRESULT WINAPI
HTMLStyle_put_whiteSpace(IHTMLStyle
*iface
, BSTR v
)
1376 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1377 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1381 static HRESULT WINAPI
HTMLStyle_get_whiteSpace(IHTMLStyle
*iface
, BSTR
*p
)
1383 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1384 FIXME("(%p)->(%p)\n", This
, p
);
1388 static HRESULT WINAPI
HTMLStyle_put_top(IHTMLStyle
*iface
, VARIANT v
)
1390 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1391 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1395 static HRESULT WINAPI
HTMLStyle_get_top(IHTMLStyle
*iface
, VARIANT
*p
)
1397 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1398 FIXME("(%p)->(%p)\n", This
, p
);
1402 static HRESULT WINAPI
HTMLStyle_put_left(IHTMLStyle
*iface
, VARIANT v
)
1404 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1405 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1409 static HRESULT WINAPI
HTMLStyle_get_left(IHTMLStyle
*iface
, VARIANT
*p
)
1411 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1412 FIXME("(%p)->(%p)\n", This
, p
);
1416 static HRESULT WINAPI
HTMLStyle_get_position(IHTMLStyle
*iface
, BSTR
*p
)
1418 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1419 FIXME("(%p)->(%p)\n", This
, p
);
1423 static HRESULT WINAPI
HTMLStyle_put_zIndex(IHTMLStyle
*iface
, VARIANT v
)
1425 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1426 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1430 static HRESULT WINAPI
HTMLStyle_get_zIndex(IHTMLStyle
*iface
, VARIANT
*p
)
1432 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1433 FIXME("(%p)->(%p)\n", This
, p
);
1437 static HRESULT WINAPI
HTMLStyle_put_overflow(IHTMLStyle
*iface
, BSTR v
)
1439 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1440 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1444 static HRESULT WINAPI
HTMLStyle_get_overflow(IHTMLStyle
*iface
, BSTR
*p
)
1446 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1447 FIXME("(%p)->(%p)\n", This
, p
);
1451 static HRESULT WINAPI
HTMLStyle_put_pageBreakBefore(IHTMLStyle
*iface
, BSTR v
)
1453 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1454 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1458 static HRESULT WINAPI
HTMLStyle_get_pageBreakBefore(IHTMLStyle
*iface
, BSTR
*p
)
1460 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1461 FIXME("(%p)->(%p)\n", This
, p
);
1465 static HRESULT WINAPI
HTMLStyle_put_pageBreakAfter(IHTMLStyle
*iface
, BSTR v
)
1467 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1468 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1472 static HRESULT WINAPI
HTMLStyle_get_pageBreakAfter(IHTMLStyle
*iface
, BSTR
*p
)
1474 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1475 FIXME("(%p)->(%p)\n", This
, p
);
1479 static HRESULT WINAPI
HTMLStyle_put_cssText(IHTMLStyle
*iface
, BSTR v
)
1481 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1482 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1486 static HRESULT WINAPI
HTMLStyle_get_cssText(IHTMLStyle
*iface
, BSTR
*p
)
1488 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1489 FIXME("(%p)->(%p)\n", This
, p
);
1493 static HRESULT WINAPI
HTMLStyle_put_pixelTop(IHTMLStyle
*iface
, long v
)
1495 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1496 FIXME("(%p)->()\n", This
);
1500 static HRESULT WINAPI
HTMLStyle_get_pixelTop(IHTMLStyle
*iface
, long *p
)
1502 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1503 FIXME("(%p)->()\n", This
);
1507 static HRESULT WINAPI
HTMLStyle_put_pixelLeft(IHTMLStyle
*iface
, long v
)
1509 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1510 FIXME("(%p)->()\n", This
);
1514 static HRESULT WINAPI
HTMLStyle_get_pixelLeft(IHTMLStyle
*iface
, long *p
)
1516 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1517 FIXME("(%p)->()\n", This
);
1521 static HRESULT WINAPI
HTMLStyle_put_pixelWidth(IHTMLStyle
*iface
, long v
)
1523 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1524 FIXME("(%p)->()\n", This
);
1528 static HRESULT WINAPI
HTMLStyle_get_pixelWidth(IHTMLStyle
*iface
, long *p
)
1530 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1531 FIXME("(%p)->()\n", This
);
1535 static HRESULT WINAPI
HTMLStyle_put_pixelHeight(IHTMLStyle
*iface
, long v
)
1537 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1538 FIXME("(%p)->()\n", This
);
1542 static HRESULT WINAPI
HTMLStyle_get_pixelHeight(IHTMLStyle
*iface
, long *p
)
1544 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1545 FIXME("(%p)->()\n", This
);
1549 static HRESULT WINAPI
HTMLStyle_put_posTop(IHTMLStyle
*iface
, float v
)
1551 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1552 FIXME("(%p)->()\n", This
);
1556 static HRESULT WINAPI
HTMLStyle_get_posTop(IHTMLStyle
*iface
, float *p
)
1558 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1559 FIXME("(%p)->()\n", This
);
1563 static HRESULT WINAPI
HTMLStyle_put_posLeft(IHTMLStyle
*iface
, float v
)
1565 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1566 FIXME("(%p)->()\n", This
);
1570 static HRESULT WINAPI
HTMLStyle_get_posLeft(IHTMLStyle
*iface
, float *p
)
1572 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1573 FIXME("(%p)->()\n", This
);
1577 static HRESULT WINAPI
HTMLStyle_put_posWidth(IHTMLStyle
*iface
, float v
)
1579 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1580 FIXME("(%p)->()\n", This
);
1584 static HRESULT WINAPI
HTMLStyle_get_posWidth(IHTMLStyle
*iface
, float *p
)
1586 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1587 FIXME("(%p)->()\n", This
);
1591 static HRESULT WINAPI
HTMLStyle_put_posHeight(IHTMLStyle
*iface
, float v
)
1593 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1594 FIXME("(%p)->()\n", This
);
1598 static HRESULT WINAPI
HTMLStyle_get_posHeight(IHTMLStyle
*iface
, float *p
)
1600 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1601 FIXME("(%p)->()\n", This
);
1605 static HRESULT WINAPI
HTMLStyle_put_cursor(IHTMLStyle
*iface
, BSTR v
)
1607 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1608 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1612 static HRESULT WINAPI
HTMLStyle_get_cursor(IHTMLStyle
*iface
, BSTR
*p
)
1614 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1615 FIXME("(%p)->(%p)\n", This
, p
);
1619 static HRESULT WINAPI
HTMLStyle_put_clip(IHTMLStyle
*iface
, BSTR v
)
1621 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1622 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1626 static HRESULT WINAPI
HTMLStyle_get_clip(IHTMLStyle
*iface
, BSTR
*p
)
1628 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1629 FIXME("(%p)->(%p)\n", This
, p
);
1633 static HRESULT WINAPI
HTMLStyle_put_filter(IHTMLStyle
*iface
, BSTR v
)
1635 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1636 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1640 static HRESULT WINAPI
HTMLStyle_get_filter(IHTMLStyle
*iface
, BSTR
*p
)
1642 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1643 FIXME("(%p)->(%p)\n", This
, p
);
1647 static HRESULT WINAPI
HTMLStyle_setAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1648 VARIANT AttributeValue
, LONG lFlags
)
1650 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1651 FIXME("(%p)->(%s v%d %08x)\n", This
, debugstr_w(strAttributeName
),
1652 V_VT(&AttributeValue
), lFlags
);
1656 static HRESULT WINAPI
HTMLStyle_getAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1657 LONG lFlags
, VARIANT
*AttributeValue
)
1659 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1660 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1661 lFlags
, AttributeValue
);
1665 static HRESULT WINAPI
HTMLStyle_removeAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1666 LONG lFlags
, VARIANT_BOOL
*pfSuccess
)
1668 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1669 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1674 static HRESULT WINAPI
HTMLStyle_toString(IHTMLStyle
*iface
, BSTR
*String
)
1676 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1677 FIXME("(%p)->(%p)\n", This
, String
);
1681 static const IHTMLStyleVtbl HTMLStyleVtbl
= {
1682 HTMLStyle_QueryInterface
,
1685 HTMLStyle_GetTypeInfoCount
,
1686 HTMLStyle_GetTypeInfo
,
1687 HTMLStyle_GetIDsOfNames
,
1689 HTMLStyle_put_fontFamily
,
1690 HTMLStyle_get_fontFamily
,
1691 HTMLStyle_put_fontStyle
,
1692 HTMLStyle_get_fontStyle
,
1693 HTMLStyle_put_fontVariant
,
1694 HTMLStyle_get_fontVariant
,
1695 HTMLStyle_put_fontWeight
,
1696 HTMLStyle_get_fontWeight
,
1697 HTMLStyle_put_fontSize
,
1698 HTMLStyle_get_fontSize
,
1701 HTMLStyle_put_color
,
1702 HTMLStyle_get_color
,
1703 HTMLStyle_put_background
,
1704 HTMLStyle_get_background
,
1705 HTMLStyle_put_backgroundColor
,
1706 HTMLStyle_get_backgroundColor
,
1707 HTMLStyle_put_backgroundImage
,
1708 HTMLStyle_get_backgroundImage
,
1709 HTMLStyle_put_backgroundRepeat
,
1710 HTMLStyle_get_backgroundRepeat
,
1711 HTMLStyle_put_backgroundAttachment
,
1712 HTMLStyle_get_backgroundAttachment
,
1713 HTMLStyle_put_backgroundPosition
,
1714 HTMLStyle_get_backgroundPosition
,
1715 HTMLStyle_put_backgroundPositionX
,
1716 HTMLStyle_get_backgroundPositionX
,
1717 HTMLStyle_put_backgroundPositionY
,
1718 HTMLStyle_get_backgroundPositionY
,
1719 HTMLStyle_put_wordSpacing
,
1720 HTMLStyle_get_wordSpacing
,
1721 HTMLStyle_put_letterSpacing
,
1722 HTMLStyle_get_letterSpacing
,
1723 HTMLStyle_put_textDecoration
,
1724 HTMLStyle_get_textDecoration
,
1725 HTMLStyle_put_textDecorationNone
,
1726 HTMLStyle_get_textDecorationNone
,
1727 HTMLStyle_put_textDecorationUnderline
,
1728 HTMLStyle_get_textDecorationUnderline
,
1729 HTMLStyle_put_textDecorationOverline
,
1730 HTMLStyle_get_textDecorationOverline
,
1731 HTMLStyle_put_textDecorationLineThrough
,
1732 HTMLStyle_get_textDecorationLineThrough
,
1733 HTMLStyle_put_textDecorationBlink
,
1734 HTMLStyle_get_textDecorationBlink
,
1735 HTMLStyle_put_verticalAlign
,
1736 HTMLStyle_get_verticalAlign
,
1737 HTMLStyle_put_textTransform
,
1738 HTMLStyle_get_textTransform
,
1739 HTMLStyle_put_textAlign
,
1740 HTMLStyle_get_textAlign
,
1741 HTMLStyle_put_textIndent
,
1742 HTMLStyle_get_textIndent
,
1743 HTMLStyle_put_lineHeight
,
1744 HTMLStyle_get_lineHeight
,
1745 HTMLStyle_put_marginTop
,
1746 HTMLStyle_get_marginTop
,
1747 HTMLStyle_put_marginRight
,
1748 HTMLStyle_get_marginRight
,
1749 HTMLStyle_put_marginBottom
,
1750 HTMLStyle_get_marginBottom
,
1751 HTMLStyle_put_marginLeft
,
1752 HTMLStyle_get_marginLeft
,
1753 HTMLStyle_put_margin
,
1754 HTMLStyle_get_margin
,
1755 HTMLStyle_put_paddingTop
,
1756 HTMLStyle_get_paddingTop
,
1757 HTMLStyle_put_paddingRight
,
1758 HTMLStyle_get_paddingRight
,
1759 HTMLStyle_put_paddingBottom
,
1760 HTMLStyle_get_paddingBottom
,
1761 HTMLStyle_put_paddingLeft
,
1762 HTMLStyle_get_paddingLeft
,
1763 HTMLStyle_put_padding
,
1764 HTMLStyle_get_padding
,
1765 HTMLStyle_put_border
,
1766 HTMLStyle_get_border
,
1767 HTMLStyle_put_borderTop
,
1768 HTMLStyle_get_borderTop
,
1769 HTMLStyle_put_borderRight
,
1770 HTMLStyle_get_borderRight
,
1771 HTMLStyle_put_borderBottom
,
1772 HTMLStyle_get_borderBottom
,
1773 HTMLStyle_put_borderLeft
,
1774 HTMLStyle_get_borderLeft
,
1775 HTMLStyle_put_borderColor
,
1776 HTMLStyle_get_borderColor
,
1777 HTMLStyle_put_borderTopColor
,
1778 HTMLStyle_get_borderTopColor
,
1779 HTMLStyle_put_borderRightColor
,
1780 HTMLStyle_get_borderRightColor
,
1781 HTMLStyle_put_borderBottomColor
,
1782 HTMLStyle_get_borderBottomColor
,
1783 HTMLStyle_put_borderLeftColor
,
1784 HTMLStyle_get_borderLeftColor
,
1785 HTMLStyle_put_borderWidth
,
1786 HTMLStyle_get_borderWidth
,
1787 HTMLStyle_put_borderTopWidth
,
1788 HTMLStyle_get_borderTopWidth
,
1789 HTMLStyle_put_borderRightWidth
,
1790 HTMLStyle_get_borderRightWidth
,
1791 HTMLStyle_put_borderBottomWidth
,
1792 HTMLStyle_get_borderBottomWidth
,
1793 HTMLStyle_put_borderLeftWidth
,
1794 HTMLStyle_get_borderLeftWidth
,
1795 HTMLStyle_put_borderStyle
,
1796 HTMLStyle_get_borderStyle
,
1797 HTMLStyle_put_borderTopStyle
,
1798 HTMLStyle_get_borderTopStyle
,
1799 HTMLStyle_put_borderRightStyle
,
1800 HTMLStyle_get_borderRightStyle
,
1801 HTMLStyle_put_borderBottomStyle
,
1802 HTMLStyle_get_borderBottomStyle
,
1803 HTMLStyle_put_borderLeftStyle
,
1804 HTMLStyle_get_borderLeftStyle
,
1805 HTMLStyle_put_width
,
1806 HTMLStyle_get_width
,
1807 HTMLStyle_put_height
,
1808 HTMLStyle_get_height
,
1809 HTMLStyle_put_styleFloat
,
1810 HTMLStyle_get_styleFloat
,
1811 HTMLStyle_put_clear
,
1812 HTMLStyle_get_clear
,
1813 HTMLStyle_put_display
,
1814 HTMLStyle_get_display
,
1815 HTMLStyle_put_visibility
,
1816 HTMLStyle_get_visibility
,
1817 HTMLStyle_put_listStyleType
,
1818 HTMLStyle_get_listStyleType
,
1819 HTMLStyle_put_listStylePosition
,
1820 HTMLStyle_get_listStylePosition
,
1821 HTMLStyle_put_listStyleImage
,
1822 HTMLStyle_get_listStyleImage
,
1823 HTMLStyle_put_listStyle
,
1824 HTMLStyle_get_listStyle
,
1825 HTMLStyle_put_whiteSpace
,
1826 HTMLStyle_get_whiteSpace
,
1831 HTMLStyle_get_position
,
1832 HTMLStyle_put_zIndex
,
1833 HTMLStyle_get_zIndex
,
1834 HTMLStyle_put_overflow
,
1835 HTMLStyle_get_overflow
,
1836 HTMLStyle_put_pageBreakBefore
,
1837 HTMLStyle_get_pageBreakBefore
,
1838 HTMLStyle_put_pageBreakAfter
,
1839 HTMLStyle_get_pageBreakAfter
,
1840 HTMLStyle_put_cssText
,
1841 HTMLStyle_get_cssText
,
1842 HTMLStyle_put_pixelTop
,
1843 HTMLStyle_get_pixelTop
,
1844 HTMLStyle_put_pixelLeft
,
1845 HTMLStyle_get_pixelLeft
,
1846 HTMLStyle_put_pixelWidth
,
1847 HTMLStyle_get_pixelWidth
,
1848 HTMLStyle_put_pixelHeight
,
1849 HTMLStyle_get_pixelHeight
,
1850 HTMLStyle_put_posTop
,
1851 HTMLStyle_get_posTop
,
1852 HTMLStyle_put_posLeft
,
1853 HTMLStyle_get_posLeft
,
1854 HTMLStyle_put_posWidth
,
1855 HTMLStyle_get_posWidth
,
1856 HTMLStyle_put_posHeight
,
1857 HTMLStyle_get_posHeight
,
1858 HTMLStyle_put_cursor
,
1859 HTMLStyle_get_cursor
,
1862 HTMLStyle_put_filter
,
1863 HTMLStyle_get_filter
,
1864 HTMLStyle_setAttribute
,
1865 HTMLStyle_getAttribute
,
1866 HTMLStyle_removeAttribute
,
1870 static const tid_t HTMLStyle_iface_tids
[] = {
1874 static dispex_static_data_t HTMLStyle_dispex
= {
1878 HTMLStyle_iface_tids
1881 IHTMLStyle
*HTMLStyle_Create(nsIDOMCSSStyleDeclaration
*nsstyle
)
1883 HTMLStyle
*ret
= heap_alloc(sizeof(HTMLStyle
));
1885 ret
->lpHTMLStyleVtbl
= &HTMLStyleVtbl
;
1887 ret
->nsstyle
= nsstyle
;
1889 nsIDOMCSSStyleDeclaration_AddRef(nsstyle
);
1891 init_dispex(&ret
->dispex
, (IUnknown
*)HTMLSTYLE(ret
), &HTMLStyle_dispex
);
1893 return HTMLSTYLE(ret
);