Package com.sun.star.lang

Examples of com.sun.star.lang.XComponent


   */

    public XSpreadsheetDocument createCalcDoc( String frameName )
                                        throws com.sun.star.uno.Exception {

        XComponent oDoc = openDoc("scalc",frameName);

        if ( oDoc != null) {
            return (XSpreadsheetDocument)
            UnoRuntime.queryInterface( XSpreadsheetDocument.class, oDoc );
        }
View Full Code Here


   */

    public XSpreadsheetDocument createCalcDoc( String frameName, PropertyValue[] mediaDescriptor )
                                        throws com.sun.star.uno.Exception {

        XComponent oDoc = openDoc("scalc",frameName, mediaDescriptor);

        if ( oDoc != null) {
            return (XSpreadsheetDocument)
            UnoRuntime.queryInterface( XSpreadsheetDocument.class, oDoc );
        }
View Full Code Here

                                        throws com.sun.star.uno.Exception {

//        XComponent oDoc = loadDocument(
//                            util.utils.getFullTestURL("emptyChart.sds"));
       
        XComponent oDoc = loadDocument("private:factory/schart");
       
        if ( oDoc != null) {
            return (XChartDocument)
            UnoRuntime.queryInterface( XChartDocument.class, oDoc );
        }
View Full Code Here

            // that noargs thing for load attributes
            PropertyValue [] szEmptyArgs = new PropertyValue [0];
            String frameName = "_blank";

            XComponent oDoc = oCLoader.loadComponentFromURL(
                                    fileName, frameName, 0, szEmptyArgs );

            if ( oDoc == null ) {
                    return null;
            }
View Full Code Here

                               com.sun.star.uno.Exception {

            // that noargs thing for load attributes
            String frameName = "_blank";

            XComponent oDoc = oCLoader.loadComponentFromURL(
                                    fileName, frameName, 0, Args );

            if ( oDoc == null ) {
                    return null;
            }
View Full Code Here

    if ( frameName == null ) {
      frameName = "_blank";
    }
    // load a blank a doc
    XComponent oDoc = oCLoader.loadComponentFromURL(
        "private:factory/"+kind, frameName, 40, Args );

        return oDoc;

    } // finished openDoc
View Full Code Here

            if ( frameName == null ) {
                    frameName = "_blank";
            }
            // load a blank a doc
            XComponent oDoc = oCLoader.loadComponentFromURL(
                            "private:factory/"+kind, frameName, 40, mediaDescriptor );

    return oDoc;

    } // finished openDoc
View Full Code Here

                    // create Service
                    xContext.getServiceManager().createInstanceWithContext(
                        m_supported_services[ nPos ], xContext ) );
            }

            XComponent xComp = (XComponent)UnoRuntime.queryInterface( XComponent.class, xContext );
            xComp.dispose();
        }
        catch (Exception exc)
        {
            System.err.println( ">>>>>>>>>> exc occured: " + exc.toString() );
            exc.printStackTrace();
View Full Code Here

                context);
        }
        try {
            return refl.forName(typeName);
        } finally {
            XComponent comp = (XComponent) UnoRuntime.queryInterface(
                XComponent.class, refl);
            if (comp != null) {
                comp.dispose();
            }
        }
    }
View Full Code Here

     * Test the interfaces on a math document
     */
    public void checkMathDoc() {
        xMSF = (XMultiServiceFactory)param.getMSF();
        SOfficeFactory xSOF = SOfficeFactory.getFactory(xMSF);
        XComponent xMathDoc = null;
        try {
            log.println("****** Open a new math document");
            xMathDoc = xSOF.createMathDoc("_blank");
            getTestObject();
        }
View Full Code Here

TOP

Related Classes of com.sun.star.lang.XComponent

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.