2008-10-02 15:27:17 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "ole2.h"
|
|
|
|
|
|
|
|
#include "mshtml_private.h"
|
2008-10-06 16:49:24 +02:00
|
|
|
#include "htmlstyle.h"
|
|
|
|
|
|
|
|
#include "wine/debug.h"
|
2008-10-02 15:27:17 +02:00
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
|
|
|
|
|
2009-01-13 09:22:54 +01:00
|
|
|
struct HTMLCurrentStyle {
|
2019-03-26 17:26:53 +01:00
|
|
|
CSSStyle css_style;
|
2011-09-23 13:10:51 +02:00
|
|
|
IHTMLCurrentStyle IHTMLCurrentStyle_iface;
|
|
|
|
IHTMLCurrentStyle2 IHTMLCurrentStyle2_iface;
|
|
|
|
IHTMLCurrentStyle3 IHTMLCurrentStyle3_iface;
|
|
|
|
IHTMLCurrentStyle4 IHTMLCurrentStyle4_iface;
|
2008-10-02 15:27:17 +02:00
|
|
|
|
2012-03-16 12:18:07 +01:00
|
|
|
HTMLElement *elem;
|
2009-01-13 09:22:54 +01:00
|
|
|
};
|
2008-10-02 15:27:17 +02:00
|
|
|
|
2018-08-29 14:09:41 +02:00
|
|
|
static inline HRESULT get_current_style_property(HTMLCurrentStyle *current_style, styleid_t sid, BSTR *p)
|
|
|
|
{
|
2019-03-26 17:27:00 +01:00
|
|
|
return get_style_property(¤t_style->css_style, sid, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
}
|
|
|
|
|
2018-08-29 14:10:00 +02:00
|
|
|
static inline HRESULT get_current_style_property_var(HTMLCurrentStyle *This, styleid_t sid, VARIANT *v)
|
|
|
|
{
|
2019-03-26 17:27:00 +01:00
|
|
|
return get_style_property_var(&This->css_style, sid, v);
|
2018-08-29 14:10:00 +02:00
|
|
|
}
|
|
|
|
|
2011-01-04 01:55:10 +01:00
|
|
|
static inline HTMLCurrentStyle *impl_from_IHTMLCurrentStyle(IHTMLCurrentStyle *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLCurrentStyle, IHTMLCurrentStyle_iface);
|
|
|
|
}
|
2008-10-02 15:27:17 +02:00
|
|
|
|
2011-09-23 13:10:51 +02:00
|
|
|
static inline HTMLCurrentStyle *impl_from_IHTMLCurrentStyle2(IHTMLCurrentStyle2 *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLCurrentStyle, IHTMLCurrentStyle2_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline HTMLCurrentStyle *impl_from_IHTMLCurrentStyle3(IHTMLCurrentStyle3 *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLCurrentStyle, IHTMLCurrentStyle3_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline HTMLCurrentStyle *impl_from_IHTMLCurrentStyle4(IHTMLCurrentStyle4 *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLCurrentStyle, IHTMLCurrentStyle4_iface);
|
|
|
|
}
|
|
|
|
|
2019-03-26 17:26:53 +01:00
|
|
|
static void *HTMLCurrentStyle_QI(CSSStyle *css_style, REFIID riid)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = CONTAINING_RECORD(css_style, HTMLCurrentStyle, css_style);
|
|
|
|
if(IsEqualGUID(&IID_IHTMLCurrentStyle, riid))
|
|
|
|
return &This->IHTMLCurrentStyle_iface;
|
|
|
|
if(IsEqualGUID(&IID_IHTMLCurrentStyle2, riid))
|
|
|
|
return &This->IHTMLCurrentStyle2_iface;
|
|
|
|
if(IsEqualGUID(&IID_IHTMLCurrentStyle3, riid))
|
|
|
|
return &This->IHTMLCurrentStyle3_iface;
|
|
|
|
if(IsEqualGUID(&IID_IHTMLCurrentStyle4, riid))
|
|
|
|
return &This->IHTMLCurrentStyle4_iface;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2008-10-02 15:27:17 +02:00
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_QueryInterface(IHTMLCurrentStyle *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2014-05-06 10:41:19 +02:00
|
|
|
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IHTMLCSSStyleDeclaration_QueryInterface(&This->css_style.IHTMLCSSStyleDeclaration_iface, riid, ppv);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLCurrentStyle_AddRef(IHTMLCurrentStyle *iface)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
TRACE("(%p)\n", This);
|
|
|
|
return IHTMLCSSStyleDeclaration_AddRef(&This->css_style.IHTMLCSSStyleDeclaration_iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLCurrentStyle_Release(IHTMLCurrentStyle *iface)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
TRACE("(%p)\n", This);
|
|
|
|
return IHTMLCSSStyleDeclaration_Release(&This->css_style.IHTMLCSSStyleDeclaration_iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_GetTypeInfoCount(IHTMLCurrentStyle *iface, UINT *pctinfo)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_GetTypeInfo(IHTMLCurrentStyle *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_GetIDsOfNames(IHTMLCurrentStyle *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
|
2010-12-31 11:07:33 +01:00
|
|
|
lcid, rgDispId);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_Invoke(IHTMLCurrentStyle *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
|
2008-11-21 10:51:43 +01:00
|
|
|
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_position(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-17 10:41:45 +01:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_POSITION, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_styleFloat(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2016-01-07 16:30:18 +01:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_FLOAT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_color(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-25 06:40:20 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_COLOR, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_backgroundColor(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-25 06:45:23 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BACKGROUND_COLOR, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_fontFamily(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-17 10:44:41 +01:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_FONT_FAMILY, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_fontStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 10:22:16 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_FONT_STYLE, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_fontVariant(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 10:27:37 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_FONT_VARIANT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_fontWeight(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-21 11:08:17 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_FONT_WEIGHT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_fontSize(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-21 11:14:48 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_FONT_SIZE, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_backgroundImage(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 10:24:00 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BACKGROUND_IMAGE, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_backgroundPositionX(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_backgroundPositionY(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_backgroundRepeat(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-25 05:57:40 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BACKGROUND_REPEAT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderLeftColor(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-14 12:41:22 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BORDER_LEFT_COLOR, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderTopColor(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-14 12:44:29 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BORDER_TOP_COLOR, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderRightColor(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-14 12:46:39 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BORDER_RIGHT_COLOR, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderBottomColor(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-14 12:57:18 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BORDER_BOTTOM_COLOR, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderTopStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 10:37:48 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BORDER_TOP_STYLE, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderRightStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 10:41:13 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BORDER_RIGHT_STYLE, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderBottomStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 10:43:10 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BORDER_BOTTOM_STYLE, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderLeftStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 10:45:29 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BORDER_LEFT_STYLE, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderTopWidth(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-22 12:32:59 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BORDER_TOP_WIDTH, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderRightWidth(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-22 12:28:09 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BORDER_RIGHT_WIDTH, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderBottomWidth(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-22 12:30:14 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BORDER_BOTTOM_WIDTH, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderLeftWidth(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-21 13:03:49 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BORDER_LEFT_WIDTH, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_left(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-21 11:24:25 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_LEFT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_top(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-21 11:28:33 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_TOP, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_width(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-21 12:58:57 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_WIDTH, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_height(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-22 02:49:14 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_HEIGHT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_paddingLeft(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-22 02:51:12 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_PADDING_LEFT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_paddingTop(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-14 13:05:54 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_PADDING_TOP, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_paddingRight(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-14 13:13:12 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_PADDING_RIGHT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_paddingBottom(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-14 13:15:31 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_PADDING_BOTTOM, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_textAlign(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 10:48:42 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_TEXT_ALIGN, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_textDecoration(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 11:04:19 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_TEXT_DECORATION, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_display(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-06 16:49:24 +02:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_DISPLAY, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_visibility(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-19 12:28:05 +02:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_VISIBILITY, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_zIndex(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-22 09:50:09 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_Z_INDEX, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_letterSpacing(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-16 07:40:43 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_LETTER_SPACING, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_lineHeight(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-18 12:18:45 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_LINE_HEIGHT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_textIndent(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-18 12:21:56 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_TEXT_INDENT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_verticalAlign(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-22 09:57:02 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_VERTICAL_ALIGN, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_backgroundAttachment(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_marginTop(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-16 07:46:16 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_MARGIN_TOP, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_marginRight(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-22 10:03:22 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_MARGIN_RIGHT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_marginBottom(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-16 07:48:43 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_MARGIN_BOTTOM, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_marginLeft(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-23 10:53:32 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_MARGIN_LEFT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_clear(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_listStyleType(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_listStylePosition(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_listStyleImage(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_clipTop(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_clipRight(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_clipBottom(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_clipLeft(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_overflow(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-25 07:02:24 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_OVERFLOW, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_pageBreakBefore(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_pageBreakAfter(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_cursor(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-02-20 11:05:21 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_CURSOR, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_tableLayout(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderCollapse(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_direction(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2017-02-15 16:28:46 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_DIRECTION, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_behavior(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_getAttribute(IHTMLCurrentStyle *iface, BSTR strAttributeName,
|
|
|
|
LONG lFlags, VARIANT *AttributeValue)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%s %x %p)\n", This, debugstr_w(strAttributeName), lFlags, AttributeValue);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_unicodeBidi(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_right(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-16 07:52:36 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_RIGHT, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_bottom(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-09-16 07:56:16 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_BOTTOM, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_imeMode(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_rubyAlign(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_rubyPosition(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_rubyOverhang(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_textAutospace(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_lineBreak(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_wordBreak(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_textJustify(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_textJustifyTrim(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_textKashida(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_blockDirection(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_layoutGridChar(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_layoutGridLine(IHTMLCurrentStyle *iface, VARIANT *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_layoutGridMode(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_layoutGridType(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-03-03 11:49:12 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BORDER_STYLE, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderColor(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-03-03 11:10:55 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BORDER_COLOR, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderWidth(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-25 07:10:39 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_BORDER_WIDTH, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_padding(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2011-02-04 21:26:42 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_PADDING, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_margin(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2009-08-25 07:15:03 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_MARGIN, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_accelerator(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2008-10-02 15:27:17 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_overflowX(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2016-01-11 13:51:48 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_OVERFLOW_X, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_overflowY(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2016-01-11 13:51:56 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_OVERFLOW_Y, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle_get_textTransform(IHTMLCurrentStyle *iface, BSTR *p)
|
|
|
|
{
|
2011-01-04 01:55:10 +01:00
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface);
|
2014-09-15 03:51:10 +02:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_TEXT_TRANSFORM, p);
|
2008-10-02 15:27:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLCurrentStyleVtbl HTMLCurrentStyleVtbl = {
|
|
|
|
HTMLCurrentStyle_QueryInterface,
|
|
|
|
HTMLCurrentStyle_AddRef,
|
|
|
|
HTMLCurrentStyle_Release,
|
|
|
|
HTMLCurrentStyle_GetTypeInfoCount,
|
|
|
|
HTMLCurrentStyle_GetTypeInfo,
|
|
|
|
HTMLCurrentStyle_GetIDsOfNames,
|
|
|
|
HTMLCurrentStyle_Invoke,
|
|
|
|
HTMLCurrentStyle_get_position,
|
|
|
|
HTMLCurrentStyle_get_styleFloat,
|
|
|
|
HTMLCurrentStyle_get_color,
|
|
|
|
HTMLCurrentStyle_get_backgroundColor,
|
|
|
|
HTMLCurrentStyle_get_fontFamily,
|
|
|
|
HTMLCurrentStyle_get_fontStyle,
|
|
|
|
HTMLCurrentStyle_get_fontVariant,
|
|
|
|
HTMLCurrentStyle_get_fontWeight,
|
|
|
|
HTMLCurrentStyle_get_fontSize,
|
|
|
|
HTMLCurrentStyle_get_backgroundImage,
|
|
|
|
HTMLCurrentStyle_get_backgroundPositionX,
|
|
|
|
HTMLCurrentStyle_get_backgroundPositionY,
|
|
|
|
HTMLCurrentStyle_get_backgroundRepeat,
|
|
|
|
HTMLCurrentStyle_get_borderLeftColor,
|
|
|
|
HTMLCurrentStyle_get_borderTopColor,
|
|
|
|
HTMLCurrentStyle_get_borderRightColor,
|
|
|
|
HTMLCurrentStyle_get_borderBottomColor,
|
|
|
|
HTMLCurrentStyle_get_borderTopStyle,
|
|
|
|
HTMLCurrentStyle_get_borderRightStyle,
|
|
|
|
HTMLCurrentStyle_get_borderBottomStyle,
|
|
|
|
HTMLCurrentStyle_get_borderLeftStyle,
|
|
|
|
HTMLCurrentStyle_get_borderTopWidth,
|
|
|
|
HTMLCurrentStyle_get_borderRightWidth,
|
|
|
|
HTMLCurrentStyle_get_borderBottomWidth,
|
|
|
|
HTMLCurrentStyle_get_borderLeftWidth,
|
|
|
|
HTMLCurrentStyle_get_left,
|
|
|
|
HTMLCurrentStyle_get_top,
|
|
|
|
HTMLCurrentStyle_get_width,
|
|
|
|
HTMLCurrentStyle_get_height,
|
|
|
|
HTMLCurrentStyle_get_paddingLeft,
|
|
|
|
HTMLCurrentStyle_get_paddingTop,
|
|
|
|
HTMLCurrentStyle_get_paddingRight,
|
|
|
|
HTMLCurrentStyle_get_paddingBottom,
|
|
|
|
HTMLCurrentStyle_get_textAlign,
|
|
|
|
HTMLCurrentStyle_get_textDecoration,
|
|
|
|
HTMLCurrentStyle_get_display,
|
|
|
|
HTMLCurrentStyle_get_visibility,
|
|
|
|
HTMLCurrentStyle_get_zIndex,
|
|
|
|
HTMLCurrentStyle_get_letterSpacing,
|
|
|
|
HTMLCurrentStyle_get_lineHeight,
|
|
|
|
HTMLCurrentStyle_get_textIndent,
|
|
|
|
HTMLCurrentStyle_get_verticalAlign,
|
|
|
|
HTMLCurrentStyle_get_backgroundAttachment,
|
|
|
|
HTMLCurrentStyle_get_marginTop,
|
|
|
|
HTMLCurrentStyle_get_marginRight,
|
|
|
|
HTMLCurrentStyle_get_marginBottom,
|
|
|
|
HTMLCurrentStyle_get_marginLeft,
|
|
|
|
HTMLCurrentStyle_get_clear,
|
|
|
|
HTMLCurrentStyle_get_listStyleType,
|
|
|
|
HTMLCurrentStyle_get_listStylePosition,
|
|
|
|
HTMLCurrentStyle_get_listStyleImage,
|
|
|
|
HTMLCurrentStyle_get_clipTop,
|
|
|
|
HTMLCurrentStyle_get_clipRight,
|
|
|
|
HTMLCurrentStyle_get_clipBottom,
|
|
|
|
HTMLCurrentStyle_get_clipLeft,
|
|
|
|
HTMLCurrentStyle_get_overflow,
|
|
|
|
HTMLCurrentStyle_get_pageBreakBefore,
|
|
|
|
HTMLCurrentStyle_get_pageBreakAfter,
|
|
|
|
HTMLCurrentStyle_get_cursor,
|
|
|
|
HTMLCurrentStyle_get_tableLayout,
|
|
|
|
HTMLCurrentStyle_get_borderCollapse,
|
|
|
|
HTMLCurrentStyle_get_direction,
|
|
|
|
HTMLCurrentStyle_get_behavior,
|
|
|
|
HTMLCurrentStyle_getAttribute,
|
|
|
|
HTMLCurrentStyle_get_unicodeBidi,
|
|
|
|
HTMLCurrentStyle_get_right,
|
|
|
|
HTMLCurrentStyle_get_bottom,
|
|
|
|
HTMLCurrentStyle_get_imeMode,
|
|
|
|
HTMLCurrentStyle_get_rubyAlign,
|
|
|
|
HTMLCurrentStyle_get_rubyPosition,
|
|
|
|
HTMLCurrentStyle_get_rubyOverhang,
|
|
|
|
HTMLCurrentStyle_get_textAutospace,
|
|
|
|
HTMLCurrentStyle_get_lineBreak,
|
|
|
|
HTMLCurrentStyle_get_wordBreak,
|
|
|
|
HTMLCurrentStyle_get_textJustify,
|
|
|
|
HTMLCurrentStyle_get_textJustifyTrim,
|
|
|
|
HTMLCurrentStyle_get_textKashida,
|
|
|
|
HTMLCurrentStyle_get_blockDirection,
|
|
|
|
HTMLCurrentStyle_get_layoutGridChar,
|
|
|
|
HTMLCurrentStyle_get_layoutGridLine,
|
|
|
|
HTMLCurrentStyle_get_layoutGridMode,
|
|
|
|
HTMLCurrentStyle_get_layoutGridType,
|
|
|
|
HTMLCurrentStyle_get_borderStyle,
|
|
|
|
HTMLCurrentStyle_get_borderColor,
|
|
|
|
HTMLCurrentStyle_get_borderWidth,
|
|
|
|
HTMLCurrentStyle_get_padding,
|
|
|
|
HTMLCurrentStyle_get_margin,
|
|
|
|
HTMLCurrentStyle_get_accelerator,
|
|
|
|
HTMLCurrentStyle_get_overflowX,
|
|
|
|
HTMLCurrentStyle_get_overflowY,
|
|
|
|
HTMLCurrentStyle_get_textTransform
|
|
|
|
};
|
|
|
|
|
2011-09-23 13:10:51 +02:00
|
|
|
/* IHTMLCurrentStyle2 */
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_QueryInterface(IHTMLCurrentStyle2 *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
|
|
|
|
return IHTMLCurrentStyle_QueryInterface(&This->IHTMLCurrentStyle_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLCurrentStyle2_AddRef(IHTMLCurrentStyle2 *iface)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
|
|
|
|
return IHTMLCurrentStyle_AddRef(&This->IHTMLCurrentStyle_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLCurrentStyle2_Release(IHTMLCurrentStyle2 *iface)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
return IHTMLCurrentStyle_Release(&This->IHTMLCurrentStyle_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_GetTypeInfoCount(IHTMLCurrentStyle2 *iface, UINT *pctinfo)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_GetTypeInfo(IHTMLCurrentStyle2 *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_GetIDsOfNames(IHTMLCurrentStyle2 *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
|
2011-09-23 13:10:51 +02:00
|
|
|
lcid, rgDispId);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_Invoke(IHTMLCurrentStyle2 *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
|
2011-09-23 13:10:51 +02:00
|
|
|
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_layoutFlow(IHTMLCurrentStyle2 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_wordWrap(IHTMLCurrentStyle2 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_textUnderlinePosition(IHTMLCurrentStyle2 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_hasLayout(IHTMLCurrentStyle2 *iface, VARIANT_BOOL *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
2013-08-22 15:58:47 +02:00
|
|
|
|
|
|
|
FIXME("(%p)->(%p) returning true\n", This, p);
|
|
|
|
|
|
|
|
*p = VARIANT_TRUE;
|
|
|
|
return S_OK;
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_scrollbarBaseColor(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_scrollbarFaceColor(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_scrollbar3dLightColor(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_scrollbarShadowColor(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_scrollbarHighlightColor(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_scrollbarDarkShadowColor(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_scrollbarArrowColor(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_scrollbarTrackColor(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_writingMode(IHTMLCurrentStyle2 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_zoom(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_filter(IHTMLCurrentStyle2 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
2012-03-16 12:18:07 +01:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
|
|
|
if(This->elem->filter) {
|
|
|
|
*p = SysAllocString(This->elem->filter);
|
|
|
|
if(!*p)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
}else {
|
|
|
|
*p = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return S_OK;
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_textAlignLast(IHTMLCurrentStyle2 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_textKashidaSpace(IHTMLCurrentStyle2 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle2_get_isBlock(IHTMLCurrentStyle2 *iface, VARIANT_BOOL *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLCurrentStyle2Vtbl HTMLCurrentStyle2Vtbl = {
|
|
|
|
HTMLCurrentStyle2_QueryInterface,
|
|
|
|
HTMLCurrentStyle2_AddRef,
|
|
|
|
HTMLCurrentStyle2_Release,
|
|
|
|
HTMLCurrentStyle2_GetTypeInfoCount,
|
|
|
|
HTMLCurrentStyle2_GetTypeInfo,
|
|
|
|
HTMLCurrentStyle2_GetIDsOfNames,
|
|
|
|
HTMLCurrentStyle2_Invoke,
|
|
|
|
HTMLCurrentStyle2_get_layoutFlow,
|
|
|
|
HTMLCurrentStyle2_get_wordWrap,
|
|
|
|
HTMLCurrentStyle2_get_textUnderlinePosition,
|
|
|
|
HTMLCurrentStyle2_get_hasLayout,
|
|
|
|
HTMLCurrentStyle2_get_scrollbarBaseColor,
|
|
|
|
HTMLCurrentStyle2_get_scrollbarFaceColor,
|
|
|
|
HTMLCurrentStyle2_get_scrollbar3dLightColor,
|
|
|
|
HTMLCurrentStyle2_get_scrollbarShadowColor,
|
|
|
|
HTMLCurrentStyle2_get_scrollbarHighlightColor,
|
|
|
|
HTMLCurrentStyle2_get_scrollbarDarkShadowColor,
|
|
|
|
HTMLCurrentStyle2_get_scrollbarArrowColor,
|
|
|
|
HTMLCurrentStyle2_get_scrollbarTrackColor,
|
|
|
|
HTMLCurrentStyle2_get_writingMode,
|
|
|
|
HTMLCurrentStyle2_get_zoom,
|
|
|
|
HTMLCurrentStyle2_get_filter,
|
|
|
|
HTMLCurrentStyle2_get_textAlignLast,
|
|
|
|
HTMLCurrentStyle2_get_textKashidaSpace,
|
|
|
|
HTMLCurrentStyle2_get_isBlock
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IHTMLCurrentStyle3 */
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_QueryInterface(IHTMLCurrentStyle3 *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
|
|
|
|
|
|
|
return IHTMLCurrentStyle_QueryInterface(&This->IHTMLCurrentStyle_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLCurrentStyle3_AddRef(IHTMLCurrentStyle3 *iface)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
|
|
|
|
|
|
|
return IHTMLCurrentStyle_AddRef(&This->IHTMLCurrentStyle_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLCurrentStyle3_Release(IHTMLCurrentStyle3 *iface)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
|
|
|
return IHTMLCurrentStyle_Release(&This->IHTMLCurrentStyle_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_GetTypeInfoCount(IHTMLCurrentStyle3 *iface, UINT *pctinfo)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_GetTypeInfo(IHTMLCurrentStyle3 *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_GetIDsOfNames(IHTMLCurrentStyle3 *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
|
2011-09-23 13:10:51 +02:00
|
|
|
lcid, rgDispId);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_Invoke(IHTMLCurrentStyle3 *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
|
2011-09-23 13:10:51 +02:00
|
|
|
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_get_textOverflow(IHTMLCurrentStyle3 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_get_minHeight(IHTMLCurrentStyle3 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_get_wordSpacing(IHTMLCurrentStyle3 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle3_get_whiteSpace(IHTMLCurrentStyle3 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle3(iface);
|
2015-08-14 16:59:13 +02:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2018-08-29 14:09:41 +02:00
|
|
|
return get_current_style_property(This, STYLEID_WHITE_SPACE, p);
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLCurrentStyle3Vtbl HTMLCurrentStyle3Vtbl = {
|
|
|
|
HTMLCurrentStyle3_QueryInterface,
|
|
|
|
HTMLCurrentStyle3_AddRef,
|
|
|
|
HTMLCurrentStyle3_Release,
|
|
|
|
HTMLCurrentStyle3_GetTypeInfoCount,
|
|
|
|
HTMLCurrentStyle3_GetTypeInfo,
|
|
|
|
HTMLCurrentStyle3_GetIDsOfNames,
|
|
|
|
HTMLCurrentStyle3_Invoke,
|
|
|
|
HTMLCurrentStyle3_get_textOverflow,
|
|
|
|
HTMLCurrentStyle3_get_minHeight,
|
|
|
|
HTMLCurrentStyle3_get_wordSpacing,
|
|
|
|
HTMLCurrentStyle3_get_whiteSpace
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IHTMLCurrentStyle4 */
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_QueryInterface(IHTMLCurrentStyle4 *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
|
|
|
|
|
|
|
return IHTMLCurrentStyle_QueryInterface(&This->IHTMLCurrentStyle_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLCurrentStyle4_AddRef(IHTMLCurrentStyle4 *iface)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
|
|
|
|
|
|
|
return IHTMLCurrentStyle_AddRef(&This->IHTMLCurrentStyle_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLCurrentStyle4_Release(IHTMLCurrentStyle4 *iface)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
|
|
|
return IHTMLCurrentStyle_Release(&This->IHTMLCurrentStyle_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_GetTypeInfoCount(IHTMLCurrentStyle4 *iface, UINT *pctinfo)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_GetTypeInfo(IHTMLCurrentStyle4 *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_GetIDsOfNames(IHTMLCurrentStyle4 *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
|
2011-09-23 13:10:51 +02:00
|
|
|
lcid, rgDispId);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_Invoke(IHTMLCurrentStyle4 *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
2019-03-26 17:26:53 +01:00
|
|
|
return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
|
2011-09-23 13:10:51 +02:00
|
|
|
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_msInterpolationMode(IHTMLCurrentStyle4 *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_get_maxHeight(IHTMLCurrentStyle4 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_get_minWidth(IHTMLCurrentStyle4 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
2016-01-11 13:52:07 +01:00
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
2018-08-29 14:10:00 +02:00
|
|
|
return get_current_style_property_var(This, STYLEID_MIN_WIDTH, p);
|
2011-09-23 13:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLCurrentStyle4_get_maxWidth(IHTMLCurrentStyle4 *iface, VARIANT *p)
|
|
|
|
{
|
|
|
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle4(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLCurrentStyle4Vtbl HTMLCurrentStyle4Vtbl = {
|
|
|
|
HTMLCurrentStyle4_QueryInterface,
|
|
|
|
HTMLCurrentStyle4_AddRef,
|
|
|
|
HTMLCurrentStyle4_Release,
|
|
|
|
HTMLCurrentStyle4_GetTypeInfoCount,
|
|
|
|
HTMLCurrentStyle4_GetTypeInfo,
|
|
|
|
HTMLCurrentStyle4_GetIDsOfNames,
|
|
|
|
HTMLCurrentStyle4_Invoke,
|
|
|
|
HTMLCurrentStyle4_msInterpolationMode,
|
|
|
|
HTMLCurrentStyle4_get_maxHeight,
|
|
|
|
HTMLCurrentStyle4_get_minWidth,
|
|
|
|
HTMLCurrentStyle4_get_maxWidth
|
|
|
|
};
|
|
|
|
|
2008-10-06 16:47:25 +02:00
|
|
|
static const tid_t HTMLCurrentStyle_iface_tids[] = {
|
|
|
|
IHTMLCurrentStyle_tid,
|
2009-03-05 10:08:51 +01:00
|
|
|
IHTMLCurrentStyle2_tid,
|
|
|
|
IHTMLCurrentStyle3_tid,
|
|
|
|
IHTMLCurrentStyle4_tid,
|
2008-10-06 16:47:25 +02:00
|
|
|
0
|
|
|
|
};
|
|
|
|
static dispex_static_data_t HTMLCurrentStyle_dispex = {
|
2021-10-06 17:11:31 +02:00
|
|
|
L"MSCurrentStyleCSSProperties",
|
2019-03-26 17:27:16 +01:00
|
|
|
&CSSStyle_dispex_vtbl,
|
2008-10-06 16:47:25 +02:00
|
|
|
DispHTMLCurrentStyle_tid,
|
2019-03-26 17:27:16 +01:00
|
|
|
HTMLCurrentStyle_iface_tids,
|
|
|
|
CSSStyle_init_dispex_info
|
2008-10-06 16:47:25 +02:00
|
|
|
};
|
|
|
|
|
2008-10-06 16:49:00 +02:00
|
|
|
HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p)
|
2008-10-02 15:27:17 +02:00
|
|
|
{
|
2008-10-06 16:49:00 +02:00
|
|
|
nsIDOMCSSStyleDeclaration *nsstyle;
|
2016-06-13 17:40:51 +02:00
|
|
|
mozIDOMWindowProxy *nsview;
|
|
|
|
nsIDOMWindow *nswindow;
|
2008-10-06 16:49:00 +02:00
|
|
|
nsAString nsempty_str;
|
2008-10-02 15:27:17 +02:00
|
|
|
HTMLCurrentStyle *ret;
|
2008-10-06 16:49:00 +02:00
|
|
|
nsresult nsres;
|
|
|
|
|
2009-10-21 21:27:42 +02:00
|
|
|
if(!elem->node.doc->nsdoc) {
|
2008-10-08 20:28:34 +02:00
|
|
|
WARN("NULL nsdoc\n");
|
|
|
|
return E_UNEXPECTED;
|
2008-10-06 16:49:00 +02:00
|
|
|
}
|
|
|
|
|
2011-08-23 14:07:02 +02:00
|
|
|
nsres = nsIDOMHTMLDocument_GetDefaultView(elem->node.doc->nsdoc, &nsview);
|
2008-10-06 16:49:00 +02:00
|
|
|
if(NS_FAILED(nsres)) {
|
|
|
|
ERR("GetDefaultView failed: %08x\n", nsres);
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
|
|
|
|
2016-06-13 17:40:51 +02:00
|
|
|
nsres = mozIDOMWindowProxy_QueryInterface(nsview, &IID_nsIDOMWindow, (void**)&nswindow);
|
|
|
|
mozIDOMWindowProxy_Release(nsview);
|
|
|
|
assert(nsres == NS_OK);
|
|
|
|
|
2008-10-06 16:49:00 +02:00
|
|
|
nsAString_Init(&nsempty_str, NULL);
|
2018-02-12 23:28:15 +01:00
|
|
|
nsres = nsIDOMWindow_GetComputedStyle(nswindow, elem->dom_element, &nsempty_str, &nsstyle);
|
2008-10-06 16:49:00 +02:00
|
|
|
nsAString_Finish(&nsempty_str);
|
2016-06-13 17:40:51 +02:00
|
|
|
nsIDOMWindow_Release(nswindow);
|
2008-10-06 16:49:00 +02:00
|
|
|
if(NS_FAILED(nsres)) {
|
|
|
|
ERR("GetComputedStyle failed: %08x\n", nsres);
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
2008-10-02 15:27:17 +02:00
|
|
|
|
2015-06-01 13:11:21 +02:00
|
|
|
if(!nsstyle) {
|
|
|
|
ERR("GetComputedStyle returned NULL nsstyle\n");
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
|
|
|
|
2008-10-02 15:27:17 +02:00
|
|
|
ret = heap_alloc_zero(sizeof(HTMLCurrentStyle));
|
2008-10-06 16:49:00 +02:00
|
|
|
if(!ret) {
|
|
|
|
nsIDOMCSSStyleDeclaration_Release(nsstyle);
|
2008-10-02 15:27:17 +02:00
|
|
|
return E_OUTOFMEMORY;
|
2008-10-06 16:49:00 +02:00
|
|
|
}
|
2008-10-02 15:27:17 +02:00
|
|
|
|
2011-09-23 13:10:51 +02:00
|
|
|
ret->IHTMLCurrentStyle_iface.lpVtbl = &HTMLCurrentStyleVtbl;
|
|
|
|
ret->IHTMLCurrentStyle2_iface.lpVtbl = &HTMLCurrentStyle2Vtbl;
|
|
|
|
ret->IHTMLCurrentStyle3_iface.lpVtbl = &HTMLCurrentStyle3Vtbl;
|
|
|
|
ret->IHTMLCurrentStyle4_iface.lpVtbl = &HTMLCurrentStyle4Vtbl;
|
2008-10-02 15:27:17 +02:00
|
|
|
|
2019-03-26 17:26:53 +01:00
|
|
|
init_css_style(&ret->css_style, nsstyle, HTMLCurrentStyle_QI, &HTMLCurrentStyle_dispex,
|
|
|
|
dispex_compat_mode(&elem->node.event_target.dispex));
|
|
|
|
nsIDOMCSSStyleDeclaration_Release(nsstyle);
|
2008-10-06 16:47:25 +02:00
|
|
|
|
2012-03-16 12:18:07 +01:00
|
|
|
IHTMLElement_AddRef(&elem->IHTMLElement_iface);
|
|
|
|
ret->elem = elem;
|
|
|
|
|
2011-01-04 01:55:10 +01:00
|
|
|
*p = &ret->IHTMLCurrentStyle_iface;
|
2008-10-02 15:27:17 +02:00
|
|
|
return S_OK;
|
|
|
|
}
|