nsIDOMProcessingInstruction.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/core/nsIDOMProcessingInstruction.idl
  3. */
  4. #ifndef __gen_nsIDOMProcessingInstruction_h__
  5. #define __gen_nsIDOMProcessingInstruction_h__
  6. #ifndef __gen_nsIDOMNode_h__
  7. #include "nsIDOMNode.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMProcessingInstruction */
  14. #define NS_IDOMPROCESSINGINSTRUCTION_IID_STR "a6cf907f-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMPROCESSINGINSTRUCTION_IID \
  16. {0xa6cf907f, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMProcessingInstruction : public nsIDOMNode {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPROCESSINGINSTRUCTION_IID)
  21. /**
  22. * The nsIDOMProcessingInstruction interface represents a
  23. * "processing instruction", used in XML as a way to keep processor-specific
  24. * information in the text of the document.
  25. *
  26. * For more information on this interface please see
  27. * http://www.w3.org/TR/DOM-Level-2-Core/
  28. *
  29. * @status FROZEN
  30. */
  31. /* readonly attribute DOMString target; */
  32. NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
  33. /* attribute DOMString data; */
  34. NS_IMETHOD GetData(nsAString & aData) = 0;
  35. NS_IMETHOD SetData(const nsAString & aData) = 0;
  36. };
  37. /* Use this macro when declaring classes that implement this interface. */
  38. #define NS_DECL_NSIDOMPROCESSINGINSTRUCTION \
  39. NS_IMETHOD GetTarget(nsAString & aTarget); \
  40. NS_IMETHOD GetData(nsAString & aData); \
  41. NS_IMETHOD SetData(const nsAString & aData);
  42. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  43. #define NS_FORWARD_NSIDOMPROCESSINGINSTRUCTION(_to) \
  44. NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
  45. NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
  46. NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); }
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIDOMPROCESSINGINSTRUCTION(_to) \
  49. NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  50. NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  51. NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); }
  52. #if 0
  53. /* Use the code below as a template for the implementation class for this interface. */
  54. /* Header file */
  55. class nsDOMProcessingInstruction : public nsIDOMProcessingInstruction
  56. {
  57. public:
  58. NS_DECL_ISUPPORTS
  59. NS_DECL_NSIDOMPROCESSINGINSTRUCTION
  60. nsDOMProcessingInstruction();
  61. private:
  62. ~nsDOMProcessingInstruction();
  63. protected:
  64. /* additional members */
  65. };
  66. /* Implementation file */
  67. NS_IMPL_ISUPPORTS1(nsDOMProcessingInstruction, nsIDOMProcessingInstruction)
  68. nsDOMProcessingInstruction::nsDOMProcessingInstruction()
  69. {
  70. /* member initializers and constructor code */
  71. }
  72. nsDOMProcessingInstruction::~nsDOMProcessingInstruction()
  73. {
  74. /* destructor code */
  75. }
  76. /* readonly attribute DOMString target; */
  77. NS_IMETHODIMP nsDOMProcessingInstruction::GetTarget(nsAString & aTarget)
  78. {
  79. return NS_ERROR_NOT_IMPLEMENTED;
  80. }
  81. /* attribute DOMString data; */
  82. NS_IMETHODIMP nsDOMProcessingInstruction::GetData(nsAString & aData)
  83. {
  84. return NS_ERROR_NOT_IMPLEMENTED;
  85. }
  86. NS_IMETHODIMP nsDOMProcessingInstruction::SetData(const nsAString & aData)
  87. {
  88. return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90. /* End of implementation class template. */
  91. #endif
  92. #endif /* __gen_nsIDOMProcessingInstruction_h__ */