PageRenderTime 122ms CodeModel.GetById 60ms app.highlight 4ms RepoModel.GetById 57ms app.codeStats 0ms

/gecko_api/include/nsIDOMEntity.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 124 lines | 64 code | 30 blank | 30 comment | 0 complexity | 49577ba972060d02e4600d2aa097b3ee 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/nsIDOMEntity.idl
  3 */
  4
  5#ifndef __gen_nsIDOMEntity_h__
  6#define __gen_nsIDOMEntity_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:    nsIDOMEntity */
 19#define NS_IDOMENTITY_IID_STR "a6cf9079-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMENTITY_IID \
 22  {0xa6cf9079, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMEntity : public nsIDOMNode {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMENTITY_IID)
 29
 30  /**
 31 * The nsIDOMEntity interface represents an entity, either parsed 
 32 * or unparsed, in an XML document.
 33 *
 34 * For more information on this interface please see 
 35 * http://www.w3.org/TR/DOM-Level-2-Core/
 36 *
 37 * @status FROZEN
 38 */
 39  /* readonly attribute DOMString publicId; */
 40  NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) = 0;
 41
 42  /* readonly attribute DOMString systemId; */
 43  NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) = 0;
 44
 45  /* readonly attribute DOMString notationName; */
 46  NS_SCRIPTABLE NS_IMETHOD GetNotationName(nsAString & aNotationName) = 0;
 47
 48};
 49
 50  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMEntity, NS_IDOMENTITY_IID)
 51
 52/* Use this macro when declaring classes that implement this interface. */
 53#define NS_DECL_NSIDOMENTITY \
 54  NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId); \
 55  NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId); \
 56  NS_SCRIPTABLE NS_IMETHOD GetNotationName(nsAString & aNotationName); 
 57
 58/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 59#define NS_FORWARD_NSIDOMENTITY(_to) \
 60  NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return _to GetPublicId(aPublicId); } \
 61  NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return _to GetSystemId(aSystemId); } \
 62  NS_SCRIPTABLE NS_IMETHOD GetNotationName(nsAString & aNotationName) { return _to GetNotationName(aNotationName); } 
 63
 64/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 65#define NS_FORWARD_SAFE_NSIDOMENTITY(_to) \
 66  NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicId(aPublicId); } \
 67  NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemId(aSystemId); } \
 68  NS_SCRIPTABLE NS_IMETHOD GetNotationName(nsAString & aNotationName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotationName(aNotationName); } 
 69
 70#if 0
 71/* Use the code below as a template for the implementation class for this interface. */
 72
 73/* Header file */
 74class nsDOMEntity : public nsIDOMEntity
 75{
 76public:
 77  NS_DECL_ISUPPORTS
 78  NS_DECL_NSIDOMENTITY
 79
 80  nsDOMEntity();
 81
 82private:
 83  ~nsDOMEntity();
 84
 85protected:
 86  /* additional members */
 87};
 88
 89/* Implementation file */
 90NS_IMPL_ISUPPORTS1(nsDOMEntity, nsIDOMEntity)
 91
 92nsDOMEntity::nsDOMEntity()
 93{
 94  /* member initializers and constructor code */
 95}
 96
 97nsDOMEntity::~nsDOMEntity()
 98{
 99  /* destructor code */
100}
101
102/* readonly attribute DOMString publicId; */
103NS_IMETHODIMP nsDOMEntity::GetPublicId(nsAString & aPublicId)
104{
105    return NS_ERROR_NOT_IMPLEMENTED;
106}
107
108/* readonly attribute DOMString systemId; */
109NS_IMETHODIMP nsDOMEntity::GetSystemId(nsAString & aSystemId)
110{
111    return NS_ERROR_NOT_IMPLEMENTED;
112}
113
114/* readonly attribute DOMString notationName; */
115NS_IMETHODIMP nsDOMEntity::GetNotationName(nsAString & aNotationName)
116{
117    return NS_ERROR_NOT_IMPLEMENTED;
118}
119
120/* End of implementation class template. */
121#endif
122
123
124#endif /* __gen_nsIDOMEntity_h__ */