PageRenderTime 282ms CodeModel.GetById 90ms app.highlight 4ms RepoModel.GetById 107ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLBaseFontElement.h

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