Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
nsFormContentList Class Reference

#include <nsContentList.h>

Inheritance diagram for nsFormContentList:
Inheritance graph
[legend]
Collaboration diagram for nsFormContentList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsFormContentList (nsIDOMHTMLFormElement *aForm, nsBaseContentList &aContentList)
NS_DECL_ISUPPORTS virtual
NS_DECL_NSIDOMNODELIST void 
AppendElement (nsIContent *aContent)
virtual void RemoveElement (nsIContent *aContent)
virtual PRInt32 IndexOf (nsIContent *aContent, PRBool aDoFlush)
virtual void Reset ()
nsIDOMNode item (in unsigned long index)

Static Public Member Functions

static void Shutdown ()

Public Attributes

readonly attribute unsigned long length

Protected Attributes

nsCOMArray< nsIContentmElements

Detailed Description

Definition at line 88 of file nsContentList.h.


Constructor & Destructor Documentation

Definition at line 135 of file nsContentList.cpp.

  : nsBaseContentList()
{

  // move elements that belong to mForm into this content list

  PRUint32 i, length = 0;
  nsCOMPtr<nsIDOMNode> item;

  aContentList.GetLength(&length);

  for (i = 0; i < length; i++) {
    aContentList.Item(i, getter_AddRefs(item));

    nsCOMPtr<nsIContent> c(do_QueryInterface(item));

    if (c && nsContentUtils::BelongsInForm(aForm, c)) {
      AppendElement(c);
    }
  }
}

Here is the call graph for this function:


Member Function Documentation

void nsBaseContentList::AppendElement ( nsIContent aContent) [virtual, inherited]

Definition at line 102 of file nsContentList.cpp.

{
  mElements.AppendObject(aContent);
}

Here is the call graph for this function:

Here is the caller graph for this function:

PRInt32 nsBaseContentList::IndexOf ( nsIContent aContent,
PRBool  aDoFlush 
) [virtual, inherited]

Reimplemented in nsContentList.

Definition at line 114 of file nsContentList.cpp.

{
  return mElements.IndexOf(aContent);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsIDOMNode nsIDOMNodeList::item ( in unsigned long  index) [inherited]

Here is the caller graph for this function:

void nsBaseContentList::RemoveElement ( nsIContent aContent) [virtual, inherited]

Definition at line 108 of file nsContentList.cpp.

{
  mElements.RemoveObject(aContent);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nsBaseContentList::Reset ( void  ) [virtual, inherited]

Definition at line 120 of file nsContentList.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void nsBaseContentList::Shutdown ( ) [static, inherited]

Definition at line 127 of file nsContentList.cpp.


Member Data Documentation

readonly attribute unsigned long nsIDOMNodeList::length [inherited]

Definition at line 58 of file nsIDOMNodeList.idl.

Definition at line 81 of file nsContentList.h.


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