nsIDOMHTMLImageElement.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLImageElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLImageElement_h__
  5. #define __gen_nsIDOMHTMLImageElement_h__
  6. #ifndef __gen_nsIDOMHTMLElement_h__
  7. #include "nsIDOMHTMLElement.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: nsIDOMHTMLImageElement */
  14. #define NS_IDOMHTMLIMAGEELEMENT_IID_STR "a6cf90ab-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLIMAGEELEMENT_IID \
  16. {0xa6cf90ab, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLImageElement interface is the interface to a [X]HTML
  20. * img element.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-HTML/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE nsIDOMHTMLImageElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLIMAGEELEMENT_IID)
  30. /* attribute DOMString name; */
  31. NS_IMETHOD GetName(nsAString & aName) = 0;
  32. NS_IMETHOD SetName(const nsAString & aName) = 0;
  33. /* attribute DOMString align; */
  34. NS_IMETHOD GetAlign(nsAString & aAlign) = 0;
  35. NS_IMETHOD SetAlign(const nsAString & aAlign) = 0;
  36. /* attribute DOMString alt; */
  37. NS_IMETHOD GetAlt(nsAString & aAlt) = 0;
  38. NS_IMETHOD SetAlt(const nsAString & aAlt) = 0;
  39. /* attribute DOMString border; */
  40. NS_IMETHOD GetBorder(nsAString & aBorder) = 0;
  41. NS_IMETHOD SetBorder(const nsAString & aBorder) = 0;
  42. /* attribute long height; */
  43. NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
  44. NS_IMETHOD SetHeight(PRInt32 aHeight) = 0;
  45. /* attribute long hspace; */
  46. NS_IMETHOD GetHspace(PRInt32 *aHspace) = 0;
  47. NS_IMETHOD SetHspace(PRInt32 aHspace) = 0;
  48. /* attribute boolean isMap; */
  49. NS_IMETHOD GetIsMap(PRBool *aIsMap) = 0;
  50. NS_IMETHOD SetIsMap(PRBool aIsMap) = 0;
  51. /* attribute DOMString longDesc; */
  52. NS_IMETHOD GetLongDesc(nsAString & aLongDesc) = 0;
  53. NS_IMETHOD SetLongDesc(const nsAString & aLongDesc) = 0;
  54. /* attribute DOMString src; */
  55. NS_IMETHOD GetSrc(nsAString & aSrc) = 0;
  56. NS_IMETHOD SetSrc(const nsAString & aSrc) = 0;
  57. /* attribute DOMString useMap; */
  58. NS_IMETHOD GetUseMap(nsAString & aUseMap) = 0;
  59. NS_IMETHOD SetUseMap(const nsAString & aUseMap) = 0;
  60. /* attribute long vspace; */
  61. NS_IMETHOD GetVspace(PRInt32 *aVspace) = 0;
  62. NS_IMETHOD SetVspace(PRInt32 aVspace) = 0;
  63. /* attribute long width; */
  64. NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
  65. NS_IMETHOD SetWidth(PRInt32 aWidth) = 0;
  66. };
  67. /* Use this macro when declaring classes that implement this interface. */
  68. #define NS_DECL_NSIDOMHTMLIMAGEELEMENT \
  69. NS_IMETHOD GetName(nsAString & aName); \
  70. NS_IMETHOD SetName(const nsAString & aName); \
  71. NS_IMETHOD GetAlign(nsAString & aAlign); \
  72. NS_IMETHOD SetAlign(const nsAString & aAlign); \
  73. NS_IMETHOD GetAlt(nsAString & aAlt); \
  74. NS_IMETHOD SetAlt(const nsAString & aAlt); \
  75. NS_IMETHOD GetBorder(nsAString & aBorder); \
  76. NS_IMETHOD SetBorder(const nsAString & aBorder); \
  77. NS_IMETHOD GetHeight(PRInt32 *aHeight); \
  78. NS_IMETHOD SetHeight(PRInt32 aHeight); \
  79. NS_IMETHOD GetHspace(PRInt32 *aHspace); \
  80. NS_IMETHOD SetHspace(PRInt32 aHspace); \
  81. NS_IMETHOD GetIsMap(PRBool *aIsMap); \
  82. NS_IMETHOD SetIsMap(PRBool aIsMap); \
  83. NS_IMETHOD GetLongDesc(nsAString & aLongDesc); \
  84. NS_IMETHOD SetLongDesc(const nsAString & aLongDesc); \
  85. NS_IMETHOD GetSrc(nsAString & aSrc); \
  86. NS_IMETHOD SetSrc(const nsAString & aSrc); \
  87. NS_IMETHOD GetUseMap(nsAString & aUseMap); \
  88. NS_IMETHOD SetUseMap(const nsAString & aUseMap); \
  89. NS_IMETHOD GetVspace(PRInt32 *aVspace); \
  90. NS_IMETHOD SetVspace(PRInt32 aVspace); \
  91. NS_IMETHOD GetWidth(PRInt32 *aWidth); \
  92. NS_IMETHOD SetWidth(PRInt32 aWidth);
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  94. #define NS_FORWARD_NSIDOMHTMLIMAGEELEMENT(_to) \
  95. NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  96. NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
  97. NS_IMETHOD GetAlign(nsAString & aAlign) { return _to GetAlign(aAlign); } \
  98. NS_IMETHOD SetAlign(const nsAString & aAlign) { return _to SetAlign(aAlign); } \
  99. NS_IMETHOD GetAlt(nsAString & aAlt) { return _to GetAlt(aAlt); } \
  100. NS_IMETHOD SetAlt(const nsAString & aAlt) { return _to SetAlt(aAlt); } \
  101. NS_IMETHOD GetBorder(nsAString & aBorder) { return _to GetBorder(aBorder); } \
  102. NS_IMETHOD SetBorder(const nsAString & aBorder) { return _to SetBorder(aBorder); } \
  103. NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
  104. NS_IMETHOD SetHeight(PRInt32 aHeight) { return _to SetHeight(aHeight); } \
  105. NS_IMETHOD GetHspace(PRInt32 *aHspace) { return _to GetHspace(aHspace); } \
  106. NS_IMETHOD SetHspace(PRInt32 aHspace) { return _to SetHspace(aHspace); } \
  107. NS_IMETHOD GetIsMap(PRBool *aIsMap) { return _to GetIsMap(aIsMap); } \
  108. NS_IMETHOD SetIsMap(PRBool aIsMap) { return _to SetIsMap(aIsMap); } \
  109. NS_IMETHOD GetLongDesc(nsAString & aLongDesc) { return _to GetLongDesc(aLongDesc); } \
  110. NS_IMETHOD SetLongDesc(const nsAString & aLongDesc) { return _to SetLongDesc(aLongDesc); } \
  111. NS_IMETHOD GetSrc(nsAString & aSrc) { return _to GetSrc(aSrc); } \
  112. NS_IMETHOD SetSrc(const nsAString & aSrc) { return _to SetSrc(aSrc); } \
  113. NS_IMETHOD GetUseMap(nsAString & aUseMap) { return _to GetUseMap(aUseMap); } \
  114. NS_IMETHOD SetUseMap(const nsAString & aUseMap) { return _to SetUseMap(aUseMap); } \
  115. NS_IMETHOD GetVspace(PRInt32 *aVspace) { return _to GetVspace(aVspace); } \
  116. NS_IMETHOD SetVspace(PRInt32 aVspace) { return _to SetVspace(aVspace); } \
  117. NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
  118. NS_IMETHOD SetWidth(PRInt32 aWidth) { return _to SetWidth(aWidth); }
  119. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  120. #define NS_FORWARD_SAFE_NSIDOMHTMLIMAGEELEMENT(_to) \
  121. NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  122. NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
  123. NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \
  124. NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \
  125. NS_IMETHOD GetAlt(nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlt(aAlt); } \
  126. NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \
  127. NS_IMETHOD GetBorder(nsAString & aBorder) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorder(aBorder); } \
  128. NS_IMETHOD SetBorder(const nsAString & aBorder) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorder(aBorder); } \
  129. NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
  130. NS_IMETHOD SetHeight(PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeight(aHeight); } \
  131. NS_IMETHOD GetHspace(PRInt32 *aHspace) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHspace(aHspace); } \
  132. NS_IMETHOD SetHspace(PRInt32 aHspace) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHspace(aHspace); } \
  133. NS_IMETHOD GetIsMap(PRBool *aIsMap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMap(aIsMap); } \
  134. NS_IMETHOD SetIsMap(PRBool aIsMap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMap(aIsMap); } \
  135. NS_IMETHOD GetLongDesc(nsAString & aLongDesc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongDesc(aLongDesc); } \
  136. NS_IMETHOD SetLongDesc(const nsAString & aLongDesc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLongDesc(aLongDesc); } \
  137. NS_IMETHOD GetSrc(nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrc(aSrc); } \
  138. NS_IMETHOD SetSrc(const nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSrc(aSrc); } \
  139. NS_IMETHOD GetUseMap(nsAString & aUseMap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseMap(aUseMap); } \
  140. NS_IMETHOD SetUseMap(const nsAString & aUseMap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseMap(aUseMap); } \
  141. NS_IMETHOD GetVspace(PRInt32 *aVspace) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVspace(aVspace); } \
  142. NS_IMETHOD SetVspace(PRInt32 aVspace) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVspace(aVspace); } \
  143. NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  144. NS_IMETHOD SetWidth(PRInt32 aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); }
  145. #if 0
  146. /* Use the code below as a template for the implementation class for this interface. */
  147. /* Header file */
  148. class nsDOMHTMLImageElement : public nsIDOMHTMLImageElement
  149. {
  150. public:
  151. NS_DECL_ISUPPORTS
  152. NS_DECL_NSIDOMHTMLIMAGEELEMENT
  153. nsDOMHTMLImageElement();
  154. private:
  155. ~nsDOMHTMLImageElement();
  156. protected:
  157. /* additional members */
  158. };
  159. /* Implementation file */
  160. NS_IMPL_ISUPPORTS1(nsDOMHTMLImageElement, nsIDOMHTMLImageElement)
  161. nsDOMHTMLImageElement::nsDOMHTMLImageElement()
  162. {
  163. /* member initializers and constructor code */
  164. }
  165. nsDOMHTMLImageElement::~nsDOMHTMLImageElement()
  166. {
  167. /* destructor code */
  168. }
  169. /* attribute DOMString name; */
  170. NS_IMETHODIMP nsDOMHTMLImageElement::GetName(nsAString & aName)
  171. {
  172. return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174. NS_IMETHODIMP nsDOMHTMLImageElement::SetName(const nsAString & aName)
  175. {
  176. return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178. /* attribute DOMString align; */
  179. NS_IMETHODIMP nsDOMHTMLImageElement::GetAlign(nsAString & aAlign)
  180. {
  181. return NS_ERROR_NOT_IMPLEMENTED;
  182. }
  183. NS_IMETHODIMP nsDOMHTMLImageElement::SetAlign(const nsAString & aAlign)
  184. {
  185. return NS_ERROR_NOT_IMPLEMENTED;
  186. }
  187. /* attribute DOMString alt; */
  188. NS_IMETHODIMP nsDOMHTMLImageElement::GetAlt(nsAString & aAlt)
  189. {
  190. return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192. NS_IMETHODIMP nsDOMHTMLImageElement::SetAlt(const nsAString & aAlt)
  193. {
  194. return NS_ERROR_NOT_IMPLEMENTED;
  195. }
  196. /* attribute DOMString border; */
  197. NS_IMETHODIMP nsDOMHTMLImageElement::GetBorder(nsAString & aBorder)
  198. {
  199. return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201. NS_IMETHODIMP nsDOMHTMLImageElement::SetBorder(const nsAString & aBorder)
  202. {
  203. return NS_ERROR_NOT_IMPLEMENTED;
  204. }
  205. /* attribute long height; */
  206. NS_IMETHODIMP nsDOMHTMLImageElement::GetHeight(PRInt32 *aHeight)
  207. {
  208. return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210. NS_IMETHODIMP nsDOMHTMLImageElement::SetHeight(PRInt32 aHeight)
  211. {
  212. return NS_ERROR_NOT_IMPLEMENTED;
  213. }
  214. /* attribute long hspace; */
  215. NS_IMETHODIMP nsDOMHTMLImageElement::GetHspace(PRInt32 *aHspace)
  216. {
  217. return NS_ERROR_NOT_IMPLEMENTED;
  218. }
  219. NS_IMETHODIMP nsDOMHTMLImageElement::SetHspace(PRInt32 aHspace)
  220. {
  221. return NS_ERROR_NOT_IMPLEMENTED;
  222. }
  223. /* attribute boolean isMap; */
  224. NS_IMETHODIMP nsDOMHTMLImageElement::GetIsMap(PRBool *aIsMap)
  225. {
  226. return NS_ERROR_NOT_IMPLEMENTED;
  227. }
  228. NS_IMETHODIMP nsDOMHTMLImageElement::SetIsMap(PRBool aIsMap)
  229. {
  230. return NS_ERROR_NOT_IMPLEMENTED;
  231. }
  232. /* attribute DOMString longDesc; */
  233. NS_IMETHODIMP nsDOMHTMLImageElement::GetLongDesc(nsAString & aLongDesc)
  234. {
  235. return NS_ERROR_NOT_IMPLEMENTED;
  236. }
  237. NS_IMETHODIMP nsDOMHTMLImageElement::SetLongDesc(const nsAString & aLongDesc)
  238. {
  239. return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241. /* attribute DOMString src; */
  242. NS_IMETHODIMP nsDOMHTMLImageElement::GetSrc(nsAString & aSrc)
  243. {
  244. return NS_ERROR_NOT_IMPLEMENTED;
  245. }
  246. NS_IMETHODIMP nsDOMHTMLImageElement::SetSrc(const nsAString & aSrc)
  247. {
  248. return NS_ERROR_NOT_IMPLEMENTED;
  249. }
  250. /* attribute DOMString useMap; */
  251. NS_IMETHODIMP nsDOMHTMLImageElement::GetUseMap(nsAString & aUseMap)
  252. {
  253. return NS_ERROR_NOT_IMPLEMENTED;
  254. }
  255. NS_IMETHODIMP nsDOMHTMLImageElement::SetUseMap(const nsAString & aUseMap)
  256. {
  257. return NS_ERROR_NOT_IMPLEMENTED;
  258. }
  259. /* attribute long vspace; */
  260. NS_IMETHODIMP nsDOMHTMLImageElement::GetVspace(PRInt32 *aVspace)
  261. {
  262. return NS_ERROR_NOT_IMPLEMENTED;
  263. }
  264. NS_IMETHODIMP nsDOMHTMLImageElement::SetVspace(PRInt32 aVspace)
  265. {
  266. return NS_ERROR_NOT_IMPLEMENTED;
  267. }
  268. /* attribute long width; */
  269. NS_IMETHODIMP nsDOMHTMLImageElement::GetWidth(PRInt32 *aWidth)
  270. {
  271. return NS_ERROR_NOT_IMPLEMENTED;
  272. }
  273. NS_IMETHODIMP nsDOMHTMLImageElement::SetWidth(PRInt32 aWidth)
  274. {
  275. return NS_ERROR_NOT_IMPLEMENTED;
  276. }
  277. /* End of implementation class template. */
  278. #endif
  279. #endif /* __gen_nsIDOMHTMLImageElement_h__ */