PageRenderTime 37ms CodeModel.GetById 29ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLOptionsCollection.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 132 lines | 72 code | 30 blank | 30 comment | 0 complexity | d3a4892c1ec19be630c13dc284ee2274 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/html/nsIDOMHTMLOptionsCollection.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLOptionsCollection_h__
  6#define __gen_nsIDOMHTMLOptionsCollection_h__
  7
  8
  9#ifndef __gen_nsIDOMHTMLElement_h__
 10#include "nsIDOMHTMLElement.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDOMHTMLOptionsCollection */
 19#define NS_IDOMHTMLOPTIONSCOLLECTION_IID_STR "bce0213c-f70f-488f-b93f-688acca55d63"
 20
 21#define NS_IDOMHTMLOPTIONSCOLLECTION_IID \
 22  {0xbce0213c, 0xf70f, 0x488f, \
 23    { 0xb9, 0x3f, 0x68, 0x8a, 0xcc, 0xa5, 0x5d, 0x63 }}
 24
 25/**
 26 * The nsIDOMHTMLOptionsCollection interface is the interface to a
 27 * collection of [X]HTML option elements.
 28 *
 29 * For more information on this interface please see
 30 * http://www.w3.org/TR/DOM-Level-2-HTML/
 31 *
 32 * @status FROZEN
 33 */
 34class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLOptionsCollection : public nsISupports {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONSCOLLECTION_IID)
 38
 39  /* attribute unsigned long length; */
 40  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
 41  NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) = 0;
 42
 43  /* nsIDOMNode item (in unsigned long index); */
 44  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0;
 45
 46  /* nsIDOMNode namedItem (in DOMString name); */
 47  NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
 48
 49};
 50
 51  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLOptionsCollection, NS_IDOMHTMLOPTIONSCOLLECTION_IID)
 52
 53/* Use this macro when declaring classes that implement this interface. */
 54#define NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION \
 55  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
 56  NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength); \
 57  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \
 58  NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval); 
 59
 60/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 61#define NS_FORWARD_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
 62  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
 63  NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return _to SetLength(aLength); } \
 64  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index, _retval); } \
 65  NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to NamedItem(name, _retval); } 
 66
 67/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 68#define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
 69  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
 70  NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLength(aLength); } \
 71  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
 72  NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } 
 73
 74#if 0
 75/* Use the code below as a template for the implementation class for this interface. */
 76
 77/* Header file */
 78class nsDOMHTMLOptionsCollection : public nsIDOMHTMLOptionsCollection
 79{
 80public:
 81  NS_DECL_ISUPPORTS
 82  NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION
 83
 84  nsDOMHTMLOptionsCollection();
 85
 86private:
 87  ~nsDOMHTMLOptionsCollection();
 88
 89protected:
 90  /* additional members */
 91};
 92
 93/* Implementation file */
 94NS_IMPL_ISUPPORTS1(nsDOMHTMLOptionsCollection, nsIDOMHTMLOptionsCollection)
 95
 96nsDOMHTMLOptionsCollection::nsDOMHTMLOptionsCollection()
 97{
 98  /* member initializers and constructor code */
 99}
100
101nsDOMHTMLOptionsCollection::~nsDOMHTMLOptionsCollection()
102{
103  /* destructor code */
104}
105
106/* attribute unsigned long length; */
107NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetLength(PRUint32 *aLength)
108{
109    return NS_ERROR_NOT_IMPLEMENTED;
110}
111NS_IMETHODIMP nsDOMHTMLOptionsCollection::SetLength(PRUint32 aLength)
112{
113    return NS_ERROR_NOT_IMPLEMENTED;
114}
115
116/* nsIDOMNode item (in unsigned long index); */
117NS_IMETHODIMP nsDOMHTMLOptionsCollection::Item(PRUint32 index, nsIDOMNode **_retval)
118{
119    return NS_ERROR_NOT_IMPLEMENTED;
120}
121
122/* nsIDOMNode namedItem (in DOMString name); */
123NS_IMETHODIMP nsDOMHTMLOptionsCollection::NamedItem(const nsAString & name, nsIDOMNode **_retval)
124{
125    return NS_ERROR_NOT_IMPLEMENTED;
126}
127
128/* End of implementation class template. */
129#endif
130
131
132#endif /* __gen_nsIDOMHTMLOptionsCollection_h__ */