Examples of createEnumeration()


Examples of com.sun.star.container.XEnumerationAccess.createEnumeration()

                new Type(XInterface.class),xEA.createEnumeration().nextElement());

            xEA = (XEnumerationAccess) UnoRuntime.queryInterface
                (XEnumerationAccess.class, oTextContent) ;

            oObj = xEA.createEnumeration();

        } catch (Exception e) {
            log.println("Can't create test object") ;
            e.printStackTrace(log) ;
        }
View Full Code Here

Examples of com.sun.star.container.XEnumerationAccess.createEnumeration()

                ControlCharacter.PARAGRAPH_BREAK, false) ;

            xEA = (XEnumerationAccess) UnoRuntime.queryInterface
                (XEnumerationAccess.class, text) ;

            oObj = xEA.createEnumeration() ;
        } catch (Exception e) {
            log.println("Can't create test object") ;
            e.printStackTrace(log) ;
            throw new StatusException("Unexpected exception", e);
        }
View Full Code Here

Examples of com.sun.star.container.XEnumerationAccess.createEnumeration()

        log.println("creating a new environment for object");
        XEnumerationAccess ea = (XEnumerationAccess)
                    UnoRuntime.queryInterface(XEnumerationAccess.class,oCharts);

        XInterface oObj = ea.createEnumeration();

        TestEnvironment tEnv = new TestEnvironment(oObj);

//        tEnv.addObjRelation("RECT", oRect);
//        tEnv.addObjRelation("ADDR", oAddr);
View Full Code Here

Examples of com.sun.star.container.XEnumerationAccess.createEnumeration()

        oObj = (XInterface)UnoRuntime.queryInterface(XInterface.class, links);

        XEnumerationAccess ea = (XEnumerationAccess)
                    UnoRuntime.queryInterface(XEnumerationAccess.class,oObj);

        oObj = ea.createEnumeration();

        log.println("ImplementationName: "+util.utils.getImplName(oObj));
        // creating test environment
        TestEnvironment tEnv = new TestEnvironment( oObj );
View Full Code Here

Examples of com.sun.star.container.XEnumerationAccess.createEnumeration()

        return result;
    }
   
    protected boolean closeAllWindows(XDesktop desk) {
        XEnumerationAccess compEnumAccess = desk.getComponents();
        XEnumeration compEnum = compEnumAccess.createEnumeration();
        boolean res = true;
       
        try {
            while (compEnum.hasMoreElements()) {
                XCloseable closer = (XCloseable) UnoRuntime.queryInterface(
View Full Code Here

Examples of com.sun.star.container.XEnumerationAccess.createEnumeration()

        // The idea for this code came from:
        // http://www.oooforum.org/forum/viewtopic.phtml?t=60451
        XTextRange textRange = null;
        XEnumerationAccess xParaAccess = (XEnumerationAccess) UnoRuntime.queryInterface(
                XEnumerationAccess.class, table.getAnchor().getText());
        XEnumeration xParaEnum = xParaAccess.createEnumeration();
        while (retval == null && xParaEnum.hasMoreElements()){
            Object elt = xParaEnum.nextElement();
            XServiceInfo xInfo = (XServiceInfo) UnoRuntime.queryInterface(
                    XServiceInfo.class, elt);
            if (xInfo.supportsService("com.sun.star.text.TextTable")) {
View Full Code Here

Examples of com.sun.star.container.XEnumerationAccess.createEnumeration()

            XCellRangesQuery xCellQuery = (XCellRangesQuery)
                UnoRuntime.queryInterface(XCellRangesQuery.class, sheet);
            XSheetCellRanges xFormulaCells = xCellQuery.queryContentCells(
                (short)com.sun.star.sheet.CellFlags.FORMULA);
            XEnumerationAccess xFormulas = xFormulaCells.getCells();
            XEnumeration xFormulaEnum = xFormulas.createEnumeration();
            while (xFormulaEnum.hasMoreElements()) {
                Object formulaCell = xFormulaEnum.nextElement();
                xCell = (XCell)UnoRuntime.queryInterface(XCell.class, formulaCell);
                XCellAddressable xCellAddress = (XCellAddressable)
View Full Code Here

Examples of com.sun.star.container.XEnumerationAccess.createEnumeration()

            // Here, we access this interface
            XEnumerationAccess xParaAccess = (XEnumerationAccess)
                UnoRuntime.queryInterface(XEnumerationAccess.class, mxDocText );
            // Call the XEnumerationAccess's only method to access the actual
            // Enumeration
            XEnumeration xParaEnum = xParaAccess.createEnumeration();

            // While there are paragraphs, do things to them
            while ( xParaEnum.hasMoreElements() )
            {
                // Get a reference to the next paragraphs XServiceInfo interface.
View Full Code Here

Examples of com.sun.star.container.XSet.createEnumeration()

        try {
            XSet set = (XSet) UnoRuntime.queryInterface
                (XSet.class, oInterface) ;
            XSet set1 = (XSet) UnoRuntime.queryInterface
                (XSet.class, srvMan) ;
            XEnumeration oEnum = set1.createEnumeration();
            Object srv = oEnum.nextElement();

            set.insert(srv) ;

            newElement = oEnum.nextElement();
View Full Code Here

Examples of com.sun.star.container.XSet.createEnumeration()

        try {
            XSet set = (XSet) UnoRuntime.queryInterface
                (XSet.class, oInterface) ;
            XSet set1 = (XSet) UnoRuntime.queryInterface
                (XSet.class, srvMan) ;
            XEnumeration oEnum = set1.createEnumeration();
            Object srv = oEnum.nextElement();

            set.insert(srv) ;

            newElement = oEnum.nextElement();
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.