PageRenderTime 86ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 5ms

/gecko_api/include/nsIDOMNotation.h

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