Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMHTMLLabelElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMHTMLLabelElement_h__
6 : #define __gen_nsIDOMHTMLLabelElement_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMHTMLElement_h__
10 : #include "nsIDOMHTMLElement.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: nsIDOMHTMLLabelElement */
19 : #define NS_IDOMHTMLLABELELEMENT_IID_STR "efc0eaf2-5756-4388-a229-fbec2033529d"
20 :
21 : #define NS_IDOMHTMLLABELELEMENT_IID \
22 : {0xefc0eaf2, 0x5756, 0x4388, \
23 : { 0xa2, 0x29, 0xfb, 0xec, 0x20, 0x33, 0x52, 0x9d }}
24 :
25 0 : class NS_NO_VTABLE nsIDOMHTMLLabelElement : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLLABELELEMENT_IID)
29 :
30 : /* readonly attribute nsIDOMHTMLFormElement form; */
31 : NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
32 :
33 : /* attribute DOMString htmlFor; */
34 : NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) = 0;
35 : NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) = 0;
36 :
37 : /* readonly attribute nsIDOMHTMLElement control; */
38 : NS_IMETHOD GetControl(nsIDOMHTMLElement * *aControl) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLLabelElement, NS_IDOMHTMLLABELELEMENT_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIDOMHTMLLABELELEMENT \
46 : NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) override; \
47 : NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) override; \
48 : NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) override; \
49 : NS_IMETHOD GetControl(nsIDOMHTMLElement * *aControl) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSIDOMHTMLLABELELEMENT \
54 : nsresult GetForm(nsIDOMHTMLFormElement * *aForm); \
55 : nsresult GetHtmlFor(nsAString & aHtmlFor); \
56 : nsresult SetHtmlFor(const nsAString & aHtmlFor); \
57 : nsresult GetControl(nsIDOMHTMLElement * *aControl);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIDOMHTMLLABELELEMENT(_to) \
61 : NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) override { return _to GetForm(aForm); } \
62 : NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) override { return _to GetHtmlFor(aHtmlFor); } \
63 : NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) override { return _to SetHtmlFor(aHtmlFor); } \
64 : NS_IMETHOD GetControl(nsIDOMHTMLElement * *aControl) override { return _to GetControl(aControl); }
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
67 : #define NS_FORWARD_SAFE_NSIDOMHTMLLABELELEMENT(_to) \
68 : NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
69 : NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHtmlFor(aHtmlFor); } \
70 : NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHtmlFor(aHtmlFor); } \
71 : NS_IMETHOD GetControl(nsIDOMHTMLElement * *aControl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControl(aControl); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsDOMHTMLLabelElement : public nsIDOMHTMLLabelElement
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIDOMHTMLLABELELEMENT
82 :
83 : nsDOMHTMLLabelElement();
84 :
85 : private:
86 : ~nsDOMHTMLLabelElement();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS(nsDOMHTMLLabelElement, nsIDOMHTMLLabelElement)
94 :
95 : nsDOMHTMLLabelElement::nsDOMHTMLLabelElement()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsDOMHTMLLabelElement::~nsDOMHTMLLabelElement()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* readonly attribute nsIDOMHTMLFormElement form; */
106 : NS_IMETHODIMP nsDOMHTMLLabelElement::GetForm(nsIDOMHTMLFormElement * *aForm)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* attribute DOMString htmlFor; */
112 : NS_IMETHODIMP nsDOMHTMLLabelElement::GetHtmlFor(nsAString & aHtmlFor)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 : NS_IMETHODIMP nsDOMHTMLLabelElement::SetHtmlFor(const nsAString & aHtmlFor)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* readonly attribute nsIDOMHTMLElement control; */
122 : NS_IMETHODIMP nsDOMHTMLLabelElement::GetControl(nsIDOMHTMLElement * *aControl)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* End of implementation class template. */
128 : #endif
129 :
130 :
131 : #endif /* __gen_nsIDOMHTMLLabelElement_h__ */
|