PageRenderTime 97ms CodeModel.GetById 61ms app.highlight 3ms RepoModel.GetById 31ms app.codeStats 0ms

/gecko_api/include/nsIDOMStyleSheetList.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 112 lines | 56 code | 28 blank | 28 comment | 0 complexity | 416912d06886b2879101b1f2d6261c29 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/stylesheets/nsIDOMStyleSheetList.idl
  3 */
  4
  5#ifndef __gen_nsIDOMStyleSheetList_h__
  6#define __gen_nsIDOMStyleSheetList_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.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:    nsIDOMStyleSheetList */
 19#define NS_IDOMSTYLESHEETLIST_IID_STR "a6cf9081-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMSTYLESHEETLIST_IID \
 22  {0xa6cf9081, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStyleSheetList : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTYLESHEETLIST_IID)
 29
 30  /**
 31 * The nsIDOMStyleSheetList interface is a datatype for a style sheet
 32 * list in the Document Object Model.
 33 *
 34 * For more information on this interface please see
 35 * http://www.w3.org/TR/DOM-Level-2-Style
 36 *
 37 * @status FROZEN
 38 */
 39  /* readonly attribute unsigned long length; */
 40  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
 41
 42  /* nsIDOMStyleSheet item (in unsigned long index); */
 43  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMStyleSheet **_retval) = 0;
 44
 45};
 46
 47  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStyleSheetList, NS_IDOMSTYLESHEETLIST_IID)
 48
 49/* Use this macro when declaring classes that implement this interface. */
 50#define NS_DECL_NSIDOMSTYLESHEETLIST \
 51  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
 52  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMStyleSheet **_retval); 
 53
 54/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 55#define NS_FORWARD_NSIDOMSTYLESHEETLIST(_to) \
 56  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
 57  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMStyleSheet **_retval) { return _to Item(index, _retval); } 
 58
 59/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 60#define NS_FORWARD_SAFE_NSIDOMSTYLESHEETLIST(_to) \
 61  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
 62  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMStyleSheet **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } 
 63
 64#if 0
 65/* Use the code below as a template for the implementation class for this interface. */
 66
 67/* Header file */
 68class nsDOMStyleSheetList : public nsIDOMStyleSheetList
 69{
 70public:
 71  NS_DECL_ISUPPORTS
 72  NS_DECL_NSIDOMSTYLESHEETLIST
 73
 74  nsDOMStyleSheetList();
 75
 76private:
 77  ~nsDOMStyleSheetList();
 78
 79protected:
 80  /* additional members */
 81};
 82
 83/* Implementation file */
 84NS_IMPL_ISUPPORTS1(nsDOMStyleSheetList, nsIDOMStyleSheetList)
 85
 86nsDOMStyleSheetList::nsDOMStyleSheetList()
 87{
 88  /* member initializers and constructor code */
 89}
 90
 91nsDOMStyleSheetList::~nsDOMStyleSheetList()
 92{
 93  /* destructor code */
 94}
 95
 96/* readonly attribute unsigned long length; */
 97NS_IMETHODIMP nsDOMStyleSheetList::GetLength(PRUint32 *aLength)
 98{
 99    return NS_ERROR_NOT_IMPLEMENTED;
100}
101
102/* nsIDOMStyleSheet item (in unsigned long index); */
103NS_IMETHODIMP nsDOMStyleSheetList::Item(PRUint32 index, nsIDOMStyleSheet **_retval)
104{
105    return NS_ERROR_NOT_IMPLEMENTED;
106}
107
108/* End of implementation class template. */
109#endif
110
111
112#endif /* __gen_nsIDOMStyleSheetList_h__ */