Back to index

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

#include <nsXBLInsertionPoint.h>

Collaboration diagram for nsXBLInsertionPoint:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsXBLInsertionPoint (nsIContent *aParentElement, PRUint32 aIndex, nsIContent *aDefContent)
 ~nsXBLInsertionPoint ()
nsrefcnt AddRef ()
nsrefcnt Release ()
already_AddRefed< nsIContentGetInsertionParent ()
PRInt32 GetInsertionIndex ()
void SetDefaultContent (nsIContent *aDefaultContent)
already_AddRefed< nsIContentGetDefaultContent ()
void SetDefaultContentTemplate (nsIContent *aDefaultContent)
already_AddRefed< nsIContentGetDefaultContentTemplate ()
void AddChild (nsIContent *aChildElement)
void InsertChildAt (PRInt32 aIndex, nsIContent *aChildElement)
void RemoveChild (nsIContent *aChildElement)
PRInt32 ChildCount ()
already_AddRefed< nsIContentChildAt (PRUint32 aIndex)
PRBool Matches (nsIContent *aContent, PRUint32 aIndex)

Protected Attributes

nsAutoRefCnt mRefCnt
nsIContentmParentElement
PRInt32 mIndex
nsCOMArray< nsIContentmElements
nsCOMPtr< nsIContentmDefaultContentTemplate
nsCOMPtr< nsIContentmDefaultContent

Detailed Description

Definition at line 46 of file nsXBLInsertionPoint.h.


Constructor & Destructor Documentation

nsXBLInsertionPoint::nsXBLInsertionPoint ( nsIContent aParentElement,
PRUint32  aIndex,
nsIContent aDefContent 
)

Definition at line 41 of file nsXBLInsertionPoint.cpp.

  : mParentElement(aParentElement),
    mIndex(aIndex),
    mDefaultContentTemplate(aDefaultContent)
{
}

Definition at line 50 of file nsXBLInsertionPoint.cpp.

{
}

Member Function Documentation

void nsXBLInsertionPoint::AddChild ( nsIContent aChildElement) [inline]

Definition at line 71 of file nsXBLInsertionPoint.h.

{ mElements.AppendObject(aChildElement); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 52 of file nsXBLInsertionPoint.h.

  {
    ++mRefCnt;
    NS_LOG_ADDREF(this, mRefCnt, "nsXBLInsertionPoint",
                  sizeof(nsXBLInsertionPoint));
    return mRefCnt;
  }

Definition at line 91 of file nsXBLInsertionPoint.cpp.

{
  nsIContent* result = mElements.ObjectAt(aIndex);
  NS_IF_ADDREF(result);
  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 75 of file nsXBLInsertionPoint.h.

{ return mElements.Count(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 75 of file nsXBLInsertionPoint.cpp.

{
  nsIContent* defaultContent = mDefaultContent;
  NS_IF_ADDREF(defaultContent);
  return defaultContent;
}

Here is the caller graph for this function:

Definition at line 83 of file nsXBLInsertionPoint.cpp.

{
  nsIContent* defaultContent = mDefaultContentTemplate;
  NS_IF_ADDREF(defaultContent);
  return defaultContent;
}

Here is the caller graph for this function:

Definition at line 63 of file nsXBLInsertionPoint.h.

{ return mIndex; }

Here is the caller graph for this function:

Definition at line 68 of file nsXBLInsertionPoint.cpp.

Here is the caller graph for this function:

void nsXBLInsertionPoint::InsertChildAt ( PRInt32  aIndex,
nsIContent aChildElement 
) [inline]

Definition at line 72 of file nsXBLInsertionPoint.h.

{ mElements.InsertObjectAt(aChildElement, aIndex); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 99 of file nsXBLInsertionPoint.cpp.

{
  return (aContent == mParentElement && mIndex != -1 && ((PRInt32)aIndex) == mIndex);
}

Here is the caller graph for this function:

Definition at line 55 of file nsXBLInsertionPoint.cpp.

{
  --mRefCnt;
  NS_LOG_RELEASE(this, mRefCnt, "nsXBLInsertionPoint");
  if (mRefCnt == 0) {
    mRefCnt = 1;
    delete this;
    return 0;
  }
  return mRefCnt;
}
void nsXBLInsertionPoint::RemoveChild ( nsIContent aChildElement) [inline]

Definition at line 73 of file nsXBLInsertionPoint.h.

{ mElements.RemoveObject(aChildElement); }

Here is the call graph for this function:

Here is the caller graph for this function:

void nsXBLInsertionPoint::SetDefaultContent ( nsIContent aDefaultContent) [inline]

Definition at line 65 of file nsXBLInsertionPoint.h.

{ mDefaultContent = aDefaultContent; }

Here is the caller graph for this function:

Definition at line 68 of file nsXBLInsertionPoint.h.

{ mDefaultContentTemplate = aDefaultContent; }

Member Data Documentation

Definition at line 88 of file nsXBLInsertionPoint.h.

Definition at line 86 of file nsXBLInsertionPoint.h.

Definition at line 85 of file nsXBLInsertionPoint.h.

Definition at line 84 of file nsXBLInsertionPoint.h.

Definition at line 83 of file nsXBLInsertionPoint.h.

Definition at line 82 of file nsXBLInsertionPoint.h.


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