private XIndexAccess createCollection() {
XNameAccess oNA = null;
if ( iDsc instanceof TableDsc ) {
XTextTablesSupplier oTTS = (XTextTablesSupplier)
UnoRuntime.queryInterface(
XTextTablesSupplier.class, xParent );
oNA = oTTS.getTextTables();
}
if ( iDsc instanceof FrameDsc ) {
XTextFramesSupplier oTTS = (XTextFramesSupplier)
UnoRuntime.queryInterface(
XTextFramesSupplier.class, xParent );
oNA = oTTS.getTextFrames();
}
if ( iDsc instanceof BookmarkDsc ) {
XBookmarksSupplier oTTS = (XBookmarksSupplier)
UnoRuntime.queryInterface(
XBookmarksSupplier.class, xParent );
oNA = oTTS.getBookmarks();
}
if ( iDsc instanceof FootnoteDsc ) {
XFootnotesSupplier oTTS = (XFootnotesSupplier)
UnoRuntime.queryInterface(
XFootnotesSupplier.class, xParent );
return( oTTS.getFootnotes() );
}
if ( iDsc instanceof TextSectionDsc ) {
XTextSectionsSupplier oTSS = (XTextSectionsSupplier)
UnoRuntime.queryInterface(