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 "mshtml_private.h"
29 #include "htmlstyle.h"
31 #include "wine/debug.h"
32 #include "wine/unicode.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
36 static const WCHAR attrBackground
[] =
37 {'b','a','c','k','g','r','o','u','n','d',0};
38 static const WCHAR attrBackgroundColor
[] =
39 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
40 static const WCHAR attrBackgroundImage
[] =
41 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
42 static const WCHAR attrBorder
[] =
43 {'b','o','r','d','e','r',0};
44 static const WCHAR attrBorderLeft
[] =
45 {'b','o','r','d','e','r','-','l','e','f','t',0};
46 static const WCHAR attrColor
[] =
47 {'c','o','l','o','r',0};
48 static const WCHAR attrCursor
[] =
49 {'c','u','r','s','o','r',0};
50 static const WCHAR attrDisplay
[] =
51 {'d','i','s','p','l','a','y',0};
52 static const WCHAR attrFontFamily
[] =
53 {'f','o','n','t','-','f','a','m','i','l','y',0};
54 static const WCHAR attrFontSize
[] =
55 {'f','o','n','t','-','s','i','z','e',0};
56 static const WCHAR attrFontStyle
[] =
57 {'f','o','n','t','-','s','t','y','l','e',0};
58 static const WCHAR attrFontWeight
[] =
59 {'f','o','n','t','-','w','e','i','g','h','t',0};
60 static const WCHAR attrLeft
[] =
62 static const WCHAR attrMargin
[] =
63 {'m','a','r','g','i','n',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};
74 static const WCHAR attrWidth
[] =
75 {'w','i','d','t','h',0};
77 static const LPCWSTR style_strings
[] = {
100 static const WCHAR valLineThrough
[] =
101 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
102 static const WCHAR valUnderline
[] =
103 {'u','n','d','e','r','l','i','n','e',0};
105 static const WCHAR px_formatW
[] = {'%','d','p','x',0};
106 static const WCHAR emptyW
[] = {0};
108 static LPWSTR
fix_px_value(LPCWSTR val
)
113 while(*ptr
&& isspaceW(*ptr
))
118 while(*ptr
&& isdigitW(*ptr
))
121 if(!*ptr
|| isspaceW(*ptr
)) {
123 int len
= strlenW(val
)+1;
125 ret
= heap_alloc((len
+2)*sizeof(WCHAR
));
126 memcpy(ret
, val
, (ptr
-val
)*sizeof(WCHAR
));
132 TRACE("fixed %s -> %s\n", debugstr_w(val
), debugstr_w(ret
));
137 while(*ptr
&& !isspaceW(*ptr
))
144 static LPWSTR
fix_url_value(LPCWSTR val
)
148 static const WCHAR urlW
[] = {'u','r','l','('};
150 if(strncmpW(val
, urlW
, sizeof(urlW
)/sizeof(WCHAR
)) || !strchrW(val
, '\\'))
153 ret
= heap_strdupW(val
);
155 for(ptr
= ret
; *ptr
; ptr
++) {
163 #define ATTR_FIX_PX 1
164 #define ATTR_FIX_URL 2
166 static HRESULT
set_style_attr(HTMLStyle
*This
, styleid_t sid
, LPCWSTR value
, DWORD flags
)
168 nsAString str_name
, str_value
, str_empty
;
172 static const PRUnichar wszEmpty
[] = {0};
174 TRACE("(%p)->(%s %s)\n", This
, debugstr_w(style_strings
[sid
]), debugstr_w(value
));
176 if(flags
& ATTR_FIX_PX
)
177 val
= fix_px_value(value
);
178 if(flags
& ATTR_FIX_URL
)
179 val
= fix_url_value(value
);
181 nsAString_Init(&str_name
, style_strings
[sid
]);
182 nsAString_Init(&str_value
, val
? val
: value
);
183 nsAString_Init(&str_empty
, wszEmpty
);
186 nsres
= nsIDOMCSSStyleDeclaration_SetProperty(This
->nsstyle
, &str_name
, &str_value
, &str_empty
);
188 ERR("SetProperty failed: %08x\n", nsres
);
190 nsAString_Finish(&str_name
);
191 nsAString_Finish(&str_value
);
192 nsAString_Finish(&str_empty
);
197 static HRESULT
get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration
*nsstyle
, styleid_t sid
, nsAString
*value
)
202 nsAString_Init(&str_name
, style_strings
[sid
]);
204 nsres
= nsIDOMCSSStyleDeclaration_GetPropertyValue(nsstyle
, &str_name
, value
);
205 if(NS_FAILED(nsres
)) {
206 ERR("SetProperty failed: %08x\n", nsres
);
210 nsAString_Finish(&str_name
);
215 HRESULT
get_nsstyle_attr(nsIDOMCSSStyleDeclaration
*nsstyle
, styleid_t sid
, BSTR
*p
)
218 const PRUnichar
*value
;
220 nsAString_Init(&str_value
, NULL
);
222 get_nsstyle_attr_nsval(nsstyle
, sid
, &str_value
);
224 nsAString_GetData(&str_value
, &value
);
225 *p
= *value
? SysAllocString(value
) : NULL
;
227 nsAString_Finish(&str_value
);
229 TRACE("%s -> %s\n", debugstr_w(style_strings
[sid
]), debugstr_w(*p
));
233 static inline HRESULT
get_style_attr(HTMLStyle
*This
, styleid_t sid
, BSTR
*p
)
235 return get_nsstyle_attr(This
->nsstyle
, sid
, p
);
238 static HRESULT
check_style_attr_value(HTMLStyle
*This
, styleid_t sid
, LPCWSTR exval
, VARIANT_BOOL
*p
)
241 const PRUnichar
*value
;
243 nsAString_Init(&str_value
, NULL
);
245 get_nsstyle_attr_nsval(This
->nsstyle
, sid
, &str_value
);
247 nsAString_GetData(&str_value
, &value
);
248 *p
= strcmpW(value
, exval
) ? VARIANT_FALSE
: VARIANT_TRUE
;
249 nsAString_Finish(&str_value
);
251 TRACE("%s -> %x\n", debugstr_w(style_strings
[sid
]), *p
);
255 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
257 static HRESULT WINAPI
HTMLStyle_QueryInterface(IHTMLStyle
*iface
, REFIID riid
, void **ppv
)
259 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
263 if(IsEqualGUID(&IID_IUnknown
, riid
)) {
264 TRACE("(%p)->(IID_IUnknown %p)\n", This
, ppv
);
265 *ppv
= HTMLSTYLE(This
);
266 }else if(IsEqualGUID(&IID_IHTMLStyle
, riid
)) {
267 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This
, ppv
);
268 *ppv
= HTMLSTYLE(This
);
269 }else if(IsEqualGUID(&IID_IHTMLStyle2
, riid
)) {
270 TRACE("(%p)->(IID_IHTMLStyle2 %p)\n", This
, ppv
);
271 *ppv
= HTMLSTYLE2(This
);
272 }else if(dispex_query_interface(&This
->dispex
, riid
, ppv
)) {
273 return *ppv
? S_OK
: E_NOINTERFACE
;
277 IUnknown_AddRef((IUnknown
*)*ppv
);
281 WARN("unsupported %s\n", debugstr_guid(riid
));
282 return E_NOINTERFACE
;
285 static ULONG WINAPI
HTMLStyle_AddRef(IHTMLStyle
*iface
)
287 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
288 LONG ref
= InterlockedIncrement(&This
->ref
);
290 TRACE("(%p) ref=%d\n", This
, ref
);
295 static ULONG WINAPI
HTMLStyle_Release(IHTMLStyle
*iface
)
297 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
298 LONG ref
= InterlockedDecrement(&This
->ref
);
300 TRACE("(%p) ref=%d\n", This
, ref
);
304 nsIDOMCSSStyleDeclaration_Release(This
->nsstyle
);
311 static HRESULT WINAPI
HTMLStyle_GetTypeInfoCount(IHTMLStyle
*iface
, UINT
*pctinfo
)
313 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
314 return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This
->dispex
), pctinfo
);
317 static HRESULT WINAPI
HTMLStyle_GetTypeInfo(IHTMLStyle
*iface
, UINT iTInfo
,
318 LCID lcid
, ITypeInfo
**ppTInfo
)
320 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
321 return IDispatchEx_GetTypeInfo(DISPATCHEX(&This
->dispex
), iTInfo
, lcid
, ppTInfo
);
324 static HRESULT WINAPI
HTMLStyle_GetIDsOfNames(IHTMLStyle
*iface
, REFIID riid
,
325 LPOLESTR
*rgszNames
, UINT cNames
,
326 LCID lcid
, DISPID
*rgDispId
)
328 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
329 return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This
->dispex
), riid
, rgszNames
, cNames
, lcid
, rgDispId
);
332 static HRESULT WINAPI
HTMLStyle_Invoke(IHTMLStyle
*iface
, DISPID dispIdMember
,
333 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
334 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
336 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
337 return IDispatchEx_Invoke(DISPATCHEX(&This
->dispex
), dispIdMember
, riid
, lcid
,
338 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
341 static HRESULT WINAPI
HTMLStyle_put_fontFamily(IHTMLStyle
*iface
, BSTR v
)
343 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
345 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
347 return set_style_attr(This
, STYLEID_FONT_FAMILY
, v
, 0);
350 static HRESULT WINAPI
HTMLStyle_get_fontFamily(IHTMLStyle
*iface
, BSTR
*p
)
352 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
354 TRACE("(%p)->(%p)\n", This
, p
);
356 return get_style_attr(This
, STYLEID_FONT_FAMILY
, p
);
359 static HRESULT WINAPI
HTMLStyle_put_fontStyle(IHTMLStyle
*iface
, BSTR v
)
361 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
362 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
366 static HRESULT WINAPI
HTMLStyle_get_fontStyle(IHTMLStyle
*iface
, BSTR
*p
)
368 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
370 TRACE("(%p)->(%p)\n", This
, p
);
372 return get_style_attr(This
, STYLEID_FONT_STYLE
, p
);
375 static HRESULT WINAPI
HTMLStyle_put_fontVariant(IHTMLStyle
*iface
, BSTR v
)
377 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
378 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
382 static HRESULT WINAPI
HTMLStyle_get_fontVariant(IHTMLStyle
*iface
, BSTR
*p
)
384 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
385 FIXME("(%p)->(%p)\n", This
, p
);
389 static HRESULT WINAPI
HTMLStyle_put_fontWeight(IHTMLStyle
*iface
, BSTR v
)
391 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
392 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
396 static HRESULT WINAPI
HTMLStyle_get_fontWeight(IHTMLStyle
*iface
, BSTR
*p
)
398 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
400 TRACE("(%p)->(%p)\n", This
, p
);
402 return get_style_attr(This
, STYLEID_FONT_WEIGHT
, p
);
405 static HRESULT WINAPI
HTMLStyle_put_fontSize(IHTMLStyle
*iface
, VARIANT v
)
407 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
409 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
413 return set_style_attr(This
, STYLEID_FONT_SIZE
, V_BSTR(&v
), 0);
415 FIXME("not supported vt %d\n", V_VT(&v
));
421 static HRESULT WINAPI
HTMLStyle_get_fontSize(IHTMLStyle
*iface
, VARIANT
*p
)
423 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
425 TRACE("(%p)->(%p)\n", This
, p
);
428 return get_style_attr(This
, STYLEID_FONT_SIZE
, &V_BSTR(p
));
431 static HRESULT WINAPI
HTMLStyle_put_font(IHTMLStyle
*iface
, BSTR v
)
433 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
434 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
438 static HRESULT WINAPI
HTMLStyle_get_font(IHTMLStyle
*iface
, BSTR
*p
)
440 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
441 FIXME("(%p)->(%p)\n", This
, p
);
445 static HRESULT WINAPI
HTMLStyle_put_color(IHTMLStyle
*iface
, VARIANT v
)
447 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
449 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
453 TRACE("%s\n", debugstr_w(V_BSTR(&v
)));
454 return set_style_attr(This
, STYLEID_COLOR
, V_BSTR(&v
), 0);
457 FIXME("unsupported vt=%d\n", V_VT(&v
));
463 static HRESULT WINAPI
HTMLStyle_get_color(IHTMLStyle
*iface
, VARIANT
*p
)
465 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
467 TRACE("(%p)->(%p)\n", This
, p
);
470 return get_style_attr(This
, STYLEID_COLOR
, &V_BSTR(p
));
473 static HRESULT WINAPI
HTMLStyle_put_background(IHTMLStyle
*iface
, BSTR v
)
475 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
477 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
479 return set_style_attr(This
, STYLEID_BACKGROUND
, v
, 0);
482 static HRESULT WINAPI
HTMLStyle_get_background(IHTMLStyle
*iface
, BSTR
*p
)
484 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
486 TRACE("(%p)->(%p)\n", This
, p
);
488 return get_style_attr(This
, STYLEID_BACKGROUND
, p
);
491 static HRESULT WINAPI
HTMLStyle_put_backgroundColor(IHTMLStyle
*iface
, VARIANT v
)
493 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
495 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
499 return set_style_attr(This
, STYLEID_BACKGROUND_COLOR
, V_BSTR(&v
), 0);
502 static const WCHAR format
[] = {'#','%','0','6','x',0};
504 wsprintfW(value
, format
, V_I4(&v
));
505 return set_style_attr(This
, STYLEID_BACKGROUND_COLOR
, value
, 0);
508 FIXME("unsupported vt %d\n", V_VT(&v
));
514 static HRESULT WINAPI
HTMLStyle_get_backgroundColor(IHTMLStyle
*iface
, VARIANT
*p
)
516 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
517 FIXME("(%p)->(%p)\n", This
, p
);
521 static HRESULT WINAPI
HTMLStyle_put_backgroundImage(IHTMLStyle
*iface
, BSTR v
)
523 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
525 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
527 return set_style_attr(This
, STYLEID_BACKGROUND_IMAGE
, v
, ATTR_FIX_URL
);
530 static HRESULT WINAPI
HTMLStyle_get_backgroundImage(IHTMLStyle
*iface
, BSTR
*p
)
532 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
533 FIXME("(%p)->(%p)\n", This
, p
);
537 static HRESULT WINAPI
HTMLStyle_put_backgroundRepeat(IHTMLStyle
*iface
, BSTR v
)
539 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
540 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
544 static HRESULT WINAPI
HTMLStyle_get_backgroundRepeat(IHTMLStyle
*iface
, BSTR
*p
)
546 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
547 FIXME("(%p)->(%p)\n", This
, p
);
551 static HRESULT WINAPI
HTMLStyle_put_backgroundAttachment(IHTMLStyle
*iface
, BSTR v
)
553 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
554 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
558 static HRESULT WINAPI
HTMLStyle_get_backgroundAttachment(IHTMLStyle
*iface
, BSTR
*p
)
560 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
561 FIXME("(%p)->(%p)\n", This
, p
);
565 static HRESULT WINAPI
HTMLStyle_put_backgroundPosition(IHTMLStyle
*iface
, BSTR v
)
567 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
568 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
572 static HRESULT WINAPI
HTMLStyle_get_backgroundPosition(IHTMLStyle
*iface
, BSTR
*p
)
574 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
575 FIXME("(%p)->(%p)\n", This
, p
);
579 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionX(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_backgroundPositionX(IHTMLStyle
*iface
, VARIANT
*p
)
588 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
589 FIXME("(%p)->(%p)\n", This
, p
);
593 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionY(IHTMLStyle
*iface
, VARIANT v
)
595 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
596 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
600 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionY(IHTMLStyle
*iface
, VARIANT
*p
)
602 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
603 FIXME("(%p)->(%p)\n", This
, p
);
607 static HRESULT WINAPI
HTMLStyle_put_wordSpacing(IHTMLStyle
*iface
, VARIANT v
)
609 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
610 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
614 static HRESULT WINAPI
HTMLStyle_get_wordSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
616 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
617 FIXME("(%p)->(%p)\n", This
, p
);
621 static HRESULT WINAPI
HTMLStyle_put_letterSpacing(IHTMLStyle
*iface
, VARIANT v
)
623 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
624 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
628 static HRESULT WINAPI
HTMLStyle_get_letterSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
630 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
631 FIXME("(%p)->(%p)\n", This
, p
);
635 static HRESULT WINAPI
HTMLStyle_put_textDecoration(IHTMLStyle
*iface
, BSTR v
)
637 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
638 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
642 static HRESULT WINAPI
HTMLStyle_get_textDecoration(IHTMLStyle
*iface
, BSTR
*p
)
644 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
646 TRACE("(%p)->(%p)\n", This
, p
);
648 return get_style_attr(This
, STYLEID_TEXT_DECORATION
, p
);
651 static HRESULT WINAPI
HTMLStyle_put_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL v
)
653 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
654 FIXME("(%p)->(%x)\n", This
, v
);
658 static HRESULT WINAPI
HTMLStyle_get_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
660 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
661 FIXME("(%p)->(%p)\n", This
, p
);
665 static HRESULT WINAPI
HTMLStyle_put_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
667 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
668 FIXME("(%p)->(%x)\n", This
, v
);
672 static HRESULT WINAPI
HTMLStyle_get_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
674 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
676 TRACE("(%p)->(%p)\n", This
, p
);
678 return check_style_attr_value(This
, STYLEID_TEXT_DECORATION
, valUnderline
, p
);
681 static HRESULT WINAPI
HTMLStyle_put_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
683 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
684 FIXME("(%p)->(%x)\n", This
, v
);
688 static HRESULT WINAPI
HTMLStyle_get_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
690 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
691 FIXME("(%p)->(%p)\n", This
, p
);
695 static HRESULT WINAPI
HTMLStyle_put_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL v
)
697 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
698 FIXME("(%p)->(%x)\n", This
, v
);
702 static HRESULT WINAPI
HTMLStyle_get_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
704 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
706 TRACE("(%p)->(%p)\n", This
, p
);
708 return check_style_attr_value(This
, STYLEID_TEXT_DECORATION
, valLineThrough
, p
);
711 static HRESULT WINAPI
HTMLStyle_put_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL v
)
713 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
714 FIXME("(%p)->(%x)\n", This
, v
);
718 static HRESULT WINAPI
HTMLStyle_get_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
720 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
721 FIXME("(%p)->(%p)\n", This
, p
);
725 static HRESULT WINAPI
HTMLStyle_put_verticalAlign(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_verticalAlign(IHTMLStyle
*iface
, VARIANT
*p
)
734 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
735 FIXME("(%p)->(%p)\n", This
, p
);
739 static HRESULT WINAPI
HTMLStyle_put_textTransform(IHTMLStyle
*iface
, BSTR v
)
741 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
742 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
746 static HRESULT WINAPI
HTMLStyle_get_textTransform(IHTMLStyle
*iface
, BSTR
*p
)
748 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
749 FIXME("(%p)->(%p)\n", This
, p
);
753 static HRESULT WINAPI
HTMLStyle_put_textAlign(IHTMLStyle
*iface
, BSTR v
)
755 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
756 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
760 static HRESULT WINAPI
HTMLStyle_get_textAlign(IHTMLStyle
*iface
, BSTR
*p
)
762 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
763 FIXME("(%p)->(%p)\n", This
, p
);
767 static HRESULT WINAPI
HTMLStyle_put_textIndent(IHTMLStyle
*iface
, VARIANT v
)
769 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
770 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
774 static HRESULT WINAPI
HTMLStyle_get_textIndent(IHTMLStyle
*iface
, VARIANT
*p
)
776 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
777 FIXME("(%p)->(%p)\n", This
, p
);
781 static HRESULT WINAPI
HTMLStyle_put_lineHeight(IHTMLStyle
*iface
, VARIANT v
)
783 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
784 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
788 static HRESULT WINAPI
HTMLStyle_get_lineHeight(IHTMLStyle
*iface
, VARIANT
*p
)
790 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
791 FIXME("(%p)->(%p)\n", This
, p
);
795 static HRESULT WINAPI
HTMLStyle_put_marginTop(IHTMLStyle
*iface
, VARIANT v
)
797 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
798 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
802 static HRESULT WINAPI
HTMLStyle_get_marginTop(IHTMLStyle
*iface
, VARIANT
*p
)
804 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
805 FIXME("(%p)->(%p)\n", This
, p
);
809 static HRESULT WINAPI
HTMLStyle_put_marginRight(IHTMLStyle
*iface
, VARIANT v
)
811 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
813 TRACE("(%p)->(v(%d))\n", This
, V_VT(&v
));
817 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, emptyW
, 0);
821 wsprintfW(buf
, px_formatW
, V_I4(&v
));
822 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, buf
, 0);
825 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, V_BSTR(&v
), 0);
827 FIXME("Unsupported vt=%d\n", V_VT(&v
));
833 static HRESULT WINAPI
HTMLStyle_get_marginRight(IHTMLStyle
*iface
, VARIANT
*p
)
835 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
836 FIXME("(%p)->(%p)\n", This
, p
);
840 static HRESULT WINAPI
HTMLStyle_put_marginBottom(IHTMLStyle
*iface
, VARIANT v
)
842 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
843 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
847 static HRESULT WINAPI
HTMLStyle_get_marginBottom(IHTMLStyle
*iface
, VARIANT
*p
)
849 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
850 FIXME("(%p)->(%p)\n", This
, p
);
854 static HRESULT WINAPI
HTMLStyle_put_marginLeft(IHTMLStyle
*iface
, VARIANT v
)
856 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
860 TRACE("(%p)->(NULL)\n", This
);
861 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, emptyW
, 0);
865 TRACE("(%p)->(%d)\n", This
, V_I4(&v
));
867 wsprintfW(buf
, px_formatW
, V_I4(&v
));
868 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, buf
, 0);
871 TRACE("(%p)->(%s)\n", This
, debugstr_w(V_BSTR(&v
)));
872 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, V_BSTR(&v
), 0);
874 FIXME("Unsupported vt=%d\n", V_VT(&v
));
880 static HRESULT WINAPI
HTMLStyle_put_margin(IHTMLStyle
*iface
, BSTR v
)
882 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
884 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
886 return set_style_attr(This
, STYLEID_MARGIN
, v
, 0);
889 static HRESULT WINAPI
HTMLStyle_get_margin(IHTMLStyle
*iface
, BSTR
*p
)
891 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
893 TRACE("(%p)->(%p)\n", This
, p
);
895 return get_style_attr(This
, STYLEID_MARGIN
, p
);
898 static HRESULT WINAPI
HTMLStyle_get_marginLeft(IHTMLStyle
*iface
, VARIANT
*p
)
900 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
901 FIXME("(%p)->(%p)\n", This
, p
);
905 static HRESULT WINAPI
HTMLStyle_put_paddingTop(IHTMLStyle
*iface
, VARIANT v
)
907 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
908 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
912 static HRESULT WINAPI
HTMLStyle_get_paddingTop(IHTMLStyle
*iface
, VARIANT
*p
)
914 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
915 FIXME("(%p)->(%p)\n", This
, p
);
919 static HRESULT WINAPI
HTMLStyle_put_paddingRight(IHTMLStyle
*iface
, VARIANT v
)
921 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
922 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
926 static HRESULT WINAPI
HTMLStyle_get_paddingRight(IHTMLStyle
*iface
, VARIANT
*p
)
928 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
929 FIXME("(%p)->(%p)\n", This
, p
);
933 static HRESULT WINAPI
HTMLStyle_put_paddingBottom(IHTMLStyle
*iface
, VARIANT v
)
935 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
936 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
940 static HRESULT WINAPI
HTMLStyle_get_paddingBottom(IHTMLStyle
*iface
, VARIANT
*p
)
942 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
943 FIXME("(%p)->(%p)\n", This
, p
);
947 static HRESULT WINAPI
HTMLStyle_put_paddingLeft(IHTMLStyle
*iface
, VARIANT v
)
949 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
951 TRACE("(%p)->(vt=%d)\n", This
, V_VT(&v
));
957 wsprintfW(buf
, px_formatW
, V_I4(&v
));
958 return set_style_attr(This
, STYLEID_PADDING_LEFT
, buf
, 0);
961 return set_style_attr(This
, STYLEID_PADDING_LEFT
, V_BSTR(&v
), 0);
963 FIXME("unsupported vt=%d\n", V_VT(&v
));
969 static HRESULT WINAPI
HTMLStyle_get_paddingLeft(IHTMLStyle
*iface
, VARIANT
*p
)
971 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
972 FIXME("(%p)->(%p)\n", This
, p
);
976 static HRESULT WINAPI
HTMLStyle_put_padding(IHTMLStyle
*iface
, BSTR v
)
978 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
979 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
983 static HRESULT WINAPI
HTMLStyle_get_padding(IHTMLStyle
*iface
, BSTR
*p
)
985 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
986 FIXME("(%p)->(%p)\n", This
, p
);
990 static HRESULT WINAPI
HTMLStyle_put_border(IHTMLStyle
*iface
, BSTR v
)
992 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
994 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
996 return set_style_attr(This
, STYLEID_BORDER
, v
, 0);
999 static HRESULT WINAPI
HTMLStyle_get_border(IHTMLStyle
*iface
, BSTR
*p
)
1001 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1003 TRACE("(%p)->(%p)\n", This
, p
);
1005 return get_style_attr(This
, STYLEID_BORDER
, p
);
1008 static HRESULT WINAPI
HTMLStyle_put_borderTop(IHTMLStyle
*iface
, BSTR v
)
1010 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1011 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1015 static HRESULT WINAPI
HTMLStyle_get_borderTop(IHTMLStyle
*iface
, BSTR
*p
)
1017 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1018 FIXME("(%p)->(%p)\n", This
, p
);
1022 static HRESULT WINAPI
HTMLStyle_put_borderRight(IHTMLStyle
*iface
, BSTR v
)
1024 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1025 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1029 static HRESULT WINAPI
HTMLStyle_get_borderRight(IHTMLStyle
*iface
, BSTR
*p
)
1031 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1032 FIXME("(%p)->(%p)\n", This
, p
);
1036 static HRESULT WINAPI
HTMLStyle_put_borderBottom(IHTMLStyle
*iface
, BSTR v
)
1038 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1039 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1043 static HRESULT WINAPI
HTMLStyle_get_borderBottom(IHTMLStyle
*iface
, BSTR
*p
)
1045 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1046 FIXME("(%p)->(%p)\n", This
, p
);
1050 static HRESULT WINAPI
HTMLStyle_put_borderLeft(IHTMLStyle
*iface
, BSTR v
)
1052 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1054 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1056 return set_style_attr(This
, STYLEID_BORDER_LEFT
, v
, ATTR_FIX_PX
);
1059 static HRESULT WINAPI
HTMLStyle_get_borderLeft(IHTMLStyle
*iface
, BSTR
*p
)
1061 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1062 FIXME("(%p)->(%p)\n", This
, p
);
1066 static HRESULT WINAPI
HTMLStyle_put_borderColor(IHTMLStyle
*iface
, BSTR v
)
1068 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1069 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1073 static HRESULT WINAPI
HTMLStyle_get_borderColor(IHTMLStyle
*iface
, BSTR
*p
)
1075 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1076 FIXME("(%p)->(%p)\n", This
, p
);
1080 static HRESULT WINAPI
HTMLStyle_put_borderTopColor(IHTMLStyle
*iface
, VARIANT v
)
1082 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1083 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1087 static HRESULT WINAPI
HTMLStyle_get_borderTopColor(IHTMLStyle
*iface
, VARIANT
*p
)
1089 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1090 FIXME("(%p)->(%p)\n", This
, p
);
1094 static HRESULT WINAPI
HTMLStyle_put_borderRightColor(IHTMLStyle
*iface
, VARIANT v
)
1096 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1097 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1101 static HRESULT WINAPI
HTMLStyle_get_borderRightColor(IHTMLStyle
*iface
, VARIANT
*p
)
1103 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1104 FIXME("(%p)->(%p)\n", This
, p
);
1108 static HRESULT WINAPI
HTMLStyle_put_borderBottomColor(IHTMLStyle
*iface
, VARIANT v
)
1110 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1111 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1115 static HRESULT WINAPI
HTMLStyle_get_borderBottomColor(IHTMLStyle
*iface
, VARIANT
*p
)
1117 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1118 FIXME("(%p)->(%p)\n", This
, p
);
1122 static HRESULT WINAPI
HTMLStyle_put_borderLeftColor(IHTMLStyle
*iface
, VARIANT v
)
1124 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1125 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1129 static HRESULT WINAPI
HTMLStyle_get_borderLeftColor(IHTMLStyle
*iface
, VARIANT
*p
)
1131 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1132 FIXME("(%p)->(%p)\n", This
, p
);
1136 static HRESULT WINAPI
HTMLStyle_put_borderWidth(IHTMLStyle
*iface
, BSTR v
)
1138 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1139 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1143 static HRESULT WINAPI
HTMLStyle_get_borderWidth(IHTMLStyle
*iface
, BSTR
*p
)
1145 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1146 FIXME("(%p)->(%p)\n", This
, p
);
1150 static HRESULT WINAPI
HTMLStyle_put_borderTopWidth(IHTMLStyle
*iface
, VARIANT v
)
1152 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1153 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1157 static HRESULT WINAPI
HTMLStyle_get_borderTopWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1159 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1160 FIXME("(%p)->(%p)\n", This
, p
);
1164 static HRESULT WINAPI
HTMLStyle_put_borderRightWidth(IHTMLStyle
*iface
, VARIANT v
)
1166 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1167 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1171 static HRESULT WINAPI
HTMLStyle_get_borderRightWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1173 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1174 FIXME("(%p)->(%p)\n", This
, p
);
1178 static HRESULT WINAPI
HTMLStyle_put_borderBottomWidth(IHTMLStyle
*iface
, VARIANT v
)
1180 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1181 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1185 static HRESULT WINAPI
HTMLStyle_get_borderBottomWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1187 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1188 FIXME("(%p)->(%p)\n", This
, p
);
1192 static HRESULT WINAPI
HTMLStyle_put_borderLeftWidth(IHTMLStyle
*iface
, VARIANT v
)
1194 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1195 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1199 static HRESULT WINAPI
HTMLStyle_get_borderLeftWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1201 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1202 FIXME("(%p)->(%p)\n", This
, p
);
1206 static HRESULT WINAPI
HTMLStyle_put_borderStyle(IHTMLStyle
*iface
, BSTR v
)
1208 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1209 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1213 static HRESULT WINAPI
HTMLStyle_get_borderStyle(IHTMLStyle
*iface
, BSTR
*p
)
1215 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1216 FIXME("(%p)->(%p)\n", This
, p
);
1220 static HRESULT WINAPI
HTMLStyle_put_borderTopStyle(IHTMLStyle
*iface
, BSTR v
)
1222 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1223 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1227 static HRESULT WINAPI
HTMLStyle_get_borderTopStyle(IHTMLStyle
*iface
, BSTR
*p
)
1229 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1230 FIXME("(%p)->(%p)\n", This
, p
);
1234 static HRESULT WINAPI
HTMLStyle_put_borderRightStyle(IHTMLStyle
*iface
, BSTR v
)
1236 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1237 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1241 static HRESULT WINAPI
HTMLStyle_get_borderRightStyle(IHTMLStyle
*iface
, BSTR
*p
)
1243 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1244 FIXME("(%p)->(%p)\n", This
, p
);
1248 static HRESULT WINAPI
HTMLStyle_put_borderBottomStyle(IHTMLStyle
*iface
, BSTR v
)
1250 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1251 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1255 static HRESULT WINAPI
HTMLStyle_get_borderBottomStyle(IHTMLStyle
*iface
, BSTR
*p
)
1257 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1258 FIXME("(%p)->(%p)\n", This
, p
);
1262 static HRESULT WINAPI
HTMLStyle_put_borderLeftStyle(IHTMLStyle
*iface
, BSTR v
)
1264 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1265 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1269 static HRESULT WINAPI
HTMLStyle_get_borderLeftStyle(IHTMLStyle
*iface
, BSTR
*p
)
1271 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1272 FIXME("(%p)->(%p)\n", This
, p
);
1276 static HRESULT WINAPI
HTMLStyle_put_width(IHTMLStyle
*iface
, VARIANT v
)
1278 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1280 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
1284 TRACE("%s\n", debugstr_w(V_BSTR(&v
)));
1285 return set_style_attr(This
, STYLEID_WIDTH
, V_BSTR(&v
), 0);
1287 FIXME("unsupported vt %d\n", V_VT(&v
));
1293 static HRESULT WINAPI
HTMLStyle_get_width(IHTMLStyle
*iface
, VARIANT
*p
)
1295 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1297 TRACE("(%p)->(%p)\n", This
, p
);
1300 return get_style_attr(This
, STYLEID_WIDTH
, &V_BSTR(p
));
1303 static HRESULT WINAPI
HTMLStyle_put_height(IHTMLStyle
*iface
, VARIANT v
)
1305 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1306 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1310 static HRESULT WINAPI
HTMLStyle_get_height(IHTMLStyle
*iface
, VARIANT
*p
)
1312 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1313 FIXME("(%p)->(%p)\n", This
, p
);
1317 static HRESULT WINAPI
HTMLStyle_put_styleFloat(IHTMLStyle
*iface
, BSTR v
)
1319 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1320 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1324 static HRESULT WINAPI
HTMLStyle_get_styleFloat(IHTMLStyle
*iface
, BSTR
*p
)
1326 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1327 FIXME("(%p)->(%p)\n", This
, p
);
1331 static HRESULT WINAPI
HTMLStyle_put_clear(IHTMLStyle
*iface
, BSTR v
)
1333 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1334 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1338 static HRESULT WINAPI
HTMLStyle_get_clear(IHTMLStyle
*iface
, BSTR
*p
)
1340 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1341 FIXME("(%p)->(%p)\n", This
, p
);
1345 static HRESULT WINAPI
HTMLStyle_put_display(IHTMLStyle
*iface
, BSTR v
)
1347 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1349 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1351 return set_style_attr(This
, STYLEID_DISPLAY
, v
, 0);
1354 static HRESULT WINAPI
HTMLStyle_get_display(IHTMLStyle
*iface
, BSTR
*p
)
1356 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1358 TRACE("(%p)->(%p)\n", This
, p
);
1360 return get_style_attr(This
, STYLEID_DISPLAY
, p
);
1363 static HRESULT WINAPI
HTMLStyle_put_visibility(IHTMLStyle
*iface
, BSTR v
)
1365 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1367 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1369 return set_style_attr(This
, STYLEID_VISIBILITY
, v
, 0);
1372 static HRESULT WINAPI
HTMLStyle_get_visibility(IHTMLStyle
*iface
, BSTR
*p
)
1374 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1376 TRACE("(%p)->(%p)\n", This
, p
);
1378 return get_style_attr(This
, STYLEID_VISIBILITY
, p
);
1381 static HRESULT WINAPI
HTMLStyle_put_listStyleType(IHTMLStyle
*iface
, BSTR v
)
1383 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1384 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1388 static HRESULT WINAPI
HTMLStyle_get_listStyleType(IHTMLStyle
*iface
, BSTR
*p
)
1390 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1391 FIXME("(%p)->(%p)\n", This
, p
);
1395 static HRESULT WINAPI
HTMLStyle_put_listStylePosition(IHTMLStyle
*iface
, BSTR v
)
1397 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1398 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1402 static HRESULT WINAPI
HTMLStyle_get_listStylePosition(IHTMLStyle
*iface
, BSTR
*p
)
1404 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1405 FIXME("(%p)->(%p)\n", This
, p
);
1409 static HRESULT WINAPI
HTMLStyle_put_listStyleImage(IHTMLStyle
*iface
, BSTR v
)
1411 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1412 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1416 static HRESULT WINAPI
HTMLStyle_get_listStyleImage(IHTMLStyle
*iface
, BSTR
*p
)
1418 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1419 FIXME("(%p)->(%p)\n", This
, p
);
1423 static HRESULT WINAPI
HTMLStyle_put_listStyle(IHTMLStyle
*iface
, BSTR v
)
1425 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1426 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1430 static HRESULT WINAPI
HTMLStyle_get_listStyle(IHTMLStyle
*iface
, BSTR
*p
)
1432 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1433 FIXME("(%p)->(%p)\n", This
, p
);
1437 static HRESULT WINAPI
HTMLStyle_put_whiteSpace(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_whiteSpace(IHTMLStyle
*iface
, BSTR
*p
)
1446 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1447 FIXME("(%p)->(%p)\n", This
, p
);
1451 static HRESULT WINAPI
HTMLStyle_put_top(IHTMLStyle
*iface
, VARIANT v
)
1453 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1454 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1458 static HRESULT WINAPI
HTMLStyle_get_top(IHTMLStyle
*iface
, VARIANT
*p
)
1460 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1461 FIXME("(%p)->(%p)\n", This
, p
);
1465 static HRESULT WINAPI
HTMLStyle_put_left(IHTMLStyle
*iface
, VARIANT v
)
1467 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1469 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
1473 return set_style_attr(This
, STYLEID_LEFT
, V_BSTR(&v
), 0);
1475 FIXME("unimplemented vt %d\n", V_VT(&v
));
1482 static HRESULT WINAPI
HTMLStyle_get_left(IHTMLStyle
*iface
, VARIANT
*p
)
1484 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1488 TRACE("(%p)->(%p)\n", This
, p
);
1490 hres
= get_style_attr(This
, STYLEID_LEFT
, &ret
);
1499 static HRESULT WINAPI
HTMLStyle_get_position(IHTMLStyle
*iface
, BSTR
*p
)
1501 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1502 FIXME("(%p)->(%p)\n", This
, p
);
1506 static HRESULT WINAPI
HTMLStyle_put_zIndex(IHTMLStyle
*iface
, VARIANT v
)
1508 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1509 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1513 static HRESULT WINAPI
HTMLStyle_get_zIndex(IHTMLStyle
*iface
, VARIANT
*p
)
1515 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1516 FIXME("(%p)->(%p)\n", This
, p
);
1520 static HRESULT WINAPI
HTMLStyle_put_overflow(IHTMLStyle
*iface
, BSTR v
)
1522 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1523 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1527 static HRESULT WINAPI
HTMLStyle_get_overflow(IHTMLStyle
*iface
, BSTR
*p
)
1529 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1530 FIXME("(%p)->(%p)\n", This
, p
);
1534 static HRESULT WINAPI
HTMLStyle_put_pageBreakBefore(IHTMLStyle
*iface
, BSTR v
)
1536 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1537 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1541 static HRESULT WINAPI
HTMLStyle_get_pageBreakBefore(IHTMLStyle
*iface
, BSTR
*p
)
1543 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1544 FIXME("(%p)->(%p)\n", This
, p
);
1548 static HRESULT WINAPI
HTMLStyle_put_pageBreakAfter(IHTMLStyle
*iface
, BSTR v
)
1550 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1551 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1555 static HRESULT WINAPI
HTMLStyle_get_pageBreakAfter(IHTMLStyle
*iface
, BSTR
*p
)
1557 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1558 FIXME("(%p)->(%p)\n", This
, p
);
1562 static HRESULT WINAPI
HTMLStyle_put_cssText(IHTMLStyle
*iface
, BSTR v
)
1564 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1565 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1569 static HRESULT WINAPI
HTMLStyle_get_cssText(IHTMLStyle
*iface
, BSTR
*p
)
1571 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1572 FIXME("(%p)->(%p)\n", This
, p
);
1576 static HRESULT WINAPI
HTMLStyle_put_pixelTop(IHTMLStyle
*iface
, long v
)
1578 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1579 FIXME("(%p)->()\n", This
);
1583 static HRESULT WINAPI
HTMLStyle_get_pixelTop(IHTMLStyle
*iface
, long *p
)
1585 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1586 FIXME("(%p)->()\n", This
);
1590 static HRESULT WINAPI
HTMLStyle_put_pixelLeft(IHTMLStyle
*iface
, long v
)
1592 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1593 FIXME("(%p)->()\n", This
);
1597 static HRESULT WINAPI
HTMLStyle_get_pixelLeft(IHTMLStyle
*iface
, long *p
)
1599 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1600 FIXME("(%p)->()\n", This
);
1604 static HRESULT WINAPI
HTMLStyle_put_pixelWidth(IHTMLStyle
*iface
, long v
)
1606 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1607 FIXME("(%p)->()\n", This
);
1611 static HRESULT WINAPI
HTMLStyle_get_pixelWidth(IHTMLStyle
*iface
, long *p
)
1613 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1614 FIXME("(%p)->()\n", This
);
1618 static HRESULT WINAPI
HTMLStyle_put_pixelHeight(IHTMLStyle
*iface
, long v
)
1620 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1621 FIXME("(%p)->()\n", This
);
1625 static HRESULT WINAPI
HTMLStyle_get_pixelHeight(IHTMLStyle
*iface
, long *p
)
1627 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1628 FIXME("(%p)->()\n", This
);
1632 static HRESULT WINAPI
HTMLStyle_put_posTop(IHTMLStyle
*iface
, float v
)
1634 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1635 FIXME("(%p)->()\n", This
);
1639 static HRESULT WINAPI
HTMLStyle_get_posTop(IHTMLStyle
*iface
, float *p
)
1641 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1642 FIXME("(%p)->()\n", This
);
1646 static HRESULT WINAPI
HTMLStyle_put_posLeft(IHTMLStyle
*iface
, float v
)
1648 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1649 FIXME("(%p)->()\n", This
);
1653 static HRESULT WINAPI
HTMLStyle_get_posLeft(IHTMLStyle
*iface
, float *p
)
1655 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1656 FIXME("(%p)->()\n", This
);
1660 static HRESULT WINAPI
HTMLStyle_put_posWidth(IHTMLStyle
*iface
, float v
)
1662 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1663 FIXME("(%p)->()\n", This
);
1667 static HRESULT WINAPI
HTMLStyle_get_posWidth(IHTMLStyle
*iface
, float *p
)
1669 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1670 FIXME("(%p)->()\n", This
);
1674 static HRESULT WINAPI
HTMLStyle_put_posHeight(IHTMLStyle
*iface
, float v
)
1676 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1677 FIXME("(%p)->()\n", This
);
1681 static HRESULT WINAPI
HTMLStyle_get_posHeight(IHTMLStyle
*iface
, float *p
)
1683 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1684 FIXME("(%p)->()\n", This
);
1688 static HRESULT WINAPI
HTMLStyle_put_cursor(IHTMLStyle
*iface
, BSTR v
)
1690 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1692 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1694 return set_style_attr(This
, STYLEID_CURSOR
, v
, 0);
1697 static HRESULT WINAPI
HTMLStyle_get_cursor(IHTMLStyle
*iface
, BSTR
*p
)
1699 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1701 TRACE("(%p)->(%p)\n", This
, p
);
1703 return get_style_attr(This
, STYLEID_CURSOR
, p
);
1706 static HRESULT WINAPI
HTMLStyle_put_clip(IHTMLStyle
*iface
, BSTR v
)
1708 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1709 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1713 static HRESULT WINAPI
HTMLStyle_get_clip(IHTMLStyle
*iface
, BSTR
*p
)
1715 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1716 FIXME("(%p)->(%p)\n", This
, p
);
1720 static HRESULT WINAPI
HTMLStyle_put_filter(IHTMLStyle
*iface
, BSTR v
)
1722 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1723 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1727 static HRESULT WINAPI
HTMLStyle_get_filter(IHTMLStyle
*iface
, BSTR
*p
)
1729 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1730 FIXME("(%p)->(%p)\n", This
, p
);
1734 static HRESULT WINAPI
HTMLStyle_setAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1735 VARIANT AttributeValue
, LONG lFlags
)
1737 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1738 FIXME("(%p)->(%s v%d %08x)\n", This
, debugstr_w(strAttributeName
),
1739 V_VT(&AttributeValue
), lFlags
);
1743 static HRESULT WINAPI
HTMLStyle_getAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1744 LONG lFlags
, VARIANT
*AttributeValue
)
1746 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1747 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1748 lFlags
, AttributeValue
);
1752 static HRESULT WINAPI
HTMLStyle_removeAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1753 LONG lFlags
, VARIANT_BOOL
*pfSuccess
)
1755 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1756 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1761 static HRESULT WINAPI
HTMLStyle_toString(IHTMLStyle
*iface
, BSTR
*String
)
1763 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1764 FIXME("(%p)->(%p)\n", This
, String
);
1768 static const IHTMLStyleVtbl HTMLStyleVtbl
= {
1769 HTMLStyle_QueryInterface
,
1772 HTMLStyle_GetTypeInfoCount
,
1773 HTMLStyle_GetTypeInfo
,
1774 HTMLStyle_GetIDsOfNames
,
1776 HTMLStyle_put_fontFamily
,
1777 HTMLStyle_get_fontFamily
,
1778 HTMLStyle_put_fontStyle
,
1779 HTMLStyle_get_fontStyle
,
1780 HTMLStyle_put_fontVariant
,
1781 HTMLStyle_get_fontVariant
,
1782 HTMLStyle_put_fontWeight
,
1783 HTMLStyle_get_fontWeight
,
1784 HTMLStyle_put_fontSize
,
1785 HTMLStyle_get_fontSize
,
1788 HTMLStyle_put_color
,
1789 HTMLStyle_get_color
,
1790 HTMLStyle_put_background
,
1791 HTMLStyle_get_background
,
1792 HTMLStyle_put_backgroundColor
,
1793 HTMLStyle_get_backgroundColor
,
1794 HTMLStyle_put_backgroundImage
,
1795 HTMLStyle_get_backgroundImage
,
1796 HTMLStyle_put_backgroundRepeat
,
1797 HTMLStyle_get_backgroundRepeat
,
1798 HTMLStyle_put_backgroundAttachment
,
1799 HTMLStyle_get_backgroundAttachment
,
1800 HTMLStyle_put_backgroundPosition
,
1801 HTMLStyle_get_backgroundPosition
,
1802 HTMLStyle_put_backgroundPositionX
,
1803 HTMLStyle_get_backgroundPositionX
,
1804 HTMLStyle_put_backgroundPositionY
,
1805 HTMLStyle_get_backgroundPositionY
,
1806 HTMLStyle_put_wordSpacing
,
1807 HTMLStyle_get_wordSpacing
,
1808 HTMLStyle_put_letterSpacing
,
1809 HTMLStyle_get_letterSpacing
,
1810 HTMLStyle_put_textDecoration
,
1811 HTMLStyle_get_textDecoration
,
1812 HTMLStyle_put_textDecorationNone
,
1813 HTMLStyle_get_textDecorationNone
,
1814 HTMLStyle_put_textDecorationUnderline
,
1815 HTMLStyle_get_textDecorationUnderline
,
1816 HTMLStyle_put_textDecorationOverline
,
1817 HTMLStyle_get_textDecorationOverline
,
1818 HTMLStyle_put_textDecorationLineThrough
,
1819 HTMLStyle_get_textDecorationLineThrough
,
1820 HTMLStyle_put_textDecorationBlink
,
1821 HTMLStyle_get_textDecorationBlink
,
1822 HTMLStyle_put_verticalAlign
,
1823 HTMLStyle_get_verticalAlign
,
1824 HTMLStyle_put_textTransform
,
1825 HTMLStyle_get_textTransform
,
1826 HTMLStyle_put_textAlign
,
1827 HTMLStyle_get_textAlign
,
1828 HTMLStyle_put_textIndent
,
1829 HTMLStyle_get_textIndent
,
1830 HTMLStyle_put_lineHeight
,
1831 HTMLStyle_get_lineHeight
,
1832 HTMLStyle_put_marginTop
,
1833 HTMLStyle_get_marginTop
,
1834 HTMLStyle_put_marginRight
,
1835 HTMLStyle_get_marginRight
,
1836 HTMLStyle_put_marginBottom
,
1837 HTMLStyle_get_marginBottom
,
1838 HTMLStyle_put_marginLeft
,
1839 HTMLStyle_get_marginLeft
,
1840 HTMLStyle_put_margin
,
1841 HTMLStyle_get_margin
,
1842 HTMLStyle_put_paddingTop
,
1843 HTMLStyle_get_paddingTop
,
1844 HTMLStyle_put_paddingRight
,
1845 HTMLStyle_get_paddingRight
,
1846 HTMLStyle_put_paddingBottom
,
1847 HTMLStyle_get_paddingBottom
,
1848 HTMLStyle_put_paddingLeft
,
1849 HTMLStyle_get_paddingLeft
,
1850 HTMLStyle_put_padding
,
1851 HTMLStyle_get_padding
,
1852 HTMLStyle_put_border
,
1853 HTMLStyle_get_border
,
1854 HTMLStyle_put_borderTop
,
1855 HTMLStyle_get_borderTop
,
1856 HTMLStyle_put_borderRight
,
1857 HTMLStyle_get_borderRight
,
1858 HTMLStyle_put_borderBottom
,
1859 HTMLStyle_get_borderBottom
,
1860 HTMLStyle_put_borderLeft
,
1861 HTMLStyle_get_borderLeft
,
1862 HTMLStyle_put_borderColor
,
1863 HTMLStyle_get_borderColor
,
1864 HTMLStyle_put_borderTopColor
,
1865 HTMLStyle_get_borderTopColor
,
1866 HTMLStyle_put_borderRightColor
,
1867 HTMLStyle_get_borderRightColor
,
1868 HTMLStyle_put_borderBottomColor
,
1869 HTMLStyle_get_borderBottomColor
,
1870 HTMLStyle_put_borderLeftColor
,
1871 HTMLStyle_get_borderLeftColor
,
1872 HTMLStyle_put_borderWidth
,
1873 HTMLStyle_get_borderWidth
,
1874 HTMLStyle_put_borderTopWidth
,
1875 HTMLStyle_get_borderTopWidth
,
1876 HTMLStyle_put_borderRightWidth
,
1877 HTMLStyle_get_borderRightWidth
,
1878 HTMLStyle_put_borderBottomWidth
,
1879 HTMLStyle_get_borderBottomWidth
,
1880 HTMLStyle_put_borderLeftWidth
,
1881 HTMLStyle_get_borderLeftWidth
,
1882 HTMLStyle_put_borderStyle
,
1883 HTMLStyle_get_borderStyle
,
1884 HTMLStyle_put_borderTopStyle
,
1885 HTMLStyle_get_borderTopStyle
,
1886 HTMLStyle_put_borderRightStyle
,
1887 HTMLStyle_get_borderRightStyle
,
1888 HTMLStyle_put_borderBottomStyle
,
1889 HTMLStyle_get_borderBottomStyle
,
1890 HTMLStyle_put_borderLeftStyle
,
1891 HTMLStyle_get_borderLeftStyle
,
1892 HTMLStyle_put_width
,
1893 HTMLStyle_get_width
,
1894 HTMLStyle_put_height
,
1895 HTMLStyle_get_height
,
1896 HTMLStyle_put_styleFloat
,
1897 HTMLStyle_get_styleFloat
,
1898 HTMLStyle_put_clear
,
1899 HTMLStyle_get_clear
,
1900 HTMLStyle_put_display
,
1901 HTMLStyle_get_display
,
1902 HTMLStyle_put_visibility
,
1903 HTMLStyle_get_visibility
,
1904 HTMLStyle_put_listStyleType
,
1905 HTMLStyle_get_listStyleType
,
1906 HTMLStyle_put_listStylePosition
,
1907 HTMLStyle_get_listStylePosition
,
1908 HTMLStyle_put_listStyleImage
,
1909 HTMLStyle_get_listStyleImage
,
1910 HTMLStyle_put_listStyle
,
1911 HTMLStyle_get_listStyle
,
1912 HTMLStyle_put_whiteSpace
,
1913 HTMLStyle_get_whiteSpace
,
1918 HTMLStyle_get_position
,
1919 HTMLStyle_put_zIndex
,
1920 HTMLStyle_get_zIndex
,
1921 HTMLStyle_put_overflow
,
1922 HTMLStyle_get_overflow
,
1923 HTMLStyle_put_pageBreakBefore
,
1924 HTMLStyle_get_pageBreakBefore
,
1925 HTMLStyle_put_pageBreakAfter
,
1926 HTMLStyle_get_pageBreakAfter
,
1927 HTMLStyle_put_cssText
,
1928 HTMLStyle_get_cssText
,
1929 HTMLStyle_put_pixelTop
,
1930 HTMLStyle_get_pixelTop
,
1931 HTMLStyle_put_pixelLeft
,
1932 HTMLStyle_get_pixelLeft
,
1933 HTMLStyle_put_pixelWidth
,
1934 HTMLStyle_get_pixelWidth
,
1935 HTMLStyle_put_pixelHeight
,
1936 HTMLStyle_get_pixelHeight
,
1937 HTMLStyle_put_posTop
,
1938 HTMLStyle_get_posTop
,
1939 HTMLStyle_put_posLeft
,
1940 HTMLStyle_get_posLeft
,
1941 HTMLStyle_put_posWidth
,
1942 HTMLStyle_get_posWidth
,
1943 HTMLStyle_put_posHeight
,
1944 HTMLStyle_get_posHeight
,
1945 HTMLStyle_put_cursor
,
1946 HTMLStyle_get_cursor
,
1949 HTMLStyle_put_filter
,
1950 HTMLStyle_get_filter
,
1951 HTMLStyle_setAttribute
,
1952 HTMLStyle_getAttribute
,
1953 HTMLStyle_removeAttribute
,
1957 static const tid_t HTMLStyle_iface_tids
[] = {
1962 static dispex_static_data_t HTMLStyle_dispex
= {
1966 HTMLStyle_iface_tids
1969 IHTMLStyle
*HTMLStyle_Create(nsIDOMCSSStyleDeclaration
*nsstyle
)
1971 HTMLStyle
*ret
= heap_alloc_zero(sizeof(HTMLStyle
));
1973 ret
->lpHTMLStyleVtbl
= &HTMLStyleVtbl
;
1975 ret
->nsstyle
= nsstyle
;
1976 HTMLStyle2_Init(ret
);
1978 nsIDOMCSSStyleDeclaration_AddRef(nsstyle
);
1980 init_dispex(&ret
->dispex
, (IUnknown
*)HTMLSTYLE(ret
), &HTMLStyle_dispex
);
1982 return HTMLSTYLE(ret
);