* re-check hashtable if new objects have been added. This is a slow
* loop, so only do it once */
if (embeddedObjectHashtable.size()==0){
Logger.getLogger("com.CompPad").fine("getEmbeddedObjects 02");
XEmbeddedObjectSupplier xEOS;
XTextEmbeddedObjectsSupplier xEOsS =
(XTextEmbeddedObjectsSupplier) UnoRuntime.queryInterface(
com.sun.star.text.XTextEmbeddedObjectsSupplier.class,
xTextDocument);
Logger.getLogger("com.CompPad").fine("getEmbeddedObjects 05");
XIndexAccess indexEmbeddedObjects =
(XIndexAccess) UnoRuntime.queryInterface(
XIndexAccess.class,(xEOsS.getEmbeddedObjects()));
Logger.getLogger("com.CompPad").fine("getEmbeddedObjects 10");
for (int i =0; i<indexEmbeddedObjects.getCount();i++){
Logger.getLogger("com.CompPad").fine("getEmbeddedObjects20");
// EmbeddedObjects.getByName() returns an Any object, which has the
// type embedded with the object.s