Class: RefModeRecord

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

Overview

This record is part of the Calculation Settings Block. It stores which method is used to show cell addresses in formulas. The ìRCî mode uses numeric indexes for rows and columns, i.e. ìR(1)C(-1)î, or ìR1C1:R2C2î. The ìA1î mode uses characters for columns and numbers for rows, i.e. ìB1î, or ì$A$1:$B$2î.

Record REFMODE, BIFF2-BIFF8:

Offset Size Contents 0 2 0 = RC mode; 1 = A1 mode

Constant Summary collapse

RECORD_ID =
0x00F

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(ref_mode) ⇒ RefModeRecord

Returns a new instance of RefModeRecord.



1553
1554
1555
# File 'lib/surpass/biff_record.rb', line 1553

def initialize(ref_mode)
  @record_data = [ref_mode].pack('v')
end