Package com.sun.star.presentation

Examples of com.sun.star.presentation.XPresentation


    /**
    * Test calls the method and checks returned value. <p>
    * Has <b> OK </b> status if returned value isn't null. <p>
    */
    public void _getPresentation() {
        XPresentation NA = oObj.getPresentation();
        tRes.tested("getPresentation()", NA != null);
    }
View Full Code Here


* @see com.sun.star.presentation.XPresentation
*/
public class _Presentation extends MultiPropertyTest {

    public void _IsLivePresentation() {
        XPresentation aPresentation = (XPresentation)
            tEnv.getObjRelation("Presentation");
        if (aPresentation == null) throw new StatusException(Status.failed
            ("Relation 'Presentation' not found"));

        aPresentation.start();
        testProperty("IsLivePresentation");
    }
View Full Code Here

    /**
    * Test calls the method and checks returned value. <p>
    * Has <b> OK </b> status if returned value isn't null. <p>
    */
    public void _getPresentation() {
        XPresentation NA = oObj.getPresentation();
        tRes.tested("getPresentation()", NA != null);
    }
View Full Code Here

* @see com.sun.star.presentation.XPresentation
*/
public class _Presentation extends MultiPropertyTest {

    public void _IsLivePresentation() {
        XPresentation aPresentation = (XPresentation)
            tEnv.getObjRelation("Presentation");
        if (aPresentation == null) throw new StatusException(Status.failed
            ("Relation 'Presentation' not found"));

        aPresentation.start();
        testProperty("IsLivePresentation");
    }
View Full Code Here

      /* 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 );
    }
View Full Code Here

      /* which custom show is to use
         can been set in the presentation settings */

      XPresentationSupplier xPresSupplier = (XPresentationSupplier)
        UnoRuntime.queryInterface( XPresentationSupplier.class, xDrawDoc );
      XPresentation xPresentation = xPresSupplier.getPresentation();
      XPropertySet xPresPropSet = (XPropertySet)
        UnoRuntime.queryInterface( XPropertySet.class, xPresentation );
      xPresPropSet.setPropertyValue( "CustomShow", "ShortVersion" );
    }
    catch( Exception ex )
View Full Code Here

      /* 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 );
    }
View Full Code Here

      /* which custom show is to use
         can been set in the presentation settings */

      XPresentationSupplier xPresSupplier = (XPresentationSupplier)
        UnoRuntime.queryInterface( XPresentationSupplier.class, xDrawDoc );
      XPresentation xPresentation = xPresSupplier.getPresentation();
      XPropertySet xPresPropSet = (XPropertySet)
        UnoRuntime.queryInterface( XPropertySet.class, xPresentation );
      xPresPropSet.setPropertyValue( "CustomShow", "ShortVersion" );
    }
    catch( Exception ex )
View Full Code Here

    /**
    * Test calls the method and checks returned value. <p>
    * Has <b> OK </b> status if returned value isn't null. <p>
    */
    public void _getPresentation() {
        XPresentation NA = oObj.getPresentation();
        tRes.tested("getPresentation()", NA != null);
    }
View Full Code Here

* @see com.sun.star.presentation.XPresentation
*/
public class _Presentation extends MultiPropertyTest {

    public void _IsLivePresentation() {
        XPresentation aPresentation = (XPresentation)
            tEnv.getObjRelation("Presentation");
        if (aPresentation == null) throw new StatusException(Status.failed
            ("Relation 'Presentation' not found"));

        aPresentation.start();
        testProperty("IsLivePresentation");
    }
View Full Code Here

TOP

Related Classes of com.sun.star.presentation.XPresentation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.