Examples of XEmbeddedObjectSupplier


Examples of com.sun.star.document.XEmbeddedObjectSupplier

        catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't get TableChart", e);
        }

        XEmbeddedObjectSupplier oEOS = (XEmbeddedObjectSupplier)
            UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, oChart);
        XInterface oInt = oEOS.getEmbeddedObject();
        xChartDoc = (XChartDocument)
             UnoRuntime.queryInterface(XChartDocument.class,oInt);
        oObj = (XDiagram) xChartDoc.getDiagram();

        log.println( "creating a new environment for chartdocument object" );
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

        catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't get TableChart", e);
        }

        XEmbeddedObjectSupplier oEOS = (XEmbeddedObjectSupplier)
            UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, oChart);
        XInterface oInt = oEOS.getEmbeddedObject();
        xChartDoc = (XChartDocument)
             UnoRuntime.queryInterface(XChartDocument.class,oInt);
        oObj = (XDiagram) xChartDoc.getDiagram();

        log.println( "creating a new environment for chartdocument object" );
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

    private void updateExpression(String formulaText) throws java.lang.Exception {
        /* formulaSelected is true, so assume that current
         * object is a formula */
        myLogger.fine("updateExpression formulaText = "+ formulaText);
        myLogger.fine("lastSelection "+lastSelection);
        XEmbeddedObjectSupplier xEOS = (XEmbeddedObjectSupplier)UnoRuntime.queryInterface(
                XEmbeddedObjectSupplier.class,lastSelection);
        myLogger.finest("xEOS "+xEOS);
        com.sun.star.lang.XComponent xc = xEOS.getEmbeddedObject();
        ((XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, xc)).setPropertyValue("Formula",formulaText);
    }
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

        /* For now, check if hashtable is zero length.  In future, may want to
         * re-check hashtable if new objects have been added.  This is a slow
         * loop, so only do it once */
        if (embeddedObjectHashtable.size()==0){
            Logger.getLogger("com.CompPad").fine("getEmbeddedObjects 02");
            XEmbeddedObjectSupplier xEOS;
            XTextEmbeddedObjectsSupplier xEOsS =
                (XTextEmbeddedObjectsSupplier) UnoRuntime.queryInterface(
                    com.sun.star.text.XTextEmbeddedObjectsSupplier.class,
                    xTextDocument);
            Logger.getLogger("com.CompPad").fine("getEmbeddedObjects 05");
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

        catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't get TableChart", e);
        }

        XEmbeddedObjectSupplier oEOS = (XEmbeddedObjectSupplier)
            UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, oChart);
        XInterface oInt = oEOS.getEmbeddedObject();
        xChartDoc = (XChartDocument)
             UnoRuntime.queryInterface(XChartDocument.class,oInt);
        oObj = (XDiagram) xChartDoc.getDiagram();

        log.println( "creating a new environment for chartdocument object" );
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

     * @param booleanIs3D If the chart should be displayed in 3D this parameter should be set to true.
     * @throws Exception All exceptions are thrown from this method.
     */
    public void changeChartType( String stringType, boolean booleanIs3D )
    throws Exception {
        XEmbeddedObjectSupplier xembeddedobjectsupplier = (XEmbeddedObjectSupplier)
            UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, xtablechart);
        XInterface xinterface = xembeddedobjectsupplier.getEmbeddedObject();
       
        XChartDocument xchartdocument = (XChartDocument)UnoRuntime.queryInterface(
            XChartDocument.class, xinterface);
        XDiagram xdiagram = (XDiagram) xchartdocument.getDiagram();
        XMultiServiceFactory xmultiservicefactory = (XMultiServiceFactory)
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

       
        try {
            oChart = (XTableChart) (UnoRuntime.queryInterface(
                XTableChart.class, ((XNameAccess)UnoRuntime.queryInterface(
                            XNameAccess.class, oCharts)).getByName("Example")));
            XEmbeddedObjectSupplier oEOS = (XEmbeddedObjectSupplier)
                UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, oChart);
            XInterface oInt = oEOS.getEmbeddedObject();
            XChartDocument xChart = (XChartDocument) UnoRuntime.queryInterface(
                XChartDocument.class,oInt);
            XDiagram oDiag = (XDiagram) xChart.getDiagram();
            System.out.println("Change Diagramm to 3D");
            XPropertySet oCPS = (XPropertySet)UnoRuntime.queryInterface(
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

     * @param booleanIs3D If the chart should be displayed in 3D this parameter should be set to true.
     * @throws Exception All exceptions are thrown from this method.
     */
    public void changeChartType( String stringType, boolean booleanIs3D )
    throws Exception {
        XEmbeddedObjectSupplier xEmbeddedObjSupplier = (XEmbeddedObjectSupplier)
            UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, xtablechart);
        XInterface xInterface = xEmbeddedObjSupplier.getEmbeddedObject();
       
        XChartDocument xChartDoc = (XChartDocument)UnoRuntime.queryInterface(
            XChartDocument.class, xInterface);
        XDiagram xDiagram = (XDiagram) xChartDoc.getDiagram();
        XMultiServiceFactory xMSF = (XMultiServiceFactory)
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

        catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't get TableChart", e);
        }

        XEmbeddedObjectSupplier oEOS = (XEmbeddedObjectSupplier)
            UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, oChart);
        XInterface oInt = oEOS.getEmbeddedObject();
        xChartDoc = (XChartDocument)
             UnoRuntime.queryInterface(XChartDocument.class,oInt);
        oObj = (XDiagram) xChartDoc.getDiagram();

        log.println( "creating a new environment for chartdocument object" );
View Full Code Here

Examples of com.sun.star.document.XEmbeddedObjectSupplier

        XTableChart tchart = (XTableChart)
            UnoRuntime.queryInterface(
                XTableChart.class, chartsAccess.getByName("Example"));

        XEmbeddedObjectSupplier eos = (XEmbeddedObjectSupplier)
            UnoRuntime.queryInterface( XEmbeddedObjectSupplier.class, tchart );

        XInterface xifc = eos.getEmbeddedObject();

        XChartDocument xChart = (XChartDocument)
            UnoRuntime.queryInterface(XChartDocument.class, xifc);

        XMultiServiceFactory xDocMSF = (XMultiServiceFactory)
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.