PageRenderTime 37ms CodeModel.GetById 33ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMDocumentType.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 162 lines | 88 code | 36 blank | 38 comment | 0 complexity | 4919b1e5cf452a5766db2b3b43046dc9 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/core/nsIDOMDocumentType.idl
  3 */
  4
  5#ifndef __gen_nsIDOMDocumentType_h__
  6#define __gen_nsIDOMDocumentType_h__
  7
  8
  9#ifndef __gen_nsIDOMNode_h__
 10#include "nsIDOMNode.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:    nsIDOMDocumentType */
 19#define NS_IDOMDOCUMENTTYPE_IID_STR "a6cf9077-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMDOCUMENTTYPE_IID \
 22  {0xa6cf9077, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDocumentType : public nsIDOMNode {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTTYPE_IID)
 29
 30  /**
 31 * Each Document has a doctype attribute whose value is either null 
 32 * or a DocumentType object. 
 33 * The nsIDOMDocumentType interface in the DOM Core provides an 
 34 * interface to the list of entities that are defined for the document.
 35 *
 36 * For more information on this interface please see 
 37 * http://www.w3.org/TR/DOM-Level-2-Core/
 38 *
 39 * @status FROZEN
 40 */
 41  /* readonly attribute DOMString name; */
 42  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
 43
 44  /* readonly attribute nsIDOMNamedNodeMap entities; */
 45  NS_SCRIPTABLE NS_IMETHOD GetEntities(nsIDOMNamedNodeMap * *aEntities) = 0;
 46
 47  /* readonly attribute nsIDOMNamedNodeMap notations; */
 48  NS_SCRIPTABLE NS_IMETHOD GetNotations(nsIDOMNamedNodeMap * *aNotations) = 0;
 49
 50  /* readonly attribute DOMString publicId; */
 51  NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) = 0;
 52
 53  /* readonly attribute DOMString systemId; */
 54  NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) = 0;
 55
 56  /* readonly attribute DOMString internalSubset; */
 57  NS_SCRIPTABLE NS_IMETHOD GetInternalSubset(nsAString & aInternalSubset) = 0;
 58
 59};
 60
 61  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDocumentType, NS_IDOMDOCUMENTTYPE_IID)
 62
 63/* Use this macro when declaring classes that implement this interface. */
 64#define NS_DECL_NSIDOMDOCUMENTTYPE \
 65  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
 66  NS_SCRIPTABLE NS_IMETHOD GetEntities(nsIDOMNamedNodeMap * *aEntities); \
 67  NS_SCRIPTABLE NS_IMETHOD GetNotations(nsIDOMNamedNodeMap * *aNotations); \
 68  NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId); \
 69  NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId); \
 70  NS_SCRIPTABLE NS_IMETHOD GetInternalSubset(nsAString & aInternalSubset); 
 71
 72/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 73#define NS_FORWARD_NSIDOMDOCUMENTTYPE(_to) \
 74  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
 75  NS_SCRIPTABLE NS_IMETHOD GetEntities(nsIDOMNamedNodeMap * *aEntities) { return _to GetEntities(aEntities); } \
 76  NS_SCRIPTABLE NS_IMETHOD GetNotations(nsIDOMNamedNodeMap * *aNotations) { return _to GetNotations(aNotations); } \
 77  NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return _to GetPublicId(aPublicId); } \
 78  NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return _to GetSystemId(aSystemId); } \
 79  NS_SCRIPTABLE NS_IMETHOD GetInternalSubset(nsAString & aInternalSubset) { return _to GetInternalSubset(aInternalSubset); } 
 80
 81/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 82#define NS_FORWARD_SAFE_NSIDOMDOCUMENTTYPE(_to) \
 83  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
 84  NS_SCRIPTABLE NS_IMETHOD GetEntities(nsIDOMNamedNodeMap * *aEntities) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntities(aEntities); } \
 85  NS_SCRIPTABLE NS_IMETHOD GetNotations(nsIDOMNamedNodeMap * *aNotations) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotations(aNotations); } \
 86  NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicId(aPublicId); } \
 87  NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemId(aSystemId); } \
 88  NS_SCRIPTABLE NS_IMETHOD GetInternalSubset(nsAString & aInternalSubset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalSubset(aInternalSubset); } 
 89
 90#if 0
 91/* Use the code below as a template for the implementation class for this interface. */
 92
 93/* Header file */
 94class nsDOMDocumentType : public nsIDOMDocumentType
 95{
 96public:
 97  NS_DECL_ISUPPORTS
 98  NS_DECL_NSIDOMDOCUMENTTYPE
 99
100  nsDOMDocumentType();
101
102private:
103  ~nsDOMDocumentType();
104
105protected:
106  /* additional members */
107};
108
109/* Implementation file */
110NS_IMPL_ISUPPORTS1(nsDOMDocumentType, nsIDOMDocumentType)
111
112nsDOMDocumentType::nsDOMDocumentType()
113{
114  /* member initializers and constructor code */
115}
116
117nsDOMDocumentType::~nsDOMDocumentType()
118{
119  /* destructor code */
120}
121
122/* readonly attribute DOMString name; */
123NS_IMETHODIMP nsDOMDocumentType::GetName(nsAString & aName)
124{
125    return NS_ERROR_NOT_IMPLEMENTED;
126}
127
128/* readonly attribute nsIDOMNamedNodeMap entities; */
129NS_IMETHODIMP nsDOMDocumentType::GetEntities(nsIDOMNamedNodeMap * *aEntities)
130{
131    return NS_ERROR_NOT_IMPLEMENTED;
132}
133
134/* readonly attribute nsIDOMNamedNodeMap notations; */
135NS_IMETHODIMP nsDOMDocumentType::GetNotations(nsIDOMNamedNodeMap * *aNotations)
136{
137    return NS_ERROR_NOT_IMPLEMENTED;
138}
139
140/* readonly attribute DOMString publicId; */
141NS_IMETHODIMP nsDOMDocumentType::GetPublicId(nsAString & aPublicId)
142{
143    return NS_ERROR_NOT_IMPLEMENTED;
144}
145
146/* readonly attribute DOMString systemId; */
147NS_IMETHODIMP nsDOMDocumentType::GetSystemId(nsAString & aSystemId)
148{
149    return NS_ERROR_NOT_IMPLEMENTED;
150}
151
152/* readonly attribute DOMString internalSubset; */
153NS_IMETHODIMP nsDOMDocumentType::GetInternalSubset(nsAString & aInternalSubset)
154{
155    return NS_ERROR_NOT_IMPLEMENTED;
156}
157
158/* End of implementation class template. */
159#endif
160
161
162#endif /* __gen_nsIDOMDocumentType_h__ */