Package com.sun.star.sheet

Examples of com.sun.star.sheet.XFormulaTokens


        return 0;
    }

    // return the precedent cells of xCell
    public ArrayList<XCell> getPrecedentCellsOfFormulaCell(XCell xCell){
        XFormulaTokens xTokens = (XFormulaTokens) UnoRuntime.queryInterface(XFormulaTokens.class, xCell);
        FormulaToken[] tokens = null;
        tokens = xTokens.getTokens();
        return parseFormula(tokens);
    }
View Full Code Here


        return m_xFormulaParser;
    }

    public String getFormula(XCell xCell) {
        String formula = "";
        XFormulaTokens xTokens = (XFormulaTokens) UnoRuntime.queryInterface(XFormulaTokens.class, xCell);
        FormulaToken[] tokens = xTokens.getTokens();
        XCellAddressable xCellAddr =  (XCellAddressable)UnoRuntime.queryInterface(XCellAddressable.class, xCell);
        CellAddress addr = xCellAddr.getCellAddress();
        formula = getFormulaParser().printFormula( tokens, addr );
        if ( !formula.isEmpty() )
            formula = "=" + formula;
View Full Code Here

    public String getValueWithSpaces(){
        return getController().createStringWithSpace(getValue(), 26);
    }

    public void setFormula() {
        XFormulaTokens xTokens = (XFormulaTokens) UnoRuntime.queryInterface(XFormulaTokens.class, m_xCell);
        FormulaToken[] tokens = xTokens.getTokens();
        XCellAddressable xCellAddr =  (XCellAddressable)UnoRuntime.queryInterface(XCellAddressable.class, m_xCell);
        CellAddress addr = xCellAddr.getCellAddress();
        m_formula = m_Controller.getFormulaParser().printFormula(tokens, addr);
        if (!m_formula.isEmpty())
            m_formula = "=" + m_formula;  
View Full Code Here

TOP

Related Classes of com.sun.star.sheet.XFormulaTokens

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.