LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIEditor.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/editor/idl/nsIEditor.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIEditor_h__
       6                 : #define __gen_nsIEditor_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 nsIURI; /* forward declaration */
      22                 : 
      23                 : class nsIAtom; /* forward declaration */
      24                 : 
      25                 : class nsIContent; /* forward declaration */
      26                 : 
      27                 : class nsISelection; /* forward declaration */
      28                 : 
      29                 : class nsISelectionController; /* forward declaration */
      30                 : 
      31                 : class nsIDocumentStateListener; /* forward declaration */
      32                 : 
      33                 : class nsIOutputStream; /* forward declaration */
      34                 : 
      35                 : class nsITransactionManager; /* forward declaration */
      36                 : 
      37                 : class nsITransaction; /* forward declaration */
      38                 : 
      39                 : class nsIEditorObserver; /* forward declaration */
      40                 : 
      41                 : class nsIEditActionListener; /* forward declaration */
      42                 : 
      43                 : class nsIInlineSpellChecker; /* forward declaration */
      44                 : 
      45                 : class nsITransferable; /* forward declaration */
      46                 : 
      47                 : 
      48                 : /* starting interface:    nsIEditor */
      49                 : #define NS_IEDITOR_IID_STR "656005d2-d900-4839-81bf-6274a3c38537"
      50                 : 
      51                 : #define NS_IEDITOR_IID \
      52                 :   {0x656005d2, 0xd900, 0x4839, \
      53                 :     { 0x81, 0xbf, 0x62, 0x74, 0xa3, 0xc3, 0x85, 0x37 }}
      54                 : 
      55               0 : class NS_SCRIPTABLE nsIEditor : public nsISupports {
      56                 :  public: 
      57                 : 
      58                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITOR_IID)
      59                 : 
      60                 :    typedef short EDirection;
      61                 :   enum {
      62                 :     eNone = 0,
      63                 :     eNext = 1,
      64                 :     ePrevious = 2,
      65                 :     eNextWord = 3,
      66                 :     ePreviousWord = 4,
      67                 :     eToBeginningOfLine = 5,
      68                 :     eToEndOfLine = 6
      69                 :   };
      70                 : 
      71                 :   /* readonly attribute nsISelection selection; */
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *aSelection) = 0;
      73                 : 
      74                 :   /* [noscript] void init (in nsIDOMDocument doc, in nsIContent aRoot, in nsISelectionController aSelCon, in unsigned long aFlags); */
      75                 :   NS_IMETHOD Init(nsIDOMDocument *doc, nsIContent *aRoot, nsISelectionController *aSelCon, PRUint32 aFlags) = 0;
      76                 : 
      77                 :   /* void setAttributeOrEquivalent (in nsIDOMElement element, in AString sourceAttrName, in AString sourceAttrValue, in boolean aSuppressTransaction); */
      78                 :   NS_SCRIPTABLE NS_IMETHOD SetAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, const nsAString & sourceAttrValue, bool aSuppressTransaction) = 0;
      79                 : 
      80                 :   /* void removeAttributeOrEquivalent (in nsIDOMElement element, in DOMString sourceAttrName, in boolean aSuppressTransaction); */
      81                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, bool aSuppressTransaction) = 0;
      82                 : 
      83                 :   /* void postCreate (); */
      84                 :   NS_SCRIPTABLE NS_IMETHOD PostCreate(void) = 0;
      85                 : 
      86                 :   /* void preDestroy (in boolean aDestroyingFrames); */
      87                 :   NS_SCRIPTABLE NS_IMETHOD PreDestroy(bool aDestroyingFrames) = 0;
      88                 : 
      89                 :   /* attribute unsigned long flags; */
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
      91                 :   NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) = 0;
      92                 : 
      93                 :   /* attribute string contentsMIMEType; */
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetContentsMIMEType(char * *aContentsMIMEType) = 0;
      95                 :   NS_SCRIPTABLE NS_IMETHOD SetContentsMIMEType(const char * aContentsMIMEType) = 0;
      96                 : 
      97                 :   /* readonly attribute boolean isDocumentEditable; */
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDocumentEditable(bool *aIsDocumentEditable) = 0;
      99                 : 
     100                 :   /* readonly attribute boolean isSelectionEditable; */
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSelectionEditable(bool *aIsSelectionEditable) = 0;
     102                 : 
     103                 :   /* readonly attribute nsIDOMDocument document; */
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) = 0;
     105                 : 
     106                 :   /* readonly attribute nsIDOMElement rootElement; */
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetRootElement(nsIDOMElement * *aRootElement) = 0;
     108                 : 
     109                 :   /* readonly attribute nsISelectionController selectionController; */
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectionController(nsISelectionController * *aSelectionController) = 0;
     111                 : 
     112                 :   /* void deleteSelection (in short action); */
     113                 :   NS_SCRIPTABLE NS_IMETHOD DeleteSelection(PRInt16 action) = 0;
     114                 : 
     115                 :   /* readonly attribute boolean documentIsEmpty; */
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentIsEmpty(bool *aDocumentIsEmpty) = 0;
     117                 : 
     118                 :   /* readonly attribute boolean documentModified; */
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentModified(bool *aDocumentModified) = 0;
     120                 : 
     121                 :   /* attribute ACString documentCharacterSet; */
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentCharacterSet(nsACString & aDocumentCharacterSet) = 0;
     123                 :   NS_SCRIPTABLE NS_IMETHOD SetDocumentCharacterSet(const nsACString & aDocumentCharacterSet) = 0;
     124                 : 
     125                 :   /* void resetModificationCount (); */
     126                 :   NS_SCRIPTABLE NS_IMETHOD ResetModificationCount(void) = 0;
     127                 : 
     128                 :   /* long getModificationCount (); */
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetModificationCount(PRInt32 *_retval NS_OUTPARAM) = 0;
     130                 : 
     131                 :   /* void incrementModificationCount (in long aModCount); */
     132                 :   NS_SCRIPTABLE NS_IMETHOD IncrementModificationCount(PRInt32 aModCount) = 0;
     133                 : 
     134                 :   /* attribute nsITransactionManager transactionManager; */
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetTransactionManager(nsITransactionManager * *aTransactionManager) = 0;
     136                 :   NS_SCRIPTABLE NS_IMETHOD SetTransactionManager(nsITransactionManager *aTransactionManager) = 0;
     137                 : 
     138                 :   /* void doTransaction (in nsITransaction txn); */
     139                 :   NS_SCRIPTABLE NS_IMETHOD DoTransaction(nsITransaction *txn) = 0;
     140                 : 
     141                 :   /* void enableUndo (in boolean enable); */
     142                 :   NS_SCRIPTABLE NS_IMETHOD EnableUndo(bool enable) = 0;
     143                 : 
     144                 :   /* readonly attribute long numberOfUndoItems; */
     145                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfUndoItems(PRInt32 *aNumberOfUndoItems) = 0;
     146                 : 
     147                 :   /* readonly attribute long numberOfRedoItems; */
     148                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfRedoItems(PRInt32 *aNumberOfRedoItems) = 0;
     149                 : 
     150                 :   /* void undo (in unsigned long count); */
     151                 :   NS_SCRIPTABLE NS_IMETHOD Undo(PRUint32 count) = 0;
     152                 : 
     153                 :   /* void canUndo (out boolean isEnabled, out boolean canUndo); */
     154                 :   NS_SCRIPTABLE NS_IMETHOD CanUndo(bool *isEnabled NS_OUTPARAM, bool *canUndo NS_OUTPARAM) = 0;
     155                 : 
     156                 :   /* void redo (in unsigned long count); */
     157                 :   NS_SCRIPTABLE NS_IMETHOD Redo(PRUint32 count) = 0;
     158                 : 
     159                 :   /* void canRedo (out boolean isEnabled, out boolean canRedo); */
     160                 :   NS_SCRIPTABLE NS_IMETHOD CanRedo(bool *isEnabled NS_OUTPARAM, bool *canRedo NS_OUTPARAM) = 0;
     161                 : 
     162                 :   /* void beginTransaction (); */
     163                 :   NS_SCRIPTABLE NS_IMETHOD BeginTransaction(void) = 0;
     164                 : 
     165                 :   /* void endTransaction (); */
     166                 :   NS_SCRIPTABLE NS_IMETHOD EndTransaction(void) = 0;
     167                 : 
     168                 :   /* void beginPlaceHolderTransaction (in nsIAtom name); */
     169                 :   NS_SCRIPTABLE NS_IMETHOD BeginPlaceHolderTransaction(nsIAtom *name) = 0;
     170                 : 
     171                 :   /* void endPlaceHolderTransaction (); */
     172                 :   NS_SCRIPTABLE NS_IMETHOD EndPlaceHolderTransaction(void) = 0;
     173                 : 
     174                 :   /* boolean shouldTxnSetSelection (); */
     175                 :   NS_SCRIPTABLE NS_IMETHOD ShouldTxnSetSelection(bool *_retval NS_OUTPARAM) = 0;
     176                 : 
     177                 :   /* void setShouldTxnSetSelection (in boolean should); */
     178                 :   NS_SCRIPTABLE NS_IMETHOD SetShouldTxnSetSelection(bool should) = 0;
     179                 : 
     180                 :   /* nsIInlineSpellChecker getInlineSpellChecker (in boolean autoCreate); */
     181                 :   NS_SCRIPTABLE NS_IMETHOD GetInlineSpellChecker(bool autoCreate, nsIInlineSpellChecker * *_retval NS_OUTPARAM) = 0;
     182                 : 
     183                 :   /* void syncRealTimeSpell (); */
     184                 :   NS_SCRIPTABLE NS_IMETHOD SyncRealTimeSpell(void) = 0;
     185                 : 
     186                 :   /* void setSpellcheckUserOverride (in boolean enable); */
     187                 :   NS_SCRIPTABLE NS_IMETHOD SetSpellcheckUserOverride(bool enable) = 0;
     188                 : 
     189                 :   /* void cut (); */
     190                 :   NS_SCRIPTABLE NS_IMETHOD Cut(void) = 0;
     191                 : 
     192                 :   /* boolean canCut (); */
     193                 :   NS_SCRIPTABLE NS_IMETHOD CanCut(bool *_retval NS_OUTPARAM) = 0;
     194                 : 
     195                 :   /* void copy (); */
     196                 :   NS_SCRIPTABLE NS_IMETHOD Copy(void) = 0;
     197                 : 
     198                 :   /* boolean canCopy (); */
     199                 :   NS_SCRIPTABLE NS_IMETHOD CanCopy(bool *_retval NS_OUTPARAM) = 0;
     200                 : 
     201                 :   /* void paste (in long aSelectionType); */
     202                 :   NS_SCRIPTABLE NS_IMETHOD Paste(PRInt32 aSelectionType) = 0;
     203                 : 
     204                 :   /* void pasteTransferable (in nsITransferable aTransferable); */
     205                 :   NS_SCRIPTABLE NS_IMETHOD PasteTransferable(nsITransferable *aTransferable) = 0;
     206                 : 
     207                 :   /* boolean canPaste (in long aSelectionType); */
     208                 :   NS_SCRIPTABLE NS_IMETHOD CanPaste(PRInt32 aSelectionType, bool *_retval NS_OUTPARAM) = 0;
     209                 : 
     210                 :   /* boolean canPasteTransferable ([optional] in nsITransferable aTransferable); */
     211                 :   NS_SCRIPTABLE NS_IMETHOD CanPasteTransferable(nsITransferable *aTransferable, bool *_retval NS_OUTPARAM) = 0;
     212                 : 
     213                 :   /* void selectAll (); */
     214                 :   NS_SCRIPTABLE NS_IMETHOD SelectAll(void) = 0;
     215                 : 
     216                 :   /* void beginningOfDocument (); */
     217                 :   NS_SCRIPTABLE NS_IMETHOD BeginningOfDocument(void) = 0;
     218                 : 
     219                 :   /* void endOfDocument (); */
     220                 :   NS_SCRIPTABLE NS_IMETHOD EndOfDocument(void) = 0;
     221                 : 
     222                 :   /* void setAttribute (in nsIDOMElement aElement, in AString attributestr, in AString attvalue); */
     223                 :   NS_SCRIPTABLE NS_IMETHOD SetAttribute(nsIDOMElement *aElement, const nsAString & attributestr, const nsAString & attvalue) = 0;
     224                 : 
     225                 :   /* boolean getAttributeValue (in nsIDOMElement aElement, in AString attributestr, out AString resultValue); */
     226                 :   NS_SCRIPTABLE NS_IMETHOD GetAttributeValue(nsIDOMElement *aElement, const nsAString & attributestr, nsAString & resultValue NS_OUTPARAM, bool *_retval NS_OUTPARAM) = 0;
     227                 : 
     228                 :   /* void removeAttribute (in nsIDOMElement aElement, in AString aAttribute); */
     229                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAttribute(nsIDOMElement *aElement, const nsAString & aAttribute) = 0;
     230                 : 
     231                 :   /* void cloneAttribute (in AString aAttribute, in nsIDOMNode aDestNode, in nsIDOMNode aSourceNode); */
     232                 :   NS_SCRIPTABLE NS_IMETHOD CloneAttribute(const nsAString & aAttribute, nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode) = 0;
     233                 : 
     234                 :   /* void cloneAttributes (in nsIDOMNode destNode, in nsIDOMNode sourceNode); */
     235                 :   NS_SCRIPTABLE NS_IMETHOD CloneAttributes(nsIDOMNode *destNode, nsIDOMNode *sourceNode) = 0;
     236                 : 
     237                 :   /* nsIDOMNode createNode (in AString tag, in nsIDOMNode parent, in long position); */
     238                 :   NS_SCRIPTABLE NS_IMETHOD CreateNode(const nsAString & tag, nsIDOMNode *parent, PRInt32 position, nsIDOMNode * *_retval NS_OUTPARAM) = 0;
     239                 : 
     240                 :   /* void insertNode (in nsIDOMNode node, in nsIDOMNode parent, in long aPosition); */
     241                 :   NS_SCRIPTABLE NS_IMETHOD InsertNode(nsIDOMNode *node, nsIDOMNode *parent, PRInt32 aPosition) = 0;
     242                 : 
     243                 :   /* void splitNode (in nsIDOMNode existingRightNode, in long offset, out nsIDOMNode newLeftNode); */
     244                 :   NS_SCRIPTABLE NS_IMETHOD SplitNode(nsIDOMNode *existingRightNode, PRInt32 offset, nsIDOMNode * *newLeftNode NS_OUTPARAM) = 0;
     245                 : 
     246                 :   /* void joinNodes (in nsIDOMNode leftNode, in nsIDOMNode rightNode, in nsIDOMNode parent); */
     247                 :   NS_SCRIPTABLE NS_IMETHOD JoinNodes(nsIDOMNode *leftNode, nsIDOMNode *rightNode, nsIDOMNode *parent) = 0;
     248                 : 
     249                 :   /* void deleteNode (in nsIDOMNode child); */
     250                 :   NS_SCRIPTABLE NS_IMETHOD DeleteNode(nsIDOMNode *child) = 0;
     251                 : 
     252                 :   /* void markNodeDirty (in nsIDOMNode node); */
     253                 :   NS_SCRIPTABLE NS_IMETHOD MarkNodeDirty(nsIDOMNode *node) = 0;
     254                 : 
     255                 :   /* void switchTextDirection (); */
     256                 :   NS_SCRIPTABLE NS_IMETHOD SwitchTextDirection(void) = 0;
     257                 : 
     258                 :   /* AString outputToString (in AString formatType, in unsigned long flags); */
     259                 :   NS_SCRIPTABLE NS_IMETHOD OutputToString(const nsAString & formatType, PRUint32 flags, nsAString & _retval NS_OUTPARAM) = 0;
     260                 : 
     261                 :   /* void outputToStream (in nsIOutputStream aStream, in AString formatType, in ACString charsetOverride, in unsigned long flags); */
     262                 :   NS_SCRIPTABLE NS_IMETHOD OutputToStream(nsIOutputStream *aStream, const nsAString & formatType, const nsACString & charsetOverride, PRUint32 flags) = 0;
     263                 : 
     264                 :   /* void addEditorObserver (in nsIEditorObserver observer); */
     265                 :   NS_SCRIPTABLE NS_IMETHOD AddEditorObserver(nsIEditorObserver *observer) = 0;
     266                 : 
     267                 :   /* void removeEditorObserver (in nsIEditorObserver observer); */
     268                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEditorObserver(nsIEditorObserver *observer) = 0;
     269                 : 
     270                 :   /* void addEditActionListener (in nsIEditActionListener listener); */
     271                 :   NS_SCRIPTABLE NS_IMETHOD AddEditActionListener(nsIEditActionListener *listener) = 0;
     272                 : 
     273                 :   /* void removeEditActionListener (in nsIEditActionListener listener); */
     274                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEditActionListener(nsIEditActionListener *listener) = 0;
     275                 : 
     276                 :   /* void addDocumentStateListener (in nsIDocumentStateListener listener); */
     277                 :   NS_SCRIPTABLE NS_IMETHOD AddDocumentStateListener(nsIDocumentStateListener *listener) = 0;
     278                 : 
     279                 :   /* void removeDocumentStateListener (in nsIDocumentStateListener listener); */
     280                 :   NS_SCRIPTABLE NS_IMETHOD RemoveDocumentStateListener(nsIDocumentStateListener *listener) = 0;
     281                 : 
     282                 :   /* void dumpContentTree (); */
     283                 :   NS_SCRIPTABLE NS_IMETHOD DumpContentTree(void) = 0;
     284                 : 
     285                 :   /* void debugDumpContent (); */
     286                 :   NS_SCRIPTABLE NS_IMETHOD DebugDumpContent(void) = 0;
     287                 : 
     288                 :   /* void debugUnitTests (out long outNumTests, out long outNumTestsFailed); */
     289                 :   NS_SCRIPTABLE NS_IMETHOD DebugUnitTests(PRInt32 *outNumTests NS_OUTPARAM, PRInt32 *outNumTestsFailed NS_OUTPARAM) = 0;
     290                 : 
     291                 :   /* [notxpcom] boolean isModifiableNode (in nsIDOMNode aNode); */
     292                 :   NS_IMETHOD_(bool) IsModifiableNode(nsIDOMNode *aNode) = 0;
     293                 : 
     294                 :   /* readonly attribute boolean lastKeypressEventTrusted; */
     295                 :   NS_SCRIPTABLE NS_IMETHOD GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted) = 0;
     296                 : 
     297                 : };
     298                 : 
     299                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditor, NS_IEDITOR_IID)
     300                 : 
     301                 : /* Use this macro when declaring classes that implement this interface. */
     302                 : #define NS_DECL_NSIEDITOR \
     303                 :   NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *aSelection); \
     304                 :   NS_IMETHOD Init(nsIDOMDocument *doc, nsIContent *aRoot, nsISelectionController *aSelCon, PRUint32 aFlags); \
     305                 :   NS_SCRIPTABLE NS_IMETHOD SetAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, const nsAString & sourceAttrValue, bool aSuppressTransaction); \
     306                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, bool aSuppressTransaction); \
     307                 :   NS_SCRIPTABLE NS_IMETHOD PostCreate(void); \
     308                 :   NS_SCRIPTABLE NS_IMETHOD PreDestroy(bool aDestroyingFrames); \
     309                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags); \
     310                 :   NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags); \
     311                 :   NS_SCRIPTABLE NS_IMETHOD GetContentsMIMEType(char * *aContentsMIMEType); \
     312                 :   NS_SCRIPTABLE NS_IMETHOD SetContentsMIMEType(const char * aContentsMIMEType); \
     313                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDocumentEditable(bool *aIsDocumentEditable); \
     314                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSelectionEditable(bool *aIsSelectionEditable); \
     315                 :   NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument); \
     316                 :   NS_SCRIPTABLE NS_IMETHOD GetRootElement(nsIDOMElement * *aRootElement); \
     317                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectionController(nsISelectionController * *aSelectionController); \
     318                 :   NS_SCRIPTABLE NS_IMETHOD DeleteSelection(PRInt16 action); \
     319                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentIsEmpty(bool *aDocumentIsEmpty); \
     320                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentModified(bool *aDocumentModified); \
     321                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentCharacterSet(nsACString & aDocumentCharacterSet); \
     322                 :   NS_SCRIPTABLE NS_IMETHOD SetDocumentCharacterSet(const nsACString & aDocumentCharacterSet); \
     323                 :   NS_SCRIPTABLE NS_IMETHOD ResetModificationCount(void); \
     324                 :   NS_SCRIPTABLE NS_IMETHOD GetModificationCount(PRInt32 *_retval NS_OUTPARAM); \
     325                 :   NS_SCRIPTABLE NS_IMETHOD IncrementModificationCount(PRInt32 aModCount); \
     326                 :   NS_SCRIPTABLE NS_IMETHOD GetTransactionManager(nsITransactionManager * *aTransactionManager); \
     327                 :   NS_SCRIPTABLE NS_IMETHOD SetTransactionManager(nsITransactionManager *aTransactionManager); \
     328                 :   NS_SCRIPTABLE NS_IMETHOD DoTransaction(nsITransaction *txn); \
     329                 :   NS_SCRIPTABLE NS_IMETHOD EnableUndo(bool enable); \
     330                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfUndoItems(PRInt32 *aNumberOfUndoItems); \
     331                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfRedoItems(PRInt32 *aNumberOfRedoItems); \
     332                 :   NS_SCRIPTABLE NS_IMETHOD Undo(PRUint32 count); \
     333                 :   NS_SCRIPTABLE NS_IMETHOD CanUndo(bool *isEnabled NS_OUTPARAM, bool *canUndo NS_OUTPARAM); \
     334                 :   NS_SCRIPTABLE NS_IMETHOD Redo(PRUint32 count); \
     335                 :   NS_SCRIPTABLE NS_IMETHOD CanRedo(bool *isEnabled NS_OUTPARAM, bool *canRedo NS_OUTPARAM); \
     336                 :   NS_SCRIPTABLE NS_IMETHOD BeginTransaction(void); \
     337                 :   NS_SCRIPTABLE NS_IMETHOD EndTransaction(void); \
     338                 :   NS_SCRIPTABLE NS_IMETHOD BeginPlaceHolderTransaction(nsIAtom *name); \
     339                 :   NS_SCRIPTABLE NS_IMETHOD EndPlaceHolderTransaction(void); \
     340                 :   NS_SCRIPTABLE NS_IMETHOD ShouldTxnSetSelection(bool *_retval NS_OUTPARAM); \
     341                 :   NS_SCRIPTABLE NS_IMETHOD SetShouldTxnSetSelection(bool should); \
     342                 :   NS_SCRIPTABLE NS_IMETHOD GetInlineSpellChecker(bool autoCreate, nsIInlineSpellChecker * *_retval NS_OUTPARAM); \
     343                 :   NS_SCRIPTABLE NS_IMETHOD SyncRealTimeSpell(void); \
     344                 :   NS_SCRIPTABLE NS_IMETHOD SetSpellcheckUserOverride(bool enable); \
     345                 :   NS_SCRIPTABLE NS_IMETHOD Cut(void); \
     346                 :   NS_SCRIPTABLE NS_IMETHOD CanCut(bool *_retval NS_OUTPARAM); \
     347                 :   NS_SCRIPTABLE NS_IMETHOD Copy(void); \
     348                 :   NS_SCRIPTABLE NS_IMETHOD CanCopy(bool *_retval NS_OUTPARAM); \
     349                 :   NS_SCRIPTABLE NS_IMETHOD Paste(PRInt32 aSelectionType); \
     350                 :   NS_SCRIPTABLE NS_IMETHOD PasteTransferable(nsITransferable *aTransferable); \
     351                 :   NS_SCRIPTABLE NS_IMETHOD CanPaste(PRInt32 aSelectionType, bool *_retval NS_OUTPARAM); \
     352                 :   NS_SCRIPTABLE NS_IMETHOD CanPasteTransferable(nsITransferable *aTransferable, bool *_retval NS_OUTPARAM); \
     353                 :   NS_SCRIPTABLE NS_IMETHOD SelectAll(void); \
     354                 :   NS_SCRIPTABLE NS_IMETHOD BeginningOfDocument(void); \
     355                 :   NS_SCRIPTABLE NS_IMETHOD EndOfDocument(void); \
     356                 :   NS_SCRIPTABLE NS_IMETHOD SetAttribute(nsIDOMElement *aElement, const nsAString & attributestr, const nsAString & attvalue); \
     357                 :   NS_SCRIPTABLE NS_IMETHOD GetAttributeValue(nsIDOMElement *aElement, const nsAString & attributestr, nsAString & resultValue NS_OUTPARAM, bool *_retval NS_OUTPARAM); \
     358                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAttribute(nsIDOMElement *aElement, const nsAString & aAttribute); \
     359                 :   NS_SCRIPTABLE NS_IMETHOD CloneAttribute(const nsAString & aAttribute, nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode); \
     360                 :   NS_SCRIPTABLE NS_IMETHOD CloneAttributes(nsIDOMNode *destNode, nsIDOMNode *sourceNode); \
     361                 :   NS_SCRIPTABLE NS_IMETHOD CreateNode(const nsAString & tag, nsIDOMNode *parent, PRInt32 position, nsIDOMNode * *_retval NS_OUTPARAM); \
     362                 :   NS_SCRIPTABLE NS_IMETHOD InsertNode(nsIDOMNode *node, nsIDOMNode *parent, PRInt32 aPosition); \
     363                 :   NS_SCRIPTABLE NS_IMETHOD SplitNode(nsIDOMNode *existingRightNode, PRInt32 offset, nsIDOMNode * *newLeftNode NS_OUTPARAM); \
     364                 :   NS_SCRIPTABLE NS_IMETHOD JoinNodes(nsIDOMNode *leftNode, nsIDOMNode *rightNode, nsIDOMNode *parent); \
     365                 :   NS_SCRIPTABLE NS_IMETHOD DeleteNode(nsIDOMNode *child); \
     366                 :   NS_SCRIPTABLE NS_IMETHOD MarkNodeDirty(nsIDOMNode *node); \
     367                 :   NS_SCRIPTABLE NS_IMETHOD SwitchTextDirection(void); \
     368                 :   NS_SCRIPTABLE NS_IMETHOD OutputToString(const nsAString & formatType, PRUint32 flags, nsAString & _retval NS_OUTPARAM); \
     369                 :   NS_SCRIPTABLE NS_IMETHOD OutputToStream(nsIOutputStream *aStream, const nsAString & formatType, const nsACString & charsetOverride, PRUint32 flags); \
     370                 :   NS_SCRIPTABLE NS_IMETHOD AddEditorObserver(nsIEditorObserver *observer); \
     371                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEditorObserver(nsIEditorObserver *observer); \
     372                 :   NS_SCRIPTABLE NS_IMETHOD AddEditActionListener(nsIEditActionListener *listener); \
     373                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEditActionListener(nsIEditActionListener *listener); \
     374                 :   NS_SCRIPTABLE NS_IMETHOD AddDocumentStateListener(nsIDocumentStateListener *listener); \
     375                 :   NS_SCRIPTABLE NS_IMETHOD RemoveDocumentStateListener(nsIDocumentStateListener *listener); \
     376                 :   NS_SCRIPTABLE NS_IMETHOD DumpContentTree(void); \
     377                 :   NS_SCRIPTABLE NS_IMETHOD DebugDumpContent(void); \
     378                 :   NS_SCRIPTABLE NS_IMETHOD DebugUnitTests(PRInt32 *outNumTests NS_OUTPARAM, PRInt32 *outNumTestsFailed NS_OUTPARAM); \
     379                 :   NS_IMETHOD_(bool) IsModifiableNode(nsIDOMNode *aNode); \
     380                 :   NS_SCRIPTABLE NS_IMETHOD GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted); 
     381                 : 
     382                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     383                 : #define NS_FORWARD_NSIEDITOR(_to) \
     384                 :   NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *aSelection) { return _to GetSelection(aSelection); } \
     385                 :   NS_IMETHOD Init(nsIDOMDocument *doc, nsIContent *aRoot, nsISelectionController *aSelCon, PRUint32 aFlags) { return _to Init(doc, aRoot, aSelCon, aFlags); } \
     386                 :   NS_SCRIPTABLE NS_IMETHOD SetAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, const nsAString & sourceAttrValue, bool aSuppressTransaction) { return _to SetAttributeOrEquivalent(element, sourceAttrName, sourceAttrValue, aSuppressTransaction); } \
     387                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, bool aSuppressTransaction) { return _to RemoveAttributeOrEquivalent(element, sourceAttrName, aSuppressTransaction); } \
     388                 :   NS_SCRIPTABLE NS_IMETHOD PostCreate(void) { return _to PostCreate(); } \
     389                 :   NS_SCRIPTABLE NS_IMETHOD PreDestroy(bool aDestroyingFrames) { return _to PreDestroy(aDestroyingFrames); } \
     390                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return _to GetFlags(aFlags); } \
     391                 :   NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) { return _to SetFlags(aFlags); } \
     392                 :   NS_SCRIPTABLE NS_IMETHOD GetContentsMIMEType(char * *aContentsMIMEType) { return _to GetContentsMIMEType(aContentsMIMEType); } \
     393                 :   NS_SCRIPTABLE NS_IMETHOD SetContentsMIMEType(const char * aContentsMIMEType) { return _to SetContentsMIMEType(aContentsMIMEType); } \
     394                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDocumentEditable(bool *aIsDocumentEditable) { return _to GetIsDocumentEditable(aIsDocumentEditable); } \
     395                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSelectionEditable(bool *aIsSelectionEditable) { return _to GetIsSelectionEditable(aIsSelectionEditable); } \
     396                 :   NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return _to GetDocument(aDocument); } \
     397                 :   NS_SCRIPTABLE NS_IMETHOD GetRootElement(nsIDOMElement * *aRootElement) { return _to GetRootElement(aRootElement); } \
     398                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectionController(nsISelectionController * *aSelectionController) { return _to GetSelectionController(aSelectionController); } \
     399                 :   NS_SCRIPTABLE NS_IMETHOD DeleteSelection(PRInt16 action) { return _to DeleteSelection(action); } \
     400                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentIsEmpty(bool *aDocumentIsEmpty) { return _to GetDocumentIsEmpty(aDocumentIsEmpty); } \
     401                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentModified(bool *aDocumentModified) { return _to GetDocumentModified(aDocumentModified); } \
     402                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentCharacterSet(nsACString & aDocumentCharacterSet) { return _to GetDocumentCharacterSet(aDocumentCharacterSet); } \
     403                 :   NS_SCRIPTABLE NS_IMETHOD SetDocumentCharacterSet(const nsACString & aDocumentCharacterSet) { return _to SetDocumentCharacterSet(aDocumentCharacterSet); } \
     404                 :   NS_SCRIPTABLE NS_IMETHOD ResetModificationCount(void) { return _to ResetModificationCount(); } \
     405                 :   NS_SCRIPTABLE NS_IMETHOD GetModificationCount(PRInt32 *_retval NS_OUTPARAM) { return _to GetModificationCount(_retval); } \
     406                 :   NS_SCRIPTABLE NS_IMETHOD IncrementModificationCount(PRInt32 aModCount) { return _to IncrementModificationCount(aModCount); } \
     407                 :   NS_SCRIPTABLE NS_IMETHOD GetTransactionManager(nsITransactionManager * *aTransactionManager) { return _to GetTransactionManager(aTransactionManager); } \
     408                 :   NS_SCRIPTABLE NS_IMETHOD SetTransactionManager(nsITransactionManager *aTransactionManager) { return _to SetTransactionManager(aTransactionManager); } \
     409                 :   NS_SCRIPTABLE NS_IMETHOD DoTransaction(nsITransaction *txn) { return _to DoTransaction(txn); } \
     410                 :   NS_SCRIPTABLE NS_IMETHOD EnableUndo(bool enable) { return _to EnableUndo(enable); } \
     411                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfUndoItems(PRInt32 *aNumberOfUndoItems) { return _to GetNumberOfUndoItems(aNumberOfUndoItems); } \
     412                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfRedoItems(PRInt32 *aNumberOfRedoItems) { return _to GetNumberOfRedoItems(aNumberOfRedoItems); } \
     413                 :   NS_SCRIPTABLE NS_IMETHOD Undo(PRUint32 count) { return _to Undo(count); } \
     414                 :   NS_SCRIPTABLE NS_IMETHOD CanUndo(bool *isEnabled NS_OUTPARAM, bool *canUndo NS_OUTPARAM) { return _to CanUndo(isEnabled, canUndo); } \
     415                 :   NS_SCRIPTABLE NS_IMETHOD Redo(PRUint32 count) { return _to Redo(count); } \
     416                 :   NS_SCRIPTABLE NS_IMETHOD CanRedo(bool *isEnabled NS_OUTPARAM, bool *canRedo NS_OUTPARAM) { return _to CanRedo(isEnabled, canRedo); } \
     417                 :   NS_SCRIPTABLE NS_IMETHOD BeginTransaction(void) { return _to BeginTransaction(); } \
     418                 :   NS_SCRIPTABLE NS_IMETHOD EndTransaction(void) { return _to EndTransaction(); } \
     419                 :   NS_SCRIPTABLE NS_IMETHOD BeginPlaceHolderTransaction(nsIAtom *name) { return _to BeginPlaceHolderTransaction(name); } \
     420                 :   NS_SCRIPTABLE NS_IMETHOD EndPlaceHolderTransaction(void) { return _to EndPlaceHolderTransaction(); } \
     421                 :   NS_SCRIPTABLE NS_IMETHOD ShouldTxnSetSelection(bool *_retval NS_OUTPARAM) { return _to ShouldTxnSetSelection(_retval); } \
     422                 :   NS_SCRIPTABLE NS_IMETHOD SetShouldTxnSetSelection(bool should) { return _to SetShouldTxnSetSelection(should); } \
     423                 :   NS_SCRIPTABLE NS_IMETHOD GetInlineSpellChecker(bool autoCreate, nsIInlineSpellChecker * *_retval NS_OUTPARAM) { return _to GetInlineSpellChecker(autoCreate, _retval); } \
     424                 :   NS_SCRIPTABLE NS_IMETHOD SyncRealTimeSpell(void) { return _to SyncRealTimeSpell(); } \
     425                 :   NS_SCRIPTABLE NS_IMETHOD SetSpellcheckUserOverride(bool enable) { return _to SetSpellcheckUserOverride(enable); } \
     426                 :   NS_SCRIPTABLE NS_IMETHOD Cut(void) { return _to Cut(); } \
     427                 :   NS_SCRIPTABLE NS_IMETHOD CanCut(bool *_retval NS_OUTPARAM) { return _to CanCut(_retval); } \
     428                 :   NS_SCRIPTABLE NS_IMETHOD Copy(void) { return _to Copy(); } \
     429                 :   NS_SCRIPTABLE NS_IMETHOD CanCopy(bool *_retval NS_OUTPARAM) { return _to CanCopy(_retval); } \
     430                 :   NS_SCRIPTABLE NS_IMETHOD Paste(PRInt32 aSelectionType) { return _to Paste(aSelectionType); } \
     431                 :   NS_SCRIPTABLE NS_IMETHOD PasteTransferable(nsITransferable *aTransferable) { return _to PasteTransferable(aTransferable); } \
     432                 :   NS_SCRIPTABLE NS_IMETHOD CanPaste(PRInt32 aSelectionType, bool *_retval NS_OUTPARAM) { return _to CanPaste(aSelectionType, _retval); } \
     433                 :   NS_SCRIPTABLE NS_IMETHOD CanPasteTransferable(nsITransferable *aTransferable, bool *_retval NS_OUTPARAM) { return _to CanPasteTransferable(aTransferable, _retval); } \
     434                 :   NS_SCRIPTABLE NS_IMETHOD SelectAll(void) { return _to SelectAll(); } \
     435                 :   NS_SCRIPTABLE NS_IMETHOD BeginningOfDocument(void) { return _to BeginningOfDocument(); } \
     436                 :   NS_SCRIPTABLE NS_IMETHOD EndOfDocument(void) { return _to EndOfDocument(); } \
     437                 :   NS_SCRIPTABLE NS_IMETHOD SetAttribute(nsIDOMElement *aElement, const nsAString & attributestr, const nsAString & attvalue) { return _to SetAttribute(aElement, attributestr, attvalue); } \
     438                 :   NS_SCRIPTABLE NS_IMETHOD GetAttributeValue(nsIDOMElement *aElement, const nsAString & attributestr, nsAString & resultValue NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return _to GetAttributeValue(aElement, attributestr, resultValue, _retval); } \
     439                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAttribute(nsIDOMElement *aElement, const nsAString & aAttribute) { return _to RemoveAttribute(aElement, aAttribute); } \
     440                 :   NS_SCRIPTABLE NS_IMETHOD CloneAttribute(const nsAString & aAttribute, nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode) { return _to CloneAttribute(aAttribute, aDestNode, aSourceNode); } \
     441                 :   NS_SCRIPTABLE NS_IMETHOD CloneAttributes(nsIDOMNode *destNode, nsIDOMNode *sourceNode) { return _to CloneAttributes(destNode, sourceNode); } \
     442                 :   NS_SCRIPTABLE NS_IMETHOD CreateNode(const nsAString & tag, nsIDOMNode *parent, PRInt32 position, nsIDOMNode * *_retval NS_OUTPARAM) { return _to CreateNode(tag, parent, position, _retval); } \
     443                 :   NS_SCRIPTABLE NS_IMETHOD InsertNode(nsIDOMNode *node, nsIDOMNode *parent, PRInt32 aPosition) { return _to InsertNode(node, parent, aPosition); } \
     444                 :   NS_SCRIPTABLE NS_IMETHOD SplitNode(nsIDOMNode *existingRightNode, PRInt32 offset, nsIDOMNode * *newLeftNode NS_OUTPARAM) { return _to SplitNode(existingRightNode, offset, newLeftNode); } \
     445                 :   NS_SCRIPTABLE NS_IMETHOD JoinNodes(nsIDOMNode *leftNode, nsIDOMNode *rightNode, nsIDOMNode *parent) { return _to JoinNodes(leftNode, rightNode, parent); } \
     446                 :   NS_SCRIPTABLE NS_IMETHOD DeleteNode(nsIDOMNode *child) { return _to DeleteNode(child); } \
     447                 :   NS_SCRIPTABLE NS_IMETHOD MarkNodeDirty(nsIDOMNode *node) { return _to MarkNodeDirty(node); } \
     448                 :   NS_SCRIPTABLE NS_IMETHOD SwitchTextDirection(void) { return _to SwitchTextDirection(); } \
     449                 :   NS_SCRIPTABLE NS_IMETHOD OutputToString(const nsAString & formatType, PRUint32 flags, nsAString & _retval NS_OUTPARAM) { return _to OutputToString(formatType, flags, _retval); } \
     450                 :   NS_SCRIPTABLE NS_IMETHOD OutputToStream(nsIOutputStream *aStream, const nsAString & formatType, const nsACString & charsetOverride, PRUint32 flags) { return _to OutputToStream(aStream, formatType, charsetOverride, flags); } \
     451                 :   NS_SCRIPTABLE NS_IMETHOD AddEditorObserver(nsIEditorObserver *observer) { return _to AddEditorObserver(observer); } \
     452                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEditorObserver(nsIEditorObserver *observer) { return _to RemoveEditorObserver(observer); } \
     453                 :   NS_SCRIPTABLE NS_IMETHOD AddEditActionListener(nsIEditActionListener *listener) { return _to AddEditActionListener(listener); } \
     454                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEditActionListener(nsIEditActionListener *listener) { return _to RemoveEditActionListener(listener); } \
     455                 :   NS_SCRIPTABLE NS_IMETHOD AddDocumentStateListener(nsIDocumentStateListener *listener) { return _to AddDocumentStateListener(listener); } \
     456                 :   NS_SCRIPTABLE NS_IMETHOD RemoveDocumentStateListener(nsIDocumentStateListener *listener) { return _to RemoveDocumentStateListener(listener); } \
     457                 :   NS_SCRIPTABLE NS_IMETHOD DumpContentTree(void) { return _to DumpContentTree(); } \
     458                 :   NS_SCRIPTABLE NS_IMETHOD DebugDumpContent(void) { return _to DebugDumpContent(); } \
     459                 :   NS_SCRIPTABLE NS_IMETHOD DebugUnitTests(PRInt32 *outNumTests NS_OUTPARAM, PRInt32 *outNumTestsFailed NS_OUTPARAM) { return _to DebugUnitTests(outNumTests, outNumTestsFailed); } \
     460                 :   NS_IMETHOD_(bool) IsModifiableNode(nsIDOMNode *aNode) { return _to IsModifiableNode(aNode); } \
     461                 :   NS_SCRIPTABLE NS_IMETHOD GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted) { return _to GetLastKeypressEventTrusted(aLastKeypressEventTrusted); } 
     462                 : 
     463                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     464                 : #define NS_FORWARD_SAFE_NSIEDITOR(_to) \
     465                 :   NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *aSelection) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelection(aSelection); } \
     466                 :   NS_IMETHOD Init(nsIDOMDocument *doc, nsIContent *aRoot, nsISelectionController *aSelCon, PRUint32 aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(doc, aRoot, aSelCon, aFlags); } \
     467                 :   NS_SCRIPTABLE NS_IMETHOD SetAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, const nsAString & sourceAttrValue, bool aSuppressTransaction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttributeOrEquivalent(element, sourceAttrName, sourceAttrValue, aSuppressTransaction); } \
     468                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, bool aSuppressTransaction) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAttributeOrEquivalent(element, sourceAttrName, aSuppressTransaction); } \
     469                 :   NS_SCRIPTABLE NS_IMETHOD PostCreate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->PostCreate(); } \
     470                 :   NS_SCRIPTABLE NS_IMETHOD PreDestroy(bool aDestroyingFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->PreDestroy(aDestroyingFrames); } \
     471                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
     472                 :   NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFlags(aFlags); } \
     473                 :   NS_SCRIPTABLE NS_IMETHOD GetContentsMIMEType(char * *aContentsMIMEType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentsMIMEType(aContentsMIMEType); } \
     474                 :   NS_SCRIPTABLE NS_IMETHOD SetContentsMIMEType(const char * aContentsMIMEType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentsMIMEType(aContentsMIMEType); } \
     475                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDocumentEditable(bool *aIsDocumentEditable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDocumentEditable(aIsDocumentEditable); } \
     476                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSelectionEditable(bool *aIsSelectionEditable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSelectionEditable(aIsSelectionEditable); } \
     477                 :   NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \
     478                 :   NS_SCRIPTABLE NS_IMETHOD GetRootElement(nsIDOMElement * *aRootElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootElement(aRootElement); } \
     479                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectionController(nsISelectionController * *aSelectionController) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionController(aSelectionController); } \
     480                 :   NS_SCRIPTABLE NS_IMETHOD DeleteSelection(PRInt16 action) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteSelection(action); } \
     481                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentIsEmpty(bool *aDocumentIsEmpty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentIsEmpty(aDocumentIsEmpty); } \
     482                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentModified(bool *aDocumentModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentModified(aDocumentModified); } \
     483                 :   NS_SCRIPTABLE NS_IMETHOD GetDocumentCharacterSet(nsACString & aDocumentCharacterSet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentCharacterSet(aDocumentCharacterSet); } \
     484                 :   NS_SCRIPTABLE NS_IMETHOD SetDocumentCharacterSet(const nsACString & aDocumentCharacterSet) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocumentCharacterSet(aDocumentCharacterSet); } \
     485                 :   NS_SCRIPTABLE NS_IMETHOD ResetModificationCount(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetModificationCount(); } \
     486                 :   NS_SCRIPTABLE NS_IMETHOD GetModificationCount(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetModificationCount(_retval); } \
     487                 :   NS_SCRIPTABLE NS_IMETHOD IncrementModificationCount(PRInt32 aModCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->IncrementModificationCount(aModCount); } \
     488                 :   NS_SCRIPTABLE NS_IMETHOD GetTransactionManager(nsITransactionManager * *aTransactionManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransactionManager(aTransactionManager); } \
     489                 :   NS_SCRIPTABLE NS_IMETHOD SetTransactionManager(nsITransactionManager *aTransactionManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTransactionManager(aTransactionManager); } \
     490                 :   NS_SCRIPTABLE NS_IMETHOD DoTransaction(nsITransaction *txn) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoTransaction(txn); } \
     491                 :   NS_SCRIPTABLE NS_IMETHOD EnableUndo(bool enable) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableUndo(enable); } \
     492                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfUndoItems(PRInt32 *aNumberOfUndoItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfUndoItems(aNumberOfUndoItems); } \
     493                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfRedoItems(PRInt32 *aNumberOfRedoItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfRedoItems(aNumberOfRedoItems); } \
     494                 :   NS_SCRIPTABLE NS_IMETHOD Undo(PRUint32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->Undo(count); } \
     495                 :   NS_SCRIPTABLE NS_IMETHOD CanUndo(bool *isEnabled NS_OUTPARAM, bool *canUndo NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanUndo(isEnabled, canUndo); } \
     496                 :   NS_SCRIPTABLE NS_IMETHOD Redo(PRUint32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->Redo(count); } \
     497                 :   NS_SCRIPTABLE NS_IMETHOD CanRedo(bool *isEnabled NS_OUTPARAM, bool *canRedo NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanRedo(isEnabled, canRedo); } \
     498                 :   NS_SCRIPTABLE NS_IMETHOD BeginTransaction(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginTransaction(); } \
     499                 :   NS_SCRIPTABLE NS_IMETHOD EndTransaction(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndTransaction(); } \
     500                 :   NS_SCRIPTABLE NS_IMETHOD BeginPlaceHolderTransaction(nsIAtom *name) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginPlaceHolderTransaction(name); } \
     501                 :   NS_SCRIPTABLE NS_IMETHOD EndPlaceHolderTransaction(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndPlaceHolderTransaction(); } \
     502                 :   NS_SCRIPTABLE NS_IMETHOD ShouldTxnSetSelection(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShouldTxnSetSelection(_retval); } \
     503                 :   NS_SCRIPTABLE NS_IMETHOD SetShouldTxnSetSelection(bool should) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShouldTxnSetSelection(should); } \
     504                 :   NS_SCRIPTABLE NS_IMETHOD GetInlineSpellChecker(bool autoCreate, nsIInlineSpellChecker * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInlineSpellChecker(autoCreate, _retval); } \
     505                 :   NS_SCRIPTABLE NS_IMETHOD SyncRealTimeSpell(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SyncRealTimeSpell(); } \
     506                 :   NS_SCRIPTABLE NS_IMETHOD SetSpellcheckUserOverride(bool enable) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSpellcheckUserOverride(enable); } \
     507                 :   NS_SCRIPTABLE NS_IMETHOD Cut(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Cut(); } \
     508                 :   NS_SCRIPTABLE NS_IMETHOD CanCut(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCut(_retval); } \
     509                 :   NS_SCRIPTABLE NS_IMETHOD Copy(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Copy(); } \
     510                 :   NS_SCRIPTABLE NS_IMETHOD CanCopy(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCopy(_retval); } \
     511                 :   NS_SCRIPTABLE NS_IMETHOD Paste(PRInt32 aSelectionType) { return !_to ? NS_ERROR_NULL_POINTER : _to->Paste(aSelectionType); } \
     512                 :   NS_SCRIPTABLE NS_IMETHOD PasteTransferable(nsITransferable *aTransferable) { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteTransferable(aTransferable); } \
     513                 :   NS_SCRIPTABLE NS_IMETHOD CanPaste(PRInt32 aSelectionType, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanPaste(aSelectionType, _retval); } \
     514                 :   NS_SCRIPTABLE NS_IMETHOD CanPasteTransferable(nsITransferable *aTransferable, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanPasteTransferable(aTransferable, _retval); } \
     515                 :   NS_SCRIPTABLE NS_IMETHOD SelectAll(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(); } \
     516                 :   NS_SCRIPTABLE NS_IMETHOD BeginningOfDocument(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginningOfDocument(); } \
     517                 :   NS_SCRIPTABLE NS_IMETHOD EndOfDocument(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndOfDocument(); } \
     518                 :   NS_SCRIPTABLE NS_IMETHOD SetAttribute(nsIDOMElement *aElement, const nsAString & attributestr, const nsAString & attvalue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttribute(aElement, attributestr, attvalue); } \
     519                 :   NS_SCRIPTABLE NS_IMETHOD GetAttributeValue(nsIDOMElement *aElement, const nsAString & attributestr, nsAString & resultValue NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributeValue(aElement, attributestr, resultValue, _retval); } \
     520                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAttribute(nsIDOMElement *aElement, const nsAString & aAttribute) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAttribute(aElement, aAttribute); } \
     521                 :   NS_SCRIPTABLE NS_IMETHOD CloneAttribute(const nsAString & aAttribute, nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneAttribute(aAttribute, aDestNode, aSourceNode); } \
     522                 :   NS_SCRIPTABLE NS_IMETHOD CloneAttributes(nsIDOMNode *destNode, nsIDOMNode *sourceNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneAttributes(destNode, sourceNode); } \
     523                 :   NS_SCRIPTABLE NS_IMETHOD CreateNode(const nsAString & tag, nsIDOMNode *parent, PRInt32 position, nsIDOMNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNode(tag, parent, position, _retval); } \
     524                 :   NS_SCRIPTABLE NS_IMETHOD InsertNode(nsIDOMNode *node, nsIDOMNode *parent, PRInt32 aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertNode(node, parent, aPosition); } \
     525                 :   NS_SCRIPTABLE NS_IMETHOD SplitNode(nsIDOMNode *existingRightNode, PRInt32 offset, nsIDOMNode * *newLeftNode NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SplitNode(existingRightNode, offset, newLeftNode); } \
     526                 :   NS_SCRIPTABLE NS_IMETHOD JoinNodes(nsIDOMNode *leftNode, nsIDOMNode *rightNode, nsIDOMNode *parent) { return !_to ? NS_ERROR_NULL_POINTER : _to->JoinNodes(leftNode, rightNode, parent); } \
     527                 :   NS_SCRIPTABLE NS_IMETHOD DeleteNode(nsIDOMNode *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteNode(child); } \
     528                 :   NS_SCRIPTABLE NS_IMETHOD MarkNodeDirty(nsIDOMNode *node) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkNodeDirty(node); } \
     529                 :   NS_SCRIPTABLE NS_IMETHOD SwitchTextDirection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SwitchTextDirection(); } \
     530                 :   NS_SCRIPTABLE NS_IMETHOD OutputToString(const nsAString & formatType, PRUint32 flags, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OutputToString(formatType, flags, _retval); } \
     531                 :   NS_SCRIPTABLE NS_IMETHOD OutputToStream(nsIOutputStream *aStream, const nsAString & formatType, const nsACString & charsetOverride, PRUint32 flags) { return !_to ? NS_ERROR_NULL_POINTER : _to->OutputToStream(aStream, formatType, charsetOverride, flags); } \
     532                 :   NS_SCRIPTABLE NS_IMETHOD AddEditorObserver(nsIEditorObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEditorObserver(observer); } \
     533                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEditorObserver(nsIEditorObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveEditorObserver(observer); } \
     534                 :   NS_SCRIPTABLE NS_IMETHOD AddEditActionListener(nsIEditActionListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEditActionListener(listener); } \
     535                 :   NS_SCRIPTABLE NS_IMETHOD RemoveEditActionListener(nsIEditActionListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveEditActionListener(listener); } \
     536                 :   NS_SCRIPTABLE NS_IMETHOD AddDocumentStateListener(nsIDocumentStateListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDocumentStateListener(listener); } \
     537                 :   NS_SCRIPTABLE NS_IMETHOD RemoveDocumentStateListener(nsIDocumentStateListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDocumentStateListener(listener); } \
     538                 :   NS_SCRIPTABLE NS_IMETHOD DumpContentTree(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DumpContentTree(); } \
     539                 :   NS_SCRIPTABLE NS_IMETHOD DebugDumpContent(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DebugDumpContent(); } \
     540                 :   NS_SCRIPTABLE NS_IMETHOD DebugUnitTests(PRInt32 *outNumTests NS_OUTPARAM, PRInt32 *outNumTestsFailed NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DebugUnitTests(outNumTests, outNumTestsFailed); } \
     541                 :   NS_IMETHOD_(bool) IsModifiableNode(nsIDOMNode *aNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsModifiableNode(aNode); } \
     542                 :   NS_SCRIPTABLE NS_IMETHOD GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastKeypressEventTrusted(aLastKeypressEventTrusted); } 
     543                 : 
     544                 : #if 0
     545                 : /* Use the code below as a template for the implementation class for this interface. */
     546                 : 
     547                 : /* Header file */
     548                 : class nsEditor : public nsIEditor
     549                 : {
     550                 : public:
     551                 :   NS_DECL_ISUPPORTS
     552                 :   NS_DECL_NSIEDITOR
     553                 : 
     554                 :   nsEditor();
     555                 : 
     556                 : private:
     557                 :   ~nsEditor();
     558                 : 
     559                 : protected:
     560                 :   /* additional members */
     561                 : };
     562                 : 
     563                 : /* Implementation file */
     564                 : NS_IMPL_ISUPPORTS1(nsEditor, nsIEditor)
     565                 : 
     566                 : nsEditor::nsEditor()
     567                 : {
     568                 :   /* member initializers and constructor code */
     569                 : }
     570                 : 
     571                 : nsEditor::~nsEditor()
     572                 : {
     573                 :   /* destructor code */
     574                 : }
     575                 : 
     576                 : /* readonly attribute nsISelection selection; */
     577                 : NS_IMETHODIMP nsEditor::GetSelection(nsISelection * *aSelection)
     578                 : {
     579                 :     return NS_ERROR_NOT_IMPLEMENTED;
     580                 : }
     581                 : 
     582                 : /* [noscript] void init (in nsIDOMDocument doc, in nsIContent aRoot, in nsISelectionController aSelCon, in unsigned long aFlags); */
     583                 : NS_IMETHODIMP nsEditor::Init(nsIDOMDocument *doc, nsIContent *aRoot, nsISelectionController *aSelCon, PRUint32 aFlags)
     584                 : {
     585                 :     return NS_ERROR_NOT_IMPLEMENTED;
     586                 : }
     587                 : 
     588                 : /* void setAttributeOrEquivalent (in nsIDOMElement element, in AString sourceAttrName, in AString sourceAttrValue, in boolean aSuppressTransaction); */
     589                 : NS_IMETHODIMP nsEditor::SetAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, const nsAString & sourceAttrValue, bool aSuppressTransaction)
     590                 : {
     591                 :     return NS_ERROR_NOT_IMPLEMENTED;
     592                 : }
     593                 : 
     594                 : /* void removeAttributeOrEquivalent (in nsIDOMElement element, in DOMString sourceAttrName, in boolean aSuppressTransaction); */
     595                 : NS_IMETHODIMP nsEditor::RemoveAttributeOrEquivalent(nsIDOMElement *element, const nsAString & sourceAttrName, bool aSuppressTransaction)
     596                 : {
     597                 :     return NS_ERROR_NOT_IMPLEMENTED;
     598                 : }
     599                 : 
     600                 : /* void postCreate (); */
     601                 : NS_IMETHODIMP nsEditor::PostCreate()
     602                 : {
     603                 :     return NS_ERROR_NOT_IMPLEMENTED;
     604                 : }
     605                 : 
     606                 : /* void preDestroy (in boolean aDestroyingFrames); */
     607                 : NS_IMETHODIMP nsEditor::PreDestroy(bool aDestroyingFrames)
     608                 : {
     609                 :     return NS_ERROR_NOT_IMPLEMENTED;
     610                 : }
     611                 : 
     612                 : /* attribute unsigned long flags; */
     613                 : NS_IMETHODIMP nsEditor::GetFlags(PRUint32 *aFlags)
     614                 : {
     615                 :     return NS_ERROR_NOT_IMPLEMENTED;
     616                 : }
     617                 : NS_IMETHODIMP nsEditor::SetFlags(PRUint32 aFlags)
     618                 : {
     619                 :     return NS_ERROR_NOT_IMPLEMENTED;
     620                 : }
     621                 : 
     622                 : /* attribute string contentsMIMEType; */
     623                 : NS_IMETHODIMP nsEditor::GetContentsMIMEType(char * *aContentsMIMEType)
     624                 : {
     625                 :     return NS_ERROR_NOT_IMPLEMENTED;
     626                 : }
     627                 : NS_IMETHODIMP nsEditor::SetContentsMIMEType(const char * aContentsMIMEType)
     628                 : {
     629                 :     return NS_ERROR_NOT_IMPLEMENTED;
     630                 : }
     631                 : 
     632                 : /* readonly attribute boolean isDocumentEditable; */
     633                 : NS_IMETHODIMP nsEditor::GetIsDocumentEditable(bool *aIsDocumentEditable)
     634                 : {
     635                 :     return NS_ERROR_NOT_IMPLEMENTED;
     636                 : }
     637                 : 
     638                 : /* readonly attribute boolean isSelectionEditable; */
     639                 : NS_IMETHODIMP nsEditor::GetIsSelectionEditable(bool *aIsSelectionEditable)
     640                 : {
     641                 :     return NS_ERROR_NOT_IMPLEMENTED;
     642                 : }
     643                 : 
     644                 : /* readonly attribute nsIDOMDocument document; */
     645                 : NS_IMETHODIMP nsEditor::GetDocument(nsIDOMDocument * *aDocument)
     646                 : {
     647                 :     return NS_ERROR_NOT_IMPLEMENTED;
     648                 : }
     649                 : 
     650                 : /* readonly attribute nsIDOMElement rootElement; */
     651                 : NS_IMETHODIMP nsEditor::GetRootElement(nsIDOMElement * *aRootElement)
     652                 : {
     653                 :     return NS_ERROR_NOT_IMPLEMENTED;
     654                 : }
     655                 : 
     656                 : /* readonly attribute nsISelectionController selectionController; */
     657                 : NS_IMETHODIMP nsEditor::GetSelectionController(nsISelectionController * *aSelectionController)
     658                 : {
     659                 :     return NS_ERROR_NOT_IMPLEMENTED;
     660                 : }
     661                 : 
     662                 : /* void deleteSelection (in short action); */
     663                 : NS_IMETHODIMP nsEditor::DeleteSelection(PRInt16 action)
     664                 : {
     665                 :     return NS_ERROR_NOT_IMPLEMENTED;
     666                 : }
     667                 : 
     668                 : /* readonly attribute boolean documentIsEmpty; */
     669                 : NS_IMETHODIMP nsEditor::GetDocumentIsEmpty(bool *aDocumentIsEmpty)
     670                 : {
     671                 :     return NS_ERROR_NOT_IMPLEMENTED;
     672                 : }
     673                 : 
     674                 : /* readonly attribute boolean documentModified; */
     675                 : NS_IMETHODIMP nsEditor::GetDocumentModified(bool *aDocumentModified)
     676                 : {
     677                 :     return NS_ERROR_NOT_IMPLEMENTED;
     678                 : }
     679                 : 
     680                 : /* attribute ACString documentCharacterSet; */
     681                 : NS_IMETHODIMP nsEditor::GetDocumentCharacterSet(nsACString & aDocumentCharacterSet)
     682                 : {
     683                 :     return NS_ERROR_NOT_IMPLEMENTED;
     684                 : }
     685                 : NS_IMETHODIMP nsEditor::SetDocumentCharacterSet(const nsACString & aDocumentCharacterSet)
     686                 : {
     687                 :     return NS_ERROR_NOT_IMPLEMENTED;
     688                 : }
     689                 : 
     690                 : /* void resetModificationCount (); */
     691                 : NS_IMETHODIMP nsEditor::ResetModificationCount()
     692                 : {
     693                 :     return NS_ERROR_NOT_IMPLEMENTED;
     694                 : }
     695                 : 
     696                 : /* long getModificationCount (); */
     697                 : NS_IMETHODIMP nsEditor::GetModificationCount(PRInt32 *_retval NS_OUTPARAM)
     698                 : {
     699                 :     return NS_ERROR_NOT_IMPLEMENTED;
     700                 : }
     701                 : 
     702                 : /* void incrementModificationCount (in long aModCount); */
     703                 : NS_IMETHODIMP nsEditor::IncrementModificationCount(PRInt32 aModCount)
     704                 : {
     705                 :     return NS_ERROR_NOT_IMPLEMENTED;
     706                 : }
     707                 : 
     708                 : /* attribute nsITransactionManager transactionManager; */
     709                 : NS_IMETHODIMP nsEditor::GetTransactionManager(nsITransactionManager * *aTransactionManager)
     710                 : {
     711                 :     return NS_ERROR_NOT_IMPLEMENTED;
     712                 : }
     713                 : NS_IMETHODIMP nsEditor::SetTransactionManager(nsITransactionManager *aTransactionManager)
     714                 : {
     715                 :     return NS_ERROR_NOT_IMPLEMENTED;
     716                 : }
     717                 : 
     718                 : /* void doTransaction (in nsITransaction txn); */
     719                 : NS_IMETHODIMP nsEditor::DoTransaction(nsITransaction *txn)
     720                 : {
     721                 :     return NS_ERROR_NOT_IMPLEMENTED;
     722                 : }
     723                 : 
     724                 : /* void enableUndo (in boolean enable); */
     725                 : NS_IMETHODIMP nsEditor::EnableUndo(bool enable)
     726                 : {
     727                 :     return NS_ERROR_NOT_IMPLEMENTED;
     728                 : }
     729                 : 
     730                 : /* readonly attribute long numberOfUndoItems; */
     731                 : NS_IMETHODIMP nsEditor::GetNumberOfUndoItems(PRInt32 *aNumberOfUndoItems)
     732                 : {
     733                 :     return NS_ERROR_NOT_IMPLEMENTED;
     734                 : }
     735                 : 
     736                 : /* readonly attribute long numberOfRedoItems; */
     737                 : NS_IMETHODIMP nsEditor::GetNumberOfRedoItems(PRInt32 *aNumberOfRedoItems)
     738                 : {
     739                 :     return NS_ERROR_NOT_IMPLEMENTED;
     740                 : }
     741                 : 
     742                 : /* void undo (in unsigned long count); */
     743                 : NS_IMETHODIMP nsEditor::Undo(PRUint32 count)
     744                 : {
     745                 :     return NS_ERROR_NOT_IMPLEMENTED;
     746                 : }
     747                 : 
     748                 : /* void canUndo (out boolean isEnabled, out boolean canUndo); */
     749                 : NS_IMETHODIMP nsEditor::CanUndo(bool *isEnabled NS_OUTPARAM, bool *canUndo NS_OUTPARAM)
     750                 : {
     751                 :     return NS_ERROR_NOT_IMPLEMENTED;
     752                 : }
     753                 : 
     754                 : /* void redo (in unsigned long count); */
     755                 : NS_IMETHODIMP nsEditor::Redo(PRUint32 count)
     756                 : {
     757                 :     return NS_ERROR_NOT_IMPLEMENTED;
     758                 : }
     759                 : 
     760                 : /* void canRedo (out boolean isEnabled, out boolean canRedo); */
     761                 : NS_IMETHODIMP nsEditor::CanRedo(bool *isEnabled NS_OUTPARAM, bool *canRedo NS_OUTPARAM)
     762                 : {
     763                 :     return NS_ERROR_NOT_IMPLEMENTED;
     764                 : }
     765                 : 
     766                 : /* void beginTransaction (); */
     767                 : NS_IMETHODIMP nsEditor::BeginTransaction()
     768                 : {
     769                 :     return NS_ERROR_NOT_IMPLEMENTED;
     770                 : }
     771                 : 
     772                 : /* void endTransaction (); */
     773                 : NS_IMETHODIMP nsEditor::EndTransaction()
     774                 : {
     775                 :     return NS_ERROR_NOT_IMPLEMENTED;
     776                 : }
     777                 : 
     778                 : /* void beginPlaceHolderTransaction (in nsIAtom name); */
     779                 : NS_IMETHODIMP nsEditor::BeginPlaceHolderTransaction(nsIAtom *name)
     780                 : {
     781                 :     return NS_ERROR_NOT_IMPLEMENTED;
     782                 : }
     783                 : 
     784                 : /* void endPlaceHolderTransaction (); */
     785                 : NS_IMETHODIMP nsEditor::EndPlaceHolderTransaction()
     786                 : {
     787                 :     return NS_ERROR_NOT_IMPLEMENTED;
     788                 : }
     789                 : 
     790                 : /* boolean shouldTxnSetSelection (); */
     791                 : NS_IMETHODIMP nsEditor::ShouldTxnSetSelection(bool *_retval NS_OUTPARAM)
     792                 : {
     793                 :     return NS_ERROR_NOT_IMPLEMENTED;
     794                 : }
     795                 : 
     796                 : /* void setShouldTxnSetSelection (in boolean should); */
     797                 : NS_IMETHODIMP nsEditor::SetShouldTxnSetSelection(bool should)
     798                 : {
     799                 :     return NS_ERROR_NOT_IMPLEMENTED;
     800                 : }
     801                 : 
     802                 : /* nsIInlineSpellChecker getInlineSpellChecker (in boolean autoCreate); */
     803                 : NS_IMETHODIMP nsEditor::GetInlineSpellChecker(bool autoCreate, nsIInlineSpellChecker * *_retval NS_OUTPARAM)
     804                 : {
     805                 :     return NS_ERROR_NOT_IMPLEMENTED;
     806                 : }
     807                 : 
     808                 : /* void syncRealTimeSpell (); */
     809                 : NS_IMETHODIMP nsEditor::SyncRealTimeSpell()
     810                 : {
     811                 :     return NS_ERROR_NOT_IMPLEMENTED;
     812                 : }
     813                 : 
     814                 : /* void setSpellcheckUserOverride (in boolean enable); */
     815                 : NS_IMETHODIMP nsEditor::SetSpellcheckUserOverride(bool enable)
     816                 : {
     817                 :     return NS_ERROR_NOT_IMPLEMENTED;
     818                 : }
     819                 : 
     820                 : /* void cut (); */
     821                 : NS_IMETHODIMP nsEditor::Cut()
     822                 : {
     823                 :     return NS_ERROR_NOT_IMPLEMENTED;
     824                 : }
     825                 : 
     826                 : /* boolean canCut (); */
     827                 : NS_IMETHODIMP nsEditor::CanCut(bool *_retval NS_OUTPARAM)
     828                 : {
     829                 :     return NS_ERROR_NOT_IMPLEMENTED;
     830                 : }
     831                 : 
     832                 : /* void copy (); */
     833                 : NS_IMETHODIMP nsEditor::Copy()
     834                 : {
     835                 :     return NS_ERROR_NOT_IMPLEMENTED;
     836                 : }
     837                 : 
     838                 : /* boolean canCopy (); */
     839                 : NS_IMETHODIMP nsEditor::CanCopy(bool *_retval NS_OUTPARAM)
     840                 : {
     841                 :     return NS_ERROR_NOT_IMPLEMENTED;
     842                 : }
     843                 : 
     844                 : /* void paste (in long aSelectionType); */
     845                 : NS_IMETHODIMP nsEditor::Paste(PRInt32 aSelectionType)
     846                 : {
     847                 :     return NS_ERROR_NOT_IMPLEMENTED;
     848                 : }
     849                 : 
     850                 : /* void pasteTransferable (in nsITransferable aTransferable); */
     851                 : NS_IMETHODIMP nsEditor::PasteTransferable(nsITransferable *aTransferable)
     852                 : {
     853                 :     return NS_ERROR_NOT_IMPLEMENTED;
     854                 : }
     855                 : 
     856                 : /* boolean canPaste (in long aSelectionType); */
     857                 : NS_IMETHODIMP nsEditor::CanPaste(PRInt32 aSelectionType, bool *_retval NS_OUTPARAM)
     858                 : {
     859                 :     return NS_ERROR_NOT_IMPLEMENTED;
     860                 : }
     861                 : 
     862                 : /* boolean canPasteTransferable ([optional] in nsITransferable aTransferable); */
     863                 : NS_IMETHODIMP nsEditor::CanPasteTransferable(nsITransferable *aTransferable, bool *_retval NS_OUTPARAM)
     864                 : {
     865                 :     return NS_ERROR_NOT_IMPLEMENTED;
     866                 : }
     867                 : 
     868                 : /* void selectAll (); */
     869                 : NS_IMETHODIMP nsEditor::SelectAll()
     870                 : {
     871                 :     return NS_ERROR_NOT_IMPLEMENTED;
     872                 : }
     873                 : 
     874                 : /* void beginningOfDocument (); */
     875                 : NS_IMETHODIMP nsEditor::BeginningOfDocument()
     876                 : {
     877                 :     return NS_ERROR_NOT_IMPLEMENTED;
     878                 : }
     879                 : 
     880                 : /* void endOfDocument (); */
     881                 : NS_IMETHODIMP nsEditor::EndOfDocument()
     882                 : {
     883                 :     return NS_ERROR_NOT_IMPLEMENTED;
     884                 : }
     885                 : 
     886                 : /* void setAttribute (in nsIDOMElement aElement, in AString attributestr, in AString attvalue); */
     887                 : NS_IMETHODIMP nsEditor::SetAttribute(nsIDOMElement *aElement, const nsAString & attributestr, const nsAString & attvalue)
     888                 : {
     889                 :     return NS_ERROR_NOT_IMPLEMENTED;
     890                 : }
     891                 : 
     892                 : /* boolean getAttributeValue (in nsIDOMElement aElement, in AString attributestr, out AString resultValue); */
     893                 : NS_IMETHODIMP nsEditor::GetAttributeValue(nsIDOMElement *aElement, const nsAString & attributestr, nsAString & resultValue NS_OUTPARAM, bool *_retval NS_OUTPARAM)
     894                 : {
     895                 :     return NS_ERROR_NOT_IMPLEMENTED;
     896                 : }
     897                 : 
     898                 : /* void removeAttribute (in nsIDOMElement aElement, in AString aAttribute); */
     899                 : NS_IMETHODIMP nsEditor::RemoveAttribute(nsIDOMElement *aElement, const nsAString & aAttribute)
     900                 : {
     901                 :     return NS_ERROR_NOT_IMPLEMENTED;
     902                 : }
     903                 : 
     904                 : /* void cloneAttribute (in AString aAttribute, in nsIDOMNode aDestNode, in nsIDOMNode aSourceNode); */
     905                 : NS_IMETHODIMP nsEditor::CloneAttribute(const nsAString & aAttribute, nsIDOMNode *aDestNode, nsIDOMNode *aSourceNode)
     906                 : {
     907                 :     return NS_ERROR_NOT_IMPLEMENTED;
     908                 : }
     909                 : 
     910                 : /* void cloneAttributes (in nsIDOMNode destNode, in nsIDOMNode sourceNode); */
     911                 : NS_IMETHODIMP nsEditor::CloneAttributes(nsIDOMNode *destNode, nsIDOMNode *sourceNode)
     912                 : {
     913                 :     return NS_ERROR_NOT_IMPLEMENTED;
     914                 : }
     915                 : 
     916                 : /* nsIDOMNode createNode (in AString tag, in nsIDOMNode parent, in long position); */
     917                 : NS_IMETHODIMP nsEditor::CreateNode(const nsAString & tag, nsIDOMNode *parent, PRInt32 position, nsIDOMNode * *_retval NS_OUTPARAM)
     918                 : {
     919                 :     return NS_ERROR_NOT_IMPLEMENTED;
     920                 : }
     921                 : 
     922                 : /* void insertNode (in nsIDOMNode node, in nsIDOMNode parent, in long aPosition); */
     923                 : NS_IMETHODIMP nsEditor::InsertNode(nsIDOMNode *node, nsIDOMNode *parent, PRInt32 aPosition)
     924                 : {
     925                 :     return NS_ERROR_NOT_IMPLEMENTED;
     926                 : }
     927                 : 
     928                 : /* void splitNode (in nsIDOMNode existingRightNode, in long offset, out nsIDOMNode newLeftNode); */
     929                 : NS_IMETHODIMP nsEditor::SplitNode(nsIDOMNode *existingRightNode, PRInt32 offset, nsIDOMNode * *newLeftNode NS_OUTPARAM)
     930                 : {
     931                 :     return NS_ERROR_NOT_IMPLEMENTED;
     932                 : }
     933                 : 
     934                 : /* void joinNodes (in nsIDOMNode leftNode, in nsIDOMNode rightNode, in nsIDOMNode parent); */
     935                 : NS_IMETHODIMP nsEditor::JoinNodes(nsIDOMNode *leftNode, nsIDOMNode *rightNode, nsIDOMNode *parent)
     936                 : {
     937                 :     return NS_ERROR_NOT_IMPLEMENTED;
     938                 : }
     939                 : 
     940                 : /* void deleteNode (in nsIDOMNode child); */
     941                 : NS_IMETHODIMP nsEditor::DeleteNode(nsIDOMNode *child)
     942                 : {
     943                 :     return NS_ERROR_NOT_IMPLEMENTED;
     944                 : }
     945                 : 
     946                 : /* void markNodeDirty (in nsIDOMNode node); */
     947                 : NS_IMETHODIMP nsEditor::MarkNodeDirty(nsIDOMNode *node)
     948                 : {
     949                 :     return NS_ERROR_NOT_IMPLEMENTED;
     950                 : }
     951                 : 
     952                 : /* void switchTextDirection (); */
     953                 : NS_IMETHODIMP nsEditor::SwitchTextDirection()
     954                 : {
     955                 :     return NS_ERROR_NOT_IMPLEMENTED;
     956                 : }
     957                 : 
     958                 : /* AString outputToString (in AString formatType, in unsigned long flags); */
     959                 : NS_IMETHODIMP nsEditor::OutputToString(const nsAString & formatType, PRUint32 flags, nsAString & _retval NS_OUTPARAM)
     960                 : {
     961                 :     return NS_ERROR_NOT_IMPLEMENTED;
     962                 : }
     963                 : 
     964                 : /* void outputToStream (in nsIOutputStream aStream, in AString formatType, in ACString charsetOverride, in unsigned long flags); */
     965                 : NS_IMETHODIMP nsEditor::OutputToStream(nsIOutputStream *aStream, const nsAString & formatType, const nsACString & charsetOverride, PRUint32 flags)
     966                 : {
     967                 :     return NS_ERROR_NOT_IMPLEMENTED;
     968                 : }
     969                 : 
     970                 : /* void addEditorObserver (in nsIEditorObserver observer); */
     971                 : NS_IMETHODIMP nsEditor::AddEditorObserver(nsIEditorObserver *observer)
     972                 : {
     973                 :     return NS_ERROR_NOT_IMPLEMENTED;
     974                 : }
     975                 : 
     976                 : /* void removeEditorObserver (in nsIEditorObserver observer); */
     977                 : NS_IMETHODIMP nsEditor::RemoveEditorObserver(nsIEditorObserver *observer)
     978                 : {
     979                 :     return NS_ERROR_NOT_IMPLEMENTED;
     980                 : }
     981                 : 
     982                 : /* void addEditActionListener (in nsIEditActionListener listener); */
     983                 : NS_IMETHODIMP nsEditor::AddEditActionListener(nsIEditActionListener *listener)
     984                 : {
     985                 :     return NS_ERROR_NOT_IMPLEMENTED;
     986                 : }
     987                 : 
     988                 : /* void removeEditActionListener (in nsIEditActionListener listener); */
     989                 : NS_IMETHODIMP nsEditor::RemoveEditActionListener(nsIEditActionListener *listener)
     990                 : {
     991                 :     return NS_ERROR_NOT_IMPLEMENTED;
     992                 : }
     993                 : 
     994                 : /* void addDocumentStateListener (in nsIDocumentStateListener listener); */
     995                 : NS_IMETHODIMP nsEditor::AddDocumentStateListener(nsIDocumentStateListener *listener)
     996                 : {
     997                 :     return NS_ERROR_NOT_IMPLEMENTED;
     998                 : }
     999                 : 
    1000                 : /* void removeDocumentStateListener (in nsIDocumentStateListener listener); */
    1001                 : NS_IMETHODIMP nsEditor::RemoveDocumentStateListener(nsIDocumentStateListener *listener)
    1002                 : {
    1003                 :     return NS_ERROR_NOT_IMPLEMENTED;
    1004                 : }
    1005                 : 
    1006                 : /* void dumpContentTree (); */
    1007                 : NS_IMETHODIMP nsEditor::DumpContentTree()
    1008                 : {
    1009                 :     return NS_ERROR_NOT_IMPLEMENTED;
    1010                 : }
    1011                 : 
    1012                 : /* void debugDumpContent (); */
    1013                 : NS_IMETHODIMP nsEditor::DebugDumpContent()
    1014                 : {
    1015                 :     return NS_ERROR_NOT_IMPLEMENTED;
    1016                 : }
    1017                 : 
    1018                 : /* void debugUnitTests (out long outNumTests, out long outNumTestsFailed); */
    1019                 : NS_IMETHODIMP nsEditor::DebugUnitTests(PRInt32 *outNumTests NS_OUTPARAM, PRInt32 *outNumTestsFailed NS_OUTPARAM)
    1020                 : {
    1021                 :     return NS_ERROR_NOT_IMPLEMENTED;
    1022                 : }
    1023                 : 
    1024                 : /* [notxpcom] boolean isModifiableNode (in nsIDOMNode aNode); */
    1025                 : NS_IMETHODIMP_(bool) nsEditor::IsModifiableNode(nsIDOMNode *aNode)
    1026                 : {
    1027                 :     return NS_ERROR_NOT_IMPLEMENTED;
    1028                 : }
    1029                 : 
    1030                 : /* readonly attribute boolean lastKeypressEventTrusted; */
    1031                 : NS_IMETHODIMP nsEditor::GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted)
    1032                 : {
    1033                 :     return NS_ERROR_NOT_IMPLEMENTED;
    1034                 : }
    1035                 : 
    1036                 : /* End of implementation class template. */
    1037                 : #endif
    1038                 : 
    1039                 : 
    1040                 : #endif /* __gen_nsIEditor_h__ */

Generated by: LCOV version 1.7