Examples of XShape


Examples of com.sun.star.drawing.XShape

        else {
            if (desiredValue >= 0) {
                for (int i=elementCount; i<newCount; i++) {
                    try {
                        Object o = xDrawPage.getByIndex(i);
                        XShape xShape = (XShape)UnoRuntime.queryInterface(XShape.class, o);
                        pos = xShape.getPosition();
                        System.out.println("Shape Type: " + xShape.getShapeType());
                    }
                    catch(com.sun.star.uno.Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

Examples of com.sun.star.drawing.XShape

    public void removeControlsofForm(String _FormName){
    try {
        for (int i = xDrawPage.getCount() - 1; i >= 0; i--){
            if (hasControlByName(_FormName, xDrawPage.getByIndex(i))){
                XShape xShape = (XShape) UnoRuntime.queryInterface(XShape.class, xDrawPage.getByIndex(i));
                xDrawPage.remove(xShape);
            }
        }
    } catch (Exception e) {
        e.printStackTrace(System.out);
View Full Code Here

Examples of com.sun.star.drawing.XShape


    public void moveShapesToNirwana(){
    try {
        for (int i = 0; i < this.xDrawPage.getCount(); i++){
            XShape xShape = (XShape) UnoRuntime.queryInterface(XShape.class, xDrawPage.getByIndex(i));
            xShape.setPosition(new Point(this.iXNirwanaPos, this.iYNirwanaPos));
        }
    } catch (Exception e) {
        e.printStackTrace(System.out);
    }}
View Full Code Here

Examples of com.sun.star.drawing.XShape



    public void removeAllShapes() throws Exception{
        for (int i = this.xDrawPage.getCount(); i >-1; i--){
            XShape xShape = (XShape) UnoRuntime.queryInterface(XShape.class, xDrawPage.getByIndex(i));
            removeShape(xShape);
        }
    }
View Full Code Here

Examples of com.sun.star.drawing.XShape


    // Destroy all Shapes in Nirwana
    public void removeNirwanaShapes() throws Exception{
        for (int i = this.xDrawPage.getCount(); i >-1; i--){
            XShape xShape = (XShape) UnoRuntime.queryInterface(XShape.class, xDrawPage.getByIndex(i));
            if (xShape.getPosition().Y < this.iYNirwanaPos)
                xDrawPage.remove(xShape);
        }
    }
View Full Code Here

Examples of com.sun.star.drawing.XShape

        // XForm for com.sun.star.view.XFormLayerAccess
        log.println("adding relation for com.sun.star.view.XFormLayerAccess: XForm");
       
        XForm myForm = null;
        String kindOfControl="CommandButton";
        XShape aShape = null;
        try{
            log.println("adding contol shape '" + kindOfControl + "'");
            XComponent oComp = (XComponent) UnoRuntime.queryInterface(XComponent.class, xSpreadsheetDoc) ;
           
            aShape = FormTools.createControlShape(oComp, 3000, 4500, 15000, 10000, kindOfControl);
View Full Code Here

Examples of com.sun.star.drawing.XShape

                                                     int y, String kind ) {
        //possible values for kind are 'Ellipse', 'Line' and 'Rectangle'

        ShapeDsc sDsc = new ShapeDsc( height, width, x, y, kind );
        InstCreator instCreate = new InstCreator( oDoc, sDsc );
        XShape oShape = (XShape)instCreate.getInstance();
       
        return oShape;
    }
View Full Code Here

Examples of com.sun.star.drawing.XShape

        while (_xSectionToClear.hasElements())
        {
            try
            {
                final Object aObj = _xSectionToClear.getByIndex(0);
                final XShape aShape = (XShape)UnoRuntime.queryInterface(XShape.class, aObj);
                _xSectionToClear.remove(aShape);
            }
            catch (com.sun.star.uno.Exception e)
            {
                // Exception not set.
View Full Code Here

Examples of com.sun.star.drawing.XShape

                if (aComponent != null)
                {
                    Object aClone = aComponent.createClone();
                    if (aClone != null)
                    {
                        XShape aShape = (XShape)UnoRuntime.queryInterface(XShape.class, aClone);
                        _xToSection.add(aShape);
                    }
                }
            }
        }
View Full Code Here

Examples of com.sun.star.drawing.XShape

           
            // XForm for com.sun.star.view.XFormLayerAccess
           
            XForm myForm = null;
            String kindOfControl="CommandButton";
            XShape aShape = null;
            try{
                log.println("adding contol shape '" + kindOfControl + "'");
                XComponent oComp = (XComponent) UnoRuntime.queryInterface(XComponent.class, xSpreadsheetDoc) ;
               
                aShape = FormTools.createControlShape(oComp, 3000, 4500, 15000, 10000, kindOfControl);
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.