The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
5.16 CFRULE – Conditional <strong>Format</strong>ting Rule<br />
• Alignment <strong>Format</strong>ting Block<br />
Offset Size Contents<br />
0 1 Alignment and text break:<br />
Bit Mask Contents<br />
2-0 07 H Horizontal alignment (see XF_HOR_ALIGN constant list in XF<br />
record ➜5.115, only if align-hor = 0)<br />
3 08 H Text wrapped: 0 = off; 1 = On (only if align-wrap = 0)<br />
6-4 70 H Vertical alignment (see XF_VERT_ALIGN constant list in XF<br />
record ➜5.115, only if align-ver = 0)<br />
7 80 H Justify last line: 0 = off; 1 = On (only if align-justlast = 0)<br />
1 1 Text rotation angle (see XF_ROTATION constant list in XF record ➜5.115, only if<br />
align-rot = 0)<br />
2 2 Indentation, shrink to cell size, and text direction:<br />
Bit Mask Contents<br />
3-0 000F H Indent level (only if align-indent = 0)<br />
4 0010 H Shrink contents: 0 = off; 1 = On (only if align-shrink = 0)<br />
7-6 00C0 H Text direction: 0 = According to context; 1 = Left-to-right; 2 =<br />
Right-to-left (only if align-textdir = 0)<br />
4 2 Relative indentation (255 = absolute indentation, only if align-indent = 0)<br />
6 2 Not used<br />
• Border <strong>Format</strong>ting Block<br />
Offset Size Contents<br />
0 4 Border line styles and colors:<br />
Bit Mask Contents<br />
3-0 0000000F H Left line style (only if bord-left = 0, ➜2.5.11)<br />
7-4 000000F0 H Right line style (only if bord-right = 0, ➜2.5.11)<br />
11-8 00000F00 H Top line style (only if bord-top = 0, ➜2.5.11)<br />
15-12 0000F000 H Bottom line style (only if bord-bot = 0, ➜2.5.11)<br />
22-16 007F0000 H Colour index (➜5.74) for left line (only if bord-left = 0)<br />
29-23 3F800000 H Colour index (➜5.74) for right line (only if bord-right = 0)<br />
30 40000000 H Top-left to bottom-right line on/off (only if bord-tl-br = 0)<br />
31 80000000 H Bottom-left to top-right line on/off (only if bord-bl-tr = 0)<br />
4 4 Bit Mask Contents<br />
6-0 0000007F H Colour index (➜5.74) for top line (only if bord-top = 0)<br />
13-7 00003F80 H Colour index (➜5.74) for bottom line (only if bord-bot = 0)<br />
20-14 001FC000 H Colour index (➜5.74) for diagonal line colour (only if<br />
bord-tl-br = 0 or if bord-bl-tr = 0)<br />
24-21 01E00000 H Diagonal line style (only if bord-tl-br = 0 or if<br />
bord-bl-tr = 0, ➜2.5.11)<br />
143