81 else if(
'a' <= ch && ch <=
'f')
82 ret =
ret*16 + (ch-
'a') + 10;
83 else if(
'A' <= ch && ch <=
'F')
84 ret =
ret*16 + (ch-
'A') + 10;
116 static const WCHAR formatW[] = {
'#',
'%',
'0',
'2',
'x',
'%',
'0',
'2',
'x',
'%',
'0',
'2',
'x',0};
151 static const WCHAR formatW[] = {
'#',
'%',
'x',0};
171 ERR(
"failed: %08x\n", nsres);
205 return IHTMLDOMNode_QueryInterface(&
This->textcont.element.node.IHTMLDOMNode_iface,
riid,
ppv);
212 return IHTMLDOMNode_AddRef(&
This->textcont.element.node.IHTMLDOMNode_iface);
219 return IHTMLDOMNode_Release(&
This->textcont.element.node.IHTMLDOMNode_iface);
225 return IDispatchEx_GetTypeInfoCount(&
This->textcont.element.node.event_target.dispex.IDispatchEx_iface,
233 return IDispatchEx_GetTypeInfo(&
This->textcont.element.node.event_target.dispex.IDispatchEx_iface, iTInfo,
242 return IDispatchEx_GetIDsOfNames(&
This->textcont.element.node.event_target.dispex.IDispatchEx_iface,
riid,
243 rgszNames, cNames, lcid, rgDispId);
248 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
251 return IDispatchEx_Invoke(&
This->textcont.element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
252 riid, lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
264 nsres = nsIDOMHTMLBodyElement_SetBackground(
This->nsbody, &nsstr);
281 nsres = nsIDOMHTMLBodyElement_GetBackground(
This->nsbody, &background_str);
380 nsres = nsIDOMHTMLBodyElement_SetBgColor(
This->nsbody, &strColor);
383 ERR(
"SetBgColor failed: %08x\n", nsres);
398 nsres = nsIDOMHTMLBodyElement_GetBgColor(
This->nsbody, &strColor);
406 ERR(
"SetBgColor failed: %08x\n", nsres);
425 nsres = nsIDOMHTMLBodyElement_SetText(
This->nsbody, &
text);
428 ERR(
"SetText failed: %08x\n", nsres);
445 nsres = nsIDOMHTMLBodyElement_GetText(
This->nsbody, &
text);
453 ERR(
"GetText failed: %08x\n", nsres);
473 nsres = nsIDOMHTMLBodyElement_SetLink(
This->nsbody, &link_str);
476 ERR(
"SetLink failed: %08x\n", nsres);
490 nsres = nsIDOMHTMLBodyElement_GetLink(
This->nsbody, &link_str);
505 nsres = nsIDOMHTMLBodyElement_SetVLink(
This->nsbody, &vlink_str);
508 ERR(
"SetLink failed: %08x\n", nsres);
522 nsres = nsIDOMHTMLBodyElement_GetVLink(
This->nsbody, &vlink_str);
537 nsres = nsIDOMHTMLBodyElement_SetALink(
This->nsbody, &alink_str);
540 ERR(
"SetALink failed: %08x\n", nsres);
554 nsres = nsIDOMHTMLBodyElement_GetALink(
This->nsbody, &alink_str);
633 if(!overflow || !*overflow) {
694 if(!
This->textcont.element.node.doc->nsdoc) {
699 nsres = nsIDOMHTMLDocument_CreateRange(
This->textcont.element.node.doc->nsdoc, &nsrange);
701 nsres = nsIDOMRange_SelectNodeContents(nsrange,
This->textcont.element.node.nsnode);
703 ERR(
"SelectNodeContents failed: %08x\n", nsres);
705 ERR(
"CreateRange failed: %08x\n", nsres);
710 nsIDOMRange_Release(nsrange);
772 *
ppv = &
This->IHTMLBodyElement_iface;
775 *
ppv = &
This->IHTMLBodyElement_iface;
778 *
ppv = &
This->IHTMLBodyElement_iface;
780 TRACE(
"(%p)->(IID_IHTMLTextContainer %p)\n", &
This->textcont,
ppv);
781 *
ppv = &
This->textcont.IHTMLTextContainer_iface;
807 nsIDOMHTMLBodyElement_Release(nsbody);
815 return This->textcont.element.node.doc
816 ? &
This->textcont.element.node.doc->body_event_target
817 : &
This->textcont.element.node.event_target.ptr;
826 {&DIID_HTMLTextContainerEvents},
854 IHTMLBodyElement_tid,
855 IHTMLBodyElement2_tid,
857 IHTMLTextContainer_tid,
881 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLBodyElement, (
void**)&
ret->nsbody);
883 ERR(
"Could not get nsDOMHTMLBodyElement: %08x\n", nsres);
890 *
elem = &
ret->textcont.element;
static BOOL heap_free(void *mem)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static HRESULT WINAPI HTMLBodyElement_get_vLink(IHTMLBodyElement *iface, VARIANT *p)
static const WCHAR yesW[]
static HRESULT WINAPI HTMLBodyElement_Invoke(IHTMLBodyElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLBodyElement_put_background(IHTMLBodyElement *iface, BSTR v)
static HRESULT WINAPI HTMLBodyElement_put_bgProperties(IHTMLBodyElement *iface, BSTR v)
static const WCHAR purpleW[]
static HRESULT WINAPI HTMLBodyElement_put_aLink(IHTMLBodyElement *iface, VARIANT v)
static const WCHAR whiteW[]
static const WCHAR silverW[]
static const WCHAR greenW[]
static const WCHAR visibleW[]
static const WCHAR aquaW[]
static HRESULT WINAPI HTMLBodyElement_get_bgColor(IHTMLBodyElement *iface, VARIANT *p)
static void HTMLBodyElement_unlink(HTMLDOMNode *iface)
static dispex_static_data_t HTMLBodyElement_dispex
static const cpc_entry_t HTMLBodyElement_cpc[]
static const WCHAR navyW[]
static const struct @488 keyword_table[]
static BOOL HTMLBodyElement_is_text_edit(HTMLDOMNode *iface)
HRESULT nscolor_to_str(LPCWSTR color, BSTR *ret)
static HRESULT WINAPI HTMLBodyElement_get_bgProperties(IHTMLBodyElement *iface, BSTR *p)
static const WCHAR tealW[]
static HRESULT WINAPI HTMLBodyElement_QueryInterface(IHTMLBodyElement *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLBodyElement_get_onselect(IHTMLBodyElement *iface, VARIANT *p)
static ULONG WINAPI HTMLBodyElement_AddRef(IHTMLBodyElement *iface)
static const WCHAR oliveW[]
static const IHTMLBodyElementVtbl HTMLBodyElementVtbl
static HRESULT WINAPI HTMLBodyElement_get_rightMargin(IHTMLBodyElement *iface, VARIANT *p)
static const WCHAR blueW[]
static HRESULT WINAPI HTMLBodyElement_get_onunload(IHTMLBodyElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLBodyElement_put_bottomMargin(IHTMLBodyElement *iface, VARIANT v)
static HTMLBodyElement * impl_from_IHTMLBodyElement(IHTMLBodyElement *iface)
static HRESULT WINAPI HTMLBodyElement_get_noWrap(IHTMLBodyElement *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLBodyElement_get_topMargin(IHTMLBodyElement *iface, VARIANT *p)
static int loose_hex_to_rgb(const WCHAR *hex)
static HRESULT WINAPI HTMLBodyElement_get_bottomMargin(IHTMLBodyElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLBodyElement_put_noWrap(IHTMLBodyElement *iface, VARIANT_BOOL v)
static HRESULT WINAPI HTMLBodyElement_put_onload(IHTMLBodyElement *iface, VARIANT v)
static ULONG WINAPI HTMLBodyElement_Release(IHTMLBodyElement *iface)
static const WCHAR scrollW[]
static HRESULT WINAPI HTMLBodyElement_put_leftMargin(IHTMLBodyElement *iface, VARIANT v)
static HRESULT WINAPI HTMLBodyElement_put_onunload(IHTMLBodyElement *iface, VARIANT v)
static HRESULT WINAPI HTMLBodyElement_GetTypeInfoCount(IHTMLBodyElement *iface, UINT *pctinfo)
static HRESULT WINAPI HTMLBodyElement_get_background(IHTMLBodyElement *iface, BSTR *p)
static HRESULT WINAPI HTMLBodyElement_get_onload(IHTMLBodyElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLBodyElement_put_text(IHTMLBodyElement *iface, VARIANT v)
static HRESULT WINAPI HTMLBodyElement_get_scroll(IHTMLBodyElement *iface, BSTR *p)
static HRESULT WINAPI HTMLBodyElement_put_scroll(IHTMLBodyElement *iface, BSTR v)
static const WCHAR yellowW[]
static const WCHAR blackW[]
static const tid_t HTMLBodyElement_iface_tids[]
static const WCHAR grayW[]
static HRESULT WINAPI HTMLBodyElement_get_text(IHTMLBodyElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLBodyElement_get_leftMargin(IHTMLBodyElement *iface, VARIANT *p)
static const WCHAR autoW[]
static HRESULT WINAPI HTMLBodyElement_get_link(IHTMLBodyElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLBodyElement_GetTypeInfo(IHTMLBodyElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static const NodeImplVtbl HTMLBodyElementImplVtbl
static const WCHAR hiddenW[]
static const WCHAR redW[]
static const WCHAR maroonW[]
static HRESULT HTMLBodyElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
static void HTMLBodyElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
static HRESULT WINAPI HTMLBodyElement_put_rightMargin(IHTMLBodyElement *iface, VARIANT v)
static HRESULT WINAPI HTMLBodyElement_put_topMargin(IHTMLBodyElement *iface, VARIANT v)
static const WCHAR limeW[]
static HRESULT WINAPI HTMLBodyElement_get_aLink(IHTMLBodyElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLBodyElement_GetIDsOfNames(IHTMLBodyElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI HTMLBodyElement_put_link(IHTMLBodyElement *iface, VARIANT v)
static const WCHAR fuchsiaW[]
static HRESULT WINAPI HTMLBodyElement_createTextRange(IHTMLBodyElement *iface, IHTMLTxtRange **range)
static HRESULT WINAPI HTMLBodyElement_put_onselect(IHTMLBodyElement *iface, VARIANT v)
static int comp_value(const WCHAR *ptr, int dpc)
static HRESULT return_nscolor(nsresult nsres, nsAString *nsstr, VARIANT *p)
HRESULT HTMLBodyElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
static HRESULT WINAPI HTMLBodyElement_get_onbeforeunload(IHTMLBodyElement *iface, VARIANT *p)
static HTMLBodyElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
static event_target_t ** HTMLBodyElement_get_event_target_ptr(HTMLDOMNode *iface)
static HRESULT WINAPI HTMLBodyElement_put_bgColor(IHTMLBodyElement *iface, VARIANT v)
BOOL variant_to_nscolor(const VARIANT *v, nsAString *nsstr)
static HRESULT WINAPI HTMLBodyElement_put_onbeforeunload(IHTMLBodyElement *iface, VARIANT v)
static HRESULT WINAPI HTMLBodyElement_put_vLink(IHTMLBodyElement *iface, VARIANT v)
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
void HTMLElement_destructor(HTMLDOMNode *iface)
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
HRESULT get_elem_style(HTMLElement *elem, styleid_t styleid, BSTR *ret)
HRESULT set_elem_style(HTMLElement *elem, styleid_t styleid, const WCHAR *val)
void HTMLTextContainer_Init(HTMLTextContainer *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
static const char * debugstr_variant(const VARIANT *var)
static HMODULE MODULEINFO DWORD cb
static VARIANTARG static DISPID
HRESULT HTMLTxtRange_Create(HTMLDocumentNode *, nsIDOMRange *, IHTMLTxtRange **) DECLSPEC_HIDDEN
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
struct nsCycleCollectionTraversalCallback nsCycleCollectionTraversalCallback
#define NS_SUCCEEDED(res)
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
BSTR WINAPI SysAllocString(LPCOLESTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
const GUID IID_IPropertyNotifySink
#define IsEqualGUID(rguid1, rguid2)
HTMLTextContainer textcont
nsIDOMHTMLBodyElement * nsbody
IHTMLBodyElement IHTMLBodyElement_iface
#define CONTAINING_RECORD(address, type, field)
_In_ DWORD _Out_ _In_ WORD wFlags
_In_ ULONG _In_ ULONG rgb
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)