PageRenderTime 103ms CodeModel.GetById 41ms app.highlight 4ms RepoModel.GetById 36ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLStyleElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 148 lines | 88 code | 30 blank | 30 comment | 0 complexity | 5f4f15774255b67d6023fe7ffdd00806 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/nsIDOMHTMLStyleElement.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLStyleElement_h__
  6#define __gen_nsIDOMHTMLStyleElement_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:    nsIDOMHTMLStyleElement */
 19#define NS_IDOMHTMLSTYLEELEMENT_IID_STR "a6cf908d-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMHTMLSTYLEELEMENT_IID \
 22  {0xa6cf908d, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25/**
 26 * The nsIDOMHTMLStyleElement interface is the interface to a [X]HTML
 27 * style element.
 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 nsIDOMHTMLStyleElement : public nsIDOMHTMLElement {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLSTYLEELEMENT_IID)
 38
 39  /* attribute boolean disabled; */
 40  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
 41  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
 42
 43  /* attribute DOMString media; */
 44  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) = 0;
 45  NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) = 0;
 46
 47  /* attribute DOMString type; */
 48  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
 49  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) = 0;
 50
 51};
 52
 53  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLStyleElement, NS_IDOMHTMLSTYLEELEMENT_IID)
 54
 55/* Use this macro when declaring classes that implement this interface. */
 56#define NS_DECL_NSIDOMHTMLSTYLEELEMENT \
 57  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
 58  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
 59  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia); \
 60  NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia); \
 61  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
 62  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType); 
 63
 64/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 65#define NS_FORWARD_NSIDOMHTMLSTYLEELEMENT(_to) \
 66  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
 67  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
 68  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) { return _to GetMedia(aMedia); } \
 69  NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) { return _to SetMedia(aMedia); } \
 70  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
 71  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } 
 72
 73/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 74#define NS_FORWARD_SAFE_NSIDOMHTMLSTYLEELEMENT(_to) \
 75  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
 76  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
 77  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); } \
 78  NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMedia(aMedia); } \
 79  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
 80  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } 
 81
 82#if 0
 83/* Use the code below as a template for the implementation class for this interface. */
 84
 85/* Header file */
 86class nsDOMHTMLStyleElement : public nsIDOMHTMLStyleElement
 87{
 88public:
 89  NS_DECL_ISUPPORTS
 90  NS_DECL_NSIDOMHTMLSTYLEELEMENT
 91
 92  nsDOMHTMLStyleElement();
 93
 94private:
 95  ~nsDOMHTMLStyleElement();
 96
 97protected:
 98  /* additional members */
 99};
100
101/* Implementation file */
102NS_IMPL_ISUPPORTS1(nsDOMHTMLStyleElement, nsIDOMHTMLStyleElement)
103
104nsDOMHTMLStyleElement::nsDOMHTMLStyleElement()
105{
106  /* member initializers and constructor code */
107}
108
109nsDOMHTMLStyleElement::~nsDOMHTMLStyleElement()
110{
111  /* destructor code */
112}
113
114/* attribute boolean disabled; */
115NS_IMETHODIMP nsDOMHTMLStyleElement::GetDisabled(PRBool *aDisabled)
116{
117    return NS_ERROR_NOT_IMPLEMENTED;
118}
119NS_IMETHODIMP nsDOMHTMLStyleElement::SetDisabled(PRBool aDisabled)
120{
121    return NS_ERROR_NOT_IMPLEMENTED;
122}
123
124/* attribute DOMString media; */
125NS_IMETHODIMP nsDOMHTMLStyleElement::GetMedia(nsAString & aMedia)
126{
127    return NS_ERROR_NOT_IMPLEMENTED;
128}
129NS_IMETHODIMP nsDOMHTMLStyleElement::SetMedia(const nsAString & aMedia)
130{
131    return NS_ERROR_NOT_IMPLEMENTED;
132}
133
134/* attribute DOMString type; */
135NS_IMETHODIMP nsDOMHTMLStyleElement::GetType(nsAString & aType)
136{
137    return NS_ERROR_NOT_IMPLEMENTED;
138}
139NS_IMETHODIMP nsDOMHTMLStyleElement::SetType(const nsAString & aType)
140{
141    return NS_ERROR_NOT_IMPLEMENTED;
142}
143
144/* End of implementation class template. */
145#endif
146
147
148#endif /* __gen_nsIDOMHTMLStyleElement_h__ */