Commit 26b9c5e0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLBodyElement implementation.

parent 4eb4546f
......@@ -10,6 +10,7 @@ EXTRADEFS = -DCOM_NO_WINDOWS_H
C_SRCS = \
hlink.c \
htmlbody.c \
htmldoc.c \
htmldoc3.c \
htmlelem.c \
......
......@@ -922,6 +922,7 @@ void HTMLElement_Create(HTMLDOMNode *node)
const PRUnichar *class_name;
nsresult nsres;
static const WCHAR wszBODY[] = {'B','O','D','Y',0};
static const WCHAR wszINPUT[] = {'I','N','P','U','T',0};
static const WCHAR wszSELECT[] = {'S','E','L','E','C','T',0};
static const WCHAR wszTEXTAREA[] = {'T','E','X','T','A','R','E','A',0};
......@@ -945,7 +946,9 @@ void HTMLElement_Create(HTMLDOMNode *node)
nsAString_GetData(&class_name_str, &class_name, NULL);
if(!strcmpW(class_name, wszINPUT))
if(!strcmpW(class_name, wszBODY))
HTMLBodyElement_Create(ret);
else if(!strcmpW(class_name, wszINPUT))
HTMLInputElement_Create(ret);
else if(!strcmpW(class_name, wszSELECT))
HTMLSelectElement_Create(ret);
......
......@@ -212,6 +212,7 @@ nsIInputStream *create_nsstream(const char*,PRInt32);
IHlink *Hlink_Create(void);
void HTMLElement_Create(HTMLDOMNode*);
void HTMLBodyElement_Create(HTMLElement*);
void HTMLInputElement_Create(HTMLElement*);
void HTMLSelectElement_Create(HTMLElement*);
void HTMLTextAreaElement_Create(HTMLElement*);
......
......@@ -464,6 +464,26 @@ interface nsIDOMWindow : nsISupports
[
object,
uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
]
interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
{
nsresult GetALink(nsAString *aALink);
nsresult SetALink(const nsAString *aALink);
nsresult GetBackground(nsAString *aBackground);
nsresult SetBackground(const nsAString *aBackground);
nsresult GetBgColor(nsAString *aBgColor);
nsresult SetBgColor(const nsAString *aBgColor);
nsresult GetLink(nsAString *aLink);
nsresult SetLink(const nsAString *aLink);
nsresult GetText(nsAString *aText);
nsresult SetText(const nsAString *aText);
nsresult GetVLink(nsAString *aVLink);
nsresult SetVLink(const nsAString *aVLink);
}
[
object,
uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
]
interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment