PageRenderTime 35ms CodeModel.GetById 16ms RepoModel.GetById 1ms 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. #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 NS_SCRIPTABLE nsIDOMProcessingInstruction : public nsIDOMNode {
  19. public:
  20. NS_DECLARE_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_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
  33. /* attribute DOMString data; */
  34. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) = 0;
  35. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) = 0;
  36. };
  37. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMProcessingInstruction, NS_IDOMPROCESSINGINSTRUCTION_IID)
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSIDOMPROCESSINGINSTRUCTION \
  40. NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget); \
  41. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData); \
  42. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData);
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIDOMPROCESSINGINSTRUCTION(_to) \
  45. NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
  46. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
  47. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); }
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIDOMPROCESSINGINSTRUCTION(_to) \
  50. NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  51. NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  52. NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); }
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55. /* Header file */
  56. class nsDOMProcessingInstruction : public nsIDOMProcessingInstruction
  57. {
  58. public:
  59. NS_DECL_ISUPPORTS
  60. NS_DECL_NSIDOMPROCESSINGINSTRUCTION
  61. nsDOMProcessingInstruction();
  62. private:
  63. ~nsDOMProcessingInstruction();
  64. protected:
  65. /* additional members */
  66. };
  67. /* Implementation file */
  68. NS_IMPL_ISUPPORTS1(nsDOMProcessingInstruction, nsIDOMProcessingInstruction)
  69. nsDOMProcessingInstruction::nsDOMProcessingInstruction()
  70. {
  71. /* member initializers and constructor code */
  72. }
  73. nsDOMProcessingInstruction::~nsDOMProcessingInstruction()
  74. {
  75. /* destructor code */
  76. }
  77. /* readonly attribute DOMString target; */
  78. NS_IMETHODIMP nsDOMProcessingInstruction::GetTarget(nsAString & aTarget)
  79. {
  80. return NS_ERROR_NOT_IMPLEMENTED;
  81. }
  82. /* attribute DOMString data; */
  83. NS_IMETHODIMP nsDOMProcessingInstruction::GetData(nsAString & aData)
  84. {
  85. return NS_ERROR_NOT_IMPLEMENTED;
  86. }
  87. NS_IMETHODIMP nsDOMProcessingInstruction::SetData(const nsAString & aData)
  88. {
  89. return NS_ERROR_NOT_IMPLEMENTED;
  90. }
  91. /* End of implementation class template. */
  92. #endif
  93. #endif /* __gen_nsIDOMProcessingInstruction_h__ */