*
* @author Markus Kr�ger
* @date 17.07.2007
*/
public IScript[] getScripts() {
XBrowseNode rootNode = (XBrowseNode) UnoRuntime.queryInterface(
XBrowseNode.class, scriptProvider);
XBrowseNode[] typeNodes = rootNode.getChildNodes();
List list = new ArrayList();
for (int i = 0, n = typeNodes.length; i < n; i++) {
XBrowseNode typeNode = typeNodes[i];
XBrowseNode[] libraryNodes = typeNode.getChildNodes();
for (int j = 0, m = libraryNodes.length; j < m; j++) {
XBrowseNode libraryNode = libraryNodes[j];
buildScripts(list, libraryNode);
}
}
return (IScript[]) list.toArray(new IScript[list.size()]);
}