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 />
• Option Flags<br />
If none of the formatting attributes is set, the option flags field contains 00000000 H . <strong>The</strong> following table assumes that<br />
the conditional formatting contains at least one modified formatting attribute (there is at least one of the formatting<br />
blocks in the record).<br />
All flags describing a modified attribute contain the value 0 2 , if the conditinal formatting changes the respective<br />
! attribute, and 1 2 , if the original cell formatting is preserved. <strong>The</strong> flags for modified font attributes are not contained<br />
in this option flags field, but in the font formatting block itself.<br />
Bit Mask Name Contents<br />
0 00000001 H align-hor 0 = Horizontal alignment modified<br />
1 00000002 H align-ver 0 = Vertical alignment modified<br />
2 00000004 H align-wrap 0 = Text wrapped flag modified<br />
3 00000008 H align-rot 0 = Text rotation modified<br />
4 00000010 H align-justlast 0 = Justify last line flag modified<br />
5 00000020 H align-indent 0 = Indentation modified<br />
6 00000040 H align-shrink 0 = Shrink to fit flag modified<br />
7 00000080 H Always 1 2<br />
8 00000100 H prot-locked 0 = Cell locked flag modified<br />
9 00000200 H prot-hidden 0 = Cell hidden flag modified<br />
10 00000400 H bord-left 0 = Left border style and colour modified<br />
11 00000800 H bord-right 0 = Right border style and colour modified<br />
12 00001000 H bord-top 0 = Top border style and colour modified<br />
13 00002000 H bord-bot 0 = Bottom border style and colour modified<br />
14 00004000 H bord-tl-br 0 = Top-left to bottom-right border flag modified<br />
15 00008000 H bord-bl-tr 0 = Bottom-left to top-right border flag modified<br />
16 00010000 H patt-style 0 = Pattern style modified<br />
17 00020000 H patt-col 0 = Pattern colour modified<br />
18 00040000 H patt-bgcol 0 = Pattern background colour modified<br />
21-19 00380000 H Always 111 2<br />
26 04000000 H font 1 = Record contains font formatting block<br />
27 08000000 H align 1 = Record contains alignment formatting block<br />
28 10000000 H bord 1 = Record contains border formatting block<br />
29 20000000 H patt 1 = Record contains pattern formatting block<br />
30 40000000 H prot 1 = Record contains protection formatting block<br />
31 80000000 H align-textdir 0 = Text direction modified<br />
141