ReactOS 0.4.15-dev-7994-gb388cb6
htmlbody.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlbody.c:

Go to the source code of this file.

Classes

struct  HTMLBodyElement
 

Functions

static int comp_value (const WCHAR *ptr, int dpc)
 
static int loose_hex_to_rgb (const WCHAR *hex)
 
HRESULT nscolor_to_str (LPCWSTR color, BSTR *ret)
 
BOOL variant_to_nscolor (const VARIANT *v, nsAString *nsstr)
 
static HRESULT return_nscolor (nsresult nsres, nsAString *nsstr, VARIANT *p)
 
static HTMLBodyElementimpl_from_IHTMLBodyElement (IHTMLBodyElement *iface)
 
static HRESULT WINAPI HTMLBodyElement_QueryInterface (IHTMLBodyElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLBodyElement_AddRef (IHTMLBodyElement *iface)
 
static ULONG WINAPI HTMLBodyElement_Release (IHTMLBodyElement *iface)
 
static HRESULT WINAPI HTMLBodyElement_GetTypeInfoCount (IHTMLBodyElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLBodyElement_GetTypeInfo (IHTMLBodyElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLBodyElement_GetIDsOfNames (IHTMLBodyElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
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_get_background (IHTMLBodyElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLBodyElement_put_bgProperties (IHTMLBodyElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLBodyElement_get_bgProperties (IHTMLBodyElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLBodyElement_put_leftMargin (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_leftMargin (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_topMargin (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_topMargin (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_rightMargin (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_rightMargin (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_bottomMargin (IHTMLBodyElement *iface, VARIANT v)
 
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_get_noWrap (IHTMLBodyElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLBodyElement_put_bgColor (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_bgColor (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_text (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_text (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_link (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_link (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_vLink (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_vLink (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_aLink (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_aLink (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_onload (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_onload (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_onunload (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_onunload (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_scroll (IHTMLBodyElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLBodyElement_get_scroll (IHTMLBodyElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLBodyElement_put_onselect (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_onselect (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_put_onbeforeunload (IHTMLBodyElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLBodyElement_get_onbeforeunload (IHTMLBodyElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLBodyElement_createTextRange (IHTMLBodyElement *iface, IHTMLTxtRange **range)
 
static HTMLBodyElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLBodyElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLBodyElement_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLBodyElement_unlink (HTMLDOMNode *iface)
 
static event_target_t ** HTMLBodyElement_get_event_target_ptr (HTMLDOMNode *iface)
 
static BOOL HTMLBodyElement_is_text_edit (HTMLDOMNode *iface)
 
HRESULT HTMLBodyElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const WCHAR aquaW [] = {'a','q','u','a',0}
 
static const WCHAR blackW [] = {'b','l','a','c','k',0}
 
static const WCHAR blueW [] = {'b','l','u','e',0}
 
static const WCHAR fuchsiaW [] = {'f','u','s','h','s','i','a',0}
 
static const WCHAR grayW [] = {'g','r','a','y',0}
 
static const WCHAR greenW [] = {'g','r','e','e','n',0}
 
static const WCHAR limeW [] = {'l','i','m','e',0}
 
static const WCHAR maroonW [] = {'m','a','r','o','o','n',0}
 
static const WCHAR navyW [] = {'n','a','v','y',0}
 
static const WCHAR oliveW [] = {'o','l','i','v','e',0}
 
static const WCHAR purpleW [] = {'p','u','r','p','l','e',0}
 
static const WCHAR redW [] = {'r','e','d',0}
 
static const WCHAR silverW [] = {'s','i','l','v','e','r',0}
 
static const WCHAR tealW [] = {'t','e','a','l',0}
 
static const WCHAR whiteW [] = {'w','h','i','t','e',0}
 
static const WCHAR yellowW [] = {'y','e','l','l','o','w',0}
 
struct {
   LPCWSTR   keyword
 
   DWORD   rgb
 
keyword_table []
 
static const WCHAR autoW [] = {'a','u','t','o',0}
 
static const WCHAR hiddenW [] = {'h','i','d','d','e','n',0}
 
static const WCHAR scrollW [] = {'s','c','r','o','l','l',0}
 
static const WCHAR visibleW [] = {'v','i','s','i','b','l','e',0}
 
static const WCHAR yesW [] = {'y','e','s',0}
 
static const WCHAR noW [] = {'n','o',0}
 
static const IHTMLBodyElementVtbl HTMLBodyElementVtbl
 
static const cpc_entry_t HTMLBodyElement_cpc []
 
static const NodeImplVtbl HTMLBodyElementImplVtbl
 
static const tid_t HTMLBodyElement_iface_tids []
 
static dispex_static_data_t HTMLBodyElement_dispex
 

Function Documentation

◆ comp_value()

static int comp_value ( const WCHAR ptr,
int  dpc 
)
static

Definition at line 68 of file htmlbody.c.

69{
70 int ret = 0;
71 WCHAR ch;
72
73 if(dpc > 2)
74 dpc = 2;
75
76 while(dpc--) {
77 if(!*ptr)
78 ret *= 16;
79 else if(isdigitW(ch = *ptr++))
80 ret = ret*16 + (ch-'0');
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;
85 else
86 ret *= 16;
87 }
88
89 return ret;
90}
static PVOID ptr
Definition: dispmode.c:27
#define isdigitW(n)
Definition: unicode.h:50
int ret
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by fill_texture(), ipv4toui(), and loose_hex_to_rgb().

◆ HTMLBodyElement_AddRef()

static ULONG WINAPI HTMLBodyElement_AddRef ( IHTMLBodyElement *  iface)
static

Definition at line 208 of file htmlbody.c.

209{
211
212 return IHTMLDOMNode_AddRef(&This->textcont.element.node.IHTMLDOMNode_iface);
213}
static HTMLBodyElement * impl_from_IHTMLBodyElement(IHTMLBodyElement *iface)
Definition: htmlbody.c:195

◆ HTMLBodyElement_Create()

HRESULT HTMLBodyElement_Create ( HTMLDocumentNode doc,
nsIDOMHTMLElement nselem,
HTMLElement **  elem 
)

Definition at line 869 of file htmlbody.c.

870{
872 nsresult nsres;
873
874 ret = heap_alloc_zero(sizeof(HTMLBodyElement));
875 if(!ret)
876 return E_OUTOFMEMORY;
877
878 ret->IHTMLBodyElement_iface.lpVtbl = &HTMLBodyElementVtbl;
879 ret->textcont.element.node.vtbl = &HTMLBodyElementImplVtbl;
880
881 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLBodyElement, (void**)&ret->nsbody);
882 if(NS_FAILED(nsres)) {
883 ERR("Could not get nsDOMHTMLBodyElement: %08x\n", nsres);
884 heap_free(ret);
885 return E_OUTOFMEMORY;
886 }
887
888 HTMLTextContainer_Init(&ret->textcont, doc, nselem, &HTMLBodyElement_dispex);
889
890 *elem = &ret->textcont.element;
891 return S_OK;
892}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define ERR(fmt,...)
Definition: debug.h:110
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static dispex_static_data_t HTMLBodyElement_dispex
Definition: htmlbody.c:862
static const IHTMLBodyElementVtbl HTMLBodyElementVtbl
Definition: htmlbody.c:714
static const NodeImplVtbl HTMLBodyElementImplVtbl
Definition: htmlbody.c:832
void HTMLTextContainer_Init(HTMLTextContainer *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmltextcont.c:172
#define S_OK
Definition: intsafe.h:52
static size_t elem
Definition: string.c:68
#define NS_FAILED(res)

◆ HTMLBodyElement_createTextRange()

static HRESULT WINAPI HTMLBodyElement_createTextRange ( IHTMLBodyElement *  iface,
IHTMLTxtRange **  range 
)
static

Definition at line 685 of file htmlbody.c.

686{
688 nsIDOMRange *nsrange = NULL;
689 nsresult nsres;
691
692 TRACE("(%p)->(%p)\n", This, range);
693
694 if(!This->textcont.element.node.doc->nsdoc) {
695 WARN("No nsdoc\n");
696 return E_UNEXPECTED;
697 }
698
699 nsres = nsIDOMHTMLDocument_CreateRange(This->textcont.element.node.doc->nsdoc, &nsrange);
700 if(NS_SUCCEEDED(nsres)) {
701 nsres = nsIDOMRange_SelectNodeContents(nsrange, This->textcont.element.node.nsnode);
702 if(NS_FAILED(nsres))
703 ERR("SelectNodeContents failed: %08x\n", nsres);
704 }else {
705 ERR("CreateRange failed: %08x\n", nsres);
706 }
707
708 hres = HTMLTxtRange_Create(This->textcont.element.node.doc->basedoc.doc_node, nsrange, range);
709
710 nsIDOMRange_Release(nsrange);
711 return hres;
712}
#define WARN(fmt,...)
Definition: debug.h:112
#define NULL
Definition: types.h:112
GLenum GLint * range
Definition: glext.h:7539
HRESULT hres
Definition: protocol.c:465
HRESULT HTMLTxtRange_Create(HTMLDocumentNode *, nsIDOMRange *, IHTMLTxtRange **) DECLSPEC_HIDDEN
Definition: txtrange.c:1722
#define NS_SUCCEEDED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define E_UNEXPECTED
Definition: winerror.h:2456

◆ HTMLBodyElement_get_aLink()

static HRESULT WINAPI HTMLBodyElement_get_aLink ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 545 of file htmlbody.c.

546{
548 nsAString alink_str;
549 nsresult nsres;
550
551 TRACE("(%p)->(%p)\n", This, p);
552
553 nsAString_Init(&alink_str, NULL);
554 nsres = nsIDOMHTMLBodyElement_GetALink(This->nsbody, &alink_str);
555 return return_nscolor(nsres, &alink_str, p);
556}
GLfloat GLfloat p
Definition: glext.h:8902
static HRESULT return_nscolor(nsresult nsres, nsAString *nsstr, VARIANT *p)
Definition: htmlbody.c:166
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817

◆ HTMLBodyElement_get_background()

static HRESULT WINAPI HTMLBodyElement_get_background ( IHTMLBodyElement *  iface,
BSTR p 
)
static

Definition at line 272 of file htmlbody.c.

273{
275 nsAString background_str;
276 nsresult nsres;
277
278 TRACE("(%p)->(%p)\n", This, p);
279
280 nsAString_Init(&background_str, NULL);
281 nsres = nsIDOMHTMLBodyElement_GetBackground(This->nsbody, &background_str);
282 return return_nsstr(nsres, &background_str, p);
283}
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841

◆ HTMLBodyElement_get_bgColor()

static HRESULT WINAPI HTMLBodyElement_get_bgColor ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 388 of file htmlbody.c.

389{
391 nsAString strColor;
392 nsresult nsres;
394
395 TRACE("(%p)->(%p)\n", This, p);
396
397 nsAString_Init(&strColor, NULL);
398 nsres = nsIDOMHTMLBodyElement_GetBgColor(This->nsbody, &strColor);
399 if(NS_SUCCEEDED(nsres)) {
400 const PRUnichar *color;
401
402 nsAString_GetData(&strColor, &color);
403 V_VT(p) = VT_BSTR;
405 }else {
406 ERR("SetBgColor failed: %08x\n", nsres);
407 hres = E_FAIL;
408 }
409
410 nsAString_Finish(&strColor);
411 return hres;
412}
#define E_FAIL
Definition: ddrawi.h:102
@ VT_BSTR
Definition: compat.h:2303
GLuint color
Definition: glext.h:6243
HRESULT nscolor_to_str(LPCWSTR color, BSTR *ret)
Definition: htmlbody.c:111
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
WCHAR PRUnichar
Definition: nsiface.idl:48
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226

◆ HTMLBodyElement_get_bgProperties()

static HRESULT WINAPI HTMLBodyElement_get_bgProperties ( IHTMLBodyElement *  iface,
BSTR p 
)
static

Definition at line 292 of file htmlbody.c.

293{
295 FIXME("(%p)->(%p)\n", This, p);
296 return E_NOTIMPL;
297}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLBodyElement_get_bottomMargin()

static HRESULT WINAPI HTMLBodyElement_get_bottomMargin ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 348 of file htmlbody.c.

349{
351 FIXME("(%p)->(%p)\n", This, p);
352 return E_NOTIMPL;
353}

◆ HTMLBodyElement_get_event_target_ptr()

static event_target_t ** HTMLBodyElement_get_event_target_ptr ( HTMLDOMNode iface)
static

Definition at line 811 of file htmlbody.c.

812{
814
815 return This->textcont.element.node.doc
816 ? &This->textcont.element.node.doc->body_event_target
817 : &This->textcont.element.node.event_target.ptr;
818}
static HTMLBodyElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlbody.c:759

◆ HTMLBodyElement_get_leftMargin()

static HRESULT WINAPI HTMLBodyElement_get_leftMargin ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 306 of file htmlbody.c.

307{
309 FIXME("(%p)->(%p)\n", This, p);
310 return E_NOTIMPL;
311}

◆ HTMLBodyElement_get_link()

static HRESULT WINAPI HTMLBodyElement_get_link ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 481 of file htmlbody.c.

482{
484 nsAString link_str;
485 nsresult nsres;
486
487 TRACE("(%p)->(%p)\n", This, p);
488
489 nsAString_Init(&link_str, NULL);
490 nsres = nsIDOMHTMLBodyElement_GetLink(This->nsbody, &link_str);
491 return return_nscolor(nsres, &link_str, p);
492}

◆ HTMLBodyElement_get_noWrap()

static HRESULT WINAPI HTMLBodyElement_get_noWrap ( IHTMLBodyElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 362 of file htmlbody.c.

363{
365 FIXME("(%p)->(%p)\n", This, p);
366 return E_NOTIMPL;
367}

◆ HTMLBodyElement_get_onbeforeunload()

static HRESULT WINAPI HTMLBodyElement_get_onbeforeunload ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 678 of file htmlbody.c.

679{
681 FIXME("(%p)->(%p)\n", This, p);
682 return E_NOTIMPL;
683}

◆ HTMLBodyElement_get_onload()

static HRESULT WINAPI HTMLBodyElement_get_onload ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 567 of file htmlbody.c.

568{
570
571 TRACE("(%p)->(%p)\n", This, p);
572
573 return get_node_event(&This->textcont.element.node, EVENTID_LOAD, p);
574}
@ EVENTID_LOAD
Definition: htmlevent.h:39
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:85

◆ HTMLBodyElement_get_onselect()

static HRESULT WINAPI HTMLBodyElement_get_onselect ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 664 of file htmlbody.c.

665{
667 FIXME("(%p)->(%p)\n", This, p);
668 return E_NOTIMPL;
669}

◆ HTMLBodyElement_get_onunload()

static HRESULT WINAPI HTMLBodyElement_get_onunload ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 583 of file htmlbody.c.

584{
586 FIXME("(%p)->(%p)\n", This, p);
587 return E_NOTIMPL;
588}

◆ HTMLBodyElement_get_rightMargin()

static HRESULT WINAPI HTMLBodyElement_get_rightMargin ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 334 of file htmlbody.c.

335{
337 FIXME("(%p)->(%p)\n", This, p);
338 return E_NOTIMPL;
339}

◆ HTMLBodyElement_get_scroll()

static HRESULT WINAPI HTMLBodyElement_get_scroll ( IHTMLBodyElement *  iface,
BSTR p 
)
static

Definition at line 619 of file htmlbody.c.

620{
622 const WCHAR *ret = NULL;
623 BSTR overflow;
625
626 TRACE("(%p)->(%p)\n", This, p);
627
628 /* Emulate with CSS visibility attribute */
629 hres = get_elem_style(&This->textcont.element, STYLEID_OVERFLOW, &overflow);
630 if(FAILED(hres))
631 return hres;
632
633 if(!overflow || !*overflow) {
634 *p = NULL;
635 hres = S_OK;
636 }else if(!strcmpW(overflow, visibleW) || !strcmpW(overflow, autoW)) {
637 ret = autoW;
638 }else if(!strcmpW(overflow, scrollW)) {
639 ret = yesW;
640 }else if(!strcmpW(overflow, hiddenW)) {
641 ret = noW;
642 }else {
643 TRACE("Defaulting %s to NULL\n", debugstr_w(overflow));
644 *p = NULL;
645 hres = S_OK;
646 }
647
648 SysFreeString(overflow);
649 if(ret) {
650 *p = SysAllocString(ret);
651 hres = *p ? S_OK : E_OUTOFMEMORY;
652 }
653
654 return hres;
655}
OLECHAR * BSTR
Definition: compat.h:2293
static const WCHAR yesW[]
Definition: htmlbody.c:594
static const WCHAR visibleW[]
Definition: htmlbody.c:593
static const WCHAR noW[]
Definition: htmlbody.c:595
static const WCHAR scrollW[]
Definition: htmlbody.c:592
static const WCHAR autoW[]
Definition: htmlbody.c:590
static const WCHAR hiddenW[]
Definition: htmlbody.c:591
HRESULT get_elem_style(HTMLElement *elem, styleid_t styleid, BSTR *ret)
Definition: htmlstyle.c:3219
@ STYLEID_OVERFLOW
Definition: htmlstyle.h:98
#define FAILED(hr)
Definition: intsafe.h:51
#define debugstr_w
Definition: kernel32.h:32
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
#define strcmpW(s1, s2)
Definition: unicode.h:38

◆ HTMLBodyElement_get_text()

static HRESULT WINAPI HTMLBodyElement_get_text ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 435 of file htmlbody.c.

436{
439 nsresult nsres;
441
442 TRACE("(%p)->(%p)\n", This, p);
443
445 nsres = nsIDOMHTMLBodyElement_GetText(This->nsbody, &text);
446 if(NS_SUCCEEDED(nsres)) {
447 const PRUnichar *color;
448
450 V_VT(p) = VT_BSTR;
452 }else {
453 ERR("GetText failed: %08x\n", nsres);
454 hres = E_FAIL;
455 }
456
458
459 return hres;
460}
const WCHAR * text
Definition: package.c:1799

◆ HTMLBodyElement_get_topMargin()

static HRESULT WINAPI HTMLBodyElement_get_topMargin ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 320 of file htmlbody.c.

321{
323 FIXME("(%p)->(%p)\n", This, p);
324 return E_NOTIMPL;
325}

◆ HTMLBodyElement_get_vLink()

static HRESULT WINAPI HTMLBodyElement_get_vLink ( IHTMLBodyElement *  iface,
VARIANT p 
)
static

Definition at line 513 of file htmlbody.c.

514{
516 nsAString vlink_str;
517 nsresult nsres;
518
519 TRACE("(%p)->(%p)\n", This, p);
520
521 nsAString_Init(&vlink_str, NULL);
522 nsres = nsIDOMHTMLBodyElement_GetVLink(This->nsbody, &vlink_str);
523 return return_nscolor(nsres, &vlink_str, p);
524}

◆ HTMLBodyElement_GetIDsOfNames()

static HRESULT WINAPI HTMLBodyElement_GetIDsOfNames ( IHTMLBodyElement *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 237 of file htmlbody.c.

240{
242 return IDispatchEx_GetIDsOfNames(&This->textcont.element.node.event_target.dispex.IDispatchEx_iface, riid,
243 rgszNames, cNames, lcid, rgDispId);
244}
REFIID riid
Definition: atlbase.h:39

◆ HTMLBodyElement_GetTypeInfo()

static HRESULT WINAPI HTMLBodyElement_GetTypeInfo ( IHTMLBodyElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 229 of file htmlbody.c.

231{
233 return IDispatchEx_GetTypeInfo(&This->textcont.element.node.event_target.dispex.IDispatchEx_iface, iTInfo,
234 lcid, ppTInfo);
235}

◆ HTMLBodyElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLBodyElement_GetTypeInfoCount ( IHTMLBodyElement *  iface,
UINT pctinfo 
)
static

Definition at line 222 of file htmlbody.c.

223{
225 return IDispatchEx_GetTypeInfoCount(&This->textcont.element.node.event_target.dispex.IDispatchEx_iface,
226 pctinfo);
227}

◆ HTMLBodyElement_Invoke()

static HRESULT WINAPI HTMLBodyElement_Invoke ( IHTMLBodyElement *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 246 of file htmlbody.c.

249{
251 return IDispatchEx_Invoke(&This->textcont.element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
252 riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
253}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ HTMLBodyElement_is_text_edit()

static BOOL HTMLBodyElement_is_text_edit ( HTMLDOMNode iface)
static

Definition at line 820 of file htmlbody.c.

821{
822 return TRUE;
823}
#define TRUE
Definition: types.h:120

◆ HTMLBodyElement_put_aLink()

static HRESULT WINAPI HTMLBodyElement_put_aLink ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 526 of file htmlbody.c.

527{
529 nsAString alink_str;
530 nsresult nsres;
531
532 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
533
534 if(!variant_to_nscolor(&v, &alink_str))
535 return S_OK;
536
537 nsres = nsIDOMHTMLBodyElement_SetALink(This->nsbody, &alink_str);
538 nsAString_Finish(&alink_str);
539 if(NS_FAILED(nsres))
540 ERR("SetALink failed: %08x\n", nsres);
541
542 return S_OK;
543}
const GLdouble * v
Definition: gl.h:2040
BOOL variant_to_nscolor(const VARIANT *v, nsAString *nsstr)
Definition: htmlbody.c:142
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLBodyElement_put_background()

static HRESULT WINAPI HTMLBodyElement_put_background ( IHTMLBodyElement *  iface,
BSTR  v 
)
static

Definition at line 255 of file htmlbody.c.

256{
258 nsAString nsstr;
259 nsresult nsres;
260
261 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
262
263 nsAString_InitDepend(&nsstr, v);
264 nsres = nsIDOMHTMLBodyElement_SetBackground(This->nsbody, &nsstr);
265 nsAString_Finish(&nsstr);
266 if(NS_FAILED(nsres))
267 return E_FAIL;
268
269 return S_OK;
270}
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826

◆ HTMLBodyElement_put_bgColor()

static HRESULT WINAPI HTMLBodyElement_put_bgColor ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 369 of file htmlbody.c.

370{
372 nsAString strColor;
373 nsresult nsres;
374
375 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
376
377 if(!variant_to_nscolor(&v, &strColor))
378 return S_OK;
379
380 nsres = nsIDOMHTMLBodyElement_SetBgColor(This->nsbody, &strColor);
381 nsAString_Finish(&strColor);
382 if(NS_FAILED(nsres))
383 ERR("SetBgColor failed: %08x\n", nsres);
384
385 return S_OK;
386}

◆ HTMLBodyElement_put_bgProperties()

static HRESULT WINAPI HTMLBodyElement_put_bgProperties ( IHTMLBodyElement *  iface,
BSTR  v 
)
static

Definition at line 285 of file htmlbody.c.

286{
288 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
289 return E_NOTIMPL;
290}

◆ HTMLBodyElement_put_bottomMargin()

static HRESULT WINAPI HTMLBodyElement_put_bottomMargin ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 341 of file htmlbody.c.

342{
344 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
345 return E_NOTIMPL;
346}

◆ HTMLBodyElement_put_leftMargin()

static HRESULT WINAPI HTMLBodyElement_put_leftMargin ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 299 of file htmlbody.c.

300{
302 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
303 return E_NOTIMPL;
304}

◆ HTMLBodyElement_put_link()

static HRESULT WINAPI HTMLBodyElement_put_link ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 462 of file htmlbody.c.

463{
465 nsAString link_str;
466 nsresult nsres;
467
468 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
469
470 if(!variant_to_nscolor(&v, &link_str))
471 return S_OK;
472
473 nsres = nsIDOMHTMLBodyElement_SetLink(This->nsbody, &link_str);
474 nsAString_Finish(&link_str);
475 if(NS_FAILED(nsres))
476 ERR("SetLink failed: %08x\n", nsres);
477
478 return S_OK;
479}

◆ HTMLBodyElement_put_noWrap()

static HRESULT WINAPI HTMLBodyElement_put_noWrap ( IHTMLBodyElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 355 of file htmlbody.c.

356{
358 FIXME("(%p)->(%x)\n", This, v);
359 return E_NOTIMPL;
360}

◆ HTMLBodyElement_put_onbeforeunload()

static HRESULT WINAPI HTMLBodyElement_put_onbeforeunload ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 671 of file htmlbody.c.

672{
674 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
675 return E_NOTIMPL;
676}

◆ HTMLBodyElement_put_onload()

static HRESULT WINAPI HTMLBodyElement_put_onload ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 558 of file htmlbody.c.

559{
561
562 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
563
564 return set_node_event(&This->textcont.element.node, EVENTID_LOAD, &v);
565}
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:80

◆ HTMLBodyElement_put_onselect()

static HRESULT WINAPI HTMLBodyElement_put_onselect ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 657 of file htmlbody.c.

658{
660 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
661 return E_NOTIMPL;
662}

◆ HTMLBodyElement_put_onunload()

static HRESULT WINAPI HTMLBodyElement_put_onunload ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 576 of file htmlbody.c.

577{
579 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
580 return E_NOTIMPL;
581}

◆ HTMLBodyElement_put_rightMargin()

static HRESULT WINAPI HTMLBodyElement_put_rightMargin ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 327 of file htmlbody.c.

328{
330 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
331 return E_NOTIMPL;
332}

◆ HTMLBodyElement_put_scroll()

static HRESULT WINAPI HTMLBodyElement_put_scroll ( IHTMLBodyElement *  iface,
BSTR  v 
)
static

Definition at line 597 of file htmlbody.c.

598{
600 static const WCHAR *val;
601
602 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
603
604 /* Emulate with CSS visibility attribute */
605 if(!strcmpW(v, yesW)) {
606 val = scrollW;
607 }else if(!strcmpW(v, autoW)) {
608 val = visibleW;
609 }else if(!strcmpW(v, noW)) {
610 val = hiddenW;
611 }else {
612 WARN("Invalid argument %s\n", debugstr_w(v));
613 return E_INVALIDARG;
614 }
615
616 return set_elem_style(&This->textcont.element, STYLEID_OVERFLOW, val);
617}
#define E_INVALIDARG
Definition: ddrawi.h:101
GLuint GLfloat * val
Definition: glext.h:7180
HRESULT set_elem_style(HTMLElement *elem, styleid_t styleid, const WCHAR *val)
Definition: htmlstyle.c:3233

◆ HTMLBodyElement_put_text()

static HRESULT WINAPI HTMLBodyElement_put_text ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 414 of file htmlbody.c.

415{
418 nsresult nsres;
419
420 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
421
422 if(!variant_to_nscolor(&v, &text))
423 return S_OK;
424
425 nsres = nsIDOMHTMLBodyElement_SetText(This->nsbody, &text);
427 if(NS_FAILED(nsres)) {
428 ERR("SetText failed: %08x\n", nsres);
429 return E_FAIL;
430 }
431
432 return S_OK;
433}

◆ HTMLBodyElement_put_topMargin()

static HRESULT WINAPI HTMLBodyElement_put_topMargin ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 313 of file htmlbody.c.

314{
316 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
317 return E_NOTIMPL;
318}

◆ HTMLBodyElement_put_vLink()

static HRESULT WINAPI HTMLBodyElement_put_vLink ( IHTMLBodyElement *  iface,
VARIANT  v 
)
static

Definition at line 494 of file htmlbody.c.

495{
497 nsAString vlink_str;
498 nsresult nsres;
499
500 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
501
502 if(!variant_to_nscolor(&v, &vlink_str))
503 return S_OK;
504
505 nsres = nsIDOMHTMLBodyElement_SetVLink(This->nsbody, &vlink_str);
506 nsAString_Finish(&vlink_str);
507 if(NS_FAILED(nsres))
508 ERR("SetLink failed: %08x\n", nsres);
509
510 return S_OK;
511}

◆ HTMLBodyElement_QI()

static HRESULT HTMLBodyElement_QI ( HTMLDOMNode iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 764 of file htmlbody.c.

765{
767
768 *ppv = NULL;
769
771 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
772 *ppv = &This->IHTMLBodyElement_iface;
773 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
774 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
775 *ppv = &This->IHTMLBodyElement_iface;
776 }else if(IsEqualGUID(&IID_IHTMLBodyElement, riid)) {
777 TRACE("(%p)->(IID_IHTMLBodyElement %p)\n", This, ppv);
778 *ppv = &This->IHTMLBodyElement_iface;
779 }else if(IsEqualGUID(&IID_IHTMLTextContainer, riid)) {
780 TRACE("(%p)->(IID_IHTMLTextContainer %p)\n", &This->textcont, ppv);
781 *ppv = &This->textcont.IHTMLTextContainer_iface;
782 }
783
784 if(*ppv) {
785 IUnknown_AddRef((IUnknown*)*ppv);
786 return S_OK;
787 }
788
789 return HTMLElement_QI(&This->textcont.element.node, riid, ppv);
790}
const GUID IID_IUnknown
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
REFIID LPVOID * ppv
Definition: atlbase.h:39
const GUID IID_IDispatch
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147

◆ HTMLBodyElement_QueryInterface()

static HRESULT WINAPI HTMLBodyElement_QueryInterface ( IHTMLBodyElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 200 of file htmlbody.c.

202{
204
205 return IHTMLDOMNode_QueryInterface(&This->textcont.element.node.IHTMLDOMNode_iface, riid, ppv);
206}

◆ HTMLBodyElement_Release()

static ULONG WINAPI HTMLBodyElement_Release ( IHTMLBodyElement *  iface)
static

Definition at line 215 of file htmlbody.c.

216{
218
219 return IHTMLDOMNode_Release(&This->textcont.element.node.IHTMLDOMNode_iface);
220}

◆ HTMLBodyElement_traverse()

static void HTMLBodyElement_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 792 of file htmlbody.c.

793{
795
796 if(This->nsbody)
797 note_cc_edge((nsISupports*)This->nsbody, "This->nsbody", cb);
798}
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33

◆ HTMLBodyElement_unlink()

static void HTMLBodyElement_unlink ( HTMLDOMNode iface)
static

Definition at line 800 of file htmlbody.c.

801{
803
804 if(This->nsbody) {
805 nsIDOMHTMLBodyElement *nsbody = This->nsbody;
806 This->nsbody = NULL;
807 nsIDOMHTMLBodyElement_Release(nsbody);
808 }
809}

◆ impl_from_HTMLDOMNode()

static HTMLBodyElement * impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 759 of file htmlbody.c.

760{
761 return CONTAINING_RECORD(iface, HTMLBodyElement, textcont.element.node);
762}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by HTMLBodyElement_get_event_target_ptr(), HTMLBodyElement_QI(), HTMLBodyElement_traverse(), and HTMLBodyElement_unlink().

◆ impl_from_IHTMLBodyElement()

static HTMLBodyElement * impl_from_IHTMLBodyElement ( IHTMLBodyElement *  iface)
inlinestatic

◆ loose_hex_to_rgb()

static int loose_hex_to_rgb ( const WCHAR hex)
static

Definition at line 93 of file htmlbody.c.

94{
95 int len, dpc;
96
97 len = strlenW(hex);
98 if(*hex == '#') {
99 hex++;
100 len--;
101 }
102 if(len <= 3)
103 return 0;
104
105 dpc = min(len/3 + (len%3 ? 1 : 0), 4);
106 return (comp_value(hex, dpc) << 16)
107 | (comp_value(hex+dpc, dpc) << 8)
108 | comp_value(hex+2*dpc, dpc);
109}
GLenum GLsizei len
Definition: glext.h:6722
static int comp_value(const WCHAR *ptr, int dpc)
Definition: htmlbody.c:68
int hex(char ch)
#define min(a, b)
Definition: monoChain.cc:55
#define strlenW(s)
Definition: unicode.h:28

Referenced by nscolor_to_str().

◆ nscolor_to_str()

HRESULT nscolor_to_str ( LPCWSTR  color,
BSTR ret 
)

Definition at line 111 of file htmlbody.c.

112{
113 unsigned int i;
114 int rgb = -1;
115
116 static const WCHAR formatW[] = {'#','%','0','2','x','%','0','2','x','%','0','2','x',0};
117
118 if(!color || !*color) {
119 *ret = NULL;
120 return S_OK;
121 }
122
123 if(*color != '#') {
124 for(i=0; i < sizeof(keyword_table)/sizeof(keyword_table[0]); i++) {
127 }
128 }
129 if(rgb == -1)
131
133 if(!*ret)
134 return E_OUTOFMEMORY;
135
136 sprintfW(*ret, formatW, rgb>>16, (rgb>>8)&0xff, rgb&0xff);
137
138 TRACE("%s -> %s\n", debugstr_w(color), debugstr_w(*ret));
139 return S_OK;
140}
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
Definition: glfuncs.h:248
static const struct @488 keyword_table[]
static int loose_hex_to_rgb(const WCHAR *hex)
Definition: htmlbody.c:93
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:339
#define strcmpiW(s1, s2)
Definition: unicode.h:39
#define sprintfW
Definition: unicode.h:58
_In_ ULONG _In_ ULONG rgb
Definition: winddi.h:3521

Referenced by HTMLBodyElement_get_bgColor(), HTMLBodyElement_get_text(), HTMLTable_get_bgColor(), HTMLTableCell_get_bgColor(), and HTMLTableRow_get_bgColor().

◆ return_nscolor()

static HRESULT return_nscolor ( nsresult  nsres,
nsAString nsstr,
VARIANT p 
)
static

Definition at line 166 of file htmlbody.c.

167{
168 const PRUnichar *color;
169
170 if(NS_FAILED(nsres)) {
171 ERR("failed: %08x\n", nsres);
172 nsAString_Finish(nsstr);
173 return E_FAIL;
174 }
175
176 nsAString_GetData(nsstr, &color);
177
178 if(*color == '#') {
179 V_VT(p) = VT_I4;
180 V_I4(p) = strtolW(color+1, NULL, 16);
181 }else {
182 V_VT(p) = VT_BSTR;
184 if(!V_BSTR(p)) {
185 nsAString_Finish(nsstr);
186 return E_OUTOFMEMORY;
187 }
188 }
189
190 nsAString_Finish(nsstr);
191 TRACE("ret %s\n", debugstr_variant(p));
192 return S_OK;
193}
@ VT_I4
Definition: compat.h:2298
#define V_I4(A)
Definition: oleauto.h:247
#define strtolW(s, e, b)
Definition: unicode.h:33

Referenced by HTMLBodyElement_get_aLink(), HTMLBodyElement_get_link(), and HTMLBodyElement_get_vLink().

◆ variant_to_nscolor()

BOOL variant_to_nscolor ( const VARIANT v,
nsAString nsstr 
)

Definition at line 142 of file htmlbody.c.

143{
144 switch(V_VT(v)) {
145 case VT_BSTR:
146 nsAString_Init(nsstr, V_BSTR(v));
147 return TRUE;
148
149 case VT_I4: {
150 PRUnichar buf[10];
151 static const WCHAR formatW[] = {'#','%','x',0};
152
153 wsprintfW(buf, formatW, V_I4(v));
154 nsAString_Init(nsstr, buf);
155 return TRUE;
156 }
157
158 default:
159 FIXME("invalid color %s\n", debugstr_variant(v));
160 }
161
162 return FALSE;
163
164}
#define FALSE
Definition: types.h:117
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)

Referenced by HTMLBodyElement_put_aLink(), HTMLBodyElement_put_bgColor(), HTMLBodyElement_put_link(), HTMLBodyElement_put_text(), HTMLBodyElement_put_vLink(), HTMLTable_put_bgColor(), HTMLTableCell_put_bgColor(), and HTMLTableRow_put_bgColor().

Variable Documentation

◆ aquaW

const WCHAR aquaW[] = {'a','q','u','a',0}
static

Definition at line 29 of file htmlbody.c.

◆ autoW

const WCHAR autoW[] = {'a','u','t','o',0}
static

◆ blackW

const WCHAR blackW[] = {'b','l','a','c','k',0}
static

Definition at line 30 of file htmlbody.c.

◆ blueW

const WCHAR blueW[] = {'b','l','u','e',0}
static

Definition at line 31 of file htmlbody.c.

◆ fuchsiaW

const WCHAR fuchsiaW[] = {'f','u','s','h','s','i','a',0}
static

Definition at line 32 of file htmlbody.c.

◆ grayW

const WCHAR grayW[] = {'g','r','a','y',0}
static

Definition at line 33 of file htmlbody.c.

◆ greenW

const WCHAR greenW[] = {'g','r','e','e','n',0}
static

Definition at line 34 of file htmlbody.c.

◆ hiddenW

const WCHAR hiddenW[] = {'h','i','d','d','e','n',0}
static

◆ HTMLBodyElement_cpc

const cpc_entry_t HTMLBodyElement_cpc[]
static
Initial value:
= {
{&DIID_HTMLTextContainerEvents},
{NULL}
}
#define HTMLELEMENT_CPC
const GUID IID_IPropertyNotifySink

Definition at line 825 of file htmlbody.c.

◆ HTMLBodyElement_dispex

dispex_static_data_t HTMLBodyElement_dispex
static
Initial value:
= {
DispHTMLBody_tid,
}
static const tid_t HTMLBodyElement_iface_tids[]
Definition: htmlbody.c:853

Definition at line 862 of file htmlbody.c.

Referenced by HTMLBodyElement_Create().

◆ HTMLBodyElement_iface_tids

const tid_t HTMLBodyElement_iface_tids[]
static
Initial value:
= {
IHTMLBodyElement_tid,
IHTMLBodyElement2_tid,
IHTMLTextContainer_tid,
IHTMLUniqueName_tid,
0
}
#define HTMLELEMENT_TIDS

Definition at line 853 of file htmlbody.c.

◆ HTMLBodyElementImplVtbl

const NodeImplVtbl HTMLBodyElementImplVtbl
static
Initial value:
= {
}
static void HTMLBodyElement_unlink(HTMLDOMNode *iface)
Definition: htmlbody.c:800
static const cpc_entry_t HTMLBodyElement_cpc[]
Definition: htmlbody.c:825
static BOOL HTMLBodyElement_is_text_edit(HTMLDOMNode *iface)
Definition: htmlbody.c:820
static HRESULT HTMLBodyElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlbody.c:764
static void HTMLBodyElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmlbody.c:792
static event_target_t ** HTMLBodyElement_get_event_target_ptr(HTMLDOMNode *iface)
Definition: htmlbody.c:811
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlelem.c:3815
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827

Definition at line 832 of file htmlbody.c.

Referenced by HTMLBodyElement_Create().

◆ HTMLBodyElementVtbl

const IHTMLBodyElementVtbl HTMLBodyElementVtbl
static

Definition at line 714 of file htmlbody.c.

Referenced by HTMLBodyElement_Create().

◆ keyword

Definition at line 47 of file htmlbody.c.

◆ 

const struct { ... } keyword_table[]
Initial value:
= {
{aquaW, 0x00ffff},
{blackW, 0x000000},
{blueW, 0x0000ff},
{fuchsiaW, 0xff00ff},
{grayW, 0x808080},
{greenW, 0x008000},
{limeW, 0x00ff00},
{maroonW, 0x800000},
{navyW, 0x000080},
{oliveW, 0x808000},
{purpleW, 0x800080},
{redW, 0xff0000},
{silverW, 0xc0c0c0},
{tealW, 0x008080},
{whiteW, 0xffffff},
{yellowW, 0xffff00}
}
static const WCHAR purpleW[]
Definition: htmlbody.c:39
static const WCHAR whiteW[]
Definition: htmlbody.c:43
static const WCHAR silverW[]
Definition: htmlbody.c:41
static const WCHAR greenW[]
Definition: htmlbody.c:34
static const WCHAR aquaW[]
Definition: htmlbody.c:29
static const WCHAR navyW[]
Definition: htmlbody.c:37
static const WCHAR tealW[]
Definition: htmlbody.c:42
static const WCHAR oliveW[]
Definition: htmlbody.c:38
static const WCHAR blueW[]
Definition: htmlbody.c:31
static const WCHAR yellowW[]
Definition: htmlbody.c:44
static const WCHAR blackW[]
Definition: htmlbody.c:30
static const WCHAR grayW[]
Definition: htmlbody.c:33
static const WCHAR redW[]
Definition: htmlbody.c:40
static const WCHAR maroonW[]
Definition: htmlbody.c:36
static const WCHAR limeW[]
Definition: htmlbody.c:35
static const WCHAR fuchsiaW[]
Definition: htmlbody.c:32

Referenced by nscolor_to_str().

◆ limeW

const WCHAR limeW[] = {'l','i','m','e',0}
static

Definition at line 35 of file htmlbody.c.

◆ maroonW

const WCHAR maroonW[] = {'m','a','r','o','o','n',0}
static

Definition at line 36 of file htmlbody.c.

◆ navyW

const WCHAR navyW[] = {'n','a','v','y',0}
static

Definition at line 37 of file htmlbody.c.

◆ noW

◆ oliveW

const WCHAR oliveW[] = {'o','l','i','v','e',0}
static

Definition at line 38 of file htmlbody.c.

◆ purpleW

const WCHAR purpleW[] = {'p','u','r','p','l','e',0}
static

Definition at line 39 of file htmlbody.c.

◆ redW

const WCHAR redW[] = {'r','e','d',0}
static

Definition at line 40 of file htmlbody.c.

◆ rgb

Definition at line 48 of file htmlbody.c.

◆ scrollW

const WCHAR scrollW[] = {'s','c','r','o','l','l',0}
static

Definition at line 592 of file htmlbody.c.

Referenced by HTMLBodyElement_get_scroll(), and HTMLBodyElement_put_scroll().

◆ silverW

const WCHAR silverW[] = {'s','i','l','v','e','r',0}
static

Definition at line 41 of file htmlbody.c.

◆ tealW

const WCHAR tealW[] = {'t','e','a','l',0}
static

Definition at line 42 of file htmlbody.c.

◆ visibleW

const WCHAR visibleW[] = {'v','i','s','i','b','l','e',0}
static

Definition at line 593 of file htmlbody.c.

Referenced by HTMLBodyElement_get_scroll(), and HTMLBodyElement_put_scroll().

◆ whiteW

const WCHAR whiteW[] = {'w','h','i','t','e',0}
static

Definition at line 43 of file htmlbody.c.

◆ yellowW

const WCHAR yellowW[] = {'y','e','l','l','o','w',0}
static

Definition at line 44 of file htmlbody.c.

◆ yesW