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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4 Worksheet/Workbook Stream<br />

• Add-In Functions<br />

If a worksheet uses add-in functions, a special EXTERNALNAME record containing the byte sequence 01 H 3A H will<br />

occur. It is followed by the names of all used add-in functions, each inside of an EXTERNALNAME record.<br />

Example: A document contains the formulas =ISODD(1) and =ISEVEN(1).<br />

<strong>The</strong> Local Link Table of Sheet1 contains an EXTERNSHEET Document Block with the special EXTERN-<br />

SHEET record for add-in functions:<br />

EXTERNCOUNT Number of EXTERNSHEET records = 1<br />

EXTERNSHEET 1<br />

EXTERNALNAME 1<br />

EXTERNALNAME 2<br />

Name = “” (add-in)<br />

Name = “ISODD”<br />

Name = “ISEVEN”<br />

<strong>The</strong> add-in function names are represented by tNameXR tokens in the formula, here referring to EXTERN-<br />

SHEET 1 and to the respective EXTERNALNAME record. <strong>The</strong> token is the first argument of the<br />

EXTERN.CALL function, which invokes the call of the add-in function.<br />

• DDE Links, OLE Links<br />

DDE links and OLE links expect the name of the server application (DDE) or the class name (OLE) and the name of a<br />

source document. <strong>The</strong>se items are encoded in an EXTERNSHEET record. It is followed by EXTERNALNAME records<br />

with additional data of the links. An EXTERNALNAME record contains the item (data source range) or the identifier of<br />

the OLE object data storage. Inside a formula, a DDE link or OLE data link is represented by the token tNameXV<br />

(➜3.9.14). An OLE object link contains a tNameX token in its OBJ record.<br />

Example: A document contains a DDE link and an OLE data link to the range A1:B2 of Sheet1 in the <strong>Excel</strong><br />

document “D:\example.xls” and a linked OLE object to the bitmap file “D:\example.bmp”.<br />

<strong>The</strong> Local Link Table of Sheet1 contains two EXTERNSHEET Document Blocks, one for the DDE link, one for<br />

the OLE data link, and one for the linked OLE object:<br />

EXTERNCOUNT Number of EXTERNSHEET records = 1<br />

EXTERNSHEET 1<br />

EXTERNALNAME 1<br />

EXTERNALNAME 2<br />

EXTERNSHEET 2<br />

EXTERNALNAME 1<br />

EXTERNSHEET 3<br />

EXTERNALNAME 1<br />

Name = “excelD:\[example.xls]Sheet1”<br />

(Server = “excel”; Topic = “D:\[example.xls]Sheet1”)<br />

Type = DDE link, representing the “StdDocumentName”<br />

identifier<br />

Item = “StdDocumentName”<br />

Type = DDE link<br />

Item = “A1:B2”<br />

Name = “<strong>Excel</strong>.Sheet.5D:\example.xls”<br />

(Server = “<strong>Excel</strong>.Sheet.5”; Topic = “D:\example.xls”)<br />

Type = OLE link<br />

Item = “!Sheet1!A1:B2”<br />

Name = “PackageD:\example.bmp”<br />

(Class name = “Package”; Document = “D:\example.bmp”)<br />

Type = OLE link<br />

Storage = 00012345 H (storage name = “LNK00012345”)<br />

104

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

Saved successfully!

Ooh no, something went wrong!