Class: StyleRecord

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

Overview

STYLE record for user-defined cell styles, BIFF3-BIFF8: Offset Size Contents 0 2 Bit Mask Contents

11-0    0FFFH   Index to style XF record
15      8000H   Always 0 for user-defined styles

2 var. BIFF2-BIFF7: Non-empty byte string, 8-bit string length

BIFF8: Non-empty Unicode string, 16-bit string length

STYLE record for built-in cell styles, BIFF3-BIFF8: Offset Size Contents 0 2 Bit Mask Contents

11-0    0FFFH   Index to style XF record
15      8000H   Always 1 for built-in styles

2 1 Identifier of the built-in cell style:

00H = Normal
01H = RowLevel_lv (see next field)
02H = ColLevel_lv (see next field)
03H = Comma
04H = Currency
05H = Percent
06H = Comma [0] (BIFF4-BIFF8)
07H = Currency [0] (BIFF4-BIFF8)
08H = Hyperlink (BIFF8)
09H = Followed Hyperlink (BIFF8)

3 1 Level for RowLevel or ColLevel style

(zero-based, lv), FFH otherwise

The RowLevel and ColLevel styles specify the formatting of subtotal cells in a specific outline level. The level is specified by the last field in the STYLE record. Valid values are 0-6 for the outline levels 1-7.

Constant Summary collapse

RECORD_ID =
0x0293

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

#initializeStyleRecord

Returns a new instance of StyleRecord.



893
894
895
896
# File 'lib/surpass/biff_record.rb', line 893

def initialize
  @record_data = [0x8000, 0x00, 0xFF].pack('vCC')
  # TODO: implement user-defined styles???
end