Class HeaderFooterRecord

  • All Implemented Interfaces:
    Duplicatable, GenericRecord

    public final class HeaderFooterRecord
    extends ContinuableRecord
    The HEADERFOOTER record stores information added in Office Excel 2007 for headers/footers.
    • Constructor Detail

      • HeaderFooterRecord

        public HeaderFooterRecord()
      • HeaderFooterRecord

        public HeaderFooterRecord​(byte[] data)
      • HeaderFooterRecord

        public HeaderFooterRecord​(RecordInputStream in)
        construct a HeaderFooterRecord record. No fields are interpreted and the record will be serialized in its original form more or less
        Parameters:
        in - the RecordInputstream to read the record from
    • Method Detail

      • getSid

        public short getSid()
        Description copied from class: Record
        return the non static version of the id for this record.
        Specified by:
        getSid in class Record
        Returns:
        he id for this record
      • getGuid

        public byte[] getGuid()
        If this header belongs to a specific sheet view , the sheet view?s GUID will be saved here.

        If it is zero, it means the current sheet. Otherwise, this field MUST match the guid field of the preceding UserSViewBegin record.

        Returns:
        the sheet view?s GUID
      • isCurrentSheet

        public boolean isCurrentSheet()
        Returns:
        whether this record belongs to the current sheet
      • isDiffOddEven

        public boolean isDiffOddEven()
        Returns whether the odd and even pages use a different header and footer
      • setDiffOddEven

        public void setDiffOddEven​(boolean flag)
        Set whether the odd and even pages use a different header and footer. It has the side effect which will clear HeaderEven and FooterEven string if set to false.
        Parameters:
        flag -
      • isDiffFirst

        public boolean isDiffFirst()
        Returns whether the first page use a different header and footer.
      • setDiffFirst

        public void setDiffFirst​(boolean flag)
        Sets whether the first page use a different header and footer. It has the side effect which will clear HeaderFirst and FooterFirst string if set to false.
        Parameters:
        flag -
      • isScaleWithDoc

        public boolean isScaleWithDoc()
        Returns whether the header and footer is scaled with the sheet.
      • setScaleWithDoc

        public void setScaleWithDoc​(boolean flag)
      • isAlignMargins

        public boolean isAlignMargins()
        Returns whether the left and right edges of the header and footer are lined up with the left and right margins of the sheet.
      • setAlignMargins

        public void setAlignMargins​(boolean flag)
      • getHeaderEven

        public String getHeaderEven()
      • setHeaderEven

        public void setHeaderEven​(String str)
      • getFooterEven

        public String getFooterEven()
      • setFooterEven

        public void setFooterEven​(String str)
      • getHeaderFirst

        public String getHeaderFirst()
      • setHeaderFirst

        public void setHeaderFirst​(String str)
      • getFooterFirst

        public String getFooterFirst()
      • setFooterFirst

        public void setFooterFirst​(String str)