Class: VerticalPageBreaksRecord

Inherits:
BiffRecord show all
Defined in:
lib/surpass/biff_record.rb

Overview

This record is part of the Page Settings Block. It contains all vertical manual page breaks.

Record VERTICALPAGEBREAKS, BIFF8: Offset Size Contents 0 2 Number of following column index structures (nm) 2 6nm List of nm column index structures. Each column index

structure contains:
  Offset  Size    Contents
  0       2       Index to first column following the page
                  break
  2       2       Index to first row of this page break
  4       2       Index to last row of this page break

The column indexes in the lists must be ordered ascending. If in BIFF8 a column contains several page breaks, they must be ordered ascending by start row index.

Constant Summary collapse

RECORD_ID =
0x001A

Constants inherited from BiffRecord

BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID

Instance Attribute Summary

Attributes inherited from BiffRecord

#record_data

Instance Method Summary collapse

Methods inherited from BiffRecord

#record_header, #to_biff

Constructor Details

#initialize(breaks_list) ⇒ VerticalPageBreaksRecord

Returns a new instance of VerticalPageBreaksRecord.



1734
1735
1736
1737
1738
1739
# File 'lib/surpass/biff_record.rb', line 1734

def initialize(breaks_list)
  @record_data = [breaks_list.length].pack('v')
  breaks_list.each do |c, r1, r2|
    @record_data += [c, r1, r2].pack('v3')
  end
end