1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIClipboardCommands.idl
3 : */
4 :
5 : #ifndef __gen_nsIClipboardCommands_h__
6 : #define __gen_nsIClipboardCommands_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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: nsIClipboardCommands */
19 : #define NS_ICLIPBOARDCOMMANDS_IID_STR "b8100c90-73be-11d2-92a5-00105a1b0d64"
20 :
21 : #define NS_ICLIPBOARDCOMMANDS_IID \
22 : {0xb8100c90, 0x73be, 0x11d2, \
23 : { 0x92, 0xa5, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIClipboardCommands : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLIPBOARDCOMMANDS_IID)
29 :
30 : /* boolean canCutSelection (); */
31 : NS_SCRIPTABLE NS_IMETHOD CanCutSelection(bool *_retval NS_OUTPARAM) = 0;
32 :
33 : /* boolean canCopySelection (); */
34 : NS_SCRIPTABLE NS_IMETHOD CanCopySelection(bool *_retval NS_OUTPARAM) = 0;
35 :
36 : /* boolean canCopyLinkLocation (); */
37 : NS_SCRIPTABLE NS_IMETHOD CanCopyLinkLocation(bool *_retval NS_OUTPARAM) = 0;
38 :
39 : /* boolean canCopyImageLocation (); */
40 : NS_SCRIPTABLE NS_IMETHOD CanCopyImageLocation(bool *_retval NS_OUTPARAM) = 0;
41 :
42 : /* boolean canCopyImageContents (); */
43 : NS_SCRIPTABLE NS_IMETHOD CanCopyImageContents(bool *_retval NS_OUTPARAM) = 0;
44 :
45 : /* boolean canPaste (); */
46 : NS_SCRIPTABLE NS_IMETHOD CanPaste(bool *_retval NS_OUTPARAM) = 0;
47 :
48 : /* void cutSelection (); */
49 : NS_SCRIPTABLE NS_IMETHOD CutSelection(void) = 0;
50 :
51 : /* void copySelection (); */
52 : NS_SCRIPTABLE NS_IMETHOD CopySelection(void) = 0;
53 :
54 : /* void copyLinkLocation (); */
55 : NS_SCRIPTABLE NS_IMETHOD CopyLinkLocation(void) = 0;
56 :
57 : /* void copyImageLocation (); */
58 : NS_SCRIPTABLE NS_IMETHOD CopyImageLocation(void) = 0;
59 :
60 : /* void copyImageContents (); */
61 : NS_SCRIPTABLE NS_IMETHOD CopyImageContents(void) = 0;
62 :
63 : /* void paste (); */
64 : NS_SCRIPTABLE NS_IMETHOD Paste(void) = 0;
65 :
66 : /* void selectAll (); */
67 : NS_SCRIPTABLE NS_IMETHOD SelectAll(void) = 0;
68 :
69 : /* void selectNone (); */
70 : NS_SCRIPTABLE NS_IMETHOD SelectNone(void) = 0;
71 :
72 : };
73 :
74 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIClipboardCommands, NS_ICLIPBOARDCOMMANDS_IID)
75 :
76 : /* Use this macro when declaring classes that implement this interface. */
77 : #define NS_DECL_NSICLIPBOARDCOMMANDS \
78 : NS_SCRIPTABLE NS_IMETHOD CanCutSelection(bool *_retval NS_OUTPARAM); \
79 : NS_SCRIPTABLE NS_IMETHOD CanCopySelection(bool *_retval NS_OUTPARAM); \
80 : NS_SCRIPTABLE NS_IMETHOD CanCopyLinkLocation(bool *_retval NS_OUTPARAM); \
81 : NS_SCRIPTABLE NS_IMETHOD CanCopyImageLocation(bool *_retval NS_OUTPARAM); \
82 : NS_SCRIPTABLE NS_IMETHOD CanCopyImageContents(bool *_retval NS_OUTPARAM); \
83 : NS_SCRIPTABLE NS_IMETHOD CanPaste(bool *_retval NS_OUTPARAM); \
84 : NS_SCRIPTABLE NS_IMETHOD CutSelection(void); \
85 : NS_SCRIPTABLE NS_IMETHOD CopySelection(void); \
86 : NS_SCRIPTABLE NS_IMETHOD CopyLinkLocation(void); \
87 : NS_SCRIPTABLE NS_IMETHOD CopyImageLocation(void); \
88 : NS_SCRIPTABLE NS_IMETHOD CopyImageContents(void); \
89 : NS_SCRIPTABLE NS_IMETHOD Paste(void); \
90 : NS_SCRIPTABLE NS_IMETHOD SelectAll(void); \
91 : NS_SCRIPTABLE NS_IMETHOD SelectNone(void);
92 :
93 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
94 : #define NS_FORWARD_NSICLIPBOARDCOMMANDS(_to) \
95 : NS_SCRIPTABLE NS_IMETHOD CanCutSelection(bool *_retval NS_OUTPARAM) { return _to CanCutSelection(_retval); } \
96 : NS_SCRIPTABLE NS_IMETHOD CanCopySelection(bool *_retval NS_OUTPARAM) { return _to CanCopySelection(_retval); } \
97 : NS_SCRIPTABLE NS_IMETHOD CanCopyLinkLocation(bool *_retval NS_OUTPARAM) { return _to CanCopyLinkLocation(_retval); } \
98 : NS_SCRIPTABLE NS_IMETHOD CanCopyImageLocation(bool *_retval NS_OUTPARAM) { return _to CanCopyImageLocation(_retval); } \
99 : NS_SCRIPTABLE NS_IMETHOD CanCopyImageContents(bool *_retval NS_OUTPARAM) { return _to CanCopyImageContents(_retval); } \
100 : NS_SCRIPTABLE NS_IMETHOD CanPaste(bool *_retval NS_OUTPARAM) { return _to CanPaste(_retval); } \
101 : NS_SCRIPTABLE NS_IMETHOD CutSelection(void) { return _to CutSelection(); } \
102 : NS_SCRIPTABLE NS_IMETHOD CopySelection(void) { return _to CopySelection(); } \
103 : NS_SCRIPTABLE NS_IMETHOD CopyLinkLocation(void) { return _to CopyLinkLocation(); } \
104 : NS_SCRIPTABLE NS_IMETHOD CopyImageLocation(void) { return _to CopyImageLocation(); } \
105 : NS_SCRIPTABLE NS_IMETHOD CopyImageContents(void) { return _to CopyImageContents(); } \
106 : NS_SCRIPTABLE NS_IMETHOD Paste(void) { return _to Paste(); } \
107 : NS_SCRIPTABLE NS_IMETHOD SelectAll(void) { return _to SelectAll(); } \
108 : NS_SCRIPTABLE NS_IMETHOD SelectNone(void) { return _to SelectNone(); }
109 :
110 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
111 : #define NS_FORWARD_SAFE_NSICLIPBOARDCOMMANDS(_to) \
112 : NS_SCRIPTABLE NS_IMETHOD CanCutSelection(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCutSelection(_retval); } \
113 : NS_SCRIPTABLE NS_IMETHOD CanCopySelection(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCopySelection(_retval); } \
114 : NS_SCRIPTABLE NS_IMETHOD CanCopyLinkLocation(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCopyLinkLocation(_retval); } \
115 : NS_SCRIPTABLE NS_IMETHOD CanCopyImageLocation(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCopyImageLocation(_retval); } \
116 : NS_SCRIPTABLE NS_IMETHOD CanCopyImageContents(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCopyImageContents(_retval); } \
117 : NS_SCRIPTABLE NS_IMETHOD CanPaste(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanPaste(_retval); } \
118 : NS_SCRIPTABLE NS_IMETHOD CutSelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CutSelection(); } \
119 : NS_SCRIPTABLE NS_IMETHOD CopySelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopySelection(); } \
120 : NS_SCRIPTABLE NS_IMETHOD CopyLinkLocation(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyLinkLocation(); } \
121 : NS_SCRIPTABLE NS_IMETHOD CopyImageLocation(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyImageLocation(); } \
122 : NS_SCRIPTABLE NS_IMETHOD CopyImageContents(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyImageContents(); } \
123 : NS_SCRIPTABLE NS_IMETHOD Paste(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Paste(); } \
124 : NS_SCRIPTABLE NS_IMETHOD SelectAll(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(); } \
125 : NS_SCRIPTABLE NS_IMETHOD SelectNone(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectNone(); }
126 :
127 : #if 0
128 : /* Use the code below as a template for the implementation class for this interface. */
129 :
130 : /* Header file */
131 : class nsClipboardCommands : public nsIClipboardCommands
132 : {
133 : public:
134 : NS_DECL_ISUPPORTS
135 : NS_DECL_NSICLIPBOARDCOMMANDS
136 :
137 : nsClipboardCommands();
138 :
139 : private:
140 : ~nsClipboardCommands();
141 :
142 : protected:
143 : /* additional members */
144 : };
145 :
146 : /* Implementation file */
147 : NS_IMPL_ISUPPORTS1(nsClipboardCommands, nsIClipboardCommands)
148 :
149 : nsClipboardCommands::nsClipboardCommands()
150 : {
151 : /* member initializers and constructor code */
152 : }
153 :
154 : nsClipboardCommands::~nsClipboardCommands()
155 : {
156 : /* destructor code */
157 : }
158 :
159 : /* boolean canCutSelection (); */
160 : NS_IMETHODIMP nsClipboardCommands::CanCutSelection(bool *_retval NS_OUTPARAM)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* boolean canCopySelection (); */
166 : NS_IMETHODIMP nsClipboardCommands::CanCopySelection(bool *_retval NS_OUTPARAM)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* boolean canCopyLinkLocation (); */
172 : NS_IMETHODIMP nsClipboardCommands::CanCopyLinkLocation(bool *_retval NS_OUTPARAM)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* boolean canCopyImageLocation (); */
178 : NS_IMETHODIMP nsClipboardCommands::CanCopyImageLocation(bool *_retval NS_OUTPARAM)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* boolean canCopyImageContents (); */
184 : NS_IMETHODIMP nsClipboardCommands::CanCopyImageContents(bool *_retval NS_OUTPARAM)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* boolean canPaste (); */
190 : NS_IMETHODIMP nsClipboardCommands::CanPaste(bool *_retval NS_OUTPARAM)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* void cutSelection (); */
196 : NS_IMETHODIMP nsClipboardCommands::CutSelection()
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* void copySelection (); */
202 : NS_IMETHODIMP nsClipboardCommands::CopySelection()
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* void copyLinkLocation (); */
208 : NS_IMETHODIMP nsClipboardCommands::CopyLinkLocation()
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* void copyImageLocation (); */
214 : NS_IMETHODIMP nsClipboardCommands::CopyImageLocation()
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* void copyImageContents (); */
220 : NS_IMETHODIMP nsClipboardCommands::CopyImageContents()
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 :
225 : /* void paste (); */
226 : NS_IMETHODIMP nsClipboardCommands::Paste()
227 : {
228 : return NS_ERROR_NOT_IMPLEMENTED;
229 : }
230 :
231 : /* void selectAll (); */
232 : NS_IMETHODIMP nsClipboardCommands::SelectAll()
233 : {
234 : return NS_ERROR_NOT_IMPLEMENTED;
235 : }
236 :
237 : /* void selectNone (); */
238 : NS_IMETHODIMP nsClipboardCommands::SelectNone()
239 : {
240 : return NS_ERROR_NOT_IMPLEMENTED;
241 : }
242 :
243 : /* End of implementation class template. */
244 : #endif
245 :
246 :
247 : #endif /* __gen_nsIClipboardCommands_h__ */
|