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.

4 Worksheet/Workbook Stream<br />

4.11 Shared String Table (BIFF8)<br />

4.11.1 <strong>The</strong> SST Record<br />

Definition: Shared String Table<br />

A BIFF8 workbook collects the strings of all text cells in a global list, the Shared String Table. This table is<br />

located in the record SST in the Workbook Globals Substream (➜4.2.5).<br />

An SST record may be followed by an EXTSST record which stores stream positions for a string hash table.<br />

Common structure of the Shared String Table, BIFF8:<br />

● SST ➜5.100<br />

○ EXTSST ➜5.42<br />

Text cells are represented by LABELSST records (➜5.65) which contain indexes into the SST record. For reading <strong>Excel</strong><br />

files, only the SST record and the LABELSST records are important.<br />

Example: A workbook contains anywhere the strings “AAA”, “BBB” and “CCC”.<br />

BOF<br />

Type = workbook globals<br />

Workbook globals records<br />

SST Total number of strings in document = 4, strings in SST = 3<br />

String 0 = “AAA”<br />

String 1 = “BBB”<br />

String 2 = “CCC”<br />

EXTSST<br />

See below<br />

Workbook globals records<br />

EOF<br />

BOF<br />

Type = worksheet<br />

Cell records<br />

LABELSST<br />

LABELSST<br />

String index = 0 (results in “AAA”)<br />

String index = 2 (results in “CCC”)<br />

Cell records<br />

LABELSST<br />

LABELSST<br />

String index = 1 (results in “BBB”)<br />

String index = 0 (results in “AAA”)<br />

Cell records<br />

EOF<br />

110

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

Saved successfully!

Ooh no, something went wrong!