Package com.sun.star.drawing

Examples of com.sun.star.drawing.XLayerManager


    */
    protected synchronized TestEnvironment createTestEnvironment(
                                    TestParameters Param, PrintWriter log) {

        XInterface oObj = null;
        XLayerManager oLM = null;

        // creation of testobject here
        // first we write what we are intend to do to log file
        log.println( "creating a test environment" );

View Full Code Here


    * Has <b> OK </b> status if returned value is successfully
    * queried for <code>XLayerManager</code>. <p>
    */
    public void _getLayerManager(){
        XNameAccess oNA =null;
        XLayerManager oLM = null;
        boolean result = true;

        log.println("testing getLayerManager() ... ");

        oNA = oObj.getLayerManager();
View Full Code Here

                            new Boolean(true));

        XLayerSupplier oLS = (XLayerSupplier)
            UnoRuntime.queryInterface(XLayerSupplier.class, xDoc);
        XInterface oLM = oLS.getLayerManager();
        final XLayerManager xLM = (XLayerManager) UnoRuntime.queryInterface(XLayerManager.class, oLM);
       
       
        tEnv.addObjRelation("EventProducer",
                            new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
            public void fireEvent() {
                xLM.insertNewByIndex(0);
            }
        });

        return tEnv;
    }
View Full Code Here

                            new Boolean(true));

        XLayerSupplier oLS = (XLayerSupplier)
            UnoRuntime.queryInterface(XLayerSupplier.class, xDoc);
        XInterface oLM = oLS.getLayerManager();
        final XLayerManager xLM = (XLayerManager) UnoRuntime.queryInterface(XLayerManager.class, oLM);
       
       
        tEnv.addObjRelation("EventProducer",
                            new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
            public void fireEvent() {
                xLM.insertNewByIndex(0);
            }
        });

        return tEnv;
    }
View Full Code Here

    * Has <b> OK </b> status if returned value is successfully
    * queried for <code>XLayerManager</code>. <p>
    */
    public void _getLayerManager(){
        XNameAccess oNA =null;
        XLayerManager oLM = null;
        boolean result = true;

        log.println("testing getLayerManager() ... ");

        oNA = oObj.getLayerManager();
View Full Code Here

    */
    protected synchronized TestEnvironment createTestEnvironment(
                                    TestParameters Param, PrintWriter log) {

        XInterface oObj = null;
        XLayerManager oLM = null;

        // creation of testobject here
        // first we write what we are intend to do to log file
        log.println( "creating a test environment" );

View Full Code Here

      // query for the XLayerManager
      XLayerSupplier xLayerSupplier = (XLayerSupplier)
        (XLayerSupplier)UnoRuntime.queryInterface(
          XLayerSupplier.class, xDrawDoc );
      XNameAccess xNameAccess = xLayerSupplier.getLayerManager();
      XLayerManager xLayerManager = (XLayerManager)
        (XLayerManager)UnoRuntime.queryInterface(
          XLayerManager.class, xNameAccess );   

      // create a layer and set its properties
      XPropertySet xLayerPropSet;
      XLayer xNotVisibleAndEditable = xLayerManager.insertNewByIndex(
                xLayerManager.getCount() );
           
      xLayerPropSet = (XPropertySet)
        (XPropertySet)UnoRuntime.queryInterface(
          XPropertySet.class, xNotVisibleAndEditable );
      xLayerPropSet.setPropertyValue( "Name", "NotVisibleAndEditable" );
      xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( false ) );
      xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );

      // create a second layer
      XLayer xNotEditable = xLayerManager.insertNewByIndex(
                xLayerManager.getCount() );
           
      xLayerPropSet = (XPropertySet)
        (XPropertySet)UnoRuntime.queryInterface(
          XPropertySet.class, xNotEditable );
      xLayerPropSet.setPropertyValue( "Name", "NotEditable" );
      xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( true ) );
      xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );

      // attach the layer to the rectangles
      xLayerManager.attachShapeToLayer( xRect1, xNotVisibleAndEditable );
      xLayerManager.attachShapeToLayer( xRect2, xNotEditable );

    }
    catch( Exception ex )
    {
            System.out.println( ex );
View Full Code Here

    */
    protected synchronized TestEnvironment createTestEnvironment(
                                    TestParameters Param, PrintWriter log) {

        XInterface oObj = null;
        XLayerManager oLM = null;

        // creation of testobject here
        // first we write what we are intend to do to log file
        log.println( "creating a test environment" );

View Full Code Here

      // query for the XLayerManager
      XLayerSupplier xLayerSupplier = (XLayerSupplier)
        (XLayerSupplier)UnoRuntime.queryInterface(
          XLayerSupplier.class, xDrawDoc );
      XNameAccess xNameAccess = xLayerSupplier.getLayerManager();
      XLayerManager xLayerManager = (XLayerManager)
        (XLayerManager)UnoRuntime.queryInterface(
          XLayerManager.class, xNameAccess );   

      // create a layer and set its properties
      XPropertySet xLayerPropSet;
      XLayer xNotVisibleAndEditable = xLayerManager.insertNewByIndex(
                xLayerManager.getCount() );
           
      xLayerPropSet = (XPropertySet)
        (XPropertySet)UnoRuntime.queryInterface(
          XPropertySet.class, xNotVisibleAndEditable );
      xLayerPropSet.setPropertyValue( "Name", "NotVisibleAndEditable" );
      xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( false ) );
      xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );

      // create a second layer
      XLayer xNotEditable = xLayerManager.insertNewByIndex(
                xLayerManager.getCount() );
           
      xLayerPropSet = (XPropertySet)
        (XPropertySet)UnoRuntime.queryInterface(
          XPropertySet.class, xNotEditable );
      xLayerPropSet.setPropertyValue( "Name", "NotEditable" );
      xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( true ) );
      xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );

      // attach the layer to the rectangles
      xLayerManager.attachShapeToLayer( xRect1, xNotVisibleAndEditable );
      xLayerManager.attachShapeToLayer( xRect2, xNotEditable );

    }
    catch( Exception ex )
    {
            System.out.println( ex );
View Full Code Here

                            new Boolean(true));

        XLayerSupplier oLS = (XLayerSupplier)
            UnoRuntime.queryInterface(XLayerSupplier.class, xDoc);
        XInterface oLM = oLS.getLayerManager();
        final XLayerManager xLM = (XLayerManager) UnoRuntime.queryInterface(XLayerManager.class, oLM);
       
       
        tEnv.addObjRelation("EventProducer",
                            new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
            public void fireEvent() {
                xLM.insertNewByIndex(0);
            }
        });

        return tEnv;
    }
View Full Code Here

TOP

Related Classes of com.sun.star.drawing.XLayerManager

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.