Logo Search packages:      
Sourcecode: xulrunner version File versions

nsContentList Class Reference

#include <nsContentList.h>

Inheritance diagram for nsContentList:

nsContentListKey nsIDOMHTMLCollection nsStubDocumentObserver nsIDOMNodeList nsISupports nsISupports nsISupports

List of all members.

Detailed Description

Class that implements a live NodeList that matches nodes in the tree based on some criterion

Definition at line 173 of file nsContentList.h.

Public Member Functions

AppendElement (nsIContent *aContent)
virtual void AttributeChanged (nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID, nsIAtom *aAttribute, PRInt32 aModType)
virtual void BeginLoad (nsIDocument *aDocument)=0
virtual void BeginReflow (nsIDocument *aDocument, nsIPresShell *aShell)=0
virtual void BeginUpdate (nsIDocument *aDocument, nsUpdateType aUpdateType)=0
virtual void CharacterDataChanged (nsIDocument *aDocument, nsIContent *aContent, PRBool aAppend)=0
virtual void ContentAppended (nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer)
virtual void ContentInserted (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)
virtual void ContentRemoved (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)
virtual void ContentStatesChanged (nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2, PRInt32 aStateMask)=0
virtual void DocumentWillBeDestroyed (nsIDocument *aDocument)
virtual void EndLoad (nsIDocument *aDocument)=0
virtual void EndReflow (nsIDocument *aDocument, nsIPresShell *aShell)=0
virtual void EndUpdate (nsIDocument *aDocument, nsUpdateType aUpdateType)=0
nsContentListKeyGetKey ()
IndexOf (nsIContent *aContent, PRBool aDoFlush)
nsIDOMNode item (in unsigned long index)
nsIDOMNode item (in unsigned long index)
nsIDOMNode namedItem (in DOMString name)
 NS_HIDDEN_ (void) RootDestroyed()
 NS_HIDDEN_ (nsIContent *) NamedItem(const nsAString &aName
 NS_HIDDEN_ (nsIContent *) Item(PRUint32 aIndex
 NS_HIDDEN_ (PRUint32) Length(PRBool aDoFlush)
 NS_HIDDEN_ (nsISupports *) GetParentObject()
 nsContentList (nsIDocument *aDocument, nsContentListMatchFunc aFunc, const nsAString &aData, nsIContent *aRootContent=nsnull, PRBool aDeep=PR_TRUE, nsIAtom *aMatchAtom=nsnull, PRInt32 aMatchNameSpaceId=kNameSpaceID_None)
NS_DECL_ISUPPORTS_INHERITED nsContentList (nsIDocument *aDocument, nsIAtom *aMatchAtom, PRInt32 aMatchNameSpaceId, nsIContent *aRootContent=nsnull, PRBool aDeep=PR_TRUE)
virtual void RemoveElement (nsIContent *aContent)
virtual void Reset ()
virtual void StyleRuleAdded (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule)=0
virtual void StyleRuleChanged (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule, nsIStyleRule *aNewStyleRule)=0
virtual void StyleRuleRemoved (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule)=0
virtual void StyleSheetAdded (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet)=0
virtual void StyleSheetApplicableStateChanged (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aApplicable)=0
virtual void StyleSheetRemoved (nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet)=0
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

static void OnDocumentDestroy (nsIDocument *aDocument)
static void Shutdown ()

Public Attributes

PRBool aDoFlush
readonly attribute unsigned long length
readonly attribute unsigned long length

Protected Member Functions

void BringSelfUpToDate (PRBool aDoFlush)
void CheckDocumentExistence ()
PRBool ContainsRoot (nsIContent *aContent)
void DisconnectFromDocument ()
PRBool Equals (const nsContentListKey &aContentListKey) const
PRUint32 GetHash (void) const
void Init (nsIDocument *aDocument)
PRBool IsContentAnonymous (nsIContent *aContent)
PRBool Match (nsIContent *aContent)
PRBool MatchSelf (nsIContent *aContent)
PRBool MayContainRelevantNodes (nsIContent *aContainer)
void PopulateSelf (PRUint32 aNeededLength)
void PopulateWith (nsIContent *aContent, PRBool aIncludeRoot, PRUint32 &aElementsToAppend)
void PopulateWithStartingAfter (nsIContent *aStartRoot, nsIContent *aStartChild, PRUint32 &aElementsToAppend)
void RemoveFromHashtable ()
void SetDirty ()

Protected Attributes

const nsAFlatStringmData
PRPackedBool mDeep
nsIDocument * mDocument
nsCOMArray< nsIContentmElements
nsContentListMatchFunc mFunc
PRPackedBool mMatchAll
nsCOMPtr< nsIAtom > mMatchAtom
PRInt32 mMatchNameSpaceId
PRUint8 mState

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

Generated by  Doxygen 1.6.0   Back to index