Class: InternalReferenceSupBookRecord

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

Overview

In each file occurs a SUPBOOK that is used for internal 3D references. It stores the number of sheets of the own document.

Record SUPBOOK for 3D references, BIFF8: Offset Size Contents

0             2     Number of sheets in this document
2             2     01H 04H (relict of BIFF5/BIFF7, the byte string "<04H>", see 3.9.1)

Constant Summary

Constants inherited from SupBookRecord

SupBookRecord::RECORD_ID

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(num_sheets) ⇒ InternalReferenceSupBookRecord

Returns a new instance of InternalReferenceSupBookRecord.



2170
2171
2172
# File 'lib/surpass/biff_record.rb', line 2170

def initialize(num_sheets)
  @record_data = [num_sheets, 0x01, 0x04].pack('vCC')
end