Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIHTMLEditor.idl
3 : */
4 :
5 : #ifndef __gen_nsIHTMLEditor_h__
6 : #define __gen_nsIHTMLEditor_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 : class nsIAtom; /* forward declaration */
22 :
23 : class nsIContent; /* forward declaration */
24 :
25 : class nsIArray; /* forward declaration */
26 :
27 : class nsISelection; /* forward declaration */
28 :
29 : class nsIContentFilter; /* forward declaration */
30 :
31 : namespace mozilla {
32 : namespace dom {
33 : class Element;
34 : }
35 : }
36 :
37 : /* starting interface: nsIHTMLEditor */
38 : #define NS_IHTMLEDITOR_IID_STR "87ee993e-985f-4a43-a974-0d9512da2fb0"
39 :
40 : #define NS_IHTMLEDITOR_IID \
41 : {0x87ee993e, 0x985f, 0x4a43, \
42 : { 0xa9, 0x74, 0x0d, 0x95, 0x12, 0xda, 0x2f, 0xb0 }}
43 :
44 0 : class nsIHTMLEditor : public nsISupports {
45 : public:
46 :
47 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTMLEDITOR_IID)
48 :
49 : typedef short EAlignment;
50 : enum {
51 : eLeft = 0,
52 : eCenter = 1,
53 : eRight = 2,
54 : eJustify = 3
55 : };
56 :
57 : /* void addDefaultProperty (in nsIAtom aProperty, in AString aAttribute, in AString aValue); */
58 : NS_IMETHOD AddDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) = 0;
59 :
60 : /* void removeDefaultProperty (in nsIAtom aProperty, in AString aAttribute, in AString aValue); */
61 : NS_IMETHOD RemoveDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) = 0;
62 :
63 : /* void removeAllDefaultProperties (); */
64 : NS_IMETHOD RemoveAllDefaultProperties(void) = 0;
65 :
66 : /* void setInlineProperty (in nsIAtom aProperty, in AString aAttribute, in AString aValue); */
67 : NS_IMETHOD SetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) = 0;
68 :
69 : /* void getInlineProperty (in nsIAtom aProperty, in AString aAttribute, in AString aValue, out boolean aFirst, out boolean aAny, out boolean aAll); */
70 : NS_IMETHOD GetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll) = 0;
71 :
72 : /* AString getInlinePropertyWithAttrValue (in nsIAtom aProperty, in AString aAttribute, in AString aValue, out boolean aFirst, out boolean aAny, out boolean aAll); */
73 : NS_IMETHOD GetInlinePropertyWithAttrValue(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString & _retval) = 0;
74 :
75 : /* void removeAllInlineProperties (); */
76 : NS_IMETHOD RemoveAllInlineProperties(void) = 0;
77 :
78 : /* void removeInlineProperty (in nsIAtom aProperty, in AString aAttribute); */
79 : NS_IMETHOD RemoveInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute) = 0;
80 :
81 : /* void increaseFontSize (); */
82 : NS_IMETHOD IncreaseFontSize(void) = 0;
83 :
84 : /* void decreaseFontSize (); */
85 : NS_IMETHOD DecreaseFontSize(void) = 0;
86 :
87 : /* boolean nodeIsBlock (in nsIDOMNode node); */
88 : NS_IMETHOD NodeIsBlock(nsIDOMNode *node, bool *_retval) = 0;
89 :
90 : /* void insertHTML (in AString aInputString); */
91 : NS_IMETHOD InsertHTML(const nsAString & aInputString) = 0;
92 :
93 : /* void pasteNoFormatting (in long aSelectionType); */
94 : NS_IMETHOD PasteNoFormatting(int32_t aSelectionType) = 0;
95 :
96 : /* void rebuildDocumentFromSource (in AString aSourceString); */
97 : NS_IMETHOD RebuildDocumentFromSource(const nsAString & aSourceString) = 0;
98 :
99 : /* void insertHTMLWithContext (in AString aInputString, in AString aContextStr, in AString aInfoStr, in AString aFlavor, in nsIDOMDocument aSourceDoc, in nsIDOMNode aDestinationNode, in long aDestinationOffset, in boolean aDeleteSelection); */
100 : NS_IMETHOD InsertHTMLWithContext(const nsAString & aInputString, const nsAString & aContextStr, const nsAString & aInfoStr, const nsAString & aFlavor, nsIDOMDocument *aSourceDoc, nsIDOMNode *aDestinationNode, int32_t aDestinationOffset, bool aDeleteSelection) = 0;
101 :
102 : /* void insertElementAtSelection (in nsIDOMElement aElement, in boolean aDeleteSelection); */
103 : NS_IMETHOD InsertElementAtSelection(nsIDOMElement *aElement, bool aDeleteSelection) = 0;
104 :
105 : /* void updateBaseURL (); */
106 : NS_IMETHOD UpdateBaseURL(void) = 0;
107 :
108 : /* void selectElement (in nsIDOMElement aElement); */
109 : NS_IMETHOD SelectElement(nsIDOMElement *aElement) = 0;
110 :
111 : /* void setCaretAfterElement (in nsIDOMElement aElement); */
112 : NS_IMETHOD SetCaretAfterElement(nsIDOMElement *aElement) = 0;
113 :
114 : /* void setParagraphFormat (in AString aParagraphFormat); */
115 : NS_IMETHOD SetParagraphFormat(const nsAString & aParagraphFormat) = 0;
116 :
117 : /* AString getParagraphState (out boolean aMixed); */
118 : NS_IMETHOD GetParagraphState(bool *aMixed, nsAString & _retval) = 0;
119 :
120 : /* AString getFontFaceState (out boolean aMixed); */
121 : NS_IMETHOD GetFontFaceState(bool *aMixed, nsAString & _retval) = 0;
122 :
123 : /* AString getFontColorState (out boolean aMixed); */
124 : NS_IMETHOD GetFontColorState(bool *aMixed, nsAString & _retval) = 0;
125 :
126 : /* AString getBackgroundColorState (out boolean aMixed); */
127 : NS_IMETHOD GetBackgroundColorState(bool *aMixed, nsAString & _retval) = 0;
128 :
129 : /* AString getHighlightColorState (out boolean aMixed); */
130 : NS_IMETHOD GetHighlightColorState(bool *aMixed, nsAString & _retval) = 0;
131 :
132 : /* void getListState (out boolean aMixed, out boolean aOL, out boolean aUL, out boolean aDL); */
133 : NS_IMETHOD GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL) = 0;
134 :
135 : /* void getListItemState (out boolean aMixed, out boolean aLI, out boolean aDT, out boolean aDD); */
136 : NS_IMETHOD GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD) = 0;
137 :
138 : /* void getAlignment (out boolean aMixed, out short aAlign); */
139 : NS_IMETHOD GetAlignment(bool *aMixed, int16_t *aAlign) = 0;
140 :
141 : /* void getIndentState (out boolean aCanIndent, out boolean aCanOutdent); */
142 : NS_IMETHOD GetIndentState(bool *aCanIndent, bool *aCanOutdent) = 0;
143 :
144 : /* void makeOrChangeList (in AString aListType, in boolean entireList, in AString aBulletType); */
145 : NS_IMETHOD MakeOrChangeList(const nsAString & aListType, bool entireList, const nsAString & aBulletType) = 0;
146 :
147 : /* void removeList (in AString aListType); */
148 : NS_IMETHOD RemoveList(const nsAString & aListType) = 0;
149 :
150 : /* void indent (in AString aIndent); */
151 : NS_IMETHOD Indent(const nsAString & aIndent) = 0;
152 :
153 : /* void align (in AString aAlign); */
154 : NS_IMETHOD Align(const nsAString & aAlign) = 0;
155 :
156 : /* nsIDOMElement getElementOrParentByTagName (in AString aTagName, in nsIDOMNode aNode); */
157 : NS_IMETHOD GetElementOrParentByTagName(const nsAString & aTagName, nsIDOMNode *aNode, nsIDOMElement * *_retval) = 0;
158 :
159 : /* nsIDOMElement getSelectedElement (in AString aTagName); */
160 : NS_IMETHOD GetSelectedElement(const nsAString & aTagName, nsIDOMElement * *_retval) = 0;
161 :
162 : /* AString getHeadContentsAsHTML (); */
163 : NS_IMETHOD GetHeadContentsAsHTML(nsAString & _retval) = 0;
164 :
165 : /* void replaceHeadContentsWithHTML (in AString aSourceToInsert); */
166 : NS_IMETHOD ReplaceHeadContentsWithHTML(const nsAString & aSourceToInsert) = 0;
167 :
168 : /* nsIDOMElement createElementWithDefaults (in AString aTagName); */
169 : NS_IMETHOD CreateElementWithDefaults(const nsAString & aTagName, nsIDOMElement * *_retval) = 0;
170 :
171 : /* void insertLinkAroundSelection (in nsIDOMElement aAnchorElement); */
172 : NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement *aAnchorElement) = 0;
173 :
174 : /* void setBackgroundColor (in AString aColor); */
175 : NS_IMETHOD SetBackgroundColor(const nsAString & aColor) = 0;
176 :
177 : /* void setBodyAttribute (in AString aAttr, in AString aValue); */
178 : NS_IMETHOD SetBodyAttribute(const nsAString & aAttr, const nsAString & aValue) = 0;
179 :
180 : /* nsIArray getLinkedObjects (); */
181 : NS_IMETHOD GetLinkedObjects(nsIArray * *_retval) = 0;
182 :
183 : /* attribute boolean isCSSEnabled; */
184 : NS_IMETHOD GetIsCSSEnabled(bool *aIsCSSEnabled) = 0;
185 : NS_IMETHOD SetIsCSSEnabled(bool aIsCSSEnabled) = 0;
186 :
187 : /* void addInsertionListener (in nsIContentFilter inFilter); */
188 : NS_IMETHOD AddInsertionListener(nsIContentFilter *inFilter) = 0;
189 :
190 : /* void removeInsertionListener (in nsIContentFilter inFilter); */
191 : NS_IMETHOD RemoveInsertionListener(nsIContentFilter *inFilter) = 0;
192 :
193 : /* nsIDOMElement getSelectionContainer (); */
194 : NS_IMETHOD GetSelectionContainer(nsIDOMElement * *_retval) = 0;
195 :
196 : /* void checkSelectionStateForAnonymousButtons (in nsISelection aSelection); */
197 : NS_IMETHOD CheckSelectionStateForAnonymousButtons(nsISelection *aSelection) = 0;
198 :
199 : /* boolean isAnonymousElement (in nsIDOMElement aElement); */
200 : NS_IMETHOD IsAnonymousElement(nsIDOMElement *aElement, bool *_retval) = 0;
201 :
202 : /* attribute boolean returnInParagraphCreatesNewParagraph; */
203 : NS_IMETHOD GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph) = 0;
204 : NS_IMETHOD SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph) = 0;
205 :
206 : /* [noscript,notxpcom] Element GetActiveEditingHost (); */
207 : NS_IMETHOD_(mozilla::dom::Element *) GetActiveEditingHost(void) = 0;
208 :
209 : };
210 :
211 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHTMLEditor, NS_IHTMLEDITOR_IID)
212 :
213 : /* Use this macro when declaring classes that implement this interface. */
214 : #define NS_DECL_NSIHTMLEDITOR \
215 : NS_IMETHOD AddDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override; \
216 : NS_IMETHOD RemoveDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override; \
217 : NS_IMETHOD RemoveAllDefaultProperties(void) override; \
218 : NS_IMETHOD SetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override; \
219 : NS_IMETHOD GetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll) override; \
220 : NS_IMETHOD GetInlinePropertyWithAttrValue(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString & _retval) override; \
221 : NS_IMETHOD RemoveAllInlineProperties(void) override; \
222 : NS_IMETHOD RemoveInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute) override; \
223 : NS_IMETHOD IncreaseFontSize(void) override; \
224 : NS_IMETHOD DecreaseFontSize(void) override; \
225 : NS_IMETHOD NodeIsBlock(nsIDOMNode *node, bool *_retval) override; \
226 : NS_IMETHOD InsertHTML(const nsAString & aInputString) override; \
227 : NS_IMETHOD PasteNoFormatting(int32_t aSelectionType) override; \
228 : NS_IMETHOD RebuildDocumentFromSource(const nsAString & aSourceString) override; \
229 : NS_IMETHOD InsertHTMLWithContext(const nsAString & aInputString, const nsAString & aContextStr, const nsAString & aInfoStr, const nsAString & aFlavor, nsIDOMDocument *aSourceDoc, nsIDOMNode *aDestinationNode, int32_t aDestinationOffset, bool aDeleteSelection) override; \
230 : NS_IMETHOD InsertElementAtSelection(nsIDOMElement *aElement, bool aDeleteSelection) override; \
231 : NS_IMETHOD UpdateBaseURL(void) override; \
232 : NS_IMETHOD SelectElement(nsIDOMElement *aElement) override; \
233 : NS_IMETHOD SetCaretAfterElement(nsIDOMElement *aElement) override; \
234 : NS_IMETHOD SetParagraphFormat(const nsAString & aParagraphFormat) override; \
235 : NS_IMETHOD GetParagraphState(bool *aMixed, nsAString & _retval) override; \
236 : NS_IMETHOD GetFontFaceState(bool *aMixed, nsAString & _retval) override; \
237 : NS_IMETHOD GetFontColorState(bool *aMixed, nsAString & _retval) override; \
238 : NS_IMETHOD GetBackgroundColorState(bool *aMixed, nsAString & _retval) override; \
239 : NS_IMETHOD GetHighlightColorState(bool *aMixed, nsAString & _retval) override; \
240 : NS_IMETHOD GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL) override; \
241 : NS_IMETHOD GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD) override; \
242 : NS_IMETHOD GetAlignment(bool *aMixed, int16_t *aAlign) override; \
243 : NS_IMETHOD GetIndentState(bool *aCanIndent, bool *aCanOutdent) override; \
244 : NS_IMETHOD MakeOrChangeList(const nsAString & aListType, bool entireList, const nsAString & aBulletType) override; \
245 : NS_IMETHOD RemoveList(const nsAString & aListType) override; \
246 : NS_IMETHOD Indent(const nsAString & aIndent) override; \
247 : NS_IMETHOD Align(const nsAString & aAlign) override; \
248 : NS_IMETHOD GetElementOrParentByTagName(const nsAString & aTagName, nsIDOMNode *aNode, nsIDOMElement * *_retval) override; \
249 : NS_IMETHOD GetSelectedElement(const nsAString & aTagName, nsIDOMElement * *_retval) override; \
250 : NS_IMETHOD GetHeadContentsAsHTML(nsAString & _retval) override; \
251 : NS_IMETHOD ReplaceHeadContentsWithHTML(const nsAString & aSourceToInsert) override; \
252 : NS_IMETHOD CreateElementWithDefaults(const nsAString & aTagName, nsIDOMElement * *_retval) override; \
253 : NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement *aAnchorElement) override; \
254 : NS_IMETHOD SetBackgroundColor(const nsAString & aColor) override; \
255 : NS_IMETHOD SetBodyAttribute(const nsAString & aAttr, const nsAString & aValue) override; \
256 : NS_IMETHOD GetLinkedObjects(nsIArray * *_retval) override; \
257 : NS_IMETHOD GetIsCSSEnabled(bool *aIsCSSEnabled) override; \
258 : NS_IMETHOD SetIsCSSEnabled(bool aIsCSSEnabled) override; \
259 : NS_IMETHOD AddInsertionListener(nsIContentFilter *inFilter) override; \
260 : NS_IMETHOD RemoveInsertionListener(nsIContentFilter *inFilter) override; \
261 : NS_IMETHOD GetSelectionContainer(nsIDOMElement * *_retval) override; \
262 : NS_IMETHOD CheckSelectionStateForAnonymousButtons(nsISelection *aSelection) override; \
263 : NS_IMETHOD IsAnonymousElement(nsIDOMElement *aElement, bool *_retval) override; \
264 : NS_IMETHOD GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph) override; \
265 : NS_IMETHOD SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph) override; \
266 : NS_IMETHOD_(mozilla::dom::Element *) GetActiveEditingHost(void) override;
267 :
268 : /* Use this macro when declaring the members of this interface when the
269 : class doesn't implement the interface. This is useful for forwarding. */
270 : #define NS_DECL_NON_VIRTUAL_NSIHTMLEDITOR \
271 : nsresult AddDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue); \
272 : nsresult RemoveDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue); \
273 : nsresult RemoveAllDefaultProperties(void); \
274 : nsresult SetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue); \
275 : nsresult GetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll); \
276 : nsresult GetInlinePropertyWithAttrValue(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString & _retval); \
277 : nsresult RemoveAllInlineProperties(void); \
278 : nsresult RemoveInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute); \
279 : nsresult IncreaseFontSize(void); \
280 : nsresult DecreaseFontSize(void); \
281 : nsresult NodeIsBlock(nsIDOMNode *node, bool *_retval); \
282 : nsresult InsertHTML(const nsAString & aInputString); \
283 : nsresult PasteNoFormatting(int32_t aSelectionType); \
284 : nsresult RebuildDocumentFromSource(const nsAString & aSourceString); \
285 : nsresult InsertHTMLWithContext(const nsAString & aInputString, const nsAString & aContextStr, const nsAString & aInfoStr, const nsAString & aFlavor, nsIDOMDocument *aSourceDoc, nsIDOMNode *aDestinationNode, int32_t aDestinationOffset, bool aDeleteSelection); \
286 : nsresult InsertElementAtSelection(nsIDOMElement *aElement, bool aDeleteSelection); \
287 : nsresult UpdateBaseURL(void); \
288 : nsresult SelectElement(nsIDOMElement *aElement); \
289 : nsresult SetCaretAfterElement(nsIDOMElement *aElement); \
290 : nsresult SetParagraphFormat(const nsAString & aParagraphFormat); \
291 : nsresult GetParagraphState(bool *aMixed, nsAString & _retval); \
292 : nsresult GetFontFaceState(bool *aMixed, nsAString & _retval); \
293 : nsresult GetFontColorState(bool *aMixed, nsAString & _retval); \
294 : nsresult GetBackgroundColorState(bool *aMixed, nsAString & _retval); \
295 : nsresult GetHighlightColorState(bool *aMixed, nsAString & _retval); \
296 : nsresult GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL); \
297 : nsresult GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD); \
298 : nsresult GetAlignment(bool *aMixed, int16_t *aAlign); \
299 : nsresult GetIndentState(bool *aCanIndent, bool *aCanOutdent); \
300 : nsresult MakeOrChangeList(const nsAString & aListType, bool entireList, const nsAString & aBulletType); \
301 : nsresult RemoveList(const nsAString & aListType); \
302 : nsresult Indent(const nsAString & aIndent); \
303 : nsresult Align(const nsAString & aAlign); \
304 : nsresult GetElementOrParentByTagName(const nsAString & aTagName, nsIDOMNode *aNode, nsIDOMElement * *_retval); \
305 : nsresult GetSelectedElement(const nsAString & aTagName, nsIDOMElement * *_retval); \
306 : nsresult GetHeadContentsAsHTML(nsAString & _retval); \
307 : nsresult ReplaceHeadContentsWithHTML(const nsAString & aSourceToInsert); \
308 : nsresult CreateElementWithDefaults(const nsAString & aTagName, nsIDOMElement * *_retval); \
309 : nsresult InsertLinkAroundSelection(nsIDOMElement *aAnchorElement); \
310 : nsresult SetBackgroundColor(const nsAString & aColor); \
311 : nsresult SetBodyAttribute(const nsAString & aAttr, const nsAString & aValue); \
312 : nsresult GetLinkedObjects(nsIArray * *_retval); \
313 : nsresult GetIsCSSEnabled(bool *aIsCSSEnabled); \
314 : nsresult SetIsCSSEnabled(bool aIsCSSEnabled); \
315 : nsresult AddInsertionListener(nsIContentFilter *inFilter); \
316 : nsresult RemoveInsertionListener(nsIContentFilter *inFilter); \
317 : nsresult GetSelectionContainer(nsIDOMElement * *_retval); \
318 : nsresult CheckSelectionStateForAnonymousButtons(nsISelection *aSelection); \
319 : nsresult IsAnonymousElement(nsIDOMElement *aElement, bool *_retval); \
320 : nsresult GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph); \
321 : nsresult SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph); \
322 : nsresult_(mozilla::dom::Element *) GetActiveEditingHost(void);
323 :
324 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
325 : #define NS_FORWARD_NSIHTMLEDITOR(_to) \
326 : NS_IMETHOD AddDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override { return _to AddDefaultProperty(aProperty, aAttribute, aValue); } \
327 : NS_IMETHOD RemoveDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override { return _to RemoveDefaultProperty(aProperty, aAttribute, aValue); } \
328 : NS_IMETHOD RemoveAllDefaultProperties(void) override { return _to RemoveAllDefaultProperties(); } \
329 : NS_IMETHOD SetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override { return _to SetInlineProperty(aProperty, aAttribute, aValue); } \
330 : NS_IMETHOD GetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll) override { return _to GetInlineProperty(aProperty, aAttribute, aValue, aFirst, aAny, aAll); } \
331 : NS_IMETHOD GetInlinePropertyWithAttrValue(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString & _retval) override { return _to GetInlinePropertyWithAttrValue(aProperty, aAttribute, aValue, aFirst, aAny, aAll, _retval); } \
332 : NS_IMETHOD RemoveAllInlineProperties(void) override { return _to RemoveAllInlineProperties(); } \
333 : NS_IMETHOD RemoveInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute) override { return _to RemoveInlineProperty(aProperty, aAttribute); } \
334 : NS_IMETHOD IncreaseFontSize(void) override { return _to IncreaseFontSize(); } \
335 : NS_IMETHOD DecreaseFontSize(void) override { return _to DecreaseFontSize(); } \
336 : NS_IMETHOD NodeIsBlock(nsIDOMNode *node, bool *_retval) override { return _to NodeIsBlock(node, _retval); } \
337 : NS_IMETHOD InsertHTML(const nsAString & aInputString) override { return _to InsertHTML(aInputString); } \
338 : NS_IMETHOD PasteNoFormatting(int32_t aSelectionType) override { return _to PasteNoFormatting(aSelectionType); } \
339 : NS_IMETHOD RebuildDocumentFromSource(const nsAString & aSourceString) override { return _to RebuildDocumentFromSource(aSourceString); } \
340 : NS_IMETHOD InsertHTMLWithContext(const nsAString & aInputString, const nsAString & aContextStr, const nsAString & aInfoStr, const nsAString & aFlavor, nsIDOMDocument *aSourceDoc, nsIDOMNode *aDestinationNode, int32_t aDestinationOffset, bool aDeleteSelection) override { return _to InsertHTMLWithContext(aInputString, aContextStr, aInfoStr, aFlavor, aSourceDoc, aDestinationNode, aDestinationOffset, aDeleteSelection); } \
341 : NS_IMETHOD InsertElementAtSelection(nsIDOMElement *aElement, bool aDeleteSelection) override { return _to InsertElementAtSelection(aElement, aDeleteSelection); } \
342 : NS_IMETHOD UpdateBaseURL(void) override { return _to UpdateBaseURL(); } \
343 : NS_IMETHOD SelectElement(nsIDOMElement *aElement) override { return _to SelectElement(aElement); } \
344 : NS_IMETHOD SetCaretAfterElement(nsIDOMElement *aElement) override { return _to SetCaretAfterElement(aElement); } \
345 : NS_IMETHOD SetParagraphFormat(const nsAString & aParagraphFormat) override { return _to SetParagraphFormat(aParagraphFormat); } \
346 : NS_IMETHOD GetParagraphState(bool *aMixed, nsAString & _retval) override { return _to GetParagraphState(aMixed, _retval); } \
347 : NS_IMETHOD GetFontFaceState(bool *aMixed, nsAString & _retval) override { return _to GetFontFaceState(aMixed, _retval); } \
348 : NS_IMETHOD GetFontColorState(bool *aMixed, nsAString & _retval) override { return _to GetFontColorState(aMixed, _retval); } \
349 : NS_IMETHOD GetBackgroundColorState(bool *aMixed, nsAString & _retval) override { return _to GetBackgroundColorState(aMixed, _retval); } \
350 : NS_IMETHOD GetHighlightColorState(bool *aMixed, nsAString & _retval) override { return _to GetHighlightColorState(aMixed, _retval); } \
351 : NS_IMETHOD GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL) override { return _to GetListState(aMixed, aOL, aUL, aDL); } \
352 : NS_IMETHOD GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD) override { return _to GetListItemState(aMixed, aLI, aDT, aDD); } \
353 : NS_IMETHOD GetAlignment(bool *aMixed, int16_t *aAlign) override { return _to GetAlignment(aMixed, aAlign); } \
354 : NS_IMETHOD GetIndentState(bool *aCanIndent, bool *aCanOutdent) override { return _to GetIndentState(aCanIndent, aCanOutdent); } \
355 : NS_IMETHOD MakeOrChangeList(const nsAString & aListType, bool entireList, const nsAString & aBulletType) override { return _to MakeOrChangeList(aListType, entireList, aBulletType); } \
356 : NS_IMETHOD RemoveList(const nsAString & aListType) override { return _to RemoveList(aListType); } \
357 : NS_IMETHOD Indent(const nsAString & aIndent) override { return _to Indent(aIndent); } \
358 : NS_IMETHOD Align(const nsAString & aAlign) override { return _to Align(aAlign); } \
359 : NS_IMETHOD GetElementOrParentByTagName(const nsAString & aTagName, nsIDOMNode *aNode, nsIDOMElement * *_retval) override { return _to GetElementOrParentByTagName(aTagName, aNode, _retval); } \
360 : NS_IMETHOD GetSelectedElement(const nsAString & aTagName, nsIDOMElement * *_retval) override { return _to GetSelectedElement(aTagName, _retval); } \
361 : NS_IMETHOD GetHeadContentsAsHTML(nsAString & _retval) override { return _to GetHeadContentsAsHTML(_retval); } \
362 : NS_IMETHOD ReplaceHeadContentsWithHTML(const nsAString & aSourceToInsert) override { return _to ReplaceHeadContentsWithHTML(aSourceToInsert); } \
363 : NS_IMETHOD CreateElementWithDefaults(const nsAString & aTagName, nsIDOMElement * *_retval) override { return _to CreateElementWithDefaults(aTagName, _retval); } \
364 : NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement *aAnchorElement) override { return _to InsertLinkAroundSelection(aAnchorElement); } \
365 : NS_IMETHOD SetBackgroundColor(const nsAString & aColor) override { return _to SetBackgroundColor(aColor); } \
366 : NS_IMETHOD SetBodyAttribute(const nsAString & aAttr, const nsAString & aValue) override { return _to SetBodyAttribute(aAttr, aValue); } \
367 : NS_IMETHOD GetLinkedObjects(nsIArray * *_retval) override { return _to GetLinkedObjects(_retval); } \
368 : NS_IMETHOD GetIsCSSEnabled(bool *aIsCSSEnabled) override { return _to GetIsCSSEnabled(aIsCSSEnabled); } \
369 : NS_IMETHOD SetIsCSSEnabled(bool aIsCSSEnabled) override { return _to SetIsCSSEnabled(aIsCSSEnabled); } \
370 : NS_IMETHOD AddInsertionListener(nsIContentFilter *inFilter) override { return _to AddInsertionListener(inFilter); } \
371 : NS_IMETHOD RemoveInsertionListener(nsIContentFilter *inFilter) override { return _to RemoveInsertionListener(inFilter); } \
372 : NS_IMETHOD GetSelectionContainer(nsIDOMElement * *_retval) override { return _to GetSelectionContainer(_retval); } \
373 : NS_IMETHOD CheckSelectionStateForAnonymousButtons(nsISelection *aSelection) override { return _to CheckSelectionStateForAnonymousButtons(aSelection); } \
374 : NS_IMETHOD IsAnonymousElement(nsIDOMElement *aElement, bool *_retval) override { return _to IsAnonymousElement(aElement, _retval); } \
375 : NS_IMETHOD GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph) override { return _to GetReturnInParagraphCreatesNewParagraph(aReturnInParagraphCreatesNewParagraph); } \
376 : NS_IMETHOD SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph) override { return _to SetReturnInParagraphCreatesNewParagraph(aReturnInParagraphCreatesNewParagraph); } \
377 : NS_IMETHOD_(mozilla::dom::Element *) GetActiveEditingHost(void) override { return _to GetActiveEditingHost(); }
378 :
379 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
380 : #define NS_FORWARD_SAFE_NSIHTMLEDITOR(_to) \
381 : NS_IMETHOD AddDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDefaultProperty(aProperty, aAttribute, aValue); } \
382 : NS_IMETHOD RemoveDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDefaultProperty(aProperty, aAttribute, aValue); } \
383 : NS_IMETHOD RemoveAllDefaultProperties(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllDefaultProperties(); } \
384 : NS_IMETHOD SetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInlineProperty(aProperty, aAttribute, aValue); } \
385 : NS_IMETHOD GetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInlineProperty(aProperty, aAttribute, aValue, aFirst, aAny, aAll); } \
386 : NS_IMETHOD GetInlinePropertyWithAttrValue(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInlinePropertyWithAttrValue(aProperty, aAttribute, aValue, aFirst, aAny, aAll, _retval); } \
387 : NS_IMETHOD RemoveAllInlineProperties(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllInlineProperties(); } \
388 : NS_IMETHOD RemoveInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveInlineProperty(aProperty, aAttribute); } \
389 : NS_IMETHOD IncreaseFontSize(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IncreaseFontSize(); } \
390 : NS_IMETHOD DecreaseFontSize(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DecreaseFontSize(); } \
391 : NS_IMETHOD NodeIsBlock(nsIDOMNode *node, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeIsBlock(node, _retval); } \
392 : NS_IMETHOD InsertHTML(const nsAString & aInputString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertHTML(aInputString); } \
393 : NS_IMETHOD PasteNoFormatting(int32_t aSelectionType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteNoFormatting(aSelectionType); } \
394 : NS_IMETHOD RebuildDocumentFromSource(const nsAString & aSourceString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RebuildDocumentFromSource(aSourceString); } \
395 : NS_IMETHOD InsertHTMLWithContext(const nsAString & aInputString, const nsAString & aContextStr, const nsAString & aInfoStr, const nsAString & aFlavor, nsIDOMDocument *aSourceDoc, nsIDOMNode *aDestinationNode, int32_t aDestinationOffset, bool aDeleteSelection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertHTMLWithContext(aInputString, aContextStr, aInfoStr, aFlavor, aSourceDoc, aDestinationNode, aDestinationOffset, aDeleteSelection); } \
396 : NS_IMETHOD InsertElementAtSelection(nsIDOMElement *aElement, bool aDeleteSelection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementAtSelection(aElement, aDeleteSelection); } \
397 : NS_IMETHOD UpdateBaseURL(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateBaseURL(); } \
398 : NS_IMETHOD SelectElement(nsIDOMElement *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectElement(aElement); } \
399 : NS_IMETHOD SetCaretAfterElement(nsIDOMElement *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaretAfterElement(aElement); } \
400 : NS_IMETHOD SetParagraphFormat(const nsAString & aParagraphFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParagraphFormat(aParagraphFormat); } \
401 : NS_IMETHOD GetParagraphState(bool *aMixed, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParagraphState(aMixed, _retval); } \
402 : NS_IMETHOD GetFontFaceState(bool *aMixed, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontFaceState(aMixed, _retval); } \
403 : NS_IMETHOD GetFontColorState(bool *aMixed, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontColorState(aMixed, _retval); } \
404 : NS_IMETHOD GetBackgroundColorState(bool *aMixed, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundColorState(aMixed, _retval); } \
405 : NS_IMETHOD GetHighlightColorState(bool *aMixed, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHighlightColorState(aMixed, _retval); } \
406 : NS_IMETHOD GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListState(aMixed, aOL, aUL, aDL); } \
407 : NS_IMETHOD GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListItemState(aMixed, aLI, aDT, aDD); } \
408 : NS_IMETHOD GetAlignment(bool *aMixed, int16_t *aAlign) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlignment(aMixed, aAlign); } \
409 : NS_IMETHOD GetIndentState(bool *aCanIndent, bool *aCanOutdent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndentState(aCanIndent, aCanOutdent); } \
410 : NS_IMETHOD MakeOrChangeList(const nsAString & aListType, bool entireList, const nsAString & aBulletType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeOrChangeList(aListType, entireList, aBulletType); } \
411 : NS_IMETHOD RemoveList(const nsAString & aListType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveList(aListType); } \
412 : NS_IMETHOD Indent(const nsAString & aIndent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Indent(aIndent); } \
413 : NS_IMETHOD Align(const nsAString & aAlign) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Align(aAlign); } \
414 : NS_IMETHOD GetElementOrParentByTagName(const nsAString & aTagName, nsIDOMNode *aNode, nsIDOMElement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementOrParentByTagName(aTagName, aNode, _retval); } \
415 : NS_IMETHOD GetSelectedElement(const nsAString & aTagName, nsIDOMElement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedElement(aTagName, _retval); } \
416 : NS_IMETHOD GetHeadContentsAsHTML(nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeadContentsAsHTML(_retval); } \
417 : NS_IMETHOD ReplaceHeadContentsWithHTML(const nsAString & aSourceToInsert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceHeadContentsWithHTML(aSourceToInsert); } \
418 : NS_IMETHOD CreateElementWithDefaults(const nsAString & aTagName, nsIDOMElement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateElementWithDefaults(aTagName, _retval); } \
419 : NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement *aAnchorElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertLinkAroundSelection(aAnchorElement); } \
420 : NS_IMETHOD SetBackgroundColor(const nsAString & aColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundColor(aColor); } \
421 : NS_IMETHOD SetBodyAttribute(const nsAString & aAttr, const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBodyAttribute(aAttr, aValue); } \
422 : NS_IMETHOD GetLinkedObjects(nsIArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkedObjects(_retval); } \
423 : NS_IMETHOD GetIsCSSEnabled(bool *aIsCSSEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCSSEnabled(aIsCSSEnabled); } \
424 : NS_IMETHOD SetIsCSSEnabled(bool aIsCSSEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsCSSEnabled(aIsCSSEnabled); } \
425 : NS_IMETHOD AddInsertionListener(nsIContentFilter *inFilter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddInsertionListener(inFilter); } \
426 : NS_IMETHOD RemoveInsertionListener(nsIContentFilter *inFilter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveInsertionListener(inFilter); } \
427 : NS_IMETHOD GetSelectionContainer(nsIDOMElement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionContainer(_retval); } \
428 : NS_IMETHOD CheckSelectionStateForAnonymousButtons(nsISelection *aSelection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckSelectionStateForAnonymousButtons(aSelection); } \
429 : NS_IMETHOD IsAnonymousElement(nsIDOMElement *aElement, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAnonymousElement(aElement, _retval); } \
430 : NS_IMETHOD GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReturnInParagraphCreatesNewParagraph(aReturnInParagraphCreatesNewParagraph); } \
431 : NS_IMETHOD SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReturnInParagraphCreatesNewParagraph(aReturnInParagraphCreatesNewParagraph); } \
432 : NS_IMETHOD_(mozilla::dom::Element *) GetActiveEditingHost(void) override;
433 :
434 : #if 0
435 : /* Use the code below as a template for the implementation class for this interface. */
436 :
437 : /* Header file */
438 : class nsHTMLEditor : public nsIHTMLEditor
439 : {
440 : public:
441 : NS_DECL_ISUPPORTS
442 : NS_DECL_NSIHTMLEDITOR
443 :
444 : nsHTMLEditor();
445 :
446 : private:
447 : ~nsHTMLEditor();
448 :
449 : protected:
450 : /* additional members */
451 : };
452 :
453 : /* Implementation file */
454 : NS_IMPL_ISUPPORTS(nsHTMLEditor, nsIHTMLEditor)
455 :
456 : nsHTMLEditor::nsHTMLEditor()
457 : {
458 : /* member initializers and constructor code */
459 : }
460 :
461 : nsHTMLEditor::~nsHTMLEditor()
462 : {
463 : /* destructor code */
464 : }
465 :
466 : /* void addDefaultProperty (in nsIAtom aProperty, in AString aAttribute, in AString aValue); */
467 : NS_IMETHODIMP nsHTMLEditor::AddDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue)
468 : {
469 : return NS_ERROR_NOT_IMPLEMENTED;
470 : }
471 :
472 : /* void removeDefaultProperty (in nsIAtom aProperty, in AString aAttribute, in AString aValue); */
473 : NS_IMETHODIMP nsHTMLEditor::RemoveDefaultProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue)
474 : {
475 : return NS_ERROR_NOT_IMPLEMENTED;
476 : }
477 :
478 : /* void removeAllDefaultProperties (); */
479 : NS_IMETHODIMP nsHTMLEditor::RemoveAllDefaultProperties()
480 : {
481 : return NS_ERROR_NOT_IMPLEMENTED;
482 : }
483 :
484 : /* void setInlineProperty (in nsIAtom aProperty, in AString aAttribute, in AString aValue); */
485 : NS_IMETHODIMP nsHTMLEditor::SetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue)
486 : {
487 : return NS_ERROR_NOT_IMPLEMENTED;
488 : }
489 :
490 : /* void getInlineProperty (in nsIAtom aProperty, in AString aAttribute, in AString aValue, out boolean aFirst, out boolean aAny, out boolean aAll); */
491 : NS_IMETHODIMP nsHTMLEditor::GetInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll)
492 : {
493 : return NS_ERROR_NOT_IMPLEMENTED;
494 : }
495 :
496 : /* AString getInlinePropertyWithAttrValue (in nsIAtom aProperty, in AString aAttribute, in AString aValue, out boolean aFirst, out boolean aAny, out boolean aAll); */
497 : NS_IMETHODIMP nsHTMLEditor::GetInlinePropertyWithAttrValue(nsIAtom *aProperty, const nsAString & aAttribute, const nsAString & aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString & _retval)
498 : {
499 : return NS_ERROR_NOT_IMPLEMENTED;
500 : }
501 :
502 : /* void removeAllInlineProperties (); */
503 : NS_IMETHODIMP nsHTMLEditor::RemoveAllInlineProperties()
504 : {
505 : return NS_ERROR_NOT_IMPLEMENTED;
506 : }
507 :
508 : /* void removeInlineProperty (in nsIAtom aProperty, in AString aAttribute); */
509 : NS_IMETHODIMP nsHTMLEditor::RemoveInlineProperty(nsIAtom *aProperty, const nsAString & aAttribute)
510 : {
511 : return NS_ERROR_NOT_IMPLEMENTED;
512 : }
513 :
514 : /* void increaseFontSize (); */
515 : NS_IMETHODIMP nsHTMLEditor::IncreaseFontSize()
516 : {
517 : return NS_ERROR_NOT_IMPLEMENTED;
518 : }
519 :
520 : /* void decreaseFontSize (); */
521 : NS_IMETHODIMP nsHTMLEditor::DecreaseFontSize()
522 : {
523 : return NS_ERROR_NOT_IMPLEMENTED;
524 : }
525 :
526 : /* boolean nodeIsBlock (in nsIDOMNode node); */
527 : NS_IMETHODIMP nsHTMLEditor::NodeIsBlock(nsIDOMNode *node, bool *_retval)
528 : {
529 : return NS_ERROR_NOT_IMPLEMENTED;
530 : }
531 :
532 : /* void insertHTML (in AString aInputString); */
533 : NS_IMETHODIMP nsHTMLEditor::InsertHTML(const nsAString & aInputString)
534 : {
535 : return NS_ERROR_NOT_IMPLEMENTED;
536 : }
537 :
538 : /* void pasteNoFormatting (in long aSelectionType); */
539 : NS_IMETHODIMP nsHTMLEditor::PasteNoFormatting(int32_t aSelectionType)
540 : {
541 : return NS_ERROR_NOT_IMPLEMENTED;
542 : }
543 :
544 : /* void rebuildDocumentFromSource (in AString aSourceString); */
545 : NS_IMETHODIMP nsHTMLEditor::RebuildDocumentFromSource(const nsAString & aSourceString)
546 : {
547 : return NS_ERROR_NOT_IMPLEMENTED;
548 : }
549 :
550 : /* void insertHTMLWithContext (in AString aInputString, in AString aContextStr, in AString aInfoStr, in AString aFlavor, in nsIDOMDocument aSourceDoc, in nsIDOMNode aDestinationNode, in long aDestinationOffset, in boolean aDeleteSelection); */
551 : NS_IMETHODIMP nsHTMLEditor::InsertHTMLWithContext(const nsAString & aInputString, const nsAString & aContextStr, const nsAString & aInfoStr, const nsAString & aFlavor, nsIDOMDocument *aSourceDoc, nsIDOMNode *aDestinationNode, int32_t aDestinationOffset, bool aDeleteSelection)
552 : {
553 : return NS_ERROR_NOT_IMPLEMENTED;
554 : }
555 :
556 : /* void insertElementAtSelection (in nsIDOMElement aElement, in boolean aDeleteSelection); */
557 : NS_IMETHODIMP nsHTMLEditor::InsertElementAtSelection(nsIDOMElement *aElement, bool aDeleteSelection)
558 : {
559 : return NS_ERROR_NOT_IMPLEMENTED;
560 : }
561 :
562 : /* void updateBaseURL (); */
563 : NS_IMETHODIMP nsHTMLEditor::UpdateBaseURL()
564 : {
565 : return NS_ERROR_NOT_IMPLEMENTED;
566 : }
567 :
568 : /* void selectElement (in nsIDOMElement aElement); */
569 : NS_IMETHODIMP nsHTMLEditor::SelectElement(nsIDOMElement *aElement)
570 : {
571 : return NS_ERROR_NOT_IMPLEMENTED;
572 : }
573 :
574 : /* void setCaretAfterElement (in nsIDOMElement aElement); */
575 : NS_IMETHODIMP nsHTMLEditor::SetCaretAfterElement(nsIDOMElement *aElement)
576 : {
577 : return NS_ERROR_NOT_IMPLEMENTED;
578 : }
579 :
580 : /* void setParagraphFormat (in AString aParagraphFormat); */
581 : NS_IMETHODIMP nsHTMLEditor::SetParagraphFormat(const nsAString & aParagraphFormat)
582 : {
583 : return NS_ERROR_NOT_IMPLEMENTED;
584 : }
585 :
586 : /* AString getParagraphState (out boolean aMixed); */
587 : NS_IMETHODIMP nsHTMLEditor::GetParagraphState(bool *aMixed, nsAString & _retval)
588 : {
589 : return NS_ERROR_NOT_IMPLEMENTED;
590 : }
591 :
592 : /* AString getFontFaceState (out boolean aMixed); */
593 : NS_IMETHODIMP nsHTMLEditor::GetFontFaceState(bool *aMixed, nsAString & _retval)
594 : {
595 : return NS_ERROR_NOT_IMPLEMENTED;
596 : }
597 :
598 : /* AString getFontColorState (out boolean aMixed); */
599 : NS_IMETHODIMP nsHTMLEditor::GetFontColorState(bool *aMixed, nsAString & _retval)
600 : {
601 : return NS_ERROR_NOT_IMPLEMENTED;
602 : }
603 :
604 : /* AString getBackgroundColorState (out boolean aMixed); */
605 : NS_IMETHODIMP nsHTMLEditor::GetBackgroundColorState(bool *aMixed, nsAString & _retval)
606 : {
607 : return NS_ERROR_NOT_IMPLEMENTED;
608 : }
609 :
610 : /* AString getHighlightColorState (out boolean aMixed); */
611 : NS_IMETHODIMP nsHTMLEditor::GetHighlightColorState(bool *aMixed, nsAString & _retval)
612 : {
613 : return NS_ERROR_NOT_IMPLEMENTED;
614 : }
615 :
616 : /* void getListState (out boolean aMixed, out boolean aOL, out boolean aUL, out boolean aDL); */
617 : NS_IMETHODIMP nsHTMLEditor::GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL)
618 : {
619 : return NS_ERROR_NOT_IMPLEMENTED;
620 : }
621 :
622 : /* void getListItemState (out boolean aMixed, out boolean aLI, out boolean aDT, out boolean aDD); */
623 : NS_IMETHODIMP nsHTMLEditor::GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD)
624 : {
625 : return NS_ERROR_NOT_IMPLEMENTED;
626 : }
627 :
628 : /* void getAlignment (out boolean aMixed, out short aAlign); */
629 : NS_IMETHODIMP nsHTMLEditor::GetAlignment(bool *aMixed, int16_t *aAlign)
630 : {
631 : return NS_ERROR_NOT_IMPLEMENTED;
632 : }
633 :
634 : /* void getIndentState (out boolean aCanIndent, out boolean aCanOutdent); */
635 : NS_IMETHODIMP nsHTMLEditor::GetIndentState(bool *aCanIndent, bool *aCanOutdent)
636 : {
637 : return NS_ERROR_NOT_IMPLEMENTED;
638 : }
639 :
640 : /* void makeOrChangeList (in AString aListType, in boolean entireList, in AString aBulletType); */
641 : NS_IMETHODIMP nsHTMLEditor::MakeOrChangeList(const nsAString & aListType, bool entireList, const nsAString & aBulletType)
642 : {
643 : return NS_ERROR_NOT_IMPLEMENTED;
644 : }
645 :
646 : /* void removeList (in AString aListType); */
647 : NS_IMETHODIMP nsHTMLEditor::RemoveList(const nsAString & aListType)
648 : {
649 : return NS_ERROR_NOT_IMPLEMENTED;
650 : }
651 :
652 : /* void indent (in AString aIndent); */
653 : NS_IMETHODIMP nsHTMLEditor::Indent(const nsAString & aIndent)
654 : {
655 : return NS_ERROR_NOT_IMPLEMENTED;
656 : }
657 :
658 : /* void align (in AString aAlign); */
659 : NS_IMETHODIMP nsHTMLEditor::Align(const nsAString & aAlign)
660 : {
661 : return NS_ERROR_NOT_IMPLEMENTED;
662 : }
663 :
664 : /* nsIDOMElement getElementOrParentByTagName (in AString aTagName, in nsIDOMNode aNode); */
665 : NS_IMETHODIMP nsHTMLEditor::GetElementOrParentByTagName(const nsAString & aTagName, nsIDOMNode *aNode, nsIDOMElement * *_retval)
666 : {
667 : return NS_ERROR_NOT_IMPLEMENTED;
668 : }
669 :
670 : /* nsIDOMElement getSelectedElement (in AString aTagName); */
671 : NS_IMETHODIMP nsHTMLEditor::GetSelectedElement(const nsAString & aTagName, nsIDOMElement * *_retval)
672 : {
673 : return NS_ERROR_NOT_IMPLEMENTED;
674 : }
675 :
676 : /* AString getHeadContentsAsHTML (); */
677 : NS_IMETHODIMP nsHTMLEditor::GetHeadContentsAsHTML(nsAString & _retval)
678 : {
679 : return NS_ERROR_NOT_IMPLEMENTED;
680 : }
681 :
682 : /* void replaceHeadContentsWithHTML (in AString aSourceToInsert); */
683 : NS_IMETHODIMP nsHTMLEditor::ReplaceHeadContentsWithHTML(const nsAString & aSourceToInsert)
684 : {
685 : return NS_ERROR_NOT_IMPLEMENTED;
686 : }
687 :
688 : /* nsIDOMElement createElementWithDefaults (in AString aTagName); */
689 : NS_IMETHODIMP nsHTMLEditor::CreateElementWithDefaults(const nsAString & aTagName, nsIDOMElement * *_retval)
690 : {
691 : return NS_ERROR_NOT_IMPLEMENTED;
692 : }
693 :
694 : /* void insertLinkAroundSelection (in nsIDOMElement aAnchorElement); */
695 : NS_IMETHODIMP nsHTMLEditor::InsertLinkAroundSelection(nsIDOMElement *aAnchorElement)
696 : {
697 : return NS_ERROR_NOT_IMPLEMENTED;
698 : }
699 :
700 : /* void setBackgroundColor (in AString aColor); */
701 : NS_IMETHODIMP nsHTMLEditor::SetBackgroundColor(const nsAString & aColor)
702 : {
703 : return NS_ERROR_NOT_IMPLEMENTED;
704 : }
705 :
706 : /* void setBodyAttribute (in AString aAttr, in AString aValue); */
707 : NS_IMETHODIMP nsHTMLEditor::SetBodyAttribute(const nsAString & aAttr, const nsAString & aValue)
708 : {
709 : return NS_ERROR_NOT_IMPLEMENTED;
710 : }
711 :
712 : /* nsIArray getLinkedObjects (); */
713 : NS_IMETHODIMP nsHTMLEditor::GetLinkedObjects(nsIArray * *_retval)
714 : {
715 : return NS_ERROR_NOT_IMPLEMENTED;
716 : }
717 :
718 : /* attribute boolean isCSSEnabled; */
719 : NS_IMETHODIMP nsHTMLEditor::GetIsCSSEnabled(bool *aIsCSSEnabled)
720 : {
721 : return NS_ERROR_NOT_IMPLEMENTED;
722 : }
723 : NS_IMETHODIMP nsHTMLEditor::SetIsCSSEnabled(bool aIsCSSEnabled)
724 : {
725 : return NS_ERROR_NOT_IMPLEMENTED;
726 : }
727 :
728 : /* void addInsertionListener (in nsIContentFilter inFilter); */
729 : NS_IMETHODIMP nsHTMLEditor::AddInsertionListener(nsIContentFilter *inFilter)
730 : {
731 : return NS_ERROR_NOT_IMPLEMENTED;
732 : }
733 :
734 : /* void removeInsertionListener (in nsIContentFilter inFilter); */
735 : NS_IMETHODIMP nsHTMLEditor::RemoveInsertionListener(nsIContentFilter *inFilter)
736 : {
737 : return NS_ERROR_NOT_IMPLEMENTED;
738 : }
739 :
740 : /* nsIDOMElement getSelectionContainer (); */
741 : NS_IMETHODIMP nsHTMLEditor::GetSelectionContainer(nsIDOMElement * *_retval)
742 : {
743 : return NS_ERROR_NOT_IMPLEMENTED;
744 : }
745 :
746 : /* void checkSelectionStateForAnonymousButtons (in nsISelection aSelection); */
747 : NS_IMETHODIMP nsHTMLEditor::CheckSelectionStateForAnonymousButtons(nsISelection *aSelection)
748 : {
749 : return NS_ERROR_NOT_IMPLEMENTED;
750 : }
751 :
752 : /* boolean isAnonymousElement (in nsIDOMElement aElement); */
753 : NS_IMETHODIMP nsHTMLEditor::IsAnonymousElement(nsIDOMElement *aElement, bool *_retval)
754 : {
755 : return NS_ERROR_NOT_IMPLEMENTED;
756 : }
757 :
758 : /* attribute boolean returnInParagraphCreatesNewParagraph; */
759 : NS_IMETHODIMP nsHTMLEditor::GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph)
760 : {
761 : return NS_ERROR_NOT_IMPLEMENTED;
762 : }
763 : NS_IMETHODIMP nsHTMLEditor::SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph)
764 : {
765 : return NS_ERROR_NOT_IMPLEMENTED;
766 : }
767 :
768 : /* [noscript,notxpcom] Element GetActiveEditingHost (); */
769 : NS_IMETHODIMP_(mozilla::dom::Element *) nsHTMLEditor::GetActiveEditingHost()
770 : {
771 : return NS_ERROR_NOT_IMPLEMENTED;
772 : }
773 :
774 : /* End of implementation class template. */
775 : #endif
776 :
777 :
778 : #endif /* __gen_nsIHTMLEditor_h__ */
|