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
29 #include "mshtml_private.h"
30 #include "htmlstyle.h"
32 #include "wine/debug.h"
33 #include "wine/unicode.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
37 static const WCHAR attrBackground
[] =
38 {'b','a','c','k','g','r','o','u','n','d',0};
39 static const WCHAR attrBackgroundColor
[] =
40 {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
41 static const WCHAR attrBackgroundImage
[] =
42 {'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
43 static const WCHAR attrBorder
[] =
44 {'b','o','r','d','e','r',0};
45 static const WCHAR attrBorderLeft
[] =
46 {'b','o','r','d','e','r','-','l','e','f','t',0};
47 static const WCHAR attrColor
[] =
48 {'c','o','l','o','r',0};
49 static const WCHAR attrCursor
[] =
50 {'c','u','r','s','o','r',0};
51 static const WCHAR attrDisplay
[] =
52 {'d','i','s','p','l','a','y',0};
53 static const WCHAR attrFilter
[] =
54 {'f','i','l','e','t','e','r',0};
55 static const WCHAR attrFontFamily
[] =
56 {'f','o','n','t','-','f','a','m','i','l','y',0};
57 static const WCHAR attrFontSize
[] =
58 {'f','o','n','t','-','s','i','z','e',0};
59 static const WCHAR attrFontStyle
[] =
60 {'f','o','n','t','-','s','t','y','l','e',0};
61 static const WCHAR attrFontWeight
[] =
62 {'f','o','n','t','-','w','e','i','g','h','t',0};
63 static const WCHAR attrHeight
[] =
64 {'h','e','i','g','h','t',0};
65 static const WCHAR attrLeft
[] =
67 static const WCHAR attrMargin
[] =
68 {'m','a','r','g','i','n',0};
69 static const WCHAR attrMarginLeft
[] =
70 {'m','a','r','g','i','n','-','l','e','f','t',0};
71 static const WCHAR attrMarginRight
[] =
72 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
73 static const WCHAR attrPaddingLeft
[] =
74 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
75 static const WCHAR attrPosition
[] =
76 {'p','o','s','i','t','i','o','n',0};
77 static const WCHAR attrTextAlign
[] =
78 {'t','e','x','t','-','a','l','i','g','n',0};
79 static const WCHAR attrTextDecoration
[] =
80 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
81 static const WCHAR attrTop
[] =
83 static const WCHAR attrVerticalAlign
[] =
84 {'v','e','r','t','i','c','a','l','-','a','l','i','g','n',0};
85 static const WCHAR attrVisibility
[] =
86 {'v','i','s','i','b','i','l','i','t','y',0};
87 static const WCHAR attrWidth
[] =
88 {'w','i','d','t','h',0};
89 static const WCHAR attrZIndex
[] =
90 {'z','-','i','n','d','e','x',0};
96 {attrBackground
, DISPID_IHTMLSTYLE_BACKGROUND
},
97 {attrBackgroundColor
, DISPID_IHTMLSTYLE_BACKGROUNDCOLOR
},
98 {attrBackgroundImage
, DISPID_IHTMLSTYLE_BACKGROUNDIMAGE
},
99 {attrBorder
, DISPID_IHTMLSTYLE_BORDER
},
100 {attrBorderLeft
, DISPID_IHTMLSTYLE_BORDERLEFT
},
101 {attrColor
, DISPID_IHTMLSTYLE_COLOR
},
102 {attrCursor
, DISPID_IHTMLSTYLE_CURSOR
},
103 {attrDisplay
, DISPID_IHTMLSTYLE_DISPLAY
},
104 {attrFilter
, DISPID_IHTMLSTYLE_FILTER
},
105 {attrFontFamily
, DISPID_IHTMLSTYLE_FONTFAMILY
},
106 {attrFontSize
, DISPID_IHTMLSTYLE_FONTSIZE
},
107 {attrFontStyle
, DISPID_IHTMLSTYLE_FONTSTYLE
},
108 {attrFontWeight
, DISPID_IHTMLSTYLE_FONTWEIGHT
},
109 {attrHeight
, DISPID_IHTMLSTYLE_HEIGHT
},
110 {attrLeft
, DISPID_IHTMLSTYLE_LEFT
},
111 {attrMargin
, DISPID_IHTMLSTYLE_MARGIN
},
112 {attrMarginLeft
, DISPID_IHTMLSTYLE_MARGINLEFT
},
113 {attrMarginRight
, DISPID_IHTMLSTYLE_MARGINRIGHT
},
114 {attrPaddingLeft
, DISPID_IHTMLSTYLE_PADDINGLEFT
},
115 {attrPosition
, DISPID_IHTMLSTYLE2_POSITION
},
116 {attrTextAlign
, DISPID_IHTMLSTYLE_TEXTALIGN
},
117 {attrTextDecoration
, DISPID_IHTMLSTYLE_TEXTDECORATION
},
118 {attrTop
, DISPID_IHTMLSTYLE_TOP
},
119 {attrVerticalAlign
, DISPID_IHTMLSTYLE_VERTICALALIGN
},
120 {attrVisibility
, DISPID_IHTMLSTYLE_VISIBILITY
},
121 {attrWidth
, DISPID_IHTMLSTYLE_WIDTH
},
122 {attrZIndex
, DISPID_IHTMLSTYLE_ZINDEX
}
125 static const WCHAR valLineThrough
[] =
126 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
127 static const WCHAR valUnderline
[] =
128 {'u','n','d','e','r','l','i','n','e',0};
130 static const WCHAR px_formatW
[] = {'%','d','p','x',0};
131 static const WCHAR emptyW
[] = {0};
133 static LPWSTR
fix_px_value(LPCWSTR val
)
138 while(*ptr
&& isspaceW(*ptr
))
143 while(*ptr
&& isdigitW(*ptr
))
146 if(!*ptr
|| isspaceW(*ptr
)) {
148 int len
= strlenW(val
)+1;
150 ret
= heap_alloc((len
+2)*sizeof(WCHAR
));
151 memcpy(ret
, val
, (ptr
-val
)*sizeof(WCHAR
));
157 TRACE("fixed %s -> %s\n", debugstr_w(val
), debugstr_w(ret
));
162 while(*ptr
&& !isspaceW(*ptr
))
169 static LPWSTR
fix_url_value(LPCWSTR val
)
173 static const WCHAR urlW
[] = {'u','r','l','('};
175 if(strncmpW(val
, urlW
, sizeof(urlW
)/sizeof(WCHAR
)) || !strchrW(val
, '\\'))
178 ret
= heap_strdupW(val
);
180 for(ptr
= ret
; *ptr
; ptr
++) {
188 #define ATTR_FIX_PX 1
189 #define ATTR_FIX_URL 2
190 #define ATTR_STR_TO_INT 4
192 HRESULT
set_nsstyle_attr(nsIDOMCSSStyleDeclaration
*nsstyle
, styleid_t sid
, LPCWSTR value
, DWORD flags
)
194 nsAString str_name
, str_value
, str_empty
;
198 static const PRUnichar wszEmpty
[] = {0};
200 if(flags
& ATTR_FIX_PX
)
201 val
= fix_px_value(value
);
202 if(flags
& ATTR_FIX_URL
)
203 val
= fix_url_value(value
);
205 nsAString_Init(&str_name
, style_tbl
[sid
].name
);
206 nsAString_Init(&str_value
, val
? val
: value
);
207 nsAString_Init(&str_empty
, wszEmpty
);
210 nsres
= nsIDOMCSSStyleDeclaration_SetProperty(nsstyle
, &str_name
, &str_value
, &str_empty
);
212 ERR("SetProperty failed: %08x\n", nsres
);
214 nsAString_Finish(&str_name
);
215 nsAString_Finish(&str_value
);
216 nsAString_Finish(&str_empty
);
221 static inline HRESULT
set_style_attr(HTMLStyle
*This
, styleid_t sid
, LPCWSTR value
, DWORD flags
)
223 return set_nsstyle_attr(This
->nsstyle
, sid
, value
, flags
);
226 static HRESULT
get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration
*nsstyle
, styleid_t sid
, nsAString
*value
)
231 nsAString_Init(&str_name
, style_tbl
[sid
].name
);
233 nsres
= nsIDOMCSSStyleDeclaration_GetPropertyValue(nsstyle
, &str_name
, value
);
234 if(NS_FAILED(nsres
)) {
235 ERR("SetProperty failed: %08x\n", nsres
);
239 nsAString_Finish(&str_name
);
244 HRESULT
get_nsstyle_attr(nsIDOMCSSStyleDeclaration
*nsstyle
, styleid_t sid
, BSTR
*p
)
247 const PRUnichar
*value
;
249 nsAString_Init(&str_value
, NULL
);
251 get_nsstyle_attr_nsval(nsstyle
, sid
, &str_value
);
253 nsAString_GetData(&str_value
, &value
);
254 *p
= *value
? SysAllocString(value
) : NULL
;
256 nsAString_Finish(&str_value
);
258 TRACE("%s -> %s\n", debugstr_w(style_tbl
[sid
].name
), debugstr_w(*p
));
262 HRESULT
get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration
*nsstyle
, styleid_t sid
, VARIANT
*p
, DWORD flags
)
265 const PRUnichar
*value
;
268 nsAString_Init(&str_value
, NULL
);
270 get_nsstyle_attr_nsval(nsstyle
, sid
, &str_value
);
272 nsAString_GetData(&str_value
, &value
);
274 if(flags
& ATTR_STR_TO_INT
) {
275 const PRUnichar
*ptr
= value
;
284 while(isdigitW(*ptr
))
285 i
= i
*10 + (*ptr
++ - '0');
289 V_I4(p
) = neg
? -i
: i
;
298 str
= SysAllocString(value
);
300 return E_OUTOFMEMORY
;
307 nsAString_Finish(&str_value
);
309 TRACE("%s -> %s\n", debugstr_w(style_tbl
[sid
].name
), debugstr_variant(p
));
313 static inline HRESULT
get_style_attr(HTMLStyle
*This
, styleid_t sid
, BSTR
*p
)
315 return get_nsstyle_attr(This
->nsstyle
, sid
, p
);
318 static HRESULT
check_style_attr_value(HTMLStyle
*This
, styleid_t sid
, LPCWSTR exval
, VARIANT_BOOL
*p
)
321 const PRUnichar
*value
;
323 nsAString_Init(&str_value
, NULL
);
325 get_nsstyle_attr_nsval(This
->nsstyle
, sid
, &str_value
);
327 nsAString_GetData(&str_value
, &value
);
328 *p
= strcmpW(value
, exval
) ? VARIANT_FALSE
: VARIANT_TRUE
;
329 nsAString_Finish(&str_value
);
331 TRACE("%s -> %x\n", debugstr_w(style_tbl
[sid
].name
), *p
);
335 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
337 static HRESULT WINAPI
HTMLStyle_QueryInterface(IHTMLStyle
*iface
, REFIID riid
, void **ppv
)
339 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
343 if(IsEqualGUID(&IID_IUnknown
, riid
)) {
344 TRACE("(%p)->(IID_IUnknown %p)\n", This
, ppv
);
345 *ppv
= HTMLSTYLE(This
);
346 }else if(IsEqualGUID(&IID_IHTMLStyle
, riid
)) {
347 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This
, ppv
);
348 *ppv
= HTMLSTYLE(This
);
349 }else if(IsEqualGUID(&IID_IHTMLStyle2
, riid
)) {
350 TRACE("(%p)->(IID_IHTMLStyle2 %p)\n", This
, ppv
);
351 *ppv
= HTMLSTYLE2(This
);
352 }else if(dispex_query_interface(&This
->dispex
, riid
, ppv
)) {
353 return *ppv
? S_OK
: E_NOINTERFACE
;
357 IUnknown_AddRef((IUnknown
*)*ppv
);
361 WARN("unsupported %s\n", debugstr_guid(riid
));
362 return E_NOINTERFACE
;
365 static ULONG WINAPI
HTMLStyle_AddRef(IHTMLStyle
*iface
)
367 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
368 LONG ref
= InterlockedIncrement(&This
->ref
);
370 TRACE("(%p) ref=%d\n", This
, ref
);
375 static ULONG WINAPI
HTMLStyle_Release(IHTMLStyle
*iface
)
377 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
378 LONG ref
= InterlockedDecrement(&This
->ref
);
380 TRACE("(%p) ref=%d\n", This
, ref
);
384 nsIDOMCSSStyleDeclaration_Release(This
->nsstyle
);
391 static HRESULT WINAPI
HTMLStyle_GetTypeInfoCount(IHTMLStyle
*iface
, UINT
*pctinfo
)
393 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
394 return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This
->dispex
), pctinfo
);
397 static HRESULT WINAPI
HTMLStyle_GetTypeInfo(IHTMLStyle
*iface
, UINT iTInfo
,
398 LCID lcid
, ITypeInfo
**ppTInfo
)
400 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
401 return IDispatchEx_GetTypeInfo(DISPATCHEX(&This
->dispex
), iTInfo
, lcid
, ppTInfo
);
404 static HRESULT WINAPI
HTMLStyle_GetIDsOfNames(IHTMLStyle
*iface
, REFIID riid
,
405 LPOLESTR
*rgszNames
, UINT cNames
,
406 LCID lcid
, DISPID
*rgDispId
)
408 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
409 return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This
->dispex
), riid
, rgszNames
, cNames
, lcid
, rgDispId
);
412 static HRESULT WINAPI
HTMLStyle_Invoke(IHTMLStyle
*iface
, DISPID dispIdMember
,
413 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
414 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
416 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
417 return IDispatchEx_Invoke(DISPATCHEX(&This
->dispex
), dispIdMember
, riid
, lcid
,
418 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
421 static HRESULT WINAPI
HTMLStyle_put_fontFamily(IHTMLStyle
*iface
, BSTR v
)
423 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
425 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
427 return set_style_attr(This
, STYLEID_FONT_FAMILY
, v
, 0);
430 static HRESULT WINAPI
HTMLStyle_get_fontFamily(IHTMLStyle
*iface
, BSTR
*p
)
432 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
434 TRACE("(%p)->(%p)\n", This
, p
);
436 return get_style_attr(This
, STYLEID_FONT_FAMILY
, p
);
439 static HRESULT WINAPI
HTMLStyle_put_fontStyle(IHTMLStyle
*iface
, BSTR v
)
441 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
442 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
446 static HRESULT WINAPI
HTMLStyle_get_fontStyle(IHTMLStyle
*iface
, BSTR
*p
)
448 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
450 TRACE("(%p)->(%p)\n", This
, p
);
452 return get_style_attr(This
, STYLEID_FONT_STYLE
, p
);
455 static HRESULT WINAPI
HTMLStyle_put_fontVariant(IHTMLStyle
*iface
, BSTR v
)
457 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
458 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
462 static HRESULT WINAPI
HTMLStyle_get_fontVariant(IHTMLStyle
*iface
, BSTR
*p
)
464 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
465 FIXME("(%p)->(%p)\n", This
, p
);
469 static HRESULT WINAPI
HTMLStyle_put_fontWeight(IHTMLStyle
*iface
, BSTR v
)
471 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
472 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
476 static HRESULT WINAPI
HTMLStyle_get_fontWeight(IHTMLStyle
*iface
, BSTR
*p
)
478 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
480 TRACE("(%p)->(%p)\n", This
, p
);
482 return get_style_attr(This
, STYLEID_FONT_WEIGHT
, p
);
485 static HRESULT WINAPI
HTMLStyle_put_fontSize(IHTMLStyle
*iface
, VARIANT v
)
487 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
489 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
493 return set_style_attr(This
, STYLEID_FONT_SIZE
, V_BSTR(&v
), 0);
495 FIXME("not supported vt %d\n", V_VT(&v
));
501 static HRESULT WINAPI
HTMLStyle_get_fontSize(IHTMLStyle
*iface
, VARIANT
*p
)
503 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
505 TRACE("(%p)->(%p)\n", This
, p
);
508 return get_style_attr(This
, STYLEID_FONT_SIZE
, &V_BSTR(p
));
511 static HRESULT WINAPI
HTMLStyle_put_font(IHTMLStyle
*iface
, BSTR v
)
513 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
514 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
518 static HRESULT WINAPI
HTMLStyle_get_font(IHTMLStyle
*iface
, BSTR
*p
)
520 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
521 FIXME("(%p)->(%p)\n", This
, p
);
525 static HRESULT WINAPI
HTMLStyle_put_color(IHTMLStyle
*iface
, VARIANT v
)
527 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
529 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
533 TRACE("%s\n", debugstr_w(V_BSTR(&v
)));
534 return set_style_attr(This
, STYLEID_COLOR
, V_BSTR(&v
), 0);
537 FIXME("unsupported vt=%d\n", V_VT(&v
));
543 static HRESULT WINAPI
HTMLStyle_get_color(IHTMLStyle
*iface
, VARIANT
*p
)
545 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
547 TRACE("(%p)->(%p)\n", This
, p
);
550 return get_style_attr(This
, STYLEID_COLOR
, &V_BSTR(p
));
553 static HRESULT WINAPI
HTMLStyle_put_background(IHTMLStyle
*iface
, BSTR v
)
555 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
557 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
559 return set_style_attr(This
, STYLEID_BACKGROUND
, v
, 0);
562 static HRESULT WINAPI
HTMLStyle_get_background(IHTMLStyle
*iface
, BSTR
*p
)
564 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
566 TRACE("(%p)->(%p)\n", This
, p
);
568 return get_style_attr(This
, STYLEID_BACKGROUND
, p
);
571 static HRESULT WINAPI
HTMLStyle_put_backgroundColor(IHTMLStyle
*iface
, VARIANT v
)
573 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
575 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
579 return set_style_attr(This
, STYLEID_BACKGROUND_COLOR
, V_BSTR(&v
), 0);
582 static const WCHAR format
[] = {'#','%','0','6','x',0};
584 wsprintfW(value
, format
, V_I4(&v
));
585 return set_style_attr(This
, STYLEID_BACKGROUND_COLOR
, value
, 0);
588 FIXME("unsupported vt %d\n", V_VT(&v
));
594 static HRESULT WINAPI
HTMLStyle_get_backgroundColor(IHTMLStyle
*iface
, VARIANT
*p
)
596 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
597 FIXME("(%p)->(%p)\n", This
, p
);
601 static HRESULT WINAPI
HTMLStyle_put_backgroundImage(IHTMLStyle
*iface
, BSTR v
)
603 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
605 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
607 return set_style_attr(This
, STYLEID_BACKGROUND_IMAGE
, v
, ATTR_FIX_URL
);
610 static HRESULT WINAPI
HTMLStyle_get_backgroundImage(IHTMLStyle
*iface
, BSTR
*p
)
612 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
613 FIXME("(%p)->(%p)\n", This
, p
);
617 static HRESULT WINAPI
HTMLStyle_put_backgroundRepeat(IHTMLStyle
*iface
, BSTR v
)
619 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
620 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
624 static HRESULT WINAPI
HTMLStyle_get_backgroundRepeat(IHTMLStyle
*iface
, BSTR
*p
)
626 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
627 FIXME("(%p)->(%p)\n", This
, p
);
631 static HRESULT WINAPI
HTMLStyle_put_backgroundAttachment(IHTMLStyle
*iface
, BSTR v
)
633 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
634 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
638 static HRESULT WINAPI
HTMLStyle_get_backgroundAttachment(IHTMLStyle
*iface
, BSTR
*p
)
640 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
641 FIXME("(%p)->(%p)\n", This
, p
);
645 static HRESULT WINAPI
HTMLStyle_put_backgroundPosition(IHTMLStyle
*iface
, BSTR v
)
647 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
648 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
652 static HRESULT WINAPI
HTMLStyle_get_backgroundPosition(IHTMLStyle
*iface
, BSTR
*p
)
654 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
655 FIXME("(%p)->(%p)\n", This
, p
);
659 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionX(IHTMLStyle
*iface
, VARIANT v
)
661 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
662 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
666 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionX(IHTMLStyle
*iface
, VARIANT
*p
)
668 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
669 FIXME("(%p)->(%p)\n", This
, p
);
673 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionY(IHTMLStyle
*iface
, VARIANT v
)
675 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
676 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
680 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionY(IHTMLStyle
*iface
, VARIANT
*p
)
682 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
683 FIXME("(%p)->(%p)\n", This
, p
);
687 static HRESULT WINAPI
HTMLStyle_put_wordSpacing(IHTMLStyle
*iface
, VARIANT v
)
689 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
690 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
694 static HRESULT WINAPI
HTMLStyle_get_wordSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
696 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
697 FIXME("(%p)->(%p)\n", This
, p
);
701 static HRESULT WINAPI
HTMLStyle_put_letterSpacing(IHTMLStyle
*iface
, VARIANT v
)
703 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
704 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
708 static HRESULT WINAPI
HTMLStyle_get_letterSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
710 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
711 FIXME("(%p)->(%p)\n", This
, p
);
715 static HRESULT WINAPI
HTMLStyle_put_textDecoration(IHTMLStyle
*iface
, BSTR v
)
717 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
718 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
722 static HRESULT WINAPI
HTMLStyle_get_textDecoration(IHTMLStyle
*iface
, BSTR
*p
)
724 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
726 TRACE("(%p)->(%p)\n", This
, p
);
728 return get_style_attr(This
, STYLEID_TEXT_DECORATION
, p
);
731 static HRESULT WINAPI
HTMLStyle_put_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL v
)
733 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
734 FIXME("(%p)->(%x)\n", This
, v
);
738 static HRESULT WINAPI
HTMLStyle_get_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
740 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
741 FIXME("(%p)->(%p)\n", This
, p
);
745 static HRESULT WINAPI
HTMLStyle_put_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
747 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
748 FIXME("(%p)->(%x)\n", This
, v
);
752 static HRESULT WINAPI
HTMLStyle_get_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
754 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
756 TRACE("(%p)->(%p)\n", This
, p
);
758 return check_style_attr_value(This
, STYLEID_TEXT_DECORATION
, valUnderline
, p
);
761 static HRESULT WINAPI
HTMLStyle_put_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
763 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
764 FIXME("(%p)->(%x)\n", This
, v
);
768 static HRESULT WINAPI
HTMLStyle_get_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
770 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
771 FIXME("(%p)->(%p)\n", This
, p
);
775 static HRESULT WINAPI
HTMLStyle_put_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL v
)
777 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
778 FIXME("(%p)->(%x)\n", This
, v
);
782 static HRESULT WINAPI
HTMLStyle_get_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
784 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
786 TRACE("(%p)->(%p)\n", This
, p
);
788 return check_style_attr_value(This
, STYLEID_TEXT_DECORATION
, valLineThrough
, p
);
791 static HRESULT WINAPI
HTMLStyle_put_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL v
)
793 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
794 FIXME("(%p)->(%x)\n", This
, v
);
798 static HRESULT WINAPI
HTMLStyle_get_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
800 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
801 FIXME("(%p)->(%p)\n", This
, p
);
805 static HRESULT WINAPI
HTMLStyle_put_verticalAlign(IHTMLStyle
*iface
, VARIANT v
)
807 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
809 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
813 return set_style_attr(This
, STYLEID_VERTICAL_ALIGN
, V_BSTR(&v
), 0);
815 FIXME("not implemented vt %d\n", V_VT(&v
));
822 static HRESULT WINAPI
HTMLStyle_get_verticalAlign(IHTMLStyle
*iface
, VARIANT
*p
)
824 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
828 TRACE("(%p)->(%p)\n", This
, p
);
830 hres
= get_style_attr(This
, STYLEID_VERTICAL_ALIGN
, &ret
);
839 static HRESULT WINAPI
HTMLStyle_put_textTransform(IHTMLStyle
*iface
, BSTR v
)
841 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
842 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
846 static HRESULT WINAPI
HTMLStyle_get_textTransform(IHTMLStyle
*iface
, BSTR
*p
)
848 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
849 FIXME("(%p)->(%p)\n", This
, p
);
853 static HRESULT WINAPI
HTMLStyle_put_textAlign(IHTMLStyle
*iface
, BSTR v
)
855 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
857 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
859 return set_style_attr(This
, STYLEID_TEXT_ALIGN
, v
, 0);
862 static HRESULT WINAPI
HTMLStyle_get_textAlign(IHTMLStyle
*iface
, BSTR
*p
)
864 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
866 TRACE("(%p)->(%p)\n", This
, p
);
868 return get_style_attr(This
, STYLEID_TEXT_ALIGN
, p
);
871 static HRESULT WINAPI
HTMLStyle_put_textIndent(IHTMLStyle
*iface
, VARIANT v
)
873 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
874 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
878 static HRESULT WINAPI
HTMLStyle_get_textIndent(IHTMLStyle
*iface
, VARIANT
*p
)
880 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
881 FIXME("(%p)->(%p)\n", This
, p
);
885 static HRESULT WINAPI
HTMLStyle_put_lineHeight(IHTMLStyle
*iface
, VARIANT v
)
887 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
888 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
892 static HRESULT WINAPI
HTMLStyle_get_lineHeight(IHTMLStyle
*iface
, VARIANT
*p
)
894 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
895 FIXME("(%p)->(%p)\n", This
, p
);
899 static HRESULT WINAPI
HTMLStyle_put_marginTop(IHTMLStyle
*iface
, VARIANT v
)
901 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
902 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
906 static HRESULT WINAPI
HTMLStyle_get_marginTop(IHTMLStyle
*iface
, VARIANT
*p
)
908 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
909 FIXME("(%p)->(%p)\n", This
, p
);
913 static HRESULT WINAPI
HTMLStyle_put_marginRight(IHTMLStyle
*iface
, VARIANT v
)
915 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
917 TRACE("(%p)->(v(%d))\n", This
, V_VT(&v
));
921 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, emptyW
, 0);
925 wsprintfW(buf
, px_formatW
, V_I4(&v
));
926 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, buf
, 0);
929 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, V_BSTR(&v
), 0);
931 FIXME("Unsupported vt=%d\n", V_VT(&v
));
937 static HRESULT WINAPI
HTMLStyle_get_marginRight(IHTMLStyle
*iface
, VARIANT
*p
)
939 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
940 FIXME("(%p)->(%p)\n", This
, p
);
944 static HRESULT WINAPI
HTMLStyle_put_marginBottom(IHTMLStyle
*iface
, VARIANT v
)
946 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
947 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
951 static HRESULT WINAPI
HTMLStyle_get_marginBottom(IHTMLStyle
*iface
, VARIANT
*p
)
953 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
954 FIXME("(%p)->(%p)\n", This
, p
);
958 static HRESULT WINAPI
HTMLStyle_put_marginLeft(IHTMLStyle
*iface
, VARIANT v
)
960 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
964 TRACE("(%p)->(NULL)\n", This
);
965 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, emptyW
, 0);
969 TRACE("(%p)->(%d)\n", This
, V_I4(&v
));
971 wsprintfW(buf
, px_formatW
, V_I4(&v
));
972 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, buf
, 0);
975 TRACE("(%p)->(%s)\n", This
, debugstr_w(V_BSTR(&v
)));
976 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, V_BSTR(&v
), 0);
978 FIXME("Unsupported vt=%d\n", V_VT(&v
));
984 static HRESULT WINAPI
HTMLStyle_put_margin(IHTMLStyle
*iface
, BSTR v
)
986 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
988 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
990 return set_style_attr(This
, STYLEID_MARGIN
, v
, 0);
993 static HRESULT WINAPI
HTMLStyle_get_margin(IHTMLStyle
*iface
, BSTR
*p
)
995 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
997 TRACE("(%p)->(%p)\n", This
, p
);
999 return get_style_attr(This
, STYLEID_MARGIN
, p
);
1002 static HRESULT WINAPI
HTMLStyle_get_marginLeft(IHTMLStyle
*iface
, VARIANT
*p
)
1004 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1005 FIXME("(%p)->(%p)\n", This
, p
);
1009 static HRESULT WINAPI
HTMLStyle_put_paddingTop(IHTMLStyle
*iface
, VARIANT v
)
1011 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1012 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1016 static HRESULT WINAPI
HTMLStyle_get_paddingTop(IHTMLStyle
*iface
, VARIANT
*p
)
1018 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1019 FIXME("(%p)->(%p)\n", This
, p
);
1023 static HRESULT WINAPI
HTMLStyle_put_paddingRight(IHTMLStyle
*iface
, VARIANT v
)
1025 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1026 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1030 static HRESULT WINAPI
HTMLStyle_get_paddingRight(IHTMLStyle
*iface
, VARIANT
*p
)
1032 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1033 FIXME("(%p)->(%p)\n", This
, p
);
1037 static HRESULT WINAPI
HTMLStyle_put_paddingBottom(IHTMLStyle
*iface
, VARIANT v
)
1039 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1040 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1044 static HRESULT WINAPI
HTMLStyle_get_paddingBottom(IHTMLStyle
*iface
, VARIANT
*p
)
1046 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1047 FIXME("(%p)->(%p)\n", This
, p
);
1051 static HRESULT WINAPI
HTMLStyle_put_paddingLeft(IHTMLStyle
*iface
, VARIANT v
)
1053 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1055 TRACE("(%p)->(vt=%d)\n", This
, V_VT(&v
));
1061 wsprintfW(buf
, px_formatW
, V_I4(&v
));
1062 return set_style_attr(This
, STYLEID_PADDING_LEFT
, buf
, 0);
1065 return set_style_attr(This
, STYLEID_PADDING_LEFT
, V_BSTR(&v
), 0);
1067 FIXME("unsupported vt=%d\n", V_VT(&v
));
1073 static HRESULT WINAPI
HTMLStyle_get_paddingLeft(IHTMLStyle
*iface
, VARIANT
*p
)
1075 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1076 FIXME("(%p)->(%p)\n", This
, p
);
1080 static HRESULT WINAPI
HTMLStyle_put_padding(IHTMLStyle
*iface
, BSTR v
)
1082 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1083 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1087 static HRESULT WINAPI
HTMLStyle_get_padding(IHTMLStyle
*iface
, BSTR
*p
)
1089 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1090 FIXME("(%p)->(%p)\n", This
, p
);
1094 static HRESULT WINAPI
HTMLStyle_put_border(IHTMLStyle
*iface
, BSTR v
)
1096 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1098 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1100 return set_style_attr(This
, STYLEID_BORDER
, v
, 0);
1103 static HRESULT WINAPI
HTMLStyle_get_border(IHTMLStyle
*iface
, BSTR
*p
)
1105 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1107 TRACE("(%p)->(%p)\n", This
, p
);
1109 return get_style_attr(This
, STYLEID_BORDER
, p
);
1112 static HRESULT WINAPI
HTMLStyle_put_borderTop(IHTMLStyle
*iface
, BSTR v
)
1114 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1115 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1119 static HRESULT WINAPI
HTMLStyle_get_borderTop(IHTMLStyle
*iface
, BSTR
*p
)
1121 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1122 FIXME("(%p)->(%p)\n", This
, p
);
1126 static HRESULT WINAPI
HTMLStyle_put_borderRight(IHTMLStyle
*iface
, BSTR v
)
1128 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1129 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1133 static HRESULT WINAPI
HTMLStyle_get_borderRight(IHTMLStyle
*iface
, BSTR
*p
)
1135 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1136 FIXME("(%p)->(%p)\n", This
, p
);
1140 static HRESULT WINAPI
HTMLStyle_put_borderBottom(IHTMLStyle
*iface
, BSTR v
)
1142 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1143 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1147 static HRESULT WINAPI
HTMLStyle_get_borderBottom(IHTMLStyle
*iface
, BSTR
*p
)
1149 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1150 FIXME("(%p)->(%p)\n", This
, p
);
1154 static HRESULT WINAPI
HTMLStyle_put_borderLeft(IHTMLStyle
*iface
, BSTR v
)
1156 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1158 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1160 return set_style_attr(This
, STYLEID_BORDER_LEFT
, v
, ATTR_FIX_PX
);
1163 static HRESULT WINAPI
HTMLStyle_get_borderLeft(IHTMLStyle
*iface
, BSTR
*p
)
1165 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1166 FIXME("(%p)->(%p)\n", This
, p
);
1170 static HRESULT WINAPI
HTMLStyle_put_borderColor(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_borderColor(IHTMLStyle
*iface
, BSTR
*p
)
1179 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1180 FIXME("(%p)->(%p)\n", This
, p
);
1184 static HRESULT WINAPI
HTMLStyle_put_borderTopColor(IHTMLStyle
*iface
, VARIANT v
)
1186 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1187 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1191 static HRESULT WINAPI
HTMLStyle_get_borderTopColor(IHTMLStyle
*iface
, VARIANT
*p
)
1193 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1194 FIXME("(%p)->(%p)\n", This
, p
);
1198 static HRESULT WINAPI
HTMLStyle_put_borderRightColor(IHTMLStyle
*iface
, VARIANT v
)
1200 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1201 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1205 static HRESULT WINAPI
HTMLStyle_get_borderRightColor(IHTMLStyle
*iface
, VARIANT
*p
)
1207 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1208 FIXME("(%p)->(%p)\n", This
, p
);
1212 static HRESULT WINAPI
HTMLStyle_put_borderBottomColor(IHTMLStyle
*iface
, VARIANT v
)
1214 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1215 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1219 static HRESULT WINAPI
HTMLStyle_get_borderBottomColor(IHTMLStyle
*iface
, VARIANT
*p
)
1221 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1222 FIXME("(%p)->(%p)\n", This
, p
);
1226 static HRESULT WINAPI
HTMLStyle_put_borderLeftColor(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_borderLeftColor(IHTMLStyle
*iface
, VARIANT
*p
)
1235 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1236 FIXME("(%p)->(%p)\n", This
, p
);
1240 static HRESULT WINAPI
HTMLStyle_put_borderWidth(IHTMLStyle
*iface
, BSTR v
)
1242 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1243 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1247 static HRESULT WINAPI
HTMLStyle_get_borderWidth(IHTMLStyle
*iface
, BSTR
*p
)
1249 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1250 FIXME("(%p)->(%p)\n", This
, p
);
1254 static HRESULT WINAPI
HTMLStyle_put_borderTopWidth(IHTMLStyle
*iface
, VARIANT v
)
1256 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1257 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1261 static HRESULT WINAPI
HTMLStyle_get_borderTopWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1263 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1264 FIXME("(%p)->(%p)\n", This
, p
);
1268 static HRESULT WINAPI
HTMLStyle_put_borderRightWidth(IHTMLStyle
*iface
, VARIANT v
)
1270 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1271 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1275 static HRESULT WINAPI
HTMLStyle_get_borderRightWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1277 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1278 FIXME("(%p)->(%p)\n", This
, p
);
1282 static HRESULT WINAPI
HTMLStyle_put_borderBottomWidth(IHTMLStyle
*iface
, VARIANT v
)
1284 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1285 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1289 static HRESULT WINAPI
HTMLStyle_get_borderBottomWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1291 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1292 FIXME("(%p)->(%p)\n", This
, p
);
1296 static HRESULT WINAPI
HTMLStyle_put_borderLeftWidth(IHTMLStyle
*iface
, VARIANT v
)
1298 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1299 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1303 static HRESULT WINAPI
HTMLStyle_get_borderLeftWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1305 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1306 FIXME("(%p)->(%p)\n", This
, p
);
1310 static HRESULT WINAPI
HTMLStyle_put_borderStyle(IHTMLStyle
*iface
, BSTR v
)
1312 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1313 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1317 static HRESULT WINAPI
HTMLStyle_get_borderStyle(IHTMLStyle
*iface
, BSTR
*p
)
1319 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1320 FIXME("(%p)->(%p)\n", This
, p
);
1324 static HRESULT WINAPI
HTMLStyle_put_borderTopStyle(IHTMLStyle
*iface
, BSTR v
)
1326 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1327 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1331 static HRESULT WINAPI
HTMLStyle_get_borderTopStyle(IHTMLStyle
*iface
, BSTR
*p
)
1333 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1334 FIXME("(%p)->(%p)\n", This
, p
);
1338 static HRESULT WINAPI
HTMLStyle_put_borderRightStyle(IHTMLStyle
*iface
, BSTR v
)
1340 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1341 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1345 static HRESULT WINAPI
HTMLStyle_get_borderRightStyle(IHTMLStyle
*iface
, BSTR
*p
)
1347 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1348 FIXME("(%p)->(%p)\n", This
, p
);
1352 static HRESULT WINAPI
HTMLStyle_put_borderBottomStyle(IHTMLStyle
*iface
, BSTR v
)
1354 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1355 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1359 static HRESULT WINAPI
HTMLStyle_get_borderBottomStyle(IHTMLStyle
*iface
, BSTR
*p
)
1361 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1362 FIXME("(%p)->(%p)\n", This
, p
);
1366 static HRESULT WINAPI
HTMLStyle_put_borderLeftStyle(IHTMLStyle
*iface
, BSTR v
)
1368 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1369 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1373 static HRESULT WINAPI
HTMLStyle_get_borderLeftStyle(IHTMLStyle
*iface
, BSTR
*p
)
1375 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1376 FIXME("(%p)->(%p)\n", This
, p
);
1380 static HRESULT WINAPI
HTMLStyle_put_width(IHTMLStyle
*iface
, VARIANT v
)
1382 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1384 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
1388 TRACE("%s\n", debugstr_w(V_BSTR(&v
)));
1389 return set_style_attr(This
, STYLEID_WIDTH
, V_BSTR(&v
), 0);
1391 FIXME("unsupported vt %d\n", V_VT(&v
));
1397 static HRESULT WINAPI
HTMLStyle_get_width(IHTMLStyle
*iface
, VARIANT
*p
)
1399 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1401 TRACE("(%p)->(%p)\n", This
, p
);
1404 return get_style_attr(This
, STYLEID_WIDTH
, &V_BSTR(p
));
1407 static HRESULT WINAPI
HTMLStyle_put_height(IHTMLStyle
*iface
, VARIANT v
)
1409 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1411 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
1415 return set_style_attr(This
, STYLEID_HEIGHT
, V_BSTR(&v
), 0);
1417 FIXME("unimplemented vt %d\n", V_VT(&v
));
1424 static HRESULT WINAPI
HTMLStyle_get_height(IHTMLStyle
*iface
, VARIANT
*p
)
1426 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1430 TRACE("(%p)->(%p)\n", This
, p
);
1432 hres
= get_style_attr(This
, STYLEID_HEIGHT
, &ret
);
1441 static HRESULT WINAPI
HTMLStyle_put_styleFloat(IHTMLStyle
*iface
, BSTR v
)
1443 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1444 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1448 static HRESULT WINAPI
HTMLStyle_get_styleFloat(IHTMLStyle
*iface
, BSTR
*p
)
1450 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1451 FIXME("(%p)->(%p)\n", This
, p
);
1455 static HRESULT WINAPI
HTMLStyle_put_clear(IHTMLStyle
*iface
, BSTR v
)
1457 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1458 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1462 static HRESULT WINAPI
HTMLStyle_get_clear(IHTMLStyle
*iface
, BSTR
*p
)
1464 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1465 FIXME("(%p)->(%p)\n", This
, p
);
1469 static HRESULT WINAPI
HTMLStyle_put_display(IHTMLStyle
*iface
, BSTR v
)
1471 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1473 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1475 return set_style_attr(This
, STYLEID_DISPLAY
, v
, 0);
1478 static HRESULT WINAPI
HTMLStyle_get_display(IHTMLStyle
*iface
, BSTR
*p
)
1480 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1482 TRACE("(%p)->(%p)\n", This
, p
);
1484 return get_style_attr(This
, STYLEID_DISPLAY
, p
);
1487 static HRESULT WINAPI
HTMLStyle_put_visibility(IHTMLStyle
*iface
, BSTR v
)
1489 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1491 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1493 return set_style_attr(This
, STYLEID_VISIBILITY
, v
, 0);
1496 static HRESULT WINAPI
HTMLStyle_get_visibility(IHTMLStyle
*iface
, BSTR
*p
)
1498 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1500 TRACE("(%p)->(%p)\n", This
, p
);
1502 return get_style_attr(This
, STYLEID_VISIBILITY
, p
);
1505 static HRESULT WINAPI
HTMLStyle_put_listStyleType(IHTMLStyle
*iface
, BSTR v
)
1507 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1508 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1512 static HRESULT WINAPI
HTMLStyle_get_listStyleType(IHTMLStyle
*iface
, BSTR
*p
)
1514 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1515 FIXME("(%p)->(%p)\n", This
, p
);
1519 static HRESULT WINAPI
HTMLStyle_put_listStylePosition(IHTMLStyle
*iface
, BSTR v
)
1521 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1522 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1526 static HRESULT WINAPI
HTMLStyle_get_listStylePosition(IHTMLStyle
*iface
, BSTR
*p
)
1528 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1529 FIXME("(%p)->(%p)\n", This
, p
);
1533 static HRESULT WINAPI
HTMLStyle_put_listStyleImage(IHTMLStyle
*iface
, BSTR v
)
1535 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1536 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1540 static HRESULT WINAPI
HTMLStyle_get_listStyleImage(IHTMLStyle
*iface
, BSTR
*p
)
1542 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1543 FIXME("(%p)->(%p)\n", This
, p
);
1547 static HRESULT WINAPI
HTMLStyle_put_listStyle(IHTMLStyle
*iface
, BSTR v
)
1549 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1550 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1554 static HRESULT WINAPI
HTMLStyle_get_listStyle(IHTMLStyle
*iface
, BSTR
*p
)
1556 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1557 FIXME("(%p)->(%p)\n", This
, p
);
1561 static HRESULT WINAPI
HTMLStyle_put_whiteSpace(IHTMLStyle
*iface
, BSTR v
)
1563 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1564 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1568 static HRESULT WINAPI
HTMLStyle_get_whiteSpace(IHTMLStyle
*iface
, BSTR
*p
)
1570 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1571 FIXME("(%p)->(%p)\n", This
, p
);
1575 static HRESULT WINAPI
HTMLStyle_put_top(IHTMLStyle
*iface
, VARIANT v
)
1577 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1579 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
1583 return set_style_attr(This
, STYLEID_TOP
, V_BSTR(&v
), 0);
1585 FIXME("unimplemented vt %d\n", V_VT(&v
));
1592 static HRESULT WINAPI
HTMLStyle_get_top(IHTMLStyle
*iface
, VARIANT
*p
)
1594 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1598 TRACE("(%p)->(%p)\n", This
, p
);
1600 hres
= get_style_attr(This
, STYLEID_TOP
, &ret
);
1609 static HRESULT WINAPI
HTMLStyle_put_left(IHTMLStyle
*iface
, VARIANT v
)
1611 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1613 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
1617 return set_style_attr(This
, STYLEID_LEFT
, V_BSTR(&v
), 0);
1619 FIXME("unimplemented vt %d\n", V_VT(&v
));
1626 static HRESULT WINAPI
HTMLStyle_get_left(IHTMLStyle
*iface
, VARIANT
*p
)
1628 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1632 TRACE("(%p)->(%p)\n", This
, p
);
1634 hres
= get_style_attr(This
, STYLEID_LEFT
, &ret
);
1643 static HRESULT WINAPI
HTMLStyle_get_position(IHTMLStyle
*iface
, BSTR
*p
)
1645 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1646 FIXME("(%p)->(%p)\n", This
, p
);
1650 static HRESULT WINAPI
HTMLStyle_put_zIndex(IHTMLStyle
*iface
, VARIANT v
)
1652 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1654 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
1658 return set_style_attr(This
, STYLEID_Z_INDEX
, V_BSTR(&v
), 0);
1660 FIXME("unimplemented vt %d\n", V_VT(&v
));
1667 static HRESULT WINAPI
HTMLStyle_get_zIndex(IHTMLStyle
*iface
, VARIANT
*p
)
1669 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1671 TRACE("(%p)->(%p)\n", This
, p
);
1673 return get_nsstyle_attr_var(This
->nsstyle
, STYLEID_Z_INDEX
, p
, ATTR_STR_TO_INT
);
1676 static HRESULT WINAPI
HTMLStyle_put_overflow(IHTMLStyle
*iface
, BSTR v
)
1678 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1679 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1683 static HRESULT WINAPI
HTMLStyle_get_overflow(IHTMLStyle
*iface
, BSTR
*p
)
1685 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1686 FIXME("(%p)->(%p)\n", This
, p
);
1690 static HRESULT WINAPI
HTMLStyle_put_pageBreakBefore(IHTMLStyle
*iface
, BSTR v
)
1692 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1693 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1697 static HRESULT WINAPI
HTMLStyle_get_pageBreakBefore(IHTMLStyle
*iface
, BSTR
*p
)
1699 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1700 FIXME("(%p)->(%p)\n", This
, p
);
1704 static HRESULT WINAPI
HTMLStyle_put_pageBreakAfter(IHTMLStyle
*iface
, BSTR v
)
1706 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1707 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1711 static HRESULT WINAPI
HTMLStyle_get_pageBreakAfter(IHTMLStyle
*iface
, BSTR
*p
)
1713 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1714 FIXME("(%p)->(%p)\n", This
, p
);
1718 static HRESULT WINAPI
HTMLStyle_put_cssText(IHTMLStyle
*iface
, BSTR v
)
1720 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1721 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1725 static HRESULT WINAPI
HTMLStyle_get_cssText(IHTMLStyle
*iface
, BSTR
*p
)
1727 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1728 FIXME("(%p)->(%p)\n", This
, p
);
1732 static HRESULT WINAPI
HTMLStyle_put_pixelTop(IHTMLStyle
*iface
, long v
)
1734 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1735 FIXME("(%p)->()\n", This
);
1739 static HRESULT WINAPI
HTMLStyle_get_pixelTop(IHTMLStyle
*iface
, long *p
)
1741 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1742 FIXME("(%p)->()\n", This
);
1746 static HRESULT WINAPI
HTMLStyle_put_pixelLeft(IHTMLStyle
*iface
, long v
)
1748 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1749 FIXME("(%p)->()\n", This
);
1753 static HRESULT WINAPI
HTMLStyle_get_pixelLeft(IHTMLStyle
*iface
, long *p
)
1755 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1756 FIXME("(%p)->()\n", This
);
1760 static HRESULT WINAPI
HTMLStyle_put_pixelWidth(IHTMLStyle
*iface
, long v
)
1762 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1763 FIXME("(%p)->()\n", This
);
1767 static HRESULT WINAPI
HTMLStyle_get_pixelWidth(IHTMLStyle
*iface
, long *p
)
1769 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1770 FIXME("(%p)->()\n", This
);
1774 static HRESULT WINAPI
HTMLStyle_put_pixelHeight(IHTMLStyle
*iface
, long v
)
1776 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1777 FIXME("(%p)->()\n", This
);
1781 static HRESULT WINAPI
HTMLStyle_get_pixelHeight(IHTMLStyle
*iface
, long *p
)
1783 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1784 FIXME("(%p)->()\n", This
);
1788 static HRESULT WINAPI
HTMLStyle_put_posTop(IHTMLStyle
*iface
, float v
)
1790 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1791 FIXME("(%p)->()\n", This
);
1795 static HRESULT WINAPI
HTMLStyle_get_posTop(IHTMLStyle
*iface
, float *p
)
1797 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1798 FIXME("(%p)->()\n", This
);
1802 static HRESULT WINAPI
HTMLStyle_put_posLeft(IHTMLStyle
*iface
, float v
)
1804 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1805 FIXME("(%p)->()\n", This
);
1809 static HRESULT WINAPI
HTMLStyle_get_posLeft(IHTMLStyle
*iface
, float *p
)
1811 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1812 FIXME("(%p)->()\n", This
);
1816 static HRESULT WINAPI
HTMLStyle_put_posWidth(IHTMLStyle
*iface
, float v
)
1818 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1819 FIXME("(%p)->()\n", This
);
1823 static HRESULT WINAPI
HTMLStyle_get_posWidth(IHTMLStyle
*iface
, float *p
)
1825 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1826 FIXME("(%p)->()\n", This
);
1830 static HRESULT WINAPI
HTMLStyle_put_posHeight(IHTMLStyle
*iface
, float v
)
1832 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1833 FIXME("(%p)->()\n", This
);
1837 static HRESULT WINAPI
HTMLStyle_get_posHeight(IHTMLStyle
*iface
, float *p
)
1839 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1840 FIXME("(%p)->()\n", This
);
1844 static HRESULT WINAPI
HTMLStyle_put_cursor(IHTMLStyle
*iface
, BSTR v
)
1846 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1848 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1850 return set_style_attr(This
, STYLEID_CURSOR
, v
, 0);
1853 static HRESULT WINAPI
HTMLStyle_get_cursor(IHTMLStyle
*iface
, BSTR
*p
)
1855 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1857 TRACE("(%p)->(%p)\n", This
, p
);
1859 return get_style_attr(This
, STYLEID_CURSOR
, p
);
1862 static HRESULT WINAPI
HTMLStyle_put_clip(IHTMLStyle
*iface
, BSTR v
)
1864 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1865 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1869 static HRESULT WINAPI
HTMLStyle_get_clip(IHTMLStyle
*iface
, BSTR
*p
)
1871 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1872 FIXME("(%p)->(%p)\n", This
, p
);
1876 static HRESULT WINAPI
HTMLStyle_put_filter(IHTMLStyle
*iface
, BSTR v
)
1878 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1880 WARN("(%p)->(%s)\n", This
, debugstr_w(v
));
1882 /* FIXME: Handle MS-style filters */
1883 return set_style_attr(This
, STYLEID_FILTER
, v
, 0);
1886 static HRESULT WINAPI
HTMLStyle_get_filter(IHTMLStyle
*iface
, BSTR
*p
)
1888 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1890 WARN("(%p)->(%p)\n", This
, p
);
1892 /* FIXME: Handle MS-style filters */
1893 return get_style_attr(This
, STYLEID_FILTER
, p
);
1896 static HRESULT WINAPI
HTMLStyle_setAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1897 VARIANT AttributeValue
, LONG lFlags
)
1899 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1900 FIXME("(%p)->(%s v%d %08x)\n", This
, debugstr_w(strAttributeName
),
1901 V_VT(&AttributeValue
), lFlags
);
1905 static HRESULT WINAPI
HTMLStyle_getAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1906 LONG lFlags
, VARIANT
*AttributeValue
)
1908 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1909 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1910 lFlags
, AttributeValue
);
1914 static HRESULT WINAPI
HTMLStyle_removeAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1915 LONG lFlags
, VARIANT_BOOL
*pfSuccess
)
1917 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1918 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1923 static HRESULT WINAPI
HTMLStyle_toString(IHTMLStyle
*iface
, BSTR
*String
)
1925 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1926 FIXME("(%p)->(%p)\n", This
, String
);
1930 static HRESULT
HTMLStyle_get_dispid(IUnknown
*iface
, BSTR name
, DWORD flags
, DISPID
*dispid
)
1932 int c
, i
, min
=0, max
= sizeof(style_tbl
)/sizeof(*style_tbl
)-1;
1937 c
= strcmpW(style_tbl
[i
].name
, name
);
1939 *dispid
= style_tbl
[i
].dispid
;
1949 return DISP_E_UNKNOWNNAME
;
1952 static const IHTMLStyleVtbl HTMLStyleVtbl
= {
1953 HTMLStyle_QueryInterface
,
1956 HTMLStyle_GetTypeInfoCount
,
1957 HTMLStyle_GetTypeInfo
,
1958 HTMLStyle_GetIDsOfNames
,
1960 HTMLStyle_put_fontFamily
,
1961 HTMLStyle_get_fontFamily
,
1962 HTMLStyle_put_fontStyle
,
1963 HTMLStyle_get_fontStyle
,
1964 HTMLStyle_put_fontVariant
,
1965 HTMLStyle_get_fontVariant
,
1966 HTMLStyle_put_fontWeight
,
1967 HTMLStyle_get_fontWeight
,
1968 HTMLStyle_put_fontSize
,
1969 HTMLStyle_get_fontSize
,
1972 HTMLStyle_put_color
,
1973 HTMLStyle_get_color
,
1974 HTMLStyle_put_background
,
1975 HTMLStyle_get_background
,
1976 HTMLStyle_put_backgroundColor
,
1977 HTMLStyle_get_backgroundColor
,
1978 HTMLStyle_put_backgroundImage
,
1979 HTMLStyle_get_backgroundImage
,
1980 HTMLStyle_put_backgroundRepeat
,
1981 HTMLStyle_get_backgroundRepeat
,
1982 HTMLStyle_put_backgroundAttachment
,
1983 HTMLStyle_get_backgroundAttachment
,
1984 HTMLStyle_put_backgroundPosition
,
1985 HTMLStyle_get_backgroundPosition
,
1986 HTMLStyle_put_backgroundPositionX
,
1987 HTMLStyle_get_backgroundPositionX
,
1988 HTMLStyle_put_backgroundPositionY
,
1989 HTMLStyle_get_backgroundPositionY
,
1990 HTMLStyle_put_wordSpacing
,
1991 HTMLStyle_get_wordSpacing
,
1992 HTMLStyle_put_letterSpacing
,
1993 HTMLStyle_get_letterSpacing
,
1994 HTMLStyle_put_textDecoration
,
1995 HTMLStyle_get_textDecoration
,
1996 HTMLStyle_put_textDecorationNone
,
1997 HTMLStyle_get_textDecorationNone
,
1998 HTMLStyle_put_textDecorationUnderline
,
1999 HTMLStyle_get_textDecorationUnderline
,
2000 HTMLStyle_put_textDecorationOverline
,
2001 HTMLStyle_get_textDecorationOverline
,
2002 HTMLStyle_put_textDecorationLineThrough
,
2003 HTMLStyle_get_textDecorationLineThrough
,
2004 HTMLStyle_put_textDecorationBlink
,
2005 HTMLStyle_get_textDecorationBlink
,
2006 HTMLStyle_put_verticalAlign
,
2007 HTMLStyle_get_verticalAlign
,
2008 HTMLStyle_put_textTransform
,
2009 HTMLStyle_get_textTransform
,
2010 HTMLStyle_put_textAlign
,
2011 HTMLStyle_get_textAlign
,
2012 HTMLStyle_put_textIndent
,
2013 HTMLStyle_get_textIndent
,
2014 HTMLStyle_put_lineHeight
,
2015 HTMLStyle_get_lineHeight
,
2016 HTMLStyle_put_marginTop
,
2017 HTMLStyle_get_marginTop
,
2018 HTMLStyle_put_marginRight
,
2019 HTMLStyle_get_marginRight
,
2020 HTMLStyle_put_marginBottom
,
2021 HTMLStyle_get_marginBottom
,
2022 HTMLStyle_put_marginLeft
,
2023 HTMLStyle_get_marginLeft
,
2024 HTMLStyle_put_margin
,
2025 HTMLStyle_get_margin
,
2026 HTMLStyle_put_paddingTop
,
2027 HTMLStyle_get_paddingTop
,
2028 HTMLStyle_put_paddingRight
,
2029 HTMLStyle_get_paddingRight
,
2030 HTMLStyle_put_paddingBottom
,
2031 HTMLStyle_get_paddingBottom
,
2032 HTMLStyle_put_paddingLeft
,
2033 HTMLStyle_get_paddingLeft
,
2034 HTMLStyle_put_padding
,
2035 HTMLStyle_get_padding
,
2036 HTMLStyle_put_border
,
2037 HTMLStyle_get_border
,
2038 HTMLStyle_put_borderTop
,
2039 HTMLStyle_get_borderTop
,
2040 HTMLStyle_put_borderRight
,
2041 HTMLStyle_get_borderRight
,
2042 HTMLStyle_put_borderBottom
,
2043 HTMLStyle_get_borderBottom
,
2044 HTMLStyle_put_borderLeft
,
2045 HTMLStyle_get_borderLeft
,
2046 HTMLStyle_put_borderColor
,
2047 HTMLStyle_get_borderColor
,
2048 HTMLStyle_put_borderTopColor
,
2049 HTMLStyle_get_borderTopColor
,
2050 HTMLStyle_put_borderRightColor
,
2051 HTMLStyle_get_borderRightColor
,
2052 HTMLStyle_put_borderBottomColor
,
2053 HTMLStyle_get_borderBottomColor
,
2054 HTMLStyle_put_borderLeftColor
,
2055 HTMLStyle_get_borderLeftColor
,
2056 HTMLStyle_put_borderWidth
,
2057 HTMLStyle_get_borderWidth
,
2058 HTMLStyle_put_borderTopWidth
,
2059 HTMLStyle_get_borderTopWidth
,
2060 HTMLStyle_put_borderRightWidth
,
2061 HTMLStyle_get_borderRightWidth
,
2062 HTMLStyle_put_borderBottomWidth
,
2063 HTMLStyle_get_borderBottomWidth
,
2064 HTMLStyle_put_borderLeftWidth
,
2065 HTMLStyle_get_borderLeftWidth
,
2066 HTMLStyle_put_borderStyle
,
2067 HTMLStyle_get_borderStyle
,
2068 HTMLStyle_put_borderTopStyle
,
2069 HTMLStyle_get_borderTopStyle
,
2070 HTMLStyle_put_borderRightStyle
,
2071 HTMLStyle_get_borderRightStyle
,
2072 HTMLStyle_put_borderBottomStyle
,
2073 HTMLStyle_get_borderBottomStyle
,
2074 HTMLStyle_put_borderLeftStyle
,
2075 HTMLStyle_get_borderLeftStyle
,
2076 HTMLStyle_put_width
,
2077 HTMLStyle_get_width
,
2078 HTMLStyle_put_height
,
2079 HTMLStyle_get_height
,
2080 HTMLStyle_put_styleFloat
,
2081 HTMLStyle_get_styleFloat
,
2082 HTMLStyle_put_clear
,
2083 HTMLStyle_get_clear
,
2084 HTMLStyle_put_display
,
2085 HTMLStyle_get_display
,
2086 HTMLStyle_put_visibility
,
2087 HTMLStyle_get_visibility
,
2088 HTMLStyle_put_listStyleType
,
2089 HTMLStyle_get_listStyleType
,
2090 HTMLStyle_put_listStylePosition
,
2091 HTMLStyle_get_listStylePosition
,
2092 HTMLStyle_put_listStyleImage
,
2093 HTMLStyle_get_listStyleImage
,
2094 HTMLStyle_put_listStyle
,
2095 HTMLStyle_get_listStyle
,
2096 HTMLStyle_put_whiteSpace
,
2097 HTMLStyle_get_whiteSpace
,
2102 HTMLStyle_get_position
,
2103 HTMLStyle_put_zIndex
,
2104 HTMLStyle_get_zIndex
,
2105 HTMLStyle_put_overflow
,
2106 HTMLStyle_get_overflow
,
2107 HTMLStyle_put_pageBreakBefore
,
2108 HTMLStyle_get_pageBreakBefore
,
2109 HTMLStyle_put_pageBreakAfter
,
2110 HTMLStyle_get_pageBreakAfter
,
2111 HTMLStyle_put_cssText
,
2112 HTMLStyle_get_cssText
,
2113 HTMLStyle_put_pixelTop
,
2114 HTMLStyle_get_pixelTop
,
2115 HTMLStyle_put_pixelLeft
,
2116 HTMLStyle_get_pixelLeft
,
2117 HTMLStyle_put_pixelWidth
,
2118 HTMLStyle_get_pixelWidth
,
2119 HTMLStyle_put_pixelHeight
,
2120 HTMLStyle_get_pixelHeight
,
2121 HTMLStyle_put_posTop
,
2122 HTMLStyle_get_posTop
,
2123 HTMLStyle_put_posLeft
,
2124 HTMLStyle_get_posLeft
,
2125 HTMLStyle_put_posWidth
,
2126 HTMLStyle_get_posWidth
,
2127 HTMLStyle_put_posHeight
,
2128 HTMLStyle_get_posHeight
,
2129 HTMLStyle_put_cursor
,
2130 HTMLStyle_get_cursor
,
2133 HTMLStyle_put_filter
,
2134 HTMLStyle_get_filter
,
2135 HTMLStyle_setAttribute
,
2136 HTMLStyle_getAttribute
,
2137 HTMLStyle_removeAttribute
,
2141 static const dispex_static_data_vtbl_t HTMLStyle_dispex_vtbl
= {
2142 HTMLStyle_get_dispid
,
2146 static const tid_t HTMLStyle_iface_tids
[] = {
2151 static dispex_static_data_t HTMLStyle_dispex
= {
2152 &HTMLStyle_dispex_vtbl
,
2155 HTMLStyle_iface_tids
2158 IHTMLStyle
*HTMLStyle_Create(nsIDOMCSSStyleDeclaration
*nsstyle
)
2160 HTMLStyle
*ret
= heap_alloc_zero(sizeof(HTMLStyle
));
2162 ret
->lpHTMLStyleVtbl
= &HTMLStyleVtbl
;
2164 ret
->nsstyle
= nsstyle
;
2165 HTMLStyle2_Init(ret
);
2167 nsIDOMCSSStyleDeclaration_AddRef(nsstyle
);
2169 init_dispex(&ret
->dispex
, (IUnknown
*)HTMLSTYLE(ret
), &HTMLStyle_dispex
);
2171 return HTMLSTYLE(ret
);