Examples of XLayer


Examples of com.sun.star.drawing.XLayer

        (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 );
View Full Code Here

Examples of com.sun.star.drawing.XLayer

    * </ul>
    */
    public void _getLayerForShape() {
        requiredMethod("attachShapeToLayer()");
        log.println("getLayerForShape() ... ");
        XLayer Lay1 = oL;
        XLayer Lay2 = oObj.getLayerForShape((XShape)oShape);
        Object Obj1 = null;
        Object Obj2 = null;

        try {
            Obj1 = Lay1.getPropertyValue("Name");
            Obj2 = Lay2.getPropertyValue("Name");
        } catch (com.sun.star.lang.WrappedTargetException e) {
            e.printStackTrace(log);
        } catch (com.sun.star.beans.UnknownPropertyException e) {
            e.printStackTrace(log);
        }
View Full Code Here

Examples of com.sun.star.drawing.XLayer

        (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 );
View Full Code Here

Examples of com.sun.star.drawing.XLayer

    * </ul>
    */
    public void _getLayerForShape() {
        requiredMethod("attachShapeToLayer()");
        log.println("getLayerForShape() ... ");
        XLayer Lay1 = oL;
        XLayer Lay2 = oObj.getLayerForShape((XShape)oShape);
        Object Obj1 = null;
        Object Obj2 = null;

        try {
            Obj1 = Lay1.getPropertyValue("Name");
            Obj2 = Lay2.getPropertyValue("Name");
        } catch (com.sun.star.lang.WrappedTargetException e) {
            e.printStackTrace(log);
        } catch (com.sun.star.beans.UnknownPropertyException e) {
            e.printStackTrace(log);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.