/* start an endless presentation which is displayed in
full-screen mode and placed on top */
XPresentationSupplier xPresSupplier = (XPresentationSupplier)
UnoRuntime.queryInterface( XPresentationSupplier.class, xDrawDoc );
XPresentation xPresentation = xPresSupplier.getPresentation();
XPropertySet xPresPropSet = (XPropertySet)
UnoRuntime.queryInterface( XPropertySet.class, xPresentation );
xPresPropSet.setPropertyValue( "IsEndless", new Boolean( true ) );
xPresPropSet.setPropertyValue( "IsAlwaysOnTop", new Boolean( true ) );
xPresPropSet.setPropertyValue( "Pause", new Integer( 0 ) );
xPresentation.start();
}
catch( Exception ex )
{
System.out.println( ex );
}