Class: HorizontalPageBreaksRecord
- Inherits:
-
BiffRecord
- Object
- BiffRecord
- HorizontalPageBreaksRecord
- Defined in:
- lib/surpass/biff_record.rb
Overview
This record is part of the Page Settings Block. It contains all horizontal manual page breaks.
Record HORIZONTALPAGEBREAKS, BIFF8: Offset Size Contents 0 2 Number of following row index structures (nm) 2 6nm List of nm row index structures. Each row index
structure contains:
Offset Size Contents
0 2 Index to first row below the page break
2 2 Index to first column of this page break
4 2 Index to last column of this page break
The row indexes in the lists must be ordered ascending. If in BIFF8 a row contains several page breaks, they must be ordered ascending by start column index.
Constant Summary collapse
- RECORD_ID =
0x001B
Constants inherited from BiffRecord
BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID
Instance Attribute Summary
Attributes inherited from BiffRecord
Instance Method Summary collapse
-
#initialize(breaks_list) ⇒ HorizontalPageBreaksRecord
constructor
A new instance of HorizontalPageBreaksRecord.
Methods inherited from BiffRecord
Constructor Details
#initialize(breaks_list) ⇒ HorizontalPageBreaksRecord
Returns a new instance of HorizontalPageBreaksRecord.
1711 1712 1713 1714 1715 1716 |
# File 'lib/surpass/biff_record.rb', line 1711 def initialize(breaks_list) @record_data = [breaks_list.length].pack('v') breaks_list.each do |r, c1, c2| @record_data += [r, c1, c2].pack('v3') end end |