1998-07-15 20:54:19 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
|
|
|
|
|
|
|
#ifndef nsIDOMHTMLSelectElement_h__
|
|
|
|
#define nsIDOMHTMLSelectElement_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsIScriptContext.h"
|
|
|
|
#include "nsIDOMHTMLElement.h"
|
|
|
|
|
|
|
|
class nsIDOMHTMLElement;
|
|
|
|
class nsIDOMHTMLFormElement;
|
|
|
|
class nsIDOMHTMLCollection;
|
|
|
|
|
|
|
|
#define NS_IDOMHTMLSELECTELEMENT_IID \
|
1998-10-20 21:07:23 +04:00
|
|
|
{ 0xa6cf9090, 0x15b3, 0x11d2, \
|
|
|
|
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
1998-07-15 20:54:19 +04:00
|
|
|
|
|
|
|
class nsIDOMHTMLSelectElement : public nsIDOMHTMLElement {
|
|
|
|
public:
|
1998-12-23 01:03:20 +03:00
|
|
|
static const nsIID& IID() { static nsIID iid = NS_IDOMHTMLSELECTELEMENT_IID; return iid; }
|
1998-07-15 20:54:19 +04:00
|
|
|
|
|
|
|
NS_IMETHOD GetType(nsString& aType)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetSelectedIndex(PRInt32* aSelectedIndex)=0;
|
|
|
|
NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetValue(nsString& aValue)=0;
|
|
|
|
NS_IMETHOD SetValue(const nsString& aValue)=0;
|
|
|
|
|
1998-10-20 21:07:23 +04:00
|
|
|
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
1998-07-15 20:54:19 +04:00
|
|
|
|
|
|
|
NS_IMETHOD GetForm(nsIDOMHTMLFormElement** aForm)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetOptions(nsIDOMHTMLCollection** aOptions)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetDisabled(PRBool* aDisabled)=0;
|
|
|
|
NS_IMETHOD SetDisabled(PRBool aDisabled)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetMultiple(PRBool* aMultiple)=0;
|
|
|
|
NS_IMETHOD SetMultiple(PRBool aMultiple)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetName(nsString& aName)=0;
|
|
|
|
NS_IMETHOD SetName(const nsString& aName)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetSize(PRInt32* aSize)=0;
|
|
|
|
NS_IMETHOD SetSize(PRInt32 aSize)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetTabIndex(PRInt32* aTabIndex)=0;
|
|
|
|
NS_IMETHOD SetTabIndex(PRInt32 aTabIndex)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD Add(nsIDOMHTMLElement* aElement, nsIDOMHTMLElement* aBefore)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD Remove(PRInt32 aIndex)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD Blur()=0;
|
|
|
|
|
|
|
|
NS_IMETHOD Focus()=0;
|
|
|
|
};
|
|
|
|
|
1998-08-04 04:08:29 +04:00
|
|
|
|
|
|
|
#define NS_DECL_IDOMHTMLSELECTELEMENT \
|
|
|
|
NS_IMETHOD GetType(nsString& aType); \
|
|
|
|
NS_IMETHOD GetSelectedIndex(PRInt32* aSelectedIndex); \
|
|
|
|
NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex); \
|
|
|
|
NS_IMETHOD GetValue(nsString& aValue); \
|
|
|
|
NS_IMETHOD SetValue(const nsString& aValue); \
|
1998-10-20 21:07:23 +04:00
|
|
|
NS_IMETHOD GetLength(PRUint32* aLength); \
|
1998-08-04 04:08:29 +04:00
|
|
|
NS_IMETHOD GetForm(nsIDOMHTMLFormElement** aForm); \
|
|
|
|
NS_IMETHOD GetOptions(nsIDOMHTMLCollection** aOptions); \
|
|
|
|
NS_IMETHOD GetDisabled(PRBool* aDisabled); \
|
|
|
|
NS_IMETHOD SetDisabled(PRBool aDisabled); \
|
|
|
|
NS_IMETHOD GetMultiple(PRBool* aMultiple); \
|
|
|
|
NS_IMETHOD SetMultiple(PRBool aMultiple); \
|
|
|
|
NS_IMETHOD GetName(nsString& aName); \
|
|
|
|
NS_IMETHOD SetName(const nsString& aName); \
|
|
|
|
NS_IMETHOD GetSize(PRInt32* aSize); \
|
|
|
|
NS_IMETHOD SetSize(PRInt32 aSize); \
|
|
|
|
NS_IMETHOD GetTabIndex(PRInt32* aTabIndex); \
|
|
|
|
NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
|
|
|
|
NS_IMETHOD Add(nsIDOMHTMLElement* aElement, nsIDOMHTMLElement* aBefore); \
|
|
|
|
NS_IMETHOD Remove(PRInt32 aIndex); \
|
|
|
|
NS_IMETHOD Blur(); \
|
|
|
|
NS_IMETHOD Focus(); \
|
|
|
|
|
|
|
|
|
|
|
|
|
1998-08-12 21:57:25 +04:00
|
|
|
#define NS_FORWARD_IDOMHTMLSELECTELEMENT(_to) \
|
|
|
|
NS_IMETHOD GetType(nsString& aType) { return _to##GetType(aType); } \
|
|
|
|
NS_IMETHOD GetSelectedIndex(PRInt32* aSelectedIndex) { return _to##GetSelectedIndex(aSelectedIndex); } \
|
|
|
|
NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return _to##SetSelectedIndex(aSelectedIndex); } \
|
|
|
|
NS_IMETHOD GetValue(nsString& aValue) { return _to##GetValue(aValue); } \
|
|
|
|
NS_IMETHOD SetValue(const nsString& aValue) { return _to##SetValue(aValue); } \
|
1998-10-20 21:07:23 +04:00
|
|
|
NS_IMETHOD GetLength(PRUint32* aLength) { return _to##GetLength(aLength); } \
|
1998-08-12 21:57:25 +04:00
|
|
|
NS_IMETHOD GetForm(nsIDOMHTMLFormElement** aForm) { return _to##GetForm(aForm); } \
|
|
|
|
NS_IMETHOD GetOptions(nsIDOMHTMLCollection** aOptions) { return _to##GetOptions(aOptions); } \
|
|
|
|
NS_IMETHOD GetDisabled(PRBool* aDisabled) { return _to##GetDisabled(aDisabled); } \
|
|
|
|
NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to##SetDisabled(aDisabled); } \
|
|
|
|
NS_IMETHOD GetMultiple(PRBool* aMultiple) { return _to##GetMultiple(aMultiple); } \
|
|
|
|
NS_IMETHOD SetMultiple(PRBool aMultiple) { return _to##SetMultiple(aMultiple); } \
|
|
|
|
NS_IMETHOD GetName(nsString& aName) { return _to##GetName(aName); } \
|
|
|
|
NS_IMETHOD SetName(const nsString& aName) { return _to##SetName(aName); } \
|
|
|
|
NS_IMETHOD GetSize(PRInt32* aSize) { return _to##GetSize(aSize); } \
|
|
|
|
NS_IMETHOD SetSize(PRInt32 aSize) { return _to##SetSize(aSize); } \
|
|
|
|
NS_IMETHOD GetTabIndex(PRInt32* aTabIndex) { return _to##GetTabIndex(aTabIndex); } \
|
|
|
|
NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to##SetTabIndex(aTabIndex); } \
|
|
|
|
NS_IMETHOD Add(nsIDOMHTMLElement* aElement, nsIDOMHTMLElement* aBefore) { return _to##Add(aElement, aBefore); } \
|
|
|
|
NS_IMETHOD Remove(PRInt32 aIndex) { return _to##Remove(aIndex); } \
|
|
|
|
NS_IMETHOD Blur() { return _to##Blur(); } \
|
|
|
|
NS_IMETHOD Focus() { return _to##Focus(); } \
|
1998-08-04 04:08:29 +04:00
|
|
|
|
|
|
|
|
1999-02-17 11:33:27 +03:00
|
|
|
extern "C" NS_DOM nsresult NS_InitHTMLSelectElementClass(nsIScriptContext *aContext, void **aPrototype);
|
1998-07-15 20:54:19 +04:00
|
|
|
|
1998-09-05 03:03:16 +04:00
|
|
|
extern "C" NS_DOM nsresult NS_NewScriptHTMLSelectElement(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
1998-07-15 20:54:19 +04:00
|
|
|
|
|
|
|
#endif // nsIDOMHTMLSelectElement_h__
|