/* -*- 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.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/NPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * The Original Code is mozilla.org code.
 *
 * The Initial Developer of the Original Code is Netscape
 * Communications Corporation.  Portions created by Netscape are
 * Copyright (C) 1998 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s): 
 */
/* AUTO-GENERATED. DO NOT EDIT!!! */

#ifndef nsIDOMHTMLFormElement_h__
#define nsIDOMHTMLFormElement_h__

#include "nsISupports.h"
#include "nsString.h"
#include "nsIScriptContext.h"
#include "nsIDOMHTMLElement.h"

class nsIDOMHTMLCollection;

#define NS_IDOMHTMLFORMELEMENT_IID \
 { 0xa6cf908f, 0x15b3, 0x11d2, \
  { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } } 

class NS_NO_VTABLE nsIDOMHTMLFormElement : public nsIDOMHTMLElement {
public:
  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLFORMELEMENT_IID)

  NS_IMETHOD    GetElements(nsIDOMHTMLCollection** aElements)=0;

  NS_IMETHOD    GetLength(PRInt32* aLength)=0;

  NS_IMETHOD    GetName(nsAWritableString& aName)=0;
  NS_IMETHOD    SetName(const nsAReadableString& aName)=0;

  NS_IMETHOD    GetAcceptCharset(nsAWritableString& aAcceptCharset)=0;
  NS_IMETHOD    SetAcceptCharset(const nsAReadableString& aAcceptCharset)=0;

  NS_IMETHOD    GetAction(nsAWritableString& aAction)=0;
  NS_IMETHOD    SetAction(const nsAReadableString& aAction)=0;

  NS_IMETHOD    GetEnctype(nsAWritableString& aEnctype)=0;
  NS_IMETHOD    SetEnctype(const nsAReadableString& aEnctype)=0;

  NS_IMETHOD    GetMethod(nsAWritableString& aMethod)=0;
  NS_IMETHOD    SetMethod(const nsAReadableString& aMethod)=0;

  NS_IMETHOD    GetTarget(nsAWritableString& aTarget)=0;
  NS_IMETHOD    SetTarget(const nsAReadableString& aTarget)=0;

  NS_IMETHOD    Submit()=0;

  NS_IMETHOD    Reset()=0;
};


#define NS_DECL_IDOMHTMLFORMELEMENT   \
  NS_IMETHOD    GetElements(nsIDOMHTMLCollection** aElements);  \
  NS_IMETHOD    GetLength(PRInt32* aLength);  \
  NS_IMETHOD    GetName(nsAWritableString& aName);  \
  NS_IMETHOD    SetName(const nsAReadableString& aName);  \
  NS_IMETHOD    GetAcceptCharset(nsAWritableString& aAcceptCharset);  \
  NS_IMETHOD    SetAcceptCharset(const nsAReadableString& aAcceptCharset);  \
  NS_IMETHOD    GetAction(nsAWritableString& aAction);  \
  NS_IMETHOD    SetAction(const nsAReadableString& aAction);  \
  NS_IMETHOD    GetEnctype(nsAWritableString& aEnctype);  \
  NS_IMETHOD    SetEnctype(const nsAReadableString& aEnctype);  \
  NS_IMETHOD    GetMethod(nsAWritableString& aMethod);  \
  NS_IMETHOD    SetMethod(const nsAReadableString& aMethod);  \
  NS_IMETHOD    GetTarget(nsAWritableString& aTarget);  \
  NS_IMETHOD    SetTarget(const nsAReadableString& aTarget);  \
  NS_IMETHOD    Submit();  \
  NS_IMETHOD    Reset();  \



#define NS_FORWARD_IDOMHTMLFORMELEMENT(_to)  \
  NS_IMETHOD    GetElements(nsIDOMHTMLCollection** aElements) { return _to GetElements(aElements); } \
  NS_IMETHOD    GetLength(PRInt32* aLength) { return _to GetLength(aLength); } \
  NS_IMETHOD    GetName(nsAWritableString& aName) { return _to GetName(aName); } \
  NS_IMETHOD    SetName(const nsAReadableString& aName) { return _to SetName(aName); } \
  NS_IMETHOD    GetAcceptCharset(nsAWritableString& aAcceptCharset) { return _to GetAcceptCharset(aAcceptCharset); } \
  NS_IMETHOD    SetAcceptCharset(const nsAReadableString& aAcceptCharset) { return _to SetAcceptCharset(aAcceptCharset); } \
  NS_IMETHOD    GetAction(nsAWritableString& aAction) { return _to GetAction(aAction); } \
  NS_IMETHOD    SetAction(const nsAReadableString& aAction) { return _to SetAction(aAction); } \
  NS_IMETHOD    GetEnctype(nsAWritableString& aEnctype) { return _to GetEnctype(aEnctype); } \
  NS_IMETHOD    SetEnctype(const nsAReadableString& aEnctype) { return _to SetEnctype(aEnctype); } \
  NS_IMETHOD    GetMethod(nsAWritableString& aMethod) { return _to GetMethod(aMethod); } \
  NS_IMETHOD    SetMethod(const nsAReadableString& aMethod) { return _to SetMethod(aMethod); } \
  NS_IMETHOD    GetTarget(nsAWritableString& aTarget) { return _to GetTarget(aTarget); } \
  NS_IMETHOD    SetTarget(const nsAReadableString& aTarget) { return _to SetTarget(aTarget); } \
  NS_IMETHOD    Submit() { return _to Submit(); }  \
  NS_IMETHOD    Reset() { return _to Reset(); }  \


extern "C" NS_DOM nsresult NS_InitHTMLFormElementClass(nsIScriptContext *aContext, void **aPrototype);

extern "C" NS_DOM nsresult NS_NewScriptHTMLFormElement(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);

#endif // nsIDOMHTMLFormElement_h__
