Package org.formulacompiler.spreadsheet.internal

Examples of org.formulacompiler.spreadsheet.internal.CellRange$Tiler


      if (_outputClass == null) throw new IllegalArgumentException( "outputClass is null" );
      validateImplementable( _outputCallToImplementIterable );
      Util.validateIsImplementable( _outputClass, "output class" );
    }

    final CellRange cellRange = (CellRange) _range;
    checkSection( cellRange, _orientation );
    SectionBinding result = new SectionBinding( this, _inputCallChainReturningIterable, _inputClass,
        _outputCallToImplementIterable, _outputClass, cellRange, _orientation );
    this.sections.add( result );
    return result;
View Full Code Here


        final int xlsEndSheet = xlsRange[ 0 ].getLastSheetIndex();
        final jxl.Cell xlsStart = xlsRange[ 0 ].getTopLeft();
        final jxl.Cell xlsEnd = xlsRange[ 0 ].getBottomRight();
        final CellIndex start = new CellIndex( _workbook, xlsStartSheet, xlsStart.getColumn(), true, xlsStart.getRow(), true );
        final CellIndex end = new CellIndex( _workbook, xlsEndSheet, xlsEnd.getColumn(), true, xlsEnd.getRow(), true );
        final CellRange range = CellRange.getCellRange( start, end );
        _workbook.defineModelRangeName( name, range );
      }
    }
  }
View Full Code Here

  private void saveNames( BaseSpreadsheet _wb, WritableWorkbook _xwb )
  {
    for (final Entry<String, CellRange> nd : _wb.getModelRangeNames().entrySet()) {
      final String name = nd.getKey();
      final CellRange ref = nd.getValue();
      final CellIndex from = ref.getFrom();
      final CellIndex to = ref.getTo();
      if (from.getSheetIndex() == to.getSheetIndex()) {
        _xwb.addNameArea( name, _xwb.getSheet( from.getSheetIndex() ), from.getColumnIndex(), from.getRowIndex(),
            to.getColumnIndex(), to.getRowIndex() );
      }
    }
View Full Code Here

    final Attribute rangeAttribute = _startElement.getAttributeByName( XMLConstants.Table.CELL_RANGE_ADDRESS );
    final String cellRangeAddress = rangeAttribute.getValue();
    final ExpressionParser parser = new SpreadsheetExpressionParserA1ODF( cellRangeAddress, this.spreadsheet );
    parser.token_source.SwitchTo( GeneratedExpressionParserConstants.IN_ODF_CELL_REF );
    try {
      final CellRange cellRange = (CellRange) parser.rangeOrCellRefODF();
      this.spreadsheet.defineModelRangeName( name, cellRange );
    }
    catch (org.formulacompiler.compiler.internal.expressions.parser.ParseException e) {
      throw new RuntimeException( e );
    }
View Full Code Here

TOP

Related Classes of org.formulacompiler.spreadsheet.internal.CellRange$Tiler

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.