Package org.apache.poi.hssf.record

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


   */
  public PageSettingsBlock() {
    _rowBreaksRecord = new HorizontalPageBreakRecord();
    _columnBreaksRecord = new VerticalPageBreakRecord();
    _header = new HeaderRecord("");
    _footer = new FooterRecord("");
    _hCenter = createHCenter();
    _vCenter = createVCenter();
    _printSetup = createPrintSetup();
  }
View Full Code Here


      rv.visitRecord(new HeaderRecord(""));
    } else {
      rv.visitRecord(_header);
    }
    if (_footer == null) {
      rv.visitRecord(new FooterRecord(""));
    } else {
      rv.visitRecord(_footer);
    }
    visitIfPresent(_hCenter, rv);
    visitIfPresent(_vCenter, rv);
View Full Code Here

    nr.setValue(3.0);

    Record[] recs = {
        BOFRecord.createSheetBOF(),
        new HeaderRecord("&LSales Figures"),
        new FooterRecord("&LJanuary"),
        ur(UnknownRecord.HEADER_FOOTER_089C, "9C 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C4 60 00 00 00 00 00 00 00 00"),
        new DimensionsRecord(),
        new WindowTwoRecord(),
        ur(UnknownRecord.USERSVIEWBEGIN_01AA, "ED 77 3B 86 BC 3F 37 4C A9 58 60 23 43 68 54 4B 01 00 00 00 64 00 00 00 40 00 00 00 02 00 00 00 3D 80 04 00 00 00 00 00 00 00 0C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 3F FF FF 01 00"),
        new HeaderRecord("&LSales Figures"),
        new FooterRecord("&LJanuary"),
        ur(UnknownRecord.HEADER_FOOTER_089C, "9C 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C4 60 00 00 00 00 00 00 00 00"),
        ur(UnknownRecord.USERSVIEWEND_01AB, "01, 00"),

        EOFRecord.instance,
    };
View Full Code Here

    nr.setValue(3.0);

    Record[] recs = {
        BOFRecord.createSheetBOF(),
        new HeaderRecord("&LSales Figures"),
        new FooterRecord("&LJanuary"),
        new DimensionsRecord(),
        new WindowTwoRecord(),
        ur(UnknownRecord.HEADER_FOOTER_089C, "9C 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C4 60 00 00 00 00 00 00 00 00"),
        EOFRecord.instance,
    };
View Full Code Here

  public void testLateMargins_bug47199() {

    Record[] recs = {
        BOFRecord.createSheetBOF(),
        new HeaderRecord("&LSales Figures"),
        new FooterRecord("&LJanuary"),
        new DimensionsRecord(),
        createBottomMargin(0.787F),
        new WindowTwoRecord(),
        EOFRecord.instance,
    };
View Full Code Here

    assertEquals(VCenterRecord.class, outRecs[3].getClass());
   
    // make sure the added header / footer records are empty
    HeaderRecord hr = (HeaderRecord) outRecs[0];
    assertEquals("", hr.getText());
    FooterRecord fr = (FooterRecord) outRecs[1];
    assertEquals("", fr.getText());
  }
View Full Code Here

  protected HSSFFooter(PageSettingsBlock psb) {
    _psb = psb;
  }

  protected String getRawText() {
    FooterRecord hf = _psb.getFooter();
    if (hf == null) {
      return "";
    }
    return hf.getText();
  }
View Full Code Here

    return hf.getText();
  }

  @Override
  protected void setHeaderFooterText(String text) {
    FooterRecord hfr = _psb.getFooter();
    if (hfr == null) {
      hfr = new FooterRecord(text);
      _psb.setFooter(hfr);
    } else {
      hfr.setText(text);
    }
  }
View Full Code Here

        return r;
    }

    private FooterRecord createFooterRecord()
    {
        FooterRecord r = new FooterRecord();
        r.setFooter(null);
        return r;
    }
View Full Code Here

   */
  public PageSettingsBlock() {
    _rowBreaksRecord = new HorizontalPageBreakRecord();
    _columnBreaksRecord = new VerticalPageBreakRecord();
    _header = new HeaderRecord("");
    _footer = new FooterRecord("");
    _hCenter = createHCenter();
    _vCenter = createVCenter();
    printSetup = createPrintSetup();
  }
View Full Code Here

TOP

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

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.