Class: Window1Record
- Inherits:
-
BiffRecord
- Object
- BiffRecord
- Window1Record
- Defined in:
- lib/surpass/biff_record.rb
Overview
Offset Size Contents 0 2 Horizontal position of the document window (in twips = 1/20 of a point) 2 2 Vertical position of the document window (in twips = 1/20 of a point) 4 2 Width of the document window (in twips = 1/20 of a point) 6 2 Height of the document window (in twips = 1/20 of a point) 8 2 Option flags:
Bits Mask Contents
0 0001H 0 = Window is visible 1 = Window is hidden
1 0002H 0 = Window is open 1 = Window is minimised
3 0008H 0 = Horizontal scroll bar hidden 1 = Horizontal scroll bar visible
4 0010H 0 = Vertical scroll bar hidden 1 = Vertical scroll bar visible
5 0020H 0 = Worksheet tab bar hidden 1 = Worksheet tab bar visible
10 2 Index to active (displayed) worksheet 12 2 Index of first visible tab in the worksheet tab bar 14 2 Number of selected worksheets (highlighted in the worksheet tab bar) 16 2 Width of worksheet tab bar (in 1/1000 of window width). The remaining space is used by the
horizontal scrollbar.
Constant Summary collapse
- RECORD_ID =
0x003D
Constants inherited from BiffRecord
BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID
Instance Attribute Summary
Attributes inherited from BiffRecord
Instance Method Summary collapse
-
#initialize(hpos_twips, vpos_twips, width_twips, height_twips, flags, active_sheet, first_tab_index, selected_tabs, tab_width) ⇒ Window1Record
constructor
A new instance of Window1Record.
Methods inherited from BiffRecord
Constructor Details
#initialize(hpos_twips, vpos_twips, width_twips, height_twips, flags, active_sheet, first_tab_index, selected_tabs, tab_width) ⇒ Window1Record
Returns a new instance of Window1Record.
540 541 542 543 |
# File 'lib/surpass/biff_record.rb', line 540 def initialize(hpos_twips, vpos_twips, width_twips, height_twips, flags, active_sheet, first_tab_index, selected_tabs, tab_width) args = [hpos_twips, vpos_twips, width_twips, height_twips, flags, active_sheet, first_tab_index, selected_tabs, tab_width] @record_data = args.pack('v9') end |