Examples of XLayer


Examples of com.sun.star.configuration.backend.XLayer

            XInputStream xStream = simpleAccess.openFileRead(filename);

            xSink.setInputStream(xStream);

            XLayer xLayer = (XLayer) UnoRuntime.queryInterface(XLayer.class,
                                                               LayerParser);

            XLayerHandlerImpl xLayerHandler = new XLayerHandlerImpl();

            xLayer.readData(xLayerHandler);

            res = xLayerHandler.getCalls().equals(getExpected());

            if (!res) {
                log.println("#### Getting: ");
View Full Code Here

Examples of com.sun.star.configuration.backend.XLayer

    public void _getLayer() {
        String aLayerID = "org.openoffice.Office.Common";
        boolean res = true;

        try {
            XLayer aLayer = oObj.getLayer("", "");
            log.println("Exception expected -- FAILED");
            res = false;
        } catch (com.sun.star.configuration.backend.BackendAccessException e) {
            log.println("unexpected Exception " + e + " -- FAILED");
            res = false;
        } catch (com.sun.star.lang.IllegalArgumentException e) {
            log.println("expected Exception -- OK");
        }

        try {
            XLayer aLayer = oObj.getLayer(aLayerID, "");
            res &= (aLayer != null);

            if (aLayer == null) {
                log.println("\treturned Layer is NULL -- FAILED");
            }
View Full Code Here

Examples of com.sun.star.configuration.backend.XLayer

    public void _getLayer() {
        boolean res = true;

        try {
            XLayer aLayer = oObj.getLayer("", "");
            log.println("Exception expected -- FAILED");
            res = false;
        } catch (com.sun.star.configuration.backend.BackendAccessException e) {
            log.println("unexpected Exception " + e + " -- FAILED");
            res = false;
        } catch (com.sun.star.lang.IllegalArgumentException e) {
            log.println("expected Exception -- OK");
        }

        try {
            XLayer aLayer = oObj.getLayer(aLayerID, "");
            res &= (aLayer != null);

            if (aLayer == null) {
                log.println("\treturned Layer is NULL -- FAILED");
            }
View Full Code Here

Examples of com.sun.star.configuration.backend.XLayer

            XInputStream xStream = simpleAccess.openFileRead(filename);

            xSink.setInputStream(xStream);

            XLayer xLayer = (XLayer) UnoRuntime.queryInterface(XLayer.class,
                                                               LayerParser);

            XLayerHandlerImpl xLayerHandler = new XLayerHandlerImpl();

            xLayer.readData(xLayerHandler);

            res = xLayerHandler.getCalls().equals(getExpected());

            if (!res) {
                log.println("#### Getting: ");
View Full Code Here

Examples of com.sun.star.configuration.backend.XLayer

    public void _getLayer() {
        boolean res = true;

        try {
            XLayer aLayer = oObj.getLayer("", "");
            log.println("Exception expected -- FAILED");
            res = false;
        } catch (com.sun.star.configuration.backend.BackendAccessException e) {
            log.println("unexpected Exception " + e + " -- FAILED");
            res = false;
        } catch (com.sun.star.lang.IllegalArgumentException e) {
            log.println("expected Exception -- OK");
        }

        try {
            XLayer aLayer = oObj.getLayer(aLayerID, "");
            res &= (aLayer != null);

            if (aLayer == null) {
                log.println("\treturned Layer is NULL -- FAILED");
            }
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

    * </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

        (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.