1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/svg/nsIDOMSVGElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMSVGElement_h__
6 : #define __gen_nsIDOMSVGElement_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMElement_h__
10 : #include "nsIDOMElement.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 : class nsIDOMSVGSVGElement; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMSVGElement */
21 : #define NS_IDOMSVGELEMENT_IID_STR "b0cf8ffb-92e7-46e7-870f-a01395f37336"
22 :
23 : #define NS_IDOMSVGELEMENT_IID \
24 : {0xb0cf8ffb, 0x92e7, 0x46e7, \
25 : { 0x87, 0x0f, 0xa0, 0x13, 0x95, 0xf3, 0x73, 0x36 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMSVGElement : public nsIDOMElement {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSVGELEMENT_IID)
31 :
32 : /* attribute DOMString id; */
33 : NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) = 0;
34 : NS_SCRIPTABLE NS_IMETHOD SetId(const nsAString & aId) = 0;
35 :
36 : /* readonly attribute nsIDOMSVGSVGElement ownerSVGElement; */
37 : NS_SCRIPTABLE NS_IMETHOD GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement) = 0;
38 :
39 : /* readonly attribute nsIDOMSVGElement viewportElement; */
40 : NS_SCRIPTABLE NS_IMETHOD GetViewportElement(nsIDOMSVGElement * *aViewportElement) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMSVGElement, NS_IDOMSVGELEMENT_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIDOMSVGELEMENT \
48 : NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId); \
49 : NS_SCRIPTABLE NS_IMETHOD SetId(const nsAString & aId); \
50 : NS_SCRIPTABLE NS_IMETHOD GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement); \
51 : NS_SCRIPTABLE NS_IMETHOD GetViewportElement(nsIDOMSVGElement * *aViewportElement);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIDOMSVGELEMENT(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) { return _to GetId(aId); } \
56 : NS_SCRIPTABLE NS_IMETHOD SetId(const nsAString & aId) { return _to SetId(aId); } \
57 : NS_SCRIPTABLE NS_IMETHOD GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement) { return _to GetOwnerSVGElement(aOwnerSVGElement); } \
58 : NS_SCRIPTABLE NS_IMETHOD GetViewportElement(nsIDOMSVGElement * *aViewportElement) { return _to GetViewportElement(aViewportElement); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIDOMSVGELEMENT(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
63 : NS_SCRIPTABLE NS_IMETHOD SetId(const nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerSVGElement(aOwnerSVGElement); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetViewportElement(nsIDOMSVGElement * *aViewportElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewportElement(aViewportElement); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsDOMSVGElement : public nsIDOMSVGElement
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIDOMSVGELEMENT
76 :
77 : nsDOMSVGElement();
78 :
79 : private:
80 : ~nsDOMSVGElement();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsDOMSVGElement, nsIDOMSVGElement)
88 :
89 : nsDOMSVGElement::nsDOMSVGElement()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsDOMSVGElement::~nsDOMSVGElement()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* attribute DOMString id; */
100 : NS_IMETHODIMP nsDOMSVGElement::GetId(nsAString & aId)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 : NS_IMETHODIMP nsDOMSVGElement::SetId(const nsAString & aId)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* readonly attribute nsIDOMSVGSVGElement ownerSVGElement; */
110 : NS_IMETHODIMP nsDOMSVGElement::GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* readonly attribute nsIDOMSVGElement viewportElement; */
116 : NS_IMETHODIMP nsDOMSVGElement::GetViewportElement(nsIDOMSVGElement * *aViewportElement)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* End of implementation class template. */
122 : #endif
123 :
124 :
125 : #endif /* __gen_nsIDOMSVGElement_h__ */
|