DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/editor/nsIHTMLEditor.idl
 */

#ifndef __gen_nsIHTMLEditor_h__
#define __gen_nsIHTMLEditor_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIContent; /* forward declaration */

class nsIArray; /* forward declaration */

class nsIDocument; /* webidl Document */

namespace mozilla {
namespace dom {
class Element; /* webidl Element */
} // namespace dom
} // namespace mozilla

class nsINode; /* webidl Node */

namespace mozilla {
namespace dom {
class Selection; /* webidl Selection */
} // namespace dom
} // namespace mozilla


/* starting interface:    nsIHTMLEditor */
#define NS_IHTMLEDITOR_IID_STR "87ee993e-985f-4a43-a974-0d9512da2fb0"

#define NS_IHTMLEDITOR_IID \
  {0x87ee993e, 0x985f, 0x4a43, \
    { 0xa9, 0x74, 0x0d, 0x95, 0x12, 0xda, 0x2f, 0xb0 }}

class nsIHTMLEditor : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTMLEDITOR_IID)

   typedef short EAlignment;
  enum {
    eLeft = 0,
    eCenter = 1,
    eRight = 2,
    eJustify = 3
  };

  /* void setInlineProperty (in AString aProperty, in AString aAttribute, in AString aValue); */
  NS_IMETHOD SetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue) = 0;

  /* void getInlineProperty (in AString aProperty, in AString aAttribute, in AString aValue, out boolean aFirst, out boolean aAny, out boolean aAll); */
  NS_IMETHOD GetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue, bool *aFirst, bool *aAny, bool *aAll) = 0;

  /* AString getInlinePropertyWithAttrValue (in AString aProperty, in AString aAttribute, in AString aValue, out boolean aFirst, out boolean aAny, out boolean aAll); */
  NS_IMETHOD GetInlinePropertyWithAttrValue(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString& _retval) = 0;

  /* void removeAllInlineProperties (); */
  NS_IMETHOD RemoveAllInlineProperties(void) = 0;

  /* void removeInlineProperty (in AString aProperty, in AString aAttribute); */
  NS_IMETHOD RemoveInlineProperty(const nsAString& aProperty, const nsAString& aAttribute) = 0;

  /* void increaseFontSize (); */
  NS_IMETHOD IncreaseFontSize(void) = 0;

  /* void decreaseFontSize (); */
  NS_IMETHOD DecreaseFontSize(void) = 0;

  /* boolean nodeIsBlock (in Node node); */
  NS_IMETHOD NodeIsBlock(nsINode *node, bool *_retval) = 0;

  /* void insertHTML (in AString aInputString); */
  NS_IMETHOD InsertHTML(const nsAString& aInputString) = 0;

  /* void pasteNoFormatting (in long aSelectionType); */
  NS_IMETHOD PasteNoFormatting(int32_t aSelectionType) = 0;

  /* void rebuildDocumentFromSource (in AString aSourceString); */
  NS_IMETHOD RebuildDocumentFromSource(const nsAString& aSourceString) = 0;

  /* void insertElementAtSelection (in Element aElement, in boolean aDeleteSelection); */
  NS_IMETHOD InsertElementAtSelection(mozilla::dom::Element *aElement, bool aDeleteSelection) = 0;

  /* void updateBaseURL (); */
  NS_IMETHOD UpdateBaseURL(void) = 0;

  /* void selectElement (in Element aElement); */
  NS_IMETHOD SelectElement(mozilla::dom::Element *aElement) = 0;

  /* void setCaretAfterElement (in Element aElement); */
  NS_IMETHOD SetCaretAfterElement(mozilla::dom::Element *aElement) = 0;

  /* void setParagraphFormat (in AString aParagraphFormat); */
  NS_IMETHOD SetParagraphFormat(const nsAString& aParagraphFormat) = 0;

  /* AString getParagraphState (out boolean aMixed); */
  NS_IMETHOD GetParagraphState(bool *aMixed, nsAString& _retval) = 0;

  /* AString getFontFaceState (out boolean aMixed); */
  NS_IMETHOD GetFontFaceState(bool *aMixed, nsAString& _retval) = 0;

  /* AString getBackgroundColorState (out boolean aMixed); */
  NS_IMETHOD GetBackgroundColorState(bool *aMixed, nsAString& _retval) = 0;

  /* AString getHighlightColorState (out boolean aMixed); */
  NS_IMETHOD GetHighlightColorState(bool *aMixed, nsAString& _retval) = 0;

  /* void getListState (out boolean aMixed, out boolean aOL, out boolean aUL, out boolean aDL); */
  NS_IMETHOD GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL) = 0;

  /* void getListItemState (out boolean aMixed, out boolean aLI, out boolean aDT, out boolean aDD); */
  NS_IMETHOD GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD) = 0;

  /* void getAlignment (out boolean aMixed, out short aAlign); */
  NS_IMETHOD GetAlignment(bool *aMixed, int16_t *aAlign) = 0;

  /* void makeOrChangeList (in AString aListType, in boolean entireList, in AString aBulletType); */
  NS_IMETHOD MakeOrChangeList(const nsAString& aListType, bool entireList, const nsAString& aBulletType) = 0;

  /* void removeList (in AString aListType); */
  NS_IMETHOD RemoveList(const nsAString& aListType) = 0;

  /* void indent (in AString aIndent); */
  NS_IMETHOD Indent(const nsAString& aIndent) = 0;

  /* void align (in AString aAlign); */
  NS_IMETHOD Align(const nsAString& aAlign) = 0;

  /* Element getElementOrParentByTagName (in AString aTagName, in Node aNode); */
  NS_IMETHOD GetElementOrParentByTagName(const nsAString& aTagName, nsINode *aNode, mozilla::dom::Element **_retval) = 0;

  /* nsISupports getSelectedElement (in AString aTagName); */
  NS_IMETHOD GetSelectedElement(const nsAString& aTagName, nsISupports **_retval) = 0;

  /* Element createElementWithDefaults (in AString aTagName); */
  NS_IMETHOD CreateElementWithDefaults(const nsAString& aTagName, mozilla::dom::Element **_retval) = 0;

  /* void insertLinkAroundSelection (in Element aAnchorElement); */
  NS_IMETHOD InsertLinkAroundSelection(mozilla::dom::Element *aAnchorElement) = 0;

  /* void setBackgroundColor (in AString aColor); */
  NS_IMETHOD SetBackgroundColor(const nsAString& aColor) = 0;

  /* nsIArray getLinkedObjects (); */
  NS_IMETHOD GetLinkedObjects(nsIArray **_retval) = 0;

  /* attribute boolean isCSSEnabled; */
  NS_IMETHOD GetIsCSSEnabled(bool *aIsCSSEnabled) = 0;
  NS_IMETHOD SetIsCSSEnabled(bool aIsCSSEnabled) = 0;

  /* void checkSelectionStateForAnonymousButtons (in Selection aSelection); */
  NS_IMETHOD CheckSelectionStateForAnonymousButtons(mozilla::dom::Selection *aSelection) = 0;

  /* boolean isAnonymousElement (in Element aElement); */
  NS_IMETHOD IsAnonymousElement(mozilla::dom::Element *aElement, bool *_retval) = 0;

  /* attribute boolean returnInParagraphCreatesNewParagraph; */
  NS_IMETHOD GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph) = 0;
  NS_IMETHOD SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHTMLEditor, NS_IHTMLEDITOR_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTMLEDITOR \
  NS_IMETHOD SetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue) override; \
  NS_IMETHOD GetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue, bool *aFirst, bool *aAny, bool *aAll) override; \
  NS_IMETHOD GetInlinePropertyWithAttrValue(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString& _retval) override; \
  NS_IMETHOD RemoveAllInlineProperties(void) override; \
  NS_IMETHOD RemoveInlineProperty(const nsAString& aProperty, const nsAString& aAttribute) override; \
  NS_IMETHOD IncreaseFontSize(void) override; \
  NS_IMETHOD DecreaseFontSize(void) override; \
  NS_IMETHOD NodeIsBlock(nsINode *node, bool *_retval) override; \
  NS_IMETHOD InsertHTML(const nsAString& aInputString) override; \
  NS_IMETHOD PasteNoFormatting(int32_t aSelectionType) override; \
  NS_IMETHOD RebuildDocumentFromSource(const nsAString& aSourceString) override; \
  NS_IMETHOD InsertElementAtSelection(mozilla::dom::Element *aElement, bool aDeleteSelection) override; \
  NS_IMETHOD UpdateBaseURL(void) override; \
  NS_IMETHOD SelectElement(mozilla::dom::Element *aElement) override; \
  NS_IMETHOD SetCaretAfterElement(mozilla::dom::Element *aElement) override; \
  NS_IMETHOD SetParagraphFormat(const nsAString& aParagraphFormat) override; \
  NS_IMETHOD GetParagraphState(bool *aMixed, nsAString& _retval) override; \
  NS_IMETHOD GetFontFaceState(bool *aMixed, nsAString& _retval) override; \
  NS_IMETHOD GetBackgroundColorState(bool *aMixed, nsAString& _retval) override; \
  NS_IMETHOD GetHighlightColorState(bool *aMixed, nsAString& _retval) override; \
  NS_IMETHOD GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL) override; \
  NS_IMETHOD GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD) override; \
  NS_IMETHOD GetAlignment(bool *aMixed, int16_t *aAlign) override; \
  NS_IMETHOD MakeOrChangeList(const nsAString& aListType, bool entireList, const nsAString& aBulletType) override; \
  NS_IMETHOD RemoveList(const nsAString& aListType) override; \
  NS_IMETHOD Indent(const nsAString& aIndent) override; \
  NS_IMETHOD Align(const nsAString& aAlign) override; \
  NS_IMETHOD GetElementOrParentByTagName(const nsAString& aTagName, nsINode *aNode, mozilla::dom::Element **_retval) override; \
  NS_IMETHOD GetSelectedElement(const nsAString& aTagName, nsISupports **_retval) override; \
  NS_IMETHOD CreateElementWithDefaults(const nsAString& aTagName, mozilla::dom::Element **_retval) override; \
  NS_IMETHOD InsertLinkAroundSelection(mozilla::dom::Element *aAnchorElement) override; \
  NS_IMETHOD SetBackgroundColor(const nsAString& aColor) override; \
  NS_IMETHOD GetLinkedObjects(nsIArray **_retval) override; \
  NS_IMETHOD GetIsCSSEnabled(bool *aIsCSSEnabled) override; \
  NS_IMETHOD SetIsCSSEnabled(bool aIsCSSEnabled) override; \
  NS_IMETHOD CheckSelectionStateForAnonymousButtons(mozilla::dom::Selection *aSelection) override; \
  NS_IMETHOD IsAnonymousElement(mozilla::dom::Element *aElement, bool *_retval) override; \
  NS_IMETHOD GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph) override; \
  NS_IMETHOD SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIHTMLEDITOR \
  nsresult SetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue); \
  nsresult GetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue, bool *aFirst, bool *aAny, bool *aAll); \
  nsresult GetInlinePropertyWithAttrValue(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue, bool *aFirst, bool *aAny, bool *aAll, nsAString& _retval); \
  nsresult RemoveAllInlineProperties(void); \
  nsresult RemoveInlineProperty(const nsAString& aProperty, const nsAString& aAttribute); \
  nsresult IncreaseFontSize(void); \
  nsresult DecreaseFontSize(void); \
  nsresult NodeIsBlock(nsINode *node, bool *_retval); \
  nsresult InsertHTML(const nsAString& aInputString); \
  nsresult PasteNoFormatting(int32_t aSelectionType); \
  nsresult RebuildDocumentFromSource(const nsAString& aSourceString); \
  nsresult InsertElementAtSelection(mozilla::dom::Element *aElement, bool aDeleteSelection); \
  nsresult UpdateBaseURL(void); \
  nsresult SelectElement(mozilla::dom::Element *aElement); \
  nsresult SetCaretAfterElement(mozilla::dom::Element *aElement); \
  nsresult SetParagraphFormat(const nsAString& aParagraphFormat); \
  nsresult GetParagraphState(bool *aMixed, nsAString& _retval); \
  nsresult GetFontFaceState(bool *aMixed, nsAString& _retval); \
  nsresult GetBackgroundColorState(bool *aMixed, nsAString& _retval); \
  nsresult GetHighlightColorState(bool *aMixed, nsAString& _retval); \
  nsresult GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL); \
  nsresult GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD); \
  nsresult GetAlignment(bool *aMixed, int16_t *aAlign); \
  nsresult MakeOrChangeList(const nsAString& aListType, bool entireList, const nsAString& aBulletType); \
  nsresult RemoveList(const nsAString& aListType); \
  nsresult Indent(const nsAString& aIndent); \
  nsresult Align(const nsAString& aAlign); \
  nsresult GetElementOrParentByTagName(const nsAString& aTagName, nsINode *aNode, mozilla::dom::Element **_retval); \
  nsresult GetSelectedElement(const nsAString& aTagName, nsISupports **_retval); \
  nsresult CreateElementWithDefaults(const nsAString& aTagName, mozilla::dom::Element **_retval); \
  nsresult InsertLinkAroundSelection(mozilla::dom::Element *aAnchorElement); \
  nsresult SetBackgroundColor(const nsAString& aColor); \
  nsresult GetLinkedObjects(nsIArray **_retval); \
  nsresult GetIsCSSEnabled(bool *aIsCSSEnabled); \
  nsresult SetIsCSSEnabled(bool aIsCSSEnabled); \
  nsresult CheckSelectionStateForAnonymousButtons(mozilla::dom::Selection *aSelection); \
  nsresult IsAnonymousElement(mozilla::dom::Element *aElement, bool *_retval); \
  nsresult GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph); \
  nsresult SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTMLEDITOR(_to) \
  NS_IMETHOD SetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue) override { return _to SetInlineProperty(aProperty, aAttribute, aValue); } \
  NS_IMETHOD GetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue, bool *aFirst, bool *aAny, bool *aAll) override { return _to GetInlineProperty(aProperty, aAttribute, aValue, aFirst, aAny, aAll); } \
  NS_IMETHOD GetInlinePropertyWithAttrValue(const nsAString& 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); } \
  NS_IMETHOD RemoveAllInlineProperties(void) override { return _to RemoveAllInlineProperties(); } \
  NS_IMETHOD RemoveInlineProperty(const nsAString& aProperty, const nsAString& aAttribute) override { return _to RemoveInlineProperty(aProperty, aAttribute); } \
  NS_IMETHOD IncreaseFontSize(void) override { return _to IncreaseFontSize(); } \
  NS_IMETHOD DecreaseFontSize(void) override { return _to DecreaseFontSize(); } \
  NS_IMETHOD NodeIsBlock(nsINode *node, bool *_retval) override { return _to NodeIsBlock(node, _retval); } \
  NS_IMETHOD InsertHTML(const nsAString& aInputString) override { return _to InsertHTML(aInputString); } \
  NS_IMETHOD PasteNoFormatting(int32_t aSelectionType) override { return _to PasteNoFormatting(aSelectionType); } \
  NS_IMETHOD RebuildDocumentFromSource(const nsAString& aSourceString) override { return _to RebuildDocumentFromSource(aSourceString); } \
  NS_IMETHOD InsertElementAtSelection(mozilla::dom::Element *aElement, bool aDeleteSelection) override { return _to InsertElementAtSelection(aElement, aDeleteSelection); } \
  NS_IMETHOD UpdateBaseURL(void) override { return _to UpdateBaseURL(); } \
  NS_IMETHOD SelectElement(mozilla::dom::Element *aElement) override { return _to SelectElement(aElement); } \
  NS_IMETHOD SetCaretAfterElement(mozilla::dom::Element *aElement) override { return _to SetCaretAfterElement(aElement); } \
  NS_IMETHOD SetParagraphFormat(const nsAString& aParagraphFormat) override { return _to SetParagraphFormat(aParagraphFormat); } \
  NS_IMETHOD GetParagraphState(bool *aMixed, nsAString& _retval) override { return _to GetParagraphState(aMixed, _retval); } \
  NS_IMETHOD GetFontFaceState(bool *aMixed, nsAString& _retval) override { return _to GetFontFaceState(aMixed, _retval); } \
  NS_IMETHOD GetBackgroundColorState(bool *aMixed, nsAString& _retval) override { return _to GetBackgroundColorState(aMixed, _retval); } \
  NS_IMETHOD GetHighlightColorState(bool *aMixed, nsAString& _retval) override { return _to GetHighlightColorState(aMixed, _retval); } \
  NS_IMETHOD GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL) override { return _to GetListState(aMixed, aOL, aUL, aDL); } \
  NS_IMETHOD GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD) override { return _to GetListItemState(aMixed, aLI, aDT, aDD); } \
  NS_IMETHOD GetAlignment(bool *aMixed, int16_t *aAlign) override { return _to GetAlignment(aMixed, aAlign); } \
  NS_IMETHOD MakeOrChangeList(const nsAString& aListType, bool entireList, const nsAString& aBulletType) override { return _to MakeOrChangeList(aListType, entireList, aBulletType); } \
  NS_IMETHOD RemoveList(const nsAString& aListType) override { return _to RemoveList(aListType); } \
  NS_IMETHOD Indent(const nsAString& aIndent) override { return _to Indent(aIndent); } \
  NS_IMETHOD Align(const nsAString& aAlign) override { return _to Align(aAlign); } \
  NS_IMETHOD GetElementOrParentByTagName(const nsAString& aTagName, nsINode *aNode, mozilla::dom::Element **_retval) override { return _to GetElementOrParentByTagName(aTagName, aNode, _retval); } \
  NS_IMETHOD GetSelectedElement(const nsAString& aTagName, nsISupports **_retval) override { return _to GetSelectedElement(aTagName, _retval); } \
  NS_IMETHOD CreateElementWithDefaults(const nsAString& aTagName, mozilla::dom::Element **_retval) override { return _to CreateElementWithDefaults(aTagName, _retval); } \
  NS_IMETHOD InsertLinkAroundSelection(mozilla::dom::Element *aAnchorElement) override { return _to InsertLinkAroundSelection(aAnchorElement); } \
  NS_IMETHOD SetBackgroundColor(const nsAString& aColor) override { return _to SetBackgroundColor(aColor); } \
  NS_IMETHOD GetLinkedObjects(nsIArray **_retval) override { return _to GetLinkedObjects(_retval); } \
  NS_IMETHOD GetIsCSSEnabled(bool *aIsCSSEnabled) override { return _to GetIsCSSEnabled(aIsCSSEnabled); } \
  NS_IMETHOD SetIsCSSEnabled(bool aIsCSSEnabled) override { return _to SetIsCSSEnabled(aIsCSSEnabled); } \
  NS_IMETHOD CheckSelectionStateForAnonymousButtons(mozilla::dom::Selection *aSelection) override { return _to CheckSelectionStateForAnonymousButtons(aSelection); } \
  NS_IMETHOD IsAnonymousElement(mozilla::dom::Element *aElement, bool *_retval) override { return _to IsAnonymousElement(aElement, _retval); } \
  NS_IMETHOD GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph) override { return _to GetReturnInParagraphCreatesNewParagraph(aReturnInParagraphCreatesNewParagraph); } \
  NS_IMETHOD SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph) override { return _to SetReturnInParagraphCreatesNewParagraph(aReturnInParagraphCreatesNewParagraph); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTMLEDITOR(_to) \
  NS_IMETHOD SetInlineProperty(const nsAString& aProperty, const nsAString& aAttribute, const nsAString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInlineProperty(aProperty, aAttribute, aValue); } \
  NS_IMETHOD GetInlineProperty(const nsAString& 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); } \
  NS_IMETHOD GetInlinePropertyWithAttrValue(const nsAString& 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); } \
  NS_IMETHOD RemoveAllInlineProperties(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllInlineProperties(); } \
  NS_IMETHOD RemoveInlineProperty(const nsAString& aProperty, const nsAString& aAttribute) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveInlineProperty(aProperty, aAttribute); } \
  NS_IMETHOD IncreaseFontSize(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IncreaseFontSize(); } \
  NS_IMETHOD DecreaseFontSize(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DecreaseFontSize(); } \
  NS_IMETHOD NodeIsBlock(nsINode *node, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeIsBlock(node, _retval); } \
  NS_IMETHOD InsertHTML(const nsAString& aInputString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertHTML(aInputString); } \
  NS_IMETHOD PasteNoFormatting(int32_t aSelectionType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteNoFormatting(aSelectionType); } \
  NS_IMETHOD RebuildDocumentFromSource(const nsAString& aSourceString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RebuildDocumentFromSource(aSourceString); } \
  NS_IMETHOD InsertElementAtSelection(mozilla::dom::Element *aElement, bool aDeleteSelection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementAtSelection(aElement, aDeleteSelection); } \
  NS_IMETHOD UpdateBaseURL(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateBaseURL(); } \
  NS_IMETHOD SelectElement(mozilla::dom::Element *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectElement(aElement); } \
  NS_IMETHOD SetCaretAfterElement(mozilla::dom::Element *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaretAfterElement(aElement); } \
  NS_IMETHOD SetParagraphFormat(const nsAString& aParagraphFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParagraphFormat(aParagraphFormat); } \
  NS_IMETHOD GetParagraphState(bool *aMixed, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParagraphState(aMixed, _retval); } \
  NS_IMETHOD GetFontFaceState(bool *aMixed, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontFaceState(aMixed, _retval); } \
  NS_IMETHOD GetBackgroundColorState(bool *aMixed, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundColorState(aMixed, _retval); } \
  NS_IMETHOD GetHighlightColorState(bool *aMixed, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHighlightColorState(aMixed, _retval); } \
  NS_IMETHOD GetListState(bool *aMixed, bool *aOL, bool *aUL, bool *aDL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListState(aMixed, aOL, aUL, aDL); } \
  NS_IMETHOD GetListItemState(bool *aMixed, bool *aLI, bool *aDT, bool *aDD) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListItemState(aMixed, aLI, aDT, aDD); } \
  NS_IMETHOD GetAlignment(bool *aMixed, int16_t *aAlign) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlignment(aMixed, aAlign); } \
  NS_IMETHOD MakeOrChangeList(const nsAString& aListType, bool entireList, const nsAString& aBulletType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeOrChangeList(aListType, entireList, aBulletType); } \
  NS_IMETHOD RemoveList(const nsAString& aListType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveList(aListType); } \
  NS_IMETHOD Indent(const nsAString& aIndent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Indent(aIndent); } \
  NS_IMETHOD Align(const nsAString& aAlign) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Align(aAlign); } \
  NS_IMETHOD GetElementOrParentByTagName(const nsAString& aTagName, nsINode *aNode, mozilla::dom::Element **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementOrParentByTagName(aTagName, aNode, _retval); } \
  NS_IMETHOD GetSelectedElement(const nsAString& aTagName, nsISupports **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedElement(aTagName, _retval); } \
  NS_IMETHOD CreateElementWithDefaults(const nsAString& aTagName, mozilla::dom::Element **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateElementWithDefaults(aTagName, _retval); } \
  NS_IMETHOD InsertLinkAroundSelection(mozilla::dom::Element *aAnchorElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertLinkAroundSelection(aAnchorElement); } \
  NS_IMETHOD SetBackgroundColor(const nsAString& aColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundColor(aColor); } \
  NS_IMETHOD GetLinkedObjects(nsIArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkedObjects(_retval); } \
  NS_IMETHOD GetIsCSSEnabled(bool *aIsCSSEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCSSEnabled(aIsCSSEnabled); } \
  NS_IMETHOD SetIsCSSEnabled(bool aIsCSSEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsCSSEnabled(aIsCSSEnabled); } \
  NS_IMETHOD CheckSelectionStateForAnonymousButtons(mozilla::dom::Selection *aSelection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckSelectionStateForAnonymousButtons(aSelection); } \
  NS_IMETHOD IsAnonymousElement(mozilla::dom::Element *aElement, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAnonymousElement(aElement, _retval); } \
  NS_IMETHOD GetReturnInParagraphCreatesNewParagraph(bool *aReturnInParagraphCreatesNewParagraph) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReturnInParagraphCreatesNewParagraph(aReturnInParagraphCreatesNewParagraph); } \
  NS_IMETHOD SetReturnInParagraphCreatesNewParagraph(bool aReturnInParagraphCreatesNewParagraph) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReturnInParagraphCreatesNewParagraph(aReturnInParagraphCreatesNewParagraph); } 


#endif /* __gen_nsIHTMLEditor_h__ */