Class: Biff8BOFRecord

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

Overview

Offset Size Contents 0 2 Version, contains 0600H for BIFF8 and BIFF8X 2 2 Type of the following data:

0005H = Workbook globals
0006H = Visual Basic module
0010H = Worksheet
0020H = Chart
0040H = Macro sheet
0100H = Workspace file

4 2 Build identifier 6 2 Build year 8 4 File history flags 12 4 Lowest Excel version that can read all records in this file

Constant Summary collapse

RECORD_ID =
0x0809
BOOK_GLOBAL =

Stream Types

0x0005
VB_MODULE =
0x0006
WORKSHEET =
0x0010
CHART =
0x0020
MACROSHEET =
0x0040
WORKSPACE =
0x0100

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(rec_type) ⇒ Biff8BOFRecord

Returns a new instance of Biff8BOFRecord.



159
160
161
162
163
164
165
166
167
# File 'lib/surpass/biff_record.rb', line 159

def initialize(rec_type)
  version  = 0x0600
  build    = 0x0DBB
  year     = 0x07CC
  file_hist_flags = 0x00
  ver_can_read    = 0x06
  
  @record_data = [version, rec_type, build, year, file_hist_flags, ver_can_read].pack('v4V2')
end