2 * Copyright 2009 Alistair Leslie-Hughes
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"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
35 static inline HTMLStyle
*impl_from_IHTMLStyle3(IHTMLStyle3
*iface
)
37 return CONTAINING_RECORD(iface
, HTMLStyle
, IHTMLStyle3_iface
);
40 static HRESULT WINAPI
HTMLStyle3_QueryInterface(IHTMLStyle3
*iface
, REFIID riid
, void **ppv
)
42 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
44 return IHTMLStyle_QueryInterface(&This
->IHTMLStyle_iface
, riid
, ppv
);
47 static ULONG WINAPI
HTMLStyle3_AddRef(IHTMLStyle3
*iface
)
49 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
51 return IHTMLStyle_AddRef(&This
->IHTMLStyle_iface
);
54 static ULONG WINAPI
HTMLStyle3_Release(IHTMLStyle3
*iface
)
56 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
58 return IHTMLStyle_Release(&This
->IHTMLStyle_iface
);
61 static HRESULT WINAPI
HTMLStyle3_GetTypeInfoCount(IHTMLStyle3
*iface
, UINT
*pctinfo
)
63 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
64 return IDispatchEx_GetTypeInfoCount(&This
->dispex
.IDispatchEx_iface
, pctinfo
);
67 static HRESULT WINAPI
HTMLStyle3_GetTypeInfo(IHTMLStyle3
*iface
, UINT iTInfo
,
68 LCID lcid
, ITypeInfo
**ppTInfo
)
70 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
71 return IDispatchEx_GetTypeInfo(&This
->dispex
.IDispatchEx_iface
, iTInfo
, lcid
, ppTInfo
);
74 static HRESULT WINAPI
HTMLStyle3_GetIDsOfNames(IHTMLStyle3
*iface
, REFIID riid
,
75 LPOLESTR
*rgszNames
, UINT cNames
,
76 LCID lcid
, DISPID
*rgDispId
)
78 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
79 return IDispatchEx_GetIDsOfNames(&This
->dispex
.IDispatchEx_iface
, riid
, rgszNames
, cNames
,
83 static HRESULT WINAPI
HTMLStyle3_Invoke(IHTMLStyle3
*iface
, DISPID dispIdMember
,
84 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
85 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
87 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
88 return IDispatchEx_Invoke(&This
->dispex
.IDispatchEx_iface
, dispIdMember
, riid
, lcid
,
89 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
92 static HRESULT WINAPI
HTMLStyle3_put_layoutFlow(IHTMLStyle3
*iface
, BSTR v
)
94 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
95 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
99 static HRESULT WINAPI
HTMLStyle3_get_layoutFlow(IHTMLStyle3
*iface
, BSTR
*p
)
101 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
102 FIXME("(%p)->(%p)\n", This
, p
);
106 static HRESULT WINAPI
HTMLStyle3_put_zoom(IHTMLStyle3
*iface
, VARIANT v
)
108 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
110 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
112 /* zoom property is IE CSS extension that is mostly used as a hack to workaround IE bugs.
113 * The value is set to 1 then. We can safely ignore setting zoom to 1. */
114 if(V_VT(&v
) == VT_I4
&& V_I4(&v
) == 1)
117 FIXME("stub for %s\n", debugstr_variant(&v
));
121 static HRESULT WINAPI
HTMLStyle3_get_zoom(IHTMLStyle3
*iface
, VARIANT
*p
)
123 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
124 FIXME("(%p)->(%p)\n", This
, p
);
128 static HRESULT WINAPI
HTMLStyle3_put_wordWrap(IHTMLStyle3
*iface
, BSTR v
)
130 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
132 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
134 return set_nsstyle_attr(This
->nsstyle
, STYLEID_WORD_WRAP
, v
, 0);
137 static HRESULT WINAPI
HTMLStyle3_get_wordWrap(IHTMLStyle3
*iface
, BSTR
*p
)
139 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
141 TRACE("(%p)->(%p)\n", This
, p
);
143 return get_nsstyle_attr(This
->nsstyle
, STYLEID_WORD_WRAP
, p
, 0);
146 static HRESULT WINAPI
HTMLStyle3_put_textUnderlinePosition(IHTMLStyle3
*iface
, BSTR v
)
148 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
149 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
153 static HRESULT WINAPI
HTMLStyle3_get_textUnderlinePosition(IHTMLStyle3
*iface
, BSTR
*p
)
155 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
156 FIXME("(%p)->(%p)\n", This
, p
);
160 static HRESULT WINAPI
HTMLStyle3_put_scrollbarBaseColor(IHTMLStyle3
*iface
, VARIANT v
)
162 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
163 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
167 static HRESULT WINAPI
HTMLStyle3_get_scrollbarBaseColor(IHTMLStyle3
*iface
, VARIANT
*p
)
169 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
170 FIXME("(%p)->(%p)\n", This
, p
);
174 static HRESULT WINAPI
HTMLStyle3_put_scrollbarFaceColor(IHTMLStyle3
*iface
, VARIANT v
)
176 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
177 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
181 static HRESULT WINAPI
HTMLStyle3_get_scrollbarFaceColor(IHTMLStyle3
*iface
, VARIANT
*p
)
183 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
184 FIXME("(%p)->(%p)\n", This
, p
);
188 static HRESULT WINAPI
HTMLStyle3_put_scrollbar3dLightColor(IHTMLStyle3
*iface
, VARIANT v
)
190 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
191 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
195 static HRESULT WINAPI
HTMLStyle3_get_scrollbar3dLightColor(IHTMLStyle3
*iface
, VARIANT
*p
)
197 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
198 FIXME("(%p)->(%p)\n", This
, p
);
202 static HRESULT WINAPI
HTMLStyle3_put_scrollbarShadowColor(IHTMLStyle3
*iface
, VARIANT v
)
204 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
205 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
209 static HRESULT WINAPI
HTMLStyle3_get_scrollbarShadowColor(IHTMLStyle3
*iface
, VARIANT
*p
)
211 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
212 FIXME("(%p)->(%p)\n", This
, p
);
216 static HRESULT WINAPI
HTMLStyle3_put_scrollbarHighlightColor(IHTMLStyle3
*iface
, VARIANT v
)
218 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
219 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
223 static HRESULT WINAPI
HTMLStyle3_get_scrollbarHighlightColor(IHTMLStyle3
*iface
, VARIANT
*p
)
225 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
226 FIXME("(%p)->(%p)\n", This
, p
);
230 static HRESULT WINAPI
HTMLStyle3_put_scrollbarDarkShadowColor(IHTMLStyle3
*iface
, VARIANT v
)
232 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
233 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
237 static HRESULT WINAPI
HTMLStyle3_get_scrollbarDarkShadowColor(IHTMLStyle3
*iface
, VARIANT
*p
)
239 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
240 FIXME("(%p)->(%p)\n", This
, p
);
244 static HRESULT WINAPI
HTMLStyle3_put_scrollbarArrowColor(IHTMLStyle3
*iface
, VARIANT v
)
246 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
247 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
251 static HRESULT WINAPI
HTMLStyle3_get_scrollbarArrowColor(IHTMLStyle3
*iface
, VARIANT
*p
)
253 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
254 FIXME("(%p)->(%p)\n", This
, p
);
258 static HRESULT WINAPI
HTMLStyle3_put_scrollbarTrackColor(IHTMLStyle3
*iface
, VARIANT v
)
260 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
261 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
265 static HRESULT WINAPI
HTMLStyle3_get_scrollbarTrackColor(IHTMLStyle3
*iface
, VARIANT
*p
)
267 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
268 FIXME("(%p)->(%p)\n", This
, p
);
272 static HRESULT WINAPI
HTMLStyle3_put_writingMode(IHTMLStyle3
*iface
, BSTR v
)
274 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
275 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
279 static HRESULT WINAPI
HTMLStyle3_get_writingMode(IHTMLStyle3
*iface
, BSTR
*p
)
281 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
282 FIXME("(%p)->(%p)\n", This
, p
);
286 static HRESULT WINAPI
HTMLStyle3_put_textAlignLast(IHTMLStyle3
*iface
, BSTR v
)
288 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
289 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
293 static HRESULT WINAPI
HTMLStyle3_get_textAlignLast(IHTMLStyle3
*iface
, BSTR
*p
)
295 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
296 FIXME("(%p)->(%p)\n", This
, p
);
300 static HRESULT WINAPI
HTMLStyle3_put_textKashidaSpace(IHTMLStyle3
*iface
, VARIANT v
)
302 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
303 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
307 static HRESULT WINAPI
HTMLStyle3_get_textKashidaSpace(IHTMLStyle3
*iface
, VARIANT
*p
)
309 HTMLStyle
*This
= impl_from_IHTMLStyle3(iface
);
310 FIXME("(%p)->(%p)\n", This
, p
);
314 static const IHTMLStyle3Vtbl HTMLStyle3Vtbl
= {
315 HTMLStyle3_QueryInterface
,
318 HTMLStyle3_GetTypeInfoCount
,
319 HTMLStyle3_GetTypeInfo
,
320 HTMLStyle3_GetIDsOfNames
,
322 HTMLStyle3_put_layoutFlow
,
323 HTMLStyle3_get_layoutFlow
,
326 HTMLStyle3_put_wordWrap
,
327 HTMLStyle3_get_wordWrap
,
328 HTMLStyle3_put_textUnderlinePosition
,
329 HTMLStyle3_get_textUnderlinePosition
,
330 HTMLStyle3_put_scrollbarBaseColor
,
331 HTMLStyle3_get_scrollbarBaseColor
,
332 HTMLStyle3_put_scrollbarFaceColor
,
333 HTMLStyle3_get_scrollbarFaceColor
,
334 HTMLStyle3_put_scrollbar3dLightColor
,
335 HTMLStyle3_get_scrollbar3dLightColor
,
336 HTMLStyle3_put_scrollbarShadowColor
,
337 HTMLStyle3_get_scrollbarShadowColor
,
338 HTMLStyle3_put_scrollbarHighlightColor
,
339 HTMLStyle3_get_scrollbarHighlightColor
,
340 HTMLStyle3_put_scrollbarDarkShadowColor
,
341 HTMLStyle3_get_scrollbarDarkShadowColor
,
342 HTMLStyle3_put_scrollbarArrowColor
,
343 HTMLStyle3_get_scrollbarArrowColor
,
344 HTMLStyle3_put_scrollbarTrackColor
,
345 HTMLStyle3_get_scrollbarTrackColor
,
346 HTMLStyle3_put_writingMode
,
347 HTMLStyle3_get_writingMode
,
348 HTMLStyle3_put_textAlignLast
,
349 HTMLStyle3_get_textAlignLast
,
350 HTMLStyle3_put_textKashidaSpace
,
351 HTMLStyle3_get_textKashidaSpace
355 * IHTMLStyle4 Interface
357 static inline HTMLStyle
*impl_from_IHTMLStyle4(IHTMLStyle4
*iface
)
359 return CONTAINING_RECORD(iface
, HTMLStyle
, IHTMLStyle4_iface
);
362 static HRESULT WINAPI
HTMLStyle4_QueryInterface(IHTMLStyle4
*iface
, REFIID riid
, void **ppv
)
364 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
366 return IHTMLStyle_QueryInterface(&This
->IHTMLStyle_iface
, riid
, ppv
);
369 static ULONG WINAPI
HTMLStyle4_AddRef(IHTMLStyle4
*iface
)
371 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
373 return IHTMLStyle_AddRef(&This
->IHTMLStyle_iface
);
376 static ULONG WINAPI
HTMLStyle4_Release(IHTMLStyle4
*iface
)
378 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
380 return IHTMLStyle_Release(&This
->IHTMLStyle_iface
);
383 static HRESULT WINAPI
HTMLStyle4_GetTypeInfoCount(IHTMLStyle4
*iface
, UINT
*pctinfo
)
385 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
386 return IDispatchEx_GetTypeInfoCount(&This
->dispex
.IDispatchEx_iface
, pctinfo
);
389 static HRESULT WINAPI
HTMLStyle4_GetTypeInfo(IHTMLStyle4
*iface
, UINT iTInfo
,
390 LCID lcid
, ITypeInfo
**ppTInfo
)
392 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
393 return IDispatchEx_GetTypeInfo(&This
->dispex
.IDispatchEx_iface
, iTInfo
, lcid
, ppTInfo
);
396 static HRESULT WINAPI
HTMLStyle4_GetIDsOfNames(IHTMLStyle4
*iface
, REFIID riid
,
397 LPOLESTR
*rgszNames
, UINT cNames
,
398 LCID lcid
, DISPID
*rgDispId
)
400 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
401 return IDispatchEx_GetIDsOfNames(&This
->dispex
.IDispatchEx_iface
, riid
, rgszNames
, cNames
,
405 static HRESULT WINAPI
HTMLStyle4_Invoke(IHTMLStyle4
*iface
, DISPID dispIdMember
,
406 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
407 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
409 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
410 return IDispatchEx_Invoke(&This
->dispex
.IDispatchEx_iface
, dispIdMember
, riid
, lcid
,
411 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
414 static HRESULT WINAPI
HTMLStyle4_put_textOverflow(IHTMLStyle4
*iface
, BSTR v
)
416 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
417 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
421 static HRESULT WINAPI
HTMLStyle4_get_textOverflow(IHTMLStyle4
*iface
, BSTR
*p
)
423 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
424 FIXME("(%p)->(%p)\n", This
, p
);
428 static HRESULT WINAPI
HTMLStyle4_put_minHeight(IHTMLStyle4
*iface
, VARIANT v
)
430 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
432 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
434 return set_nsstyle_attr_var(This
->nsstyle
, STYLEID_MIN_HEIGHT
, &v
, 0);
437 static HRESULT WINAPI
HTMLStyle4_get_minHeight(IHTMLStyle4
*iface
, VARIANT
*p
)
439 HTMLStyle
*This
= impl_from_IHTMLStyle4(iface
);
441 TRACE("(%p)->(%p)\n", This
, p
);
443 return get_nsstyle_attr_var(This
->nsstyle
, STYLEID_MIN_HEIGHT
, p
, 0);
446 static const IHTMLStyle4Vtbl HTMLStyle4Vtbl
= {
447 HTMLStyle4_QueryInterface
,
450 HTMLStyle4_GetTypeInfoCount
,
451 HTMLStyle4_GetTypeInfo
,
452 HTMLStyle4_GetIDsOfNames
,
454 HTMLStyle4_put_textOverflow
,
455 HTMLStyle4_get_textOverflow
,
456 HTMLStyle4_put_minHeight
,
457 HTMLStyle4_get_minHeight
460 static inline HTMLStyle
*impl_from_IHTMLStyle5(IHTMLStyle5
*iface
)
462 return CONTAINING_RECORD(iface
, HTMLStyle
, IHTMLStyle5_iface
);
465 static HRESULT WINAPI
HTMLStyle5_QueryInterface(IHTMLStyle5
*iface
, REFIID riid
, void **ppv
)
467 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
469 return IHTMLStyle_QueryInterface(&This
->IHTMLStyle_iface
, riid
, ppv
);
472 static ULONG WINAPI
HTMLStyle5_AddRef(IHTMLStyle5
*iface
)
474 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
476 return IHTMLStyle_AddRef(&This
->IHTMLStyle_iface
);
479 static ULONG WINAPI
HTMLStyle5_Release(IHTMLStyle5
*iface
)
481 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
483 return IHTMLStyle_Release(&This
->IHTMLStyle_iface
);
486 static HRESULT WINAPI
HTMLStyle5_GetTypeInfoCount(IHTMLStyle5
*iface
, UINT
*pctinfo
)
488 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
489 return IDispatchEx_GetTypeInfoCount(&This
->dispex
.IDispatchEx_iface
, pctinfo
);
492 static HRESULT WINAPI
HTMLStyle5_GetTypeInfo(IHTMLStyle5
*iface
, UINT iTInfo
,
493 LCID lcid
, ITypeInfo
**ppTInfo
)
495 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
496 return IDispatchEx_GetTypeInfo(&This
->dispex
.IDispatchEx_iface
, iTInfo
, lcid
, ppTInfo
);
499 static HRESULT WINAPI
HTMLStyle5_GetIDsOfNames(IHTMLStyle5
*iface
, REFIID riid
,
500 LPOLESTR
*rgszNames
, UINT cNames
, LCID lcid
, DISPID
*rgDispId
)
502 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
503 return IDispatchEx_GetIDsOfNames(&This
->dispex
.IDispatchEx_iface
, riid
, rgszNames
, cNames
,
507 static HRESULT WINAPI
HTMLStyle5_Invoke(IHTMLStyle5
*iface
, DISPID dispIdMember
,
508 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
509 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
511 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
512 return IDispatchEx_Invoke(&This
->dispex
.IDispatchEx_iface
, dispIdMember
, riid
, lcid
,
513 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
516 static HRESULT WINAPI
HTMLStyle5_put_msInterpolationMode(IHTMLStyle5
*iface
, BSTR v
)
518 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
519 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
523 static HRESULT WINAPI
HTMLStyle5_get_msInterpolationMode(IHTMLStyle5
*iface
, BSTR
*p
)
525 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
526 FIXME("(%p)->(%p)\n", This
, p
);
530 static HRESULT WINAPI
HTMLStyle5_put_maxHeight(IHTMLStyle5
*iface
, VARIANT v
)
532 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
533 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
537 static HRESULT WINAPI
HTMLStyle5_get_maxHeight(IHTMLStyle5
*iface
, VARIANT
*p
)
539 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
540 FIXME("(%p)->(%p)\n", This
, p
);
544 static HRESULT WINAPI
HTMLStyle5_put_minWidth(IHTMLStyle5
*iface
, VARIANT v
)
546 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
547 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
551 static HRESULT WINAPI
HTMLStyle5_get_minWidth(IHTMLStyle5
*iface
, VARIANT
*p
)
553 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
554 FIXME("(%p)->(%p)\n", This
, p
);
558 static HRESULT WINAPI
HTMLStyle5_put_maxWidth(IHTMLStyle5
*iface
, VARIANT v
)
560 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
561 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
565 static HRESULT WINAPI
HTMLStyle5_get_maxWidth(IHTMLStyle5
*iface
, VARIANT
*p
)
567 HTMLStyle
*This
= impl_from_IHTMLStyle5(iface
);
568 FIXME("(%p)->(%p)\n", This
, p
);
572 static const IHTMLStyle5Vtbl HTMLStyle5Vtbl
= {
573 HTMLStyle5_QueryInterface
,
576 HTMLStyle5_GetTypeInfoCount
,
577 HTMLStyle5_GetTypeInfo
,
578 HTMLStyle5_GetIDsOfNames
,
580 HTMLStyle5_put_msInterpolationMode
,
581 HTMLStyle5_get_msInterpolationMode
,
582 HTMLStyle5_put_maxHeight
,
583 HTMLStyle5_get_maxHeight
,
584 HTMLStyle5_put_minWidth
,
585 HTMLStyle5_get_minWidth
,
586 HTMLStyle5_put_maxWidth
,
587 HTMLStyle5_get_maxWidth
590 static inline HTMLStyle
*impl_from_IHTMLStyle6(IHTMLStyle6
*iface
)
592 return CONTAINING_RECORD(iface
, HTMLStyle
, IHTMLStyle6_iface
);
595 static HRESULT WINAPI
HTMLStyle6_QueryInterface(IHTMLStyle6
*iface
, REFIID riid
, void **ppv
)
597 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
599 return IHTMLStyle_QueryInterface(&This
->IHTMLStyle_iface
, riid
, ppv
);
602 static ULONG WINAPI
HTMLStyle6_AddRef(IHTMLStyle6
*iface
)
604 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
606 return IHTMLStyle_AddRef(&This
->IHTMLStyle_iface
);
609 static ULONG WINAPI
HTMLStyle6_Release(IHTMLStyle6
*iface
)
611 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
613 return IHTMLStyle_Release(&This
->IHTMLStyle_iface
);
616 static HRESULT WINAPI
HTMLStyle6_GetTypeInfoCount(IHTMLStyle6
*iface
, UINT
*pctinfo
)
618 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
619 return IDispatchEx_GetTypeInfoCount(&This
->dispex
.IDispatchEx_iface
, pctinfo
);
622 static HRESULT WINAPI
HTMLStyle6_GetTypeInfo(IHTMLStyle6
*iface
, UINT iTInfo
,
623 LCID lcid
, ITypeInfo
**ppTInfo
)
625 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
626 return IDispatchEx_GetTypeInfo(&This
->dispex
.IDispatchEx_iface
, iTInfo
, lcid
, ppTInfo
);
629 static HRESULT WINAPI
HTMLStyle6_GetIDsOfNames(IHTMLStyle6
*iface
, REFIID riid
,
630 LPOLESTR
*rgszNames
, UINT cNames
, LCID lcid
, DISPID
*rgDispId
)
632 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
633 return IDispatchEx_GetIDsOfNames(&This
->dispex
.IDispatchEx_iface
, riid
, rgszNames
, cNames
,
637 static HRESULT WINAPI
HTMLStyle6_Invoke(IHTMLStyle6
*iface
, DISPID dispIdMember
,
638 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
639 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
641 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
642 return IDispatchEx_Invoke(&This
->dispex
.IDispatchEx_iface
, dispIdMember
, riid
, lcid
,
643 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
646 static HRESULT WINAPI
HTMLStyle6_put_content(IHTMLStyle6
*iface
, BSTR v
)
648 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
649 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
653 static HRESULT WINAPI
HTMLStyle6_get_content(IHTMLStyle6
*iface
, BSTR
*p
)
655 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
656 FIXME("(%p)->(%p)\n", This
, p
);
660 static HRESULT WINAPI
HTMLStyle6_put_contentSide(IHTMLStyle6
*iface
, BSTR v
)
662 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
663 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
667 static HRESULT WINAPI
HTMLStyle6_get_contentSide(IHTMLStyle6
*iface
, BSTR
*p
)
669 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
670 FIXME("(%p)->(%p)\n", This
, p
);
674 static HRESULT WINAPI
HTMLStyle6_put_counterIncrement(IHTMLStyle6
*iface
, BSTR v
)
676 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
677 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
681 static HRESULT WINAPI
HTMLStyle6_get_counterIncrement(IHTMLStyle6
*iface
, BSTR
*p
)
683 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
684 FIXME("(%p)->(%p)\n", This
, p
);
688 static HRESULT WINAPI
HTMLStyle6_put_counterReset(IHTMLStyle6
*iface
, BSTR v
)
690 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
691 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
695 static HRESULT WINAPI
HTMLStyle6_get_counterReset(IHTMLStyle6
*iface
, BSTR
*p
)
697 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
698 FIXME("(%p)->(%p)\n", This
, p
);
702 static HRESULT WINAPI
HTMLStyle6_put_outline(IHTMLStyle6
*iface
, BSTR v
)
704 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
705 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
709 static HRESULT WINAPI
HTMLStyle6_get_outline(IHTMLStyle6
*iface
, BSTR
*p
)
711 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
712 FIXME("(%p)->(%p)\n", This
, p
);
716 static HRESULT WINAPI
HTMLStyle6_put_outlineWidth(IHTMLStyle6
*iface
, VARIANT v
)
718 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
719 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
723 static HRESULT WINAPI
HTMLStyle6_get_outlineWidth(IHTMLStyle6
*iface
, VARIANT
*p
)
725 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
726 FIXME("(%p)->(%p)\n", This
, p
);
730 static HRESULT WINAPI
HTMLStyle6_put_outlineStyle(IHTMLStyle6
*iface
, BSTR v
)
732 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
733 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
737 static HRESULT WINAPI
HTMLStyle6_get_outlineStyle(IHTMLStyle6
*iface
, BSTR
*p
)
739 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
740 FIXME("(%p)->(%p)\n", This
, p
);
744 static HRESULT WINAPI
HTMLStyle6_put_outlineColor(IHTMLStyle6
*iface
, VARIANT v
)
746 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
747 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
751 static HRESULT WINAPI
HTMLStyle6_get_outlineColor(IHTMLStyle6
*iface
, VARIANT
*p
)
753 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
754 FIXME("(%p)->(%p)\n", This
, p
);
758 static HRESULT WINAPI
HTMLStyle6_put_boxSizing(IHTMLStyle6
*iface
, BSTR v
)
760 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
761 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
765 static HRESULT WINAPI
HTMLStyle6_get_boxSizing(IHTMLStyle6
*iface
, BSTR
*p
)
767 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
768 FIXME("(%p)->(%p)\n", This
, p
);
772 static HRESULT WINAPI
HTMLStyle6_put_boxSpacing(IHTMLStyle6
*iface
, BSTR v
)
774 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
775 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
779 static HRESULT WINAPI
HTMLStyle6_get_boxSpacing(IHTMLStyle6
*iface
, BSTR
*p
)
781 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
782 FIXME("(%p)->(%p)\n", This
, p
);
786 static HRESULT WINAPI
HTMLStyle6_put_orphans(IHTMLStyle6
*iface
, VARIANT v
)
788 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
789 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
793 static HRESULT WINAPI
HTMLStyle6_get_orphans(IHTMLStyle6
*iface
, VARIANT
*p
)
795 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
796 FIXME("(%p)->(%p)\n", This
, p
);
800 static HRESULT WINAPI
HTMLStyle6_put_windows(IHTMLStyle6
*iface
, VARIANT v
)
802 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
803 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
807 static HRESULT WINAPI
HTMLStyle6_get_windows(IHTMLStyle6
*iface
, VARIANT
*p
)
809 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
810 FIXME("(%p)->(%p)\n", This
, p
);
814 static HRESULT WINAPI
HTMLStyle6_put_pageBreakInside(IHTMLStyle6
*iface
, BSTR v
)
816 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
817 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
821 static HRESULT WINAPI
HTMLStyle6_get_pageBreakInside(IHTMLStyle6
*iface
, BSTR
*p
)
823 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
824 FIXME("(%p)->(%p)\n", This
, p
);
828 static HRESULT WINAPI
HTMLStyle6_put_emptyCells(IHTMLStyle6
*iface
, BSTR v
)
830 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
831 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
835 static HRESULT WINAPI
HTMLStyle6_get_emptyCells(IHTMLStyle6
*iface
, BSTR
*p
)
837 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
838 FIXME("(%p)->(%p)\n", This
, p
);
842 static HRESULT WINAPI
HTMLStyle6_put_msBlockProgression(IHTMLStyle6
*iface
, BSTR v
)
844 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
845 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
849 static HRESULT WINAPI
HTMLStyle6_get_msBlockProgression(IHTMLStyle6
*iface
, BSTR
*p
)
851 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
852 FIXME("(%p)->(%p)\n", This
, p
);
856 static HRESULT WINAPI
HTMLStyle6_put_quotes(IHTMLStyle6
*iface
, BSTR v
)
858 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
859 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
863 static HRESULT WINAPI
HTMLStyle6_get_quotes(IHTMLStyle6
*iface
, BSTR
*p
)
865 HTMLStyle
*This
= impl_from_IHTMLStyle6(iface
);
866 FIXME("(%p)->(%p)\n", This
, p
);
870 static const IHTMLStyle6Vtbl HTMLStyle6Vtbl
= {
871 HTMLStyle6_QueryInterface
,
874 HTMLStyle6_GetTypeInfoCount
,
875 HTMLStyle6_GetTypeInfo
,
876 HTMLStyle6_GetIDsOfNames
,
878 HTMLStyle6_put_content
,
879 HTMLStyle6_get_content
,
880 HTMLStyle6_put_contentSide
,
881 HTMLStyle6_get_contentSide
,
882 HTMLStyle6_put_counterIncrement
,
883 HTMLStyle6_get_counterIncrement
,
884 HTMLStyle6_put_counterReset
,
885 HTMLStyle6_get_counterReset
,
886 HTMLStyle6_put_outline
,
887 HTMLStyle6_get_outline
,
888 HTMLStyle6_put_outlineWidth
,
889 HTMLStyle6_get_outlineWidth
,
890 HTMLStyle6_put_outlineStyle
,
891 HTMLStyle6_get_outlineStyle
,
892 HTMLStyle6_put_outlineColor
,
893 HTMLStyle6_get_outlineColor
,
894 HTMLStyle6_put_boxSizing
,
895 HTMLStyle6_get_boxSizing
,
896 HTMLStyle6_put_boxSpacing
,
897 HTMLStyle6_get_boxSpacing
,
898 HTMLStyle6_put_orphans
,
899 HTMLStyle6_get_orphans
,
900 HTMLStyle6_put_windows
,
901 HTMLStyle6_get_windows
,
902 HTMLStyle6_put_pageBreakInside
,
903 HTMLStyle6_get_pageBreakInside
,
904 HTMLStyle6_put_emptyCells
,
905 HTMLStyle6_get_emptyCells
,
906 HTMLStyle6_put_msBlockProgression
,
907 HTMLStyle6_get_msBlockProgression
,
908 HTMLStyle6_put_quotes
,
909 HTMLStyle6_get_quotes
912 void HTMLStyle3_Init(HTMLStyle
*This
)
914 This
->IHTMLStyle3_iface
.lpVtbl
= &HTMLStyle3Vtbl
;
915 This
->IHTMLStyle4_iface
.lpVtbl
= &HTMLStyle4Vtbl
;
916 This
->IHTMLStyle5_iface
.lpVtbl
= &HTMLStyle5Vtbl
;
917 This
->IHTMLStyle6_iface
.lpVtbl
= &HTMLStyle6Vtbl
;