52 mArray.SizeTo(aOther.Count());
53 AppendObjects(aOther);
67 nsCOMPtr<nsISupports> supports = do_QueryInterface(aObject);
68 NS_ENSURE_TRUE(supports, -1);
72 count = mArray.Count();
73 for (i = 0; i <
count; ++
i) {
74 nsCOMPtr<nsISupports> arrayItem =
75 do_QueryInterface(reinterpret_cast<nsISupports*>(mArray.ElementAt(i)));
76 if (arrayItem == supports) {
86 PRBool result = mArray.InsertElementAt(aObject, aIndex);
88 NS_IF_ADDREF(aObject);
94 PRBool result = mArray.InsertElementsAt(aObjects.mArray, aIndex);
98 for (PRInt32
i = 0;
i <
count; ++
i) {
110 reinterpret_cast<nsISupports*
>(mArray.SafeElementAt(aIndex));
112 PRBool result = mArray.ReplaceElementAt(aObject, aIndex);
118 NS_IF_ADDREF(aObject);
119 NS_IF_RELEASE(oldObject);
127 PRBool result = mArray.RemoveElement(aObject);
129 NS_IF_RELEASE(aObject);
136 if (PRUint32(aIndex) < PRUint32(
Count())) {
138 NS_IF_RELEASE(element);
140 return mArray.RemoveElementAt(aIndex);
151 NS_IF_RELEASE(element);
nsISupports * ObjectAt(PRInt32 aIndex) const
PRBool RemoveObject(nsISupports *aObject)
PRBool InsertObjectAt(nsISupports *aObject, PRInt32 aIndex)
PRBool RemoveObjectAt(PRInt32 aIndex)
PRBool InsertObjectsAt(const sbCOMArray_base &aObjects, PRInt32 aIndex)
PRBool ReplaceObjectAt(nsISupports *aObject, PRInt32 aIndex)
PR_STATIC_CALLBACK(PRBool) ReleaseObjects(void *aElement
PRInt32 IndexOfObject(nsISupports *aObject) const
PRBool ReleaseObjects(void *aElement, void *)
_getSelectedPageStyle s i