Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsHTMLEditor Class Reference

#include <nsHTMLEditor.h>

Inheritance diagram for nsHTMLEditor:

nsPlaintextEditor nsISupports nsISupports nsISupports nsISupports nsISupports nsISupports nsEditor nsHTMLEditorLog

List of all members.


Detailed Description

The HTML editor implementation.
Use to edit HTML document represented as a DOM tree.

Definition at line 92 of file nsHTMLEditor.h.


Public Types

enum  { eTypedText, eTypedBR, eTypedBreak }
enum  IterDirection { kIterForward, kIterBackward }
enum  OperationID {
  kOpInsertBreak = 3000, kOpMakeList = 3001, kOpIndent = 3002, kOpOutdent = 3003,
  kOpAlign = 3004, kOpMakeBasicBlock = 3005, kOpRemoveList = 3006, kOpMakeDefListItem = 3007,
  kOpInsertElement = 3008, kOpInsertQuotation = 3009, kOpSetTextProperty = 3010, kOpRemoveTextProperty = 3011,
  kOpHTMLPaste = 3012, kOpLoadHTML = 3013, kOpResetTextProperties = 3014, kOpSetAbsolutePosition = 3015,
  kOpRemoveAbsolutePosition = 3016, kOpDecreaseZIndex = 3017, kOpIncreaseZIndex = 3018
}
enum  ResizingRequestID { kX = 0, kY = 1, kWidth = 2, kHeight = 3 }

Public Member Functions

void absolutelyPositionElement (in nsIDOMElement aElement, in boolean aEnabled)
void absolutePositionSelection (in boolean aEnabled)
nsresult AddCSSStyleSheet (nsICSSStyleSheet *aSheet)
void addDocumentStateListener (in nsIDocumentStateListener listener)
void addEditActionListener (in nsIEditActionListener listener)
void addEditorObserver (in nsIEditorObserver observer)
nsresult AddNewStyleSheetToList (const nsAString &aURL, nsICSSStyleSheet *aStyleSheet)
void addObjectResizeEventListener (in nsIHTMLObjectResizeListener aListener)
void addOverrideStyleSheet (in AString aURL)
NS_IMETHOD AddOverrideStyleSheet (const nsAString &aURL)
void addStyleSheet (in AString aURL)
NS_IMETHOD AddStyleSheet (const nsAString &aURL)
nsresult AppendNodeToSelectionAsRange (nsIDOMNode *aNode)
PRBool ArePreservingSelection ()
virtual void AttributeChanged (nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID, nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask)=0
void beginComposition (in nsTextEventReplyPtr aReply)
NS_IMETHOD BeginComposition (nsTextEventReply *aReply)
void beginningOfDocument ()
NS_IMETHODIMP BeginningOfDocument ()
void beginPlaceHolderTransaction (in nsIAtom name)
void beginTransaction ()
nsresult BeginUpdateViewBatch (void)
PRBool CanContainTag (nsIDOMNode *aParent, const nsAString &aTag)
boolean canCopy ()
NS_IMETHOD CanCopy (PRBool *aCanCopy)
boolean canCut ()
NS_IMETHOD CanCut (PRBool *aCanCut)
boolean canDrag (in nsIDOMEvent aEvent)
NS_IMETHOD CanDrag (nsIDOMEvent *aDragEvent, PRBool *aCanDrag)
boolean canPaste (in long aSelectionType)
NS_IMETHOD CanPaste (PRInt32 aSelectionType, PRBool *aCanPaste)
void canRedo (out boolean isEnabled, out boolean canRedo)
void canUndo (out boolean isEnabled, out boolean canUndo)
virtual void CharacterDataChanged (nsIDocument *aDocument, nsIContent *aContent, CharacterDataChangeInfo *aInfo)=0
virtual void CharacterDataWillChange (nsIDocument *aDocument, nsIContent *aContent, CharacterDataChangeInfo *aInfo)=0
nsresult ClearSelection ()
void cloneAttribute (in AString aAttribute, in nsIDOMNode aDestNode, in nsIDOMNode aSourceNode)
void cloneAttributes (in nsIDOMNode destNode, in nsIDOMNode sourceNode)
NS_IMETHOD CollapseAdjacentTextNodes (nsIDOMRange *aInRange)
nsresult CollapseSelectionToDeepestNonTableFirstChild (nsISelection *aSelection, nsIDOMNode *aNode)
virtual void ContentAppended (nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer)=0
virtual void ContentInserted (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)=0
virtual void ContentRemoved (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)=0
void copy ()
NS_IMETHOD Copy ()
NS_DECL_NSIHTMLEDITOR
NS_DECL_NSIHTMLOBJECTRESIZER
NS_DECL_NSIHTMLABSPOSEDITOR
NS_DECL_NSIHTMLINLINETABLEEDITOR
NS_IMETHOD 
CopyLastEditableChildStyles (nsIDOMNode *aPreviousBlock, nsIDOMNode *aNewBlock, nsIDOMNode **aOutBrNode)
nsresult CountEditableChildren (nsIDOMNode *aNode, PRUint32 &outCount)
nsresult CreateHTMLContent (const nsAString &aTag, nsIContent **aContent)
nsIDOMNode createNode (in AString tag, in nsIDOMNode parent, in long position)
nsresult CreateRange (nsIDOMNode *aStartParent, PRInt32 aStartOffset, nsIDOMNode *aEndParent, PRInt32 aEndOffset, nsIDOMRange **aRange)
void cut ()
NS_IMETHOD Cut ()
void debugDumpContent ()
void debugUnitTests (out long outNumTests, out long outNumTestsFailed)
NS_IMETHOD DebugUnitTests (PRInt32 *outNumTests, PRInt32 *outNumTestsFailed)
void deleteNode (in nsIDOMNode child)
NS_IMETHODIMP DeleteNode (nsIDOMNode *aNode)
void deleteSelection (in short action)
NS_IMETHOD DeleteSelection (EDirection aAction)
NS_IMETHOD DeleteSelectionAndCreateNode (const nsAString &aTag, nsIDOMNode **aNewNode)
NS_IMETHOD DeleteSelectionImpl (EDirection aAction)
void deleteTable ()
NS_IMETHOD DeleteTable ()
void deleteTableCell (in long aNumber)
NS_IMETHOD DeleteTableCell (PRInt32 aNumber)
void deleteTableCellContents ()
NS_IMETHOD DeleteTableCellContents ()
void deleteTableColumn (in long aNumber)
NS_IMETHOD DeleteTableColumn (PRInt32 aNumber)
void deleteTableRow (in long aNumber)
NS_IMETHOD DeleteTableRow (PRInt32 aNumber)
NS_IMETHODIMP DeleteText (nsIDOMCharacterData *aTextNode, PRUint32 aOffset, PRUint32 aLength)
void doDrag (in nsIDOMEvent aEvent)
NS_IMETHOD DoDrag (nsIDOMEvent *aDragEvent)
void doInlineTableEditingAction (in nsIDOMElement aUIAnonymousElement)
void doTransaction (in nsITransaction txn)
void dumpContentTree ()
PRBool EnableExistingStyleSheet (const nsAString &aURL)
void enableStyleSheet (in AString aURL, in PRBool aEnable)
NS_IMETHOD EnableStyleSheet (const nsAString &aURL, PRBool aEnable)
void enableUndo (in boolean enable)
void endComposition ()
void endOfDocument ()
NS_IMETHOD EndOperation ()
void endPlaceHolderTransaction ()
void endTransaction ()
nsresult EndUpdateViewBatch ()
nsCOMPtr< nsIDOMNodeFindUserSelectAllNode (nsIDOMNode *aNode)
void forceCompositionEnd ()
nsresult GetAbsoluteOffsetsForPoints (nsIDOMNode *aInStartNode, PRInt32 aInStartOffset, nsIDOMNode *aInEndNode, PRInt32 aInEndOffset, nsIDOMNode *aInCommonParentNode, PRInt32 &aOutStartOffset, PRInt32 &aEndOffset)
boolean getAttributeValue (in nsIDOMElement aElement, in AString attributestr, out AString resultValue)
nsIDOMElement getCellAt (in nsIDOMElement aTable, in long aRowIndex, in long aColIndex)
NS_IMETHOD GetCellAt (nsIDOMElement *aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement **aCell)
void getCellDataAt (in nsIDOMElement aTable, in long aRowIndex, in long aColIndex, out nsIDOMElement aCell, out long aStartRowIndex, out long aStartColIndex, out long aRowSpan, out long aColSpan, out long aActualRowSpan, out long aActualColSpan, out boolean aIsSelected)
NS_IMETHOD GetCellDataAt (nsIDOMElement *aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement **aCell, PRInt32 *aStartRowIndex, PRInt32 *aStartColIndex, PRInt32 *aRowSpan, PRInt32 *aColSpan, PRInt32 *aActualRowSpan, PRInt32 *aActualColSpan, PRBool *aIsSelected)
nsresult GetCellFromRange (nsIDOMRange *aRange, nsIDOMElement **aCell)
void getCellIndexes (in nsIDOMElement aCell, out long aRowIndex, out long aColIndex)
NS_IMETHOD GetCellIndexes (nsIDOMElement *aCell, PRInt32 *aRowIndex, PRInt32 *aColIndex)
nsresult GetCSSBackgroundColorState (PRBool *aMixed, nsAString &aOutColor, PRBool aBlockLevel)
nsresult GetCSSLoader (const nsAString &aURL, nsICSSLoader **aCSSLoader)
NS_IMETHOD GetDocumentIsEmpty (PRBool *aDocumentIsEmpty)
long getElementZIndex (in nsIDOMElement aElement)
nsISupportsArray getEmbeddedObjects ()
NS_IMETHOD GetFirstCellInRow (nsIDOMNode *aRowNode, nsIDOMNode **aCellNode)
nsresult GetFirstEditableNode (nsIDOMNode *aRoot, nsCOMPtr< nsIDOMNode > *outFirstNode)
nsIDOMNode getFirstRow (in nsIDOMElement aTableElement)
NS_IMETHOD GetFirstRow (nsIDOMElement *aTableElement, nsIDOMNode **aRowNode)
nsIDOMElement getFirstSelectedCell (out nsIDOMRange aRange)
NS_IMETHOD GetFirstSelectedCell (nsIDOMRange **aRange, nsIDOMElement **aCell)
nsIDOMElement getFirstSelectedCellInTable (out long aRowIndex, out long aColIndex)
NS_IMETHOD GetFirstSelectedCellInTable (PRInt32 *aRowIndex, PRInt32 *aColIndex, nsIDOMElement **aCell)
NS_IMETHOD GetFlags (PRUint32 *aFlags)
NS_IMETHOD GetHighlightColor (PRBool *mixed, PRUnichar **_retval)
NS_IMETHOD GetHTMLBackgroundColorState (PRBool *aMixed, nsAString &outColor)
nsresult GetIMEBufferLength (PRInt32 *length)
nsIInlineSpellChecker getInlineSpellChecker (in boolean autoCreate)
NS_IMETHOD GetIsDocumentEditable (PRBool *aIsDocumentEditable)
NS_IMETHOD GetLastCellInRow (nsIDOMNode *aRowNode, nsIDOMNode **aCellNode)
nsCOMPtr< nsIDOMNodeGetLeftmostChild (nsIDOMNode *aCurrentNode, PRBool bNoBlockCrossing=PR_FALSE)
long getModificationCount ()
NS_IMETHOD GetNextCellInRow (nsIDOMNode *aCurrentCellNode, nsIDOMNode **aRowNode)
NS_IMETHOD GetNextElementByTagName (nsIDOMElement *aCurrentElement, const nsAString *aTagName, nsIDOMElement **aReturn)
nsresult GetNextNode (nsIDOMNode *aParentNode, PRInt32 aOffset, PRBool aEditableNode, nsCOMPtr< nsIDOMNode > *aResultNode, PRBool bNoBlockCrossing=PR_FALSE)
nsresult GetNextNode (nsIDOMNode *aCurrentNode, PRBool aEditableNode, nsCOMPtr< nsIDOMNode > *aResultNode, PRBool bNoBlockCrossing=PR_FALSE)
nsIDOMNode getNextRow (in nsIDOMNode aTableElement)
NS_IMETHOD GetNextRow (nsIDOMNode *aCurrentRowNode, nsIDOMNode **aRowNode)
nsIDOMElement getNextSelectedCell (out nsIDOMRange aRange)
NS_IMETHOD GetNextSelectedCell (nsIDOMRange **aRange, nsIDOMElement **aCell)
NS_IMETHOD GetParentBlockTags (nsStringArray *aTagList, PRBool aGetLists)
already_AddRefed
< nsPIDOMEventTarget > 
GetPIDOMEventTarget ()
void getPreferredIMEState (out unsigned long aState)
NS_DECL_ISUPPORTS NS_IMETHOD GetPresShell (nsIPresShell **aPS)
nsresult GetPriorNode (nsIDOMNode *aParentNode, PRInt32 aOffset, PRBool aEditableNode, nsCOMPtr< nsIDOMNode > *aResultNode, PRBool bNoBlockCrossing=PR_FALSE)
nsresult GetPriorNode (nsIDOMNode *aCurrentNode, PRBool aEditableNode, nsCOMPtr< nsIDOMNode > *aResultNode, PRBool bNoBlockCrossing=PR_FALSE)
void getQueryCaretRect (in nsQueryCaretRectEventReplyPtr aReply)
void getReconversionString (in nsReconversionEventReplyPtr aReply)
NS_IMETHOD GetReconversionString (nsReconversionEventReply *aReply)
nsCOMPtr< nsIDOMNodeGetRightmostChild (nsIDOMNode *aCurrentNode, PRBool bNoBlockCrossing=PR_FALSE)
nsIDOMElementGetRoot ()
PRUint32 getSelectedCellsType (in nsIDOMElement aElement)
NS_IMETHOD GetSelectedCellsType (nsIDOMElement *aElement, PRUint32 *aSelectionType)
nsIDOMElement getSelectedOrParentTableElement (out AString aTagName, out long aCount)
NS_IMETHOD GetSelectedOrParentTableElement (nsAString &aTagName, PRInt32 *aSelectedCount, nsIDOMElement **aTableElement)
PRBool GetShouldTxnSetSelection ()
nsresult GetString (const nsAString &name, nsAString &value)
nsICSSStyleSheet getStyleSheetForURL (in AString aURL)
NS_IMETHOD GetStyleSheetForURL (const nsAString &aURL, nsICSSStyleSheet **_retval)
void getTableSize (in nsIDOMElement aTable, out long aRowCount, out long aColCount)
NS_IMETHOD GetTableSize (nsIDOMElement *aTable, PRInt32 *aRowCount, PRInt32 *aColCount)
nsresult GetTextSelectionOffsets (nsISelection *aSelection, PRUint32 &aStartOffset, PRUint32 &aEndOffset)
nsresult GetTextSelectionOffsets (nsISelection *aSelection, PRInt32 &aStartOffset, PRInt32 &aEndOffset)
AString getURLForStyleSheet (in nsICSSStyleSheet aStyleSheet)
NS_IMETHOD GetURLForStyleSheet (nsICSSStyleSheet *aStyleSheet, nsAString &aURL)
nsIWeakReference GetWeakReference ()
nsresult HandleInlineSpellCheck (PRInt32 action, nsISelection *aSelection, nsIDOMNode *previousSelectedNode, PRInt32 previousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset)
void handleKeyPress (in nsIDOMKeyEvent aKeyEvent)
NS_IMETHODIMP HandleKeyPress (nsIDOMKeyEvent *aKeyEvent)
void hideGrabber ()
void hideInlineTableEditingUI ()
void hideResizers ()
void incrementModificationCount (in long aModCount)
void init (in nsIDOMDocument doc, in nsIPresShellPtr shell, in nsIContent aRoot, in nsISelectionController aSelCon, in unsigned long aFlags)
NS_IMETHOD Init (nsIDOMDocument *aDoc, nsIPresShell *aPresShell, nsIContent *aRoot, nsISelectionController *aSelCon, PRUint32 aFlags)
nsIDOMNode insertAsCitedQuotation (in AString aQuotedText, in AString aCitation, in boolean aInsertHTML)
nsIDOMNode insertAsQuotation (in AString aQuotedText)
nsresult InsertContainerAbove (nsIDOMNode *inNode, nsCOMPtr< nsIDOMNode > *outNode, const nsAString &aNodeType, const nsAString *aAttribute=nsnull, const nsAString *aValue=nsnull)
void insertFromDrop (in nsIDOMEvent aEvent)
NS_IMETHOD InsertFromDrop (nsIDOMEvent *aDropEvent)
void insertLineBreak ()
void insertNode (in nsIDOMNode node, in nsIDOMNode parent, in long aPosition)
nsresult InsertNodeAtPoint (nsIDOMNode *aNode, nsCOMPtr< nsIDOMNode > *ioParent, PRInt32 *ioOffset, PRBool aNoEmptyNodes)
void insertTableCell (in long aNumber, in boolean aAfter)
NS_DECL_NSIEDITORMAILSUPPORT
NS_IMETHOD 
InsertTableCell (PRInt32 aNumber, PRBool aAfter)
void insertTableColumn (in long aNumber, in boolean aAfter)
NS_IMETHOD InsertTableColumn (PRInt32 aNumber, PRBool aAfter)
void insertTableRow (in long aNumber, in boolean aAfter)
NS_IMETHOD InsertTableRow (PRInt32 aNumber, PRBool aAfter)
void insertText (in DOMString aStringToInsert)
nsresult InsertTextAt (const nsAString &aStringToInsert, nsIDOMNode *aDestinationNode, PRInt32 aDestOffset, PRBool aDoDeleteSelection)
NS_IMETHOD InsertTextImpl (const nsAString &aStringToInsert, nsCOMPtr< nsIDOMNode > *aInOutNode, PRInt32 *aInOutOffset, nsIDOMDocument *aDoc)
NS_IMETHOD InsertTextIntoTextNodeImpl (const nsAString &aStringToInsert, nsIDOMCharacterData *aTextNode, PRInt32 aOffset, PRBool suppressIME=PR_FALSE)
void insertTextWithQuotations (in DOMString aStringToInsert)
virtual PRBool IsContainer (nsIDOMNode *aNode)
PRBool IsDescendantOfBody (nsIDOMNode *inNode)
PRBool IsEditable (nsIDOMNode *aNode)
nsresult IsEmptyNode (nsIDOMNode *aNode, PRBool *outIsEmptyBlock, PRBool aMozBRDoesntCount=PR_FALSE, PRBool aListOrCellNotEmpty=PR_FALSE, PRBool aSafeToAskFrames=PR_FALSE)
nsresult IsEmptyNodeImpl (nsIDOMNode *aNode, PRBool *outIsEmptyBlock, PRBool aMozBRDoesntCount, PRBool aListOrCellNotEmpty, PRBool aSafeToAskFrames, PRBool *aSeenBR)
PRBool IsIMEComposing ()
boolean isModifiableNode (in nsIDOMNode aNode)
PRBool IsMozEditorBogusNode (nsIDOMNode *aNode)
nsresult IsNextCharWhitespace (nsIDOMNode *aParentNode, PRInt32 aOffset, PRBool *outIsSpace, PRBool *outIsNBSP, nsCOMPtr< nsIDOMNode > *outNode=0, PRInt32 *outOffset=0)
nsresult IsPreformatted (nsIDOMNode *aNode, PRBool *aResult)
nsresult IsPrevCharWhitespace (nsIDOMNode *aParentNode, PRInt32 aOffset, PRBool *outIsSpace, PRBool *outIsNBSP, nsCOMPtr< nsIDOMNode > *outNode=0, PRInt32 *outOffset=0)
PRBool IsRootNode (nsIDOMNode *inNode)
virtual PRBool IsTextInDirtyFrameVisible (nsIDOMNode *aNode)
nsresult IsVisTextNode (nsIDOMNode *aNode, PRBool *outIsEmptyNode, PRBool aSafeToAskFrames)
nsresult JoinNodeDeep (nsIDOMNode *aLeftNode, nsIDOMNode *aRightNode, nsCOMPtr< nsIDOMNode > *aOutJoinNode, PRInt32 *outOffset)
void joinNodes (in nsIDOMNode leftNode, in nsIDOMNode rightNode, in nsIDOMNode parent)
nsresult JoinNodesImpl (nsIDOMNode *aNodeToKeep, nsIDOMNode *aNodeToJoin, nsIDOMNode *aParent, PRBool aNodeToKeepIsFirst)
void joinTableCells (in boolean aMergeNonContiguousContents)
NS_IMETHOD JoinTableCells (PRBool aMergeNonContiguousContents)
NS_IMETHOD LoadHTML (const nsAString &aInputString)
void markNodeDirty (in nsIDOMNode node)
void mouseDown (in long aX, in long aY, in nsIDOMElement aTarget, in nsIDOMEvent aMouseEvent)
void mouseMove (in nsIDOMEvent aMouseEvent)
void mouseUp (in long aX, in long aY, in nsIDOMElement aTarget)
nsresult MoveNode (nsIDOMNode *aNode, nsIDOMNode *aParent, PRInt32 aOffset)
virtual PRBool NodesSameType (nsIDOMNode *aNode1, nsIDOMNode *aNode2)
virtual void NodeWillBeDestroyed (const nsINode *aNode)=0
void normalizeTable (in nsIDOMElement aTable)
NS_IMETHOD NormalizeTable (nsIDOMElement *aTable)
void NotifyEditorObservers (void)
void notifyIMEOnBlur ()
void notifyIMEOnFocus ()
 NS_IMETHOD_ (PRBool) IsModifiableNode(nsIDOMNode *aNode)
void outputToStream (in nsIOutputStream aStream, in AString formatType, in ACString charsetOverride, in unsigned long flags)
NS_IMETHOD OutputToStream (nsIOutputStream *aOutputStream, const nsAString &aFormatType, const nsACString &aCharsetOverride, PRUint32 aFlags)
AString outputToString (in AString formatType, in unsigned long flags)
NS_IMETHOD OutputToString (const nsAString &aFormatType, PRUint32 aFlags, nsAString &aOutputString)
virtual void ParentChainChanged (nsIContent *aContent)=0
void paste (in long aSelectionType)
NS_IMETHOD Paste (PRInt32 aSelectionType)
void pasteAsCitedQuotation (in AString aCitation, in long aSelectionType)
void pasteAsQuotation (in long aSelectionType)
void postCreate ()
void preDestroy ()
nsresult PreserveSelectionAcrossActions (nsISelection *aSel)
void queryComposition (in nsTextEventReplyPtr aReply)
void redo (in unsigned long count)
NS_IMETHOD Redo (PRUint32 aCount)
void refreshGrabber ()
void refreshInlineTableEditingUI ()
void refreshResizers ()
long relativeChangeElementZIndex (in nsIDOMElement aElement, in long aChange)
void relativeChangeZIndex (in long aChange)
void removeAttribute (in nsIDOMElement aElement, in AString aAttribute)
void removeAttributeOrEquivalent (in nsIDOMElement element, in DOMString sourceAttrName, in boolean aSuppressTransaction)
NS_IMETHOD RemoveAttributeOrEquivalent (nsIDOMElement *aElement, const nsAString &aAttribute, PRBool aSuppressTransaction)
nsresult RemoveContainer (nsIDOMNode *inNode)
void removeDocumentStateListener (in nsIDocumentStateListener listener)
void removeEditActionListener (in nsIEditActionListener listener)
void removeEditorObserver (in nsIEditorObserver observer)
void removeObjectResizeEventListener (in nsIHTMLObjectResizeListener aListener)
void removeOverrideStyleSheet (in AString aURL)
NS_IMETHOD RemoveOverrideStyleSheet (const nsAString &aURL)
void removeStyleSheet (in AString aURL)
NS_IMETHOD RemoveStyleSheet (const nsAString &aURL)
nsresult RemoveStyleSheetFromList (const nsAString &aURL)
nsresult ReplaceContainer (nsIDOMNode *inNode, nsCOMPtr< nsIDOMNode > *outNode, const nsAString &aNodeType, const nsAString *aAttribute=nsnull, const nsAString *aValue=nsnull, PRBool aCloneAttributes=PR_FALSE)
void replaceOverrideStyleSheet (in AString aURL)
NS_IMETHOD ReplaceOverrideStyleSheet (const nsAString &aURL)
void replaceStyleSheet (in AString aURL)
NS_IMETHOD ReplaceStyleSheet (const nsAString &aURL)
void resetModificationCount ()
nsresult RestorePreservedSelection (nsISelection *aSel)
void rewrap (in boolean aRespectNewlines)
void selectAll ()
NS_IMETHOD SelectAll ()
void selectAllTableCells ()
NS_IMETHOD SelectAllTableCells ()
void selectBlockOfCells (in nsIDOMElement aStartCell, in nsIDOMElement aEndCell)
NS_IMETHOD SelectBlockOfCells (nsIDOMElement *aStartCell, nsIDOMElement *aEndCell)
NS_IMETHOD SelectEntireDocument (nsISelection *aSelection)
void selectTable ()
NS_IMETHOD SelectTable ()
void selectTableCell ()
NS_IMETHOD SelectTableCell ()
void selectTableColumn ()
NS_IMETHOD SelectTableColumn ()
void selectTableRow ()
NS_IMETHOD SelectTableRow ()
void setAttribute (in nsIDOMElement aElement, in AString attributestr, in AString attvalue)
void setAttributeOrEquivalent (in nsIDOMElement element, in AString sourceAttrName, in AString sourceAttrValue, in boolean aSuppressTransaction)
NS_IMETHOD SetAttributeOrEquivalent (nsIDOMElement *aElement, const nsAString &aAttribute, const nsAString &aValue, PRBool aSuppressTransaction)
void setCompositionString (in DOMString aCompositionString, in nsIPrivateTextRangeListPtr aTextRange, in nsTextEventReplyPtr aReply)
NS_DECL_NSIPLAINTEXTEDITOR
NS_DECL_NSIEDITORMAILSUPPORT
NS_IMETHOD 
SetCompositionString (const nsAString &aCompositionString, nsIPrivateTextRangeList *aTextRange, nsTextEventReply *aReply)
NS_IMETHOD SetCSSBackgroundColor (const nsAString &aColor)
NS_IMETHOD SetDocumentCharacterSet (const nsACString &characterSet)
void setElementPosition (in nsIDOMElement aElement, in long aX, in long aY)
void setElementZIndex (in nsIDOMElement aElement, in long aZorder)
NS_IMETHOD SetFlags (PRUint32 aFlags)
NS_IMETHOD SetHTMLBackgroundColor (const nsAString &aColor)
void SetIsIMEComposing ()
void setSelectionAfterTableEdit (in nsIDOMElement aTable, in long aRow, in long aCol, in long aDirection, in boolean aSelected)
NS_IMETHOD SetSelectionAfterTableEdit (nsIDOMElement *aTable, PRInt32 aRow, PRInt32 aCol, PRInt32 aDirection, PRBool aSelected)
void setShouldTxnSetSelection (in boolean should)
void setSpellcheckUserOverride (in boolean enable)
void setWrapColumn (in long aWrapColumn)
boolean shouldTxnSetSelection ()
void showGrabberOnElement (in nsIDOMElement aElement)
void showInlineTableEditingUI (in nsIDOMElement aCell)
void showResizers (in nsIDOMElement aResizedElement)
void splitNode (in nsIDOMNode existingRightNode, in long offset, out nsIDOMNode newLeftNode)
nsresult SplitNodeDeep (nsIDOMNode *aNode, nsIDOMNode *aSplitPointParent, PRInt32 aSplitPointOffset, PRInt32 *outOffset, PRBool aNoEmptyContainers=PR_FALSE, nsCOMPtr< nsIDOMNode > *outLeftNode=0, nsCOMPtr< nsIDOMNode > *outRightNode=0)
nsresult SplitNodeImpl (nsIDOMNode *aExistingRightNode, PRInt32 aOffset, nsIDOMNode *aNewLeftNode, nsIDOMNode *aParent)
void splitTableCell ()
NS_IMETHOD SplitTableCell ()
NS_IMETHOD StartOperation (PRInt32 opID, nsIEditor::EDirection aDirection)
void StopPreservingSelection ()
void stripCites ()
NS_IMETHOD StyleSheetLoaded (nsICSSStyleSheet *aSheet, PRBool aWasAlternate, nsresult aStatus)
nsIDOMElement switchTableCellHeaderType (in nsIDOMElement aSourceCell)
NS_IMETHOD SwitchTableCellHeaderType (nsIDOMElement *aSourceCell, nsIDOMElement **aNewCell)
void switchTextDirection ()
void syncRealTimeSpell ()
PRBool TagCanContain (const nsAString &aParentTag, nsIDOMNode *aChild)
virtual PRBool TagCanContainTag (const nsAString &aParentTag, const nsAString &aChildTag)
NS_IMETHOD TypedText (const nsAString &aString, PRInt32 aAction)
void undo (in unsigned long count)
NS_IMETHOD Undo (PRUint32 aCount)
Methods
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

static nsCOMPtr< nsIDOMNodeGetBlockNodeParent (nsIDOMNode *aNode)
static nsresult GetBlockSection (nsIDOMNode *aNode, nsIDOMNode **aLeftNode, nsIDOMNode **aRightNode)
static nsresult GetBlockSectionsForRange (nsIDOMRange *aRange, nsCOMArray< nsIDOMRange > &aSections)
static nsCOMPtr< nsIDOMNodeGetChildAt (nsIDOMNode *aParent, PRInt32 aOffset)
static nsresult GetChildOffset (nsIDOMNode *aChild, nsIDOMNode *aParent, PRInt32 &aOffset)
static nsresult GetEndNodeAndOffset (nsISelection *aSelection, nsCOMPtr< nsIDOMNode > *outEndNode, PRInt32 *outEndOffset)
static PRInt32 GetIndexOf (nsIDOMNode *aParent, nsIDOMNode *aChild)
static nsresult GetLengthOfDOMNode (nsIDOMNode *aNode, PRUint32 &aCount)
static nsresult GetNodeLocation (nsIDOMNode *aChild, nsCOMPtr< nsIDOMNode > *aParent, PRInt32 *aOffset)
static nsresult GetStartNodeAndOffset (nsISelection *aSelection, nsCOMPtr< nsIDOMNode > *outStartNode, PRInt32 *outStartOffset)
static nsIAtom * GetTag (nsIDOMNode *aNode)
static nsresult GetTagString (nsIDOMNode *aNode, nsAString &outString)
static PRBool HasSameBlockNodeParent (nsIDOMNode *aNode1, nsIDOMNode *aNode2)
static PRBool IsTextNode (nsIDOMNode *aNode)
static PRBool IsTextOrElementNode (nsIDOMNode *aNode)
static nsCOMPtr< nsIDOMNodeNextNodeInBlock (nsIDOMNode *aNode, IterDirection aDir)
static nsresult NodeIsBlockStatic (nsIDOMNode *aNode, PRBool *aIsBlock)
static PRBool NodeIsType (nsIDOMNode *aNode, nsIAtom *aTag)
static PRBool NodeIsTypeString (nsIDOMNode *aNode, const nsAString &aTag)
static void Shutdown ()

Public Attributes

readonly attribute nsIDOMElement absolutelyPositionedSelectionContainer
attribute boolean absolutePositioningEnabled
readonly attribute boolean composing
attribute string contentsMIMEType
readonly attribute nsIDOMDocument document
attribute ACString documentCharacterSet
readonly attribute boolean documentIsEmpty
readonly attribute boolean documentModified
const short eBottom = 6
const short eBottomLeft = 5
const short eBottomRight = 7
const long eEditorAllowInteraction = 0x0800
const long eEditorDisabledMask = 0x0010
const long eEditorEnableWrapHackMask = 0x0100
const long eEditorFilterInputMask = 0x0020
const long eEditorMailMask = 0x0040
const long eEditorNoCSSMask = 0x0400
const long eEditorPasswordMask = 0x0004
const long eEditorPlaintextMask = 0x0001
const long eEditorReadonlyMask = 0x0008
const long eEditorSingleLineMask = 0x0002
const long eEditorUseAsyncUpdatesMask = 0x0080
const long eEditorWidgetMask = 0x0200
const short eLeft = 3
const long eNewlinesPasteIntact = 0
const long eNewlinesPasteToFirst = 1
const long eNewlinesReplaceWithCommas = 4
const long eNewlinesReplaceWithSpaces = 2
const long eNewlinesStrip = 3
const long eNewlinesStripSurroundingWhitespace = 5
const short eNext = 1
const short eNextWord = 3
const short eNoSearch = 0
const short ePrevious = 2
const short ePreviousColumn = 1
const short ePreviousRow = 2
const short ePreviousWord = 4
const short eRight = 4
const short eToBeginningOfLine = 5
const short eToEndOfLine = 6
const short eTop = 1
const short eTopRight = 2
attribute unsigned long flags
attribute unsigned long gridSize
attribute boolean inlineTableEditingEnabled
readonly attribute boolean isDocumentEditable
attribute long maxTextLength
attribute long newlineHandling
attribute boolean objectResizingEnabled
readonly attribute DOMString phonetic
readonly attribute nsIDOMElement positionedElement
readonly attribute nsIDOMElement resizedObject
readonly attribute nsIDOMElement rootElement
readonly attribute nsISelection selection
readonly attribute boolean selectionContainerAbsolutelyPositioned
readonly attribute
nsISelectionController 
selectionController
attribute boolean snapToGridEnabled
readonly attribute long textLength
attribute nsITransactionManager transactionManager
attribute long wrapWidth

Protected Types

enum  TDocumentListenerNotification { eDocumentCreated, eDocumentToBeDestroyed, eDocumentStateChanged }
enum  Tristate { eTriUnset, eTriFalse, eTriTrue }

Protected Member Functions

void AddMouseClickListener (nsIDOMElement *aElement)
void AddPositioningOffet (PRInt32 &aX, PRInt32 &aY)
PRBool AllCellsInColumnSelected (nsIDOMElement *aTable, PRInt32 aColIndex, PRInt32 aNumberOfRows)
PRBool AllCellsInRowSelected (nsIDOMElement *aTable, PRInt32 aRowIndex, PRInt32 aNumberOfColumns)
nsresult ApplyDefaultProperties ()
void BeginEditorInit ()
nsresult CheckPositionedElementBGandFG (nsIDOMElement *aElement, nsAString &aReturn)
void ClearInlineStylesCache ()
void ClearWeakReferences ()
nsresult CopyCellBackgroundColor (nsIDOMElement *destCell, nsIDOMElement *sourceCell)
NS_IMETHOD CreateBR (nsIDOMNode *aNode, PRInt32 aOffset, nsCOMPtr< nsIDOMNode > *outBRNode, EDirection aSelect=eNone)
NS_IMETHOD CreateBR (nsIDOMNode *aNode, PRInt32 aOffset, nsCOMPtr< nsIDOMNode > *outBRNode, nsIEditor::EDirection aSelect=nsIEditor::eNone)
NS_IMETHOD CreateBRImpl (nsCOMPtr< nsIDOMNode > *aInOutParent, PRInt32 *aInOutOffset, nsCOMPtr< nsIDOMNode > *outBRNode, EDirection aSelect)
NS_IMETHOD CreateBRImpl (nsCOMPtr< nsIDOMNode > *aInOutParent, PRInt32 *aInOutOffset, nsCOMPtr< nsIDOMNode > *outBRNode, nsIEditor::EDirection aSelect)
nsresult CreateDOMFragmentFromPaste (const nsAString &aInputString, const nsAString &aContextStr, const nsAString &aInfoStr, nsCOMPtr< nsIDOMNode > *outFragNode, nsCOMPtr< nsIDOMNode > *outStartNode, nsCOMPtr< nsIDOMNode > *outEndNode, PRInt32 *outStartOffset, PRInt32 *outEndOffset)
virtual nsresult CreateEventListeners ()
nsresult CreateGrabber (nsIDOMNode *aParentNode, nsIDOMElement **aReturn)
nsresult CreateListOfNodesToPaste (nsIDOMNode *aFragmentAsNode, nsCOMArray< nsIDOMNode > &outNodeList, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset)
nsresult CreateResizer (nsIDOMElement **aReturn, PRInt16 aLocation, nsIDOMNode *aParentNode)
nsresult CreateResizingInfo (nsIDOMElement **aReturn, nsIDOMNode *aParentNode)
nsresult CreateShadow (nsIDOMElement **aReturn, nsIDOMNode *aParentNode, nsIDOMElement *aOriginalObject)
nsresult CreateTagStack (nsTArray< nsString > &aTagStack, nsIDOMNode *aNode)
NS_IMETHOD CreateTxnForAddStyleSheet (nsICSSStyleSheet *aSheet, AddStyleSheetTxn **aTxn)
NS_IMETHOD CreateTxnForCreateElement (const nsAString &aTag, nsIDOMNode *aParent, PRInt32 aPosition, CreateElementTxn **aTxn)
nsresult CreateTxnForDeleteCharacter (nsIDOMCharacterData *aData, PRUint32 aOffset, nsIEditor::EDirection aDirection, DeleteTextTxn **aTxn)
NS_IMETHOD CreateTxnForDeleteElement (nsIDOMNode *aElement, DeleteElementTxn **aTxn)
NS_IMETHOD CreateTxnForDeleteInsertionPoint (nsIDOMRange *aRange, EDirection aAction, EditAggregateTxn *aTxn, nsIDOMNode **aNode, PRInt32 *aOffset, PRInt32 *aLength)
NS_IMETHOD CreateTxnForDeleteSelection (EDirection aAction, EditAggregateTxn **aTxn, nsIDOMNode **aNode, PRInt32 *aOffset, PRInt32 *aLength)
NS_IMETHOD CreateTxnForDeleteText (nsIDOMCharacterData *aElement, PRUint32 aOffset, PRUint32 aLength, DeleteTextTxn **aTxn)
NS_IMETHOD CreateTxnForIMEText (const nsAString &aStringToInsert, IMETextTxn **aTxn)
NS_IMETHOD CreateTxnForInsertElement (nsIDOMNode *aNode, nsIDOMNode *aParent, PRInt32 aOffset, InsertElementTxn **aTxn)
NS_IMETHOD CreateTxnForInsertText (const nsAString &aStringToInsert, nsIDOMCharacterData *aTextNode, PRInt32 aOffset, InsertTextTxn **aTxn)
NS_IMETHOD CreateTxnForJoinNode (nsIDOMNode *aLeftNode, nsIDOMNode *aRightNode, JoinElementTxn **aTxn)
NS_IMETHOD CreateTxnForRemoveAttribute (nsIDOMElement *aElement, const nsAString &aAttribute, ChangeAttributeTxn **aTxn)
NS_IMETHOD CreateTxnForRemoveStyleSheet (nsICSSStyleSheet *aSheet, RemoveStyleSheetTxn **aTxn)
NS_IMETHOD CreateTxnForSetAttribute (nsIDOMElement *aElement, const nsAString &aAttribute, const nsAString &aValue, ChangeAttributeTxn **aTxn)
NS_IMETHOD CreateTxnForSplitNode (nsIDOMNode *aNode, PRUint32 aOffset, SplitElementTxn **aTxn)
NS_IMETHOD DeleteCellContents (nsIDOMElement *aCell)
NS_IMETHOD DeleteColumn (nsIDOMElement *aTable, PRInt32 aColIndex)
void DeleteRefToAnonymousNode (nsIDOMNode *aNode)
void DeleteRefToAnonymousNode (nsIDOMElement *aElement, nsIContent *aParentContent, nsIPresShell *aShell)
NS_IMETHOD DeleteRow (nsIDOMElement *aTable, PRInt32 aRowIndex)
NS_IMETHOD DeleteSelectionAndPrepareToCreateNode (nsCOMPtr< nsIDOMNode > &parentSelectedNode, PRInt32 &offsetOfNewNode)
NS_IMETHOD DeleteTable2 (nsIDOMElement *aTable, nsISelection *aSelection)
nsresult DiscoverPartialListsAndTables (nsCOMArray< nsIDOMNode > &aPasteNodes, nsCOMArray< nsIDOMNode > &aListsAndTables, PRInt32 *outHighWaterMark)
NS_IMETHOD DoAfterDoTransaction (nsITransaction *aTxn)
NS_IMETHOD DoAfterRedoTransaction ()
NS_IMETHOD DoAfterUndoTransaction ()
nsresult DoContentFilterCallback (const nsAString &aFlavor, nsIDOMDocument *aSourceDoc, PRBool aWillDeleteSelection, nsIDOMNode **aFragmentAsNode, nsIDOMNode **aFragStartNode, PRInt32 *aFragStartOffset, nsIDOMNode **aFragEndNode, PRInt32 *aFragEndOffset, nsIDOMNode **aTargetNode, PRInt32 *aTargetOffset, PRBool *aDoContinue)
nsresult EndEditorInit ()
nsresult EndMoving ()
nsresult FireClipboardEvent (PRUint32 msg, PRBool *aPreventDefault)
NS_IMETHOD FixBadColSpan (nsIDOMElement *aTable, PRInt32 aColIndex, PRInt32 &aNewColCount)
NS_IMETHOD FixBadRowSpan (nsIDOMElement *aTable, PRInt32 aRowIndex, PRInt32 &aNewRowCount)
NS_IMETHOD GetAndInitDocEncoder (const nsAString &aFormatType, PRUint32 aFlags, const nsACString &aCharset, nsIDocumentEncoder **encoder)
nsIDOMNodeGetArrayEndpoint (PRBool aEnd, nsCOMArray< nsIDOMNode > &aNodeArray)
nsresult GetAttributeToModifyOnNode (nsIDOMNode *aNode, nsAString &aAttrib)
NS_IMETHOD GetCellContext (nsISelection **aSelection, nsIDOMElement **aTable, nsIDOMElement **aCell, nsIDOMNode **aCellParent, PRInt32 *aCellOffset, PRInt32 *aRowIndex, PRInt32 *aColIndex)
NS_IMETHOD GetCellSpansAt (nsIDOMElement *aTable, PRInt32 aRowIndex, PRInt32 aColIndex, PRInt32 &aActualRowSpan, PRInt32 &aActualColSpan)
nsresult GetClipboardEventTarget (nsIDOMNode **aEventTarget)
PRBool GetDesiredSpellCheckState ()
nsresult GetElementOrigin (nsIDOMElement *aElement, PRInt32 &aX, PRInt32 &aY)
nsresult GetFirstEditableChild (nsIDOMNode *aNode, nsCOMPtr< nsIDOMNode > *aOutFirstChild)
nsresult GetFirstEditableLeaf (nsIDOMNode *aNode, nsCOMPtr< nsIDOMNode > *aOutFirstLeaf)
nsresult GetInlinePropertyBase (nsIAtom *aProperty, const nsAString *aAttribute, const nsAString *aValue, PRBool *aFirst, PRBool *aAny, PRBool *aAll, nsAString *outValue, PRBool aCheckDefaults=PR_TRUE)
nsresult GetKBStateControl (nsIKBStateControl **aKBSC)
nsresult GetLastEditableChild (nsIDOMNode *aNode, nsCOMPtr< nsIDOMNode > *aOutLastChild)
nsresult GetLastEditableLeaf (nsIDOMNode *aNode, nsCOMPtr< nsIDOMNode > *aOutLastLeaf)
NS_IMETHOD GetLayoutObject (nsIDOMNode *aInNode, nsISupports **aOutLayoutObject)
nsresult GetListAndTableParents (PRBool aEnd, nsCOMArray< nsIDOMNode > &aListOfNodes, nsCOMArray< nsIDOMNode > &outArray)
PRInt32 GetNewResizingHeight (PRInt32 aX, PRInt32 aY)
PRInt32 GetNewResizingIncrement (PRInt32 aX, PRInt32 aY, PRInt32 aID)
PRInt32 GetNewResizingWidth (PRInt32 aX, PRInt32 aY)
PRInt32 GetNewResizingX (PRInt32 aX, PRInt32 aY)
PRInt32 GetNewResizingY (PRInt32 aX, PRInt32 aY)
nsresult GetNextHTMLNode (nsIDOMNode *inParent, PRInt32 inOffset, nsCOMPtr< nsIDOMNode > *outNode, PRBool bNoBlockCrossing=PR_FALSE)
nsresult GetNextHTMLNode (nsIDOMNode *inNode, nsCOMPtr< nsIDOMNode > *outNode, PRBool bNoBlockCrossing=PR_FALSE)
nsresult GetNextHTMLSibling (nsIDOMNode *inParent, PRInt32 inOffset, nsCOMPtr< nsIDOMNode > *outNode)
nsresult GetNextHTMLSibling (nsIDOMNode *inNode, nsCOMPtr< nsIDOMNode > *outNode)
nsresult GetNextNodeImpl (nsIDOMNode *aCurrentNode, PRBool aEditableNode, nsCOMPtr< nsIDOMNode > *aResultNode, PRBool bNoBlockCrossing=PR_FALSE)
PRInt32 GetNumberOfCellsInRow (nsIDOMElement *aTable, PRInt32 rowIndex)
nsresult GetPositionAndDimensions (nsIDOMElement *aElement, PRInt32 &aX, PRInt32 &aY, PRInt32 &aW, PRInt32 &aH, PRInt32 &aBorderLeft, PRInt32 &aBorderTop, PRInt32 &aMarginLeft, PRInt32 &aMarginTop)
nsresult GetPriorHTMLNode (nsIDOMNode *inParent, PRInt32 inOffset, nsCOMPtr< nsIDOMNode > *outNode, PRBool bNoBlockCrossing=PR_FALSE)
nsresult GetPriorHTMLNode (nsIDOMNode *inNode, nsCOMPtr< nsIDOMNode > *outNode, PRBool bNoBlockCrossing=PR_FALSE)
nsresult GetPriorHTMLSibling (nsIDOMNode *inParent, PRInt32 inOffset, nsCOMPtr< nsIDOMNode > *outNode)
nsresult GetPriorHTMLSibling (nsIDOMNode *inNode, nsCOMPtr< nsIDOMNode > *outNode)
nsresult GetPriorNodeImpl (nsIDOMNode *aCurrentNode, PRBool aEditableNode, nsCOMPtr< nsIDOMNode > *aResultNode, PRBool bNoBlockCrossing=PR_FALSE)
NS_IMETHOD GetTableLayoutObject (nsIDOMElement *aTable, nsITableLayout **tableLayoutObject)
NS_IMETHOD GetWrapWidth (PRInt32 *aWrapCol)
nsresult GrabberClicked ()
PRBool HasAttr (nsIDOMNode *aNode, const nsAString *aAttribute)
PRBool HasAttrVal (nsIDOMNode *aNode, const nsAString *aAttribute, const nsAString *aValue)
nsresult HasStyleOrIdOrClass (nsIDOMElement *aElement, PRBool *aHasStyleOrIdOrClass)
PRBool HasWeakReferences () const
PRBool HavePrivateHTMLFlavor (nsIClipboard *clipboard)
void HideShadowAndInfo ()
NS_IMETHOD IgnoreSpuriousDragEvent (PRBool aIgnoreSpuriousDragEvent)
NS_IMETHOD InitRules ()
NS_IMETHOD InsertAsPlaintextQuotation (const nsAString &aQuotedText, PRBool aAddCites, nsIDOMNode **aNodeInserted)
nsresult InsertBasicBlock (const nsAString &aBlockType)
NS_IMETHOD InsertBR (nsCOMPtr< nsIDOMNode > *outBRNode)
NS_IMETHOD InsertCell (nsIDOMElement *aCell, PRInt32 aRowSpan, PRInt32 aColSpan, PRBool aAfter, PRBool aIsHeader, nsIDOMElement **aNewCell)
NS_IMETHOD InsertFromTransferable (nsITransferable *transferable, nsIDOMDocument *aSourceDoc, const nsAString &aContextStr, const nsAString &aInfoStr, nsIDOMNode *aDestinationNode, PRInt32 aDestinationOffset, PRBool aDoDeleteSelection)
NS_IMETHOD InsertTextFromTransferable (nsITransferable *transferable, nsIDOMNode *aDestinationNode, PRInt32 aDestOffset, PRBool aDoDeleteSelection)
nsresult InstallEventListeners ()
PRBool IsAtEndOfNode (nsIDOMNode *aNode, PRInt32 aOffset)
PRBool IsAtFrontOfNode (nsIDOMNode *aNode, PRInt32 aOffset)
virtual PRBool IsBlockNode (nsIDOMNode *aNode)
PRBool IsElementInBody (nsIDOMElement *aElement)
PRBool IsEmptyCell (nsIDOMElement *aCell)
nsresult IsFirstEditableChild (nsIDOMNode *aNode, PRBool *aOutIsFirst)
PRBool IsInLink (nsIDOMNode *aNode, nsCOMPtr< nsIDOMNode > *outLink=nsnull)
nsresult IsLastEditableChild (nsIDOMNode *aNode, PRBool *aOutIsLast)
PRBool IsModifiable ()
PRBool IsOnlyAttribute (nsIDOMNode *aElement, const nsAString *aAttribute)
NS_IMETHOD IsRootTag (nsString &aTag, PRBool &aIsTag)
NS_IMETHOD IsSubordinateBlock (nsString &aTag, PRBool &aIsTag)
virtual void IsTextPropertySetByContent (nsIDOMNode *aNode, nsIAtom *aProperty, const nsAString *aAttribute, const nsAString *aValue, PRBool &aIsSet, nsIDOMNode **aStyleNode, nsAString *outValue=nsnull)
PRBool IsVisBreak (nsIDOMNode *aNode)
nsresult MakeDefinitionItem (const nsAString &aItemType)
NS_IMETHOD MergeCells (nsCOMPtr< nsIDOMElement > aTargetCell, nsCOMPtr< nsIDOMElement > aCellToMerge, PRBool aDeleteCellToMerge)
PRBool NodeIsProperty (nsIDOMNode *aNode)
void NormalizeEOLInsertPosition (nsIDOMNode *firstNodeToInsert, nsCOMPtr< nsIDOMNode > *insertParentNode, PRInt32 *insertOffset)
NS_IMETHOD NotifyDocumentListeners (TDocumentListenerNotification aNotificationType)
nsresult ParseCFHTML (nsCString &aCfhtml, PRUnichar **aStuffToPaste, PRUnichar **aCfcontext)
nsresult ParseFragment (const nsAString &aStr, nsTArray< nsString > &aTagStack, nsIDocument *aTargetDoc, nsCOMPtr< nsIDOMNode > *outNode)
NS_IMETHOD PasteAsPlaintextQuotation (PRInt32 aSelectionType)
NS_IMETHOD PrepareHTMLTransferable (nsITransferable **transferable, PRBool havePrivFlavor)
NS_IMETHOD PrepareTransferable (nsITransferable **transferable)
nsresult PromoteInlineRange (nsIDOMRange *inRange)
nsresult PromoteRangeIfStartsOrEndsInNamedAnchor (nsIDOMRange *inRange)
nsresult PutDragDataInTransferable (nsITransferable **aTransferable)
nsresult RelativeFontChange (PRInt32 aSizeChange)
nsresult RelativeFontChangeHelper (PRInt32 aSizeChange, nsIDOMNode *aNode)
nsresult RelativeFontChangeOnNode (PRInt32 aSizeChange, nsIDOMNode *aNode)
nsresult RelativeFontChangeOnTextNode (PRInt32 aSizeChange, nsIDOMCharacterData *aTextNode, PRInt32 aStartOffset, PRInt32 aEndOffset)
nsresult RelativizeURIForNode (nsIDOMNode *aNode, nsIURL *aDestURL)
nsresult RelativizeURIInFragmentList (const nsCOMArray< nsIDOMNode > &aNodeList, const nsAString &aFlavor, nsIDOMDocument *aSourceDoc, nsIDOMNode *aTargetNode)
nsresult RemoveBlockContainer (nsIDOMNode *inNode)
nsresult RemoveElementIfNoStyleOrIdOrClass (nsIDOMElement *aElement, nsIAtom *aTag)
virtual void RemoveEventListeners ()
nsresult RemoveInlinePropertyImpl (nsIAtom *aProperty, const nsAString *aAttribute)
void RemoveListenerAndDeleteRef (const nsAString &aEvent, nsIDOMEventListener *aListener, PRBool aUseCapture, nsIDOMElement *aElement, nsIContent *aParentContent, nsIPresShell *aShell)
void RemoveMouseClickListener (nsIDOMElement *aElement)
nsresult RemoveStyleInside (nsIDOMNode *aNode, nsIAtom *aProperty, const nsAString *aAttribute, PRBool aChildrenOnly=PR_FALSE)
nsresult ReplaceOrphanedStructure (PRBool aEnd, nsCOMArray< nsIDOMNode > &aNodeArray, nsCOMArray< nsIDOMNode > &aListAndTableArray, PRInt32 aHighWaterMark)
void ResetTextSelectionForRange (nsIDOMNode *aParent, PRInt32 aStartOffset, PRInt32 aEndOffset, nsISelection *aSelection)
nsresult ScanForListAndTableStructure (PRBool aEnd, nsCOMArray< nsIDOMNode > &aNodes, nsIDOMNode *aListOrTable, nsCOMPtr< nsIDOMNode > *outReplaceNode)
NS_IMETHOD ScrollSelectionIntoView (PRBool aScrollToAnchor)
nsresult SetAllResizersPosition ()
void SetAnonymousElementPosition (PRInt32 aX, PRInt32 aY, nsIDOMElement *aResizer)
PRBool SetCaretInTableCell (nsIDOMElement *aElement)
NS_IMETHOD SetColSpan (nsIDOMElement *aCell, PRInt32 aColSpan)
nsresult SetFinalPosition (PRInt32 aX, PRInt32 aY)
void SetFinalSize (PRInt32 aX, PRInt32 aY)
nsresult SetInlinePropertyOnNode (nsIDOMNode *aNode, nsIAtom *aProperty, const nsAString *aAttribute, const nsAString *aValue)
nsresult SetInlinePropertyOnTextNode (nsIDOMCharacterData *aTextNode, PRInt32 aStartOffset, PRInt32 aEndOffset, nsIAtom *aProperty, const nsAString *aAttribute, const nsAString *aValue)
void SetResizeIncrements (PRInt32 aX, PRInt32 aY, PRInt32 aW, PRInt32 aH, PRBool aPreserveRatio)
nsresult SetResizingInfoPosition (PRInt32 aX, PRInt32 aY, PRInt32 aW, PRInt32 aH)
NS_IMETHOD SetRowSpan (nsIDOMElement *aCell, PRInt32 aRowSpan)
NS_IMETHOD SetSelectionAtDocumentStart (nsISelection *aSelection)
nsresult SetShadowPosition (nsIDOMElement *aShadow, nsIDOMElement *aOriginalObject, PRInt32 aOriginalObjectX, PRInt32 aOriginalObjectY)
virtual nsresult SetupDocEncoder (nsIDocumentEncoder **aDocEncoder)
nsresult SharedOutputString (PRUint32 aFlags, PRBool *aIsCollapsed, nsAString &aResult)
void SnapToGrid (PRInt32 &newX, PRInt32 &newY)
NS_IMETHOD SplitCellIntoColumns (nsIDOMElement *aTable, PRInt32 aRowIndex, PRInt32 aColIndex, PRInt32 aColSpanLeft, PRInt32 aColSpanRight, nsIDOMElement **aNewCell)
NS_IMETHOD SplitCellIntoRows (nsIDOMElement *aTable, PRInt32 aRowIndex, PRInt32 aColIndex, PRInt32 aRowSpanAbove, PRInt32 aRowSpanBelow, nsIDOMElement **aNewCell)
nsresult SplitStyleAbovePoint (nsCOMPtr< nsIDOMNode > *aNode, PRInt32 *aOffset, nsIAtom *aProperty, const nsAString *aAttribute, nsCOMPtr< nsIDOMNode > *outLeftNode=nsnull, nsCOMPtr< nsIDOMNode > *outRightNode=nsnull)
nsresult SplitStyleAboveRange (nsIDOMRange *aRange, nsIAtom *aProperty, const nsAString *aAttribute)
nsresult StartMoving (nsIDOMElement *aHandle)
nsresult StartResizing (nsIDOMElement *aHandle)
nsresult StripFormattingNodes (nsIDOMNode *aNode, PRBool aOnlyList=PR_FALSE)
NS_IMETHOD TabInTable (PRBool inIsShift, PRBool *outHandled)
void UpdateForFlags (PRUint32 aFlags)

Static Protected Member Functions

static nsCOMPtr< nsIDOMNodeGetEnclosingTable (nsIDOMNode *aNode)

Protected Attributes

nsCOMPtr< nsIDOMElementmAbsolutelyPositionedObject
PRInt32 mAction
nsCOMArray< nsIEditActionListenermActionListeners
nsCOMPtr< nsIDOMElementmActivatedHandle
nsCOMPtr< nsIDOMElementmAddColumnAfterButton
nsCOMPtr< nsIDOMElementmAddColumnBeforeButton
nsCOMPtr< nsIDOMElementmAddRowAfterButton
nsCOMPtr< nsIDOMElementmAddRowBeforeButton
nsIViewManager::UpdateViewBatch mBatch
nsCOMPtr< nsIDOMElementmBottomHandle
nsCOMPtr< nsIDOMElementmBottomLeftHandle
nsCOMPtr< nsIDOMElementmBottomRightHandle
nsCOMPtr< nsIDOMNodemCachedNode
PRInt32 mCaretStyle
nsCOMPtr< nsIDOMEventListenermCompositionListenerP
nsCOMArray< nsIContentFilter > mContentFilters
nsCString mContentMIMEType
PRPackedBool mCRInParagraphCreatesParagraph
PRPackedBool mCSSAware
nsVoidArray mDefaultStyles
PRPackedBool mDidPreDestroy
EDirection mDirection
PRInt8 mDocDirtyState
nsCOMArray
< nsIDocumentStateListener > 
mDocStateListeners
nsWeakPtr mDocWeak
nsCOMPtr< nsIDOMEventListenermDragListenerP
nsCOMArray< nsIEditorObservermEditorObservers
nsCOMPtr< nsPIDOMEventTarget > mEventTarget
PRUint32 mFlags
nsCOMPtr< nsIDOMEventListenermFocusListenerP
nsCOMPtr< nsIDOMElementmGrabber
PRPackedBool mGrabberClicked
PRInt32 mGridSize
PRInt32 mHeightIncrementFactor
nsHTMLCSSUtils * mHTMLCSSUtils
PRBool mIgnoreSpuriousDragEvent
PRUint32 mIMEBufferLength
nsCOMPtr< nsIDOMCharacterDatamIMETextNode
PRUint32 mIMETextOffset
nsCOMPtr< nsIPrivateTextRangeList > mIMETextRangeList
PRInt8 mInfoXIncrement
PRInt8 mInfoYIncrement
PRPackedBool mInIMEMode
PRInt32 mInitTriggerCounter
nsCOMPtr< nsIDOMElementmInlineEditedCell
nsCOMPtr< nsIInlineSpellChecker > mInlineSpellChecker
PRPackedBool mIsAbsolutelyPositioningEnabled
PRPackedBool mIsIMEComposing
PRPackedBool mIsInlineTableEditingEnabled
PRPackedBool mIsMoving
PRPackedBool mIsObjectResizingEnabled
PRPackedBool mIsResizing
nsCOMPtr< nsIDOMEventListenermKeyListenerP
nsString mLastOverrideStyleSheetURL
nsString mLastStyleSheetURL
nsCOMPtr< nsIDOMElementmLeftHandle
nsCOMPtr< nsILinkHandlermLinkHandler
PRInt32 mMaxTextLength
PRUint32 mModCount
nsCOMPtr< nsIDOMEventListenermMouseListenerP
nsCOMPtr< nsIDOMEventListenermMouseMotionListenerP
PRInt32 mNewlineHandling
PRInt32 mOriginalX
PRInt32 mOriginalY
nsStringmPhonetic
PRInt32 mPlaceHolderBatch
nsIAtom * mPlaceHolderName
nsWeakPtr mPlaceHolderTxn
PRInt32 mPositionedObjectBorderLeft
PRInt32 mPositionedObjectBorderTop
PRInt32 mPositionedObjectHeight
PRInt32 mPositionedObjectMarginLeft
PRInt32 mPositionedObjectMarginTop
PRInt32 mPositionedObjectWidth
PRInt32 mPositionedObjectX
PRInt32 mPositionedObjectY
nsCOMPtr< nsIDOMElementmPositioningShadow
PRPackedBool mPreserveRatio
nsWeakPtr mPresShellWeak
nsRangeUpdater mRangeUpdater
nsCOMPtr< nsIDOMElementmRemoveColumnButton
nsCOMPtr< nsIDOMElementmRemoveRowButton
nsCOMPtr< nsIDOMElementmResizedObject
PRInt32 mResizedObjectBorderLeft
PRInt32 mResizedObjectBorderTop
PRInt32 mResizedObjectHeight
PRPackedBool mResizedObjectIsAbsolutelyPositioned
PRPackedBool mResizedObjectIsAnImage
PRInt32 mResizedObjectMarginLeft
PRInt32 mResizedObjectMarginTop
PRInt32 mResizedObjectWidth
PRInt32 mResizedObjectX
PRInt32 mResizedObjectY
nsCOMPtr< nsIDOMEventListenermResizeEventListenerP
nsCOMPtr< nsIDOMElementmResizingInfo
nsCOMPtr< nsIDOMElementmResizingShadow
nsCOMPtr< nsIDOMElementmRightHandle
nsCOMPtr< nsIDOMElementmRootElement
nsCOMPtr< nsIEditRules > mRules
nsSelectionState mSavedSel
nsWeakPtr mSelConWeak
PRInt32 mSelectedCellIndex
nsCOMPtr< nsISelectionListener > mSelectionListenerP
nsSelectionState * mSelState
PRPackedBool mShouldTxnSetSelection
PRPackedBool mSnapToGridEnabled
enum nsEditor::Tristate mSpellcheckCheckboxState
nsCOMArray< nsICSSStyleSheet > mStyleSheets
nsStringArray mStyleSheetURLs
nsCOMPtr< nsIDOMEventListenermTextListenerP
nsCOMPtr< nsITextServicesDocumentmTextServices
nsCOMPtr< nsIDOMElementmTopHandle
nsCOMPtr< nsIDOMElementmTopLeftHandle
nsCOMPtr< nsIDOMElementmTopRightHandle
nsCOMPtr< nsITransactionManager > mTxnMgr
TypeInState * mTypeInState
PRInt32 mUpdateCount
nsIViewManager * mViewManager
PRInt32 mWidthIncrementFactor
PRInt32 mWrapColumn
PRBool mWrapToWindow
PRInt32 mXIncrementFactor
PRInt32 mYIncrementFactor
nsCOMArray
< nsIHTMLObjectResizeListener > 
objectResizeEventListeners

Static Protected Attributes

static nsIRangeUtils * sRangeHelper

Private Types

enum  BlockTransformationType { eNoOp, eReplaceParent = 1, eInsertParent = 2 }

Friends

class nsAutoEditInitRulesTrigger
class nsAutoRules
class nsAutoSelectionReset
class nsAutoTxnsConserveSelection
PRBool NSCanUnload (nsISupports *serviceMgr)
class nsHTMLEditRules
class nsRangeUpdater
class nsTextEditRules
class nsWSRunObject

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index