Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIEditorMailSupport.idl
3 : */
4 :
5 : #ifndef __gen_nsIEditorMailSupport_h__
6 : #define __gen_nsIEditorMailSupport_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 nsIArray; /* forward declaration */
18 :
19 : class nsIDOMNode; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIEditorMailSupport */
23 : #define NS_IEDITORMAILSUPPORT_IID_STR "fdf23301-4a94-11d3-9ce4-9960496c41bc"
24 :
25 : #define NS_IEDITORMAILSUPPORT_IID \
26 : {0xfdf23301, 0x4a94, 0x11d3, \
27 : { 0x9c, 0xe4, 0x99, 0x60, 0x49, 0x6c, 0x41, 0xbc }}
28 :
29 1 : class NS_NO_VTABLE nsIEditorMailSupport : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORMAILSUPPORT_IID)
33 :
34 : /* void pasteAsQuotation (in long aSelectionType); */
35 : NS_IMETHOD PasteAsQuotation(int32_t aSelectionType) = 0;
36 :
37 : /* nsIDOMNode insertAsQuotation (in AString aQuotedText); */
38 : NS_IMETHOD InsertAsQuotation(const nsAString & aQuotedText, nsIDOMNode * *_retval) = 0;
39 :
40 : /* void insertTextWithQuotations (in DOMString aStringToInsert); */
41 : NS_IMETHOD InsertTextWithQuotations(const nsAString & aStringToInsert) = 0;
42 :
43 : /* void pasteAsCitedQuotation (in AString aCitation, in long aSelectionType); */
44 : NS_IMETHOD PasteAsCitedQuotation(const nsAString & aCitation, int32_t aSelectionType) = 0;
45 :
46 : /* nsIDOMNode insertAsCitedQuotation (in AString aQuotedText, in AString aCitation, in boolean aInsertHTML); */
47 : NS_IMETHOD InsertAsCitedQuotation(const nsAString & aQuotedText, const nsAString & aCitation, bool aInsertHTML, nsIDOMNode * *_retval) = 0;
48 :
49 : /* void rewrap (in boolean aRespectNewlines); */
50 : NS_IMETHOD Rewrap(bool aRespectNewlines) = 0;
51 :
52 : /* void stripCites (); */
53 : NS_IMETHOD StripCites(void) = 0;
54 :
55 : /* nsIArray getEmbeddedObjects (); */
56 : NS_IMETHOD GetEmbeddedObjects(nsIArray * *_retval) = 0;
57 :
58 : };
59 :
60 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorMailSupport, NS_IEDITORMAILSUPPORT_IID)
61 :
62 : /* Use this macro when declaring classes that implement this interface. */
63 : #define NS_DECL_NSIEDITORMAILSUPPORT \
64 : NS_IMETHOD PasteAsQuotation(int32_t aSelectionType) override; \
65 : NS_IMETHOD InsertAsQuotation(const nsAString & aQuotedText, nsIDOMNode * *_retval) override; \
66 : NS_IMETHOD InsertTextWithQuotations(const nsAString & aStringToInsert) override; \
67 : NS_IMETHOD PasteAsCitedQuotation(const nsAString & aCitation, int32_t aSelectionType) override; \
68 : NS_IMETHOD InsertAsCitedQuotation(const nsAString & aQuotedText, const nsAString & aCitation, bool aInsertHTML, nsIDOMNode * *_retval) override; \
69 : NS_IMETHOD Rewrap(bool aRespectNewlines) override; \
70 : NS_IMETHOD StripCites(void) override; \
71 : NS_IMETHOD GetEmbeddedObjects(nsIArray * *_retval) override;
72 :
73 : /* Use this macro when declaring the members of this interface when the
74 : class doesn't implement the interface. This is useful for forwarding. */
75 : #define NS_DECL_NON_VIRTUAL_NSIEDITORMAILSUPPORT \
76 : nsresult PasteAsQuotation(int32_t aSelectionType); \
77 : nsresult InsertAsQuotation(const nsAString & aQuotedText, nsIDOMNode * *_retval); \
78 : nsresult InsertTextWithQuotations(const nsAString & aStringToInsert); \
79 : nsresult PasteAsCitedQuotation(const nsAString & aCitation, int32_t aSelectionType); \
80 : nsresult InsertAsCitedQuotation(const nsAString & aQuotedText, const nsAString & aCitation, bool aInsertHTML, nsIDOMNode * *_retval); \
81 : nsresult Rewrap(bool aRespectNewlines); \
82 : nsresult StripCites(void); \
83 : nsresult GetEmbeddedObjects(nsIArray * *_retval);
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
86 : #define NS_FORWARD_NSIEDITORMAILSUPPORT(_to) \
87 : NS_IMETHOD PasteAsQuotation(int32_t aSelectionType) override { return _to PasteAsQuotation(aSelectionType); } \
88 : NS_IMETHOD InsertAsQuotation(const nsAString & aQuotedText, nsIDOMNode * *_retval) override { return _to InsertAsQuotation(aQuotedText, _retval); } \
89 : NS_IMETHOD InsertTextWithQuotations(const nsAString & aStringToInsert) override { return _to InsertTextWithQuotations(aStringToInsert); } \
90 : NS_IMETHOD PasteAsCitedQuotation(const nsAString & aCitation, int32_t aSelectionType) override { return _to PasteAsCitedQuotation(aCitation, aSelectionType); } \
91 : NS_IMETHOD InsertAsCitedQuotation(const nsAString & aQuotedText, const nsAString & aCitation, bool aInsertHTML, nsIDOMNode * *_retval) override { return _to InsertAsCitedQuotation(aQuotedText, aCitation, aInsertHTML, _retval); } \
92 : NS_IMETHOD Rewrap(bool aRespectNewlines) override { return _to Rewrap(aRespectNewlines); } \
93 : NS_IMETHOD StripCites(void) override { return _to StripCites(); } \
94 : NS_IMETHOD GetEmbeddedObjects(nsIArray * *_retval) override { return _to GetEmbeddedObjects(_retval); }
95 :
96 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
97 : #define NS_FORWARD_SAFE_NSIEDITORMAILSUPPORT(_to) \
98 : NS_IMETHOD PasteAsQuotation(int32_t aSelectionType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteAsQuotation(aSelectionType); } \
99 : NS_IMETHOD InsertAsQuotation(const nsAString & aQuotedText, nsIDOMNode * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertAsQuotation(aQuotedText, _retval); } \
100 : NS_IMETHOD InsertTextWithQuotations(const nsAString & aStringToInsert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertTextWithQuotations(aStringToInsert); } \
101 : NS_IMETHOD PasteAsCitedQuotation(const nsAString & aCitation, int32_t aSelectionType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteAsCitedQuotation(aCitation, aSelectionType); } \
102 : NS_IMETHOD InsertAsCitedQuotation(const nsAString & aQuotedText, const nsAString & aCitation, bool aInsertHTML, nsIDOMNode * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertAsCitedQuotation(aQuotedText, aCitation, aInsertHTML, _retval); } \
103 : NS_IMETHOD Rewrap(bool aRespectNewlines) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Rewrap(aRespectNewlines); } \
104 : NS_IMETHOD StripCites(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StripCites(); } \
105 : NS_IMETHOD GetEmbeddedObjects(nsIArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmbeddedObjects(_retval); }
106 :
107 : #if 0
108 : /* Use the code below as a template for the implementation class for this interface. */
109 :
110 : /* Header file */
111 : class nsEditorMailSupport : public nsIEditorMailSupport
112 : {
113 : public:
114 : NS_DECL_ISUPPORTS
115 : NS_DECL_NSIEDITORMAILSUPPORT
116 :
117 : nsEditorMailSupport();
118 :
119 : private:
120 : ~nsEditorMailSupport();
121 :
122 : protected:
123 : /* additional members */
124 : };
125 :
126 : /* Implementation file */
127 : NS_IMPL_ISUPPORTS(nsEditorMailSupport, nsIEditorMailSupport)
128 :
129 : nsEditorMailSupport::nsEditorMailSupport()
130 : {
131 : /* member initializers and constructor code */
132 : }
133 :
134 : nsEditorMailSupport::~nsEditorMailSupport()
135 : {
136 : /* destructor code */
137 : }
138 :
139 : /* void pasteAsQuotation (in long aSelectionType); */
140 : NS_IMETHODIMP nsEditorMailSupport::PasteAsQuotation(int32_t aSelectionType)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* nsIDOMNode insertAsQuotation (in AString aQuotedText); */
146 : NS_IMETHODIMP nsEditorMailSupport::InsertAsQuotation(const nsAString & aQuotedText, nsIDOMNode * *_retval)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* void insertTextWithQuotations (in DOMString aStringToInsert); */
152 : NS_IMETHODIMP nsEditorMailSupport::InsertTextWithQuotations(const nsAString & aStringToInsert)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* void pasteAsCitedQuotation (in AString aCitation, in long aSelectionType); */
158 : NS_IMETHODIMP nsEditorMailSupport::PasteAsCitedQuotation(const nsAString & aCitation, int32_t aSelectionType)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* nsIDOMNode insertAsCitedQuotation (in AString aQuotedText, in AString aCitation, in boolean aInsertHTML); */
164 : NS_IMETHODIMP nsEditorMailSupport::InsertAsCitedQuotation(const nsAString & aQuotedText, const nsAString & aCitation, bool aInsertHTML, nsIDOMNode * *_retval)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* void rewrap (in boolean aRespectNewlines); */
170 : NS_IMETHODIMP nsEditorMailSupport::Rewrap(bool aRespectNewlines)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* void stripCites (); */
176 : NS_IMETHODIMP nsEditorMailSupport::StripCites()
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* nsIArray getEmbeddedObjects (); */
182 : NS_IMETHODIMP nsEditorMailSupport::GetEmbeddedObjects(nsIArray * *_retval)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* End of implementation class template. */
188 : #endif
189 :
190 :
191 : #endif /* __gen_nsIEditorMailSupport_h__ */
|