new ifc.xml.sax._XDocumentHandler.ImportChecker() {
public boolean checkImport() {
XDrawPagesSupplier supp = (XDrawPagesSupplier)
UnoRuntime.queryInterface
(XDrawPagesSupplier.class, xDrawDoc);
final XDrawPages xPages = supp.getDrawPages();
XNamed[] pageArray = new XNamed[ xPages.getCount() ];
for (int i=0; i < xPages.getCount(); i++) {
try {
pageArray[i] = (XNamed) UnoRuntime.queryInterface
(XNamed.class, xPages.getByIndex(i));
} catch (com.sun.star.uno.Exception e) {
e.printStackTrace(fLog) ;
throw new StatusException
("Can't get page name by index.", e) ;
}
}
fLog.println("Slide names after import:");
for ( int i = 0; i < xPages.getCount(); i++ ) {
if ((pageArray[i].getName().equals("NewSlide1"))
|| (pageArray[i].getName().equals("NewSlide2"))) {
fLog.println(" " + pageArray[i].getName());
}
else {