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 attrBorderLeft
[] =
43 {'b','o','r','d','e','r','-','l','e','f','t',0};
44 static const WCHAR attrColor
[] =
45 {'c','o','l','o','r',0};
46 static const WCHAR attrDisplay
[] =
47 {'d','i','s','p','l','a','y',0};
48 static const WCHAR attrFontFamily
[] =
49 {'f','o','n','t','-','f','a','m','i','l','y',0};
50 static const WCHAR attrFontSize
[] =
51 {'f','o','n','t','-','s','i','z','e',0};
52 static const WCHAR attrFontStyle
[] =
53 {'f','o','n','t','-','s','t','y','l','e',0};
54 static const WCHAR attrFontWeight
[] =
55 {'f','o','n','t','-','w','e','i','g','h','t',0};
56 static const WCHAR attrMargin
[] =
57 {'m','a','r','g','i','n',0};
58 static const WCHAR attrMarginLeft
[] =
59 {'m','a','r','g','i','n','-','l','e','f','t',0};
60 static const WCHAR attrMarginRight
[] =
61 {'m','a','r','g','i','n','-','r','i','g','h','t',0};
62 static const WCHAR attrPaddingLeft
[] =
63 {'p','a','d','d','i','n','g','-','l','e','f','t',0};
64 static const WCHAR attrTextDecoration
[] =
65 {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
66 static const WCHAR attrVisibility
[] =
67 {'v','i','s','i','b','i','l','i','t','y',0};
68 static const WCHAR attrWidth
[] =
69 {'w','i','d','t','h',0};
71 static const LPCWSTR style_strings
[] = {
91 static const WCHAR valLineThrough
[] =
92 {'l','i','n','e','-','t','h','r','o','u','g','h',0};
93 static const WCHAR valUnderline
[] =
94 {'u','n','d','e','r','l','i','n','e',0};
96 static const WCHAR px_formatW
[] = {'%','d','p','x',0};
97 static const WCHAR emptyW
[] = {0};
99 static LPWSTR
fix_px_value(LPCWSTR val
)
104 while(*ptr
&& isspaceW(*ptr
))
109 while(*ptr
&& isdigitW(*ptr
))
112 if(!*ptr
|| isspaceW(*ptr
)) {
114 int len
= strlenW(val
)+1;
116 ret
= heap_alloc((len
+2)*sizeof(WCHAR
));
117 memcpy(ret
, val
, (ptr
-val
)*sizeof(WCHAR
));
123 TRACE("fixed %s -> %s\n", debugstr_w(val
), debugstr_w(ret
));
128 while(*ptr
&& !isspaceW(*ptr
))
135 static LPWSTR
fix_url_value(LPCWSTR val
)
139 static const WCHAR urlW
[] = {'u','r','l','('};
141 if(strncmpW(val
, urlW
, sizeof(urlW
)/sizeof(WCHAR
)) || !strchrW(val
, '\\'))
144 ret
= heap_strdupW(val
);
146 for(ptr
= ret
; *ptr
; ptr
++) {
154 #define ATTR_FIX_PX 1
155 #define ATTR_FIX_URL 2
157 static HRESULT
set_style_attr(HTMLStyle
*This
, styleid_t sid
, LPCWSTR value
, DWORD flags
)
159 nsAString str_name
, str_value
, str_empty
;
163 static const PRUnichar wszEmpty
[] = {0};
165 TRACE("(%p)->(%s %s)\n", This
, debugstr_w(style_strings
[sid
]), debugstr_w(value
));
167 if(flags
& ATTR_FIX_PX
)
168 val
= fix_px_value(value
);
169 if(flags
& ATTR_FIX_URL
)
170 val
= fix_url_value(value
);
172 nsAString_Init(&str_name
, style_strings
[sid
]);
173 nsAString_Init(&str_value
, val
? val
: value
);
174 nsAString_Init(&str_empty
, wszEmpty
);
177 nsres
= nsIDOMCSSStyleDeclaration_SetProperty(This
->nsstyle
, &str_name
, &str_value
, &str_empty
);
179 ERR("SetProperty failed: %08x\n", nsres
);
181 nsAString_Finish(&str_name
);
182 nsAString_Finish(&str_value
);
183 nsAString_Finish(&str_empty
);
188 static HRESULT
get_style_attr_nsval(HTMLStyle
*This
, styleid_t sid
, nsAString
*value
)
193 nsAString_Init(&str_name
, style_strings
[sid
]);
195 nsres
= nsIDOMCSSStyleDeclaration_GetPropertyValue(This
->nsstyle
, &str_name
, value
);
196 if(NS_FAILED(nsres
)) {
197 ERR("SetProperty failed: %08x\n", nsres
);
201 nsAString_Finish(&str_name
);
206 static HRESULT
get_style_attr(HTMLStyle
*This
, styleid_t sid
, BSTR
*p
)
209 const PRUnichar
*value
;
211 nsAString_Init(&str_value
, NULL
);
213 get_style_attr_nsval(This
, sid
, &str_value
);
215 nsAString_GetData(&str_value
, &value
);
216 *p
= *value
? SysAllocString(value
) : NULL
;
218 nsAString_Finish(&str_value
);
220 TRACE("%s -> %s\n", debugstr_w(style_strings
[sid
]), debugstr_w(*p
));
224 static HRESULT
check_style_attr_value(HTMLStyle
*This
, styleid_t sid
, LPCWSTR exval
, VARIANT_BOOL
*p
)
227 const PRUnichar
*value
;
229 nsAString_Init(&str_value
, NULL
);
231 get_style_attr_nsval(This
, sid
, &str_value
);
233 nsAString_GetData(&str_value
, &value
);
234 *p
= strcmpW(value
, exval
) ? VARIANT_FALSE
: VARIANT_TRUE
;
235 nsAString_Finish(&str_value
);
237 TRACE("%s -> %x\n", debugstr_w(style_strings
[sid
]), *p
);
241 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
243 static HRESULT WINAPI
HTMLStyle_QueryInterface(IHTMLStyle
*iface
, REFIID riid
, void **ppv
)
245 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
249 if(IsEqualGUID(&IID_IUnknown
, riid
)) {
250 TRACE("(%p)->(IID_IUnknown %p)\n", This
, ppv
);
251 *ppv
= HTMLSTYLE(This
);
252 }else if(IsEqualGUID(&IID_IHTMLStyle
, riid
)) {
253 TRACE("(%p)->(IID_IHTMLStyle %p)\n", This
, ppv
);
254 *ppv
= HTMLSTYLE(This
);
255 }else if(IsEqualGUID(&IID_IHTMLStyle2
, riid
)) {
256 TRACE("(%p)->(IID_IHTMLStyle2 %p)\n", This
, ppv
);
257 *ppv
= HTMLSTYLE2(This
);
258 }else if(dispex_query_interface(&This
->dispex
, riid
, ppv
)) {
259 return *ppv
? S_OK
: E_NOINTERFACE
;
263 IUnknown_AddRef((IUnknown
*)*ppv
);
267 WARN("unsupported %s\n", debugstr_guid(riid
));
268 return E_NOINTERFACE
;
271 static ULONG WINAPI
HTMLStyle_AddRef(IHTMLStyle
*iface
)
273 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
274 LONG ref
= InterlockedIncrement(&This
->ref
);
276 TRACE("(%p) ref=%d\n", This
, ref
);
281 static ULONG WINAPI
HTMLStyle_Release(IHTMLStyle
*iface
)
283 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
284 LONG ref
= InterlockedDecrement(&This
->ref
);
286 TRACE("(%p) ref=%d\n", This
, ref
);
294 static HRESULT WINAPI
HTMLStyle_GetTypeInfoCount(IHTMLStyle
*iface
, UINT
*pctinfo
)
296 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
297 return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This
->dispex
), pctinfo
);
300 static HRESULT WINAPI
HTMLStyle_GetTypeInfo(IHTMLStyle
*iface
, UINT iTInfo
,
301 LCID lcid
, ITypeInfo
**ppTInfo
)
303 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
304 return IDispatchEx_GetTypeInfo(DISPATCHEX(&This
->dispex
), iTInfo
, lcid
, ppTInfo
);
307 static HRESULT WINAPI
HTMLStyle_GetIDsOfNames(IHTMLStyle
*iface
, REFIID riid
,
308 LPOLESTR
*rgszNames
, UINT cNames
,
309 LCID lcid
, DISPID
*rgDispId
)
311 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
312 return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This
->dispex
), riid
, rgszNames
, cNames
, lcid
, rgDispId
);
315 static HRESULT WINAPI
HTMLStyle_Invoke(IHTMLStyle
*iface
, DISPID dispIdMember
,
316 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
317 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
319 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
320 return IDispatchEx_Invoke(DISPATCHEX(&This
->dispex
), dispIdMember
, riid
, lcid
,
321 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
324 static HRESULT WINAPI
HTMLStyle_put_fontFamily(IHTMLStyle
*iface
, BSTR v
)
326 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
328 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
330 return set_style_attr(This
, STYLEID_FONT_FAMILY
, v
, 0);
333 static HRESULT WINAPI
HTMLStyle_get_fontFamily(IHTMLStyle
*iface
, BSTR
*p
)
335 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
337 TRACE("(%p)->(%p)\n", This
, p
);
339 return get_style_attr(This
, STYLEID_FONT_FAMILY
, p
);
342 static HRESULT WINAPI
HTMLStyle_put_fontStyle(IHTMLStyle
*iface
, BSTR v
)
344 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
345 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
349 static HRESULT WINAPI
HTMLStyle_get_fontStyle(IHTMLStyle
*iface
, BSTR
*p
)
351 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
353 TRACE("(%p)->(%p)\n", This
, p
);
355 return get_style_attr(This
, STYLEID_FONT_STYLE
, p
);
358 static HRESULT WINAPI
HTMLStyle_put_fontVariant(IHTMLStyle
*iface
, BSTR v
)
360 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
361 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
365 static HRESULT WINAPI
HTMLStyle_get_fontVariant(IHTMLStyle
*iface
, BSTR
*p
)
367 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
368 FIXME("(%p)->(%p)\n", This
, p
);
372 static HRESULT WINAPI
HTMLStyle_put_fontWeight(IHTMLStyle
*iface
, BSTR v
)
374 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
375 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
379 static HRESULT WINAPI
HTMLStyle_get_fontWeight(IHTMLStyle
*iface
, BSTR
*p
)
381 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
383 TRACE("(%p)->(%p)\n", This
, p
);
385 return get_style_attr(This
, STYLEID_FONT_WEIGHT
, p
);
388 static HRESULT WINAPI
HTMLStyle_put_fontSize(IHTMLStyle
*iface
, VARIANT v
)
390 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
392 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
396 return set_style_attr(This
, STYLEID_FONT_SIZE
, V_BSTR(&v
), 0);
398 FIXME("not supported vt %d\n", V_VT(&v
));
404 static HRESULT WINAPI
HTMLStyle_get_fontSize(IHTMLStyle
*iface
, VARIANT
*p
)
406 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
408 TRACE("(%p)->(%p)\n", This
, p
);
411 return get_style_attr(This
, STYLEID_FONT_SIZE
, &V_BSTR(p
));
414 static HRESULT WINAPI
HTMLStyle_put_font(IHTMLStyle
*iface
, BSTR v
)
416 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
417 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
421 static HRESULT WINAPI
HTMLStyle_get_font(IHTMLStyle
*iface
, BSTR
*p
)
423 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
424 FIXME("(%p)->(%p)\n", This
, p
);
428 static HRESULT WINAPI
HTMLStyle_put_color(IHTMLStyle
*iface
, VARIANT v
)
430 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
432 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
436 TRACE("%s\n", debugstr_w(V_BSTR(&v
)));
437 return set_style_attr(This
, STYLEID_COLOR
, V_BSTR(&v
), 0);
440 FIXME("unsupported vt=%d\n", V_VT(&v
));
446 static HRESULT WINAPI
HTMLStyle_get_color(IHTMLStyle
*iface
, VARIANT
*p
)
448 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
450 TRACE("(%p)->(%p)\n", This
, p
);
453 return get_style_attr(This
, STYLEID_COLOR
, &V_BSTR(p
));
456 static HRESULT WINAPI
HTMLStyle_put_background(IHTMLStyle
*iface
, BSTR v
)
458 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
460 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
462 return set_style_attr(This
, STYLEID_BACKGROUND
, v
, 0);
465 static HRESULT WINAPI
HTMLStyle_get_background(IHTMLStyle
*iface
, BSTR
*p
)
467 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
469 TRACE("(%p)->(%p)\n", This
, p
);
471 return get_style_attr(This
, STYLEID_BACKGROUND
, p
);
474 static HRESULT WINAPI
HTMLStyle_put_backgroundColor(IHTMLStyle
*iface
, VARIANT v
)
476 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
478 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
482 return set_style_attr(This
, STYLEID_BACKGROUND_COLOR
, V_BSTR(&v
), 0);
485 static const WCHAR format
[] = {'#','%','0','6','x',0};
487 wsprintfW(value
, format
, V_I4(&v
));
488 return set_style_attr(This
, STYLEID_BACKGROUND_COLOR
, value
, 0);
491 FIXME("unsupported vt %d\n", V_VT(&v
));
497 static HRESULT WINAPI
HTMLStyle_get_backgroundColor(IHTMLStyle
*iface
, VARIANT
*p
)
499 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
500 FIXME("(%p)->(%p)\n", This
, p
);
504 static HRESULT WINAPI
HTMLStyle_put_backgroundImage(IHTMLStyle
*iface
, BSTR v
)
506 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
508 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
510 return set_style_attr(This
, STYLEID_BACKGROUND_IMAGE
, v
, ATTR_FIX_URL
);
513 static HRESULT WINAPI
HTMLStyle_get_backgroundImage(IHTMLStyle
*iface
, BSTR
*p
)
515 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
516 FIXME("(%p)->(%p)\n", This
, p
);
520 static HRESULT WINAPI
HTMLStyle_put_backgroundRepeat(IHTMLStyle
*iface
, BSTR v
)
522 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
523 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
527 static HRESULT WINAPI
HTMLStyle_get_backgroundRepeat(IHTMLStyle
*iface
, BSTR
*p
)
529 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
530 FIXME("(%p)->(%p)\n", This
, p
);
534 static HRESULT WINAPI
HTMLStyle_put_backgroundAttachment(IHTMLStyle
*iface
, BSTR v
)
536 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
537 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
541 static HRESULT WINAPI
HTMLStyle_get_backgroundAttachment(IHTMLStyle
*iface
, BSTR
*p
)
543 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
544 FIXME("(%p)->(%p)\n", This
, p
);
548 static HRESULT WINAPI
HTMLStyle_put_backgroundPosition(IHTMLStyle
*iface
, BSTR v
)
550 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
551 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
555 static HRESULT WINAPI
HTMLStyle_get_backgroundPosition(IHTMLStyle
*iface
, BSTR
*p
)
557 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
558 FIXME("(%p)->(%p)\n", This
, p
);
562 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionX(IHTMLStyle
*iface
, VARIANT v
)
564 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
565 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
569 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionX(IHTMLStyle
*iface
, VARIANT
*p
)
571 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
572 FIXME("(%p)->(%p)\n", This
, p
);
576 static HRESULT WINAPI
HTMLStyle_put_backgroundPositionY(IHTMLStyle
*iface
, VARIANT v
)
578 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
579 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
583 static HRESULT WINAPI
HTMLStyle_get_backgroundPositionY(IHTMLStyle
*iface
, VARIANT
*p
)
585 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
586 FIXME("(%p)->(%p)\n", This
, p
);
590 static HRESULT WINAPI
HTMLStyle_put_wordSpacing(IHTMLStyle
*iface
, VARIANT v
)
592 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
593 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
597 static HRESULT WINAPI
HTMLStyle_get_wordSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
599 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
600 FIXME("(%p)->(%p)\n", This
, p
);
604 static HRESULT WINAPI
HTMLStyle_put_letterSpacing(IHTMLStyle
*iface
, VARIANT v
)
606 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
607 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
611 static HRESULT WINAPI
HTMLStyle_get_letterSpacing(IHTMLStyle
*iface
, VARIANT
*p
)
613 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
614 FIXME("(%p)->(%p)\n", This
, p
);
618 static HRESULT WINAPI
HTMLStyle_put_textDecoration(IHTMLStyle
*iface
, BSTR v
)
620 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
621 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
625 static HRESULT WINAPI
HTMLStyle_get_textDecoration(IHTMLStyle
*iface
, BSTR
*p
)
627 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
629 TRACE("(%p)->(%p)\n", This
, p
);
631 return get_style_attr(This
, STYLEID_TEXT_DECORATION
, p
);
634 static HRESULT WINAPI
HTMLStyle_put_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL v
)
636 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
637 FIXME("(%p)->(%x)\n", This
, v
);
641 static HRESULT WINAPI
HTMLStyle_get_textDecorationNone(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
643 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
644 FIXME("(%p)->(%p)\n", This
, p
);
648 static HRESULT WINAPI
HTMLStyle_put_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
650 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
651 FIXME("(%p)->(%x)\n", This
, v
);
655 static HRESULT WINAPI
HTMLStyle_get_textDecorationUnderline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
657 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
659 TRACE("(%p)->(%p)\n", This
, p
);
661 return check_style_attr_value(This
, STYLEID_TEXT_DECORATION
, valUnderline
, p
);
664 static HRESULT WINAPI
HTMLStyle_put_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL v
)
666 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
667 FIXME("(%p)->(%x)\n", This
, v
);
671 static HRESULT WINAPI
HTMLStyle_get_textDecorationOverline(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
673 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
674 FIXME("(%p)->(%p)\n", This
, p
);
678 static HRESULT WINAPI
HTMLStyle_put_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL v
)
680 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
681 FIXME("(%p)->(%x)\n", This
, v
);
685 static HRESULT WINAPI
HTMLStyle_get_textDecorationLineThrough(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
687 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
689 TRACE("(%p)->(%p)\n", This
, p
);
691 return check_style_attr_value(This
, STYLEID_TEXT_DECORATION
, valLineThrough
, p
);
694 static HRESULT WINAPI
HTMLStyle_put_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL v
)
696 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
697 FIXME("(%p)->(%x)\n", This
, v
);
701 static HRESULT WINAPI
HTMLStyle_get_textDecorationBlink(IHTMLStyle
*iface
, VARIANT_BOOL
*p
)
703 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
704 FIXME("(%p)->(%p)\n", This
, p
);
708 static HRESULT WINAPI
HTMLStyle_put_verticalAlign(IHTMLStyle
*iface
, VARIANT v
)
710 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
711 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
715 static HRESULT WINAPI
HTMLStyle_get_verticalAlign(IHTMLStyle
*iface
, VARIANT
*p
)
717 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
718 FIXME("(%p)->(%p)\n", This
, p
);
722 static HRESULT WINAPI
HTMLStyle_put_textTransform(IHTMLStyle
*iface
, BSTR v
)
724 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
725 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
729 static HRESULT WINAPI
HTMLStyle_get_textTransform(IHTMLStyle
*iface
, BSTR
*p
)
731 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
732 FIXME("(%p)->(%p)\n", This
, p
);
736 static HRESULT WINAPI
HTMLStyle_put_textAlign(IHTMLStyle
*iface
, BSTR v
)
738 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
739 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
743 static HRESULT WINAPI
HTMLStyle_get_textAlign(IHTMLStyle
*iface
, BSTR
*p
)
745 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
746 FIXME("(%p)->(%p)\n", This
, p
);
750 static HRESULT WINAPI
HTMLStyle_put_textIndent(IHTMLStyle
*iface
, VARIANT v
)
752 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
753 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
757 static HRESULT WINAPI
HTMLStyle_get_textIndent(IHTMLStyle
*iface
, VARIANT
*p
)
759 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
760 FIXME("(%p)->(%p)\n", This
, p
);
764 static HRESULT WINAPI
HTMLStyle_put_lineHeight(IHTMLStyle
*iface
, VARIANT v
)
766 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
767 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
771 static HRESULT WINAPI
HTMLStyle_get_lineHeight(IHTMLStyle
*iface
, VARIANT
*p
)
773 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
774 FIXME("(%p)->(%p)\n", This
, p
);
778 static HRESULT WINAPI
HTMLStyle_put_marginTop(IHTMLStyle
*iface
, VARIANT v
)
780 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
781 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
785 static HRESULT WINAPI
HTMLStyle_get_marginTop(IHTMLStyle
*iface
, VARIANT
*p
)
787 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
788 FIXME("(%p)->(%p)\n", This
, p
);
792 static HRESULT WINAPI
HTMLStyle_put_marginRight(IHTMLStyle
*iface
, VARIANT v
)
794 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
796 TRACE("(%p)->(v(%d))\n", This
, V_VT(&v
));
800 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, emptyW
, 0);
804 wsprintfW(buf
, px_formatW
, V_I4(&v
));
805 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, buf
, 0);
808 return set_style_attr(This
, STYLEID_MARGIN_RIGHT
, V_BSTR(&v
), 0);
810 FIXME("Unsupported vt=%d\n", V_VT(&v
));
816 static HRESULT WINAPI
HTMLStyle_get_marginRight(IHTMLStyle
*iface
, VARIANT
*p
)
818 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
819 FIXME("(%p)->(%p)\n", This
, p
);
823 static HRESULT WINAPI
HTMLStyle_put_marginBottom(IHTMLStyle
*iface
, VARIANT v
)
825 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
826 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
830 static HRESULT WINAPI
HTMLStyle_get_marginBottom(IHTMLStyle
*iface
, VARIANT
*p
)
832 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
833 FIXME("(%p)->(%p)\n", This
, p
);
837 static HRESULT WINAPI
HTMLStyle_put_marginLeft(IHTMLStyle
*iface
, VARIANT v
)
839 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
843 TRACE("(%p)->(NULL)\n", This
);
844 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, emptyW
, 0);
848 TRACE("(%p)->(%d)\n", This
, V_I4(&v
));
850 wsprintfW(buf
, px_formatW
, V_I4(&v
));
851 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, buf
, 0);
854 TRACE("(%p)->(%s)\n", This
, debugstr_w(V_BSTR(&v
)));
855 return set_style_attr(This
, STYLEID_MARGIN_LEFT
, V_BSTR(&v
), 0);
857 FIXME("Unsupported vt=%d\n", V_VT(&v
));
863 static HRESULT WINAPI
HTMLStyle_put_margin(IHTMLStyle
*iface
, BSTR v
)
865 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
867 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
869 return set_style_attr(This
, STYLEID_MARGIN
, v
, 0);
872 static HRESULT WINAPI
HTMLStyle_get_margin(IHTMLStyle
*iface
, BSTR
*p
)
874 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
876 TRACE("(%p)->(%p)\n", This
, p
);
878 return get_style_attr(This
, STYLEID_MARGIN
, p
);
881 static HRESULT WINAPI
HTMLStyle_get_marginLeft(IHTMLStyle
*iface
, VARIANT
*p
)
883 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
884 FIXME("(%p)->(%p)\n", This
, p
);
888 static HRESULT WINAPI
HTMLStyle_put_paddingTop(IHTMLStyle
*iface
, VARIANT v
)
890 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
891 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
895 static HRESULT WINAPI
HTMLStyle_get_paddingTop(IHTMLStyle
*iface
, VARIANT
*p
)
897 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
898 FIXME("(%p)->(%p)\n", This
, p
);
902 static HRESULT WINAPI
HTMLStyle_put_paddingRight(IHTMLStyle
*iface
, VARIANT v
)
904 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
905 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
909 static HRESULT WINAPI
HTMLStyle_get_paddingRight(IHTMLStyle
*iface
, VARIANT
*p
)
911 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
912 FIXME("(%p)->(%p)\n", This
, p
);
916 static HRESULT WINAPI
HTMLStyle_put_paddingBottom(IHTMLStyle
*iface
, VARIANT v
)
918 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
919 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
923 static HRESULT WINAPI
HTMLStyle_get_paddingBottom(IHTMLStyle
*iface
, VARIANT
*p
)
925 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
926 FIXME("(%p)->(%p)\n", This
, p
);
930 static HRESULT WINAPI
HTMLStyle_put_paddingLeft(IHTMLStyle
*iface
, VARIANT v
)
932 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
934 TRACE("(%p)->(vt=%d)\n", This
, V_VT(&v
));
940 wsprintfW(buf
, px_formatW
, V_I4(&v
));
941 return set_style_attr(This
, STYLEID_PADDING_LEFT
, buf
, 0);
944 return set_style_attr(This
, STYLEID_PADDING_LEFT
, V_BSTR(&v
), 0);
946 FIXME("unsupported vt=%d\n", V_VT(&v
));
952 static HRESULT WINAPI
HTMLStyle_get_paddingLeft(IHTMLStyle
*iface
, VARIANT
*p
)
954 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
955 FIXME("(%p)->(%p)\n", This
, p
);
959 static HRESULT WINAPI
HTMLStyle_put_padding(IHTMLStyle
*iface
, BSTR v
)
961 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
962 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
966 static HRESULT WINAPI
HTMLStyle_get_padding(IHTMLStyle
*iface
, BSTR
*p
)
968 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
969 FIXME("(%p)->(%p)\n", This
, p
);
973 static HRESULT WINAPI
HTMLStyle_put_border(IHTMLStyle
*iface
, BSTR v
)
975 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
976 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
980 static HRESULT WINAPI
HTMLStyle_get_border(IHTMLStyle
*iface
, BSTR
*p
)
982 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
983 FIXME("(%p)->(%p)\n", This
, p
);
987 static HRESULT WINAPI
HTMLStyle_put_borderTop(IHTMLStyle
*iface
, BSTR v
)
989 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
990 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
994 static HRESULT WINAPI
HTMLStyle_get_borderTop(IHTMLStyle
*iface
, BSTR
*p
)
996 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
997 FIXME("(%p)->(%p)\n", This
, p
);
1001 static HRESULT WINAPI
HTMLStyle_put_borderRight(IHTMLStyle
*iface
, BSTR v
)
1003 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1004 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1008 static HRESULT WINAPI
HTMLStyle_get_borderRight(IHTMLStyle
*iface
, BSTR
*p
)
1010 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1011 FIXME("(%p)->(%p)\n", This
, p
);
1015 static HRESULT WINAPI
HTMLStyle_put_borderBottom(IHTMLStyle
*iface
, BSTR v
)
1017 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1018 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1022 static HRESULT WINAPI
HTMLStyle_get_borderBottom(IHTMLStyle
*iface
, BSTR
*p
)
1024 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1025 FIXME("(%p)->(%p)\n", This
, p
);
1029 static HRESULT WINAPI
HTMLStyle_put_borderLeft(IHTMLStyle
*iface
, BSTR v
)
1031 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1033 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1035 return set_style_attr(This
, STYLEID_BORDER_LEFT
, v
, ATTR_FIX_PX
);
1038 static HRESULT WINAPI
HTMLStyle_get_borderLeft(IHTMLStyle
*iface
, BSTR
*p
)
1040 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1041 FIXME("(%p)->(%p)\n", This
, p
);
1045 static HRESULT WINAPI
HTMLStyle_put_borderColor(IHTMLStyle
*iface
, BSTR v
)
1047 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1048 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1052 static HRESULT WINAPI
HTMLStyle_get_borderColor(IHTMLStyle
*iface
, BSTR
*p
)
1054 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1055 FIXME("(%p)->(%p)\n", This
, p
);
1059 static HRESULT WINAPI
HTMLStyle_put_borderTopColor(IHTMLStyle
*iface
, VARIANT v
)
1061 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1062 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1066 static HRESULT WINAPI
HTMLStyle_get_borderTopColor(IHTMLStyle
*iface
, VARIANT
*p
)
1068 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1069 FIXME("(%p)->(%p)\n", This
, p
);
1073 static HRESULT WINAPI
HTMLStyle_put_borderRightColor(IHTMLStyle
*iface
, VARIANT v
)
1075 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1076 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1080 static HRESULT WINAPI
HTMLStyle_get_borderRightColor(IHTMLStyle
*iface
, VARIANT
*p
)
1082 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1083 FIXME("(%p)->(%p)\n", This
, p
);
1087 static HRESULT WINAPI
HTMLStyle_put_borderBottomColor(IHTMLStyle
*iface
, VARIANT v
)
1089 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1090 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1094 static HRESULT WINAPI
HTMLStyle_get_borderBottomColor(IHTMLStyle
*iface
, VARIANT
*p
)
1096 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1097 FIXME("(%p)->(%p)\n", This
, p
);
1101 static HRESULT WINAPI
HTMLStyle_put_borderLeftColor(IHTMLStyle
*iface
, VARIANT v
)
1103 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1104 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1108 static HRESULT WINAPI
HTMLStyle_get_borderLeftColor(IHTMLStyle
*iface
, VARIANT
*p
)
1110 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1111 FIXME("(%p)->(%p)\n", This
, p
);
1115 static HRESULT WINAPI
HTMLStyle_put_borderWidth(IHTMLStyle
*iface
, BSTR v
)
1117 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1118 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1122 static HRESULT WINAPI
HTMLStyle_get_borderWidth(IHTMLStyle
*iface
, BSTR
*p
)
1124 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1125 FIXME("(%p)->(%p)\n", This
, p
);
1129 static HRESULT WINAPI
HTMLStyle_put_borderTopWidth(IHTMLStyle
*iface
, VARIANT v
)
1131 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1132 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1136 static HRESULT WINAPI
HTMLStyle_get_borderTopWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1138 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1139 FIXME("(%p)->(%p)\n", This
, p
);
1143 static HRESULT WINAPI
HTMLStyle_put_borderRightWidth(IHTMLStyle
*iface
, VARIANT v
)
1145 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1146 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1150 static HRESULT WINAPI
HTMLStyle_get_borderRightWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1152 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1153 FIXME("(%p)->(%p)\n", This
, p
);
1157 static HRESULT WINAPI
HTMLStyle_put_borderBottomWidth(IHTMLStyle
*iface
, VARIANT v
)
1159 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1160 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1164 static HRESULT WINAPI
HTMLStyle_get_borderBottomWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1166 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1167 FIXME("(%p)->(%p)\n", This
, p
);
1171 static HRESULT WINAPI
HTMLStyle_put_borderLeftWidth(IHTMLStyle
*iface
, VARIANT v
)
1173 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1174 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1178 static HRESULT WINAPI
HTMLStyle_get_borderLeftWidth(IHTMLStyle
*iface
, VARIANT
*p
)
1180 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1181 FIXME("(%p)->(%p)\n", This
, p
);
1185 static HRESULT WINAPI
HTMLStyle_put_borderStyle(IHTMLStyle
*iface
, BSTR v
)
1187 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1188 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1192 static HRESULT WINAPI
HTMLStyle_get_borderStyle(IHTMLStyle
*iface
, BSTR
*p
)
1194 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1195 FIXME("(%p)->(%p)\n", This
, p
);
1199 static HRESULT WINAPI
HTMLStyle_put_borderTopStyle(IHTMLStyle
*iface
, BSTR v
)
1201 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1202 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1206 static HRESULT WINAPI
HTMLStyle_get_borderTopStyle(IHTMLStyle
*iface
, BSTR
*p
)
1208 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1209 FIXME("(%p)->(%p)\n", This
, p
);
1213 static HRESULT WINAPI
HTMLStyle_put_borderRightStyle(IHTMLStyle
*iface
, BSTR v
)
1215 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1216 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1220 static HRESULT WINAPI
HTMLStyle_get_borderRightStyle(IHTMLStyle
*iface
, BSTR
*p
)
1222 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1223 FIXME("(%p)->(%p)\n", This
, p
);
1227 static HRESULT WINAPI
HTMLStyle_put_borderBottomStyle(IHTMLStyle
*iface
, BSTR v
)
1229 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1230 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1234 static HRESULT WINAPI
HTMLStyle_get_borderBottomStyle(IHTMLStyle
*iface
, BSTR
*p
)
1236 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1237 FIXME("(%p)->(%p)\n", This
, p
);
1241 static HRESULT WINAPI
HTMLStyle_put_borderLeftStyle(IHTMLStyle
*iface
, BSTR v
)
1243 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1244 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1248 static HRESULT WINAPI
HTMLStyle_get_borderLeftStyle(IHTMLStyle
*iface
, BSTR
*p
)
1250 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1251 FIXME("(%p)->(%p)\n", This
, p
);
1255 static HRESULT WINAPI
HTMLStyle_put_width(IHTMLStyle
*iface
, VARIANT v
)
1257 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1259 TRACE("(%p)->(v%d)\n", This
, V_VT(&v
));
1263 TRACE("%s\n", debugstr_w(V_BSTR(&v
)));
1264 return set_style_attr(This
, STYLEID_WIDTH
, V_BSTR(&v
), 0);
1266 FIXME("unsupported vt %d\n", V_VT(&v
));
1272 static HRESULT WINAPI
HTMLStyle_get_width(IHTMLStyle
*iface
, VARIANT
*p
)
1274 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1276 TRACE("(%p)->(%p)\n", This
, p
);
1279 return get_style_attr(This
, STYLEID_WIDTH
, &V_BSTR(p
));
1282 static HRESULT WINAPI
HTMLStyle_put_height(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_height(IHTMLStyle
*iface
, VARIANT
*p
)
1291 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1292 FIXME("(%p)->(%p)\n", This
, p
);
1296 static HRESULT WINAPI
HTMLStyle_put_styleFloat(IHTMLStyle
*iface
, BSTR v
)
1298 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1299 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1303 static HRESULT WINAPI
HTMLStyle_get_styleFloat(IHTMLStyle
*iface
, BSTR
*p
)
1305 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1306 FIXME("(%p)->(%p)\n", This
, p
);
1310 static HRESULT WINAPI
HTMLStyle_put_clear(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_clear(IHTMLStyle
*iface
, BSTR
*p
)
1319 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1320 FIXME("(%p)->(%p)\n", This
, p
);
1324 static HRESULT WINAPI
HTMLStyle_put_display(IHTMLStyle
*iface
, BSTR v
)
1326 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1328 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1330 return set_style_attr(This
, STYLEID_DISPLAY
, v
, 0);
1333 static HRESULT WINAPI
HTMLStyle_get_display(IHTMLStyle
*iface
, BSTR
*p
)
1335 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1337 TRACE("(%p)->(%p)\n", This
, p
);
1339 return get_style_attr(This
, STYLEID_DISPLAY
, p
);
1342 static HRESULT WINAPI
HTMLStyle_put_visibility(IHTMLStyle
*iface
, BSTR v
)
1344 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1346 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
1348 return set_style_attr(This
, STYLEID_VISIBILITY
, v
, 0);
1351 static HRESULT WINAPI
HTMLStyle_get_visibility(IHTMLStyle
*iface
, BSTR
*p
)
1353 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1355 TRACE("(%p)->(%p)\n", This
, p
);
1357 return get_style_attr(This
, STYLEID_VISIBILITY
, p
);
1360 static HRESULT WINAPI
HTMLStyle_put_listStyleType(IHTMLStyle
*iface
, BSTR v
)
1362 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1363 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1367 static HRESULT WINAPI
HTMLStyle_get_listStyleType(IHTMLStyle
*iface
, BSTR
*p
)
1369 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1370 FIXME("(%p)->(%p)\n", This
, p
);
1374 static HRESULT WINAPI
HTMLStyle_put_listStylePosition(IHTMLStyle
*iface
, BSTR v
)
1376 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1377 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1381 static HRESULT WINAPI
HTMLStyle_get_listStylePosition(IHTMLStyle
*iface
, BSTR
*p
)
1383 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1384 FIXME("(%p)->(%p)\n", This
, p
);
1388 static HRESULT WINAPI
HTMLStyle_put_listStyleImage(IHTMLStyle
*iface
, BSTR v
)
1390 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1391 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1395 static HRESULT WINAPI
HTMLStyle_get_listStyleImage(IHTMLStyle
*iface
, BSTR
*p
)
1397 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1398 FIXME("(%p)->(%p)\n", This
, p
);
1402 static HRESULT WINAPI
HTMLStyle_put_listStyle(IHTMLStyle
*iface
, BSTR v
)
1404 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1405 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1409 static HRESULT WINAPI
HTMLStyle_get_listStyle(IHTMLStyle
*iface
, BSTR
*p
)
1411 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1412 FIXME("(%p)->(%p)\n", This
, p
);
1416 static HRESULT WINAPI
HTMLStyle_put_whiteSpace(IHTMLStyle
*iface
, BSTR v
)
1418 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1419 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1423 static HRESULT WINAPI
HTMLStyle_get_whiteSpace(IHTMLStyle
*iface
, BSTR
*p
)
1425 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1426 FIXME("(%p)->(%p)\n", This
, p
);
1430 static HRESULT WINAPI
HTMLStyle_put_top(IHTMLStyle
*iface
, VARIANT v
)
1432 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1433 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1437 static HRESULT WINAPI
HTMLStyle_get_top(IHTMLStyle
*iface
, VARIANT
*p
)
1439 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1440 FIXME("(%p)->(%p)\n", This
, p
);
1444 static HRESULT WINAPI
HTMLStyle_put_left(IHTMLStyle
*iface
, VARIANT v
)
1446 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1447 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1451 static HRESULT WINAPI
HTMLStyle_get_left(IHTMLStyle
*iface
, VARIANT
*p
)
1453 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1454 FIXME("(%p)->(%p)\n", This
, p
);
1458 static HRESULT WINAPI
HTMLStyle_get_position(IHTMLStyle
*iface
, BSTR
*p
)
1460 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1461 FIXME("(%p)->(%p)\n", This
, p
);
1465 static HRESULT WINAPI
HTMLStyle_put_zIndex(IHTMLStyle
*iface
, VARIANT v
)
1467 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1468 FIXME("(%p)->(v%d)\n", This
, V_VT(&v
));
1472 static HRESULT WINAPI
HTMLStyle_get_zIndex(IHTMLStyle
*iface
, VARIANT
*p
)
1474 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1475 FIXME("(%p)->(%p)\n", This
, p
);
1479 static HRESULT WINAPI
HTMLStyle_put_overflow(IHTMLStyle
*iface
, BSTR v
)
1481 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1482 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1486 static HRESULT WINAPI
HTMLStyle_get_overflow(IHTMLStyle
*iface
, BSTR
*p
)
1488 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1489 FIXME("(%p)->(%p)\n", This
, p
);
1493 static HRESULT WINAPI
HTMLStyle_put_pageBreakBefore(IHTMLStyle
*iface
, BSTR v
)
1495 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1496 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1500 static HRESULT WINAPI
HTMLStyle_get_pageBreakBefore(IHTMLStyle
*iface
, BSTR
*p
)
1502 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1503 FIXME("(%p)->(%p)\n", This
, p
);
1507 static HRESULT WINAPI
HTMLStyle_put_pageBreakAfter(IHTMLStyle
*iface
, BSTR v
)
1509 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1510 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1514 static HRESULT WINAPI
HTMLStyle_get_pageBreakAfter(IHTMLStyle
*iface
, BSTR
*p
)
1516 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1517 FIXME("(%p)->(%p)\n", This
, p
);
1521 static HRESULT WINAPI
HTMLStyle_put_cssText(IHTMLStyle
*iface
, BSTR v
)
1523 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1524 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1528 static HRESULT WINAPI
HTMLStyle_get_cssText(IHTMLStyle
*iface
, BSTR
*p
)
1530 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1531 FIXME("(%p)->(%p)\n", This
, p
);
1535 static HRESULT WINAPI
HTMLStyle_put_pixelTop(IHTMLStyle
*iface
, long v
)
1537 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1538 FIXME("(%p)->()\n", This
);
1542 static HRESULT WINAPI
HTMLStyle_get_pixelTop(IHTMLStyle
*iface
, long *p
)
1544 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1545 FIXME("(%p)->()\n", This
);
1549 static HRESULT WINAPI
HTMLStyle_put_pixelLeft(IHTMLStyle
*iface
, long v
)
1551 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1552 FIXME("(%p)->()\n", This
);
1556 static HRESULT WINAPI
HTMLStyle_get_pixelLeft(IHTMLStyle
*iface
, long *p
)
1558 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1559 FIXME("(%p)->()\n", This
);
1563 static HRESULT WINAPI
HTMLStyle_put_pixelWidth(IHTMLStyle
*iface
, long v
)
1565 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1566 FIXME("(%p)->()\n", This
);
1570 static HRESULT WINAPI
HTMLStyle_get_pixelWidth(IHTMLStyle
*iface
, long *p
)
1572 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1573 FIXME("(%p)->()\n", This
);
1577 static HRESULT WINAPI
HTMLStyle_put_pixelHeight(IHTMLStyle
*iface
, long v
)
1579 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1580 FIXME("(%p)->()\n", This
);
1584 static HRESULT WINAPI
HTMLStyle_get_pixelHeight(IHTMLStyle
*iface
, long *p
)
1586 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1587 FIXME("(%p)->()\n", This
);
1591 static HRESULT WINAPI
HTMLStyle_put_posTop(IHTMLStyle
*iface
, float v
)
1593 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1594 FIXME("(%p)->()\n", This
);
1598 static HRESULT WINAPI
HTMLStyle_get_posTop(IHTMLStyle
*iface
, float *p
)
1600 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1601 FIXME("(%p)->()\n", This
);
1605 static HRESULT WINAPI
HTMLStyle_put_posLeft(IHTMLStyle
*iface
, float v
)
1607 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1608 FIXME("(%p)->()\n", This
);
1612 static HRESULT WINAPI
HTMLStyle_get_posLeft(IHTMLStyle
*iface
, float *p
)
1614 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1615 FIXME("(%p)->()\n", This
);
1619 static HRESULT WINAPI
HTMLStyle_put_posWidth(IHTMLStyle
*iface
, float v
)
1621 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1622 FIXME("(%p)->()\n", This
);
1626 static HRESULT WINAPI
HTMLStyle_get_posWidth(IHTMLStyle
*iface
, float *p
)
1628 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1629 FIXME("(%p)->()\n", This
);
1633 static HRESULT WINAPI
HTMLStyle_put_posHeight(IHTMLStyle
*iface
, float v
)
1635 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1636 FIXME("(%p)->()\n", This
);
1640 static HRESULT WINAPI
HTMLStyle_get_posHeight(IHTMLStyle
*iface
, float *p
)
1642 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1643 FIXME("(%p)->()\n", This
);
1647 static HRESULT WINAPI
HTMLStyle_put_cursor(IHTMLStyle
*iface
, BSTR v
)
1649 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1650 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1654 static HRESULT WINAPI
HTMLStyle_get_cursor(IHTMLStyle
*iface
, BSTR
*p
)
1656 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1657 FIXME("(%p)->(%p)\n", This
, p
);
1661 static HRESULT WINAPI
HTMLStyle_put_clip(IHTMLStyle
*iface
, BSTR v
)
1663 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1664 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1668 static HRESULT WINAPI
HTMLStyle_get_clip(IHTMLStyle
*iface
, BSTR
*p
)
1670 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1671 FIXME("(%p)->(%p)\n", This
, p
);
1675 static HRESULT WINAPI
HTMLStyle_put_filter(IHTMLStyle
*iface
, BSTR v
)
1677 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1678 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1682 static HRESULT WINAPI
HTMLStyle_get_filter(IHTMLStyle
*iface
, BSTR
*p
)
1684 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1685 FIXME("(%p)->(%p)\n", This
, p
);
1689 static HRESULT WINAPI
HTMLStyle_setAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1690 VARIANT AttributeValue
, LONG lFlags
)
1692 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1693 FIXME("(%p)->(%s v%d %08x)\n", This
, debugstr_w(strAttributeName
),
1694 V_VT(&AttributeValue
), lFlags
);
1698 static HRESULT WINAPI
HTMLStyle_getAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1699 LONG lFlags
, VARIANT
*AttributeValue
)
1701 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1702 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1703 lFlags
, AttributeValue
);
1707 static HRESULT WINAPI
HTMLStyle_removeAttribute(IHTMLStyle
*iface
, BSTR strAttributeName
,
1708 LONG lFlags
, VARIANT_BOOL
*pfSuccess
)
1710 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1711 FIXME("(%p)->(%s %08x %p)\n", This
, debugstr_w(strAttributeName
),
1716 static HRESULT WINAPI
HTMLStyle_toString(IHTMLStyle
*iface
, BSTR
*String
)
1718 HTMLStyle
*This
= HTMLSTYLE_THIS(iface
);
1719 FIXME("(%p)->(%p)\n", This
, String
);
1723 static const IHTMLStyleVtbl HTMLStyleVtbl
= {
1724 HTMLStyle_QueryInterface
,
1727 HTMLStyle_GetTypeInfoCount
,
1728 HTMLStyle_GetTypeInfo
,
1729 HTMLStyle_GetIDsOfNames
,
1731 HTMLStyle_put_fontFamily
,
1732 HTMLStyle_get_fontFamily
,
1733 HTMLStyle_put_fontStyle
,
1734 HTMLStyle_get_fontStyle
,
1735 HTMLStyle_put_fontVariant
,
1736 HTMLStyle_get_fontVariant
,
1737 HTMLStyle_put_fontWeight
,
1738 HTMLStyle_get_fontWeight
,
1739 HTMLStyle_put_fontSize
,
1740 HTMLStyle_get_fontSize
,
1743 HTMLStyle_put_color
,
1744 HTMLStyle_get_color
,
1745 HTMLStyle_put_background
,
1746 HTMLStyle_get_background
,
1747 HTMLStyle_put_backgroundColor
,
1748 HTMLStyle_get_backgroundColor
,
1749 HTMLStyle_put_backgroundImage
,
1750 HTMLStyle_get_backgroundImage
,
1751 HTMLStyle_put_backgroundRepeat
,
1752 HTMLStyle_get_backgroundRepeat
,
1753 HTMLStyle_put_backgroundAttachment
,
1754 HTMLStyle_get_backgroundAttachment
,
1755 HTMLStyle_put_backgroundPosition
,
1756 HTMLStyle_get_backgroundPosition
,
1757 HTMLStyle_put_backgroundPositionX
,
1758 HTMLStyle_get_backgroundPositionX
,
1759 HTMLStyle_put_backgroundPositionY
,
1760 HTMLStyle_get_backgroundPositionY
,
1761 HTMLStyle_put_wordSpacing
,
1762 HTMLStyle_get_wordSpacing
,
1763 HTMLStyle_put_letterSpacing
,
1764 HTMLStyle_get_letterSpacing
,
1765 HTMLStyle_put_textDecoration
,
1766 HTMLStyle_get_textDecoration
,
1767 HTMLStyle_put_textDecorationNone
,
1768 HTMLStyle_get_textDecorationNone
,
1769 HTMLStyle_put_textDecorationUnderline
,
1770 HTMLStyle_get_textDecorationUnderline
,
1771 HTMLStyle_put_textDecorationOverline
,
1772 HTMLStyle_get_textDecorationOverline
,
1773 HTMLStyle_put_textDecorationLineThrough
,
1774 HTMLStyle_get_textDecorationLineThrough
,
1775 HTMLStyle_put_textDecorationBlink
,
1776 HTMLStyle_get_textDecorationBlink
,
1777 HTMLStyle_put_verticalAlign
,
1778 HTMLStyle_get_verticalAlign
,
1779 HTMLStyle_put_textTransform
,
1780 HTMLStyle_get_textTransform
,
1781 HTMLStyle_put_textAlign
,
1782 HTMLStyle_get_textAlign
,
1783 HTMLStyle_put_textIndent
,
1784 HTMLStyle_get_textIndent
,
1785 HTMLStyle_put_lineHeight
,
1786 HTMLStyle_get_lineHeight
,
1787 HTMLStyle_put_marginTop
,
1788 HTMLStyle_get_marginTop
,
1789 HTMLStyle_put_marginRight
,
1790 HTMLStyle_get_marginRight
,
1791 HTMLStyle_put_marginBottom
,
1792 HTMLStyle_get_marginBottom
,
1793 HTMLStyle_put_marginLeft
,
1794 HTMLStyle_get_marginLeft
,
1795 HTMLStyle_put_margin
,
1796 HTMLStyle_get_margin
,
1797 HTMLStyle_put_paddingTop
,
1798 HTMLStyle_get_paddingTop
,
1799 HTMLStyle_put_paddingRight
,
1800 HTMLStyle_get_paddingRight
,
1801 HTMLStyle_put_paddingBottom
,
1802 HTMLStyle_get_paddingBottom
,
1803 HTMLStyle_put_paddingLeft
,
1804 HTMLStyle_get_paddingLeft
,
1805 HTMLStyle_put_padding
,
1806 HTMLStyle_get_padding
,
1807 HTMLStyle_put_border
,
1808 HTMLStyle_get_border
,
1809 HTMLStyle_put_borderTop
,
1810 HTMLStyle_get_borderTop
,
1811 HTMLStyle_put_borderRight
,
1812 HTMLStyle_get_borderRight
,
1813 HTMLStyle_put_borderBottom
,
1814 HTMLStyle_get_borderBottom
,
1815 HTMLStyle_put_borderLeft
,
1816 HTMLStyle_get_borderLeft
,
1817 HTMLStyle_put_borderColor
,
1818 HTMLStyle_get_borderColor
,
1819 HTMLStyle_put_borderTopColor
,
1820 HTMLStyle_get_borderTopColor
,
1821 HTMLStyle_put_borderRightColor
,
1822 HTMLStyle_get_borderRightColor
,
1823 HTMLStyle_put_borderBottomColor
,
1824 HTMLStyle_get_borderBottomColor
,
1825 HTMLStyle_put_borderLeftColor
,
1826 HTMLStyle_get_borderLeftColor
,
1827 HTMLStyle_put_borderWidth
,
1828 HTMLStyle_get_borderWidth
,
1829 HTMLStyle_put_borderTopWidth
,
1830 HTMLStyle_get_borderTopWidth
,
1831 HTMLStyle_put_borderRightWidth
,
1832 HTMLStyle_get_borderRightWidth
,
1833 HTMLStyle_put_borderBottomWidth
,
1834 HTMLStyle_get_borderBottomWidth
,
1835 HTMLStyle_put_borderLeftWidth
,
1836 HTMLStyle_get_borderLeftWidth
,
1837 HTMLStyle_put_borderStyle
,
1838 HTMLStyle_get_borderStyle
,
1839 HTMLStyle_put_borderTopStyle
,
1840 HTMLStyle_get_borderTopStyle
,
1841 HTMLStyle_put_borderRightStyle
,
1842 HTMLStyle_get_borderRightStyle
,
1843 HTMLStyle_put_borderBottomStyle
,
1844 HTMLStyle_get_borderBottomStyle
,
1845 HTMLStyle_put_borderLeftStyle
,
1846 HTMLStyle_get_borderLeftStyle
,
1847 HTMLStyle_put_width
,
1848 HTMLStyle_get_width
,
1849 HTMLStyle_put_height
,
1850 HTMLStyle_get_height
,
1851 HTMLStyle_put_styleFloat
,
1852 HTMLStyle_get_styleFloat
,
1853 HTMLStyle_put_clear
,
1854 HTMLStyle_get_clear
,
1855 HTMLStyle_put_display
,
1856 HTMLStyle_get_display
,
1857 HTMLStyle_put_visibility
,
1858 HTMLStyle_get_visibility
,
1859 HTMLStyle_put_listStyleType
,
1860 HTMLStyle_get_listStyleType
,
1861 HTMLStyle_put_listStylePosition
,
1862 HTMLStyle_get_listStylePosition
,
1863 HTMLStyle_put_listStyleImage
,
1864 HTMLStyle_get_listStyleImage
,
1865 HTMLStyle_put_listStyle
,
1866 HTMLStyle_get_listStyle
,
1867 HTMLStyle_put_whiteSpace
,
1868 HTMLStyle_get_whiteSpace
,
1873 HTMLStyle_get_position
,
1874 HTMLStyle_put_zIndex
,
1875 HTMLStyle_get_zIndex
,
1876 HTMLStyle_put_overflow
,
1877 HTMLStyle_get_overflow
,
1878 HTMLStyle_put_pageBreakBefore
,
1879 HTMLStyle_get_pageBreakBefore
,
1880 HTMLStyle_put_pageBreakAfter
,
1881 HTMLStyle_get_pageBreakAfter
,
1882 HTMLStyle_put_cssText
,
1883 HTMLStyle_get_cssText
,
1884 HTMLStyle_put_pixelTop
,
1885 HTMLStyle_get_pixelTop
,
1886 HTMLStyle_put_pixelLeft
,
1887 HTMLStyle_get_pixelLeft
,
1888 HTMLStyle_put_pixelWidth
,
1889 HTMLStyle_get_pixelWidth
,
1890 HTMLStyle_put_pixelHeight
,
1891 HTMLStyle_get_pixelHeight
,
1892 HTMLStyle_put_posTop
,
1893 HTMLStyle_get_posTop
,
1894 HTMLStyle_put_posLeft
,
1895 HTMLStyle_get_posLeft
,
1896 HTMLStyle_put_posWidth
,
1897 HTMLStyle_get_posWidth
,
1898 HTMLStyle_put_posHeight
,
1899 HTMLStyle_get_posHeight
,
1900 HTMLStyle_put_cursor
,
1901 HTMLStyle_get_cursor
,
1904 HTMLStyle_put_filter
,
1905 HTMLStyle_get_filter
,
1906 HTMLStyle_setAttribute
,
1907 HTMLStyle_getAttribute
,
1908 HTMLStyle_removeAttribute
,
1912 static const tid_t HTMLStyle_iface_tids
[] = {
1917 static dispex_static_data_t HTMLStyle_dispex
= {
1921 HTMLStyle_iface_tids
1924 IHTMLStyle
*HTMLStyle_Create(nsIDOMCSSStyleDeclaration
*nsstyle
)
1926 HTMLStyle
*ret
= heap_alloc_zero(sizeof(HTMLStyle
));
1928 ret
->lpHTMLStyleVtbl
= &HTMLStyleVtbl
;
1930 ret
->nsstyle
= nsstyle
;
1931 HTMLStyle2_Init(ret
);
1933 nsIDOMCSSStyleDeclaration_AddRef(nsstyle
);
1935 init_dispex(&ret
->dispex
, (IUnknown
*)HTMLSTYLE(ret
), &HTMLStyle_dispex
);
1937 return HTMLSTYLE(ret
);