Commit 54cce2e7 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLSelectElement implementation.

parent 8b3eab6e
......@@ -15,6 +15,7 @@ C_SRCS = \
htmlelem.c \
htmlinput.c \
htmlnode.c \
htmlselect.c \
main.c \
navigate.c \
nsembed.c \
......
......@@ -923,6 +923,7 @@ void HTMLElement_Create(HTMLDOMNode *node)
nsresult nsres;
static const WCHAR wszINPUT[] = {'I','N','P','U','T',0};
static const WCHAR wszSELECT[] = {'S','E','L','E','C','T',0};
ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLElement));
ret->lpHTMLElementVtbl = &HTMLElementVtbl;
......@@ -945,6 +946,8 @@ void HTMLElement_Create(HTMLDOMNode *node)
if(!strcmpW(class_name, wszINPUT))
HTMLInputElement_Create(ret);
else if(!strcmpW(class_name, wszSELECT))
HTMLSelectElement_Create(ret);
nsAString_Finish(&class_name_str);
}
......
......@@ -213,6 +213,7 @@ IHlink *Hlink_Create(void);
void HTMLElement_Create(HTMLDOMNode*);
void HTMLInputElement_Create(HTMLElement*);
void HTMLSelectElement_Create(HTMLElement*);
HTMLDOMNode *get_node(HTMLDocument*,nsIDOMNode*);
void release_nodes(HTMLDocument*);
......
......@@ -101,6 +101,7 @@ typedef nsISupports nsIDOMCDATASection;
typedef nsISupports nsIDOMProcessingInstruction;
typedef nsISupports nsIDOMEntityReference;
typedef nsISupports nsIDOMHTMLFormElement;
typedef nsISupports nsIDOMHTMLOptionsCollection;
[
object,
......@@ -510,6 +511,37 @@ interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
[
object,
uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
]
interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
{
nsresult GetType(nsAString *aType);
nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
nsresult GetValue(nsAString *aValue);
nsresult SetValue(const nsAString *aValue);
nsresult GetLength(PRUint32 *aLength);
nsresult SetLength(PRUint32 aLength);
nsresult GetForm(nsIDOMHTMLFormElement **aForm);
nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
nsresult GetDisabled(PRBool *aDisabled);
nsresult SetDisabled(PRBool aDisabled);
nsresult GetMultiple(PRBool *aMultiple);
nsresult SetMultiple(PRBool aMultiple);
nsresult GetName(nsAString *aName);
nsresult SetName(const nsAString *aName);
nsresult GetSize(PRInt32 *aSize);
nsresult SetSize(PRInt32 aSize);
nsresult GetTabIndex(PRInt32 *aTabIndex);
nsresult SetTabIndex(PRInt32 aTabIndex);
nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
nsresult Remove(PRInt32 index);
nsresult Blur();
nsresult Focus();
}
[
object,
uuid(94928ab3-8b63-11d3-989d-001083010e9b)
]
interface nsIURIContentListener : nsISupports
......
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