java.util.Vector TitleVector = null;
java.util.Vector NameVector = null;
String[] NameList;
XInterface xDocInterface = (XInterface) xMSF.createInstance("com.sun.star.document.StandaloneDocumentInfo");
XStandaloneDocumentInfo xDocInfo = (XStandaloneDocumentInfo) UnoRuntime.queryInterface(XStandaloneDocumentInfo.class, xDocInterface);
XInterface xInterface = (XInterface) xMSF.createInstance("com.sun.star.ucb.SimpleFileAccess");
XSimpleFileAccess xSimpleFileAccess = (XSimpleFileAccess) UnoRuntime.queryInterface(XSimpleFileAccess.class, xInterface);
NameList = xSimpleFileAccess.getFolderContents(FolderName, false);
TitleVector = new java.util.Vector(NameList.length);
NameVector = new java.util.Vector(NameList.length);
int FileCount = NameList.length;
int FilterLen = FilterName.length();
String CurFileName = "";
for (int i = 0; i<FileCount; i++){
CurFileName = NameList[i];
int s = CurFileName.indexOf(FilterName + "-");
if (CurFileName.indexOf(FilterName + "-")!= -1){
xDocInfo.loadFromURL(CurFileName);
NameVector.addElement(CurFileName);
TitleVector.addElement(AnyConverter.toString(getUNOPropertyValue(xDocInterface, "Title")));
}
}
String[]LocNameList = new String[NameVector.size()];