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