PageRenderTime 123ms CodeModel.GetById 50ms app.highlight 4ms RepoModel.GetById 65ms app.codeStats 1ms

/gecko_api/include/nsIDOMCSSStyleSheet.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 136 lines | 72 code | 32 blank | 32 comment | 0 complexity | 526a43f99d3bc97dcdfd16ef84d8dfad 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/nsIDOMCSSStyleSheet.idl
  3 */
  4
  5#ifndef __gen_nsIDOMCSSStyleSheet_h__
  6#define __gen_nsIDOMCSSStyleSheet_h__
  7
  8
  9#ifndef __gen_nsIDOMStyleSheet_h__
 10#include "nsIDOMStyleSheet.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:    nsIDOMCSSStyleSheet */
 19#define NS_IDOMCSSSTYLESHEET_IID_STR "a6cf90c2-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMCSSSTYLESHEET_IID \
 22  {0xa6cf90c2, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSStyleSheet : public nsIDOMStyleSheet {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLESHEET_IID)
 29
 30  /**
 31 * The nsIDOMCSSStyleSheet interface is a datatype for a CSS style
 32 * sheet 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 nsIDOMCSSRule ownerRule; */
 40  NS_SCRIPTABLE NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) = 0;
 41
 42  /* readonly attribute nsIDOMCSSRuleList cssRules; */
 43  NS_SCRIPTABLE NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0;
 44
 45  /* unsigned long insertRule (in DOMString rule, in unsigned long index)  raises (DOMException); */
 46  NS_SCRIPTABLE NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) = 0;
 47
 48  /* void deleteRule (in unsigned long index)  raises (DOMException); */
 49  NS_SCRIPTABLE NS_IMETHOD DeleteRule(PRUint32 index) = 0;
 50
 51};
 52
 53  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSStyleSheet, NS_IDOMCSSSTYLESHEET_IID)
 54
 55/* Use this macro when declaring classes that implement this interface. */
 56#define NS_DECL_NSIDOMCSSSTYLESHEET \
 57  NS_SCRIPTABLE NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule); \
 58  NS_SCRIPTABLE NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules); \
 59  NS_SCRIPTABLE NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval); \
 60  NS_SCRIPTABLE NS_IMETHOD DeleteRule(PRUint32 index); 
 61
 62/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 63#define NS_FORWARD_NSIDOMCSSSTYLESHEET(_to) \
 64  NS_SCRIPTABLE NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return _to GetOwnerRule(aOwnerRule); } \
 65  NS_SCRIPTABLE NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return _to GetCssRules(aCssRules); } \
 66  NS_SCRIPTABLE NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return _to InsertRule(rule, index, _retval); } \
 67  NS_SCRIPTABLE NS_IMETHOD DeleteRule(PRUint32 index) { return _to DeleteRule(index); } 
 68
 69/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 70#define NS_FORWARD_SAFE_NSIDOMCSSSTYLESHEET(_to) \
 71  NS_SCRIPTABLE NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerRule(aOwnerRule); } \
 72  NS_SCRIPTABLE NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssRules(aCssRules); } \
 73  NS_SCRIPTABLE NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval); } \
 74  NS_SCRIPTABLE NS_IMETHOD DeleteRule(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteRule(index); } 
 75
 76#if 0
 77/* Use the code below as a template for the implementation class for this interface. */
 78
 79/* Header file */
 80class nsDOMCSSStyleSheet : public nsIDOMCSSStyleSheet
 81{
 82public:
 83  NS_DECL_ISUPPORTS
 84  NS_DECL_NSIDOMCSSSTYLESHEET
 85
 86  nsDOMCSSStyleSheet();
 87
 88private:
 89  ~nsDOMCSSStyleSheet();
 90
 91protected:
 92  /* additional members */
 93};
 94
 95/* Implementation file */
 96NS_IMPL_ISUPPORTS1(nsDOMCSSStyleSheet, nsIDOMCSSStyleSheet)
 97
 98nsDOMCSSStyleSheet::nsDOMCSSStyleSheet()
 99{
100  /* member initializers and constructor code */
101}
102
103nsDOMCSSStyleSheet::~nsDOMCSSStyleSheet()
104{
105  /* destructor code */
106}
107
108/* readonly attribute nsIDOMCSSRule ownerRule; */
109NS_IMETHODIMP nsDOMCSSStyleSheet::GetOwnerRule(nsIDOMCSSRule * *aOwnerRule)
110{
111    return NS_ERROR_NOT_IMPLEMENTED;
112}
113
114/* readonly attribute nsIDOMCSSRuleList cssRules; */
115NS_IMETHODIMP nsDOMCSSStyleSheet::GetCssRules(nsIDOMCSSRuleList * *aCssRules)
116{
117    return NS_ERROR_NOT_IMPLEMENTED;
118}
119
120/* unsigned long insertRule (in DOMString rule, in unsigned long index)  raises (DOMException); */
121NS_IMETHODIMP nsDOMCSSStyleSheet::InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval)
122{
123    return NS_ERROR_NOT_IMPLEMENTED;
124}
125
126/* void deleteRule (in unsigned long index)  raises (DOMException); */
127NS_IMETHODIMP nsDOMCSSStyleSheet::DeleteRule(PRUint32 index)
128{
129    return NS_ERROR_NOT_IMPLEMENTED;
130}
131
132/* End of implementation class template. */
133#endif
134
135
136#endif /* __gen_nsIDOMCSSStyleSheet_h__ */