Logo Search packages:      
Sourcecode: xulrunner version File versions

nsIContent Class Reference

#include <nsIContent.h>

Inheritance diagram for nsIContent:

nsISupports nsITextContent nsIXMLContent nsGenericElement nsTextNode nsGenericHTMLElement nsAttributeTextNode nsGenericHTMLFormElement nsGenericHTMLFrameElement nsHTMLOptGroupElement nsHTMLOptionElement nsGenConImageContent nsHTMLSelectElement

List of all members.


Detailed Description

A node of content in a document's content model. This interface is supported by all content objects.

Definition at line 70 of file nsIContent.h.


Public Types

enum  {
  eTEXT = 0x00000001, eELEMENT = 0x00000002, eHTML = 0x00000004, eHTML_FORM_CONTROL = 0x00000008,
  eXUL = 0x00000010, ePROCESSING_INSTRUCTION = 0x00000020, eSVG = 0x00000040, eCOMMENT = 0x00000080
}
enum  ETabFocusType { eTabFocus_formElementsMask = (1<<1), eTabFocus_linksMask = (1<<2), eTabFocus_any = 1 + (1<<1) + (1<<2) }

Public Member Functions

virtual nsresult AppendChildTo (nsIContent *aKid, PRBool aNotify)=0
virtual void BeginAddingChildren ()
virtual nsresult BindToTree (nsIDocument *aDocument, nsIContent *aParent, nsIContent *aBindingParent, PRBool aCompileEventHandlers)=0
virtual PRUint32 ContentID () const =0
virtual nsresult DeleteProperty (nsIAtom *aPropertyName)
virtual void DoneAddingChildren ()
virtual void DoneCreatingElement ()
virtual nsresult GetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, nsAString &aResult) const =0
virtual PRUint32 GetAttrCount () const =0
virtual nsresult GetAttrNameAt (PRUint32 aIndex, PRInt32 *aNameSpaceID, nsIAtom **aName, nsIAtom **aPrefix) const =0
virtual already_AddRefed< nsIURI > GetBaseURI () const =0
virtual nsIContentGetBindingParent () const =0
virtual nsIContentGetChildAt (PRUint32 aIndex) const =0
virtual PRUint32 GetChildCount () const =0
nsIDocument * GetCurrentDoc () const
virtual nsIDocument * GetDocument () const =0
virtual already_AddRefed
< nsINodeInfo > 
GetExistingAttrNameFromQName (const nsAString &aStr) const =0
virtual nsIAtom * GetIDAttributeName () const =0
virtual nsresult GetListenerManager (nsIEventListenerManager **aResult)=0
virtual PRInt32 GetNameSpaceID () const =0
virtual nsINodeInfo * GetNodeInfo () const =0
virtual nsIDocument * GetOwnerDoc () const =0
nsIContentGetParent () const
virtual void * GetProperty (nsIAtom *aPropertyName, nsresult *aStatus=nsnull) const
virtual const nsVoidArrayGetRangeList () const =0
virtual nsresult HandleDOMEvent (nsPresContext *aPresContext, nsEvent *aEvent, nsIDOMEvent **aDOMEvent, PRUint32 aFlags, nsEventStatus *aEventStatus)=0
virtual PRBool HasAttr (PRInt32 aNameSpaceID, nsIAtom *aName) const =0
virtual PRInt32 IndexOf (nsIContent *aPossibleChild) const =0
virtual nsresult InsertChildAt (nsIContent *aKid, PRUint32 aIndex, PRBool aNotify)=0
virtual PRInt32 IntrinsicState () const
virtual PRBool IsContentOfType (PRUint32 aFlags) const =0
virtual PRBool IsDoneAddingChildren ()
virtual PRBool IsFocusable (PRInt32 *aTabIndex=nsnull)
virtual PRBool IsInDoc () const =0
virtual PRBool IsNativeAnonymous () const =0
virtual PRBool MayHaveFrame () const
virtual nsresult RangeAdd (nsIDOMRange *aRange)=0
virtual void RangeRemove (nsIDOMRange *aRange)=0
virtual nsresult RemoveChildAt (PRUint32 aIndex, PRBool aNotify)=0
virtual void RemoveFocus (nsPresContext *aPresContext)
virtual nsresult SetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, nsIAtom *aPrefix, const nsAString &aValue, PRBool aNotify)=0
nsresult SetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, const nsAString &aValue, PRBool aNotify)
virtual void SetContentID (PRUint32 aID)
virtual void SetFocus (nsPresContext *aPresContext)
virtual void SetMayHaveFrame (PRBool aMayHaveFrame)
virtual void SetNativeAnonymous (PRBool aAnonymous)=0
virtual nsresult SetProperty (nsIAtom *aPropertyName, void *aValue, NSPropertyDtorFunc aDtor=nsnull)
virtual nsIAtom * Tag () const =0
virtual void UnbindFromTree (PRBool aDeep=PR_TRUE, PRBool aNullParent=PR_TRUE)=0
virtual nsresult UnsetAttr (PRInt32 aNameSpaceID, nsIAtom *aAttr, PRBool aNotify)=0
virtual void * UnsetProperty (nsIAtom *aPropertyName, nsresult *aStatus=nsnull)
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Attributes

static PRInt32 sTabFocusModel = eTabFocus_any
static PRBool sTabFocusModelAppliesToXUL = PR_FALSE

Protected Types

enum  { kParentBitMask = 0x3 }
typedef PRWord PtrBits

Protected Attributes

PtrBits mParentPtrBits

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

Generated by  Doxygen 1.6.0   Back to index