m_aTestHelper.Message ( "==============================" );
m_aTestHelper.Message ( sFilterName[i] );
m_aTestHelper.Message ( "==============================" );
//create a new temporary file
Object oTempFile = m_xMSF.createInstance ( "com.sun.star.io.TempFile" );
XTempFile xTempFile = (XTempFile) UnoRuntime.queryInterface (
XTempFile.class, oTempFile );
//create a text document and initiallize it
Object oTextDocument = m_xMSF.createInstance ( "com.sun.star.text.TextDocument" );
XLoadable xLoadable = (XLoadable) UnoRuntime.queryInterface (
XLoadable.class, oTextDocument );
xLoadable.initNew();
m_aTestHelper.Message ( "New document initialized." );
//store the instance to the temporary file URL
XStorable xStorable = (XStorable) UnoRuntime.queryInterface (
XStorable.class, oTextDocument );
String sURL = AnyConverter.toString ( xTempFile.getUri () );
PropertyValue aProps[] = new PropertyValue[2];
aProps[0] = new PropertyValue();
aProps[0].Name = "DocumentTitle";
aProps[0].Value = sDocTitle[i];
aProps[1] = new PropertyValue();