PageRenderTime 83ms CodeModel.GetById 40ms app.highlight 5ms RepoModel.GetById 36ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSRule.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 158 lines | 87 code | 39 blank | 32 comment | 0 complexity | 4e445fa07c7f5d7b5bd64db90ed583f0 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/css/nsIDOMCSSRule.idl
  3 */
  4
  5#ifndef __gen_nsIDOMCSSRule_h__
  6#define __gen_nsIDOMCSSRule_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:    nsIDOMCSSRule */
 19#define NS_IDOMCSSRULE_IID_STR "a6cf90c1-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMCSSRULE_IID \
 22  {0xa6cf90c1, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSRule : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULE_IID)
 29
 30  /**
 31 * The nsIDOMCSSRule interface is a datatype for a CSS style rule 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  enum { UNKNOWN_RULE = 0U };
 40
 41  enum { STYLE_RULE = 1U };
 42
 43  enum { CHARSET_RULE = 2U };
 44
 45  enum { IMPORT_RULE = 3U };
 46
 47  enum { MEDIA_RULE = 4U };
 48
 49  enum { FONT_FACE_RULE = 5U };
 50
 51  enum { PAGE_RULE = 6U };
 52
 53  /* readonly attribute unsigned short type; */
 54  NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) = 0;
 55
 56  /* attribute DOMString cssText; */
 57  NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
 58  NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
 59
 60  /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */
 61  NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) = 0;
 62
 63  /* readonly attribute nsIDOMCSSRule parentRule; */
 64  NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0;
 65
 66};
 67
 68  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSRule, NS_IDOMCSSRULE_IID)
 69
 70/* Use this macro when declaring classes that implement this interface. */
 71#define NS_DECL_NSIDOMCSSRULE \
 72  NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType); \
 73  NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText); \
 74  NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText); \
 75  NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet); \
 76  NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule); 
 77
 78/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 79#define NS_FORWARD_NSIDOMCSSRULE(_to) \
 80  NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return _to GetType(aType); } \
 81  NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
 82  NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
 83  NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) { return _to GetParentStyleSheet(aParentStyleSheet); } \
 84  NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return _to GetParentRule(aParentRule); } 
 85
 86/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 87#define NS_FORWARD_SAFE_NSIDOMCSSRULE(_to) \
 88  NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
 89  NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
 90  NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
 91  NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet); } \
 92  NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); } 
 93
 94#if 0
 95/* Use the code below as a template for the implementation class for this interface. */
 96
 97/* Header file */
 98class nsDOMCSSRule : public nsIDOMCSSRule
 99{
100public:
101  NS_DECL_ISUPPORTS
102  NS_DECL_NSIDOMCSSRULE
103
104  nsDOMCSSRule();
105
106private:
107  ~nsDOMCSSRule();
108
109protected:
110  /* additional members */
111};
112
113/* Implementation file */
114NS_IMPL_ISUPPORTS1(nsDOMCSSRule, nsIDOMCSSRule)
115
116nsDOMCSSRule::nsDOMCSSRule()
117{
118  /* member initializers and constructor code */
119}
120
121nsDOMCSSRule::~nsDOMCSSRule()
122{
123  /* destructor code */
124}
125
126/* readonly attribute unsigned short type; */
127NS_IMETHODIMP nsDOMCSSRule::GetType(PRUint16 *aType)
128{
129    return NS_ERROR_NOT_IMPLEMENTED;
130}
131
132/* attribute DOMString cssText; */
133NS_IMETHODIMP nsDOMCSSRule::GetCssText(nsAString & aCssText)
134{
135    return NS_ERROR_NOT_IMPLEMENTED;
136}
137NS_IMETHODIMP nsDOMCSSRule::SetCssText(const nsAString & aCssText)
138{
139    return NS_ERROR_NOT_IMPLEMENTED;
140}
141
142/* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */
143NS_IMETHODIMP nsDOMCSSRule::GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet)
144{
145    return NS_ERROR_NOT_IMPLEMENTED;
146}
147
148/* readonly attribute nsIDOMCSSRule parentRule; */
149NS_IMETHODIMP nsDOMCSSRule::GetParentRule(nsIDOMCSSRule * *aParentRule)
150{
151    return NS_ERROR_NOT_IMPLEMENTED;
152}
153
154/* End of implementation class template. */
155#endif
156
157
158#endif /* __gen_nsIDOMCSSRule_h__ */