Package org.apache.poi.hssf.record

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


        BOFRecord.createSheetBOF(),
        new HeaderRecord("&LSales Figures"),
        new FooterRecord("&LJanuary"),
        new DimensionsRecord(),
        createBottomMargin(0.787F),
        new WindowTwoRecord(),
        EOFRecord.instance,
    };
    RecordStream rs = new RecordStream(Arrays.asList(recs), 0);

    Sheet sheet;
View Full Code Here


     * headercolor    = 0x40 <P>
     * pagebreakzoom  = 0x0 <P>
     * normalzoom     = 0x0 <p>
     */
    private static WindowTwoRecord createWindowTwo() {
        WindowTwoRecord retval = new WindowTwoRecord();

        retval.setOptions(( short ) 0x6b6);
        retval.setTopRow(( short ) 0);
        retval.setLeftCol(( short ) 0);
        retval.setHeaderColor(0x40);
        retval.setPageBreakZoom(( short ) 0);
        retval.setNormalZoom(( short ) 0);
        return retval;
    }
View Full Code Here

    assertTrue(outRecs[pos++] instanceof WindowTwoRecord );
    assertTrue(outRecs[pos++] instanceof EOFRecord );
  }

  private static Record createWindow2Record() {
    WindowTwoRecord result = new WindowTwoRecord();
    result.setOptions(( short ) 0x6b6);
    result.setTopRow(( short ) 0);
    result.setLeftCol(( short ) 0);
    result.setHeaderColor(0x40);
    result.setPageBreakZoom(( short ) 0);
    result.setNormalZoom(( short ) 0);
    return result;
  }
View Full Code Here

    assertTrue(outRecs[pos++] instanceof WindowTwoRecord );
    assertTrue(outRecs[pos++] instanceof EOFRecord );
  }

  private static Record createWindow2Record() {
    WindowTwoRecord result = new WindowTwoRecord();
    result.setOptions(( short ) 0x6b6);
    result.setTopRow(( short ) 0);
    result.setLeftCol(( short ) 0);
    result.setHeaderColor(0x40);
    result.setPageBreakZoom(( short ) 0);
    result.setNormalZoom(( short ) 0);
    return result;
  }
View Full Code Here

    Record[] inRecs = {
      new RowRecord(0),
      new NumberRecord(),
      // normally MSODRAWING(0x00EC) would come here before SXVIEW
      new UnknownRecord(SXVIEW_SID, "dummydata (SXVIEW: View Definition)".getBytes()),
      new WindowTwoRecord(),
    };
    RecordStream rs = new RecordStream(Arrays.asList(inRecs), 0);
    RowBlocksReader rbr = new RowBlocksReader(rs);
    if (rs.peekNextClass() == WindowTwoRecord.class) {
      // Should have stopped at the SXVIEW record
View Full Code Here

    assertTrue(outRecs[pos++] instanceof WindowTwoRecord );
    assertTrue(outRecs[pos++] instanceof EOFRecord );
  }

  private static Record createWindow2Record() {
    WindowTwoRecord result = new WindowTwoRecord();
    result.setOptions(( short ) 0x6b6);
    result.setTopRow(( short ) 0);
    result.setLeftCol(( short ) 0);
    result.setHeaderColor(0x40);
    result.setPageBreakZoom(( short ) 0);
    result.setNormalZoom(( short ) 0);
    return result;
  }
View Full Code Here

   */
  public void testSharedFormula() {
    List<Record> records = new ArrayList<Record>();
    records.add(new FormulaRecord());
    records.add(new SharedFormulaRecord());
    records.add(new WindowTwoRecord());

    constructValueRecord(records);
    CellValueRecordInterface[] cvrs = valueRecord.getValueRecords();
    //Ensure that the SharedFormulaRecord has been converted
    assertEquals(1, cvrs.length);
View Full Code Here

    formulaRecord.setColumn((short) 1);
    blankRecord.setRow(2);
    blankRecord.setColumn((short) 2);
    records.add(formulaRecord);
    records.add(blankRecord);
    records.add(new WindowTwoRecord());
    return records;
  }
View Full Code Here

     * headercolor    = 0x40 <P>
     * pagebreakzoom  = 0x0 <P>
     * normalzoom     = 0x0 <p>
     */
    private static WindowTwoRecord createWindowTwo() {
        WindowTwoRecord retval = new WindowTwoRecord();

        retval.setOptions(( short ) 0x6b6);
        retval.setTopRow(( short ) 0);
        retval.setLeftCol(( short ) 0);
        retval.setHeaderColor(0x40);
        retval.setPageBreakZoom(( short ) 0);
        retval.setNormalZoom(( short ) 0);
        return retval;
    }
View Full Code Here

     * headercolor    = 0x40 <P>
     * pagebreakzoom  = 0x0 <P>
     * normalzoom     = 0x0 <p>
     */
    private static WindowTwoRecord createWindowTwo() {
        WindowTwoRecord retval = new WindowTwoRecord();

        retval.setOptions(( short ) 0x6b6);
        retval.setTopRow(( short ) 0);
        retval.setLeftCol(( short ) 0);
        retval.setHeaderColor(0x40);
        retval.setPageBreakZoom(( short ) 0);
        retval.setNormalZoom(( short ) 0);
        return retval;
    }
View Full Code Here

TOP

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

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.