07.05.2014 Views

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5 Worksheet/Workbook Records<br />

• XF_VERT_ALIGN – Vertical Alignment (2 or 3 Bits), BIFF4-BIFF8<br />

<strong>The</strong> vertical alignment consists of 2 bits (BIFF4) or 3 bits (BIFF5-BIFF8) and is part of a specific data byte. Vertical<br />

alignment is not available in BIFF2 and BIFF3.<br />

Value Vertical alignment<br />

0 Top<br />

1 Centred<br />

2 Bottom<br />

3 Justified (BIFF5-BIFF8)<br />

4 Distributed (BIFF8, available in <strong>Excel</strong> 10.0 (<strong>Excel</strong> XP) and later only)<br />

• XF_ORIENTATION – Text Orientation (2 Bits), BIFF4-BIFF5<br />

In the BIFF versions BIFF4-BIFF5, text can be rotated in steps of 90 degrees or stacked. <strong>The</strong> orientation mode consists<br />

of 2 bits and is part of a specific data byte. In BIFF8 a rotation angle occurs instead of these flags.<br />

Value Text orientation<br />

0 Not rotated<br />

1 Letters are stacked top-to-bottom, but not rotated<br />

2 Text is rotated 90 degrees counterclockwise<br />

3 Text is rotated 90 degrees clockwise<br />

• XF_ROTATION – Text Rotation Angle (1 Byte), BIFF8<br />

Value Text rotation<br />

0 Not rotated<br />

1-90 1 to 90 degrees counterclockwise<br />

91-180 1 to 90 degrees clockwise<br />

255 Letters are stacked top-to-bottom, but not rotated<br />

• XF_BORDER_34 – Cell Border Style (4 Bytes), BIFF3-BIFF4<br />

Cell borders contain a line style and a line colour for each line of the border.<br />

Bit Mask Contents<br />

2-0 00000007 H Top line style (➜2.5.11)<br />

7-3 000000F8 H Colour index (➜5.74) for top line colour<br />

10-8 00000700 H Left line style (➜2.5.11)<br />

15-11 0000F800 H Colour index (➜5.74) for left line colour<br />

18-16 00070000 H Bottom line style (➜2.5.11)<br />

23-19 00F80000 H Colour index (➜5.74) for bottom line colour<br />

26-24 07000000 H Right line style (➜2.5.11)<br />

31-27 F8000000 H Colour index (➜5.74) for right line colour<br />

220

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!