Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentViewerEdit.idl
3 : */
4 :
5 : #ifndef __gen_nsIContentViewerEdit_h__
6 : #define __gen_nsIContentViewerEdit_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 : class nsIDOMNode; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIContentViewerEdit */
21 : #define NS_ICONTENTVIEWEREDIT_IID_STR "35be2d7e-f29b-48ec-bf7e-80a30a724de3"
22 :
23 : #define NS_ICONTENTVIEWEREDIT_IID \
24 : {0x35be2d7e, 0xf29b, 0x48ec, \
25 : { 0xbf, 0x7e, 0x80, 0xa3, 0x0a, 0x72, 0x4d, 0xe3 }}
26 :
27 29 : class NS_NO_VTABLE nsIContentViewerEdit : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWEREDIT_IID)
31 :
32 : /* void clearSelection (); */
33 : NS_IMETHOD ClearSelection(void) = 0;
34 :
35 : /* void selectAll (); */
36 : NS_IMETHOD SelectAll(void) = 0;
37 :
38 : /* void copySelection (); */
39 : NS_IMETHOD CopySelection(void) = 0;
40 :
41 : /* readonly attribute boolean copyable; */
42 : NS_IMETHOD GetCopyable(bool *aCopyable) = 0;
43 :
44 : /* void copyLinkLocation (); */
45 : NS_IMETHOD CopyLinkLocation(void) = 0;
46 :
47 : /* readonly attribute boolean inLink; */
48 : NS_IMETHOD GetInLink(bool *aInLink) = 0;
49 :
50 : enum {
51 : COPY_IMAGE_TEXT = 1,
52 : COPY_IMAGE_HTML = 2,
53 : COPY_IMAGE_DATA = 4,
54 : COPY_IMAGE_ALL = -1
55 : };
56 :
57 : /* void copyImage (in long aCopyFlags); */
58 : NS_IMETHOD CopyImage(int32_t aCopyFlags) = 0;
59 :
60 : /* readonly attribute boolean inImage; */
61 : NS_IMETHOD GetInImage(bool *aInImage) = 0;
62 :
63 : /* AString getContents (in string aMimeType, in boolean aSelectionOnly); */
64 : NS_IMETHOD GetContents(const char * aMimeType, bool aSelectionOnly, nsAString & _retval) = 0;
65 :
66 : /* readonly attribute boolean canGetContents; */
67 : NS_IMETHOD GetCanGetContents(bool *aCanGetContents) = 0;
68 :
69 : /* void setCommandNode (in nsIDOMNode aNode); */
70 : NS_IMETHOD SetCommandNode(nsIDOMNode *aNode) = 0;
71 :
72 : };
73 :
74 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentViewerEdit, NS_ICONTENTVIEWEREDIT_IID)
75 :
76 : /* Use this macro when declaring classes that implement this interface. */
77 : #define NS_DECL_NSICONTENTVIEWEREDIT \
78 : NS_IMETHOD ClearSelection(void) override; \
79 : NS_IMETHOD SelectAll(void) override; \
80 : NS_IMETHOD CopySelection(void) override; \
81 : NS_IMETHOD GetCopyable(bool *aCopyable) override; \
82 : NS_IMETHOD CopyLinkLocation(void) override; \
83 : NS_IMETHOD GetInLink(bool *aInLink) override; \
84 : NS_IMETHOD CopyImage(int32_t aCopyFlags) override; \
85 : NS_IMETHOD GetInImage(bool *aInImage) override; \
86 : NS_IMETHOD GetContents(const char * aMimeType, bool aSelectionOnly, nsAString & _retval) override; \
87 : NS_IMETHOD GetCanGetContents(bool *aCanGetContents) override; \
88 : NS_IMETHOD SetCommandNode(nsIDOMNode *aNode) override;
89 :
90 : /* Use this macro when declaring the members of this interface when the
91 : class doesn't implement the interface. This is useful for forwarding. */
92 : #define NS_DECL_NON_VIRTUAL_NSICONTENTVIEWEREDIT \
93 : nsresult ClearSelection(void); \
94 : nsresult SelectAll(void); \
95 : nsresult CopySelection(void); \
96 : nsresult GetCopyable(bool *aCopyable); \
97 : nsresult CopyLinkLocation(void); \
98 : nsresult GetInLink(bool *aInLink); \
99 : nsresult CopyImage(int32_t aCopyFlags); \
100 : nsresult GetInImage(bool *aInImage); \
101 : nsresult GetContents(const char * aMimeType, bool aSelectionOnly, nsAString & _retval); \
102 : nsresult GetCanGetContents(bool *aCanGetContents); \
103 : nsresult SetCommandNode(nsIDOMNode *aNode);
104 :
105 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
106 : #define NS_FORWARD_NSICONTENTVIEWEREDIT(_to) \
107 : NS_IMETHOD ClearSelection(void) override { return _to ClearSelection(); } \
108 : NS_IMETHOD SelectAll(void) override { return _to SelectAll(); } \
109 : NS_IMETHOD CopySelection(void) override { return _to CopySelection(); } \
110 : NS_IMETHOD GetCopyable(bool *aCopyable) override { return _to GetCopyable(aCopyable); } \
111 : NS_IMETHOD CopyLinkLocation(void) override { return _to CopyLinkLocation(); } \
112 : NS_IMETHOD GetInLink(bool *aInLink) override { return _to GetInLink(aInLink); } \
113 : NS_IMETHOD CopyImage(int32_t aCopyFlags) override { return _to CopyImage(aCopyFlags); } \
114 : NS_IMETHOD GetInImage(bool *aInImage) override { return _to GetInImage(aInImage); } \
115 : NS_IMETHOD GetContents(const char * aMimeType, bool aSelectionOnly, nsAString & _retval) override { return _to GetContents(aMimeType, aSelectionOnly, _retval); } \
116 : NS_IMETHOD GetCanGetContents(bool *aCanGetContents) override { return _to GetCanGetContents(aCanGetContents); } \
117 : NS_IMETHOD SetCommandNode(nsIDOMNode *aNode) override { return _to SetCommandNode(aNode); }
118 :
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_NSICONTENTVIEWEREDIT(_to) \
121 : NS_IMETHOD ClearSelection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearSelection(); } \
122 : NS_IMETHOD SelectAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(); } \
123 : NS_IMETHOD CopySelection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopySelection(); } \
124 : NS_IMETHOD GetCopyable(bool *aCopyable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCopyable(aCopyable); } \
125 : NS_IMETHOD CopyLinkLocation(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyLinkLocation(); } \
126 : NS_IMETHOD GetInLink(bool *aInLink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInLink(aInLink); } \
127 : NS_IMETHOD CopyImage(int32_t aCopyFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyImage(aCopyFlags); } \
128 : NS_IMETHOD GetInImage(bool *aInImage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInImage(aInImage); } \
129 : NS_IMETHOD GetContents(const char * aMimeType, bool aSelectionOnly, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContents(aMimeType, aSelectionOnly, _retval); } \
130 : NS_IMETHOD GetCanGetContents(bool *aCanGetContents) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanGetContents(aCanGetContents); } \
131 : NS_IMETHOD SetCommandNode(nsIDOMNode *aNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCommandNode(aNode); }
132 :
133 : #if 0
134 : /* Use the code below as a template for the implementation class for this interface. */
135 :
136 : /* Header file */
137 : class nsContentViewerEdit : public nsIContentViewerEdit
138 : {
139 : public:
140 : NS_DECL_ISUPPORTS
141 : NS_DECL_NSICONTENTVIEWEREDIT
142 :
143 : nsContentViewerEdit();
144 :
145 : private:
146 : ~nsContentViewerEdit();
147 :
148 : protected:
149 : /* additional members */
150 : };
151 :
152 : /* Implementation file */
153 : NS_IMPL_ISUPPORTS(nsContentViewerEdit, nsIContentViewerEdit)
154 :
155 : nsContentViewerEdit::nsContentViewerEdit()
156 : {
157 : /* member initializers and constructor code */
158 : }
159 :
160 : nsContentViewerEdit::~nsContentViewerEdit()
161 : {
162 : /* destructor code */
163 : }
164 :
165 : /* void clearSelection (); */
166 : NS_IMETHODIMP nsContentViewerEdit::ClearSelection()
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* void selectAll (); */
172 : NS_IMETHODIMP nsContentViewerEdit::SelectAll()
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* void copySelection (); */
178 : NS_IMETHODIMP nsContentViewerEdit::CopySelection()
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* readonly attribute boolean copyable; */
184 : NS_IMETHODIMP nsContentViewerEdit::GetCopyable(bool *aCopyable)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* void copyLinkLocation (); */
190 : NS_IMETHODIMP nsContentViewerEdit::CopyLinkLocation()
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* readonly attribute boolean inLink; */
196 : NS_IMETHODIMP nsContentViewerEdit::GetInLink(bool *aInLink)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* void copyImage (in long aCopyFlags); */
202 : NS_IMETHODIMP nsContentViewerEdit::CopyImage(int32_t aCopyFlags)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* readonly attribute boolean inImage; */
208 : NS_IMETHODIMP nsContentViewerEdit::GetInImage(bool *aInImage)
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* AString getContents (in string aMimeType, in boolean aSelectionOnly); */
214 : NS_IMETHODIMP nsContentViewerEdit::GetContents(const char * aMimeType, bool aSelectionOnly, nsAString & _retval)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* readonly attribute boolean canGetContents; */
220 : NS_IMETHODIMP nsContentViewerEdit::GetCanGetContents(bool *aCanGetContents)
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 :
225 : /* void setCommandNode (in nsIDOMNode aNode); */
226 : NS_IMETHODIMP nsContentViewerEdit::SetCommandNode(nsIDOMNode *aNode)
227 : {
228 : return NS_ERROR_NOT_IMPLEMENTED;
229 : }
230 :
231 : /* End of implementation class template. */
232 : #endif
233 :
234 :
235 : #endif /* __gen_nsIContentViewerEdit_h__ */
|