PageRenderTime 91ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/mozilla/mozilla/dist/include/dom/nsIDOMNSHTMLTextAreaElement.h

http://kmbrasil.codeplex.com
C++ Header | 155 lines | 96 code | 34 blank | 25 comment | 0 complexity | 89b999d3c80e3e70270748311523e1e5 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM h:/projects/mozilla/mozilla/dom/public/idl/html/nsIDOMNSHTMLTextAreaElement.idl
  3. */
  4. #ifndef __gen_nsIDOMNSHTMLTextAreaElement_h__
  5. #define __gen_nsIDOMNSHTMLTextAreaElement_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.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. class nsIControllers; /* forward declaration */
  14. /* starting interface: nsIDOMNSHTMLTextAreaElement */
  15. #define NS_IDOMNSHTMLTEXTAREAELEMENT_IID_STR "ca066b44-9ddf-11d3-bccc-0060b0fc76bd"
  16. #define NS_IDOMNSHTMLTEXTAREAELEMENT_IID \
  17. {0xca066b44, 0x9ddf, 0x11d3, \
  18. { 0xbc, 0xcc, 0x00, 0x60, 0xb0, 0xfc, 0x76, 0xbd }}
  19. class NS_NO_VTABLE nsIDOMNSHTMLTextAreaElement : public nsISupports {
  20. public:
  21. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSHTMLTEXTAREAELEMENT_IID)
  22. /* readonly attribute nsIControllers controllers; */
  23. NS_IMETHOD GetControllers(nsIControllers * *aControllers) = 0;
  24. /* readonly attribute long textLength; */
  25. NS_IMETHOD GetTextLength(PRInt32 *aTextLength) = 0;
  26. /* attribute long selectionStart; */
  27. NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) = 0;
  28. NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) = 0;
  29. /* attribute long selectionEnd; */
  30. NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) = 0;
  31. NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) = 0;
  32. /* void setSelectionRange (in long selectionStart, in long selectionEnd); */
  33. NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) = 0;
  34. };
  35. /* Use this macro when declaring classes that implement this interface. */
  36. #define NS_DECL_NSIDOMNSHTMLTEXTAREAELEMENT \
  37. NS_IMETHOD GetControllers(nsIControllers * *aControllers); \
  38. NS_IMETHOD GetTextLength(PRInt32 *aTextLength); \
  39. NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart); \
  40. NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart); \
  41. NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd); \
  42. NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd); \
  43. NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd);
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIDOMNSHTMLTEXTAREAELEMENT(_to) \
  46. NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return _to GetControllers(aControllers); } \
  47. NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return _to GetTextLength(aTextLength); } \
  48. NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) { return _to GetSelectionStart(aSelectionStart); } \
  49. NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) { return _to SetSelectionStart(aSelectionStart); } \
  50. NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) { return _to GetSelectionEnd(aSelectionEnd); } \
  51. NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) { return _to SetSelectionEnd(aSelectionEnd); } \
  52. NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) { return _to SetSelectionRange(selectionStart, selectionEnd); }
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSIDOMNSHTMLTEXTAREAELEMENT(_to) \
  55. NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControllers(aControllers); } \
  56. NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextLength(aTextLength); } \
  57. NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionStart(aSelectionStart); } \
  58. NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionStart(aSelectionStart); } \
  59. NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionEnd(aSelectionEnd); } \
  60. NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionEnd(aSelectionEnd); } \
  61. NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionRange(selectionStart, selectionEnd); }
  62. #if 0
  63. /* Use the code below as a template for the implementation class for this interface. */
  64. /* Header file */
  65. class nsDOMNSHTMLTextAreaElement : public nsIDOMNSHTMLTextAreaElement
  66. {
  67. public:
  68. NS_DECL_ISUPPORTS
  69. NS_DECL_NSIDOMNSHTMLTEXTAREAELEMENT
  70. nsDOMNSHTMLTextAreaElement();
  71. private:
  72. ~nsDOMNSHTMLTextAreaElement();
  73. protected:
  74. /* additional members */
  75. };
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsDOMNSHTMLTextAreaElement, nsIDOMNSHTMLTextAreaElement)
  78. nsDOMNSHTMLTextAreaElement::nsDOMNSHTMLTextAreaElement()
  79. {
  80. /* member initializers and constructor code */
  81. }
  82. nsDOMNSHTMLTextAreaElement::~nsDOMNSHTMLTextAreaElement()
  83. {
  84. /* destructor code */
  85. }
  86. /* readonly attribute nsIControllers controllers; */
  87. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::GetControllers(nsIControllers * *aControllers)
  88. {
  89. return NS_ERROR_NOT_IMPLEMENTED;
  90. }
  91. /* readonly attribute long textLength; */
  92. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::GetTextLength(PRInt32 *aTextLength)
  93. {
  94. return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96. /* attribute long selectionStart; */
  97. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::GetSelectionStart(PRInt32 *aSelectionStart)
  98. {
  99. return NS_ERROR_NOT_IMPLEMENTED;
  100. }
  101. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::SetSelectionStart(PRInt32 aSelectionStart)
  102. {
  103. return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105. /* attribute long selectionEnd; */
  106. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::GetSelectionEnd(PRInt32 *aSelectionEnd)
  107. {
  108. return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::SetSelectionEnd(PRInt32 aSelectionEnd)
  111. {
  112. return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114. /* void setSelectionRange (in long selectionStart, in long selectionEnd); */
  115. NS_IMETHODIMP nsDOMNSHTMLTextAreaElement::SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd)
  116. {
  117. return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119. /* End of implementation class template. */
  120. #endif
  121. #endif /* __gen_nsIDOMNSHTMLTextAreaElement_h__ */