PageRenderTime 123ms CodeModel.GetById 70ms app.highlight 3ms RepoModel.GetById 47ms app.codeStats 0ms

/gecko_api/include/nsIDOMProcessingInstruction.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 121 lines | 64 code | 28 blank | 29 comment | 0 complexity | db5efc1de9e512750e2341ba158a9af1 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/nsIDOMProcessingInstruction.idl
  3 */
  4
  5#ifndef __gen_nsIDOMProcessingInstruction_h__
  6#define __gen_nsIDOMProcessingInstruction_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:    nsIDOMProcessingInstruction */
 19#define NS_IDOMPROCESSINGINSTRUCTION_IID_STR "a6cf907f-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMPROCESSINGINSTRUCTION_IID \
 22  {0xa6cf907f, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMProcessingInstruction : public nsIDOMNode {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMPROCESSINGINSTRUCTION_IID)
 29
 30  /**
 31 * The nsIDOMProcessingInstruction interface represents a 
 32 * "processing instruction", used in XML as a way to keep processor-specific 
 33 * information in the text of the document.
 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 target; */
 41  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
 42
 43  /* attribute DOMString data; */
 44  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) = 0;
 45  NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) = 0;
 46
 47};
 48
 49  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMProcessingInstruction, NS_IDOMPROCESSINGINSTRUCTION_IID)
 50
 51/* Use this macro when declaring classes that implement this interface. */
 52#define NS_DECL_NSIDOMPROCESSINGINSTRUCTION \
 53  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget); \
 54  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData); \
 55  NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData); 
 56
 57/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 58#define NS_FORWARD_NSIDOMPROCESSINGINSTRUCTION(_to) \
 59  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
 60  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
 61  NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); } 
 62
 63/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 64#define NS_FORWARD_SAFE_NSIDOMPROCESSINGINSTRUCTION(_to) \
 65  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
 66  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
 67  NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } 
 68
 69#if 0
 70/* Use the code below as a template for the implementation class for this interface. */
 71
 72/* Header file */
 73class nsDOMProcessingInstruction : public nsIDOMProcessingInstruction
 74{
 75public:
 76  NS_DECL_ISUPPORTS
 77  NS_DECL_NSIDOMPROCESSINGINSTRUCTION
 78
 79  nsDOMProcessingInstruction();
 80
 81private:
 82  ~nsDOMProcessingInstruction();
 83
 84protected:
 85  /* additional members */
 86};
 87
 88/* Implementation file */
 89NS_IMPL_ISUPPORTS1(nsDOMProcessingInstruction, nsIDOMProcessingInstruction)
 90
 91nsDOMProcessingInstruction::nsDOMProcessingInstruction()
 92{
 93  /* member initializers and constructor code */
 94}
 95
 96nsDOMProcessingInstruction::~nsDOMProcessingInstruction()
 97{
 98  /* destructor code */
 99}
100
101/* readonly attribute DOMString target; */
102NS_IMETHODIMP nsDOMProcessingInstruction::GetTarget(nsAString & aTarget)
103{
104    return NS_ERROR_NOT_IMPLEMENTED;
105}
106
107/* attribute DOMString data; */
108NS_IMETHODIMP nsDOMProcessingInstruction::GetData(nsAString & aData)
109{
110    return NS_ERROR_NOT_IMPLEMENTED;
111}
112NS_IMETHODIMP nsDOMProcessingInstruction::SetData(const nsAString & aData)
113{
114    return NS_ERROR_NOT_IMPLEMENTED;
115}
116
117/* End of implementation class template. */
118#endif
119
120
121#endif /* __gen_nsIDOMProcessingInstruction_h__ */