PageRenderTime 12ms CodeModel.GetById 7ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/gecko_api/include/nsIDOMStyleSheet.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 180 lines | 104 code | 38 blank | 38 comment | 0 complexity | e6f4da6a7359cc7cfd6891a5751183bb 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/nsIDOMStyleSheet.idl
  3 */
  4
  5#ifndef __gen_nsIDOMStyleSheet_h__
  6#define __gen_nsIDOMStyleSheet_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:    nsIDOMStyleSheet */
 19#define NS_IDOMSTYLESHEET_IID_STR "a6cf9080-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMSTYLESHEET_IID \
 22  {0xa6cf9080, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStyleSheet : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTYLESHEET_IID)
 29
 30  /**
 31 * The nsIDOMStyleSheet interface is a datatype for a style sheet in
 32 * 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 DOMString type; */
 40  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
 41
 42  /* attribute boolean disabled; */
 43  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
 44  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
 45
 46  /* readonly attribute nsIDOMNode ownerNode; */
 47  NS_SCRIPTABLE NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) = 0;
 48
 49  /* readonly attribute nsIDOMStyleSheet parentStyleSheet; */
 50  NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) = 0;
 51
 52  /* readonly attribute DOMString href; */
 53  NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) = 0;
 54
 55  /* readonly attribute DOMString title; */
 56  NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
 57
 58  /* readonly attribute nsIDOMMediaList media; */
 59  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) = 0;
 60
 61};
 62
 63  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStyleSheet, NS_IDOMSTYLESHEET_IID)
 64
 65/* Use this macro when declaring classes that implement this interface. */
 66#define NS_DECL_NSIDOMSTYLESHEET \
 67  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
 68  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
 69  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
 70  NS_SCRIPTABLE NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode); \
 71  NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet); \
 72  NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref); \
 73  NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle); \
 74  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia); 
 75
 76/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 77#define NS_FORWARD_NSIDOMSTYLESHEET(_to) \
 78  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
 79  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
 80  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
 81  NS_SCRIPTABLE NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) { return _to GetOwnerNode(aOwnerNode); } \
 82  NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) { return _to GetParentStyleSheet(aParentStyleSheet); } \
 83  NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
 84  NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
 85  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return _to GetMedia(aMedia); } 
 86
 87/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 88#define NS_FORWARD_SAFE_NSIDOMSTYLESHEET(_to) \
 89  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
 90  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
 91  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
 92  NS_SCRIPTABLE NS_IMETHOD GetOwnerNode(nsIDOMNode * *aOwnerNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerNode(aOwnerNode); } \
 93  NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet); } \
 94  NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
 95  NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
 96  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsIDOMMediaList * *aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); } 
 97
 98#if 0
 99/* Use the code below as a template for the implementation class for this interface. */
100
101/* Header file */
102class nsDOMStyleSheet : public nsIDOMStyleSheet
103{
104public:
105  NS_DECL_ISUPPORTS
106  NS_DECL_NSIDOMSTYLESHEET
107
108  nsDOMStyleSheet();
109
110private:
111  ~nsDOMStyleSheet();
112
113protected:
114  /* additional members */
115};
116
117/* Implementation file */
118NS_IMPL_ISUPPORTS1(nsDOMStyleSheet, nsIDOMStyleSheet)
119
120nsDOMStyleSheet::nsDOMStyleSheet()
121{
122  /* member initializers and constructor code */
123}
124
125nsDOMStyleSheet::~nsDOMStyleSheet()
126{
127  /* destructor code */
128}
129
130/* readonly attribute DOMString type; */
131NS_IMETHODIMP nsDOMStyleSheet::GetType(nsAString & aType)
132{
133    return NS_ERROR_NOT_IMPLEMENTED;
134}
135
136/* attribute boolean disabled; */
137NS_IMETHODIMP nsDOMStyleSheet::GetDisabled(PRBool *aDisabled)
138{
139    return NS_ERROR_NOT_IMPLEMENTED;
140}
141NS_IMETHODIMP nsDOMStyleSheet::SetDisabled(PRBool aDisabled)
142{
143    return NS_ERROR_NOT_IMPLEMENTED;
144}
145
146/* readonly attribute nsIDOMNode ownerNode; */
147NS_IMETHODIMP nsDOMStyleSheet::GetOwnerNode(nsIDOMNode * *aOwnerNode)
148{
149    return NS_ERROR_NOT_IMPLEMENTED;
150}
151
152/* readonly attribute nsIDOMStyleSheet parentStyleSheet; */
153NS_IMETHODIMP nsDOMStyleSheet::GetParentStyleSheet(nsIDOMStyleSheet * *aParentStyleSheet)
154{
155    return NS_ERROR_NOT_IMPLEMENTED;
156}
157
158/* readonly attribute DOMString href; */
159NS_IMETHODIMP nsDOMStyleSheet::GetHref(nsAString & aHref)
160{
161    return NS_ERROR_NOT_IMPLEMENTED;
162}
163
164/* readonly attribute DOMString title; */
165NS_IMETHODIMP nsDOMStyleSheet::GetTitle(nsAString & aTitle)
166{
167    return NS_ERROR_NOT_IMPLEMENTED;
168}
169
170/* readonly attribute nsIDOMMediaList media; */
171NS_IMETHODIMP nsDOMStyleSheet::GetMedia(nsIDOMMediaList * *aMedia)
172{
173    return NS_ERROR_NOT_IMPLEMENTED;
174}
175
176/* End of implementation class template. */
177#endif
178
179
180#endif /* __gen_nsIDOMStyleSheet_h__ */