Package org.apache.poi.hssf.record

Examples of org.apache.poi.hssf.record.MulBlankRecord


  public void testCloneMulBlank_bug46776() {
    Record[]  recs = {
        InternalSheet.createBOF(),
        new DimensionsRecord(),
        new RowRecord(1),
        new MulBlankRecord(1, 3, new short[] { 0x0F, 0x0F, 0x0F, } ),
        new RowRecord(2),
        createWindow2Record(),
        EOFRecord.instance,
    };
View Full Code Here


    short[] xfs = new short[nBlank];
    for (int i = 0; i < xfs.length; i++) {
      xfs[i] = ((BlankRecord)cellValues[startIx + i]).getXFIndex();
    }
    int rowIx = cellValues[startIx].getRow();
    return new MulBlankRecord(rowIx, startIx, xfs);
  }
View Full Code Here

  public void testCloneMulBlank_bug46776() {
    Record[]  recs = {
        Sheet.createBOF(),
        new DimensionsRecord(),
        new RowRecord(1),
        new MulBlankRecord(1, 3, new short[] { 0x0F, 0x0F, 0x0F, } ),
        new RowRecord(2),
        createWindow2Record(),
        EOFRecord.instance,
    };
View Full Code Here

  public void testCloneMulBlank_bug46776() {
    Record[]  recs = {
        InternalSheet.createBOF(),
        new DimensionsRecord(),
        new RowRecord(1),
        new MulBlankRecord(1, 3, new short[] { 0x0F, 0x0F, 0x0F, } ),
        new RowRecord(2),
        createWindow2Record(),
        EOFRecord.instance,
    };
View Full Code Here

          return;
        case MulBlankRecord.sid:
          // These appear in the middle of the cell records, to
          //  specify that the next bunch are empty but styled
          // Expand this out into multiple blank cells
          MulBlankRecord mbr = (MulBlankRecord)record;
          expandedRecords = RecordFactory.convertBlankRecords(mbr);
          break;
        case MulRKRecord.sid:
          // This is multiple consecutive number cells in one record
          // Exand this out into multiple regular number cells
View Full Code Here

    short[] xfs = new short[nBlank];
    for (int i = 0; i < xfs.length; i++) {
      xfs[i] = ((BlankRecord)cellValues[startIx + i]).getXFIndex();
    }
    int rowIx = cellValues[startIx].getRow();
    return new MulBlankRecord(rowIx, startIx, xfs);
  }
View Full Code Here

  public void testCloneMulBlank_bug46776() {
    Record[]  recs = {
        InternalSheet.createBOF(),
        new DimensionsRecord(),
        new RowRecord(1),
        new MulBlankRecord(1, 3, new short[] { 0x0F, 0x0F, 0x0F, } ),
        new RowRecord(2),
        createWindow2Record(),
        EOFRecord.instance,
    };
View Full Code Here

    final BlankStats bs = new BlankStats();
    RecordVisitor rv = new RecordVisitor() {

      public void visitRecord(Record r) {
        if (r instanceof MulBlankRecord) {
          MulBlankRecord mbr = (MulBlankRecord) r;
          bs.countMulBlankRecords++;
          bs.countBlankCells += mbr.getNumColumns();
        } else if (r instanceof BlankRecord) {
          bs.countSingleBlankRecords++;
          bs.countBlankCells++;
        }
      }
View Full Code Here

    final BlankStats bs = new BlankStats();
    RecordVisitor rv = new RecordVisitor() {

      public void visitRecord(Record r) {
        if (r instanceof MulBlankRecord) {
          MulBlankRecord mbr = (MulBlankRecord) r;
          bs.countMulBlankRecords++;
          bs.countBlankCells += mbr.getNumColumns();
        } else if (r instanceof BlankRecord) {
          bs.countSingleBlankRecords++;
          bs.countBlankCells++;
        }
      }
View Full Code Here

    short[] xfs = new short[nBlank];
    for (int i = 0; i < xfs.length; i++) {
      xfs[i] = ((BlankRecord)cellValues[startIx + i]).getXFIndex();
    }
    int rowIx = cellValues[startIx].getRow();
    return new MulBlankRecord(rowIx, startIx, xfs);
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.record.MulBlankRecord

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.