Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIHTMLAbsPosEditor.idl
3 : */
4 :
5 : #ifndef __gen_nsIHTMLAbsPosEditor_h__
6 : #define __gen_nsIHTMLAbsPosEditor_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_domstubs_h__
14 : #include "domstubs.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsIHTMLAbsPosEditor */
23 : #define NS_IHTMLABSPOSEDITOR_IID_STR "91375f52-20e6-4757-9835-eb04fabe5498"
24 :
25 : #define NS_IHTMLABSPOSEDITOR_IID \
26 : {0x91375f52, 0x20e6, 0x4757, \
27 : { 0x98, 0x35, 0xeb, 0x04, 0xfa, 0xbe, 0x54, 0x98 }}
28 :
29 0 : class NS_NO_VTABLE nsIHTMLAbsPosEditor : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTMLABSPOSEDITOR_IID)
33 :
34 : /* readonly attribute boolean selectionContainerAbsolutelyPositioned; */
35 : NS_IMETHOD GetSelectionContainerAbsolutelyPositioned(bool *aSelectionContainerAbsolutelyPositioned) = 0;
36 :
37 : /* readonly attribute nsIDOMElement positionedElement; */
38 : NS_IMETHOD GetPositionedElement(nsIDOMElement * *aPositionedElement) = 0;
39 :
40 : /* attribute boolean absolutePositioningEnabled; */
41 : NS_IMETHOD GetAbsolutePositioningEnabled(bool *aAbsolutePositioningEnabled) = 0;
42 : NS_IMETHOD SetAbsolutePositioningEnabled(bool aAbsolutePositioningEnabled) = 0;
43 :
44 : /* attribute boolean snapToGridEnabled; */
45 : NS_IMETHOD GetSnapToGridEnabled(bool *aSnapToGridEnabled) = 0;
46 : NS_IMETHOD SetSnapToGridEnabled(bool aSnapToGridEnabled) = 0;
47 :
48 : /* attribute unsigned long gridSize; */
49 : NS_IMETHOD GetGridSize(uint32_t *aGridSize) = 0;
50 : NS_IMETHOD SetGridSize(uint32_t aGridSize) = 0;
51 :
52 : /* readonly attribute nsIDOMElement absolutelyPositionedSelectionContainer; */
53 : NS_IMETHOD GetAbsolutelyPositionedSelectionContainer(nsIDOMElement * *aAbsolutelyPositionedSelectionContainer) = 0;
54 :
55 : /* void absolutePositionSelection (in boolean aEnabled); */
56 : NS_IMETHOD AbsolutePositionSelection(bool aEnabled) = 0;
57 :
58 : /* void relativeChangeZIndex (in long aChange); */
59 : NS_IMETHOD RelativeChangeZIndex(int32_t aChange) = 0;
60 :
61 : /* void absolutelyPositionElement (in nsIDOMElement aElement, in boolean aEnabled); */
62 : NS_IMETHOD AbsolutelyPositionElement(nsIDOMElement *aElement, bool aEnabled) = 0;
63 :
64 : /* void setElementPosition (in nsIDOMElement aElement, in long aX, in long aY); */
65 : NS_IMETHOD SetElementPosition(nsIDOMElement *aElement, int32_t aX, int32_t aY) = 0;
66 :
67 : /* long getElementZIndex (in nsIDOMElement aElement); */
68 : NS_IMETHOD GetElementZIndex(nsIDOMElement *aElement, int32_t *_retval) = 0;
69 :
70 : /* void setElementZIndex (in nsIDOMElement aElement, in long aZorder); */
71 : NS_IMETHOD SetElementZIndex(nsIDOMElement *aElement, int32_t aZorder) = 0;
72 :
73 : /* long relativeChangeElementZIndex (in nsIDOMElement aElement, in long aChange); */
74 : NS_IMETHOD RelativeChangeElementZIndex(nsIDOMElement *aElement, int32_t aChange, int32_t *_retval) = 0;
75 :
76 : /* void showGrabberOnElement (in nsIDOMElement aElement); */
77 : NS_IMETHOD ShowGrabberOnElement(nsIDOMElement *aElement) = 0;
78 :
79 : /* void hideGrabber (); */
80 : NS_IMETHOD HideGrabber(void) = 0;
81 :
82 : /* void refreshGrabber (); */
83 : NS_IMETHOD RefreshGrabber(void) = 0;
84 :
85 : };
86 :
87 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHTMLAbsPosEditor, NS_IHTMLABSPOSEDITOR_IID)
88 :
89 : /* Use this macro when declaring classes that implement this interface. */
90 : #define NS_DECL_NSIHTMLABSPOSEDITOR \
91 : NS_IMETHOD GetSelectionContainerAbsolutelyPositioned(bool *aSelectionContainerAbsolutelyPositioned) override; \
92 : NS_IMETHOD GetPositionedElement(nsIDOMElement * *aPositionedElement) override; \
93 : NS_IMETHOD GetAbsolutePositioningEnabled(bool *aAbsolutePositioningEnabled) override; \
94 : NS_IMETHOD SetAbsolutePositioningEnabled(bool aAbsolutePositioningEnabled) override; \
95 : NS_IMETHOD GetSnapToGridEnabled(bool *aSnapToGridEnabled) override; \
96 : NS_IMETHOD SetSnapToGridEnabled(bool aSnapToGridEnabled) override; \
97 : NS_IMETHOD GetGridSize(uint32_t *aGridSize) override; \
98 : NS_IMETHOD SetGridSize(uint32_t aGridSize) override; \
99 : NS_IMETHOD GetAbsolutelyPositionedSelectionContainer(nsIDOMElement * *aAbsolutelyPositionedSelectionContainer) override; \
100 : NS_IMETHOD AbsolutePositionSelection(bool aEnabled) override; \
101 : NS_IMETHOD RelativeChangeZIndex(int32_t aChange) override; \
102 : NS_IMETHOD AbsolutelyPositionElement(nsIDOMElement *aElement, bool aEnabled) override; \
103 : NS_IMETHOD SetElementPosition(nsIDOMElement *aElement, int32_t aX, int32_t aY) override; \
104 : NS_IMETHOD GetElementZIndex(nsIDOMElement *aElement, int32_t *_retval) override; \
105 : NS_IMETHOD SetElementZIndex(nsIDOMElement *aElement, int32_t aZorder) override; \
106 : NS_IMETHOD RelativeChangeElementZIndex(nsIDOMElement *aElement, int32_t aChange, int32_t *_retval) override; \
107 : NS_IMETHOD ShowGrabberOnElement(nsIDOMElement *aElement) override; \
108 : NS_IMETHOD HideGrabber(void) override; \
109 : NS_IMETHOD RefreshGrabber(void) override;
110 :
111 : /* Use this macro when declaring the members of this interface when the
112 : class doesn't implement the interface. This is useful for forwarding. */
113 : #define NS_DECL_NON_VIRTUAL_NSIHTMLABSPOSEDITOR \
114 : nsresult GetSelectionContainerAbsolutelyPositioned(bool *aSelectionContainerAbsolutelyPositioned); \
115 : nsresult GetPositionedElement(nsIDOMElement * *aPositionedElement); \
116 : nsresult GetAbsolutePositioningEnabled(bool *aAbsolutePositioningEnabled); \
117 : nsresult SetAbsolutePositioningEnabled(bool aAbsolutePositioningEnabled); \
118 : nsresult GetSnapToGridEnabled(bool *aSnapToGridEnabled); \
119 : nsresult SetSnapToGridEnabled(bool aSnapToGridEnabled); \
120 : nsresult GetGridSize(uint32_t *aGridSize); \
121 : nsresult SetGridSize(uint32_t aGridSize); \
122 : nsresult GetAbsolutelyPositionedSelectionContainer(nsIDOMElement * *aAbsolutelyPositionedSelectionContainer); \
123 : nsresult AbsolutePositionSelection(bool aEnabled); \
124 : nsresult RelativeChangeZIndex(int32_t aChange); \
125 : nsresult AbsolutelyPositionElement(nsIDOMElement *aElement, bool aEnabled); \
126 : nsresult SetElementPosition(nsIDOMElement *aElement, int32_t aX, int32_t aY); \
127 : nsresult GetElementZIndex(nsIDOMElement *aElement, int32_t *_retval); \
128 : nsresult SetElementZIndex(nsIDOMElement *aElement, int32_t aZorder); \
129 : nsresult RelativeChangeElementZIndex(nsIDOMElement *aElement, int32_t aChange, int32_t *_retval); \
130 : nsresult ShowGrabberOnElement(nsIDOMElement *aElement); \
131 : nsresult HideGrabber(void); \
132 : nsresult RefreshGrabber(void);
133 :
134 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
135 : #define NS_FORWARD_NSIHTMLABSPOSEDITOR(_to) \
136 : NS_IMETHOD GetSelectionContainerAbsolutelyPositioned(bool *aSelectionContainerAbsolutelyPositioned) override { return _to GetSelectionContainerAbsolutelyPositioned(aSelectionContainerAbsolutelyPositioned); } \
137 : NS_IMETHOD GetPositionedElement(nsIDOMElement * *aPositionedElement) override { return _to GetPositionedElement(aPositionedElement); } \
138 : NS_IMETHOD GetAbsolutePositioningEnabled(bool *aAbsolutePositioningEnabled) override { return _to GetAbsolutePositioningEnabled(aAbsolutePositioningEnabled); } \
139 : NS_IMETHOD SetAbsolutePositioningEnabled(bool aAbsolutePositioningEnabled) override { return _to SetAbsolutePositioningEnabled(aAbsolutePositioningEnabled); } \
140 : NS_IMETHOD GetSnapToGridEnabled(bool *aSnapToGridEnabled) override { return _to GetSnapToGridEnabled(aSnapToGridEnabled); } \
141 : NS_IMETHOD SetSnapToGridEnabled(bool aSnapToGridEnabled) override { return _to SetSnapToGridEnabled(aSnapToGridEnabled); } \
142 : NS_IMETHOD GetGridSize(uint32_t *aGridSize) override { return _to GetGridSize(aGridSize); } \
143 : NS_IMETHOD SetGridSize(uint32_t aGridSize) override { return _to SetGridSize(aGridSize); } \
144 : NS_IMETHOD GetAbsolutelyPositionedSelectionContainer(nsIDOMElement * *aAbsolutelyPositionedSelectionContainer) override { return _to GetAbsolutelyPositionedSelectionContainer(aAbsolutelyPositionedSelectionContainer); } \
145 : NS_IMETHOD AbsolutePositionSelection(bool aEnabled) override { return _to AbsolutePositionSelection(aEnabled); } \
146 : NS_IMETHOD RelativeChangeZIndex(int32_t aChange) override { return _to RelativeChangeZIndex(aChange); } \
147 : NS_IMETHOD AbsolutelyPositionElement(nsIDOMElement *aElement, bool aEnabled) override { return _to AbsolutelyPositionElement(aElement, aEnabled); } \
148 : NS_IMETHOD SetElementPosition(nsIDOMElement *aElement, int32_t aX, int32_t aY) override { return _to SetElementPosition(aElement, aX, aY); } \
149 : NS_IMETHOD GetElementZIndex(nsIDOMElement *aElement, int32_t *_retval) override { return _to GetElementZIndex(aElement, _retval); } \
150 : NS_IMETHOD SetElementZIndex(nsIDOMElement *aElement, int32_t aZorder) override { return _to SetElementZIndex(aElement, aZorder); } \
151 : NS_IMETHOD RelativeChangeElementZIndex(nsIDOMElement *aElement, int32_t aChange, int32_t *_retval) override { return _to RelativeChangeElementZIndex(aElement, aChange, _retval); } \
152 : NS_IMETHOD ShowGrabberOnElement(nsIDOMElement *aElement) override { return _to ShowGrabberOnElement(aElement); } \
153 : NS_IMETHOD HideGrabber(void) override { return _to HideGrabber(); } \
154 : NS_IMETHOD RefreshGrabber(void) override { return _to RefreshGrabber(); }
155 :
156 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
157 : #define NS_FORWARD_SAFE_NSIHTMLABSPOSEDITOR(_to) \
158 : NS_IMETHOD GetSelectionContainerAbsolutelyPositioned(bool *aSelectionContainerAbsolutelyPositioned) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionContainerAbsolutelyPositioned(aSelectionContainerAbsolutelyPositioned); } \
159 : NS_IMETHOD GetPositionedElement(nsIDOMElement * *aPositionedElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPositionedElement(aPositionedElement); } \
160 : NS_IMETHOD GetAbsolutePositioningEnabled(bool *aAbsolutePositioningEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbsolutePositioningEnabled(aAbsolutePositioningEnabled); } \
161 : NS_IMETHOD SetAbsolutePositioningEnabled(bool aAbsolutePositioningEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAbsolutePositioningEnabled(aAbsolutePositioningEnabled); } \
162 : NS_IMETHOD GetSnapToGridEnabled(bool *aSnapToGridEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSnapToGridEnabled(aSnapToGridEnabled); } \
163 : NS_IMETHOD SetSnapToGridEnabled(bool aSnapToGridEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSnapToGridEnabled(aSnapToGridEnabled); } \
164 : NS_IMETHOD GetGridSize(uint32_t *aGridSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGridSize(aGridSize); } \
165 : NS_IMETHOD SetGridSize(uint32_t aGridSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGridSize(aGridSize); } \
166 : NS_IMETHOD GetAbsolutelyPositionedSelectionContainer(nsIDOMElement * *aAbsolutelyPositionedSelectionContainer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbsolutelyPositionedSelectionContainer(aAbsolutelyPositionedSelectionContainer); } \
167 : NS_IMETHOD AbsolutePositionSelection(bool aEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AbsolutePositionSelection(aEnabled); } \
168 : NS_IMETHOD RelativeChangeZIndex(int32_t aChange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RelativeChangeZIndex(aChange); } \
169 : NS_IMETHOD AbsolutelyPositionElement(nsIDOMElement *aElement, bool aEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AbsolutelyPositionElement(aElement, aEnabled); } \
170 : NS_IMETHOD SetElementPosition(nsIDOMElement *aElement, int32_t aX, int32_t aY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetElementPosition(aElement, aX, aY); } \
171 : NS_IMETHOD GetElementZIndex(nsIDOMElement *aElement, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementZIndex(aElement, _retval); } \
172 : NS_IMETHOD SetElementZIndex(nsIDOMElement *aElement, int32_t aZorder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetElementZIndex(aElement, aZorder); } \
173 : NS_IMETHOD RelativeChangeElementZIndex(nsIDOMElement *aElement, int32_t aChange, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RelativeChangeElementZIndex(aElement, aChange, _retval); } \
174 : NS_IMETHOD ShowGrabberOnElement(nsIDOMElement *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowGrabberOnElement(aElement); } \
175 : NS_IMETHOD HideGrabber(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HideGrabber(); } \
176 : NS_IMETHOD RefreshGrabber(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshGrabber(); }
177 :
178 : #if 0
179 : /* Use the code below as a template for the implementation class for this interface. */
180 :
181 : /* Header file */
182 : class nsHTMLAbsPosEditor : public nsIHTMLAbsPosEditor
183 : {
184 : public:
185 : NS_DECL_ISUPPORTS
186 : NS_DECL_NSIHTMLABSPOSEDITOR
187 :
188 : nsHTMLAbsPosEditor();
189 :
190 : private:
191 : ~nsHTMLAbsPosEditor();
192 :
193 : protected:
194 : /* additional members */
195 : };
196 :
197 : /* Implementation file */
198 : NS_IMPL_ISUPPORTS(nsHTMLAbsPosEditor, nsIHTMLAbsPosEditor)
199 :
200 : nsHTMLAbsPosEditor::nsHTMLAbsPosEditor()
201 : {
202 : /* member initializers and constructor code */
203 : }
204 :
205 : nsHTMLAbsPosEditor::~nsHTMLAbsPosEditor()
206 : {
207 : /* destructor code */
208 : }
209 :
210 : /* readonly attribute boolean selectionContainerAbsolutelyPositioned; */
211 : NS_IMETHODIMP nsHTMLAbsPosEditor::GetSelectionContainerAbsolutelyPositioned(bool *aSelectionContainerAbsolutelyPositioned)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 :
216 : /* readonly attribute nsIDOMElement positionedElement; */
217 : NS_IMETHODIMP nsHTMLAbsPosEditor::GetPositionedElement(nsIDOMElement * *aPositionedElement)
218 : {
219 : return NS_ERROR_NOT_IMPLEMENTED;
220 : }
221 :
222 : /* attribute boolean absolutePositioningEnabled; */
223 : NS_IMETHODIMP nsHTMLAbsPosEditor::GetAbsolutePositioningEnabled(bool *aAbsolutePositioningEnabled)
224 : {
225 : return NS_ERROR_NOT_IMPLEMENTED;
226 : }
227 : NS_IMETHODIMP nsHTMLAbsPosEditor::SetAbsolutePositioningEnabled(bool aAbsolutePositioningEnabled)
228 : {
229 : return NS_ERROR_NOT_IMPLEMENTED;
230 : }
231 :
232 : /* attribute boolean snapToGridEnabled; */
233 : NS_IMETHODIMP nsHTMLAbsPosEditor::GetSnapToGridEnabled(bool *aSnapToGridEnabled)
234 : {
235 : return NS_ERROR_NOT_IMPLEMENTED;
236 : }
237 : NS_IMETHODIMP nsHTMLAbsPosEditor::SetSnapToGridEnabled(bool aSnapToGridEnabled)
238 : {
239 : return NS_ERROR_NOT_IMPLEMENTED;
240 : }
241 :
242 : /* attribute unsigned long gridSize; */
243 : NS_IMETHODIMP nsHTMLAbsPosEditor::GetGridSize(uint32_t *aGridSize)
244 : {
245 : return NS_ERROR_NOT_IMPLEMENTED;
246 : }
247 : NS_IMETHODIMP nsHTMLAbsPosEditor::SetGridSize(uint32_t aGridSize)
248 : {
249 : return NS_ERROR_NOT_IMPLEMENTED;
250 : }
251 :
252 : /* readonly attribute nsIDOMElement absolutelyPositionedSelectionContainer; */
253 : NS_IMETHODIMP nsHTMLAbsPosEditor::GetAbsolutelyPositionedSelectionContainer(nsIDOMElement * *aAbsolutelyPositionedSelectionContainer)
254 : {
255 : return NS_ERROR_NOT_IMPLEMENTED;
256 : }
257 :
258 : /* void absolutePositionSelection (in boolean aEnabled); */
259 : NS_IMETHODIMP nsHTMLAbsPosEditor::AbsolutePositionSelection(bool aEnabled)
260 : {
261 : return NS_ERROR_NOT_IMPLEMENTED;
262 : }
263 :
264 : /* void relativeChangeZIndex (in long aChange); */
265 : NS_IMETHODIMP nsHTMLAbsPosEditor::RelativeChangeZIndex(int32_t aChange)
266 : {
267 : return NS_ERROR_NOT_IMPLEMENTED;
268 : }
269 :
270 : /* void absolutelyPositionElement (in nsIDOMElement aElement, in boolean aEnabled); */
271 : NS_IMETHODIMP nsHTMLAbsPosEditor::AbsolutelyPositionElement(nsIDOMElement *aElement, bool aEnabled)
272 : {
273 : return NS_ERROR_NOT_IMPLEMENTED;
274 : }
275 :
276 : /* void setElementPosition (in nsIDOMElement aElement, in long aX, in long aY); */
277 : NS_IMETHODIMP nsHTMLAbsPosEditor::SetElementPosition(nsIDOMElement *aElement, int32_t aX, int32_t aY)
278 : {
279 : return NS_ERROR_NOT_IMPLEMENTED;
280 : }
281 :
282 : /* long getElementZIndex (in nsIDOMElement aElement); */
283 : NS_IMETHODIMP nsHTMLAbsPosEditor::GetElementZIndex(nsIDOMElement *aElement, int32_t *_retval)
284 : {
285 : return NS_ERROR_NOT_IMPLEMENTED;
286 : }
287 :
288 : /* void setElementZIndex (in nsIDOMElement aElement, in long aZorder); */
289 : NS_IMETHODIMP nsHTMLAbsPosEditor::SetElementZIndex(nsIDOMElement *aElement, int32_t aZorder)
290 : {
291 : return NS_ERROR_NOT_IMPLEMENTED;
292 : }
293 :
294 : /* long relativeChangeElementZIndex (in nsIDOMElement aElement, in long aChange); */
295 : NS_IMETHODIMP nsHTMLAbsPosEditor::RelativeChangeElementZIndex(nsIDOMElement *aElement, int32_t aChange, int32_t *_retval)
296 : {
297 : return NS_ERROR_NOT_IMPLEMENTED;
298 : }
299 :
300 : /* void showGrabberOnElement (in nsIDOMElement aElement); */
301 : NS_IMETHODIMP nsHTMLAbsPosEditor::ShowGrabberOnElement(nsIDOMElement *aElement)
302 : {
303 : return NS_ERROR_NOT_IMPLEMENTED;
304 : }
305 :
306 : /* void hideGrabber (); */
307 : NS_IMETHODIMP nsHTMLAbsPosEditor::HideGrabber()
308 : {
309 : return NS_ERROR_NOT_IMPLEMENTED;
310 : }
311 :
312 : /* void refreshGrabber (); */
313 : NS_IMETHODIMP nsHTMLAbsPosEditor::RefreshGrabber()
314 : {
315 : return NS_ERROR_NOT_IMPLEMENTED;
316 : }
317 :
318 : /* End of implementation class template. */
319 : #endif
320 :
321 :
322 : #endif /* __gen_nsIHTMLAbsPosEditor_h__ */
|