Package org.zkoss.poi.ss.formula.ptg

Examples of org.zkoss.poi.ss.formula.ptg.Ptg


    final int ptglen = srcPtgs.length;
    final Ptg[] dstPtgs = new Ptg[ptglen];
   
    final SpreadsheetVersion ver = ((Book)dstSheet.getWorkbook()).getSpreadsheetVersion();
    for(int j = 0; j < ptglen; ++j) {
      final Ptg srcPtg = srcPtgs[j];
      final Ptg dstPtg = offsetPtg(srcPtg, dstCell, offRow, offCol, ver);
      dstPtgs[j] = dstPtg;
    }
    return dstPtgs;
  }
View Full Code Here


      final int offRow = row - dstRow;
      final int offCol = col - dstCol;
      row = dstRow + offCol;
      col = dstCol + offRow;
    }
    final Ptg xptg = rptgValidate(ptg, row, col, ver);
    if (xptg == null) {
      ptg.setRow(row);
      ptg.setColumn(col);
      return ptg;
    } else
View Full Code Here

        final int offCol2 = col2 - dstCol;
        row2 = dstRow + offCol2;
        col2 = dstCol + offRow2;
      }
    }
    final Ptg xptg = aptgValidate(ptg, row1, row2, col1, col2, ver);
    if (xptg == null) {
      ptg.setFirstRow(row1);
      ptg.setFirstColumn(col1);
      ptg.setLastRow(row2);
      ptg.setLastColumn(col2);
View Full Code Here

 
  /*package*/ static CellRangeAddress getRepeatRowsAndColumns(Ptg[] ptgs) {
    Area3DPtg area1 = null;
    Area3DPtg area2 = null;
    for(int j = 0; j < ptgs.length; ++j) {
      Ptg ptg = ptgs[j];
      if (ptg instanceof Area3DPtg) {
        if (area1 == null) {
          area1 = (Area3DPtg) ptg;
        } else if (area2 == null) {
          area2 = (Area3DPtg) ptg;
View Full Code Here

  @Override
  public void addDependency(OperationEvaluationContext ec, Ptg[] ptgs) {
    boolean withIndirect = false;
    final Set<Ptg> precedents = new HashSet<Ptg>(ptgs.length);
    for(int j = 0; j < ptgs.length; ++j) {
      final Ptg ptg = ptgs[j];
      if (ptg instanceof FuncPtg) {
        if (((FuncPtg)ptg).getFunctionIndex() == FunctionMetadataRegistry.FUNCTION_INDEX_INDIRECT) {
          withIndirect = true;
          break;
        }
View Full Code Here

TOP

Related Classes of org.zkoss.poi.ss.formula.ptg.Ptg

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.