Class: MulBlankRecord

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

Overview

This record represents a cell range of empty cells. All cells are located in the same row.

Record MULBLANK, BIFF5-BIFF8:

Offset Size Contents 0 2 Index to row 2 2 Index to first column (fc) 4 2*nc List of nc=lc-fc+1 16-bit indexes to XF records 4+2*nc 2 Index to last column (lc)

Constant Summary collapse

RECORD_ID =
0x00BE

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(row, first_col, last_col, xf_index) ⇒ MulBlankRecord

Returns a new instance of MulBlankRecord.



1335
1336
1337
1338
1339
# File 'lib/surpass/biff_record.rb', line 1335

def initialize(row, first_col, last_col, xf_index)
  blanks_count = last_col-first_col+1
  blanks = ([xf_index]*blanks_count).pack('v*')
  @record_data = [row, first_col].pack('v2') + blanks + [last_col].pack('v')
end