// now that we are at the proper level, add the item.
listArray[level].setTextStyleNameAttribute(listStyleName);
listItem = new TextListItemElement(ownerDoc);
para = new OdfTextParagraph(ownerDoc);
para.setTextContent(item);
listItem.appendChild(para);
listArray[level].appendChild(listItem);
lastLevel = level;
}
// close off any remaining open lists