571
OpenOffice.org XML File Format O.e Technical Reference Manual Version 2 December 2ee2 Sun Microsystems, Inc. 9eO San Antonio Road Palo Alto, CA 943e3 U.S.A. 65e-96e-O3ee December 2ee2

XML File Format O · PDF file XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Embed Size (px)

Citation preview

Page 1: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

OpenOffice.org XML File FormatO.e

Technical Reference ManualVersion 2

December 2ee2

Sun Microsystems, Inc.9eO San Antonio RoadPalo Alto, CA 943e3U.S.A. 65e-96e-O3ee

December 2ee2

Page 2: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Copyrights and TrademarksCopyright 220 Sn iirosystemss nics 20 an ntonio oads Caaiiornia 9424s c c c aa rights reserredc

This doiSmentation is distribSted Snder aiienses restriiting its Ssec YoS may make iopies oi and redistribSte its bSt yoS may notmodiiy or make deriratire torks oi this doiSmentation tithoSt prior tritten aSthorikation oi Sn and its aiiensorss ii anyc

Sns Sn iirosystemss the Sn aogos tarPortaas tarOiiiiesthe tarOiiiie aogos Jaras Jara Beans Jara iripts and the Jara CoiieeCSp are trade marks or registered trademarks oi Sn iirosystemss nic in the c c and other ioSntriesc

Federaa iqSisitions: Commeriiaa oittare - Gorernment sers Sbjeit to tandard Liiense Terms and Conditionsc

DOC ENT T ON P OV DED " " ND LL EXP E O PL ED COND T ON s EP E ENT T ON NDD NT E s NCL D NG NY PL ED D NTY OF E CO NT B L TYs F TNE FO P T C L P PO E O NON- NF NGE ENTs E D CL EDs EXCEPT TO TOE EXTENT TO T CO D CL E EOELD TO BE LEG LLY NV L Dc

Page 3: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Contents 1Introun1inito 1teeuo inI.irg iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i1

0c0 Namespaiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m

0c trSitSre oi OpenOiiiiecorg X L DoiSmentscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

0c c0 DoiSment oot ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

0c c DoiSments and SbdoiSments cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

0c c4 Primary DoiSment Charaiteristiis ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

0c4 DoiSment niormation cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42

0c9 tyaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40

0c9c0 Loiation oi tyaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

0c9c E.ampaes oi tyaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

0c5 Formscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44

0c6 DoiSment Contentcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44

0cm Dhite- paie Proiessing and EOL Oandaingcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44

0cr DoiSment Vaaidationccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

0crc0 Proiessing the CSrrent Version cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

1 nn1ionor 1in1 1iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i2

c0 etadataccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 45

c0c0 Generator cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46

c0c Titae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46

c0c4 Desiription ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46

c0c9 Sbjeit cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46

c0c5 2eytords ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

c0c6 nitiaa Creator cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

c0cm Creator cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

c0cr Printed By cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

Page 4: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c0c Creation Date and Time ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

c0c02 odiiiiation Date and Time cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

c0c00 Print Date and Time ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

c0c0 DoiSment Tempaate ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

c0c04 Stomatii eaoad ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

c0c09 Oyperaink Beharior cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 92

c0c05 LangSage cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90

c0c06 Editing Cyiaes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90

c0c0m Editing DSration ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c0c0r ser-deiined etadata ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c0c0 DoiSment tatistiis cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c0c 2 ampae etadata cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

c Formatting Properties and tyaesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

c c0 Formatting Property ets cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95

c c impae Formatting Properties cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95

c c4 Compae. Formatting Properties ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95

c c9 tyaes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 96

c c5 tyae appings cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c4 Page tyaes and LayoStcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 50

c4c0 Page aster cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5

c4c aster Pages cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5r

c4c4 Oeaders and Footers ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5

c4c9 Oeader and Footer tyaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 62

c4c5 Footnote LayoSt ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 60

c4c6 Footnote eparator Line ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 60

c9 Font Deiaarationsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6

c9c0 Font Deiaaration ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 64

c5 Data tyaescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 69

c5c0 NSmber tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 69

c5c CSrreniy tyae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 66

c5c4 Perientage tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6r

c5c9 Date tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6r

c5c5 Time tyae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m

c5c6 Booaean tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m9

c5cm Te.t tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m5

c5cr Common Data tyae Eaements ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m6

c5c Common Data tyae ttribStes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m6

c5c02 Common NSmber tyae ttribStes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r0

Page 5: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c6 Framescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r9

c6c0 Te.t Bo.es ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r5

c6c mages cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r6

c6c4 Dratings cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc rm

c6c9 Objeits cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc rr

c6c5 ppaets ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

c6c6 PaSgins cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

c6cm Parameters ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

c6cr Faoating Frames cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

c6c Common Frame Eaements cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

c6c02 Common Frame ttribStes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c6c00 Frame Formatting Properties cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m

c6c0 Faoating Frame Formatting Properties ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 024

c6c04 Objeit Formatting Properties ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 029

c6c09 Frame Erents cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 029

cm Forms and Controascccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 025

cr Oyperainkscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 025

crc0 impae Oyperainks cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 025

crc Caient ide mage aps ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 026

c NSmber Formatcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 02

c c0 Preii. and Siii. cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 02

c c Format peiiiiiation cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 002

c c4 Letter ynihronikation in NSmber Formats ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 002

c02 iriptsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 002

c00 Erent Tabaesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 000

c00c0 Erent cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 000

c0 Change Traikingcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 00

c0 c0 Change niormation ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 004

c04 OpenOiiiiecorg ppaiiation ettingsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 009

c04c0 Base ettings cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 009

c04c eqSenie oi ettings cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 009

c04c4 nde. iiess oi eqSenies cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 005

c04c9 Name iiess oi eqSenies cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 005

2 in1 1iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii

4c0 Oeadings and Paragraphsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 00m

4c0c0 Primary Oeading and Paragraph Components ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 00m

4c0c Dhite- paie Charaiters ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 2

Page 6: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c0c4 Tab tops ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 2

4c0c9 Line Breaks cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 0

4c0c5 Te.t tyaes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 0

4c0c6 Te.t Formatting Properties cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 0

4c0cm Oyperainks cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4c0cr Bookmarks ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 9

4c0c nde. Entries cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 5

4c0c02 eierenies cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 5

4c0c00 oit Oyphenss Oyphenss and Non-breaking Baanks ccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 6

4c eitionscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 6

4c c0 eition oSrie ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 r

4c c DDE oSrie ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4c4 BSaaeted and NSmbered Listsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 042

4c4c0 List Baoiks ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 040

4c4c List Oeader ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 04

4c4c4 List tem ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 04

4c4c9 List tyaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 049

4c4c5 NSmber Lerea tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 045

4c4c6 BSaaet Lerea tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 04m

4c4cm mage Lerea tyae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 04r

4c9 OStaine NSmberingccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 092

4c9c0 OStaine tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 090

4c9c OStaine Lerea tyae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 090

4c5 Line NSmberingccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 09

4c5c0 Line NSmbering ConiigSration cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 09

4c5c eparator cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 095

4c5c4 Line NSmbering Properties cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 095

4c6 Footnotes and Endnotesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 096

4c6c0 Footnotes ConiigSration ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 096

4c6c Endnotes ConiigSration ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 09

4c6c4 Footnotes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 09

4c6c9 Endnotes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 050

4cm Fieadscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 05

4cmc0 Common Charaiteristiis oi Fiead Eaements ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 05

4cmc DoiSment Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 054

4cmc4 Date Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 054

4cmc9 Time Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 059

4cmc5 Page NSmber Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 055

Page 7: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4cmc6 Page ContinSation Te.t cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 056

4cmcm ender Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 05m

4cmcr Sthor Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 062

4cmc Paaiehoaders ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 060

4cmc02 Database Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 06

4cmc00 Dispaaying Database Content ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 064

4cmc0 eaeiting the Ne.t Database ot cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 064

4cmc04 eaeiting a ot NSmber cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 069

4cmc09 Dispaaying the ot NSmber cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 065

4cmc05 Dispaay CSrrent Database and Tabae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 066

4cmc06 etadata Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 066

4cmc0m Conditionaa Te.t Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m2

4cmc0r Oidden Te.t Fiead cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m

4cmc0 Oidden Paragraph Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m4

4cmc 2 Chapter Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m9

4cmc 0 Fiae Name Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m5

4cmc DoiSment Tempaate Name Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m6

4cmc 4 Page Variabae Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m6

4cmc 9 airo Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0mr

4cmc 5 DDE Conneitions cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0mr

4cmc 6 DDE Conneition Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r2

4cmc m eierenie Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r2

4cmc r Variabae Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r4

4cmc Deiaaring impae Variabaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r4

4cmc42 etting impae Variabaes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r9

4cmc40 Dispaaying impae Variabaes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r5

4cmc4 impae Variabae npSt Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r6

4cmc44 Deiaaring ser Variabaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0rm

4cmc49 Dispaaying ser Variabaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0rm

4cmc45 ser Variabae npSt Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0rr

4cmc46 Deiaaring eqSenie Variabaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r

4cmc4m sing eqSenie Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 2

4cmc4r E.pression Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 0

4cmc4 Te.t npSt Fieads cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4cmc92 iript Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4cmc90 easSre Fieads ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 4

4cmc9 Tabae FormSaa Fiead ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 4

4cmc94 Common Fiead ttribStes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0 9

Page 8: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4cr Frames in Te.t DoiSmentsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4crc0 nihor Type cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4crc nihor Position cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4crc4 nihor Page NSmber ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 20

4c Sbyccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 20

4c c0 Sby Base cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2

4c c Sby Te.t ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 24

4c02 Te.t Formatting Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 24

4c02c0 Font Variant ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 24

4c02c Te.t Transiormations ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 24

4c02c4 Coaor cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 24

4c02c9 Dindot Font Coaor ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 29

4c02c5 Te.t OStaine ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 29

4c02c6 Crossing OSt cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 29

4c02cm Te.t Position cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 29

4c02cr Font Name cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 25

4c02c Font Famiay cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 25

4c02c02 Font Famiay Generii cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 26

4c02c00 Font tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 26

4c02c0 Font Pitih ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2m

4c02c04 Font Charaiter et cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2m

4c02c09 Font ike cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2r

4c02c05 eaatire Font ike cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2r

4c02c06 Letter paiing cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2

4c02c0m LangSage cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2

4c02c0r CoSntry ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2

4c02c0 Font tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 02

4c02c 2 Font eaiei cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 02

4c02c 0 Te.t hadot cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 02

4c02c nderaining cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 00

4c02c 4 nderaine Coaor ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 00

4c02c 9 Font Deight cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 00

4c02c 5 Te.t Deioration Dord ode ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4c02c 6 Letter 2erning cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4c02c m Te.t Bainking ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4c02c r Te.t BaikgroSnd Coaor cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 04

4c02c Te.t Combine ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 04

4c02c42 Te.t Combine tart and End Charaiters cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 04

Page 9: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c02c40 Te.t Emphasis cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 09

4c02c4 Te.t Stospaie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 09

4c02c44 Te.t iaae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 09

4c02c49 Te.t otation ngae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 05

4c02c45 Te.t otation iaae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 05

4c02c46 PSnitSation Drap ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 05

4c02c4m Line Break cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 05

4c00 Paragraph Formatting Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 06

4c00c0 Fi.ed Line Oeight cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 06

4c00c inimSm Line Oeight cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 06

4c00c4 Line Distanie ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 06

4c00c9 Te.t aign cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m

4c00c5 Te.t aign oi Last Line cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m

4c00c6 JSstiiy ingae Dord cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0m

4c00cm Break nside ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r

4c00cr Didots cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r

4c00c Orphans cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r

4c00c02 Tab tops ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0r

4c00c00 Oyphenation ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2

4c00c0 Oyphenation 2eep cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2

4c00c04 Oyphenation emain Char CoSnt cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2

4c00c09 Oyphenation PSsh Char CoSnt ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4c00c05 a.imSm Oyphens cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

4c00c06 Drop Caps cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

4c00c0m egister TrSe ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

4c00c0r NSmbering tyae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

4c00c0 Leit and ight argins cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

4c00c 2 Te.t ndent ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

4c00c 0 Stomatii Te.t ndent ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

4c00c Top and Bottom argins ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

4c00c 4 Page eqSenie Entry Point cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

4c00c 9 Break Beiore and Break iter ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

4c00c 5 Paragraph BaikgroSnd Coaor ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5

4c00c 6 Paragraph BaikgroSnd mage cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5

4c00c m Border cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6

4c00c r Border Line Didth ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m

4c00c Padding cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

4c00c42 hadot ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

Page 10: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c00c40 2eep tith Ne.t cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

4c00c4 Line NSmbering ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

4c00c44 Te.t Stospaies PSnitSation Draps Line Break cccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

4c00c49 Vertiiaa aignment ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

4c0 eition Formatting Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

4c0 c0 eition BaikgroSnd ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42

4c0 c CoaSmns ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42

4c0 c4 CoaSmn peiiiiiation ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42

4c0 c9 CoaSmn eparator cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

4c0 c5 Proteit cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44

4c04 Change Traiking in Te.t DoiSmentsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44

4c04c0 Traiked Changes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44

4c04c Changed egions ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

4c04c4 egion tart and End ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

4c04c9 nsertion ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 45

4c04c5 Deaetion cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 45

4c04c6 Format Change ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46

4c09 Optionaa niormationcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46

4c09c0 Sto ark Fiae ior aphabetiiaa ndiies ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

4T in1 1iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii12T

9c0 Generaa ntrodSition to OpenOiiiiecorg Tabaescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c DoiSment Proteitioncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 92

9c4 CaaiSaation ettingscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 92

9c4c0 NSaa Date cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

9c4c teration cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

9c9 Change Traiking in preadsheetscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94

9c9c0 Traiked Changes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

9c9c Dependenies cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

9c9c4 Dependenie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

9c9c9 Deaetions cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95

9c9c5 Ceaa Content Deaetion ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95

9c9c6 Change Deaetion ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95

9c9cm nsertion ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 96

9c9cr Deaetion cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9m

9c9c CSt Oiis cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r

9c9c02 nsertion CSt Oii cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

9c9c00 orement CSt Oii ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

Page 11: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c9c0 orement cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 52

9c9c04 Target ange ddresss oSrie ange ddress cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 52

9c9c09 Change Traik Ceaa ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5

9c9c05 Ceaa Content Change cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 54

9c9c06 Ceaa ddress ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 54

9c9c0m PrerioSs cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 54

9c9c0r ejeition cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 59

9c9c0 Common Change Traiking ttribStes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 59

9c5 Tabaes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 55

9c5c0 Tabae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 55

9c5c Tabae oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5m

9c5c4 ienario Tabae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5r

9c5c9 hapes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 62

9c6 CoaSmnsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 60

9c6c0 GroSping cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 60

9c6c CoaSmn GroSps ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 60

9c6c4 CoaSmn Desiription cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6

9cm otsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 69

9cmc0 GroSping cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 69

9cmc ot GroSps cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 69

9cmc4 ot ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 65

9cr Ceaascccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6m

9crc0 Tabae Ceaa cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6m

9crc Ceaa ange oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m4

9crc4 nnotation ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m5

9crc9 Deteitire cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m6

9crc5 Oighaighted ange ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m6

9crc6 Operation cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc mm

9crcm Ceaa ddress Entity cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc mr

9crcr Ceaa ange ddress Entity ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m

9crc Ceaa ange ddress List Entity cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc m

9c Tabae Ceaa Content Vaaidationscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r2

9c c0 Tabae Ceaa Content Vaaidation ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r2

9c c Oeap essage ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

9c c4 Error essage cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

9c c9 Error airo cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r4

9c02 Sbtabaes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r9

9c00 Labea angescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc rr

Page 12: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c00c0 Labea ange ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc rr

9c0 Named E.pressionscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

9c0 c0 Named ange ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 2

9c0 c Named E.pression ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0

9c04 Fiaterscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

9c04c0 Tabae Fiater ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

9c04c Fiater nd ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c04c4 Fiater Or ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c04c9 Fiater Condition ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

9c09 Database angescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6

9c09c0 Database ange ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 6

9c09c Database oSrie oL ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc r

9c09c4 Database oSrie Tabae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

9c09c9 Database oSrie oSery cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 422

9c09c5 ort cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 422

9c09c6 ort By cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 420

9c09cm Sbtotaa Saes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42

9c09cr ort GroSps ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 424

9c09c Sbtotaa Sae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 429

9c09c02 Sbtotaa Fiead cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 429

9c05 Data Piaot Tabaescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 425

9c05c0 Data Piaot Tabae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 425

9c05c oSrie erriie ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42r

9c05c4 oSrie Ceaa ange cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42

9c05c9 Fiater ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42

9c05c5 Data Piaot Fiead cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 42

9c05c6 Data Piaot Lerea ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 400

9c05cm Data Piaot Sbtotaas cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 400

9c05cr Data Piaot Sbtotaa ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40

9c05c Data Piaot embers ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40

9c05c02 Data Piaot ember ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40

9c06 Consoaidationccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 404

9c0m DDE Linkscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 405

9c0mc0 DDE Link ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 405

9c0mc DDE oSrie ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 405

9c0r Tabae Formatting Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 406

9c0rc0 Tabae Didth ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 406

9c0rc Tabae aignment ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 406

Page 13: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c0rc4 Tabae Leit and ight argin cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 406

9c0rc9 Tabae Top and Bottom argin cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40m

9c0rc5 Page eqSenie Entry Point cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40m

9c0rc6 Break Beiore and Break iter ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40m

9c0rcm Tabae BaikgroSnd and BaikgroSnd mage cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40m

9c0rcr Tabae hadot ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40m

9c0rc 2eep tith Ne.t cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40m

9c0rc02 ay Break Betteen ots ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40m

9c0rc00 Border odea Property cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40r

9c0rc0 Page tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40r

9c0rc04 Dispaay ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40r

9c0 CoaSmn Formatting Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40

9c0 c0 CoaSmn Didth cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40

9c 2 Tabae ot Formatting Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40

9c 2c0 ot Oeight cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 40

9c 2c Break Beiore and Break iter ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 2

9c 0 Tabae Ceaa Formatting Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 2

9c 0c0 Vertiiaa aignment ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 2

9c 0c Te.t aign cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 2

9c 0c4 Te.t aign oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 0

9c 0c9 Te.t OStaine ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 0

9c 0c5 Direition cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 0

9c 0c6 Vertiiaa Gayph Orientation ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 0

9c 0cm Te.t hadot cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 0

9c 0cr Ceaa hadot ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 0

9c 0c Ceaa BaikgroSnd cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c 0c02 Ceaa Borders and Border Line Didth cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c 0c00 Padding cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c 0c0 Leit argin cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c 0c04 Drap Option ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c 0c09 otation ngae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

9c 0c05 otation aign cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 4

9c 0c06 Ceaa Proteit ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 4

9c 0c0m Print Content cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 4

9c 0c0r Data tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 4

I4oruoin1 1iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i21

5c0 aster Pagescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 6

Page 14: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c0c0 OandoSt aster cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 m

5c0c Presentation Notes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 r

5c Drating Pagescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 r

5c c0 BaikgroSnd tyae Properties cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 442

5c c Presentation Notes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 442

5c4 Drating hapescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 440

5c4c0 eitangae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 440

5c4c Line cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44

5c4c4 Poayaine cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 444

5c4c9 Poaygon cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 449

5c4c5 Path cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 449

5c4c6 Ciriae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 445

5c4cm Eaaipse cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44m

5c4cr Conneitor ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 44r

5c4c Caption ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 492

5c4c02 easSre cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c4c00 Controa ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 494

5c4c0 Page ThSmbnaia ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 494

5c4c04 GroSping cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 499

5c4c09 Common Drating hape ttribStes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 499

5c9 Presentation hapescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49m

5c9c0 Common Presentation hape ttribStes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49m

5c9c Titae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49r

5c9c4 OStaine cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49r

5c9c9 Sbtitae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49r

5c9c5 Te.t cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49r

5c9c6 Graphii ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c9cm Objeit ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c9cr Chart ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c9c Tabae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c9c02 Orgiharts cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c9c00 Pages cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c9c0 Notes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c5 4D hapesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c5c0 iene cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 49

5c5c Light ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 45

5c5c4 CSbe ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 454

5c5c9 phere cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 459

Page 15: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c5c5 E.trSde ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 455

5c5c6 otate ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 455

5c6 Graphii tyae Eaementscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 456

5c6c0 Gradient cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 456

5c6c Oatih cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 45r

5c6c4 mage cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 45

5c6c9 Transpareniy Gradient ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 462

5c6c5 arker cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 460

5c6c6 Dash ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46

5cm troke Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 464

5cmc0 tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 469

5cmc Dash ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 469

5cmc4 Didth cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 469

5cmc9 Coaor cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 469

5cmc5 tart arker ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 465

5cmc6 End arker cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 465

5cmcm tart arker Didth cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 465

5cmcr End arker Didth ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 465

5cmc tart arker Center cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 465

5cmc02 End arker Center ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 466

5cmc00 Opaiity ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 466

5cmc0 Joint cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 466

5cr Fiaa Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 466

5crc0 tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46m

5crc Coaor cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46m

5crc4 Gradient cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46m

5crc9 Gradient tep CoSnt ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46m

5crc5 Oatih cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46m

5crc6 oaid Oatih ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46r

5crcm Bitmap cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46r

5crcr Transpareniy cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 46

5c Te.t nimation Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m2

5c02 Te.t Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

5c02c0 Sto Grot Didth and Oeight cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

5c02c Fit To ike cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

5c02c4 Te.t rea Vertiiaa aign cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

5c02c9 Te.t rea Oorikontaa aign ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

5c00 Graphii Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m4

Page 16: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c00c0 Coaor ode ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m4

5c00c Coaor nrersion cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m4

5c00c4 djSst LSminanie ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m4

5c00c9 djSst Contrast ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m4

5c00c5 djSst Gamma cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m9

5c00c6 djSst ed cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m9

5c00cm djSst Green ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m9

5c00cr djSst BaSe ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m9

5c00c djSst Transpareniy cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m9

5c0 hadot Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m5

5c04 Conneitor Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m6

5c09 easSre Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m6

5c05 Caption Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4m

5c06 4D Geometry Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r0

5c0m 4D Lighting Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

5c0r 4D Te.tSre Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r4

5c0 4D ateriaa Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r9

5c 2 4D hadot Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r5

5c 0 Layer etsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r5

5c 0c0 Layer cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r5

5c GaSe Pointsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r5

5c c0 GaSe Point cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r5

5c 4 Presentation Page LayoStscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r6

5c 4c0 Presentation Paaiehoader cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r6

5c 9 Presentation Page ttribStescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4rm

5c 9c0 Transition Type cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4rm

5c 9c Transition tyae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4rr

5c 9c4 Transition peed cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4rr

5c 9c9 Page DSration ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4rr

5c 9c5 Page Visibiaity cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

5c 9c6 oSnd ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

5c 9cm BaikgroSnd ike cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

5c 9cr BaikgroSnd Objeits Visibae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4r

5c 9c BaikgroSnd Visibae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 2

5c 5 Presentation ettingscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 2

5c 5c0 Presentation cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 2

5c 5c hots ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 9

5c 6 Presentation nimationsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 5

Page 17: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c 6c0 oSnd ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 5

5c 6c hot hape cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 6

5c 6c4 hot Te.t cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 r

5c 6c9 Oide hape ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4 r

5c 6c5 Oide Te.t ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

5c 6c6 Dim ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

5c 6cm Paay cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 4

nIin1 1iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i

6c0 Formscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 920

6c0c0 Form ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 920

6c Controascccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 92m

6c c0 Te.t cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 92r

6c c Te.t rea ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 92

6c c4 Passtord cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 902

6c c9 Fiae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 902

6c c5 Formatted Te.t ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 900

6c c6 Fi.ed Te.t cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90

6c cm Combo Bo. cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90

6c cr tem cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 904

6c c List Bo. cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 909

6c c02 Option cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 909

6c c00 BStton ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 905

6c c0 mage cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 905

6c c04 Cheik Bo. cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 906

6c c09 adio BStton cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90m

6c c05 Frame ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90r

6c c06 mage Frame ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90r

6c c0m Oidden cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90

6c c0r Grid cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 90

6c c0 CoaSmn ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 2

6c c 2 Generii Controa cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 2

6c4 Common Form and Controa ttribStesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 2

6c9 Common Controa ttribStesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 0

6c9c0 Database ttribStes cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 942

6c5 Erentsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94

6c5c0 Erents tith an EqSiraaent OT L Erent Type cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94

6c5c OpenOiiiiecorg Erent Types ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 944

Page 18: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

6c6 Propertiesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 949

6c6c0 Property et cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 949

6c6c Property cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 945

6c6c4 Property VaaSe ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 946

1t u1.iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i2

mc0 Basii Components oi OpenOiiiiecorg X L nde.escccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94m

mc0c0 nde. oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94m

mc0c nde. Body ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94r

mc0c4 nde. Titae Tempaate cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94r

mc0c9 nde. Entry Tempaates ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94r

mc0c5 Common nde. and nde. oSrie ttribStes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 94

mc nde. Entriescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 990

mc c0 Chapter NSmber ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 990

mc c Chapter niormation ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 990

mc c4 Entry Te.t cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

mc c9 Page NSmber cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

mc c5 Fi.ed tring cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

mc c6 Bibaiography niormation ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

mc cm Tab top ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 994

mc cr Oyperaink tart and End ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 999

mc c E.ampae oi an nde. Entry ConiigSration ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 995

mc4 nde. oSrie tyaescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 996

mc4c0 nde. oSrie tyae ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 996

mc9 nde. arksccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99m

mc9c0 Tabae oi Content nde. arks ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99m

mc9c ser-Deiined nde. arks ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99r

mc9c4 aphabetiiaa nde. ark ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 99

mc9c9 Bibaiography nde. ark ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 952

mc5 Tabae oi Contentsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 950

mc5c0 Tabae oi Content oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95

mc5c Tabae oi Content Entry Tempaate ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 954

mc6 nde. oi aaSstrationscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 955

mc6c0 nde. oi aaSstration oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 955

mc6c aaSstration nde. Entry Tempaate cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 956

mcm nde. oi Tabaesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95m

mcmc0 Tabae nde. oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95m

mcmc Tabae nde. Entry Tempaate cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95r

Page 19: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

mcr nde. oi Objeitsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95r

mcrc0 Objeit nde. oSrie ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 95r

mcrc Objeit nde. Entry Tempaate ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 962

mc ser-Deiined nde.cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 962

mc c0 ser-Deiined nde. oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 962

mc c ser-Deiined nde. Entry Tempaate cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 96

mc02 aphabetiiaa nde.ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 964

mc02c0 aphabetiiaa nde. oSrie ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 964

mc02c aphabetiiaa nde. Entry Tempaate ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 966

mc00 Bibaiographyccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 96m

mc00c0 Bibaiography nde. oSrie cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 96m

mc00c Bibaiography Entry Tempaate ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 96r

r4Iin1 1iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i

rc0 ntrodSition to Chart DoiSmentsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9m0

rc Chartccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9m

rc4 Titaecccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9m4

rc9 Sbtitaeccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9m4

rc5 Legendcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9m9

rc6 Paot reaccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9m9

rcm Daaacccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9m6

rcr Faoorccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9mm

rc .iscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9mm

rc c0 Grid cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r0

rc02 eriescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r0

rc02c0 Domain ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r

rc00 Categoriesccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r

rc0 Data Pointccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r4

rc04 Common Chart Propertiescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r4

rc04c0 Fiaa Properties ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r4

rc04c troke Properties cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r4

rc04c4 Te.t Properties ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r9

rc04c9 aignment Properties ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r9

rc04c5 Data Labea Properties ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r9

rc04c6 tatistiiaa Properties ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r5

rc04cm otation oi Three-Dimensionaa Diagrams ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9rm

T 9 Ii1 Ie4o in1 1iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iT

c0 enSbarscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r

Page 20: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c0c0 enSbar ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9r

c0c enS cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 2

c0c4 enS PopSp ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 2

c0c9 enS tem cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 2

c0c5 enS eparator cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 0

c0c6 Common enSbar ttribStes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c iieaeratorscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c c0 iieaerator List cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c c iieaerator tem ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 4

c4 tatSs Barscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 5

c4c0 tatSs Bar ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 6

c4c tatSs Bar tem ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9 6

c9 Tooabars cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c9c0 Tooabar ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 9

c9c Tooabar tem ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 522

c9c4 Tooabar LayoSts ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 524

c9c9 Tooabar LayoSt ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 524

c5 Erentsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 526

c5c0 Erents ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 52m

c5c Erent cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 52m

c6 magescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 52r

c6c0 mages Container ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 52

c6c mages cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 52

c6c4 Entry ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 502

c6c9 E.ternaa mages cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 500

c6c5 E.ternaa Entry cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 500

ou4Tn.in1 1iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i2

02c0 Diaaog Containersccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 504

02c0c0 BSaaetin Board cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 509

02c tyaescccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 505

02c c0 tyae cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 505

02c4 Controascccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 50r

02c4c0 Common Controa ttribStes ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 50r

02c4c BStton ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 50

02c4c4 Cheik Bo. cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5 2

02c4c9 List Bo. and Combo Bo. ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5 0

02c4c5 adio GroSp and Titaed Bo. cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5 4

Page 21: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

02c4c6 Labea cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5 5

02c4cm Te.t Fiead ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5 5

02c4cr mage cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5 m

02c4c Fiae Diaaog ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5 m

02c4c02 Date Fiead ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5 r

02c4c00 Time Fiead cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 5

02c4c0 NSmerii Fiead cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 542

02c4c04 CSrreniy Fiead cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 540

02c4c09 Pattern Fiead ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 54

02c4c05 Formatted Fiead cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 544

02c4c06 Fi.ed Line cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 545

02c4c0m iroaabar ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 545

02c4c0r Progress Bar ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 546

02c9 Erentsccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 54m

02c9c0 Erents peiiiied sing Common Erent Names cccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 54m

02c9c E.paiiit Erents peiiiied by Listener cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 54

4o4. inI4iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i

00c0 ntrodSitioncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 590

00c 1ip Fiae trSitSreccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 59

00c4 Eniryptioncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 59

00c9 aniiest Fiaecccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 594

00c9c0 aniiest oot Eaement cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 594

00c9c Fiae Entry cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 594

00c9c4 Eniryption Data ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 599

00c9c9 agorithm ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 599

00c9c5 2ey Deriration ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 595

Page 22: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion
Page 23: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Preiaie

boSt This anSaaThis manSaa desiribes the OpenOiiiiecorg X L iiae iormatc X L is the net natire iiae iormat ior theOpenOiiiiecorg sSites repaaiing the oad binary iiae iormatc OSr goaa is ttoioad: to hare a iompaete speiiii-iation eniompassing aaa OpenOiiiiecorg iomponentss and to proride an open standard ior oiiiie doiS-mentsc n oSr opinions X L is ideaa as an open standard beiaSse oi the iree araiaabiaity oi X Lspeiiiiiations and doiSment type deiaarations iDTDsos and the X L sSpport ior X Ls X LTs XLinks VGs ath Ls and many other important and emerging standardsc One singae X L iormat appaies todiiierent types oi doiSmentss ior e.ampaes the same deiinition appaies to tabaes in te.t doiSments andtabaes in spreadsheetsc

This torking drait manSaa iontains the iSrrent speiiiiiation oi the OpenOiiiiecorg X L iiae iormatc sthe term "torking drait" impaiess the OpenOiiiiecorg X L iiae iormat is tork in progressc This iait hasthe ioaaoting impaiiations ior this manSaa:

● The speiiiiiation iontained in this torking drait is not iompaetec The X L speiiiiiation ior many oithe OpenOiiiiecorg ieatSres has not yet been deiided or doiSmentedc

● This torking drait may iontain speiiiiiations that are not iSrrentay impaemented in the OpenOiiiiecorgX L import and e.port iiatersc This drait shoSad aaso not omit speiiiiiations ior any ieatSres that areaaready impaemented in the OpenOiiiiecorg X L iiaters bSt there may be e.ieptions to thisc

● The speiiiiiations desiribed in this torking drait may ihangec This is espeiiaaay trSe ior speiiiiiationsthat are not iSrrentay impaemented in the OpenOiiiiecorg X L iiaterss bSt may aaso be the iase iorspeiiiiiations that are aaready impaementedc The reasons ior ihanging the speiiiiiations iniaSdeihanges to reaated torking draits aike X L-FO or VGs sSggestions irom rerieters oi the manSaaserrors or inionsisteniies that are ioSnds or probaems tith net speiiiiiations that ian onay be resoaredby ihanging e.isting speiiiiiationsc

● This torking drait may iontain errorss missing iniormations or iniompaete speiiiiiationsc

Dho hoSad ead This anSaaThis manSaa is intended ior soittare dereaoperss both internaa and e.ternaa to Sn iirosystemsTc

trSitSre oi This anSaaThis manSaa iontains the ioaaoting seitions:

● Chapter 0s ntrodSition to OpenOiiiiecorg X L

● Chapter s Common DoiSment Content

23

Page 24: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Chapter 4s Te.t Content

● Chapter 9s Tabae Content

● Chapter 5s Graphii Content

● Chapter 6s Form Content

● Chapter ms nde.ing

● Chapter rs Chart Content

● Chapter s Paikage Format

● Gaossary

● nde.

eaated DoiSmentationThe ioaaoting doiSments proride additionaa X L-reaated iniormation:

● E.tensibae arkSp LangSage iX Lo 0c2s D4C eiommendation http:sstttct4corgsT s EC-.machtma

● iaaabae Veitor Graphiis i VGo 0c2 peiiiiiations D4C Dorking Drait http:sstttct4corgsT s 222s24sDD- VG- 2222424sinde.chtma

● Namespaies in X Ls Dorad Dide Deb ConsortiSm http:sstttct4corgsT s EC-.ma-names

● X L Transiormations iX LTo Version 0c2s D4C eiommendation http:sstttct4corgsT s.sat

● X L Path LangSage iXPatho Version 0c2s D4C eiommendation http:sstttct4corgsT s.path

● X L Linking LangSage iXLinko Version 0c2s D4C Candidate eiommendation http:sstttct4corgsT s.aink

● E.tensibae tyaesheet LangSage iX Lo Version 0c2s D4C Dorking Drait http:sstttct4corgsT s.sa

● OT L 9c20 peiiiiiations D4C eiommendation http:sstttct4corgsT shtma920

● O r620s http:sstttcisocihsmarketesr620cpdi

● O 64 s http:sstttcoasis-opencorgsiorersiso64 achtma

● O 4066s http:sstttcoasis-opencorgsiorersioSntry4066chtma

t the time oi triting this doiSments some oi these reaated doiSments are torking draitsc Paease note thatany iniormation irom these draits that is Ssed in this doiSment may ihangec

ConrentionsThe ioaaoting ionrentions are Ssed in this manSaa:

n1v 1un1 o 9oIuoun1

italic type taaii type is Ssed to indiiate iompaete titaes oi manSaas and toemphasike te.tc

nTte4o iyo Boadiaie type indiiates an item that is iontained in the gaossaryc

24 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 25: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

n1v 1un1 o 9oIuoun1courier font CoSrier iont is Ssed to indiiate aaa X L eaements and attribStes and

their raaSesc

TerminoaogyThe ioaaoting terms are Ssed ireqSentay in this manSaa and hare a speiiiii meaning in the ionte.t oi themanSaa:

I g 41u1.

Saes This term is Ssed in the tabaes that e.paain the OpenOiiiiecorg X Leaements and attribStesc n this ionte.ts the term Saes means thetays in thiih yoS ian Sse the eaement or attribStes that speiiiiiraaSes are aiieptabae and not aiieptabaes and any other speiiiiipoints that yoS need to knot aboSt Ssing the eaement or attribStec

Preface 25

Page 26: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion
Page 27: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

0 ntrodSition to OpenOiiiiecorg X L

This ihapter introdSies the strSitSre and basii design ieatSres oi the OpenOiiiiecorg X L iiae iormat inOpenOiiiiecorg doiSmentsc The ihapter iontains the ioaaoting seitions:

● Namespaies

● trSitSre oi OpenOiiiiecorg X L DoiSments

● DoiSment niormation

● tyaes

● Forms

● DoiSment Content

● Dhite- paie Proiessing and EOL Oandaing

● DoiSment Vaaidation

0c0 Namespaies aists the OpenOiiiiecorg X L namespaies and their preii.esc For more iniormation aboSt X L namespaiesspaease reier to the Namespaies in X L speiiiiiations aoiated at http:sstttct4corgsT s EC-.ma-names

4T iTito 1teeuo inI.irg i 4 9o4o 9

I eu o 9oIuoun1 4 9o4o i

office For aaa iommon pieies oi iniorma-tion that are not iontained inanothers more speiiiii namespaiec

http://openoffice.org/2000 /office

style For eaements and attribStes thatdesiribe the styae and inheritaniemodea Ssed by OpenOiiiiecorg asteaa as some iommon iormattingattribStesc

http://openoffice.org/2000 /style

script For eaements and attribStes thatrepresent siripts or erentsc

http://openoffice.org/2000 /script

api For eaements and attribStes that arereaated to the OpenOiiiiecorg P c

http://openoffice.org/2000 /api

27

CHAPTER 1

Page 28: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

I eu o 9oIuoun1 4 9o4o i

form For eaements and attribStes thatdesiribe iorms and iontroasc

http://openoffice.org/2000 /form

text For eaements and attribStes that mayoiiSr tithin te.t doiSments and te.tparts oi other doiSment typess sSihas the iontents oi a spreadsheet ieaac

http://openoffice.org/2000 /text

table For eaements and attribStes thatmay oiiSr tithin spreadsheets ortithin tabae deiinitions oi a te.tdoiSmentc

http://openoffice.org/2000 /table

meta For eaements and attribStes thatdesiribe meta iniormationc

http://openoffice.org/2000 /meta

number For eaements and attribStes thatdesiribe data styae iniormationc

http://openoffice.org/2000 /tatastyle

traw For eaements and attribStes thatdesiribe graphii iontentc

http://openoffice.org/2000/trawing

presen-tation

For eaements and attribStes thatdesiribe presentation iontentc

http://openoffice.org/2000/presentation

chart For eaements and attribStes thatdesiribe ihart iontentc

http://openoffice.org/2000/chart

xlink The r u1 namespaiec http://www.w3.org/1999/xlinkfo The rh iormatting objeits and

properties namespaiec http://www.w3.org/1999/XSL/Format

svg The hh namespaiec http://www.w3.org/2000/svg tialog For eaements and attribStes that

desiribe diaaogschttp://openoffice.org/2000/tialog

0c trSitSre oi OpenOiiiiecorg X L DoiSmentsEaih strSitSraa iomponent in an OpenOiiiiecorg X L doiSment is represented by an T 1s tith assoiiated4Iur 9c The strSitSre oi X L doiSments appaies to aaa OpenOiiiiecorg appaiiationsc There is no diiiereniebetteen a te.t doiSments a spreadsheet or a dratings apart irom the iontentc asos aaa doiSment types mayiontain diiierent styaesc YoS ian e.ihange doiSment iontent that is iommon to aaa doiSment types irom one typeoi doiSment to anotherc

0c c0 DoiSment oot The tnor 1iInni T 1iis the primary eaement oi an OpenOiiiiecorg X L doiSmentc t iontains the entiredoiSmentc aa types oi OpenOiiiiecorg X L doiSmentss ior e.ampaes te.t doiSmentss spreadsheetss and dratingdoiSments Sse the same type oi doiSment root eaementc

28 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 29: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <office:tocument<RrT 9Ti aa OpenOiiiiecorg X L doiSments mSst hare a doiSment root eaementc

aa other seitions oi an OpenOiiiiecorg X L doiSment are represented by eaements that areiontained tithin the doiSment root eaementc

ooTi <!ELEMENT office:tocument (office:meta?, office:settings?,office:script?, office:font-tecls?,office:styles?,office:automatic-styles?,office:master-styles?, office:botyy<

0c c DoiSments and SbdoiSments n OpenOiiiiecorg X L doiSment ian be represented in the ioaaoting tto tays:

● s a singae X L doiSment that ioniorms to the OpenOiiiiecorg doiSment type deiinitionc

● s a ioaaeition oi sereraa sSbdoiSmentsc The sSbdoiSments are raaid X L doiSments bSt eaih sSbdoiSmenthas a diiierent doiSment rootc Eaih sSbdoiSment stores a partiiSaar aspeit oi the X L doiSments iore.ampaes one sSbdoiSment ian iontain the styae iniormation and another sSbdoiSment ian iontain the iontentoi the doiSmentc aa types oi doiSmentss ior e.ampaes te.t and spreadsheet doiSmentss Sse the same doiS-ment and sSbdoiSments deiinitionsc

Dhen storing an OpenOiiiiecorg X L doiSment on disks the OpenOiiiiecorg soittare aatays Sses the sSbdoiS-ment iormats there eaih sSbdoiSment is stored as one entry in the oreraaa paikagec This method is based on thepopSaar 1 P iiae iormatc

The sSbdoiSments that OpenOiiiiecorg sSpports and the names that are Ssed in the paikage are sSmmariked inthe ioaaoting tabae:

hrtnor 1 4

RnniET 1 hrtnor 1in1 19

meta.xml <office:tocument-meta< DoiSment meta iniormations sSih as the aSthor or thetime oi the aast sare aitionc

styles.xml <office:tocument-styles< tyaes Ssed in the doiSment iontent and aStomatiistyaes Ssed in the styaes themsearesc

content.xml <office:tocument-content< DoiSment iontent and aStomatii styaes Ssed in theiontentc

settings.xml <office:tocument-settings< ppaiiation-speiiiii settingss sSih as the tindot sikeor printer iniormationc

The deiinitions oi the root eaements desiribed in the tabae abore are anaaogoSs to the deiinition oi <office:tocument<s e.iept that the ihiad eaement speiiiiiation is sSitabay restriitedc

0c c4 Primary DoiSment CharaiteristiisYoS deiine primary doiSment iharaiteristiis in the doiSment root eaement Ssing the ioaaoting attribStes:

● Caass

● Version

Chapter O Introduction to OpenOffice.org XML 29

Page 30: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

CaassThe office:class attribSte identiiies the doiSment iaass oi an OpenOiiiiecorg X L doiSmentc DoiSmentiaasses that yoS ian assign are as ioaaots:

● Te.t

● Gaobaa doiSment

● preadsheet

● Drating

● Presentation

athoSgh the doiSment strSitSre is the same ior aaa doiSment iaassess most appaiiations ian onay deaa tith aiertain iaass oi doiSmentsc For e.ampaes ii yoS read a spreadsheet doiSment Ssing a tord proiessor appaiiationthere is aatays some aoss oi iniormationc The iaass attribSte enabaes an appaiiation to deteit the doiSment iaasstithoSt parsing the doiSmentc This is partiiSaaray SseiSa in the ioaaoting sitSations:

● Dhen appaiiations ian deaa tith sereraa doiSment iaassesc

● Dhen an rh transiormation to another iormat shoSad be appaieds and there are sereraa styaesheets araiaabaethere eaih styaesheet is speiiiii to a iertain doiSment iaassc

rg int Ti office:classRrT 9T YoS mSst speiiiy a doiSment iaass attribSte ior erery OpenOiiiiecorg X L doiSmentc

ooTi <!ATTLIST office:tocument office:class (text|text-global|spreatsheet|trawing|presentation|charty teEt|IeEt<

Version n OpenOiiiiecorg X L iiae ian iontain the rersion nSmber oi the iiae iormatc The rersion nSmber is in theiormat revision.versionc i the iiae has a rersion and the OpenOiiiiecorg appaiiation reiognikes the DTDthat beaongs to this rersions it may raaidate the doiSmentc Othertises the appaiiation does not need to raaidate thedoiSments bSt the doiSment mSst be A TTienI tc

The office:version attribSte prorides the rersion nSmber oi the doiSmentc

rg int Ti office:versionRrT 9T The version attribSte is attaihed to the root eaementc ooTi <!ATTLIST office:tocument office:version CtATA tIMPLIEt< n 9Ti The rersion nSmber oi the teihniiaa preriet is 2c c

t some eaementss yoS ian attaih iSstom attribStess thiih OpenOiiiiecorg appaiiation keepsin iase the doiSment is e.portedc i yoS Sse this ieatSres then there mSst be no rersionnSmbers beiaSse this ioSad resSat in raaidating errors that prerent the doiSment irom aoadingc

0c4 DoiSment niormation n this manSaas iniormation aboSt an OpenOiiiiecorg X L doiSment is iaaaed 4t44c E.ampaes oi metadataare:

● DoiSment titae

30 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 31: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Sthor

● DoiSment ireation date

YoS speiiiy metadata tithin the <office:meta< eaementc

rg int Ti <office:meta<RrT 9T This eaement iontains metadatac

ooTi <!ENTITY % meta "(meta:generator?,tc:title?, tc:tescription?,tc:subiect?, meta:initial-creator?,meta:creation-tate?, tc:creator?,tc:tate?, meta:printet-by?,meta:print-tate?, tc:keyworts?,tc:language?, meta:etiting-cycles?,meta:etiting-turation?, meta:hyperlink-behaviour?,meta:auto-reloat?, meta:template?,meta:user-tefineta, meta:tocument-statistics?y<!ELEMENT office:meta %meta;<

n T n the DTDs the eaement names iorrespond to the DSbain Core Eaement et ihttp:sspSracoiaicorgsdisoc This is indiiated by the tc namespaie preii.c

0c9 tyaes n OpenOiiiiecorg X L doiSment iontains the ioaaoting types oi 9yT 9:

● nn1i9yT 9The X L representations oi the styaes that are araiaabae in the OpenOiiiiecorg Sser interiaie are reierred to asstyaess ors there a diiierentiation irom the other types oi styaes is reqSireds they are reierred to as iommonstyaesc The term common indiiates that this is the type oi styae that an OpenOiiiiecorg Ssers tho is not inter-ested in the OpenOiiiiecorg X L iiae iormats ionsiders to be a styaec

● Arn4uoi9yT 9 n aStomatii styaeiiontains iormatting properties thats in the Sser interiaie riet oi a doiSments are assignedto an objeit sSih as a paragraphc The term automatic indiiates that the styae is generated aStomatiiaaay ate.port timec n other tordss iormatting properties that are immediateay assigned to a speiiiii objeit are repre-sented by an aStomatii styae tithin an OpenOiiiiecorg X L doiSmentc This tays a separation oi iontent andaayoSt is aihieredc

● g49 Ii9yT 9 master styae is a iommon styae that iontains iormatting iniormation and additionaa iontent that is dispaayedtith the doiSment iontent then the styae is appaiedc n e.ampae oi a master styae is an OpenOiiiiecorg Dratmaster pagec n this iases the additionaa iontent is any shapes that are dispaayed as the baikgroSnd oi the dratpagec nother e.ampae oi master styaes are page mastersc n this iases the additionaa iontent is the headers andiootersc Paease note that the iontent that is iontained tithin master styaes is additionaa iontent that iniaSeniesthe representation oi a doiSment bSt does not ihange the iontent oi a doiSmentc

s iar as the OpenOiiiiecorg Sser is ionierneds aaa types oi styaes are part oi the doiSmentc They represent theoStpSt deriie-independent aayoSt and iormatting iniormation that the aSthor oi a doiSment has Ssed to ireate oredit the doiSmentc The assSmption is that the aSthor oi the doiSment tants this iormatting and aayoSt iniormationto be preserred then the doiSment is reaoaded or dispaayed on a iertain deriies beiaSse this is iommon praitiieior doiSments ireated by tord proiessorsc

This type oi styae iniormation diiiers irom hh or X LT styae sheets that are Ssed to dispaay a doiSmentc nadditionaa styae sheet ior C s X LTs and so ons is reqSired to dispaay an OpenOiiiiecorg X L doiSment on aiertain deriiec This styae sheet mSst take into aiioSnt the styaes in the doiSment as teaa as the reqSirements and

Chapter O Introduction to OpenOffice.org XML 31

Page 32: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

iapabiaities oi the oStpSt deriiec The ideaa iase is that this styae sheet depends on the oStpSt deriie onayc

0c9c0 Loiation oi tyaes Common and aStomatii styaes hare the same OpenOiiiiecorg X L representations bSt they are iontained tithintto distinit iontainer eaementss as ioaaots:

● <office:styles< ior iommon styaes● <office:automatic-styles< ior aStomatii styaes aster styaes are iontained tithin a iontainer eaement oi its otn:

● <style:master-styles<

0c9c E.ampaes oi tyaesr ienTTnAu1.i 4oT 9iuTTr9I4 ir ituee I 1iyo 9ineiOpenOiiiiecorgirg i9yT 9ii

E4oT Tito 1teeuo inI.irg i9yT 9

<office:tocument ...< <office:styles< ... </office:styles< <office:automatic-styles< ... </office:automatic-styles<</office:tocument<

E4oT Tioo

ooTi <!ENTITY % styles "(style:tefault-style|style:style|text:list-style|number:number-style|number:currency-style|number:percentage-style|number:tate-style|number:time-style|number:boolean-style|number:text-style|traw:gratient|traw:hatch|traw:fill-image|traw:marker|traw:stroke-tash|style:presentation-page-layout|traw:transparencyy"<

<!ELEMENT office:styles (%styles;|text:outline-style|text:footnotes-configuration|text:entnotes-configuration|text:bibliography-configuration|text:linenumbering-configurationya<

<!ELEMENT office:automatic-styles (%styles;|style:page-masteryay<<!ELEMENT office:master-styles (traw:layer-set?,style:hantout-master?,style:master-pageay<

n T tyaes in a doiSment are ainked to the doiSment by an X L eaement instead oi a <?xml-stylesheet?< proiessing instrSitionc

32 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 33: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

0c5 FormsThe <office:forms< eaement iontains aaa oi the iorms in an OpenOiiiiecorg X L doiSmentci

rg int Ti <office:forms<RrT 9Ti niormation to be sSppaiedc

ooT <!ELEMENT office:forms (form:formya<

0c6 DoiSment ContentThe <office:boty< eaement iontains the iontent oi a doiSment in one or more page seqSeniess as ioaaots: ● The iontent distribStion oi te.t doiSments is speiiiied in eition c

● spreadsheet iontains one page seqSenie ior erery tabae that is iontained in the doiSmentc

● drating iontains one page seqSenie ior erery pagec

rg int Ti <office:boty<RrT 9T niormation to be sSppaiedc

ooT <!ELEMENT office:boty ANY<

0cm Dhite- paie Proiessing and EOL OandaingThe T2 X L speiiiiiation reqSires that thite-spaie iharaiters are ignored ior eaements that hare eaementiontents in other tords that iontain eaements bSt not te.tc This iondition appaies to the ioaaoting thite-spaie andend-oi-aine iEt o niiode iharaiters:

● OO 1ONT L T B L T ON i2.222 o

● L NE FEED i2.222 o

● C GE ET N i2.222Do

● P CE i2.22 2oo

For any other eaements thite-spaies are preserred by deiaSatc naess othertise stateds there is no speiiaa proi-essing ior any oi the ioSr thite-spaie iharaitersc For some eaementss diiierent thite-spaie proiessing may takepaaies ior e.ampae the paragraph eaementc

The X L speiiiiiation aaso reqSires that any oi the ioSr thite-spaie iharaiters that is iontained in an attribSteraaSe is normaaiked to a P CE iharaiterc

One oi the ioaaoting iharaiters may be Ssed to represent aine ends:

● L NE FEED

● C GE ET N

● The seqSenie oi the iharaiters C GE ET N and L NE FEED

Coniorming to the X L speiiiiiations aaa the possibae aine ends are normaaiked to a singae L NE FEED iharaiterc

s a ionseqSenie oi the thite-spaie and EOL proiessing rSaess any C GE ET N iharaiters that areiontained either in the te.t iontent oi an eaement or in an attribSte raaSe mSst be enioded by the iharaiter entity

Chapter O Introduction to OpenOffice.org XML 33

Page 34: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Atx0t;c The same appaies to the OO 1ONT L T B L T ON and L NE FEED iharaiters ii they areiontained in an attribSte raaSec

0cr DoiSment Vaaidation n generaas an X L doiSment may be raaidated or notc i it is raaidateds it mSst matih the DTD e.aitayc n somesitSationss it is not appropriate to raaidate an X L doiSmentc For e.ampae:

● The doiSment tas ireated by a diiierent rersion oi the OpenOiiiiecorg appaiiationc

● The doiSment iontains a iSstom e.tensionc

These types oi doiSments may iontain attribStess attribSte raaSess or eaements that are Snknotn to the appaiiationthat proiesses the iiaec The iortard-iompatibae proiessing rSaes desiribe hot an appaiiation shoSad handae sSiheaements and attribStes to get the most irom the iontents oi the doiSmentc

0crc0 Proiessing the CSrrent VersionVaaidation and iortard-iompatibae proiessing is iontroaaed by the office:version attribStec Erery appaiia-tion has a orII 1ieuT ienI4irersions thiih stores aaa the iniormation iontained in the doiSment tithoSt aosingany iniormation then the doiSment is read againc n appaiiation may aaso be abae to proiess doiSments ireatedSsing other rersionsc For simpaiiitys it is assSmed that these rersions are aaso iorered by the ioniept oi a iSrrentrersionc For erery rersions there is a speiiiii DTD that may be Ssed to raaidate doiSmentsc

shots the reaationships betteen a iSrrent rersion oi a doiSments ionsisting oi a major rersion and a minorrersions and the tay it is proiessed by an appaiiation:

4T iTiIno 99u1.iR T4un19ruo9inIirII 1ionor 1ih I9un19

eir i4jnIiv I9un1ineir tnor 1iu9iii

41t/nI nIA4It-ono4uT ioIno- 99u1.iu9iiii

h4Tut4un1ih4r9

cccthe same as the iSrrentmajor rersionccc

cccand the minor rersion oithe doiSment is aess or thesame as the iSrrent minorrersionccc

Disabaed The doiSment may beraaidateds bSt it does notneed to bec

cccthe same as the iSrrentmajor rersionccc

cccand the minor rersion oithe doiSment is greaterthan the iSrrent minorrersionccc

Enabaed The doiSment mSst not beraaidatedc The onay type oiiniormation that may beaost is iniormation aboStieatSres that are sSpportedby the more reient rersionoi OpenOiiiiecorgc

cccdiiierent irom theiSrrent major rersionccc

cccor ii there is no rersioniontained in the doiSmentat aaaccc

Enabaed The doiSment mSst not beraaidatedc

34 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 35: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Common DoiSment Content

This ihapter desiribes the OpenOiiiiecorg X L iiae iormat ior iontent that is iommon to aaa doiSment typesc tiontains the ioaaoting seitions:

● etadata

● Formatting Properties and tyaes

● Page tyaes and LayoSt

● Data tyaes

● Frames

● Forms and Controas

● Oyperainks

● NSmber Format

● iripts

● Erent Tabaes

● Change Traiking

● OpenOiiiiecorg ppaiiation ettings

c0 etadata etadata is generaa iniormation aboSt a doiSmentc n an OpenOiiiiecorg X L doiSments aaa oi the metadataeaements are iontained in an <office:meta< eaements SsSaaay aoiated at start oi the doiSmentc

35

CHAPTER 2

Page 36: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <office:meta<RrT 9T This eaement iontains metadata eaementsc

ooTi <!ENTITY % meta "(meta:generator?,tc:title?, tc:tescription?,tc:subiect?, meta:initial-creator?,meta:creation-tate?, tc:creator?,tc:tate?, meta:printet-by?,meta:print-tate?, tc:keyworts?,tc:language?, meta:etiting-cycles?,meta:etiting-turation?, meta:hyperlink-bahviour?,meta:auto-reloat?, meta:template?,meta:user-tefineta, meta:tocument-statistic?y<!ELEMENT office:meta %meta;<

c0c0 GeneratorThe <meta:generator< eaement iontains a string that identiiies the appaiiation or tooa that tas Ssed to ireateor aast modiiy the X L doiSmentc

rg int T <meta:generator<RrT 9T i the appaiiation that ireated the doiSment ioSad not proride an identiiier strings the appaiiation

does not e.port this eaementc i another appaiiation modiiies the doiSment and it iannot proride aSniqSe identiiiers it is not aaaoted to e.port the originaa identiiier beaonging to the appaiiation thatireated the doiSmentc

ooT <!ELEMENT meta:generator (tPCtATAy<

c0c TitaeThe <tc:title< eaement speiiiies the titae oi the doiSmentc

rg int T <tc:title<RrT 9T

ooT <!ELEMENT tc:title (tPCtATAy<

c0c4 DesiriptionThe <tc:tescription< eaement iontains a briei desiription oi the doiSmentc

rg int T <tc:tescription<RrT 9T

ooT <!ELEMENT tc:tescription (tPCtATAy<

c0c9 SbjeitThe <tc:subiect< eaement speiiiies the sSbjeit oi the doiSmentc

36 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 37: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tc:subiect<RrT 9T

ooT <!ELEMENT tc:subiect (tPCtATAy<

c0c5 2eytordsThe <meta:keyworts< eaement iontains keytords ior the doiSmentc The metadata ian iontain any nSmberoi <meta:keywort< eaementss eaih eaement speiiiying one keytordc

rg int T <meta:keyworts<RrT 9T This eaement ian iontain one keytordc

ooT <!ELEMENT meta:keyworts (meta:keywortya<<!ELEMENT meta:keywort (tPCtATAy<

c0c6 nitiaa Creator The <meta:initial-creator< eaement speiiiies the name oi the person tho ireated the doiSmentinitiaaayc

rg int T <meta:initial-creator<RrT 9T

ooT <!ELEMENT meta:initial-creator (tPCtATAy<

c0cm CreatorThe <tc:creator< eaement speiiiies the name oi the person tho aast modiiied the doiSmentc

rg int T <tc:creator<RrT 9T

ooT <!ELEMENT tc:creator (tPCtATAy< n 9T The name oi this eaement tas ihosen ior iompatibiaity tith the DSbain Corec

c0cr Printed ByThe <meta:printet-by< eaement speiiiies the name oi the aast person tho printed the doiSmentc

rg int T <meta:printet-by<RrT 9T

ooT <!ELEMENT meta:printet-by (tPCtATAy<

Chapter 2 Common Document Content 37

Page 38: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c0c Creation Date and TimeThe <meta:creation-tate< eaement speiiiies the date and time then the doiSment tas ireated initiaaayc

rg int T <meta:creation-tate<RrT 9T To ioniorm tith O r620s the date and time iormat is YYYY- -DDThh:mm:ssc ee page 9

ior a pointer to O r620c

ooT <!ENTITY % c-tate-time "(tPCtATAy"<<!ELEMENT meta:creation-tate %c-tate-time;<

c0c02 odiiiiation Date and TimeThe <tc:tate< eaement speiiiies the date and time then the doiSment tas aast modiiiedc

rg int T <tc:tate<RrT 9T To ioniorm tith O r620s the date and time iormat is YYYY- -DDThh:mm:ssc ee page 9

ior a pointer to O r620c

ooT <!ELEMENT tc:tate %c-tate-time;< n 9T The name oi this eaement tas ihosen ior iompatibiaity tith the DSbain Corec

c0c00 Print Date and TimeThe <meta:print-tate< eaement speiiiies the date and time then the doiSment tas aast printedc

rg int T <meta:print-tate<RrT 9T To ioniorm tith O r620s the date and time iormat is YYYY- -DDThh:mm:ssc ee page 9

ior a pointer to O r620c

ooT <!ELEMENT meta:print-tate %c-tate-time;<

c0c0 DoiSment TempaateThe <meta:template< eaement iontains a L ior the doiSment tempaate that tas Ssed to ireate the doiS-mentc The L is speiiiied as an XLinkc

rg int T <meta:template<RrT 9T This eaement ioniorms to the XLink peiiiiiationc ee page 9 ior a pointer to this speiiiiiationc

ooT <!ELEMENT meta:template EMPTY<<!ATTLIST meta:template xlink:type (simpley tFIXEt "simple"<<!ATTLIST meta:template xlink:role CtATA tIMPLIEt<<!ATTLIST meta:template xlink:actuate (oneequesty tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <meta:template< eaement are:● Tempaate aoiation

● Tempaate titae

● Tempaate modiiiiation date and time

38 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 39: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Tempaate Loiation n xlink:href attribSte speiiiies the aoiation oi the doiSment tempaatec

rg int T xlink:hrefRrT 9T

ooT <!ATTLIST meta:template xlink:href %url; teEt|IeEt<

Tempaate TitaeThe xlink:title attribSte speiiiies the name oi the doiSment tempaatec

rg int T xlink:titleRrT 9T

ooT <!ATTLIST meta:template xlink:title CtATA tIMPLIEt<

Tempaate odiiiiation Date and TimeThe meta:tate attribSte speiiiies the date and time then the tempaate tas aast modiiieds prior to being Ssed toireate the iSrrent doiSmentc

rg int T meta:tateRrT 9T To ioniorm tith O r620s the date and time iormat is YYYY- -DDThh:mm:ssc ee page 9

ior a pointer to O r620c

ooT <!ENTITY %tate-time "CtATA"<<!ATTLIST meta:template meta:tate %tate-time; tIMPLIEt<

c0c04 Stomatii eaoadThe <meta:auto-reloat< eaement speiiiies thether a doiSment is reaoaded or repaaied by another doiS-ment aiter a iertain period oi time has eaapsedc

rg int T <meta:auto-reloat<RrT 9T

ooT <!ELEMENT meta:auto-reloat EMPTY<

The attribStes that yoS ian assoiiate tith the <meta:auto-reloat< eaement are:● eaoad L

● eaoad deaay

eaoad L i a aoaded doiSment shoSad be repaaied by another doiSment aiter a iertain period oi times the <meta:auto-reloat< eaement is presented as an XLinkc n xlink:href attribSte identiiies the L oi the repaaiementdoiSmentc

Chapter 2 Common Document Content 39

Page 40: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T xlink:hrefRrT 9T

ooT <!ATTLIST meta:auto-reloat xlink:type (simpley tIMPLIEt<<!ATTLIST meta:auto-reloat xlink:show (replacey tIMPLIEt<<!ATTLIST meta:auto-reloat xlink:actuate (onLoaty tIMPLIEt<<!ATTLIST meta:auto-reloat xlink:href %url; tIMPLIEt<

eaoad DeaayThe meta:telay attribSte speiiiies the reaoad deaayc

rg int T meta:telayRrT 9T To ioniorm tith O r620s the iormat oi the raaSe oi this attribSte is PnYnMntTnmnMnSc ee

eition 5c5c4c oi O r620 ior more detaiaed iniormation on this time iormatc ee page 9 ior apointer to O r620c

ooT <!ENTITY % turation "CtATA"<<!ATTLIST meta:auto-reloat meta:telay %turation; "P0S"<

c0c09 Oyperaink BehariorThe <meta:hyperlink-behaviour< eaement speiiiies the deiaSat beharior ior hyperainks in the doiSmentc

rg int T <meta:hyperlink-behaviour<RrT 9T

ooT To be supplied

The attribSte that yoS ian assoiiate tith the <meta:hyperlink-behaviour< eaement is:● Target irame

Target FrameThe meta:target-frame-name attribSte speiiiies the name oi the deiaSat target irame in thiih to dispaay adoiSment reierenied by a hyperainkc

40 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 41: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T meta:target-frame-nameRrT 9T This attribSte ian hare one oi the ioaaoting raaSes:

● _self : The reierenied doiSment repaaies the iontent oi the iSrrent iramec● _blank : The reierenied doiSment is dispaayed in a net iramec● _parent : The reierenied doiSment is dispaayed in the parent irame oi the iSrrent iramec● _top : The reierenied doiSment is dispaayed in the topmost irames that is the irame that

iontains the iSrrent irame as a ihiad or desiendent bSt is not iontained tithin another iramec

● irame name : The reierenied doiSment is dispaayed in the named iramec i the named iramedoes not e.ists a net irame tith that name is ireatedc

To ioniorm tith the XLink peiiiiiations an additionaa xlink:show attribSte is attaihed tothe <meta:hyperlink-behavour< eaementc ee page 9 ior a pointer to the XLink peiiii-iationc i the raaSe oi the meta:target-frame-name attribSte is _blanks the xlink:show attribSte raaSe is newc i the raaSe oi the meta:target-frame-name attribSte isany oi the other raaSe optionss the raaSe oi the xlink:show attribSte is replacec

ooT <!ATTLIST meta:hyperlink-behaviour meta:target-frame-nameCtATA tIMPLIEt<<!ATTLIST meta:hyperlink-behaviour xlink:show (new|replaceytIMPLIEt<

c0c05 LangSageThe <tc:language< eaement speiiiies the deiaSat aangSage oi the doiSmentc

rg int T <tc:language<RrT 9T The manner in thiih the aangSage is represented is simiaar to the aangSage tag desiribed in FC

0m66 s aoiated at http:ssiniocinternetcisicedSsin-notessriisiiaessrii0666ct.t c t ionsists oi a tto-aetterLangSage Code taken irom the O 64 standard optionaaay ioaaoted by a hyphen i-o and a tto-aetter CoSntry Code taken irom the O 4066 standardc ee page 9 ior pointers to O 64 and O 4066c

ooT <!ENTITY % c-language "(tPCtATAy"<<!ELEMENT tc:language %c-language;<

c0c06 Editing CyiaesThe <meta:etiting-cycles< eaement speiiiies the nSmber oi editing iyiaes the doiSment has beenthroSghc

rg int T <meta:etiting-cycles<RrT 9T The raaSe oi this eaement is iniremented erery time the doiSment is saredc The eaement iontains

the nSmber oi editing iyiaes as te.tc

ooT <!ENTITY % c-number "(tPCtATAy"<<!ELEMENT meta:etiting-cycles %c-number;<

Chapter 2 Common Document Content 41

Page 42: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c0c0m Editing DSrationThe <meta:etiting-turation< eaement speiiiies the totaa time spent editing the doiSmentc

rg int T <meta:etiting-turation<RrT 9T The dSration is represented in the manner desiribed in eition 5c5c4c oi O r620c ee page 9

ior a pointer to O r620c

ooT <!ENTITY % c-turation "(tPCtATAy"<<!ELEMENT meta:etiting-turation %c-turation;<

c0c0r ser-deiined etadataThe <meta:user-tefinet< eaement speiiiies any additionaa Sser-deiined metadata ior the doiSmentc

rg int T <meta:user-tefinet<RrT 9T Eaih instanie oi this eaement ian iontain one pieie oi Sser-deiined metadatac The eaement

iontains:

● meta:name attribStes thiih identiiies the name oi the metadata eaementc● The raaSe oi the eaements thiih is the metadatac

ooT <!ELEMENT meta:user-tefinet (tPCtATAy<<!ATTLIST meta:user-tefinet meta:name CtATA teEt|IeEt<

c0c0 DoiSment tatistiisThe <meta:tocument-statistic< eaement speiiiies the statistiis oi the doiSments ior e.ampaes the pageioSnts tord ioSnts and so onc The statistiis are speiiiied as attribStes oi the <meta:tocument-statistic<eaement and the statistiis that are e.ported tith the doiSment depend on the doiSment type and the appaiiationSsed to ireate the doiSmentc

onor 1iyo onor 1ih4u9uo9iAIur 9

Te.t meta:page-countmeta:table-countmeta:traw-countmeta:ole-obiect-countmeta:paragraph-count meta:wort-countmeta:character-countmeta:row-count

preadsheet meta:page-countmeta:table-countmeta:cell-countmeta:obiect-count

Graphii meta:page-countmeta:obiect-count

rg int T <meta:tocument-statistic<RrT 9T

42 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 43: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ELEMENT meta:tocument-statistic EMPTY<<!ATTLIST meta:tocument-statistic meta:page-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:table-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:traw-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:ole-obiect-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:paragraph-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:wort-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:character-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:row-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:cell-count %positiveInteger; tIMPLIEt<<!ATTLIST meta:tocument-statistic meta:obiect-count %positiveInteger; tIMPLIEt<

Chapter 2 Common Document Content 43

Page 44: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c0c 2 ampae etadataE4oT Tih4oT i 4t44iu1i41ito 1teeuo inI.irg itnor 1

<office:meta< <tc:title<Title of the tocument</tc:title< <tc:tescription<tescription/Comment for the tocument</tc:tescription< <meta:initial-creator<|ser Name</meta:initial-creator< <meta:creation-tate<1999-10-1-T12:3::4:</meta:creation-tate< <tc:creator<|ser Name</tc:creator< <tc:tate<1999-10-19T14:1::1:</tc:tate< <meta:printet-by<|ser Name</meta:printet-by< <meta:print-tate<1999-10-20T1::1::1-</meta:print-tate< <tc:subiect<tescription of the tocument</tc:subiect< <meta:turation-time<PT4m10M10S</meta:etiting-turation< <meta:keyworts< <meta:keywort<First keywort</meta:keywort< <meta:keywort<Secont keywort</meta:keywort< <meta:keywort<Thirt keywort</meta:keywort< </meta:keyworts< <meta:template xlink:typep"simple" xlink:hrefp"file:///c|/office42/share/template/german/finance/butget.vor" xlink:titlep"Template name" meta:tatep"1999-10-14T10:11:12" /< <meta:auto-reloat xlink:typep"simple" xlink:hrefp"file:///..." meta:telayp"P:0S" /< <tc:language<te-tE</tc:language< <meta:user-tefinet meta:namep"Fielt 1"<"alue 1</meta:user-tefinet< <meta:user-tefinet meta:namep"Fielt 2"<"alue 2</meta:user-tefinet<</office:meta<

c Formatting Properties and tyaes any objeits in an OpenOiiiiecorg doiSment hare iormatting propertiesc iormatting property iniaSenies therisSaa representation oi an objeit bSt it does not iontribSte to the iontent or strSitSre oi the doiSmentc E.ampaesoi iormatting properties are:

● Font iamiay

● Font sike

● Font ioaor

● Page margins

n an OpenOiiiiecorg X L doiSments iormatting properties are onay stored tithin styaesc This diiiers to theOpenOiiiiecorg Sser interiaies there yoS ian assign iormatting properties to an objeit direitay or yoS ian appay astyae to the objeitc ssigning iormatting properties to an objeit direitay has the same eiieit as assigning anSnnamed styae tith the same properties to that objeitc Thereiores Sser interiaie styaes remain Snihanged ioniep-tSaaay in the OpenOiiiiecorg X L iiae iormats thiae iormatting properties assigned direitay to an objeit areassSmed to be Snnamed styaesc n order to Sse Snnamed styaess they are assigned a name and thereiore beiome aStomatii styaesc

There are tto main reasons ior Ssing styaes to store iormatting properties:

0c YoS ian keep the iormat and aayoSt oi the doiSment separate irom the doiSment iontentc

44 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 45: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c i tto or more objeits hare the same iormatting properties and styaes assigneds the iormatting properties thatare assigned to the objeits direitay ian be represented by a singae aStomatii styae ior aaa objeitsc This saresdisk spaie and aaaots styaes to integrate seamaessay into the oreraaa doiSment styaec

c c0 Formatting Property ets doiSment ian iontain sereraa styae eaementsc To aiqSire a iommon set oi iormatting propertiess yoS Sse a<style:properties< eaement thiih is iniaSded as a ihiad eaement oi any styae eaementc This iontainereaement oiiers tto important adrantagess as ioaaots:

● Formatting properties ian be addressed by C or X L styaesheets regardaess oi the styae typec

● tyaes iontain additionaa iniormation that is not a iormatting propertys ior e.ampaes the styae name and parentstyaec t is good praitiie to separate this type oi iniormationc

rg int T <style:properties<RrT 9T YoS mSst Sse this iontainer eaement to store a iommon set oi iormatting propertiesc

ooT <!ELEMENT style:properties ANY<

c c impae Formatting Properties ost iormatting properties are simpae and ian be represented as attribStes oi the <style:properties<eaementc Dhere possibaes X L attribStes are Ssed to represent iormatting propertiesc n this speiiiiiations thenamespaie preii. fo is Ssed ior X L propertiess that is properties that are part oi the X L-FO namespaiec ngeneraas iormatting properties that iannot be represented by X L properties are part oi the style namespaiec n OpenOiiiiecorgs there are some iormatting properties that yoS iannot speiiiy tithoSt speiiiying one or moreadditionaa iormatting propertiesc i the reqSired properties are missings a deiaSat raaSe is assSmedc This speiiiiia-tion highaights the properties there this aimitation appaiesc

E4oT TihuoT i9yT ioIno Iu 9

This e.ampae shots a iormatting property iontainer that speiiiies an Spper margin oi 0 im as teaa as a aotermargin oi 2c5 im:

<style:properties fo:margin-leftp”1cm” fo:margin-bottomp”.4cm”/<

c c4 Compae. Formatting Properties i a iormatting property is too iompae. to be represented by X L attribStess it is represented by an X Leaementc Eaih sSih property is represented by an eaement type oi its otnc

E4oT TinoT ienI4u1.ioIno Iu 9

This is an e.ampae oi a iormatting property iontainer that speiiiies Spper and aoter margins as teaa as tab stopposition at and 9 imc

Chapter 2 Common Document Content 45

Page 46: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<style:properties< <style:tab-stops< <style:tab-stop style:positionp"2cm"/< <style:tab-stop style:positionp":cm"/< </style:tab-stops<</style:properties<

c c9 tyaes ome styae iamiaies are rery simiaar in strSitSre and ian be represented by the same eaementc For e.ampaes the<style:style< eaement ian represent paragraphs te.ts and irame styaesc

rg int T <style:style<RrT 9T

ooT <!ELEMENT style:style (style:properties?,style:mapay< n T The same eaements ian represent iommon and aStomatii styaes bSt the diiierenie is that they are

iontained in diiierent iontainer eaementsc n e.ieption to this is aStomatiiaaay generated styaesior eaements iontained in the <office:styles< eaementss thiih are marked tith thestyle:automatic attribStec

The attribStes that yoS ian assoiiate tith the <style:style< eaement are:● tyae name

● tyae iamiay

● Stomatii

● Parent styae

● Ne.t styae

● List styae

● aster page name

● Stomatiiaaay Spdate

● Formatting properties

● OStaine aerea nSmbering

tyae NameThe style:name attribSte identiiies the name oi the styaec

46 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 47: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:nameRrT 9T

ooT <!ENTITY % style-name "CtATA"<<!ATTLIST style:style style:name %style-name; tIMPLIEt<

n 9T This attribStes iombined tith the style family attribStes SniqSeay identiiies a styaec YoSiannot hare tto styaes tith the same iamiay and the same namec

For aStomatii styaess a name is generated dSring doiSment e.portc i the doiSment is e.portedsereraa timess yoS iannot assSme that the same name is generated eaih timec

n an X L doiSments the name oi eaih styae is a SniqSe name that is independent oi the aangSageseaeited ior the OpenOiiiiecorg Sser interiaiec These styae names are the same as the names Ssedby the OpenOiiiiecorg P and are SsSaaay the names Ssed ior the Engaish rersion oi the Sserinteriaiec

tyae FamiayThe style:family attribSte identiiies the iamiay oi the styaes ior e.ampaes paragraphs te.ts or iramec

rg int T style:familyRrT 9T

ooT <!ATTLIST style:style style:family (paragraph|text|frameyteEt|IeEt<

StomatiiThe style:automatic attribSte speiiiies thether or not the styae is an aStomatii styaec

rg int T style:automaticRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ATTLIST style:style style:automatic %boolean; tIMPLIEt<

Parent tyaeThe style:parent-style-name attribSte speiiiies the name oi the parent styaec

rg int T style:parent-style-nameRrT 9T i a parent styae is not speiiiieds a deiaSat parent styae deiined by the appaiiation is Ssedc

The parent styae iannot be an aStomatii styae and ii yoS speiiiy a parent styae that is not deiinedsan error oiiSrsc

ooT <!ATTLIST style:style style:parent-style-name %style-name;tIMPLIEt<

Ne.t tyaeThe style:next-style-name attribSte speiiiies the styae to Ssed ior the ne.t paragraph ii a paragraphbreak is inserted in the Sser interiaiec

Chapter 2 Common Document Content 47

Page 48: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:next-style-nameRrT 9T i yoS do not iniaSde this attribStes by deiaSat the iSrrent styae is Ssed as the ne.t styaec

ooT <!ATTLIST style:style style:next-style-name %style-name;tIMPLIEt<

n T This ioniept is onay sSpported by the paragraph styae iamiayc

List tyae paragraph styae ian hare an assoiiated aist styaec This appaies to aStomatii and iommon styaesc

rg int T style:list-style-nameRrT 9T i yoS speiiiy a aist styaes it is only appaied to paragraphs that are iontained in a aists there the aist

does not speiiiy a aist styae itseais and the aist has no aist styae speiiiiiation ior any oi its parentsc

ooT <!ATTLIST style:style style:list-style-name %style-name;tIMPLIEt<

aster Page Name paragraph or tabae styae ian hare an assoiiated style:master-page-name attribStec This appaies to aSto-matii and iommon styaesc i this attribSte is assoiiated tith a styaes a page break is inserted then the styae isappaied and the speiiiied master page is appaied to the preieding pagec

rg int T style:master-page-nameRrT 9T This attribSte is ignored ii it is assoiiated tith a paragraph styae that is appaied to a paragraph

tithin a tabaec

ooT <!ATTLIST style:style style:master-page-name %style-name;tIMPLIEt<

Stomatiiaaay pdateThe style:auto-uptate attribSte determines thether or not styaes are aStomatiiaaay Spdated then theiormatting properties oi an objeit that has the styae assigned to it are ihangedc For e.ampaes ii yoS hare a para-graph styae that iontains a iormatting property speiiiying that paragraph te.t is ientereds and this paragraph styaeis appaied to a paragraphc i yoS manSaaay ihange the iormatting oi the paragraph te.t to be right-aaigned and theraaSe oi the style:auto-uptate is true, the paragraph styae is aStomatiiaaay Spdated to reiaeit the netparagraph iormatting and erery paragraph that Sses the paragraph styae is aaso modiiied to right-aaign the para-graph te.tc

rg int T style:auto-uptateRrT 9T This attribSte ian hare a raaSe oi true or falsec ooT <!ATTLIST style:style style:auto-uptate %boolean; "false"<oT 14un1Tuu4un1T

This ieatSre is onay sSpported in OpenOiiiiecorg Driter doiSmentsc

Formatting Properties i a styae has iormatting attribStes assigneds the styae eaement iontains a iormatting property iontainer eaement

48 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 49: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

iaaaed <style:properties<c ee eition c c0 ior detaiaed iniormation aboSt this eaementc

OStaine NSmbering Lerea ee eition 4c9c ior iniormation on the oStaine nSmbering aerea ior a styaec

ampae tyaeE4oT Tito 1teeuo inI.irg iI oI 9 14un1ineir iE intypio4I4.I4ori9yT i

<style:style style:namep"Text boty" style:familyp"paragraph" style:parent-style-namep"Stantart" style:pool-itp"20:9"< <style:properties fo:margin-topp"0cm" fo:margin-bottomp".21cm"/<</style:style<

c c5 tyae appings n TiThe eaements and attribStes desiribed in this seition onay appay to ionditionaa styaesc

The <style:map< eaement speiiiies the mapping to another styaes ii iertain ionditions e.istc

rg int T <style:map<RrT 9T This eaement is iontained in the styae eaement oi a ionditionaa styaec There is one eaement ior

erery iondition that the styae Ssesc

ooT <!ELEMENT style:map EMPTY<oT 14un1Tuu4un1T

Conditionaa styaes are onay sSpported by OpenOiiiiecorg Driter paragraph styaesc

The attribStes that yoS ian assoiiate tith the <style:map< eaement are:● Condition

● ppaied styae

● Base ieaa address

ConditionThe style:contition attribSte speiiiies the iondition in thiih a styae map shoSad be appaiedc

Chapter 2 Common Document Content 49

Page 50: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:contitionRrT 9T The raaSe oi this attribSte is a Booaean e.pressionc The synta. oi the e.pression is simiaar to the

XPath synta.c The ioaaoting ionditions are raaid ior paragraph styaes:

• list-level(ypls there l is a nSmber betteen 0 and 02• outline-level(ypl, there l is a nSmber betteen 0 and 02• table(y and table-heater(y• section(y• heater(y and footer(y• footnote(y and entnote(y• Contition ::p TrueFunction | TrueContition

➢ TrueFunction ::p is-true-formula(Formulay | cell-content-is-between("alue, "aluey | cell-content-is-not-between("alue, "aluey

➢ TrueContition ::p Expression• Expression ::p GetFunction Operator "alue

➢ GetFunction ::p cell-content(y➢ Operator ::p '<' | '<' | '<p' | '<p' | 'p' | '!p'➢ "alue ::p Number"alue | String | Formula n T

Number"alue is a thoae or deiimaa nSmberc String iomprises one or more iharaiters sSrroSnded by qSotation marksc Formula is a iormSaa isee 9crc0o tithoSt the eqSaas i o sign at the beginningcYoS mSst iniaSde an OperatorcThe nSmber in a Number"alue or Formula iannot iontain iomma separators iornSmbers oi 0222 or greaterc

The ionditions that appay ior diiierent types oi styaes may diiierc

ooT <!ATTLIST style:map style:contition CtATA teEt|IeEt< n 9T i an appaiiation deteits a iondition that it does not reiognikes it mSst ignore the entire <style:

map< eaementc

ppaied tyaeThe style:apply-style-name attribSte speiiiies the styae to appay then the iondition speiiiied by thestyle:contition attribSte is truec

rg int T style:apply-style-nameRrT 9T i the reierenied styae is Sndeiined or is an aStomatii styaes an error oiiSrsc

ooT <!ATTLIST style:map style:apply-style-name %style-nameteEt|IeEt<

50 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 51: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Base Ceaa ddressThe style:base-cell-attress attribSte speiiiies the base ieaa ior reaatire addresses in iormSaasc

rg int T style:base-cell-attressRrT 9T This attribSte onay appaies to ieaa styaes there the iondition iontains a iormSaac

The raaSe oi this attribSte mSst be an absoaSte ieaa address tith a tabae namec

ooT <!ATTLIST style:map style:base-cell-attress %cell-attress;tIMPLIEt<

ampae tyae appingE4oT TihyT i4oou1.

<style:style style:namep"Text boty" style:familyp"paragraph" style:parent-style-namep"Stantart" style:next-style-namep"Text boty"< <style:properties fo:margin-topp"0cm" fo:margin-bottomp".21cm"/< <style:map style:contitionp"footnote" style:apply-style-namep"footnote"/< <style:map style:contitionp"heating(1y" style:apply-style-namep"meating 1"/< <style:map style:contitionp"heating(2y" style:apply-style-namep"meating 2"/<</style:style<

c4 Page tyaes and LayoStThe styae and aayoSt oi the pages in a doiSment is determined by:

● Page asters

● aster Pages

o4. i49 I desiribes the physiiaa properties or geometry oi a pages ior e.ampaes page sikes marginss headerheights and iooter heightc

49 Iio4. is a tempaate ior pages in a doiSmentc t iontains a reierenie to a page master thiih speiiiies thephysiiaa properties oi the page and ian aaso iontain statii iontent that is dispaayed on aaa pages in the doiSmentthat Sse the master pagec E.ampaes oi statii iontent are headerss iooterss or baikgroSnd graphiisc

i a te.t or spreadsheet doiSment is dispaayed in a paged aayoSts the master pages are instantiated to generate aseqSenie oi pages iontaining the doiSment iontentc Dhen a master page is instantiateds an empty page is gener-ated tith the properties oi the page master and the statii iontent oi the master pagec The body oi the page is theniiaaed tith iontentc i mSatipae pages in a doiSment Sse the same master pages the master page ian be instantiatedsereraa times tithin the doiSmentc

n te.t and spreadsheet doiSmentss yoS ian assign a master page to paragraph and tabae styaes Ssing a style:master-page-name attribStec Eaih time the paragraph or tabae styae is appaied to te.ts a page break is insertedbeiore the paragraph or tabaec The page that starts at the page break position Sses the speiiiied master pagec

n dratings and presentationss yoS ian assign master pages to drating pages Ssing a style:parent-style-name attribStec n T The OpenOiiiiecorg X L paging methodoaogy diiiers signiiiiantay irom the methodoaogy Ssed in X Lc nX Ls headers and iooters are iontained tithin page seqSenies that aaso iontain the doiSment iontentc The

Chapter 2 Common Document Content 51

Page 52: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

iontent oi headers and iooters ian be ihanged or omitted tithoSt aiieiting the doiSment iontentc n OpenOiiiiecorg X Ls headers and iooters are iontained in page styaesc

c4c0 Page asterThe <style:page-master< eaement speiiiies the physiiaa properties oi a pagec

rg int T <style:page-master<RrT 9T This eaement iontains a <style:properties< eaement thiih speiiiies the iormatting proper-

ties oi the page and three optionaa eaements that speiiiy the properties oi headerss iooterss and aiootnote seitionc

ooT <!ELEMENT style:page-master (style:properties, style:heater-style?,style:footer-style?, style:footnote-layout?y<

The attribStes that yoS ian assoiiate tith the <style:page-master< eaement are:● Name

● Page Ssage

● Page sike

● Page nSmber iormat

● Paper tray

● Print orientation

● argins

● Border

● Border aine tidth

● Padding

● hadot

● BaikgroSnd

● CoaSmns

● egister-trSth

● Print

● Print page order

● First page nSmber

● iaae

● Tabae ientering

● a.imSm iootnote height

● Footnote separator

52 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 53: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

NameThe style:name attribSte speiiiies the name oi the page masterc

rg int T style:name RrT 9T

ooT <!ATTLIST style:page-master style:name %styleName teEt|IeEt<

Page sageThe style:page-usage attribSte speiiiies the type oi pages that the page master shoSad generatec

rg int T style:page-usageRrT 9T The raaSe oi this attribSte ian be:

● all l aaa pages are the same● left l aaa pages are aeit pages ● right l aaa pages are right pages● mirror l aeit and right pages are the same e.iept that the margins are mirrored

ooT <!ATTLIST style:page-master style:page-usage (all|left|right|mirrorety "all"<

n T X L sSpports aeit and right pages bSt Sses a diiierent modea to OpenOiiiiecorg X Lc

Page ikeThe fo:page-witth and fo:page-height attribStes speiiiy the physiiaa sike oi the pagec

rg int T fo:page-witthfo:page-height

RrT 9T The fo:page-witth attribSte mSst iorrespond to the orientation oi the pagec For e.ampaes iia page is printed in portraits the fo:page-witth attribSte speiiiies the tidth oi the shorterpage sidec i the page is printed in aandsiapes the fo:page-witth attribSte speiiiies the tidthoi the aonger page sidec

ooT <!ATTLIST style:properties fo:page-witth %length; tIMPLIEt<<!ATTLIST style:properties fo:page-height %length; tIMPLIEt<

n T X L sSpports some more raaSe that are not sSpported by OpenOiiiiecorg X Lc

Page NSmber FormatYoS ian speiiiy a deiaSat nSmber iormat ior page styaess thiih is Ssed to dispaay page nSmbers tithin headersand iootersc ee eition c ior detaiaed iniormation on nSmber iormat attribStesc

Chapter 2 Common Document Content 53

Page 54: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:num-formatstyle:num-letter-sync

RrT 9T The style:num-format attribSte ian be emptycooT <!ATTLIST style:properties style:num-format CtATA teEt|IeEt<

<!ATTLIST style:properties style:num-letter-sync %boolean;"false"<

Paper TrayThe style:paper-tray-name attribSte speiiiies the paper tray to Sse then printing the doiSmentc Thenames assigned to the printer trays depend on the printerc

rg int T style:paper-tray-nameRrT 9T i the raaSe oi this attribSte is tefaults the deiaSat tray speiiiied in the printer ioniigSration

settings is Ssedc

ooT <!ATTLIST style:properties style:paper-tray-name CtATAtIMPLIEt<

Print OrientationThe style:print-orientation attribSte speiiiies the orientation oi the printed pagec

rg int T style:print-orientationRrT 9T The raaSe oi this attribSte ian be portrait or lantscapecooT <!ATTLIST style:properties style:print-orientation (portrait|

lantscapey tIMPLIEt<

arginsThe margins attribStes speiiiy the sike oi the page marginsc ee Taeameapi soemattinm Teopeeties in Chapter 4 oithis manSaa ior detaiaed iniormation on these attribStesc

rg int T fo:margin-topfo:margin-bottomfo:margin-leftfo:margin-right

BorderThe border attribStes speiiiy the border properties oi the pagec ee Taeameapi soemattinm Teopeeties in Chapter4 oi this manSaa ior detaiaed iniormation on these attribStesc

rg int T fo:borterfo:borter-topfo:borter-bottomfo:borter-leftfo:borter-right

n T X L does not hare border properties ior page mastersc

54 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 55: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Border Line Didth i a page iontains borderss the border aine tidth attribStes speiiiy the properties oi the border aines oi the pagec ee Taeameapi soemattinm Teopeeties in Chapter 4 oi this manSaa ior detaiaed iniormation on these attribStesc

rg int T style:borter-line-witthstyle:borter-line-witth-topstyle:borter-line-witth-bottomstyle:borter-line-witth-leftstyle:borter-line-witth-right

PaddingThe padding attribStes speiiiy the padding properties oi the pagec ee Taeameapi soemattinm Teopeeties inChapter 4 oi this manSaa ior detaiaed iniormation on these attribStesc

rg int T fo:pattingfo:patting-topfo:patting-bottomfo:patting-leftfo:patting-right

hadot ee Taeameapi soemattinm Teopeeties in Chapter 4 oi this manSaa ior detaiaed iniormation on this attribStec

rg int T style:shatow

BaikgroSndThe baikgroSnd attribStes speiiiy the baikgroSnd properties oi the pagec ee Taeameapi soemattinm Teopeetiesin Chapter 4 oi this manSaa ior detaiaed iniormation on these attribStesc

rg int T fo:backgrount-color and <style:backgrount-image< n T X L does not hare baikgroSnd properties ior page mastersc

CoaSmnsThe <style:columns< eaement speiiiies ii the page iontains ioaSmnsc ee Taeameapi soemattinm Teopeetiesin Chapter 4 oi this manSaa ior detaiaed iniormation on this attribStec

rg int T <style:columns<

egister-trSthThe style:register-truth-ref-style-name attribSte reierenies a paragraph styaec The aine distaniespeiiiied oi the paragraph styae is Ssed as the reierenie aine distanie ior aaa paragraphs that hare the register-trSthieatSre enabaedc

Chapter 2 Common Document Content 55

Page 56: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:register-truth-ref-style-nameRrT 9T

ooT <!ATTLIST style:properties style:register-truth-ref-style-name%styleName tIMPLEt<

PrintThe style:print attribSte speiiiies thiih iomponents in a spreadsheet doiSment to printc

rg int T style:printRrT 9T The raaSe oi this attribSte is a aist oi the ioaaoting raaSes separated by baanks:

● Oeaders● Grid● nnotations● Objeits igraphiis or OLE Objeitso● Charts● Dratings● FormSaas● 1ero raaSes

ooT <!ATTLIST style:properties style:print CtATA tIMPLEt<

Print Page OrderThe style:print-page-orter attribSte speiiiies the order in thiih data in a spreadsheet is nSmbered andprinted then the data does not iit on one printed pagec

rg int T style:print-page-orterRrT 9T The raaSe oi this attribSte ian be ttb or ltrc se ttb to print the data rertiiaaay irom the

aeit ioaSmn to the bottom rot oi the sheetc se ltr to print the data horikontaaay irom thetop rot to the right ioaSmn oi the sheetc

ooT <!ATTLIST style:properties style:print-page-orter ("ttb" |"ltr"y tIMPLEt<

First Page NSmberThe style:first-page-number attribSte aaaots yoS to speiiiy a nSmber other than 0 ior the iirst pagec

rg int T style:first-page-numberRrT 9T The raaSe oi this attribSte ian be an integer or continuec i the raaSe is continues the

page nSmber is the aast page nSmber iniremented by 0c

ooT <!ATTLIST style:properties style:first-page-number %positiveInteger; tIMPLEt<

iaaeThe siaae attribStes speiiiy hot the appaiiation shoSad siaae the doiSment ior printingc

56 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 57: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:scale-tostyle:scale-to-pages

RrT 9T YoS ian Sse one the abore attribStes to speiiiy hot to siaae the doiSment ior printingc inone oi these attribStes are presents the doiSment is not siaaedc

i yoS Sse the style:scale-to attribStes the doiSment is siaaed to a perientage raaSec022 perient is the normaa raaSec YoS ian enaarge or redSie aaa printed pages Ssing thisattribStec

i yoS Sse the style:scale-to-pages attribStes yoS ian speiiiy the nSmber oi pageson thiih the the doiSment shoSad be printedc The doiSment is then siaaed to iit the deiinednSmber oi pagesc

ooT <!ATTLIST style:properties style:scale-to %percentage;tIMPLEt<<!ATTLIST style:properties style:scale-to-pages %positiveInteger; tIMPLEt<

Tabae CenteringThe style:table-centering attribSte speiiiies hot the appaiiation shoSad ienter tabaes on the pagec ThisattribSte onay appaies to spreadsheet doiSmentsc

rg int T style:table-centeringRrT 9T The raaSe oi this attribSte ian be horivontals verticals boths or nonec

i this attribSte is not presents the tabae is not ientredc

ooT <!ATTLIST style:properties style:table-centering (horivontal,vertical, both, noney tIMPLIEt<

a.imSm Footnote OeightThe style:footnote-max-height attribSte speiiiies the ma.imSm amoSnt oi spaie on the page that aiootnote ian oiiSpyc The raaSe oi the attribSte is a aengths thiih determines the ma.imSm height oi the iootnoteareac

rg int T style:footnote-max-heightRrT 9T i the raaSe oi this attribSte is set to 0s there is no aimit to the amoSnt oi spaie that the ioot-

note ian oiiSpyc

ooT <!ATTLIST style:properties style:footnote-max-height %length;tIMPLIEt<

Footnote eparatorThe <style:footnote-sep< eaement desiribes the aine that separates the iootnote area irom the body te.tarea on a pagec

The <style:footnote-sep< eaement sSpports the ioaaoting attribStes:● style:witth l speiiiies the tidth or thiikness oi the ainec● style:rel-witth l speiiiies the aength oi the aine as a perientage oi the body te.t areac

Chapter 2 Common Document Content 57

Page 58: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● style:color l speiiiies the ioaor oi the ainec● style:atiustment l speiiiies hot the aine is aaigned on the pages that is aeits rights or ienterc● style:tistance-before-sep l speiiiies the spaie betteen the body te.t area and the iootnote ainec● style:tistance-after-sep l speiiiies the spaie betteen the iootnote aine and the iootnote te.tc

rg int T <style:footnote-sep<RrT 9T

ooT <!ELEMENT style:footnote-sep EMPTY<<!ATTLIST style:footnote-sep style:witth %length; tIMPLIEt<<!ATTLIST style:footnote-sep style:rel-witth %percentage;tIMPLIEt<<!ATTLIST style:footnote-sep style:color %color; tIMPLIEt<<!ATTLIST style:footnote-sep style:atiustment (left|center|righty "left"<<!ATTLIST style:footnote-sep style:tistance-before-sep %length; tIMPLIEt<<!ATTLIST style:footnote-sep style:tistance-after-sep %length;tIMPLIEt<

c4c aster PagesThis seition oi the manSaa desiribes the master page ieatSres that are sSpported by te.t and spreadsheets doiS-mentsc The master pages Ssed in dratings and presentations hare some additionaa ieatSres that are desiribed inseition c

aster pages are iontained tithin a master styae eaementc

rg int T <style:master-page< RrT 9T n te.t and spreadsheet doiSmentss this eaement iontains the iontent oi headers and iootersc n

dratings and presentations it iontains baikgroSnd shapesc

ooT <!ELEMENT style:master-page ( (style:heater, style:heater-left?y?, (style:footer, style:footer-left?y?, style:stylea, (%shapes;ya, presentation:notes? y<

The attribStes that yoS ian assoiiate tith the <style:master-page< attribSte are: ● Page name

● Page master

● Ne.t styae name

Page NameThe styles:name attribSte speiiiies the name oi the master pagec Eaih master page is reierenied Ssing itspage namec

58 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 59: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti styles:nameRrT 9Ti page name is reqSired ior eaih master page and the name mSst be SniqSec

ooT <!ATTLIST style:master-page style:name %styleName;teEt|IeEt<

Page asterThe style:page-master-name attribSte speiiiies page master thiih iontains the sikes borders and orienta-tion oi the master pagec

rg int Ti style:page-master-nameRrT 9Ti This attribSte is reqSired ior eaih master pagec

ooT <!ATTLIST style:master-page style:page-master-name %styleName; teEt|IeEt<

Ne.t tyae NameThe style:next-style-name attribSte ian be Ssed to speiiiy the master page Ssed ior the ne.t pages iithere is a ne.t pagec

rg int T style:next-style-name RrT 9T i the ne.t styae name is not speiiiieds the iSrrent master page is Ssed ior the ne.t pagec

ooT <!ATTLIST style:master-page style:next-style-name %styleNametIMPLIEt<

n T This attribSte repaaies the X L page-seqSenie-master ionieptc

c4c4 Oeaders and FootersThe header and iooter eaements speiiiy the iontent oi headers and iootersc The <style:heater< and<style:footer< eaements iontain the iontent oi headers and iootersc The tto additionaa eaementss <style:heater-left< and <style:footer-left<s ian be Ssed to speiiiy diiierent iontent ior aeit pagess iiappropriatec i the aatter tto eaements are missings the iontent oi the headers and iooters on aeit and right pages isthe samec

These eaements are iontained tithin a master page eaementc

Chapter 2 Common Document Content 59

Page 60: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <style:heater<<style:footer< <style:heater-left<<style:footer-left<

RrT 9T i the style:page-usage attribSte assoiiated tith the page master has a raaSe oi all ormirroret and there are no <style:heater-left< or <style:footer-left<eaementss the header and iooter iontent is the same ior aeit and right pagesc

i the style:page-usage attribSte has a raaSe oi left or rights the <style:heater-left< or <style:footer-left< eaements are ignoredcThe iontent oi headers and iooters is either:

● tandard te.t iontents ior e.ampae paragraphss tabaess or aists

● seqSenie oi any oi the ioaaoting eaements; <style:region-left<s <style:region-center< and <style:region-reight<

● Emptys thiih stitihes oii the dispaay oi aaa headers or iootersc t is not possibae to stitih oiithe dispaay oi headers or iooters ior aeit pages onayc

ooT <!ENTITY %ht-ft-content "( %text; | (style:region-left?|style:region-center?| style:region-right?y y"<<!ELEMENT style:heater %ht-ft-content;<<!ELEMENT style:footer %ht-ft-content;<<!ELEMENT style:heater-left %ht-ft-content;<<!ELEMENT style:footer-left %ht-ft-content;<

oT 14un1Tuu4un1T

OpenOiiiiecorg Driter onay sSpports headers and iooters that iontain normaa te.ts thiaeOpenOiiiiecorg Caai onay sSpports headers and iooters that Sse the region eaementsc

c4c9 Oeader and Footer tyaesThe header and iooter styae eaements speiiiy the iormatting properties ior headers and iooters on a pagec

rg int T <style:heater-style< and <style:footer-style< RrT 9T These eaements mSst be iontained tithin a page master eaementc

ooT <!ELEMENT style:heater-style (style:properties?y<<!ELEMENT style:footer-style (style:properties?y<

The attribStes that yoS ian assoiiate tith the header and iooter eaements are iontained tithin a <style:prop-erties< eaementc These attribStes are:● Fi.ed and minimSm heights - see eition c6c00

● Leit and right margins - see eition c6c00

● Bottom iior headers onayo and top iior iooters onayo margins - see eition c6c00

● Borders - see eition 4c00c m and 4c00c r

● hadots l see e ition 4c00c42

● BaikgroSnds l see eition 4c00c 5 and 4c00c 6

60 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 61: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c4c5 Footnote LayoStThe <style:footnote-layout< eaement speiiiies the aayoSt ior iootnotes that are iontained on a pagec

rg int T <style:footnote-layout<RrT 9T This eaement mSst be iontained in the page master eaementc t iontains a <style:proper-

ties< eaement that speiiiies the ma.imSm height and spaiing oi the iootnote area and a<style:footnote-sep< eaement that speiiiies the separator aine betteen the page body areaand the iootnote areac

i this eaement is not presents a deiaSat iootnote aayoSt is Ssedc

ooT <!ELEMENT style:footnote-layout (style:properties?,style:footnote-sep?y<

The attribStes that yoS ian assoiiate tith the <style:footnote-layout< eaement in the <style:prop-erties< eaement are:● a.imSm height

● paiing

a.imSm OeightThe style:max-height attribSte speiiiies the ma.imSm height oi the iootnote areac

rg int T style:max-heightRrT 9T This attribSte sSpports a raaSe oi no-limits thiih aaaots the iootnote area to inirease Sntia it

eqSaas the height oi the page heightc

ooT <!ENTITY % lengthOrNoLimit "CtATA"<<!ATTLIST style:properties style:max-height %lengthOrNoLimittIMPLEt<

paiingThe spaiing attribStes speiiiy the distanies beiore and aiter the aine that separates the iootnote area irom the pagebody areac

rg int T style:tistance-before-sepstyle:tistance-after-sep

RrT 9T These attribStes are raaid eren ii there is no iootnote separator aine speiiiiedc

ooT <!ATTLIST style:properties style:tistance-before-sep %lengthtIMPLEt<<!ATTLIST style:properties style:tistance-after-sep %lengthtIMPLEt<

c4c6 Footnote eparator LineThe <style:footnote-sep< eaement speiiiies the separator aine to Sse betteen the page body area and theiootnote areac

Chapter 2 Common Document Content 61

Page 62: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <style:footnote-sep<RrT 9T This eaement ian be iontained in a <style:footnote-layout< eaementcooT <!ELEMENT style:footnote-sep EMPTY<

The attribStes that yoS ian assoiiate tith the <style:footnote-sep< eaement are:● Line tidth

● Line aength

● Oorikontaa aine aaignment

Line DidthThe style:witth attribSte speiiiies the tidth oi the separator ainec

rg int T style:witthRrT 9T

ooT <!ATTLIST style:footnote-sep style:witth %length; teEt|IeEt<

Line LengthThe style:length attribSte speiiiies the aength oi the separator ainec

rg int T style:lengthRrT 9T The raaSe oi this attribSte is a perientage that reaates to the tidth oi the page e.iaSding the page

marginsc

ooT <!ATTLIST style:footnote-sep style:length %percentage; "100%"<

Oorikontaa Line aignmentThe style:horivontal-align attribSte speiiiies hot to horikontaaay aaign a aine that is aess than 022laongc

rg int T style:horivontal-alignRrT 9T The raaSe oi this attribSte ian be lefts centers or rightooT <!ATTLIST style:footnote-sep style:horivontal-align (left|

center|righty "left"<

c9 Font Deiaarations n X L and C s a iont is desiribed by its iont iamiayc The OpenOiiiiecorg X L iiae iormat aaso Sses an addi-tionaa set oi attribStes to desiribe a iontc These additionaa attribStes are eraaSated ii the iont speiiiied in the iontiamiay is not araiaabaes enabaing the appaiiation to ihoose an aaternatire iontc The additionaa attribStes are:

● tyae name

● Generii iamiay

62 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 63: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Font pitih

● Charaiter set

i a iont is reierenieds ior e.ampae in a styaes the additionaa iont attribStes ian be either speiiiied tith the iontiamiay or Ssing the <office:font-tecls< eaementc iont deiaaration assigns a SniqSe name to a set oi iontattribStesc Font deiaarations heap to redSie iiae sikesc

rg int Ti <office:font-tecls<RrT 9Ti This eaement is a iontainer ior aaa iont deiaarationsc t mSst appear beiore any styae

iontainer eaementc

ooT <!ELEMENT office:font-tecls (style:font-teclya<

c9c0 Font Deiaaration iont deiaaration assigns a set oi iont iormatting properties to a SniqSe iont name

rg int Ti <style:font-tecl<RrT 9Ti

ooT <!ELEMENT style:font-tecl EMPTY<

The attribStes that yoS assoiiate tith a <style:font-tecl< eaement are:● Font name

● Font properties

Font NameThe style:name attribSte speiiiies the SniqSe name oi the iontc

rg int Ti style:nameRrT 9Ti

ooT <!ENTITY % fontName "CtATA"<!ATTLIST style:font-tecl style:name %fontName; teEt|IeEt<

Font PropertiesThe ioaaoting iont properties ian be Ssed to speiiiy a iont:

● Font iamiay

● Font styae name

● Generii iont iamiay

● Font pitih

● Font iharset

The iont iamiay is reqSired ior erery iont deiaarationc aa other properties are optionaac ee Teet soemattinmTeopeeties in Chapter 4 oi this manSaa ior more iniormation on these iont propertiesc

Chapter 2 Common Document Content 63

Page 64: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti fo:font-familystyle:font-style-namestyle:font-family-genericstyle:font-pitchstyle:font-charset

RrT 9Ti

ooT <!ATTLIST style:font-tecl fo:font-family %string; teEt|IeEt<<!ATTLIST style:font-tecl style:font-style-name %string;tIMPLIEt<<!ENTITY % fontFamilyGeneric "(roman|swiss|motern|tecorative|script|systemy"<<!ATTLIST style:font-tecl style:font-family-generic %fontFamilyGeneric; tIMPLIEt<<!ENTITY % fontPitch "(fixet|variabley"<<!ATTLIST style:font-tecl style:font-pitch %fontPitch;tIMPLIEt<<!ATTLIST style:font-tecl style:font-charset CtATA tIMPLIEt<

c5 Data tyaesData styaes desiribe hot to dispaay diiierent types oi datas ior e.ampaes a nSmber or a datec The eaements andattribStes that are Ssed to represent data styaes are iontained in the namespaie http://openoffice.org/2000 /tatastyle c The preii. number denotes the data styaes namespaiecThis seition desiribes the OpenOiiiiecorg X L representation oi the ioaaoting data styaes:

● NSmber styae

● CSrreniy styae

● Perientage styae

● Date styae

● Booaean styae

● Te.t styae

c5c0 NSmber tyaeThe <number:number-style< eaement desiribes the styae ior deiimaa nSmbersc

64 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 65: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <number:number-style<RrT 9T This eaement ian iontain one oi the ioaaoting eaements:

● <number:number<● <number:scientific-number<● <number:fraction<These eaements desiribe the dispaay iormat oi the nSmberc The eaements ian be preieded orioaaoted by <number:text< eaementss thiih iontain any additionaa te.t to be dispaayedbeiore or aiter the nSmberc

n additions this eaement ian iontain a <style:properties< eaement and a <style:map< eaementc

ooT <!ENTITY % any-number "( number:number | number:scientific-number | number:fraction y"<<!ENTITY % number-style-content "( number:text |(number:text?,%any-number;,number:text?y y"<<!ELEMENT number:number-style ( style:properties?, %number-style-content;, style:map? y<

YoS ian Sse the ioaaoting eaements tith the <number:number-style< eaement:● NSmber

● iientiiii nSmber

● Fraition

NSmberThe <number:number< eaement speiiiies the dispaay properties ior a deiimaa nSmberc

rg int T <number:number<RrT 9T This eaement is iontained in the <number:number-style< eaementc The <number:

number< eaement ian iontain mSatipae <number:embettet-text< eaementscooT <!ELEMENT number:number ( number:embettet-texta y<

ee eition c5c02 ior iniormation aboSt the attribStes that yoS ian assoiiate tith the nSmber styae eaementsc

Embedded Te.tThe <number:embettet-text< eaement speiiiies te.t that is dispaayed at one speiiiii position tithin anSmberc This eaement is diiierent to a groSping separators thiih appears sereraa times tithin a nSmberc

rg int T <number:embettet-text<RrT 9T This eaement is iontained in the <number:number< eaementc The <number:number<

eaement ian iontain mSatipae oiiSrrenies oi the <number:embettet-text< eaement todesiribe te.t at diiierent positions in the nSmberc

ooT <!ELEMENT number:embettet-text (tPCtATAy<

The number:position attribSte speiiiies the position there the te.t appearscn9uun1iAIur

Chapter 2 Common Document Content 65

Page 66: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T number:positionRrT 9T The position is ioSnted irom right to aeits irom beiore the deiimaa point ii one e.istss or ease irom

the end oi the nSmberc For e.ampaes position nSmber 0 indiiates that the te.t is inserted beiorethe aast digitc Position nSmber indiiates that the te.t is inserted beiore the seiond aast digits andso onc

ooT <!ATTLIST number:embettet-text number:position %integer;teEt|IeEt<

iientiiii NSmberThe <number:scientific-number< eaement speiiiies the dispaay properties ior a nSmber styae that shoSadbe dispaayed in siientiiii iormatc

rg int T <number:scientific-number<RrT 9T This eaement is iontained in the <number:number-style< eaementcooT <!ELEMENT number:scientific-number EMPTY<

ee eition c5c02 ior iniormation on the attribStes that yoS ian assoiiate tith the nSmber styae eaementsc

FraitionThe <number:fraction< eaement speiiiies the dispaay properties ior a nSmber styae that shoSad be dispaayedas a iraitionc

rg int T <number:fraction<RrT 9T This eaement is iontained in the <number:number-style< eaementcooT <!ELEMENT number:fraction EMPTY<

ee eition c5c02 ior iniormation on the attribStes that yoS ian assoiiate tith the nSmber styae eaementsc

c5c CSrreniy tyaeThe <number:currency-style< eaement desiribes the styae ior iSrreniy raaSesc

66 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 67: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <number:currency-style<RrT 9T This eaement ian iontain one <number:number< eaement and one <number:currency-

symbol< eaementc t ian aaso iontain <number:text< eaements s thiih dispaay additionaate.ts bSt it iannot iontain tto oi these eaements ionseiStireayc

n additions this eaement ian iontain a <style:properties< eaement and a <style:map< eaementc

ooT <!ENTITY % currency-symbol-ant-text "number:currency-symbol,number:text?"<<!ENTITY % number-ant-text "number:number,number:text?"<<!ENTITY % currency-style-content "( number:text |(number:text?,%number-ant-text;,(currency-symbol-ant-texty?y |(number:text?,%currency-symbol-ant-text;,(number-ant-texty?yy"<<!ELEMENT number:currency-style ( style:properties?, %currency-style-content;, style:map? y<

YoS ian Sse the ioaaoting eaements tith the <number:currency-style< eaement:● NSmbers see eition c5c0c

● CSrreniy symboa

CSrreniy ymboaThe <number:currency-symbol< eaement determines thether or not a iSrreniy symboa is dispaayed in aiSrreniy styaec

rg int T <number:currency-symbol<RrT 9T The iontent oi this eaement is the te.t that is dispaayed as the iSrreniy symboac i the eaement is

empty or iontains thite spaie iharaiters onays the deiaSat iSrreniy symboa ior the iSrreniy styaeor the aangSage and ioSntry oi the iSrreniy styae is dispaayedc

This eaement is iontained in the <number:currency-style< eaementc ooT <!ELEMENT number:currency-symbol (tPCtATAy<

i the iSrreniy symboa iontained in a iSrreniy styae beaongs to a diiierent aangSage or ioSntry to that oi theiSrreniy styaes yoS ian Sse the iSrreniy aangSage and ioSntry attribStes to speiiiy the aangSage and ioSntry oithe iSrreniy symboac

rII 1oyi 41.r4. i41tinr1IyiAIur 9

rg int T number:languagenumber:country

RrT 9T

ooT <!ATTLIST number:currency-symbol number:language CtATAtIMPLIEt<<!ATTLIST number:currency-symbol number:country CtATAtIMPLIEt<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the iSrreniy styae eaementsc

Chapter 2 Common Document Content 67

Page 68: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c5c4 Perientage tyaeThe <number:percentage-style< eaement desiribes the styae ior perientage raaSesc

rg int T <number:percentage-style<RrT 9T This eaement ian iontain one <number:number< eaements thiih desiribes the dispaay iormat

ior the perientagec The eaement ian be preieded or ioaaoted by <number:text< eaementssthiih iontain any additionaa te.t to dispaay beiore or aiter the perientagec

n additions the <number:percentage-style< eaement ian iontain a <style:properties< eaement and a <style:map< eaementc

ooT <!ENTITY % percentage-style-content "( number:text |(number:text?,%number-ant-text;y y"<<!ELEMENT number:percentage-style ( style:properties?,%percentage-style-content;, style:map? y<

oT 14un1Tuu4un1T

CSrrentays the OpenOiiiiecorg soittare reqSires this eaement to iontain at aeast one <number:text< eaement and the te.t mSst iontain a elr iharaiterc

ee eition c5c ior iniormation on the attribStes that yoS ian assoiiate tith the perientage styae eaementc

c5c9 Date tyaeThe <number:tate-style< eaement desiribes the styae ior date raaSesc

rg int T <number:tate-style<RrT 9T This eaement ian iontain one instanie oi eaih oi the ioaaoting eaements: <number:tay<s

<number:month<s <number:year<s <number:era<s <number:tay-of-week<s<number:week-of-year<s <number:quarter<s <number:hours<s <number:minutes<s <number:seconts<s and <number:am-pm<cThe <number:tate-style< eaement ian aaso iontain <number:text< eaements s thiihdispaay additionaa te.ts bSt it iannot iontain tto oi these eaements ionseiStireayc n additions itian iontain a <style:properties< eaement and a <style:map< eaementc

ooT <!ENTITY % any-tate "( number:tay | number:month | number:year| number:era | number:tay-of-week | number:week-of-year |number:quarter | number:hours | number:am-pm | number:minutes| number:seconts y"<<!ENTITY % tate-style-content "( number:text | (number:text?,(%any-tate;,number:text?yty y"<<!ELEMENT number:tate-style ( style:properties?, %tate-style-content;, style:map? y< n TiThis DTD does not reiaeit the iait that some eaements mSst not oiiSr more than oniec

ee eition c5c ior iniormation on the attribStes that yoS ian assoiiate tith the date styae eaementsc

The <number:tate-style< eaement ian iontain the ioaaoting eaements:● <number:tay< < day oi month● <number:month< < month● <number:year< < year● <number:era< < era

68 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 69: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● <number:tay-of-week< < day oi teek● <number:week-of-year< < teek oi year● <number:quarter< < qSarter

Day oi onthThe <number:tay< eaement speiiiies the day oi the month in a datec

rg int T <number:tay<RrT 9T i this eaement is Sseds it shoSad be iontained in the <number:tate-style< eaementcooT <!ELEMENT number:tay EMPTY<

The iormat attribSte speiiiies thether the day oi month eaement is dispaayed in short or aong iormatc

nI4iAIur

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the date styaec For dayss ii the raaSe oi the number:format-source attribSte is fixet:● short means that the day oi the month is dispaayed Ssing one or tto digits● long means that the day oi the month is dispaayed Ssing tto digits

ooT <!ATTLIST number:tay number:style (short|longy short<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the date styae eaementsc

onthThe <number:month< eaement speiiiies the month in a datec

rg int T <number:month<RrT 9T i Sseds this eaement mSst be iontained in the <number:tate-style< eaementcooT <!ELEMENT number:month EMPTY<

The number:textual attribSte determines thether the name or nSmber oi a month is dispaayed in the montheaement oi a datec

r4TiR oI 9 14un1iAIur

rg int T number:textualRrT 9T i the raaSe oi this attribSte raaSe is trues the name oi the month is dispaayedc i the attribSte

raaSe is falses the nSmber oi the month is dispaayedcooT <!ATTLIST number:month number:textual %boolean; "false"<

The number:style attribSte speiiiies thether the month eaement is dispaayed in short or aong iormatc nI4iAIur

Chapter 2 Common Document Content 69

Page 70: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the date styaec For monthss ii the raaSe oi the number:format-source attribSte is fixet:● short means that the abbreriated name oi the month is dispaayed or the month is dispaayed

Ssing one or tto digits

● long means that the iSaa name oi the month is dispaayed or the month is dispaayed Ssing ttodigits

ooT <!ATTLIST number:month number:style (short|longy short<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the date styae eaementsc

YearThe <number:year< eaement speiiiies the year in the datec

rg int T <number:year<RrT 9T i Sseds this eaement mSst be iontained in the <number:tate-style< eaementcooT <!ELEMENT number:year EMPTY<

The number:style attribSte speiiiies thether the year eaement is dispaayed in short or aong iormatcnI4iAIur

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the date styaec For yearss ii the raaSe oi the number:format-source attribSte is fixet:● short means that the year is dispaayed Ssing tto digits● long means that the year is dispaayed Ssing ioSr digits

ooT <!ATTLIST number:year number:style (short|longy short<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the date styae eaementsc

EraThe <number:era< eaement speiiiies the era in thiih the year is ioSntedc

rg int T <number:era<RrT 9T i Sseds this eaement mSst be iontained in the <number:tate-style< eaementcooT <!ELEMENT number:era EMPTY<

The number:style attribSte speiiiies thether the era eaement is dispaayed in short or aong iormatcnI4iAIur

70 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 71: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the date styaec For erass ii the raaSe oi the number:format-source attribSte is fixet:● short means that the abbreriated era name is Ssed● long means that the iSaa era name is Ssed

ooT <!ATTLIST number:era number:style (short|longy short<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the date styae eaementsc

Day Oi DeekThe <number:tay-of-week< eaement speiiiies the day oi the teek in a datec

rg int T <number:tay-of-week<RrT 9T i Sseds this eaement mSst be iontained in the <number:tate-style< eaementcooT <!ELEMENT number:tay-of-week EMPTY<

The number:style attribSte speiiiies thether the day oi teek eaement is dispaayed in short or aong iormatcnI4iAIur

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the date styaec For days oi the teeks the raaSe oi the number:format-source attribSte is fixet:● short means that the abbreriated name oi the day is dispaayed● long means that the iSaa name oi the day is dispaayed

ooT <!ATTLIST number:tay-of-week number:style (short|longy short<

Deek Oi YearThe <number:week-of-year< eaement speiiiies the teek oi the year in the datec

rg int T <number:week-of-year<RrT 9T i Sseds this eaement mSst be iontained in the <number:tate-style< eaementcooT <!ELEMENT number:week-of-year EMPTY<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the date styae eaementsc

oSarterThe <number:quarter< eaement speiiiies the qSarter oi the year in the datec

Chapter 2 Common Document Content 71

Page 72: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <number:quarter<RrT 9T i Sseds this eaement mSst be iontained in the <number:tate-style< eaementcooT <!ELEMENT number:quarter EMPTY<

The number:style attribSte speiiiies thether the qSarter eaement is dispaayed in short or aong iormatcnI4iAIur

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the date styaec For qSarterss ii the raaSe oi the number:format-source attribSte is fixet:● short means that the abbreriated name oi the qSarter is dispaayeds ior e.ampaes o0● long means that the iSaa name oi the qSarter is dispaayeds ior e.ampaes oSarter 0

ooT <!ATTLIST number:quarter-of-year number:style (short|longyshort<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the date styae eaementsc

c5c5 Time tyaeThe <number:time-style< eaement desiribes the styae ior time raaSesc

rg int T <number:time-style<RrT 9T This eaement ian iontain one instanie oi any oi the ioaaoting eaements: <number:hours<s

<number:minutes<, <number:seconts< and <number:am-pm<.The <number:time-style< eaement ian aaso iontain <number:text< eaements s thiihdispaay additionaa te.ts bSt it iannot iontain tto oi these eaements ionseiStireayc n additions itian iontain a <style:properties< eaement and a <style:map< eaementc

ooT <!ENTITY % any-time "( number:hours | number:am-pm | number:minutes | number:seconts y"<<!ENTITY % time-style-content "( number:text | (number:text?,(%any-time;,number:text?yty y"<<!ELEMENT number:time-style ( style:properties?, %time-style-content;, style:map? y< n T This DTD does not reiaeit the iait that some eaements mSst not oiiSr more than oniec

ee eition c5c ior iniormation on the attribStes that yoS ian assoiiate tith the time styae eaementsc

The ioaaoting eaements ian be iontained in the <number:time-style< eaement:● <number:hours< < hoSrs● <number:minutes< < minStes● <number:seconts< < seionds● <number:am-pm< < amspm

72 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 73: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

OoSrsThe <number:hours< eaement speiiiies ii hoSrs are dispaayed as part oi a date or timec

rg int T <number:hours<RrT 9T

ooT <!ELEMENT number:hours EMPTY<

The number:style attribSte speiiiies thether the hoSrs eaement is dispaayed in short or aong iormatcnI4iAIur

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the time styaec For hoSrss ii the raaSe oi the number:format-source attribSte is fixet:● short means that the hoSrs are dispaayed Ssing at aeast one digit● long means that the hoSrs are dispaayed Ssing at aeast tto digits

ooT <!ATTLIST number:hours number:style (short|longy short<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the time styae eaementsc

inStesThe <number:minutes< eaement speiiiies ii minStes are dispaayed as part oi a date or timec

rg int T <number:minutes<RrT 9T

ooT <!ELEMENT number:minutes EMPTY<

The number:style attribSte speiiiies thether the minStes eaement is dispaayed in short or aong iormatcnI4iAIur

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the time styaec For minStess ii the raaSe oi the number:format-source attribSte is fixet:● short means that the minStes are dispaayed Ssing at aeast one digit● long means that the minStes are dispaayed Ssing at aeast tto digits

ooT <!ATTLIST number:minutes number:style (short|longy short<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the time styae eaementsc

eiondsThe <number:seconts< eaement speiiiies ii seionds are dispaayed as part oi a date or timec

Chapter 2 Common Document Content 73

Page 74: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <number:seconts<RrT 9T

ooT <!ELEMENT number:seconts EMPTY<

The number:style attribSte speiiiies thether the seionds eaement is dispaayed in short or aong iormatcnI4iAIur

rg int T number:styleRrT 9T The raaSe oi this attribSte ian be short or longc The meaning oi these raaSes depends on the

raaSe oi the number:format-source attribSte that is attaihed to the time styaec For seiondss ii the raaSe oi the number:format-source attribSte is fixet:● short means that the seionds are dispaayed Ssing at aeast one digit ● long means that the seionds are dispaayed Ssing at aeast tto digits

ooT <!ATTLIST number:seconts number:style (short|longy short<

Dhen yoS are dispaaying iraitionss yoS ian iniaSde iraitions oi seiondsc The number:tecimal-placesattribSte determines the nSmber oi deiimaa paaies to Sse then dispaaying iraitionsc

o ou4TiT4o 9iAIur

rg int T number:tecimal-placesRrT 9T i this attribSte is not Ssed or ii the raaSe oi the attribSte is 0s iraitions are not dispaayedcooT <!ATTLIST number:seconts number:tecimal-places %number; "0"<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the time styae eaementsc

sP The <number:am-pm< eaement speiiiies ii sP is iniaSded as part oi the date or timec

rg int T <number:am-pm<RrT 9T i a <number:am-pm< eaement is iontained in a date or time styaes hoSrs are dispaayed Ssing

raaSes irom 1 to 12 onaycooT <!ELEMENT number:am-pm EMPTY<

ee eition c5c ior iniormation on the other attribStes that yoS ian assoiiate tith the time styae eaementsc

c5c6 Booaean tyaeThe <number:boolean-style< eaement desiribes the styae ior Booaean raaSesc

74 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 75: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <number:boolean-style<RrT 9T This eaement ian iontain one <number:boolean< eaements thiih ian be preieded or

ioaaoted by <number:text< eaementsc n additions it ian iontain a <style:proper-ties< eaement and a <style:map< eaementc

ooT <!ENTITY % boolean-style-content "(number:text| (number:text?,number:boolean,number:text?yy"<<!ELEMENT number:boolean-style ( style:properties?,%boolean-style-content;, style:map? y<

BooaeanThe <number:boolean< eaement iontains the Booaean raaSe oi a Booaean styaec

rg int T <number:boolean<RrT 9T

ooT <!ELEMENT number:boolean EMPTY<

ee eition c5c ior iniormation on the attribStes that yoS ian assoiiate tith the Booaean styae eaementsc

c5cm Te.t tyaeThe <number:text-style< eaement desiribes the styae ior dispaaying te.tc

rg int T <number:text-style<RrT 9T This eaement ian iontain any nSmber oi <number:text-content< eaementsc t ian aaso

iontain <number:text< eaements s thiih dispaay additionaa te.ts bSt it iannot iontain tto oithese eaements ionseiStireayc n additions it ian iontain a <style:properties< eaement anda <style:map< eaementc

ooT <!ENTITY % text-style-content "(number:text| (number:text?,number:text-content, number:text?yy"<<!ELEMENT number:text-style ( style:properties?,%text-style-content;, style:map? y<

n 9T The <number:text-content< eaements represent the rariabae te.t iontent to dispaaysthiae the <number:text< eaements iontain any additionaa ii.ed te.t to dispaayc

ee eition c5c ior iniormation on the attribStes that yoS ian assoiiate tith the te.t styae eaementsc

Fi.ed Te.tThe <number:text< eaement iontains any ii.ed te.t ior a data styaec

rg int T <number:text<RrT 9T This eaement is iontained in the data styaes eaementc

ooT <!ELEMENT number:text (tPCtATAy<

Chapter 2 Common Document Content 75

Page 76: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Te.t ContentThe <number:text-content< eaement iontains the te.t iontent oi a te.t styaec

rg int T <number:text-content<RrT 9T

ooT <!ELEMENT number:text-content EMPTY<

c5cr Common Data tyae EaementsYoS ian Sse some styae eaements tith any oi the primary data styae eaementsc These eaements are:

● Formatting properties

● tyae mappings

Formatting PropertiesThe <style:properties< eaement speiiiies the te.t iormatting properties to appay to any te.t dispaayed inthe data styaec ee eition c c0 ior iniormation on the iormatting properties eaementc

tyae appingsThe <style:map< eaement speiiiies an aaternatire data styae to map to ii a iertain iondition e.istsc ee eition c c5 ior iniormation on the <style:map< eaementc

RrT 9ienIir9u1.ru9i T 1iAurt44i9yT T 19T

● This eaement mSst be the aast ihiad eaement in the data styae eaementc

● The styae reierenied by the style:apply-style attribSte mSst be oi the same type asthe styae iontaining the mapc

● The iondition mSst be in the iormat value(y Th ls there Th is a reaationaa operator andl is a nSmberc For Booaean styaes the iondition raaSe mSst be true and falsec

c5c Common Data tyae ttribStes any oi the data styae attribStes are appaiiabae to more than one data styae eaementc The ioaaoting data styaeattribStes are iommon to many oi the data styae eaements:

● Name

● LangSage

● CoSntry

● Titae

● Voaatiaity

● Stomatii Order

● Format oSrie

76 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 77: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Time VaaSe TrSniation

● Transaiteration

Name The style:name attribSte speiiiies the name oi the data styaec t ian be Ssed tith the ioaaoting data styaeeaements:

● <number:number-style<● <number:currency-style<● <number:percentage-style<● <number:tate-style<● <number:time-style<● <number:boolean-style<● <number:text-style<

rg int T style:nameRrT 9T

ooT <!ATTLIST number:number-style style:name %style-name;teEt|IeEt<

LangSageThe number:language attribSte speiiiies the aangSage oi the styaec The raaSe oi the attribSte is a aangSageiode ioniorming tith O64 c OpenOiiiiecorg X L Sses the aangSage iode to retriere iniormation aboSt anydispaay properties that are aangSage-dependentc The aangSage attribSte ian be Ssed tith the ioaaoting data styaeeaements:

● <number:number-style<● <number:currency-style<● <number:percentage-style<● <number:tate-style<● <number:time-style<● <number:boolean-style<● <number:text-style<

rg int T number:languageRrT 9T i a aangSage iode is not speiiiieds either the system settings or the setting ior the system's

aangSage are Sseds depending on the property those raaSe shoSad be retrieredc

ooT <!ATTLIST number:number-style number:language CtATA tIMPLIEt<

Chapter 2 Common Document Content 77

Page 78: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

CoSntryThe number:country attribSte speiiiies the ioSntry oi the styaec The raaSe oi the attribSte is a ioSntry iodesioniorming tith O4066c OpenOiiiiecorg X L Sses the ioSntry iode to retriere iniormation aboSt any dispaayproperties that are ioSntry-dependentc The aangSage attribSte ian be Ssed tith the ioaaoting data styae eaements:

● <number:number-style<● <number:currency-style<● <number:percentage-style<● <number:tate-style<● <number:time-style<● <number:boolean-style<● <number:text-style<

rg int T number:countryRrT 9T i a ioSntry is not speiiiieds either the system settings or the setting ior the system's ioSntry are

Sseds depending on the property those raaSe shoSad be retrieredc

ooT <!ATTLIST number:number-style number:country CtATA tIMPLIEt<

TitaeThe number:title attribSte speiiiies the titae oi the data styaec t ian be Ssed tith the ioaaoting data styaeeaements:

● <number:number-style<● <number:currency-style<● <number:percentage-style<● <number:tate-style<● <number:time-style<● <number:boolean-style<● <number:text-style<

rg int T number:titleRrT 9T

ooT <!ATTLIST number:number-style number:title CtATA tIMPLIEt<

Voaatiaity ometimes then a doiSment is openeds not aaa oi the styaes are Ssedc The SnSsed styaes ian be retained ordisiarded; depending on the appaiiation yoS are Ssingc The style:volatile attribSte aaaots yoS to speiiiythat to do tith the SnSsed styaesc The roaatiaity attribSte ian be Ssed tith any oi the ioaaoting data styaeeaements:

● <number:number-style<

78 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 79: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● <number:currency-style<● <number:percentage-style<● <number:tate-style<● <number:time-style<● <number:boolean-style<● <number:text-style<

rg int T style:volatileRrT 9T i the raaSe oi the attribSte is trues the appaiiation keeps the styae ii possibaec i the raaSe is

falses the appaiiation disiards the SnSsed styaescooT <!ATTLIST number:number-style style:volatile %boolean;

tIMPLIEt< n T i a styae is iontained in a <style:styles< eaements the deiaSat raaSe oi the style:

volatile attribSte is truec i a styae is iontained in a <style:automatic-styles<eaements the deiaSat raaSe is falsec

Stomatii OrderThe number:automatic-orter attribSte ian be Ssed to aStomatiiaaay order data to matih the deiaSat orderior the aangSage and ioSntry oi the data styaec This attribSte is Ssed tith the ioaaoting eaements:

● <number:currency-style<, there nSmber and iSrreniy symboas are reordered● <number:tate-style<, there the <number:tate-style< ihiad eaements that are not <number:

text< or <style:properties< eaements are reordered

rg int T number:automatic-orterRrT 9T The attribSte raaSe ian be true or falsec ooT <!ATTLIST number:currency-style number:automatic-orter %

boolean; "false"<nI

<!ATTLIST number:tate-style number:automatic-orter %boolean;"false"<

n T i aStomatii ordering is enabaeds bSt the aangSage and ioSntry are not speiiiieds the systemsettings ior the order oi nSmbers and iSrreniy symboas is Ssedc

Format oSrieThe number:format-source attribSte speiiiies the soSrie oi the short and long dispaay iormatsc t isSsed tith the ioaaoting eaements:

● <number:tate-style< ● <number:time-style<

Chapter 2 Common Document Content 79

Page 80: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T number:format-sourceRrT 9T The raaSe oi this attribSte ian be fixet or languagec

i the raaSe is fixets the appaiiation determines the raaSe oi short and longc i the raaSe islanguages the raaSe oi short and long is taken irom the aangSage and ioSntry oi the styaec

ooT <!ATTLIST number:tate-style number:format-source (fixet|languagey fixet<

n 9T i the raaSe oi the number:format-source attribSte is languages the meaning oi shortand short depends on the aangSage and ioSntry oi the date styaes ors ii neither oi these are speii-iieds OpenOiiiiecorg X L Sses the system settings ior short and aong date and time iormatsc

Time VaaSe TrSniationThe number:truncate-on-overflow attribSte is Ssed tith the <number:time-style< eaementc i atime or dSration is too aarge to dispaay Ssing the deiaSat raaSe range ior a time iomponents i2 to 4 ior<number:hours<ys yoS ian Sse the time raaSe trSniation attribSte to speiiiy ii it ian be trSniated or the raaSerange e.tendedc

rg int T number:truncate-on-overflowRrT 9T

ooT <!ATTLIST number:time-style number:truncate-on-overflow %boolean; "true"<

TransaiterationThe nSmber:transaiteration-* attribStes speiiiy the natire nSmber system oi the styae to dispaay the nSmber Ssingsior e.ampaes CJ2 nSmber iharaitersc The notation is inspired by the D4C X LT c2 draits see "NSmber to tringConrersion ttribStes" thttp:sstttct4corgsT s.sat 2s*ionrertTc Ooterers to be abae to iSaay distingSish betteenaaa possibae natire nSmber systems additionaa attribStes are needed in iombinationc For e.ampaes 2orean Sses 00diiierent systems there the digits are not aatays diiierent bSt short and aong and iormaa and iniormaa iorms e.istc

The transaiteration attribStes ian be Ssed tith the ioaaoting data styae eaements:

● <number:number-style<● <number:currency-style<● <number:percentage-style<● <number:tate-style<● <number:time-style<● <number:boolean-style<● <number:text-style<

Transaiteration Format

The number:transliteration-format attribSte speiiiies thiih nSmber iharaiters to Ssec The raaSe oithe attribSte is the digit "0" e.pressed as a natire nSmberc

80 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 81: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T number:transliteration-formatRrT 9T i no iormat is speiiiied the deiaSat C representation oi rabii digits is Sseds other transait -

eration attribStes present in this iase are ignoredc

ooT <!ATTLIST number:number-style number:transliteration-formatCtATA "1"<

Transaiteration LangSage

The number:transliteration-language attribSte speiiiies thiih aangSage the natire nSmber systembeaongs toc The raaSe oi the attribSte is a aangSage iode ioniorming tith O64 c

rg int T number:transliteration-languageRrT 9T i no aangSagesioSntry iaoiaaeo iombination is speiiiied the aoiaae oi the data styae is Ssedc

ooT <!ATTLIST number:number-style number:transliteration-languageCtATA tIMPLIEt<

Transaiteration CoSntry

The number:transliteration-country attribSte speiiiies thiih ioSntry the natire nSmber systembeaongs to c The raaSe oi the attribSte is a ioSntry iode ioniorming tith O4066c

rg int T number:transliteration-countryRrT 9T i no aangSagesioSntry iaoiaaeo iombination is speiiiied the aoiaae oi the data styae is Ssedc

ooT <!ATTLIST number:number-style number:transliteration-countryCtATA tIMPLIEt<

Transaiteration tyae

The number:transliteration-style attribSte speiiiies thiih styae the natire nSmber system beaongstoc i more than one natire nSmber system matihes the transaiteration-iormat this attribSte seaeits onec

rg int T number:transliteration-styleRrT 9T short styae shoSad resSat in a one to one mapping oi rabii digits to natire nSmber digits ii

possibaec

ooT <!ATTLIST number:number-style number:transliteration-style(short|metium|longy "short"<

c5c02 Common NSmber tyae ttribStes any oi the nSmber styae attribStes are appaiiabae to more than one nSmber styae eaementc The ioaaoting attrib-Stes are iommon to many oi the nSmber styae eaements:

● Deiimaa paaies

● inimSm integer digits

● GroSping separator

● Deiimaa repaaiement

Chapter 2 Common Document Content 81

Page 82: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● inimSm e.ponent digits

● inimSm nSmerator digits

● inimSm denominator digits

● Caaendar system

Deiimaa PaaiesThe number:tecimal-places attribSte speiiiies the nSmber oi deiimaa paaies to dispaayc YoS ian Sse thisattribSte tith the ioaaoting eaements:

● <number:number<● <number:scientific-number<

rg int T number:tecimal-placesRrT 9T i this attribSte is not speiiiieds a deiaSat nSmber oi deiimaa paaies is Ssedc

ooT <!ATTLIST number:number number:tecimal-places %number;tIMPLIEt<

inimSm nteger DigitsThe number:min-integer-tigits attribSte speiiiies the minimSm nSmber oi integer digits to dispaay in anSmbers a siientiiii nSmbers or a iraitionc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <number:number<● <number:scientific-number<● <number:fraction<

rg int T number:min-integer-tigits RrT 9T i this attribSte is not speiiiieds a deiaSat nSmber oi integer digits is Ssedc

ooT <!ATTLIST number:number number:min-integer-tigits %number;tIMPLIEt<

GroSping eparatorThe number:grouping attribSte speiiiies thether or not the integer digits oi a nSmber shoSad be groSpedSsing a separator iharaiterc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <number:number<● <number:scientific-number<● <number:fraction<

rg int T number:groupingRrT 9T The groSping iharaiter that is Ssed and the nSmber oi digits that are groSped together depends on

the aangSage and ioSntry oi the styaec

ooT <!ATTLIST number:number number:grouping %boolean; "false"<

82 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 83: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Deiimaa epaaiement i a nSmber styae speiiiies that deiimaa paaies are Ssed bSt the nSmber dispaayed is an integers yoS ian dispaayrepaaiement te.t instead oi the deiimaa paaiesc The number:tecimal-replacement attribSte speiiiies therepaaiement te.tc YoS ian Sse this attribSte tith the <number:number< eaementc

rg int T number:tecimal-replacementRrT 9T

ooT <!ATTLIST number:number number:tecimal-replacement CtATAtIMPLIEt<

oT 14un1Tuu4un1T

CSrrentays OpenOiiiiecorg onay sSpports repaaiement te.t that ionsists oi the same nSmber oi e-riharaiters as deiimaa paaiesc

Dispaay FaitorThe number:tisplay-factor attribSte speiiiies a iaitor by thiih eaih nSmber is siaaed idiridedo beioredispaayingc iaitor oi 0222s ior e.ampaes iaSses nSmbers to be dispaayed in thoSsandsc YoS ian Sse this attribStetith the <number:number< eaementc

rg int T number:tisplay-factorRrT 9T

ooT <!ATTLIST number:number number:tisplay-factor %float; "1"<oT 14un1Tuu4un1T

CSrrentays OpenOiiiiecorg onay sSpports dispaay iaitors oi 0222 to the poter oi a non-negatireinteger nSmbers that is 0s 0222s 0222222s 0222222222s etic

inimSm E.ponent DigitsThe number:min-exponent-tigits attribSte speiiiies the minimSm nSmber oi digits to Sse to dispaay ane.ponentc YoS ian Sse this attribSte tith the <number:scientific-number< eaementc

rg int T number:min-exponent-tigitsRrT 9T

ooT <!ATTLIST number:scientific-number number:min-exponent-tigits%number; tIMPLIEt<

inimSm NSmerator DigitsThe number:min-numerator-tigits attribSte speiiiies the minimSm nSmber oi digits to Sse to dispaaythe nSmerator in a iraitionc YoS ian Sse this attribSte tith the <number:fraction< eaementc

rg int T number:min-numerator-tigitsRrT 9T

ooT <!ATTLIST number:fraction number:min-numerator-tigits %number;tIMPLIEt<

Chapter 2 Common Document Content 83

Page 84: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

inimSm Denominator DigitsThe number:min-tenominator-tigits attribSte speiiiies the minimSm nSmber oi digits to Sse todispaay the denominator oi a iraitionc YoS ian Sse this attribSte tith the <number:fraction< eaementc

rg int T number:min-tenominator-tigits RrT 9T

ooT <!ATTLIST number:fraction number:min-tenominator-tigits %number; tIMPLIEt<

Caaendar ystemThe number:calentar attribSte speiiiies the iaaendar system Ssed to e.trait parts oi a datec YoS ian Sse thisattribSte tith the ioaaoting eaements:

● <number:tay<● <number:month<● <number:year<● <number:era<● <number:tay-of-week<● <number:week-of-year<● <number:quarter<

rg int T number:calentarRrT 9T i this attribSte is not speiiiieds the deiaSat iaaendar system is Ssedc

ooT <!ATTLIST number:tay number:calentar CtATA tIMPLIEt<

c6 Frames eI4 is a reitangSaar iontainer there yoS ian paaie iontent that yoS tant to position oStside the deiaSat te.tiaot oi a doiSmentc n OpenOiiiiecorg doiSmentss irames ian iontain:

● mages

● Dratings

● Te.t bo.es iOpenOiiiiecorg Driter doiSments onayo

● ppaets

● Faoating irames

● PaSg-ins

● OpenOiiiiecorg objeits and iommon OLE objeits

irame has properties that appay to:

● The area aroSnd the irame or the irame neighborhoods ior e.ampaes the anihor types position or trap modec

● The irame iontent onays ior e.ampaes the L ior a piitSrec

84 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 85: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Both irame neighborhood and iontents ior e.ampaes the irame sikec

OpenOiiiiecorg X L does not diiierentiate betteen the diiierent types oi irame propertiesc Frame iormattingproperties are stored in an aStomatiiaaay generated styae beaonging to the graphics iamiayc The tay a irame isiontained in a doiSment depends on the iiae iormat type and is e.paained in the appaiiation-speiiiii ihapters oithis doiSmentc

There are sereraa eaements Ssed to represent the diiierent irame typesc n this manSaas these eaements are iaaaedeI4 i T 19 cThis seition desiribes the ioaaoting irame types and the eaements Ssed to represent them:

● Te.t Bo.es

● mages

● Dratings

● Controas

● PaSg-inss appaetss and iaoating irames

● Objeits

c6c0 Te.t Bo.esYoS ian Sse a te.t bo. to paaie te.t in a iontainer that is oStside oi the normaa iaot oi the doiSmentc

rg int T <traw:text-box< RrT 9T

ooT <!ELEMENT traw:text-box (%frame;a,%text;y< n T VG does not sSpport te.t bo.ess thiae X L has aimited sSpport ior te.t bo.esc

The attribStes that yoS ian assoiiate tith the <traw:text-box< eaement are:● Name

● tyae

● Chain

● Positions sikes and transiormation isee Chapter 5o

● Layer D isee eition c6c02o

● 1 nde. isee eition c6c02o

NameThe traw:name attribSte speiiiies the name oi the te.t bo.c

rg int T traw:name RrT 9T

ooT <!ATTLIST traw:text-box text:name CtATA tIMPLIEt<oT 14un1Tuu4un1T

This attribSte is onay sSpported by OpenOiiiiecorg Driterc i a te.t bo. tithoSt a name is aoadedinto OpenOiiiiecorg Driters it is inserted as a drating te.t bo.c

Chapter 2 Common Document Content 85

Page 86: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

tyaeThe traw:style-name attribSte speiiiies the name oi the styae ior the te.t bo.c

rg int T traw:style-name RrT 9T This attribSte ainks to a <style:style< eaement beaonging to the graphic styae iamiaycooT <!ATTLIST traw:text-box traw:style-name Astyle-name;

teEt|IeEt<

ChainTe.t bo.es ian be ihaineds in other tordss ii the iontent oi a te.t bo. e.ieeds its iapaiitys the iontent iaots intothe ne.t te.t bo. in the ihainc

rg int T style:chain-next-nameRrT 9T The raaSe oi this attribSte is the name oi the ne.t te.t bo. in the ihainc

ooT <!ATTLIST style:properties style:chain-next-name CtATAtIMPLIEt<

oT 14un1Tuu4un1T

Chained te.t bo.es are onay sSpported by OpenOiiiiecorg Driterc

c6c mages n image ian be either:

● Contained in an OpenOiiiiecorg doiSment as a aink to an e.ternaa resoSrie

or

● Embedded in an OpenOiiiiecorg doiSment

rg int T <traw:image<RrT 9T This eaement ian be an XLinks in thiih iase the eaement iontains some attribStes tith ii.ed

raaSes that desiribe the aink semantiisc

ooT <!ELEMENT traw:image (office:binary-tata?,office:events?,traw:image-map?,svg:tesc?,(traw:contour-polygon|traw:contour-pathy?y<

The attribStes that yoS ian assoiiate tith the <traw:image< eaement are:● Name isee eition c6c02o

● tyae

● mage data

● Positions sikes and transiormation isee Chapter 5o

● Fiater name

● Layer D isee eition c6c02o

● 1 nde. isee eition c6c02o

86 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 87: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

YoS ian aaso Sse the ioaaoting eaements tith the image eaement:

● ContoSr isee eition c6c o

● aternatire Te.t isee eition c6c o

tyaeThe traw:style-name attribSte speiiiies the name oi the styae ior the imagec

rg int T traw:style-name RrT 9T This attribSte ainks to a <style:style< eaement beaonging to the graphic styae iamiaycooT <!ATTLIST traw:text-box traw:style-name Astyle-name;

teEt|IeEt<

mage DataThe image data ian be stored in one oi the ioaaoting tays:

● The image data is iontained in an e.ternaa iiaec se the xlink:href and assoiiated attribStes desiribedbeaot to aink to the e.ternaa iiaec

● The image data is iontained in the <traw:image< eaementc The <traw:image< eaement iontains an<office:binary-tata< eaement that iontains the image data in B E69 eniodingc n this sitSation thexlink:href attribSte is not reqSiredc

rg int T xlink:hrefs xlink:types xlink:shows and xlink:actuateRrT 9T

ooT <!ATTLIST traw:image xlink:href %url; tIMPLIEt<<!ATTLIST traw:image xlink:type (simpley tIMPLIEt<<!ATTLIST traw:image xlink:show (embety 'IMPLIEt<<!ATTLIST traw:image xlink:actuate (onLoaty 'IMPLIEt<

Fiater Name i reqSireds the traw:filter-name attribSte ian represent the iiater name oi the imagec

rg int T traw:filter-nameRrT 9T This attribSte iontains the internaa iiater name that the OpenOiiiiecorg soittare Ssed to aoad the

graphiic

ooT <!ATTLIST traw:image traw:filter-name tIMPLIEt<

c6c4 Dratings ee Chapter 5 ior iniormation on drating shapesc

Chapter 2 Common Document Content 87

Page 88: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c6c9 Objeits n OpenOiiiiecorg X L doiSment ian iontain tto types oi objeitss as ioaaots:

● Objeits that hare an X L representationc These objeits are those thiih the OpenOiiiiecorg soittare ianireate and modiiys as ioaaots:

➢ FormSaas ireated Ssing OpenOiiiiecorg ath

➢ Charts ireated Ssing OpenOiiiiecorg Chart

➢ preadsheets ireated Ssing OpenOiiiiecorg Caai

➢ Te.t doiSments ireated Ssing OpenOiiiiecorg Driter

➢ Dratings ireated Ssing OpenOiiiiecorg Drat

➢ Presentations ireated Ssing OpenOiiiiecorg mpress

● Objeits that do not hare an X L representationc These objeits onay hare a binary representation and they areaoaded and stored Ssing OLEc

rg int T <traw:obiect< <traw:obiect-ole<

RrT 9T The <traw:obiect< eaement represents objeits that hare a X L representationc

The <traw:obiect-ole< eaement represents objeits that onay hare a binary representationcooT <!ELEMENT traw:obiect ((office:tocument|math:mathy?,office:

events?,traw:image-map?,svg:tesc?,(traw:contour-polygon|traw:contour-pathy?y<<!ELEMENT traw:obiect-ole (office:binary-tata?,office:events?,traw:image-map?,svg:tesc?,(traw:contour-polygon|traw:contour-pathy?,traw:thumbnail?y<

Objeit DataThe objeit data ian be iaaaed in one oi the ioaaoting tays:

● The xlink:href attribSte ainks to the objeit representations as ioaaots:➢ For objeits that hare an X L representations the aink reierenies the sSbpaikage oi the OLE objeitc

➢ For objeits that do not hare an X L representations the aink reierenies a sSbstream oi the paikage thationtains the binary representation oi the objeitc

● The objeit data is iontained in the <traw:obiect< or <traw:obiect-ole< eaements as ioaaots: ➢ The <traw:obiect< eaement iontains the X L representation oi the objeits ior e.ampaes an

<office:tocument< or a <math:math< eaementc ➢ The <traw:obiect-ole< eaement iontains an <office:binary-tata< eaements thiih

iontains the binary data ior the objeit in B E69 eniodingc

n these sitSationss the xlink:href attribStes are not reqSiredc

88 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 89: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T xlink:hrefs xlink:types xlink:shows and xlink:actuateRrT 9T

ooT <!ATTLIST traw:obiect xlink:href %url; tIMLIEt<<!ATTLIST traw:obiect xlink:type (simpley tIMPLIEt<<!ATTLIST traw:obiect xlink:show (embety tIMPLIEt<<!ATTLIST traw:obiect xlink:actuate (onLoaty tIMPLIEt<<!ATTLIST traw:obiect-ole xlink:href %url; teEt|IeEt<<!ATTLIST traw:obiect-ole xlink:type (simpley tFIXEt "simple"<<!ATTLIST traw:obiect-ole xlink:show (embety "embet"<<!ATTLIST traw:obiect-ole xlink:actuate (onLoaty "onLoat"<

oT 14un1Tuu4un1T

The iSrrent OpenOiiiiecorg impaementation does not sSpport e.ternaa objeitsc aa objeits mSstbe aoiated in the root oi the paikage ior the doiSmentc

Notiiiiation on Tabae Change ome objeitss espeiiaaay ihartss may reqSire a notiiiiation then a tabae in the doiSment ihangesc To enabae thisnotiiiiations Sse the traw:notify-on-change-of-table attribStes thiih iontains the name oi the tabaec

rg int T traw:notify-on-change-of-tableRrT 9T This attribSte ian be assoiiated tith the <traw:obiect< eaementcooT <!ATTLIST traw:obiect traw:notify-on-change-of-table %string;

tIMPLIEt< n T This attribSte does not enabae the aStomatii Spdate oi an OLE objeit ii data tithin a tabae

ihangesc The pSrposeoi the attribSte is to speed Sp Spdates to thoae doiSments by onay notiiyingthe OLE objeits that hare a ionneition to any tabaec

c6c5 ppaets n appaet is a smaaa Jara-based program that is embedded in a doiSmentc The <traw:applet< eaement isbased on the aappaet< tag in OT Lc

rg int T <traw:applet< RrT 9T This eaement mSst iontain either the traw:cote or traw:obiect attribStec

The traw:parama eaements mSst be aoiated beiore other iontentcooT <!ELEMENT traw:applet (traw:parama, svg:tesc?, (traw:contour-

polygon|traw:contour-pathy?y<

The attribStes that yoS ian assoiiate tith the <traw:applet< eaement are:● Codebase

● Code

● Objeit

● rihire

● Name isee eition c6c02o

● tyae isee eition c6c02o

● Positions sikes and transiormation isee Chapter 5o

Chapter 2 Common Document Content 89

Page 90: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Layer D isee eition c6c02o

● 1 nde. isee eition c6c02o

● aysiript

YoS ian aaso Sse the ioaaoting eaements:

● Alternative Text (see Section 2.6.9A

● Param

CodebaseThe traw:cotebase speiiiies the base ior the appaetc i this attribSte is not speiiiieds then it deiaSats thesame base as ior the iSrrent doiSmentc This is represented as an .aink:hreic

rg int T xlink:hrefs xlink:types xlink:shows and xlink:actuateRrT 9T

ooT <!ATTLIST traw:applet xlink:href %url; teEt|IeEt<<!ATTLIST traw:applet xlink:type (simpley tFIXEt "simple"<<!ATTLIST traw:applet xlink:show (embety "embet"<<!ATTLIST traw:applet xlink:actuate (onLoaty "onLoat"<

CodeThe traw:cote attribSte speiiiies one oi the ioaaoting:● The name oi the iaass iiae that iontains the iompiaed appaet sSbiaassc

● The path to the iaasss iniaSding the iaass iiae itseaic

rg int T traw:coteRrT 9T Either this attribSte or the traw:obiect attribSte is reqSiredc

The raaSe oi this attribSte is interpreted in reaation to the iodebase ior the appaetc

ooT <!ATTLIST traw:applet traw:cote CtATA teEt|IeEt<

ObjeitThe traw:obiect attribSte speiiiies a resoSrie that iontains a seriaaiked representation oi the state oi theappaetc The seriaaiked data iontains the iaass name oi the appaet bSt not the impaementationc

rg int T traw:obiectRrT 9T The raaSe oi this attribSte is interpreted in reaation to the iodebase ior the appaetc

ooT <!ATTLIST traw:applet traw:obiect CtATA tIMPLIEt< n T This attribSte is not Ssed tithin the OpenOiiiiecorg iore and is stored ior OT L e.portc

rihireThe traw:archive attribSte speiiiies a iomma-separated aist oi Ls ior arihires that iontain iaasses and

90 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 91: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

other resoSries that are preaoadedc

rg int T traw:archiveRrT 9T

ooT <!ATTLIST traw:applet traw:archive CtATA tIMPLIEt< n T This attribSte is not Ssed tithin the OpenOiiiiecorg iore and is stored ior OT L e.portc

aysiriptThe traw:mayscript attribSte speiiiies thether or not the appaet ian be siriptedc

rg int T traw:mayscriptRrT 9T

ooT <!ATTLIST traw:plugin traw:mayscript %boolean; "false"<

c6c6 PaSgins paSgin is a binary objeit that is paSgged into a doiSment to represent a media-type that is not handaed natireayby the OpenOiiiiecorg soittarec

rg int T <traw:plugin<RrT 9T This is Ssed to desiribe paSgins in the doiSmentadrat:paSgin< is Ssed ior paSgins

ooT <!ELEMENT traw:plugin (traw:parama, svg:tesc?, (traw:contour-polygon|traw:contour-pathy?y<

The attribStes that yoS ian assoiiate tith the <traw:plugin< eaement are:● ime type

● oSrie

● Name isee eition c6c02o

● tyae isee eition c6c02o

● Positions sikes and transiormation isee Chapter 5o

● Layer D isee eition c6c02o

● 1 nde. isee eition c6c02o

YoS ian aaso Sse the ioaaoting eaement:

● Alternative Text (see Section 2.6.9A

● Param

ime typeThe traw:mimetype attribSte speiiiies the E type to thiih this paSgin shoSad be registeredc

Chapter 2 Common Document Content 91

Page 92: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T traw:mimetypeRrT 9T

ooT <!ATTLIST traw:plugin traw:mimetype CtATA teEt|IeEt<

oSrieThe XLink attribStes speiiiy the soSrie oi the paSginc

rg int T xlink:href, xlink:type, xlink:show, xlink:actuate

RrT 9T

ooT <!ATTLIST traw:plugin xlink:href %url; teEt|IeEt<<!ATTLIST traw:plugin xlink:type (simpley tFIXEt "simple"<<!ATTLIST traw:plugin xlink:show (embety "embet"<<!ATTLIST traw:plugin xlink:actuate (onLoaty "onLoat"<

c6cm ParametersThe <traw:param< eaement iontains paramaters that are passed to an appaet or paSgin then they are initiaa-ikedc

rg int T <traw:param<RrT 9T This eaement iontains parameters that are passed to appaets and paSginsc

ooT <!ELEMENT traw:param EMPTY<

The attribStes that yoS ian assoiiate tith the <traw:param< eaement are:● Name isee eition c6c02o

● VaaSe

VaaSeThe traw:value speiiiies the raaSe oi a rSntime parameter speiiiied by the namec

rg int T traw:valueRrT 9T

ooT <!ATTLIST traw:applet traw:value CtATA tIMPLIEt<

c6cr Faoating Frames iaoating irame is a irame embedded in a doiSments thiih may iontains ior e.ampaes a te.t doiSment or spread-sheetc

92 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 93: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <traw:floating-frame<RrT 9T

ooT <!ELEMENT traw:floating-frame (svg:tesc?, (traw:contour-polygon|traw:contour-pathy?y<

n T De may need to add a traw:shofloating-frame-borter attribStec

The attributes that you can associate with the <traw:floating-frame< element aree

● Name isee eition c6c02o

● oSrie isee eition c6c6o

● tyae isee eition c6c02o

● Positions sikes and transiormation isee Chapter 5o

● Layer D isee eition c6c02o

● 1 nde. isee eition c6c02o

YoS ian aaso Sse the ioaaoting eaement:

● Alternative Text (see Section 2.6.9A

c6c Common Frame EaementsThe eaements iontained in this seition ian be Ssed tith sereraa oi the irame eaementsc

ContoSrYoS ian Sse the <traw:contour-polygon< and <traw:contour-path< eaements tith the ioaaotingeaements:

● <traw:image<● <traw:obiect<● <traw:obiect-ole<

Chapter 2 Common Document Content 93

Page 94: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <traw:contour-polygon<<traw:contour-path<

RrT 9T These eaements desiribe the iontoSr oi an image or objeitc

ee Chapter 5 ior a desiription oi the attribStes assoiiated tith the <traw:contour-polygon< and <traw:contour-path< eaementsc n iontrast to any other eaement the svg:witth and svg:height attribStes may hare a pi.eaaength iicec 2p.o as raaSe ias teaa as traditionaa aengths aike imoc

ooT <!ELEMENT traw:contour-polygon EMPTY<<!ELEMENT traw:contour-path EMPTY<<!ATTLIST traw:contour-polygon svg:witth %length; teEt|IeEt<<!ATTLIST traw:contour-polygon svg:height %length; teEt|IeEt<<!ATTLIST traw:contour-polygon svg:viewbox CtATA teEt|IeEt<<!ATTLIST traw:contour-polygon svg:points %Points; teEt|IeEt<<!ATTLIST traw:contour-path svg:witth %length; teEt|IeEt<<!ATTLIST traw:contour-path svg:height %length; teEt|IeEt<<!ATTLIST traw:contour-path svg:viewbox CtATA teEt|IeEt<<!ATTLIST traw:contour-path svg:t %Pathtata; teEt|IeEt<

n T X L and VG do not sSpport iontoSrsc

aternatire Te.tYoS ian Sse the <traw:tesc< eaement tith the ioaaoting eaements:● <traw:image<● <traw:obiect<● <traw:applet<● <traw:floating-frame<● <traw:plugin<● <traw:obiect-ole<

rg int T <traw:tesc<RrT 9T

ooT <!ELEMENT traw:tesc (tPCtATAy< n 9T This eaement is the same as the VG <tesc< eaementc VG does not sSpport a desiription oi

ioreign objeitsc

c6c02 Common Frame ttribStesThe attribStes iontained in this seition ian be Ssed tith sereraa oi the irame eaementsc

NameYoS ian Sse the office:name attribSte tith the ioaaoting eaements:● <traw:text-box<

94 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 95: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● <traw:image<● <traw:obiect<● <traw:applet<● <traw:param<● <traw:plugin<● <traw:floating-frame<● <traw:obiect-ole<

rg int T office:name RrT 9T

ooT <!ATTLIST traw:image office:name CtATA tIMPLIEt< n T VG does not sSpport names oi image or ioreign objeitsc

tyaeYoS ian Sse the style:style attribSte tith the ioaaoting eaements:● <traw:obiect<● <traw:applet<● <traw:plugin<● <traw:floating-frame<● <traw:obiect-ole<

rg int T style:style RrT 9T

ooT <!ATTLIST traw:obiect style:style CtATA teEt|IeEt< n T VG does not sSpport styaesc

Layer DYoS ian Sse the office:layer-it attribSte tith the ioaaoting eaements:● <traw:text-box<● <traw:image<● <traw:applet<● <traw:plugin<● <traw:floating-frame<● <traw:obiect<● <traw:obiect-ole<

Chapter 2 Common Document Content 95

Page 96: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T office:layer-it RrT 9T

ooT <!ATTLIST traw:text-box office:layer-it %number; tIMPLIEt< n T VG does not sSpport aayersc

Layer DYoS ian Sse the office:layer-it attribSte tith the ioaaoting eaements:● <traw:text-box<● <traw:image<● <traw:applet<● <traw:plugin<● <traw:floating-frame<● <traw:obiect<● <traw:obiect-ole<

rg int T office:layer-it RrT 9T

ooT <!ATTLIST traw:text-box office:layer-it %number; tIMPLIEt< n T VG does not sSpport aayersc

1 nde.YoS ian Sse the traw:v-intex attribSte tith the ioaaoting eaements:● <traw:text-box<● <traw:image<● <traw:applet<● <traw:plugin<● <traw:floating-frame<● <traw:obiect<● <traw:obiect-ole<

rg int T traw:v-intex RrT 9T

ooT <!ATTLIST traw:text-box traw:v-intex %number; tIMPLIEt<

96 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 97: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c6c00 Frame Formatting PropertiesThe attribStes and eaements desiribed in this seition ian be assigned to a graphii styaec

Fi.ed and inimSm DidthsThere are tto types oi irame tidths; ii.ed tidths and minimSm tidthsc

rg int T nIieu tiAutr9T

svg:witthnIiu1uriAutr9T

fo:min-witthRrT 9T The raaSe oi both types oi tidth ian be either a aength or a perientagec The ionseqSenies oi

assigning both types oi tidth to a irame simSataneoSsay are Sndeiinedc

i the anihor ior the irame is in a tabae ieaas the perientage raaSe reaates to the sSrroSnding tabaebo.c i the anihor ior the irame is in a irames the perientage raaSe reaates to the sSrroSndingiramec n other iasess the perientage raaSes reaate to the tidth oi the page or tindotc

ooT <!ATTLIST style:properties svg:witth %length_or_pecentage;tIMPLIEt<<!ATTLIST style:properties fo:min-witth CtATA tIMPLIEt<

Fi.ed and inimSm OeightsThere are tto types oi irame heights; ii.ed heights and minimSm heightsc

rg int T nIieu tir u.r9T

svg:heightnIiu1urir u.r9T

fo:min-heightRrT 9T The raaSe oi both types oi height ian be either a aength or a perientagec The ionseqSenies oi

assigning both types oi height to a irame simSataneoSsay are Sndeiinedc

i the anihor ior the irame is in a tabae ieaas the perientage raaSe reaates to the sSrroSnding tabaebo.c i the anihor ior the irame is in a irames the perientage raaSe reaates to the sSrroSndingiramec n other iasess the perientage raaSes reaate to the height oi the page or tindotc

ooT <!ATTLIST style:properties fo:height CtATA tIMPLIEt<<!ATTLIST style:properties fo:min-height CtATA tIMPLIEt<

a.imSm Didth and OeightFor irames that ian inirease in sike aStomatiiaaay then iontent is addeds these attribStes speiiiy a ma.imSmtidth and height ior the iramec Dhen the ma.imSm raaSes are reaiheds the irame stops inireasing in sikec

Chapter 2 Common Document Content 97

Page 98: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:max-witthfo:max-height

RrT 9T

ooT <!ATTLIST style:properties fo:max-witth CtATA tIMPLIEt<<!ATTLIST style:properties fo:max-height CtATA tIMPLIEt<

Leit and ight arginsThese properties determine the aeit and right margins to set aroSnd a iramec The properties are simiaar to thoseSsed to set the margins oi a paragraphs as desiribed in Chaper 4c

rg int T fo:margin-left and fo:margin-rightRrT 9T The raaSe oi these properties mSst be a aengthc

ooT <!ATTLIST style:properties fo:margin-left %length; tIMPLIEt<<!ATTLIST style:properties fo:margin-right %length; tIMPLIEt<

n T n iontrast to paragraph styaess then these properties are Ssed ior graphii styaes as is the iase ioriramess perientage raaSes are not sSpportedc

Top and Bottom arginsThese properties determine the top and bottom margins to set aroSnd a iramec The properties are simiaar to thoseSsed to set the margins oi a paragraphs as desiribed in Chapter 4c

rg int T fo:margin-top and fo:margin-bottomRrT 9T The raaSe oi these properties mSst be a aengthc

ooT <!ATTLIST style:properties fo:margin-top %length; tIMPLIEt<<!ATTLIST style:properties fo:margin-bottom %length; tIMPLIEt<

n T n iontrast to paragraph styaess then these properties are Ssed ior graphii styaes as is the iase ioriramess perientage raaSes are not sSpportedc

Print ContentThe style:print-content property speiiiies thether or not yoS ian print the iontent oi a iramec

rg int T style:print-contentRrT 9T

ooT <!ATTLIST style:properties style:print-content %boolean;tIMPLIEt<

n T X L does not sSpport this propertyc

ProteitThe style:protect property speiiiies thether the iontents sikes or position oi a irame is proteitedc

98 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 99: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:protectRrT 9T The raaSe oi this property ian be either none or a spaie separated aist that ionsists oi any oi the

raaSes contents positions or sivecooT <!ATTLIST style:properties fo:protect CtATA tIMPLIEt< n T X L does not sSpport this propertyc

Oorikontaa PositionThe style:horivontal-pos property speiiiies the horikontaa aaignment oi the irame in reaation to thespeiiiii areac

rg int T style:horivontal-posRrT 9T The raaSe oi this property ian be one oi the ioaaoting: from-lefts lefts centers rights

from-insites insites or outsitec The area that the position reaates to is speiiiied by thestyle:horivontal-rel propertyc The raaSes from-insites insite and outsiteiorrespond to the raaSes from-lefts aefts and right on pages that hare an odd pagenSmber and to the opposite raaSes on pages that hare an eren page nSmberc

i the property raaSe is from-left or from-insites the svg:x attribSte assoiiated tith theirame eaement speiiiies the horikontaa position oi the iramec Othertise the svg:x attribSte isignored ior te.t doiSmentsc

t is aaso possibae to Sse an svg:x attribSte tithin a graphii styaec i this is the iases then theattribSte speiiiies a deiaSat position ior net irames that are ireated Ssing this styaec

ome raaSes may be Ssed in ionneition tith iertain irame anihor and reaation types onayc

ooT <!ATTLIST style:properties style:horivontal-pos (from-left|left|center|right|from-insite|insite|outsiteytIMPLIEt<

Oorikontaa eaationThe style:horivontal-rel property speiiiies the area to thiih the horikontaa position oi a irame reaatesc ee the prerioSs seition ior iniormation on the style:horivontal-pos propertyc

rg int T style:horivontal-relRrT 9T The raaSe oi this property ian be one oi the ioaaoting: pages page-contents page-start-

margins page-ent-margins frames frame-contents frame-start-marginsframe-ent-margins paragraphs paragraph-contents paragraph-start-margins paragraph-ent-margins or charcYoS ian Sse some raaSes tith iertain irame anihor types onayc

The raaSe start-margin determines the aeit margins e.iept then the horikontaa position isfrom-insites insite or outsite and the anihor ior the irame is on a page tith an erenpage nSmbers in thiih iase it determines the right marginc The raaSe ent-margin determinesthe opposite margin to the start-margin raaSesc

ooT <!ATTLIST style:properties style:horivontal-rel (page|page-content|page-start-margin| page-ent-margin|frame|frame-content| frame-start-margin|frame-ent-margin| paragraph|paragraph-content|paragraph-start-margin| paragraph-ent-margin|chary tIMPLIEt<

Chapter 2 Common Document Content 99

Page 100: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Vertiiaa PositionThe style:vertical-pos property speiiiies the rertiiaa aaignment oi the irame in reaation to a speiiiii areac

rg int T style:vertical-posRrT 9T The raaSe oi this property ian be one oi the ioaaoting: from-tops tops mittles or bottomc

The area that the position reaates to is speiiiied by the style:vertical-rel propertyc i the raaSe oi this property is from-tops the svg:y attribSte assoiiated tith the irame eaementspeiiiies the rertiiaa position oi the iramec Othertises the svg:y attribSte is ignored ior te.tdoiSmentsc

t is aaso possibae to Sse an svg:y attribSte tithin a graphii styaec i this is the iases the attribStespeiiiies a deiaSat position ior net irames that are ireated Ssing this styaec

ome raaSes may be Ssed in ionneition tith iertain irame anihor and reaation types onayc

ooT <!ATTLIST style:properties style:vertical-pos (from-top|top|mittle|bottomy tIMPLIEt<

Vertiiaa eaationThe style:vertical-rel property speiiiies the area to thiih the rertiiaa position oi a irame reaatesc eethe prerioSs seition ior iniormation on the style:vertical-pos propertyc

rg int T style:vertical-relRrT 9T The raaSe oi this property ian be one oi the ioaaoting: pages page-contents frames

frame-contents paragraphs paragraph-contents lines baselines or charcYoS ian Sse some raaSes tith iertain irame anihor types onayc

ooT <!ATTLIST style:properties style:vertical-rel (page|page-content|frame|frame-content| paragraph|paragraph-content|line|baseline|char|texty tIMPLIEt<

Frame nihor n te.t doiSmentss erery irame mSst hare an anihorc Frame anihors are desiribed in detaia in Chapter 4c

Frame BaikgroSndThe baikgroSnd properties ior a irame are speiiiied in the same tay as the baikgroSnd properties ior a para-graphc ee Chapter 4 ior more iniormationc

Border s Border Line Didths Paddings hadots and CoaSmns ee Chapter 4 ior iniormation on these propertiesc

Editabae te.t bo. ian be editabae eren ii the doiSment in thiih it is iontained is a read-onay doiSmentc The style:

100 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 101: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

etitable property speiiiies ii a te.t bo. ian be editedc

rg int T style:etitableRrT 9T

ooT <!ATTLIST style:properties style:etitable %boolean; tIMPLIEt< n T X L does not sSpport this propertyc

oT 14un1Tuu4un1T

This property is onay sSpported by OpenOiiiiecorg Driterc

DrappingThe style:wrap property speiiiies hot te.t aroSnd a irame is treatedc For e.ampaes te.t ian rSn aroSnd theaeit side oi the irames aroSnd the right side oi the irames or throSgh the iramec

rg int T style:wrap RrT 9T

ooT <!ATTLIST style:properties style:wrap (none|left|right|parallel|tynamic|run-throughy

n T X L does not sSpport the ioniept oi trappingc nsteads the trap mode oi a irame is determinedby the anihor typec i trapping is disabaed or aaaoted ior a singae paragraph onays this ian besimSaated by an fo:clear property that is attaihed to an eaement ioaaoting the iramec

oT 14un1Tuu4un1T

CSrrentays this property is onay eraaSated by OpenOiiiiecorg Driterc

Paragraph-onay Drapping i the anihor position oi a irame is a paragraph or a iharaiters and the trap mode speiiiied by the style:wrapproperty is lefts rights parallels or tynamics yoS ian speiiiy the nSmber oi paragraphs that traparoSnd the iramec

rg int T style:number-wrappet-paragraphsRrT 9T This property is onay reiogniked by irames or styaes that hare a style:wrap property attaihed

tith a raaSe oi lefts rights parallels or tynamicc i the raaSe is no-limits there is no aimit on the nSmber oi paragraphs that are aaaoted to traparoSnd a iramec

ooT <!ATTLIST style:properties style:number-paragraphs-wrappet %number_or_no_limit; tIMPLIEt<

oT 14un1Tuu4un1T

This property is onay eraaSated by OpenOiiiiecorg Driterc

CSrrentays ii the raaSe oi this property is set to any nSmber other than 1s the eiieit on the irame isthe same as ii the raaSe tas set to no-limitc

ContoSr DrappingFor some irame types yoS ian speiiiy that the te.t shoSad trap aroSnd the shape oi the objeit in the irame ratherthan aroSnd the irame itseaic This is iaaaed iontoSr trappingc

Chapter 2 Common Document Content 101

Page 102: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:wrap-contourRrT 9T This property is onay reiogniked by irames or styaes that hare a style:wrap property attaihedcooT <!ATTLIST style:properties style:wrap-contour %boolean;

tIMPLIEt<oT 14un1 uu4un1T

This property is onay eraaSated by OpenOiiiiecorg Driterc

ContoSr Drapping ode i the style:wrap-contour attribSte is presents yoS ian iSrther speiiiy hot the te.t shoSad trap aroSnd theiontoSrc

rg int T style:wrap-contour-moteRrT 9T This attribSte is onay reiogniked by irames or styaes that aaready hare the style:wrap and

style:wrap-contour attribStes attaihedc The raaSe oi the attribSte ian be outsite or fullc i the raaSe oi the attribSte is outsites thete.t traps aroSnd the generaa area to the aeit and right oi the shapec i the raaSe oi the attribSte isfulls the te.t traps aroSnd the shape and iiaas any possibae spaies and indentations in the shapec

ooT <!ATTLIST style:properties style:wrap-contour-mote (full|outsitey tIMPLIEt<

oT 14un1 uu4un1T

This property is onay eraaSated by OpenOiiiiecorg Driterc

Sn ThroSgh i the raaSe oi the style:wrap attribSte is run-throughs yoS ian iSrther speiiiy thether the iontent oi theirame shoSad be dispaayed in the baikgroSnd or in the ioregroSndc This attribSte is SsSaaay Ssed ior transparentobjeitsc

rg int T style:run-throughRrT 9T The raaSe oi this attribSte ian be foregrount or backgrountc i the raaSe is foregrounts

the irame iontent is dispaayed in iront oi the te.tc i the raaSe is backgrounts the irame iontentis dispaayed behind the te.tc

ooT <!ATTLIST style:attributet style:run-through (foregrount|backgrounty<

n T X L does not sSpport this propertyc

irroringThe style:mirror property speiiiies thether or not an image is mirrored beiore it is dispaayedc Themirroring ian be rertiiaa or horikontaac Oorikontaa mirroring ian be restriited to images that are onay aoiated oneither odd or eren pagesc

102 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 103: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:mirrorRrT 9T The raaSe oi this attribSte ian be nones verticals horivontals horivontal-on-otts or

horivontal-on-evenc YoS ian speiiiy the raaSe vertical and the rarioSs horikontaaraaSes togethers separating them by a thite spaiec

ooT <!ATTLIST style:properties style:mirror CtATA tIMPLIEt<

CaippingThe fo:clip property speiiiies thether to dispaay: ● reitangSaar seition oi an image

or

● The entire image

rg int T fo:clipRrT 9T

ooT <!ATTLIST style:properties fo:clip CtATA tIMPLIEt< n T This attribSte is the same in X Lc

c6c0 Faoating Frame Formatting PropertiesThe attribStes desiribed in this seition ian be assigned to a graphii styae that is assigned to iaoating iramesc

Dispaay iroaabarThis attribSte speiiiies thether or not rertiiaa and horikontaa siroaabars are dispaayedc

rg int T traw:tisplay-scrollbarRrT 9T This attribSte ian be assigned to aStomatii styaes onayc

ooT <!ATTLIST style:properties traw:tisplay-scrollbar %boolean;tIMPLIEt<

n T i this attribSte is not speiiiieds siroaabars are dispaayed ii they are reqSiredc

Dispaay BorderThis attribSte speiiiies thether or not a border is dispaayed on the iaoating iramec

rg int T traw:tisplay-borterRrT 9T This attribSt eian be assigned to aStomatii styaes onayc

ooT <!ATTLIST style:properties traw:tisplay-borter %boolean;tIMPLIEt<

n T This attribSte is not the same as the fo:borter propertyc

Chapter 2 Common Document Content 103

Page 104: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

arginsThese attribStes speiiiy the horikontaa and rertiiaa margins betteen the border and the iontent oi the iaoatingiramec i these attribStes are not speiiiieds the deiaSat margins are Ssedc

rg int T traw:margin-horivontal traw:margin-vertical

RrT 9T These attribStes ian be assigned to aStomatii styaes onayc

The raaSe oi these attribStes mSst be a aength in pi.easc

ooT <!ENTITY % nonNegativePixelLength "CtATA"<<!ATTLIST style:properties traw:margin-horivontal %nonNegativePixelLength; tIMPLIEt<<!ATTLIST style:properties traw:margin-vertical %nonNegativePixelLength; tIMPLIEt<

c6c04 Objeit Formatting PropertiesThe attribStes desiribed in this seition ian be assigned to a graphii styae that is assigned to objeitsc

Visibae reaThe risibae area oi an objeit is the reitangSaar area oi the objeit that is iSrrentay risibaec Dhen the entire objeit isrisibaes the raaSes oi the traw:visible-area-left and traw:visible-area-top attribStes are 0and the traw:visible-area-witth and traw:visible-area-height attribStes speiiiy the sike oithe objeitc

rg int T traw:visible-area-lefttraw:visible-area-toptraw:visible-area-witthtraw:visible-area-height

RrT 9T These attribStes ian be assigned to aStomatii styaes onayc

ooT <!ATTLIST style:properties traw:visible-area-left %nonNegativeLength; tIMPLIEt<<!ATTLIST style:properties traw:visible-area-top %nonNegativeLength; tIMPLIEt<<!ATTLIST style:properties traw:visible-area-witth %positiveLength; tIMPLIEt<<!ATTLIST style:properties traw:visible-Area-height %positiveLength; tIMPLIEt<

oT 14un1Tuu4un1T

Not aaa objeits aSpport these attribStesc ome objeitss sSih as aaa OpenOiiiiecorg objeitss storeand aoad their otn risibae areac These attribStes speiiiy a deiaSat risibae area that the objeit hasthe option to Ssec

c6c09 Frame ErentsYoS ian assign erents to a iramec The erents that are attaihed tos ior e.ampaes a te.t bo. or an images are repre-sented by an erent eaement as desiribed in eition c00c This eaement is iontained tithin the irame type eaementsior e.ampaes the <traw:text-box< eaement or the <traw:image< eaementc

104 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 105: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

cm Forms and Controas ee the ihapter entitaed soem hontent ior iniormation aboSt iorms and iontroasc

cr OyperainksThis seition desiribes hot the OpenOiiiiecorg X L iiae iormat represents hyperainks in doiSmentsc

crc0 impae Oyperainks simpae hyperaink is a aink that aoiates one resoSrie onayc impae hyperainks are represented by the <office:a< eaementc

rg int T <traw:a<RrT 9T This eaement is an XLink and has some attribStes tith ii.ed raaSes and desiribe the semantiis oi

the ainkc The eaement's iontent is the irame that shoSad be the soSrie oi the ainkc

ooT <!ELEMENT traw:a %frame;<<!ATTLIST traw:a xlink:type (simpley tFIXEt "simple"<<!ATTLIST traw:a xlink:actuate (oneequesty "oneequest"<

The attribStes that yoS ian assoiiate tith the <traw:a< eaement are:● Link aoiation

● Link target irame

● Name

● errer side image map

Link LoiationThe xlink:href attribSte speiiiies the target aoiation oi the ainkc

rg int T xlink:hrefRrT 9T

ooT <!ATTLIST traw:a xlink:href %url; teEt|IeEt<

Link Target FrameThe office:target-frame attribSte speiiiies the target irame oi the ainkc

Chapter 2 Common Document Content 105

Page 106: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T office:target-frameRrT 9T This attribSte ian hare one oi the ioaaoting raaSes:

● _self : The reierenied doiSment repaaies the iontent oi the iSrrent iramec● _blank : The reierenied doiSment is dispaayed in a net iramec● _parent : The reierenied doiSment is dispaayed in the parent irame oi the iSrrent iramec● _top : The reierenied doiSment is dispaayed in the topmost irames that is the irame that

iontains the iSrrent irame as a ihiad or desiendent bSt is not iontained tithin another iramec

● irame name : The reierenied doiSment is dispaayed in the named iramec i the named iramedoes not e.ists a net irame tith that name is ireatedc

To ioniorm tith the XLink peiiiiiations an additionaa xlink:show attribSte is attaihed tothe <traw:a< eaementc ee page 9 ior a pointer to the XLink peiiiiiationc i the raaSe oi thethis attribSte is _blanks the xlink:show attribSte raaSe is newc i the raaSe oi the thisattribSte is any oi the other raaSe optionss the raaSe oi the xlink:show attribSte is replacec

ooT <!ATTLIST traw:a office:target-frame CtATA "_blank"<<!ATTLIST traw:a xlink:show (new|replacey "replace"<

Name simpae aink ian hare a names bSt it is not essentiaac The office:name attribSte speiiiies the name oi the ainkcThe name ian serre as a target ior other hyperainksc

rg int T office:nameRrT 9T The name does not hare to be SniqSec

ooT <!ATTLIST traw:a office:name CtATA tIMPLIEt< n 9T This attribSte is speiiiied ior iompatibiaity tith OT L onays there an <a< eaement may serre

as a aink soSrie and target simSataneoSsayc De strongay reiommend that yoS do not Sse thisattribSte ior any pSrpose other than to represent ainks that originaaay iame irom a OT L doiS-mentc

errer ide mage ap aink ian be a serrer side image mapc The office:server-map attribSte is Ssed by the serrer to determinethiih aink to aitirate tithin the image mapc i this attribSte is presents the moSse ioordinates oi the iaiik positionoi the irame are appended to the L oi the ainkc

rg int T office:server-mapRrT 9T

ooT <!ATTLIST traw:a office:server-map %boolean; "FALSE"<

crc Caient ide mage aps n image map is a ioaaeition oi hyperainks that are assoiiated tith graphii eaementsc The image map is aseqSenie oi image map eaementsc Eaih image map eaement assoiiates a hyperaink tith an areac The area ian beone oi the ioaaoting shapes:

106 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 107: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● eitangSaar

● CiriSaar

● Poaygonaa

The <traw:image-map< eaement represents an image mapc

rg int T <traw:image-map<RrT 9T

ooT <!ELEMENT traw:image-map (traw:area-rectangle|traw:area-circle|traw:area-polygonya<

The <traw:image-map< eaement ian iontain three types oi image map eaementss thiih represent the threetypes oi image map areas as ioaaots:

● eitangSaar image map eaements

● CiriSaar image map eaements

● Poaygonaa image map eaements

n : mage map eaements are desiribed in terms oi absoaSte positionsc Dhen aoading the X L iiaes OpenOiiiiecorg maps the image map onto its assoiiated graphiiaa eaements ior e.ampae an images in its originaa sikec Theappaiiation siaaes the image map to matih the iSrrent sike oi the images bSt in the iiae iormat the image is aatayssared in its Snsiaaed rersions matihing the dimensions oi the Snsiaaed imagec

eitangSaar mage ap reasThe <traw:area-rectangle< eaement desiribes a reitangSaar image map areac

rg int T <traw:area-rectangle<RrT 9T The attribStes dispaayed beaot are reqSiredc The attribStes desiribed in the hommon rmame sap

Ttteibutes seition are optionaac

ooT <!ELEMENT traw:area-rectangle (svg:tesc?,office:events?y<<!ATTLIST traw:area-rectangle svg:x %coortinate; teEt|IeEt<<!ATTLIST traw:area-rectangle svg:y %coortinate; teEt|IeEt<<!ATTLIST traw:area-rectangle svg:witth %coortinate;teEt|IeEt<<!ATTLIST traw:area-rectangle svg:height %coortinate;teEt|IeEt<

CiriSaar mage ap reasThe <traw:area-circle< eaement desiribes a iiriSaar image map areac The additionaa attribStes ior iiriSaarimage maps are desiribed beaot in the iommon attribStes seitionc

Chapter 2 Common Document Content 107

Page 108: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <traw:area-circle<RrT 9T The attribStes dispaayed beaot are reqSiredc The svg:cx and svg:cy attibStes speiiiy the

ienter point oi the iiriaec The svg:r attribSte speiiiies the radiSs oi the iiriaecThe attribStes desiribed in the hommon rmame sap Ttteibutes seition are optionaac

ooT <!ELEMENT traw:area-circle (svg:tesc?,office:events?y<<!ATTLIST traw:area-circle svg:cx %coortinate; teEt|IeEt<<!ATTLIST traw:area-circle svg:cy %coortinate; teEt|IeEt<<!ATTLIST traw:area-circle svg:r %coortinate; teEt|IeEt<

Poaygonaa mage ap reasThe <traw:area-polygon< eaement desiribes a poaygonaa image map areac poaygonaa image map area isiomprised oi the ioaaoting iomponents:

● boSnding bo.cThe boSnding bo.s thiih is represented in the same tay as a reitangSaar image map area Ssing the svg:xssvg:ys svg:witths and svg:height attribStess estabaishes the reierenie irame ior the riet bo. and thepoaygon point seqSeniec The reierenie irame enabaes the ioordinates to be transaated into absoaSte ioordi-natesc

● riet bo.cThe riet bo. estabaishes a ioordinate system ior the point seqSeniec The riet bo. obriates the need toreiord erery point oi the point seqSenie as absoaSte ioordinates tith aength and Snit oi measSrementc

● seqSenie oi points in riet bo. ioordinatesc

For more iniormation aboSt hot to represent poaygonss see Chapter 55c4c9c

rg int T <traw:area-polygon<RrT 9T The attribStes dispaayed beaot are reqSiredc The attribStes desiribed in the hommon rmame sap

Ttteibutes seition are optionaac

ooT <!ELEMENT traw:area-polygon (svg:tesc?,office:events?y<<!ATTLIST traw:area-polygon svg:x %coortinate; teEt|IeEt<<!ATTLIST traw:area-polygon svg:y %coortinate; teEt|IeEt<<!ATTLIST traw:area-polygon svg:witth %coortinate; teEt|IeEt<<!ATTLIST traw:area-polygon svg:height %coortinate; teEt|IeEt<<!ATTLIST traw:area-polygon svg:points %points; teEt|IeEt<<!ATTLIST traw:area-polygon svg:viewBox CtATA teEt|IeEt<

E4oT TinTy.n14Tiu4. i4oi4I 4

The eaement shotn in the ioaaoting e.ampae deiines a triangae that is aoiated in the middae oi a im by imimagec The boSnding bo. iorers an area oi im by 0c5imc One riet bo. Snit iorresponds to 2c20mmc

<traw:area-polygon … svg:xp"0" svg:yp"0" svg:witthp"2.0cm" svg:heightp"2.0cm" svg:viewBoxp"0 0 2000 2000" svg:pointsp":00,1400 1:00,1400 1000,:00"/<

Common mage ap ttribStes n addition to the shape attribStess eaih image map eaement ian iontain the ioaaoting iniormation:

● Links iniaSding a L and aink target iramec

108 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 109: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Namec

● naitire iaagc

● Desiriptionc se the <svg:tescription< ihiad eaementc● Erents assoiiated tith the areac se the <office:events< ihiad eaementcOther attribStes oi the image maps are taken irom the OT L image map representationc

Eaih image map eaement identiiies a hyperaink and Sses the Xaink hrefs types and show attribStess and theoffice:target-frame-name attribSte to desiribe the ainkc

rg int T xlink:hrefRrT 9T

ooi 4oT T <!ATTLIST traw:area-polygon xlink:href %url; tIMPLIEt<<!ATTLIST traw:area-polygon xlink:type (simpley tIMPLIEt<<!ATTLIST traw:area-polygon xlink:show (new|replacey tIMPLIEt<<!ATTLIST traw:area-polygon office:target-frame-name CtATAtIMPLIEt<

The office:name attribSte assigns a name to eaih image map eaementc

rg int T office:nameRrT 9T

ooi 4oT T <!ATTLIST traw:area-polygon office:name CtATA tIMPLIEt<

The traw:nohref attribSte deiaares that the image map eaement and the assoiiated area is inaitirec The Lthat is iontained in the image map eaement is not Ssedc

rg int T traw:nohrefRrT 9T

ooT <!ATTLIST traw:area-polygon traw:nohref (nohrefy tIMPLIEt< n T n OT Ls this is aihiered by Ssing the nohref attribStec

c NSmber FormatThe OpenOiiiiecorg X L nSmber iormat ionsists oi three parts:

● Preii. P the te.t that is dispaayed beiore the nSmber

● Dispaay iormat speiiiiiations ior e.ampaes s Bs Cs or 0s s 4

● Siii. P the te.t that is dispaayed aiter the nSmber

c c0 Preii. and Siii.The style:num-prefix and style:num-suffix attribStes speiiiy that to dispaay beiore and aiter thenSmberc

Chapter 2 Common Document Content 109

Page 110: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:num-prefix and style:num-suffixRrT 9T i the preii. and sSiii. do not iontain aaphanSmerii iharaiterss an X LT format attribSte ian

be ireated irom the OpenOiiiiecorg attribStes by ioniatenating the raaSes oi the style:num-prefixs style:num-format, and style:num-suffix attribStesc

ooT <!ATTIST style:properties style:num-prefix CtATA tIMPLIEt<<!ATTIST style:properties style:num-prefix CtATA tIMPLIEt<

n T Dithin the X LT format attribStes the preii. and sSiii. ian onay be non-aaphanSmerii iharai-tersc This restriition does not appay to OpenOiiiiecorg soittarec

c c Format peiiiiiationThe style:num-format attribSte speiiiies the iormat oi the nSmberc

rg int T style:num-formatRrT 9T The raaSe oi this attribSte ian be "0"s "a"s " "s "i"s or " "c

ooT <!ATTLIST style:properties style:num-format CtATA tIMPLIEt< n T The raaid raaSes ior this attribSte hare the same meanings as a singae aaphanSmerii token that

appears tithin an X LT format attribStec

c c4 Letter ynihronikation in NSmber Formats i aetters are Ssed in aaphabetiiaa order ior nSmberings there are tto tays to proiess oreriaots tithin a digits asioaaots:

● YoS ian insert a net digit starting tith a raaSe oi a or s that is iniremented erery time an oreriaot oiiSrs inthe ioaaoting digitc The nSmbering seqSenie in this iase is something aike asbsis cccs ks aasabsais cccsaks bas cccsand so onc

● YoS ian insert a net digit that aatays has the same raaSe as the ioaaoting digitc The nSmbering seqSenie inthis iase is something aike as bs is cccs ks aas bbs iis cccs kks aaas cccs and so onc This is iaaaed T Ii9y1orIn1u 4-un1c

rg int T style:num-letter-syncRrT 9T

ooT <!ATTLIST style:properties style:num-letter-sync %boolean;tIMPLIEt<

n T X LT does not sSpport aetter synihronikationc

c02 iripts iripts do not impay a siripting aangSage or an objeit modeac For this reasons a siript ian operate on the DoiS-ment Objeit odea iDO o oi an OpenOiiiiecorg X L doiSment or on the OpenOiiiiecorg P c

iripts iannot modiiy a doiSment thiae the doiSment is aoadingc Ooterers some erents are iaaaed immediateayaiter the doiSment is aoadedc

Eaih siript is represented by a <script:script< eaementc

110 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 111: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <script:script<RrT 9T This eaement iontains the soSrie iode oi the siriptc t ian aaso optionaaay iontain a iompiaed

rersion oi the siriptc The iompiaed rersion oi the siript is iontained tithin a <script:byte-cote< baoiks thiih ian iontain any iontentc aa siripts are iontained tithin the siriptingseition oi a doiSmentc

n T Jara iript siripts that operate on the OT L DO are speiiaa siripts that hare their otn repre-sentation and they ian onay be Ssed in te.t doiSmentsc

c00 Erent Tabaes any objeits sSih as iontroass imagess te.t bo.ess or an entire doiSment sSpport erentsc n erent binds theoiiSrrenie oi a partiiSaar iondition to an aition that is e.eiSted ii the iondition arisesc For e.ampaes ii a Sserpaaies the iSrsor orer a graphiis this iondition triggers an aition that is sSpported by OpenOiiiiecorgc This erentsiaaaed "on-moSse-orer"s ian be assoiiated tith an OpenOiiiiecorg mairo that is e.eiSted thenerer the ionditionoiiSrss that iss thenerer a Sser paaies the iSrsor orer a graphiic

The X L representation oi erents and erent tabaes is strSitSred as ioaaots:

● aa oi the erent eaements that are assoiiated tith an objeit are aoiated in a iontainer eaement iaaaed<office:events<c

● Eaih erent-to-aition assoiiation is reiorded in one <script:event< eaementc ● Depending on the type oi aition that the erent triggerss the ioaaoting eaements are Ssed:

➢ The <script:event< eaement represents erents that are boSnd to a mairo or siriptc ➢ The <presentation:event< eaement represents erents that are boSnd to an aition that is speiiiii

to a presentations ior e.ampaes go to the ne.t pagec

The <office:events< eaement speiiiies the tabae oi erents that are assoiiated tith an objeitc

rg int T <office:events<RrT 9T

ooT <!ELEMENT office:events (script:event,presentation:eventyt<

c00c0 ErentThe <script:event< eaement binds an erent to an OpenOiiiiecorg mairoc

rg int T <script:event<RrT 9T

ooT <!ELEMENT script:event (tPCtATAy<oT 14un1Tuu4un1T

The onay siript aangSage that is iSrrentay sSpported is tarBasiic Other siript aangSages may besSpported in the iStSrec

The attribStes that yoS ian assoiiate tith the <script:event< eaement are:● Erent name

● iript aangSage

● Library name

Chapter 2 Common Document Content 111

Page 112: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● airo name

Erent NameThe script:event-name attribSte speiiiies the name oi the erentc

rg int T script:event-nameRrT 9T

ooT <!ATTLIST script:event script:event-name CtATA teEt|IeEt<

iript LangSageThe script:language attribSte speiiiies the siripting aangSage in thiih the mairo or siript thiih is assoii-ated tith the erent is trittenc

rg int T script:languageRrT 9T

ooT <!ATTLIST script:event script:language CtATA teEt|IeEt<

airo Name The script:macro-name attribSte speiiiies the name oi the OpenOiiiiecorg mairo assoiiated tith the erentc

rg int T script:macro-nameRrT 9T

ooT <!ATTLIST script:event script:macro-name tIMPLIEt<

Library NameThe script:library attribSte speiiiies the aibrary in thiih the OpenOiiiiecorg mairo assoiiated tith theerent is iontainedc

rg int T script:libraryRrT 9T

ooT <!ATTLIST script:event script:library tIMPLIEt<

c0 Change TraikingChange traiking iontent and strSitSre raries depending on the type oi doiSment yoS are traikingc For e.ampaesihange traiking in te.t doiSments is rery diiierent irom ihange traiking in spreadsheetsc The same appaies to theX L iiae iormats oi these doiSment typesc Ooterers the integration oi ihange traiking iniormation ioaaots thesame design priniipaes in both appaiiations and one X L eaement is Ssed by both doiSment typesc For moreiniormation on ihange traiking in a partiiSaar type oi the doiSments see the appropriate ihapter oi this bookc

n both te.t doiSments and spreadsheetss the deiaSat doiSment iaot oi an X L doiSment reiaeits the iSrrentstate oi the doiSmentc n X LT styaesheet or any other appaiiation that does not aiknotaedge ihange traiking

112 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 113: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

iniormations does ior e.ampaes proiess aaa insertions into the doiSment bSt does not proiess any deaetionsc nser-tions are part oi the deiaSat doiSment iaots thiae deaetions appear oStside the deiaSat doiSment iaotc Dhen anappaiiation proiesses a doiSment in its iSrrent states it does not interpret ihange traiking iniormationc Dhen anappaiiation proiesses the iontent oi insertions or deaetions to the doiSments it mSst interpret the ihange traikinginiormationc

X LT styaesheets are not intended to proiess ihange traiking iniormation and the representation oi ihangetraiking iniormation is not optimiked to be proiessed by sSih siriptsc Thereiores it is aamost impossibae ior anX LT spreadsheet to make deaetions risibae or insertions inrisibaec To do thiss yoS need a binary appaiiation or anappaiiation that proiesses the DO oi a doiSmentc

c0 c0 Change niormationThere is some iniormation that aaa traiked ihanges hare in iommonc The ihange iniormation is represented by a<office:change-info< eaement and the iommon pieies oi iniormation are represented by attribStes assoii-ated tith the eaementc

rg int T <office:change-info< RrT 9T

ooT <!ELEMENT office:change-info (text:pya<

The attribStes that yoS ian assoiiate tith the <office:change-info< eaement are:● Sthor

● Date and time

● Comment ioptionaao

SthorThe office:chg-author attribSte speiiiies the name oi the aSthor tho ihanged the doiSmentc

rg int T office:chg-authorRrT 9T

ooT <!ATTLIST office:change-info office:chg-author CtATAteEt|IeEt<

Date and TimeThe office:chg-tate-time attribSte speiiiies the date and time then the ihange took paaiec

rg int T office:chg-tate-time RrT 9T

ooT <!ATTLIST office:change-info office:chg-tate-time %tate;teEt|IeEt<

CommentThe <office:change-info< eaement iontains a iomment irom the aSthor aboSt a ihangec

Chapter 2 Common Document Content 113

Page 114: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

E4oT Tih4oT ior41. iu1enI4un1

<office:change-info office:chg-authorp”Michael Brauer” office:chg-tate-timep”1999-0:-1-T1::04:2-”< <text:p<Section about sections reworket to meet requirements of pagestyles</text:p<</office:changet<

c04 OpenOiiiiecorg ppaiiation ettingsThe OpenOiiiiecorg appaiiation settings are iontained in a <office:settings< eaementc

rg int T <office:settings<RrT 9T

ooT <!ELEMENT office:settings (config:config-item-setty<

The settings ior OpenOiiiiecorg appaiiations are dirided into the ioaaoting tto iategories:

● DoiSment settingss ior e.ampae deiaSat printerc

● Viet settingss ior e.ampae koom aereac

ettings that are shared by diiierent appaiiations hare the same name and are oi the same typec

c04c0 Base ettingsThe <config:config-item< eaement iontains aaa base settingsc

rg int T <config:config-item<RrT 9T The config:name attribSte identiiies the name oi the settingc

The config:type attribSte identiiies the type oi settingc The raaSe oi the setting is stored in the eaementc

ooT <!ELEMENT config:config-item (tPCtATAy<<!ATTLIST config:config-item config:name CtATA teEt|IeEt config:type (boolean | short |int | long | touble | string | tatetime | base::BinaryyteEt|IeEt<

c04c eqSenie oi ettingsThe <config:config-item-set< eaement is a iontainer eaement ior aaa types oi setting eaementsc Thesettings ian be iontained in the eaement is any orderc

114 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 115: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <config:config-item-set<RrT 9T

ooT <!ELEMENT config:config-item-set (config:config-item | config:config-item-set | config:config-item-map-namet | config:config-item-map-intexetyt<<!ATTLIST config:config-item config:name CtATA teEt|IeEt<

c04c4 nde. iiess oi eqSeniesThe <config:config-item-map-intexet< eaement is a iontainer eaement ior seqSeniesc The orderspeiiiies the inde. oi the eaementsc

rg int T <config:config-item-map-intexet<RrT 9T The config:name attribSte is reqSired tith this eaementcooT <!ELEMENT config:config-item-map-intexet (config:config-item-

map-entryyt<<!ATTLIST config:config-item-map-intexet config:name CtATAteEt|IeEt<

ap EntryThe <config:config-item-map-entry< eaement is a iontainer eaement ior aaa types oi setting eaementsc

rg int T <config:config-item-map-entry<RrT 9T The config:name attribSte is optionaa tith this eaementcooT <!ELEMENT config:config-item-map-entry (config:config-item |

config:config-item-set | config:config-item-map-namet |config:config-item-map-intexetyt<<!ATTLIST config:config-item-map-entry config:name CtATAtIMPLIEt<

c04c9 Name iiess oi eqSeniesThe <config:config-item-map-namet< eaement is a iontainer eaement ior seqSeniesc

rg int T <config:config-item-map-namet<RrT 9T The config:name attribSte is reqSired tith this eaementcooT <!ELEMENT config:config-item-map-namet (config:config-item-

map-entryyt<<!ATTLIST config:config-item-map-namet config:name CtATAteEt|IeEt<

Chapter 2 Common Document Content 115

Page 116: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion
Page 117: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4 Te.t Content

This ihapter desiribes the OpenOiiiiecorg X L representation oi te.t iontentc t iontains the ioaaoting seitions:

● Oeadings and Paragraphs

● eitions

● BSaaeted and NSmbered Lists

● OStaine NSmbering

● Line NSmbering

● Footnotes and Endnotes

● Fieads

● Variabae Fieads

● Frames in Te.t DoiSments

● Sby

● Te.t Formatting Properties

● Paragraph Formatting Properties

● eition Formatting Properties

● Change Traiking in Te.t DoiSments

● Optionaa niormation

4c0 Oeadings and ParagraphsThis seition desiribes the X L eaements and attribStes that yoS Sse to represent heading and paragraph iompo-nents in a te.t doiSmentc

4c0c0 Primary Oeading and Paragraph ComponentsThe X L eaements that represent both headings and paragraphs are iaaaed o4I4.I4ori T 1c

117

CHAPTER 3

Page 118: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T For headings:

<text:h<For paragraphs:

<text:p<RrT 9T The te.t oi the paragraph is iontained in the paragraph eaementc t ian be mi.ed tith many other

eaementsc

ooT <!ENTITY % inline-text "text:s|text:tab-stop|text:line-break| text:span|text:a| %frames;|%fielts;|text:footnote| text:ref-point|text:bookmark| text:bookmark-start|text:bookmark-ent| text:change|text:change-start| text:change-ent"<<!ELEMENT text:p (tPCtATA|%inline-text;ya<<!ELEMENT text:h (tPCtATA|%inline-text;ya<

i the paragraph eaement or any oi its ihiad eaements iontains thite-spaie iharaiterss they are ioaaapseds in othertords they areIproiessed in the same tay that OT L proiesses themc The ioaaoting niiode iharaiters arenormaaiked to a P CE iharaiter:

● OO 1ONT L T B L T ON i2.222 o

● C GE ET N i2.222Do

● L NE FEED i2.222 o

● P CE i2.22 2o

n additions these iharaiters are ignored ii the preieding iharaiter is a thite-spaie iharaiterc The preieding ihar-aiter ian be iontained in the same eaements in the parent eaements or in the preieding sibaing eaements as aong as itis iontained tithin the same paragraph eaement and the eaement in thiih it is iontained proiesses thite-spaieiharaiters as desiribed aborec

Dhite-spaie proiessing takes paaie tithin the ioaaoting eaements:

● <text:p<● <text:h<● <text:span<● <text:a<● <text:ref-point<● <text:ref-point-start<● <text:ref-point-ent<● <text:bookmark<● <text:bookmark-start<● <text:bookmark-ent< n T n X Ls yoS ian enabae thite-spaie proiessing oi a paragraph oi te.t by attaihing an fo:white-spacep"collapse" attribSte to the <fo:block< eaement that iorresponds to the paragraph eaementc

118 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 119: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The attribStes that yoS ian assoiiate tith heading and paragraph eaements are:

● Oeading aerea

● tyae and ionditionaa styae

● Paragraph iormatting properties

Oeading LereaThe text:level attribSte assoiiated tith the heading eaement determines the aerea oi the headings iore.ampaes Oeading 0s Oeading s and so onc

rg int T text:levelRrT 9T This attribSte is assoiiated tith a <text:h< eaementcooT <!ATTLIST text:h text:level %number; "1"< n T YoS mSst appay the same styae to aaa headings oi the same aereac

tyae and Conditionaa tyaeThe styae and ionditionaa styae attribStes are optionaac

rg int T text:style-name and text:cont-style-nameRrT 9T The raaSes oi these attribStes are styae namess thiih is sSiiiiient to identiiy a styae beiaSse erery

styae addressed mSst be a paragraph styaec

i a ionditionaa styae is appaied to a paragraphs the text:style-name attribSte iontains thename oi the styae that is appaied Snder that ionditionc The text:style-name attribSte doesnot iontain the name oi the ionditionaa styae that iontains the ionditions and maps to other styaescThe ionditionaa styae name is the raaSe oi the text:cont-style-name attribStec

ooT <!ATTLIST text:p text:style-name %style-name; teEt|IeEt<<!ATTLIST text:p text:cont-style-name %style-name; tIMPLIEt<<!ATTLIST text:h text:style-name %style-name; teEt|IeEt<<!ATTLIST text:h text:cont-style-name %style-name; tIMPLIEt<

n T This X L strSitSre simpaiiies X LT transiormations beiaSse X LT onay has to aiknotaedge theionditionaa styae ii the iormatting attribStes are reaerantc The reierenied styae ian be a iommonstyae or an aStomatii styaec

inie most doiSments Sse one paragraph styae ior the majority oi paragraphs in the doiSments there are paans todereaop a deiaSat styae name ior paragraphsc

E4oT TihyT 9i41tion1tuun14Ti9yT 9iu1ito 1teeuo inI.irg

<text:p text:style-namep"meating 1"<"meating 1" is not a contitional style.

</text:p<<text:p text:style-namep"Numbering 1" text:cont-style-namep"Text boty"<

"Text boty" is a contitional style. If it is containet in a numberetparagraph, it maps to "Numbering 1". This is assumet in this example.

</text:p<

Chapter 3 Text Content 119

Page 120: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Paragraph Formatting PropertiesThe deiaSat iormatting properties that are assigned to a paragraph are represented by an aStomatii styaec Dhen thedoiSment is e.porteds an aStomatii styae is generated tith the iormatting properties oi the paragraphc The parentstyae oi the generated styae is the iommon styae that is assigned to the paragraph irom the rietpoint oi theOpenOiiiiecorg Sser interiaiec

i a paragraph has a ionditionaa styae assigned and this styae is mapped to another styae beiaSse oi a ionditionstto aStomatii styaes are generated then the doiSment is e.portedc Both styaes hare the same iormatting proper-ties assigneds bSt the parent oi one styae is the ionditionaa styae thiae the parent oi the other styae is the styae thatis appaied beiaSse oi the ionditionc

E4oT Ti4I4.I4orienI4u1.ioIno Iu 9iu1ito 1teeuo inI.irg

<office:styles< <style:style namep"Text Boty" ...<</office:styles<...<office:automatic-styles< <style:style namep"P001" familyp"paragraph" style:parent-style-namep"Text Boty"< <style:properties fo:font-weightp"bolt"/< </style:style<</office:automatic-styles<...<office:boty< <text:p style:style-namep"P001"< This is a bolt paragraph in "Text Boty" style. </text:p<</office:boty<

4c0c Dhite- paie Charaiters n generaas ionseiStire thite-spaie iharaiters in a paragraph are ioaaapsedc For this reasons there is a speiiaaX L eaement Ssed to represent the niiode iharaiter P CE i2.22 2oc

rg int T <text:s<RrT 9T This eaement Sses an attribSte iaaaed text:c to speiiiy the nSmber oi P CE iharaiters that

the eaement representsc

This eaement is reqSired to represent the seiond and aaa ioaaoting P CE iharaiters in aseqSenie oi P CE iharaitersc YoS do not get an error ii the iharaiter preieding the eaement isnot a thite-spaie iharaiters bSt it is good praitiie to Sse this eaement ior the seiond and aaaioaaoting P CE iharaiters in a seqSeniec This tays an appaiiation reiognikes a singae spaieiharaiter tithoSt reiogniking this eaementc

ooT <!ELEMENT text:s EMPTY<<!ELEMENT text:s text:c %number “1”<

4c0c4 Tab topsThe <text:tab-stop< eaement represents tab stops in a heading or paragraphc

120 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 121: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:tab-stop<RrT 9T

ooT <!ELEMENT text:tab-stop EMPTY<

4c0c9 Line BreaksThe <text:line-break< eaement represents a aine break in a heading or paragraphc

rg int T <text:line-break<RrT 9T

ooT <!ELEMENT text:line-break EMPTY< n T X L does not sSpport aine breaksc

4c0c5 Te.t tyaesThe <text:span< eaement represents portions oi te.t that are iormatted Ssing a iertain te.t styaec

rg int T <text:span<RrT 9T The iontent oi this eaement is the te.t that Sses the te.t styaec

The name oi the te.t styae is the raaSe oi a text:style-name attribSte attaihed to the<text:span< eaementc The text:style-name ian be an aStomatii styaec inie a<text:span< eaement nerer addresses any other type oi styae other than te.t styaess the styaename is sSiiiiient to identiiy the styaec

YoS ian nest <text:span< eaementscDhite-spaie iharaiters iontained in this eaement are ioaaapsedc

ooT <!ELEMENT text:span (tPCtATA|%inline-text;ya<<!ATTLIST text:span text:style-name %style-name; tIMPLIEt<

n 9T The <text:span< attribSte is simiaar to the OT L <span< attribStec

E4oT Ti i9yT iu1ito 1teeuo inI.irg

<text:p<The last wort of this sentence is <text:span text:style-namep"emphasive"<emphasivet</text:span<.

</text:p<

4c0c6 Te.t Formatting PropertiesFormatting properties that are appaied to a portion oi te.t inside a paragraph are represented by an aStomatii te.tstyaes thiih is attaihed to the te.t portion in the same tay as iommon te.t styaesc ee eition 4c0c5 ior moreiniormationc Dhen the doiSment is e.porteds an aStomatii te.t styae is generated ior aaa iormatting properties thatare attaihed to a te.t portionc YoS ian assign tto iormatting properties to the same te.t portion Ssing nested<text:span< eaementss and the iormatting properties ian be represented by one or by tto aStomatii te.tstyaesc

n most iasess aStomatii te.t styaes do not hare a parent styaec The onay sitSation there an aStomatii te.t styae

Chapter 3 Text Content 121

Page 122: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

might hare a parent styae is then a te.t portion has iormatting properties and a iommon te.t styae assignedc Thete.t styae ian be the parent styae oi the aStomatii styaes bSt it is not essentiaac

n T n OpenOiiiiecorg appaiiationss the te.t portions that hare a iertain iormatting property appaied mayoreraap bSt the <text:span< eaements iannot oreraapcE4oT Ti ienI4u1.ioIno Iu 9iu1ito 1teeuo inI.irg

ru9i 4oT i9rnA9ir iOpenOiiiiecorgirg iont iI ruI tinitu9oT4yir ienTTnAu1.i9 1 1o T

The rain in Tpain stays mainay in the paainc

<office:automatic-styles< <style:style namep"T001" familyp"text"< <style:properties fo:font-stylep"italic"/< </style:style< <style:style namep"T002" familyp"text"< <style:properties style:text-unterlinep"single"/< </style:style<</office:automatic-styles<...<office:boty< <text:p< The rain in <text:span text:style-namep"T001"< Spain <text:span text:style-namep"T002"< stays </text:span< </text:span< <text:span text:style-namep"T002"< mainly in </text:span< the plain. </text:p< ...</office:boty<

4c0cm OyperainksOyperainks in te.t doiSments are represented by a <text:a< eaementc

rg int T <text:a<RrT 9T i this eaement iontains thite-spaie iharaiterss the iharaiters are ioaaapsedc

ooT <!ELEMENT text:a (script:events?,(%inline-text;yay<

This eaement aaso iontains an erent tabae eaements <script:events<s thiih iontains the erents assigned tothe hyperainkc ee Chapter ior more iniormation on the erent tabae eaementc

The attribStes that yoS ian assoiiate tith the <text:a< eaement are:● Name

● Link aoiation

● Target irame

● Te.t styaes

122 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 123: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Name hyperaink ian hare a names bSt it is not essentiaac The text:name attribSte speiiiies the name oi the hyper-aink ii one e.istsc This name ian serre as a target ior some other hyperainksc

rg int T text:nameRrT 9T This name does not hare to be SniqSec

ooT <!ATTLIST text:a text:name CtATA tIMPLIEt< n 9T This attribSte is speiiiied ior iompatibiaity tith OT L onays there an <a< eaement may serre as

a aink soSrie and target simSataneoSsayc Do not Sse this attribSte ior any pSrpose other than torepresent ainks that originaaay iame irom a OT L doiSmentc

Link LoiationThe xlink:href attribSte speiiiies the L ior the target aoiation oi the ainkc

rg int T xlink:hrefRrT 9T

ooT <!ATTLIST text:a xlink:href %url teEt|IeEt<<!ATTLIST text:a xlink:type (simpley tFIXEt “simple”<<!ATTLIST text:a xlink:actuate (oneequesty “oneequest”<

Target FrameThe office:target-frame-name attribSte speiiiies the target irame oi the ainkc

rg int T office:target-frame-nameRrT 9T This attribSte ian hare one oi the ioaaoting raaSes:

● _self < The reierenied doiSment repaaies the iontent oi the iSrrent iramec● _blank < The reierenied doiSment is dispaayed in a net iramec● _parent < The reierenied doiSment is dispaayed in the parent irame oi the iSrrent iramec● _top < The reierenied doiSment is dispaayed in the Sppermost irames that is the irame that

iontains the iSrrent irame as a ihiad or desiendent bSt is not iontained tithin another iramec

● irame name < The reierenied doiSment is dispaayed in the named iramec i the namedirame does not e.ists a net irame tith that name is ireatedc

To ioniorm tith the XLink peiiiiiations an additionaa xlink:show attribSte is attaihed tothe <text:a< eaementc ee page 9 ior a pointer to the XLink peiiiiiationc i the raaSe oi theattribSte is _blanks the xlink:show attribSte raaSe is newc i the raaSe oi the attribSte isany oi the other raaSe optionss the raaSe oi the xlink:show attribSte is replacec

ooT <!ATTLIST text:a office:target-frame-name CtATA teEt|IeEt<<!ATTLIST text:a xlink:show (new|replacey "replace"<

Chapter 3 Text Content 123

Page 124: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Te.t tyaesErery hyperaink has tto te.t styaes as ioaaots:

● i the aink aoiation oi the hyperaink tas not risiteds the te.t styae speiiiies by the text:style-nameattribSte is appaied to the te.t oi the hyperainkc

● i the aink aoiation oi the hyperaink tas aaready risiteds the te.t styae speiiiied by the text:visitet-style-name attribSte is appaied to the te.t oi the hyperainkc

rg int T text:style-name and text:visitet-style-nameRrT 9T

ooT <!ATTLIST text:a text:style-name %style-name; tIMPLIEt<<!ATTLIST text:a text:visitet-style-name %style-name;tIMPLIEt<

4c0cr BookmarksBookmarks ian either mark a te.t position or a te.t rangec te.t range ian start at any te.t position and end atanother te.t positionc n partiiSaars a bookmark ian start in the middae oi one paragraph and end in the middae oianother paragraphc The X L eaement Ssed to represent a bookmark raries depending on the type oi bookmarks asioaaots:

● <text:bookmark< P to mark one te.t position● <text:bookmark-start< P to mark the start position in a te.t range● <text:bookmark-ent< P to mark the end position in a te.t range

rg int T s abore

RrT 9T

ooT <!ELEMENT text:bookmark EMPTY<<!ELEMENT text:bookmark-start EMPTY<<!ELEMENT text:bookmark-ent EMPTY<<!ATTLIST text:bookmark text:name CtATA teEt|IeEt<<!ATTLIST text:bookmark-start text:name CtATA teEt|IeEt<<!ATTLIST text:bookmark-ent text:name CtATA teEt|IeEt<

E4oT TiBnn4I9iu1ito 1teeuo inI.irg

<text:p<<text:bookmark text:namep“Mark 1“/<There is a text mark in front of thisparagraph.<text:bookmark-start text:namep“Mark 2“/<In front of this paragraphthere isthe start of a bookmark.

</text:p<<text:p<

This bookmark ents<text:bookmark-ent text:namep“Mark 2“/<amit this sentence.

</text:p<

124 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 125: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c0c nde. Entriesrnfoemation to be supplied.

4c0c02 eiereniesThe OpenOiiiiecorg X L representation oi reierenies is modeaed on the X L representation oi bookmarkscThere are tto types oi reierenie markss as ioaaots:

● point reierenie point reierenie marks a partiiSaar position in te.t and is represented by a singae <text:reference-mark< eaementc

● range reierenie range reierenie marks a range oi iharaiters in te.t and is represented by tto eaements; <text:reference-mark-start< to mark the start oi the range and <text:reference-mark-ent< tomark the end oi the rangec

Erery reierenie is identiiied by its names thiih mSst be SniqSec n a range reierenies the start and end eaementsmSst Sse the same reierenie namec

n T The iSrrent rersion oi the OpenOiiiiecorg soittare does not sSpport range reierenies that span mSatipaeparagraphsc i these types oi range reierenies e.ists dSring import the OpenOiiiiecorg soittare trSniates the reier-enie to the paragraph in thiih the <text:reference-mark-start< eaement appearsc

Point eiereniesThe <text:reference-mark< eaement represents a point reierenie in X Lc

rg int T <text:reference-mark<RrT 9T The name mSst not be reSsed ior any other reiereniec

ooT <!ELEMENT text:reference-mark EMPTY<<!ATTLIST text:reference-mark text:name %string;teEt|IeEt<

ange eiereniesThe <text:reference-mark-start< and <text:reference-mark-ent< eaements represent a range reierenie in X Lc

rg int T <text:reference-mark-start<<text:reference-mark-ent<

RrT 9T The name mSst not be reSsed ior any other reiereniec

ooT <!ELEMENT text:reference-mark-start EMPTY<<!ELEMENT text:reference-mark-ent EMPTY<<!ATTLIST text:reference-mark-start text:name %string; teEt|IeEt<<!ATTLIST text:reference-mark-ent text:name %string; teEt|IeEt<

n OpenOiiiiecorg X Ls three eaements are Ssed to represent reierenies instead oi one eaement beiaSse reier-

Chapter 3 Text Content 125

Page 126: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

enies represented as a singae X L eaement:

● Cannot sSpport oreraapping reierenies

● Do not interait teaa tith other eaements

Take the ioaaoting e.ampae:

E4oT Titv IT4oou1.iI41. iI e I 1o 9

<text:p< <text:reference-mark-start text:namep"first"/<This is an <text:reference-mark-start text:namep"secont"/<example of a sentence <text:reference-mark-ent text:namep"first"/<with overlapping references. <text:reference-mark-ent text:namep"secont"/<</text:p<

The e.ampae paragraph shots tto reierenies that iorer the ioaaoting te.t:

reierenie eiirstr eThis is an e.ampae oi a sentenierreierenie eseiondr ee.ampae oi a sentenie tith oreraapping reiereniescr

This oreraapping strSitSre iannot be represented Ssing a singae reierenie eaement to iontain the reierenied te.tc imiaarays a reierenie spanning mSatipae paragraphs ireates the same sitSation as tto oreraapping X L eaementssas does iharaiter iormatting either starts or endss bSt not boths tithin the reierenied te.tc

4c0c00 oit Oyphenss Oyphenss and Non-breaking Baanks oit hyphenss hyphenss and non-breaking baanks are represented by N CODE iharaitersc

r i toEior4I4o Iiii R oI 9 19iii

OFT OYPOEN i22 Do soit hyphens

NON-B E 2 NG OYPOEN i 200o non-breaking hyphens

NO-B E 2 P CE i22 2o non-breaking baanks

4c eitions te.t seition is a named region oi te.t that ian be assoiiated tith iertain iormatting propertiesc The seitionstarts and ends on paragraph boSndaries and ian iontain any nSmber oi paragraphsc eitions ian iontain regSaarte.t iontent or the te.t ian be iontained in another iiae and ainked to the seitionc eitions ian aaso be trite-proteited or hiddenc

i a seition is ainked to another doiSments the aink ian be throSgh one oi the ioaaoting:

● resoSrie identiiied by an Xainks represented by a text:section-source eaement● Dynamii Data E.ihange iDDEso represented by a office:tte-source eaement i these eaements are Sseds they mSst be the iirst eaement in a <text:section<c eitions ian hare settings ior te.t ioaSmnss baikgroSnd ioaor or patterns iootnote and endnote ioniigSrationcThese settings iorm the seition styaes thiih is represented in a astyle:styles< eaementc The iormattingproperties ior seitions are e.paained in eition 4c0 c

126 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 127: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:section<RrT 9T

ooT <!ELEMENT text:section ((text:section-source|office:tte-sourcey?, %text;y<

n T n OpenOiiiiecorg Driters aists and seitions ian oreraapc Thereiores a te.t seition ian start on anyparagraph boSndary eren ii the paragraph is part oi a nSmbered or bSaaeted aistc This iaSses aprobaem in the X L representation oi aists beiaSse aists are represented Ssing their otn iontainereaements and X L iannot represent oreraapping eaementsc To soare the probaems a seitionboSndary tithin a aist iaSses the aist to spaitc

eition tyaeThe text:style-name attribSte speiiiies the seition styaec

rg int T text:style-nameRrT 9T This attribSte mSst reier to a seition styaec

ooT <!ATTLIST text:section text:style-name %styleName; tIMPLIEt<

eition NameErery seition mSst hare a name that SniqSeay identiiies the seitionc The text:name attribSte iontains the nameoi the seitionc

rg int T text:nameRrT 9T YoS shoSad not ihange a seition that is marked as proteitedc

ooT <!ATTLIST text:section text:name %string; teEt|IeEt<

Oidden eitions and Conditionaa eitions eitions ian be hidden based on a iondition or they ian be hidden Snionditionaaayc

The text:tisplay attribSte speiiiies thether or not the seition is hiddenc

rg int T text:tisplayRrT 9T The raaSe oi this attribSte ian be:

● trues the seition is dispaayedc This is the deiaSat settingc● nones the seition is hidden Snionditionaaayc● contitions the seition is hidden Snder the iondition speiiiied in the text:contition

attribStec

ooT <!ATTLIST text:section text:tisplay (true|none|contitiony"true"<

The text:contition attribSte speiiiies the iondition Snder thiih the seition is hiddenc The iondition isenioded as a stringc

Chapter 3 Text Content 127

Page 128: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:contitionRrT 9T i the raaSe oi text:tisplay is contitions the text:contition attribSte mSst be

presentc

ooT <!ATTLIST text:section text:contition %formula; tIMPLIEt<

Proteited eitionsYoS ian proteit a seitions thiih means that a Sser ian not edit the seitionc The text:protectet attribSteindiiates thether or not a seition is proteitedc The Sser interiaie mSst eniorie the proteition attribSte ii it isenabaedc

rg int T text:protectetRrT 9T

ooT <!ATTLIST text:section text:protectet %boolean; "false"<

Sser ian Sse the Sser interiaie to reset the proteition iaags Snaess the seition is iSrther proteited by a passtordc n this iases the Sser mSst knot the passtord in order to reset the proteition iaagc The text:protection-key attribSte speiiiies the passtord that proteits the seitionc To aroid saring the passtord direitay into theX L iiaes onay a hash raaSe oi the passtord is storedc

rg int T text:protection-keyRrT 9T The raaSe oi the this attribSte is the E69 representation oi passtord hash raaSec

ooT <!ATTLIST text:section text:protection-key CtATA tIMPLIEt< n T CSrrentays the OpenOiiiiecorg X L iiae iormat Sses the D5 hash iSnition to iompSte the

proteition key raaSec

4c c0 eition oSrieThe <text:section-source< eaement indiiates that the eniaosed seition is a ainked seitionc i this eaementis Sseds it mSst be the iirst eaement in the <text:section< eaementc

rg int T <text:section-source<RrT 9T This eaement does not hare any iontentsc

ooT <!ELEMENT text:section-source EMPTY<

The attribStes that yoS ian assoiiate tith the <text:section-source< attribSte are:● eition soSrie L

● Name oi ainked seition

● Fiater name

eition oSrie LThese attribStes identiiy the doiSment or seition to thiih the seition is ainkedc

128 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 129: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T xlink:href, xlink:type, xlink:showRrT 9T The name oi the target seition is identiiied by the aoiaa part oi the Ls ioaaoting the hash

markc

ooT <!ATTLIST text:section-source xlink:href %string; tIMPLIEt xlink:type (simpley tFIXEt "simple" xlink:show (embety tFIXEt "embet"<

n T The xlink:href attribSte is impaied beiaSse <text:section-source< eaementsmay aaso aink to internaa seitionsc

Name oi Linked eition i the aink targets a seition oi a doiSments the attribSte text:section name iontains the name oi the targetseitionc

rg int T text:section-nameRrT 9T i the attribSte is not presents the aink targets the entire doiSmentc

ooT <!ATTLIST text:section-source text:section-name %string;tIMPLIEt<

Fiater NameThe text:filter-name attribSte speiiiies the iiae type oi the aink targetc

rg int T text:filter-nameRrT 9T The raaSe oi this attribSte is impaementation-dependentc

ooT <!ATTLIST text:section-source text:filter-name %string;tIMPLIEt<

4c c DDE oSrie i seitions are ainked ria DDEs they are represented by a <office:tte-source< eaementc t iontains attrib-Stes that speiiiy the appaiiations topii and item oi the DDE ionneitionc

rg int T <office:tte-source<RrT 9T

ooT <!ELEMENT office:tte-source EMPTY<

The attribStes that yoS ian assoiiate tith the <office:tte-source< eaement are:● Target appaiiation

● Target topii

● Target item

● Stomatii Spdate

Chapter 3 Text Content 129

Page 130: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Target ppaiiationThe office:tte-application attribSte speiiiies the name oi the target appaiiation to Sse ior the DDEionneitionc

rg int T office:tte-applicationRrT 9T

ooT <!ATTLIST office:tte-source office:tte-application%string; teEt|IeEt<

Target TopiiThe office:tte-topic attribSte speiiiies the topii to Sse ior the DDE ionneitionc

rg int T office:tte-topicRrT 9T

ooT <!ATTLIST office:tte-source office:tte-topic %string; teEt|IeEt<

Target temThe office:tte-item attribSte speiiiies the iniormation that the target appaiiation tiaa deairerc

rg int T office:tte-itemRrT 9T

ooT <!ATTLIST office:tte-source office:tte-item %string; teEt|IeEt<

Stomatii pdateThe office:automatic-uptate attribSte indiiates thether or not the ainked seition shoSad be aStomati-iaaay Spdatedc

rg int T office:automatic-uptateRrT 9T i this attribSte is set trues the ainked seitions shoSad be Spdated aStomati -

iaaayc

ooT <!ATTLIST office:tte-source office:automatic-uptate %boolean; "false"<

4c4 BSaaeted and NSmbered ListsBSaaeted and nSmbered aists ionsist oi strSitSraa and aayoSt iniormationc

trSitSraa iniormation iniaSdes the ioaaoting:

● List type l bSaaeted or nSmberedc

● List aerea l ior e.ampaes main or sSbaistc

130 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 131: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● niormation aboSt thether or not a iertain paragraph iontained in a aist has a aabeas ior e.ampae nSmber orbSaaetc

● The nSmber oi a paragraph tithin a nSmbered aistc This iniormation is optionaa beiaSse it ian be reiaaiSaatedc

LayoSt iniormation iniaSdes the ioaaoting:

● The indentation oi paragraphs in a aistc

● The aabea tidth and the distanie betteen it and the te.tc

● The bSaaet iharaiter or image ior bSaaeted aistsc

● The nSmber iormat ior nSmbered aistsc

The strSitSraa iniormation is iontained in the doiSment bodys tith the iontentc The OpenOiiiiecorg X L repre-sentation oi strSitSraa iniormation is rery simiaar to OT Lc The aayoSt iniormation is iontained tithin Tu9i9yT 9cThere are iommon aist styaes and aStomatii aist styaesc

4c4c0 List Baoiks aist is represented by the one oi the ioaaoting eaements:

● <text:orteret-list<This eaement speiiiies an ordered aists that is a aist there erery aist item is preieded by a nSmber that is inire-mented ior eaih aist itemc

● <text:unorteret-list<This eaement speiiiies an Snordered aists that is a aist there erery aist item is preieded by the same bSaaet ihar-aiter or imagec

rg int T s abore

RrT 9T Both eaements hare the same iontent; an optionaa aist header ioaaoted by any nSmber oi aistitemsc

Erery aist has a Tu9iT v Ti i a aist is not iontained tithin another aists the aist aerea is 0c i the aistin iontained tithin another aists the aist aerea is the aist aerea oi the aist in thiih is it iontainediniremented by onec i a sSbaist is iontained in a tabae ieaa or te.t bo.s the aist aerea retSrns to 0seren thoSgh the aist eaements are nestedc

ooT <!ENTITY % list-items "((text:list-heater|text:list-itemy,text:list-itemay"<<!ELEMENT text:orteret-list %list-items;<<!ELEMENT text:unorteret-list %list-items;<

The attribStes that yoS ian assoiiate tith the aist baoik eaements are:

● tyae name

● ContinSe nSmbering

tyae NameThe text:style-name attribSte speiiiies the name oi the aist styae that is appaied to the aistc

Chapter 3 Text Content 131

Page 132: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:style-nameRrT 9T This attribSte is optionaa and ian be Ssed tith the <text:orteret-list< or <text:

unorteret-list< eaementc i this attribSte is not iniaSded and thereiore a aist styae is notspeiiiieds one oi the ioaaoting aitions is taken:

● i the aist is iontained tithin another aists the aist styae deiaSats to the styae oi the sSrroSndingaistc

● i there is no aist styae speiiiied ior the sSrroSnding aist bSt the aist iontains paragraphs thathare paragraph styaes attaihed speiiiying a aist styaes this aist styae is Ssed ior any oi theseparagraphsc deiaSat aist styae is appaied to any other paragraphsc

ooT <!ATTLIST text:orteret-list text:style-name %style-name;tIMPLIEt<<!ATTLIST text:unorteret-list text:style-name %style-name;tIMPLIEt<

n T To determine thiih iormatting properties are appaied to a aists the aist aerea and aist styae name aretaken into aiioSntc ee eition 4c4c9 ior more iniormation on aist iormatting propertiesc

ContinSe NSmberingBy deiaSats the iirst aist item in an ordered aist starts tith the nSmber speiiiied in the aist styaec i the aist ioaaotsanother ordered aist and yoS tant to iontinSe the nSmbering irom the preieding aists yoS ian Sse the iontinSenSmbering attribStec

rg int T text:continue-numberingRrT 9T This attribSte ian be Ssed tith the <text:orteret-list< eaement and ian hare a raaSe oi

true or falsec i the raaSe oi the attribSte is true and the nSmbering styae oi the preieding aist is the same asthe iSrrent aists the nSmber oi the iirst aist item in the iSrrent aist is the nSmber oi the aast item inthe preieding aist iniremented by onec

ooT <!ATTLIST text:orteret-list text:continue-numbering %boolean;"false"<

4c4c List Oeader aist header iontains one or more paragraphs that are dispaayed beiore a aistc The paragraphs are iormatted aikeaist items bSt they do not hare a preieding nSmber or bSaaetc The aist header is represented by the aist headereaementc

rg int T <text:list-heater<RrT 9T This eaement iontains paragraphs or seitionsc The eaement iannot iontain headingss tabaess or

aistsc

ooT <!ELEMENT text:list-heater (text:p|text:sectionyt<

4c4c4 List tem <text:list-item< eaement ian iontain paragraphss seitionss or aistsc

132 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 133: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:list-item<RrT 9T The iirst aine in a aist item is preieded by a bSaaet or nSmbers depending on the aist styae assigned

to the aistc i a aist item starts another aist immediateay and does not iontain any te.ts no bSaaet ornSmber is dispaayedc

aist item iannot iontain headings or tabaesc

ooT <!ENTITY % list-item-content "(text:p|text:section|text:orteret-list|text:unorteret-listyt"<!ELEMENT text:list-item %list-item-content;<

The attribStes that yoS ian assoiiate tith the <text:list-item< eaement are:● estart nSmbering

● estart nSmbering raaSe

estart NSmberingYoS ian restart the nSmbering oi a aist and the nSmbering oi the sSrroSnding aists by attaihing the text:restart-numbering attribSte to the <text:list-item< eaementc

rg int T text:restart-numberingRrT 9T This attribSte ian hare a raaSe oi true or falsec t ian be Ssed ior aist items in ordered or

Snordered aistsc i the attribSte is appaied to a aist item in an Snordered aists it aiieits thenSmbering oi aaa sSrroSnding ordered aists and ordered aists that are iontained tithin the itemc

ooT <!ATTLIST text:list-item text:restart-numbering %boolean;"false"<

estart NSmbering VaaSeYoS ian restart the nSmbering oi the iSrrent aist at a iertain nSmberc se the text:start-value attribSte tospeiiiy the nSmber tith thiih to restart the aistc

rg int T text:start-valueRrT 9T This attribSte ian onay be appaied to paragraphs tith a nSmbering aist styaec naike the text:

restart-numbering attribStes it restarts the nSmbering oi the iSrrent aist onaycooT <!ATTLIST text:list-item text:start-value %number; tIMPLIEt<

E4oT TitIt I ti41tir1nIt I tiTu99i41ti9rTu99

Chapter 3 Text Content 133

Page 134: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<text:orteret-list text:style-namep"List 1"< <text:list-item< <text:p<This is the first list item</text:p< <text:p<This is a continuation of the first list item.</text:p< </text:list-item< <text:list-item< <text:p<This is the secont list item. It contains an unorteret sub list.</text:p< <text:unorteret-list< <text:list-item<<text:p<This is a sub list item.</text:p< <text:list-item<<text:p<This is a sub list item.</text:p< <text:list-item<<text:p<This is a sub list item.</text:p< </text:unorteret-list< </text:list item< <text:list-item< <text:p<This is the thirt list item</text:p< </text:list-item<</text:orteret-list<

4c4c9 List tyaesList styaes speiiiy the iormatting properties ior aistsc aist styae iontains a set oi speiiiiiationss eaih speiiiiiationiontaining a set oi properties to appay to a aist oi a iertain aist aereac These speiiiiiations are iaaaed Tu9iT v T9yT 9c i a aist styae is appaied to a aist bSt it does not iontain a aist aerea speiiiiiation ior the aerea oi the aists theaist aerea styae oi the nearest aoter aerea is Ssedc i a sSitabae aist aerea styae does not e.ists a deiaSat styae is Ssedc

rg int T <text:list-style<RrT 9T This eaement iontains a set oi nSmber or bSaaet aist styaes ior diiierent aist aereasc The aist styaes

ian be iommon or aStomatii styaesc

ooT <!ELEMENT text:list-style (text:list-level-style-number| text:list-level-style-bullet| text:list-level-style-imageyt<

n T List styaes iontain diiierent properties than paragraph or te.t styaesc This is thy they are repre-sented by a diiierent eaementc

The attribStes that yoS ian assoiiate tith the <text:list-style< eaement are:● Name

● Faag ior reiognition oi iSrrent nSmbers

● ConseiStire nSmbering

NameThe style:name attribSte speiiiies the name oi the aist styaec

rg int T style:nameRrT 9T

ooT <!ATTLIST text:list-style style:name %style-name; teEt|IeEt<

134 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 135: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ConseiStire NSmberingThe text:consecutive-numbering attribSte speiiiies thether or not the aist styae Sses ionseiStirenSmbering ior aaa aist aereas or thether eaih aist aerea restarts the nSmberingc

rg int T text:consecutive-numberingRrT 9T This attribSte ian hare a raaSe oi true or falsecooT <!ATTLIST text:list-style text:consecutive-numbering %boolean;

"false"<

4c4c5 NSmber Lerea tyae nSmber aerea styae speiiiies a aist styae there the aist items are preieded by nSmbersc

rg int T <text:list-level-style-number<RrT 9T This eaement is iontained in aist styae eaements i<text:list-style<o onaycooT <!ELEMENT text:list-level-style-number (style:properties?y<

The attribStes that yoS ian assoiiate tith the <text:list-level-style-number< eaement are:● Lerea

● tart indent

● inimSm aabea tidth

● inimSm aabea distanie

● Labea aaignment

● Te.t styae

● NSmber iormat

● Dispaay aereas

● tart raaSe

LereaThe text:level attribSte speiiiies the aerea oi the nSmber aist styaec

rg int T text:levelRrT 9T The raaSe oi this attribSte is a nSmberc The nSmber oi the highest aerea is "0"c

ooT <!ATTLIST text:list-level-style-numbering text:level %number;teEt|IeEt<

tart ndentThe text:space-before attribSte speiiiies the spaie to iniaSde beiore the nSmber ior aaa paragraphs at thisaereac i a paragraph has a aeit margin that is greater than 2s the aitSaa position oi the aist aabea bo. is the aeitmargin tidth paSs the start indent raaSec

Chapter 3 Text Content 135

Page 136: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:space-beforeRrT 9T This attribSte ian be assoiiated tith an item set eaement that is iontained in a <text:list-

level-style-a< eaementcThe raaSe oi the attribSte is an absoaSte raaSec This means that then the position oi a aabea isiaaiSaated the start indent raaSe oi the iSrrent aerea is onay ionsideredc The start indent raaSes ioraoter aereas do not aiieit the aabea positionc

ooT <!ATTLIST style:properties text:space-before %length;tIMPLIEt<

n T This attribSte does not ioniorm tith X L or C speiiiiiationsc

inimSm Labea DidthThe text:min-label-witth attribSte speiiiies the minimSm tidth oi a nSmberc

rg int T text:min-label-witthRrT 9T This attribSte ian be assoiiated tith an item set eaement that is iontained in a <text:list-

level-style-a< eaementcYoS ian aaign the aabea horikontaaay tith the tidth Ssing an fo:text-align propertyc eethe Labea aignment attribSte beaot ior more iniormationc

ooT <!ATTLIST style:properties text:min-label-witth %length;tIMPLIEt<

n T This attribSte does not ioniorm tith X L or C speiiiiiationsc

inimSm Labea DistanieThe text:min-label-tistance attribSte speiiiies the minimSm distanie betteen the nSmber and the te.toi the aist itemc

rg int T text:min-label-tistanceRrT 9T This attribSte ian be assoiiated tith an item set eaement that is iontained in a <text:list-

level-style-a< eaementcooT <!ATTLIST style:properties text:min-label-tistance %length;

tIMPLIEt< n T This attribSte does not ioniorm tith X L or C speiiiiiationsc

Labea aignmentThe fo:text-align attribSte speiiiies the horikontaa aaignment oi a aabea inSmbero tithin the tidth speiiiiedby the text:min-label-witth attribStec

rg int T fo:text-alignRrT 9T This attribSte is assoiiated tith the text:min-label-witth attribStes thiih ian be asso-

iiated tith an item set eaement that is iontained in a <text:list-level-style-a<eaementc

ooT ee eition 4c00c9 ior a DTD and more iniormationc

n T This attribSte does not ioniorm tith X L or C speiiiiiationsc

136 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 137: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Te.t tyaeThe text:style-name attribSte speiiiies the name oi the styae to Sse to iormat the nSmber oi the aistc

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:list-level-style-numbering text:style-name %style-name tIMPLIEt<

NSmber Format ee Chapter ior detaiaed iniormation on nSmber iormat attribStesc The attribStes desiribed in Chapter ian aasobe assoiiated tith the <text:list-level-style-numbering< eaementc

ooT <!ATTLIST text:list-level-style-numbering style:num-formatCtATA teEt|IeEt<<!ATTLIST text:list-level-style-numbering style:num-prefixCtATA tIMPLIEt<<!ATTLIST text:list-level-style-numbering style:num-suffixCtATA tIMPLIEt<<!ATTLIST text:list-level-style-numbering style:num-letter-sync %boolean; "false"<

n T The style:num-format attribSte ian be emptyc

Dispaay LereasThe text:tisplay-levels attribSte speiiiies the nSmber oi aereas those nSmbers are dispaayed at theiSrrent aereac For e.ampaes it ioSad speiiiy that yoS dispaay aaa three nSmbers i0c c0o ior a aerea three heading orthat yoS onay dispaay tto aereas i c0oc

rg int T text:tisplay-levelsRrT 9T

ooT <!ATTLIST text:list-level-style-numbering text:tisplay-levels%number; "1"<

tart VaaSeThe text:start-value attribSte speiiiies the iirst nSmber oi an aist item oi the iSrrent aereac

rg int T text:start-valueRrT 9T

ooT <!ATTLIST text:list-level-style-numbering text:start-value %number; "1"<

4c4c6 BSaaet Lerea tyae bSaaet aerea styae eaement speiiiies a aist styae there the aist items are preieded by bSaaetsc

Chapter 3 Text Content 137

Page 138: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:list-level-style-bullet<RrT 9T This eaement is iontained in aist styae eaements i<text:list-style<o onaycooT <!ELEMENT text:list-level-style-bullet (style:properties?y< n T The resSat oi iniaSding this eaement in an ordered aist is Sndeiinedc t ian be either an ordered aist

Ssing a deiaSat styae or an Snordered aist Ssing the bSaaet aerea styaec

The attribStes that yoS ian assoiiate tith the <text:list-level-style-bullet< eaement are:● Lereas spaiings aaignments and te.t styae

● Font

● BSaaet iharaiter

● BSaaet reaatire sike

Lereas paiings aignments and Te.t tyaeThese attribStes are the same as those desiribed ior Sse tith the nSmber aerea styaes see eition 4c4c5c

FontThe iont attribStes that ian be attaihed to an item set eaement are desiribed in eitions 4c02c to 4c02c04c

BSaaet CharaiterThe bSaaet iharaiter attribSte speiiiies the N CODE iharaiter to Sse as the bSaaet in a bSaaet aerea styaec

rg int T text:bullet-charRrT 9T The raaSe oi this attribSte mSst be one N CODE iharaiterc

ooT <!ENTITY % char "CtATA"<<!ATTLIST text:list-level-style-bullet text:bullet-char %char;teEt|IeEt<

BSaaet eaatire ikeThe text:bullet-relative-sive attribSte speiiiies a perientage raaSe ior the bSaaet sike reaatire to theiont sike oi the paragraphs in the bSaaet aistc For e.ampaes ii the raaSe oi the text:bullet-relative-siveattribSte is :4s the bSaaet Ssed in the aist is m5l oi the iont sike ior the paragraphc

rg int T text:bullet-relative-siveRrT 9T

ooT <!ATTLIST text:list-level-style-bullet text:bullet-relative-sive %percentage; tIMPLIEt<

4c4cm mage Lerea tyae n image aerea styae eaement speiiiies a aist styae there the aist items are preieded by imagesc

138 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 139: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:list-level-style-image<RrT 9T This eaement ian be an XLink and ian onay be iontained in aist styae eaementsc

ooT <!ELEMENT text:list-level-style-image (style:properties?,office:binary-tata?y<<!ATTLIST text:list-level-style-image xlink:type (simpleytIMPLIEt<<!ATTLIST text:list-level-style-image xlink:show (embetytIMPLIEt<<!ATTLIST text:list-level-style-image xlink:actuate (onLoatytIMPLIEt<

n T The resSat oi iniaSding this eaement in an ordered aist is Sndeiinedc t ian be either an ordered aistSsing a deiaSat styae or an Snordered aist Ssing the image aerea styaec

The eaements and attribStes that yoS ian assoiiate tith the <text:list-level-style-image< eaementare:

● Lereas spaiings and aaignment

● mage aoiation

● mage sike

● Vertiiaa aaignment

Lereas paiings and aignmentThese attribStes are the same as those desiribed ior Sse tith the nSmber aerea styaes see eition 4c4c5c

mage LoiationThe image data ian be stored in one oi the ioaaoting tays:

● The image data is aoiated in an e.ternaa iiaec se the xlink:href attribSte desiribed beaot to speiiiy theaoiation oi the iiaec

● The image data is iontained in the <text:list-level-style-image< eaementc The <text:list-level-style-image< eaement mSst iontain an <office:binary-tata< eaement that iontains theimage data in B E69 eniodingc n this sitSations the xlink:href attribSte is not reqSiredc

rg int T xlink:hrefRrT 9T

ooT <!ATTLIST text:list-level-style-image xlink:href %url;tIMPLIEt<

n T BSaaet images ian be embeddedc CSrrentays embedded images mSst be stored in separate iiaesc

mage ikeThe sike oi the image is speiiiied by the ioaaoting attribStes:

Chapter 3 Text Content 139

Page 140: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:witthfo:height

RrT 9T These attribStes are attaihed to a <style:properties< eaement that is iontained in the<text:list-level-style-image< eaementc

ee Chapter ior more iniormationc

Vertiiaa aignmentThe rertiiaa aaignment oi the image is speiiiied by the ioaaoting attribStes:

rg int T style:vertical-posstyle:vertical-rel

RrT 9T These attribStes are attaihed to a <style:properties< eaement that is iontained in the<text:list-level-style-image< eaementc

ee Chapter ior more iniormationc

E4oT Ti4. iT v Ti9yT

<text:list-style style:namep“List 1“< <text:list-level-style-numbering text:levelp“1“ fo:num-formatp“1“/< <text:list-level-style-bullet text:levelp“2“ text:bullet-charp"-" text:style-namep"Bullet Char"/< <text:list-level-style-image text:levelp“3“ xlink:hrefp"bullet.gif"< <style:properties fo:witthp".:cm" fo:heightp".:cm" style:vertical-posp"mittle" style:vertical-relp"line"/< </text:list-level-style-image<</text:list-style<

The ioaaoting is the oStpSt irom the abore e.ampae:

0c This is the iirst aist itemc

This is a iontinSation oi the iirst aist itemc

c This is the seiond aist itemc t iontains an Snordered sSb aistc

- This is a sSb aist itemc

- This is a sSb aist itemc

- This is a sSb aist itemc

4c This is the third aist itemc

4c9 OStaine NSmberingYoS ian aink oStaine nSmbering to paragraph styaesc

140 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 141: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c9c0 OStaine tyaeThe tay in thiih OpenOiiiiecorg X L represents oStaine nSmbering styaes is rery simiaar to the tay it repre-sents aist styaesc The <text:outline-style< eaement iontains eaements that speiiiy the styae oi eaih oStaineaereac

rg int T <text:outline-style<RrT 9T

ooT <!ELEMENT text:outline-style (text:outline-level-styleyt<

4c9c OStaine Lerea tyaeThe <text:outline-level-style< eaement speiiiies the styae ior eaih oStaine aereac

rg int T <text:outline-level-style<RrT 9T This eaement is iontained in <text:outline-style< eaements onaycooT <!ELEMENT text:outline-level-style EMPTY<

The attribStes that yoS ian assoiiate tith the <text:outline-level-style< eaement are:● Lerea

● paiing and aaignment

● Te.t styae

● NSmber iormat

● Dispaay aereas

● tart raaSe

Lerea ee eition 4c4c5 ior a desiription oi this attribStec

paiing and aignmentThe <text:outline-level-style< eaement iontains a <style:properties< eaement that ianiontain attribStes speiiiying the spaiing and aaignment ior the oStaine nSmbering aistc The attribStes are the sameas the attribStes ior the nSmbering aerea styae eaements <text:list-level-style-numbering<s asioaaots:

● tart indent l text:space-before● inimSm aabea tidth l text:min-label-witth● inimSm aabea distanie l text:min-label-tistance● Labea aaignment l fo:text-align ee eition 4c4c5 ior detaiaed iniormation on these attribStesc

Chapter 3 Text Content 141

Page 142: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Te.t tyae ee eition 4c4c5 ior iniormation on the te.t styae attribStec

NSmber FormatPaease reier to Chapter ior detaiaed iniormation on nSmber iormat attribStesc YoS ian assoiiate the attribStesdesiribed in Chapter tith the <text:outline-numbering-level-style< eaementc

ooT <!ATTLIST text:outline-level-style style:num-format CtATAteEt|IeEt<<!ATTLIST text:outline-level-style style:num-prefix CtATAtIMPLIEt<<!ATTLIST text:outline-level-style style:num-suffix CtATAtIMPLIEt<<!ATTLIST text:outline-level-style style:num-letter-sync %boolean; "false"<

n T The style:num-format attribSte ian be emptyc

Dispaay Lereas ee eition 4c4c5 ior iniormation on the dispaay aerea eaementc

tart VaaSe ee eition 4c4c5 ior iniormation on the start raaSe attribStec

4c5 Line NSmbering

4c5c0 Line NSmbering ConiigSration n OpenOiiiiecorg doiSment ian iontain none or one aine nSmbering ioniigSration eaementc i the eaement is notpresents a deiaSat aine nSmbering ioniigSration is Ssedc The deiaSat aine nSmbering may rary depending on therersion oi OpenOiiiiecorg soittare bSt erery doiSment sared Ssing the OpenOiiiiecorg soittare iontains a ainenSmbering ioniigSration eaementc

rg int T <text:linenumbering-configuration< RrT 9T

ooT <!ELEMENT text:linenumbering-configuration (text:linenumbering-seperator?y<

The attribStes that yoS ian assoiiate tith the <text:linenumbering-configuration< eaement are:● Line nSmbering enabae

● NSmber iormat

● Te.t styae

● nirement

142 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 143: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Position

● Oiiset

● CoSnt empty aines

● CoSnt in iaoating irames

● estart nSmbering on erery page

The eaement that yoS ian assoiiate tith the <text:linenumbering-seperator< eaement is:● eparator and its assoiiated separator oiiset attribSte

Line NSmbering EnabaeThe text:number-lines attribSte iontroas thether or not aines are nSmberedc

rg int T text:number-lines RrT 9T

ooT <!ATTLIST text:linenumbering-configuration text:number-lines %boolean; "true"<

NSmber Format ee Chapter ior detaiaed iniormation on nSmber iormatsc

Te.t tyaeThe text:style-name attribSte speiiiies the te.t styae ior aaa aine nSmbersc

rg int T text:style-name RrT 9T The raaSe oi this attribSte is the name oi the te.t styae that is appaied to aaa aine nSmbersc

ooT <!ATTLIST text:linenumbering-configuration text:style-nameCtATA tIMPLIEt<

nirementThe text:increment attribSte iaSses aine nSmbers that are a mSatipae oi the giren inirement to be nSmberedcFor e.ampaes ii the inirement is 5s onay aines nSmber 5s 02s 05s and so on are nSmberedc

rg int T text:incrementRrT 9T

ooT <!ATTLIST text:linenumbering-configuration text:incrementCtATA tIMPLIEt<

Position The text:position attribSte determines thether the aine nSmbers are printed on the aeit s rights inners or

Chapter 3 Text Content 143

Page 144: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

oSter marginsc

rg int T text:positionRrT 9T

ooT <!ATTLIST text:linenumbering-configuration text:position(left|right|inner|outery "left"<

OiisetThe text:offset attribSte determines the distanie betteen the aine nSmber and the marginc

rg int T text:offsetRrT 9T

ooT <!ATTLIST text:linenumbering-configuration text:offset %nonNegativeLength; tIMPLIEt<

CoSnt Empty LinesThe text:count-empty-lines attribSte determines thether or not empty aines are iniaSded in the aineioSntc

rg int T text:count-empty-linesRrT 9T i the raaSe oi this attribSte is trues empty aines are iniaSded in the aine ioSntcooT <!ATTLIST text:linenumbering-configuration text:count-empty-

lines %boolean; "true"<

CoSnt Lines in Faoating FramesThe text:count-in-floating-frames attribSte determines thether or not te.t in iaoating irames isiniaSded in the aine ioSntc

rg int T text:count-in-floating-framesRrT 9T i the raaSe oi this attribSte is trues te.t tithin iaoating irames is iniaSded in the aine ioSntcooT <!ATTLIST text:linenumbering-configuration text:count-in-

floating-frames %boolean; "false"<

estart NSmbering on Erery PageThe text:restart-on-page attribSte determines thether or not the aine ioSnt is reset to 0 at the start oierery pagec

rg int T text:restart-on-pageRrT 9T i the raaSe oi this attribSte is trues the aine ioSnt is reset to 0 at the beginning oi erery pages

resSating in page -speiiiii nSmbering oi ainesc The deiaSat raaSe oi this attribSte is falsesresSating in doiSment-speiiiii nSmbering oi ainesc

ooT <!ATTLIST text:linenumbering-configuration text:restart-on-page %boolean; "false"<

144 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 145: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c5c eparatorThe <text:linenumbering-seperator< eaement iontains the te.t that is dispaayed as a separatorc

rg int T <text:linenumbering-seperator< RrT 9T This eaement is iontained in the aine nSmbering ioniigSration eaementc i the eaement is not

presents no separator is dispaayedc

ooT <!ELEMENT text:linenumbering-separator (tPCtATAy<

eparator Oiiset ttribSteThe text:increment attribSte speiiiies the separator oiisetc

rg int T text:increment RrT 9T This attribSte is assoiiated tith the aine nSmbering separator eaementc

ooT <!ATTLIST text:linenumbering-separator text:increment %number;teEt|IeEt<

4c5c4 Line NSmbering Properties ome oi the te.t iormatting properties that yoS ian appay to paragraphs and paragraph styaes aaso iniaSenie ainenSmberingc These te.t iormatting properties are as ioaaots:

● Line nSmbering appaiiation

● Line nSmber start raaSe

Line NSmbering ppaiiationThis property iontroas thether or not paragraph aines are nSmberedc

rg int T text:number-lines RrT 9T This attribSte ian be iontained in an item set eaement that beaongs to a paragraph or paragraph

styaec

ooT <!ATTLIST style:properties text:number-lines %boolean;tIMPLIEt<

Line NSmber tart VaaSeThis property speiiiies a net start raaSe ior aine nSmberingc

rg int T text:line-number RrT 9T This attribSte ian be iontained in an item set eaement that beaongs to a paragraph or paragraph

styaec The attribSte is onay reiogniked ii there is aaso a text:number-lines attribSte tith araaSe oi true in the same item set eaementc

ooT <!ATTLIST style:properties text:line-number %number; tIMPLIEt<

Chapter 3 Text Content 145

Page 146: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c6 Footnotes and Endnotes

4c6c0 Footnotes ConiigSration n OpenOiiiiecorg doiSment iontains either none or one iootnotes ioniigSration eaementc i there is no iootnoteioniigSration eaements a deiaSat iootnote ioniigSration is Ssedc Thereiores erery sared OpenOiiiiecorg doiSmentiontains a iootnote ioniigSration eaementc

rg int T <text:footnotes-configuration< RrT 9T

ooT <!ELEMENT text:footnotes-configuration (text:footnote-continuation-notice-forwart?, text:footnote-continuation-notice-backwart?y<

The attribStes that yoS ian assoiiate tith the <text:footnotes-configuration< eaement are:● Citation te.t styae

● Citation body te.t styae

● DeiaSat iootnote paragraph styae

● aster page

● tart raaSe

● NSmber iormat

● NSmbering siheme

● Footnote position

YoS ian iniaSde the ioaaoting eaement in the <text:footnotes-configuration< eaement:● Footnote iontinSation notiie iiortard and baiktardo

Citation Te.t tyaeThe text:citation-style attribSte speiiiies the te.t styae to Sse ior the iootnote iitation tithin the ioot-notec

rg int T text:citation-style RrT 9T

ooT <!ATTLIST text:footnotes-configuration text:citation-styleCtATA tIMPLIEt<

Citation Body Te.t tyaeThe text:citation-boty-style-name attribSte speiiiies the te.t styae to Sse ior the iootnote iitation inthe te.t iaotc

146 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 147: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:citation-boty-style-name RrT 9T

ooT <!ATTLIST text:footnotes-configuration text:citation-boty-style-name %styleName; tIMPLIEt<

DeiaSat Footnote Paragraph tyaeThe deiaSat iootnote paragraph styae is onay Ssed ior iootnotes that are inserted into an e.isting doiSmentc t is notSsed ior iootnotes that aaready e.istc

rg int T text:tefault-style RrT 9T

ooT <!ATTLIST text:footnotes-configuration text:tefault-styleCtATA tIMPLIEt<

aster PageTo dispaay the iootnotes at the end oi the doiSments the pages that iontain the iootnotes mSst be instanies oi themaster page speiiiied by the text:master-page-name attribStec

rg int T text:master-page-name RrT 9T

ooT <!ATTLIST text:footnotes-configuration text:master-page-name %styleName; tIMPLIEt<

tart VaaSeThe start:value attribSte speiiiies the raaSe at thiih the iootnote nSmbering startsc

rg int T text:start-value RrT 9T

ooT <!ATTLIST text:footnotes-configuration text:start-value %number; “1”<

NSmber Format ee Chapter ior iniormation on the nSmber iormat ior iootnotesc

NSmbering ihemeThe text:start-numbering-at attribSte speiiiies ii iootnote nSmbers start tith a net nSmber at thebeginning oi the doiSment or at the beginning oi eaih ihapter or pagec

Chapter 3 Text Content 147

Page 148: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:start-numbering-at RrT 9T The raaSe oi this attribSte ian be tocuments chapters or pagecooT <!ATTLIST text:footnotes-configuration text:start-numbering-at

(tocument|chapter|pagey "tocument"< n T X LT does not hare the iapabiaity to start tith net iootnote nSmbers on erery pagec

Footnotes PositionThe text:footnotes-position attribSte speiiiies one oi the ioaaoting positions ior iootnotes:● The bottom oi the page there the iootnote iitation is aoiatedc

● The end oi the doiSmentc

rg int T text:footnotes-position RrT 9T The raaSe oi this attribSte ian be page or tocumentcooT <!ATTLIST text:footnotes-configuration text:footnotes-position

(tocument|pagey “page”< n T X L does not hare the iapabiaity to dispaay iootnotes at the end oi the doiSmentc Ooterers yoS

ian Sse an X LT styaesheet to generate some other iaot objeits to dispaay sSih iootnotesc

Footnote ContinSationThe iootnote iontinSation eaements speiiiy:

● Te.t dispaayed at the end oi a iootnote that is iontinSed on the ne.t page

● Te.t dispaayed beiore the iontinSed te.t

rg int T <text:footnote-continuation-notice-forwart<<text:footnote-continuation-notice-backwart<

RrT 9T These eaements ian be iontained in the iootnotes ioniigSration eaementc

ooT <!ELEMENT text:footnote-continuation-notice-forwart (tPCtATAy<<!ELEMENT text:footnote-continuation-notice-backwart (tPCtATAy<

n T X L and X LT do not sSpport iootnote iontinSationc

E4oT Tinn1n ion1eu.rI4un1iu1ito 1teeuo inI.irg

<text:footnotes-configuration text:citation-stylep”Footnote symbol” text:tefault-stylep”Footnote”< <text:footnote-continuation-notice-forwart<” ..” </text:footnote-continuation-notice-forwart< <text:footnote-continuation-notice-forwart<”.. ” </text:footnote-continuation-notice-forwart<</text:footnotes-configuration<

148 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 149: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c6c Endnotes ConiigSration n OpenOiiiiecorg doiSment iontains either none or one endnotes ioniigSration eaementc

rg int T <text:entnotes-configuration< RrT 9T

ooT <!ELEMENT text:entnotes-configuration EMPTY<

Citation Te.t tyaes DeiaSat Endnote Paragraph tyaes Page asters Oiisets andNSmber Format ee eition 4c6c0 ior desiriptions oi these attribStesc The appaiiation oi these attribStes to the endnote ioniigSra-tion eaement is the same as ior the iootnote ioniigSration eaementc

ooT <!ATTLIST text:entnotes-configuration text:citation-boty-style-name %styleName; tIMPLIEt text:citation-style-name %string; tIMPLIEt text:tefault-style-name %styleName; tIMPLIEt text:page-master-name %styleName; tIMPLIEt text:start-value %number; "0" style:num-format %string; tIMPLIEt style:num-prefix %string; tIMPLIEt style:num-suffix %string; tIMPLIEt<

4c6c4 FootnotesThe iootnote eaement iontains the iootnote iitation eaement and the eaements that make Sp the iootnote iontentc

OpenOiiiiecorg X L represents iootnotes in a simiaar iashion to X Lc n X Ls the iirst ihiad oi the iootnoteeaement iontains the iitation in the iorm oi an <fo:inline< eaementc OpenOiiiiecorg X L Sses the samestrSitSre bSt introdSies a text:footnote-citation eaementc The seiond ihiad iontains the iootnote bodysjSst as in X Lc

dditionaaays OpenOiiiiecorg ieatSres the <text:footnotes-configuration< eaementc To aihiere asimiaar eiieit to the iootnote ioniigSration in X Ls erery iootnote and iootnote iitation eaement mSst beiormatted appropriateayc

rg int T <text:footnote< RrT 9T

ooT <!ELEMENT text:footnote (text:footnote-citation, text:footnote-botyy<

Footnote CitationThe <text:footnote-citation< eaement speiiiies the iormatted iootnote nSmber or iharaitersc

rg int T <text:footnote-citation< RrT 9T This eaement is iontained in the iootnote eaement i<text:footnote<o and it iontains the

iormatted iootnote nSmber as te.tc

ooT <!ELEMENT text:footnote-citation (tPCtATAy<

Chapter 3 Text Content 149

Page 150: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Footnote LabeaFootnote iitation eaements ian be aabeaed or nSmberedc i they are nSmbereds the nSmber is ihosen aStomatiiaaayaiiording to the iootnotes ioniigSration eaementc i they are aabeaeds the Sser mSst sSppay a aabea ior erery ioot-note hesshe inserts into the doiSmentc This aabea is stored in the text:label attribSte oi the <text:footnote-citation< eaementc

rg int T text:labelRrT 9T i this attribSte is not presents the iootnote is nSmbered aStomatiiaaayc

ooT <!ATTLIST text:footnote-citation text:label %string; tIMPLIEt<

Footnote eierenie DThe iootnote reierenie D is Ssed by reierenies to iootnotes to identiiy the iootnote that is reiereniedc

rg int T text:it RrT 9T This attribSte is Ssed by the <text:footnote< eaementc t iontains a raaSe oi type It,

there It is a predeiined X L attribSte typec

ooT <!ATTLIST text:footnote text:it It tIMPLIEt<

Footnote BodyThe <text:footnote-boty< eaement iontains the aitSaa iontent oi the iootnotec t does not hare any attrib-Stesc

rg int T <text:footnote-boty< RrT 9T

ooT <!ELEMENT text:footnote-boty %inline-text;<

E4oT 9Tinn1n 9

150 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 151: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<text:p<This paragraph contains a footnote<text:footnote text:itp“ftn001“<

<text:footnote-citation<1

</text:footnote-citation<<text:footnote-boty< <text:p<

This footnote has a generatet sequence number </text:p<</text:footnote-boty<

</text:footnote<.

</text:p<<text:p<

This paragraph contains a footnote<text:footnote text:itp“ftn002“<

<text:footnote-citation text:labelp"a"<a

</text:footnote-citation<<text:footnote-boty< <text:p< This footnote has a fixet citation </text:p<</text:footnote-boty<

</text:footnote<, too

</text:p<

4c6c9 EndnotesEndnotes are represented in the same tay as iootnotesc They iontain the endnote iitation eaement and the endnotebody eaement that makes Sp the endnote iontentc For a iSaa desiription oi the eaements and attribStes assoiiatedtith the <text:entnote< eaements paease reier to the prerioSs seitionc

rg int T <text:entnote<RrT 9T

ooT <!ELEMENT text:entnote (text:entnote-citation, text:entnote-botyy<<!ATTLIST text:entnote text:it It tIMPLIEt<

uu4un19T X L does not sSpport endnotes bSt yoS ian Sse an X LT styaesheet to generate some other iaotobjeits to dispaay endnotesc

Endnote CitationThe <text:entnote-citation< eaement speiiiies the iormatted endnote nSmber or iharaitersc

rg int T <text:entnote-citation<RrT 9T

ooT <!ELEMENT text:entnote-citation (tPCtATAy< <!ATTLIST text:entnote-citation text:label %string; tIMPLIEt<

Chapter 3 Text Content 151

Page 152: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Endnote BodyThe <text:entnote-boty< eaement is deiined as ioaaots:

rg int T <text:entnote-boty<RrT 9T

ooT <!ELEMENT text:entnote-boty %inline-text;<

4cm FieadsOpenOiiiiecorg te.t doiSments or OpenOiiiiecorg te.t iontent embedded in other types oi doiSments ian iontainrariabae te.t eaements iaaaed iieadsc There are sereraa diiierent types oi iieads eaih oi thiih impaements adiiierent type oi rariabae te.t eaementc Fieads are most iommonay Ssed ior:

• Page nSmbers page nSmber iiead dispaays the nSmber oi the page it appears onc This iiead is SseiSa ior iootersc For ererypage on thiih the iooter appearss the iiead assSmes the iSrrent page nSmber so that aaa pages are nSmberediorreitayc

• Creation dates ireation date iiead dispaays the date on thiih the iSrrent doiSment tas ireatedc This iiead is SseiSa iordoiSment tempaatesc Erery doiSment ireated Ssing the tempaate iontains the date then it tas ireatedc

• NSmber ranges nSmber range iiead aaaots the Sser to nSmber iertain eaementss ior e.ampaes images or tabaesc nSmberrange iiead dispaays its otn position in reaation to the other nSmber range iieads ior the same rangec Thereioresii yoS more an image and its assoiiated nSmber range iiead tithin a doiSments the iieads are aStomatiiaaaySpdated to reiaeit the net orderc

This seition desiribes hot OpenOiiiiecorg soittare represents iieads in the X L iiae iormatc

4cmc0 Common Charaiteristiis oi Fiead EaementsEaih iiead type is represented by a iorresponding eaement typec iiead in a doiSment is enioded as a singaeeaement oi the appropriate typec The iontent oi the eaement is the te.tSaa representation oi the iSrrent iiead raaSeas it is dispaayed in the OpenOiiiiecorg Sser interiaiec Thereiores ignoring aaa iiead eaements and dispaaying onaythe te.tSaa iontent oi the eaements prorides an appro.imate te.t-onay rersion oi the doiSmentc

The raaSe oi a iiead is SsSaaay stored in an attribStec t is neiessary to store the raaSe so that the presentation oi theiiead ian be reiompSted ii neiessarys ior e.ampaes ii the Sser deiides to ihange the iormatting styae oi the iieadc tis aaso neiessary to store the presentation styae oi the eaement iontents to iaiiaitate easy proiessing oi the X LdoiSmentc For e.ampaes ii iompaete proiessing oi a iiead is impossibae or Sndesirabaes the appaiiation ian ignorethe iiead and Sse onay the iontent in this sitSationc For string raaSess ii the raaSe is identiiaa to the presentationsthe raaSe attribSte is omitted to aroid dSpaiiate storage oi iniormationc

For iieads that ian store diiierent types oi iontents ior e.ampaes nSmberss stringss or datess a raaSe type is storedin addition to the aitSaa raaSec The raaSe and raaSe type attribStes are e.paained aater in eition 4cmc94c i moreiniormation is needed to restore a iieads it is stored in additionaa attribStesc

The most iommon attribStes oi iiead eaements are:

● Fi.ed iieads any iieads hare a rariant there the iontent does not ihange aiter the initiaa raaSe is assignedc These iieadsare generaaay marked by the attribSte text:fixetc ee eition 4cmc94 ior more iniormation on this

152 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 153: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

attribStec

● Formatting styae ereraa iiead typess partiiSaaray those representing nSmbers dates or time datas iontain a iormatting styaec nOpenOiiiiecorg X Ls this iormatting styae is represented by a style:tata-style-name attribStec iniethe Sser ian ihange the presentation styae ior iieadss OpenOiiiiecorg mSst be abae to reiompSte a net repre-sentation oi the iiead iontent at any timec ee eition 4cmc94 ior more iniormation on this attribStec

4cmc DoiSment FieadsOpenOiiiiecorg Driter iieads ian dispaay iniormation aboSt the iSrrent doiSment or aboSt a speiiiii part oi theiSrrent doiSments sSih as the aSthors the iSrrent page nSmbers or the doiSment ireation datec These iieads areioaaeitireay reierred to as doiSment iieadsc

DoiSment iieads are oiten ii.edc iiead ian be marked ii.ed to indiiate that its iontent is preserreds rather thanre-eraaSateds then the doiSment is editedc For e.ampaes a date iiead shots the iSrrent datec i the date iiead ismarked ii.eds the raaSe oi the iiead is preserred dSring sSbseqSent edits and aatays reiaeits the originaa date onthiih the iiead tas inserted into the doiSmentc i the iiead is not marked ii.eds its raaSe ihanges thenerer thedoiSment is editedc n the same tays the aSthor iiead ian shot the originaa aSthor or the aast aSthor oi a doiS-ments depending on thether the iiead is marked ii.ed or notc

The groSp oi doiSment iieads iniaSdes:

● Date and time iieads

● ender and aSthor iieads

● Page nSmber iieads

● Chapter iieads

● Fiae name iieads

● DoiSment tempaate iieads

● tatistiis iieads0

4cmc4 Date FieadsDate iieads dispaay the iSrrent datec YoS ian adjSst the date to dispaay a date other than the iSrrent datec Fore.ampaes yoS ian ihange the date on a doiSment that tas edited aate at night so that it dispaays the date oi theioaaoting day or sereraa days aaterc

rg int T <text:tate<RrT 9T This eaement iontains the presentation oi the date iiead raaSes depending on the data styae

speiiiiedc The deiaSat date is the iSrrent datec YoS ian preserre the raaSe oi this eaementSsing the text:fixet attribSte desiribed in eition 4cmc94c

ooT <!ELEMENT text:tate (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:tate< eaement are:● Date raaSe

● Date adjSstment

0 These iieads are not iSrrentay part oi the OpenOiiiiecorg X L iiae iormatc

Chapter 3 Text Content 153

Page 154: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Fi.ed isee eition 4cmc94o

● Formatting styae isee eition 4cmc94oc The iormatting styae mSst be a date data styaes see eition c5c9 iormore iniormationc

Date VaaSeThe text:tate-value attribSte speiiiies a partiiSaar date raaSec For e.ampaes ii the date iiead is markedii.eds yoS ian Sse this attribSte to speiiiy the date on thiih the iiead tas marked as ii.edc YoS ian aaso Sse thisattribSte to speiiiy a iStSre datec ome appaiiations sSpport date and time in addition to date-onay raaSess inaiiordanie tith O r620c

rg int T text:tate-valueRrT 9T The date raaSe shoSad ioniorm tith the e.tended date iormat desiribed in eition 5c c0c0

oi O r620c ee page 9 ior a pointer to O r620c i no raaSe is speiiiieds the iSrrent dateis assSmeds eren ii the iiead is marked ii.edc

ooT <!ATTLIST text:tate text:tate-value %timeInstance;tIMPLIEt<

Date djSstmentYoS ian adjSst the raaSe oi a date iiead by a iertain time periods thiih yoS speiiiy Ssing the text:tate-atiust attribStec OpenOiiiiecorg Driter trSniates the speiiiied time period to a period oi iSaa days and adds itto the raaSe oi the date iieadc i the time period is negatires OpenOiiiiecorg Driter sSbtraits it irom the raaSe oithe date iiead yieading a date beiore the iSrrent datec

rg int T text:tate-atiustRrT 9T The raaSe oi this attribSte mSst ioniorm to the time period iormat desiribed in eition

5c5c4c oi O r620c ee page 9 ior a pointer to O r620c The raaSe ian be preieded byan optionaa minSs sign to indiiate a negatire time dSrationc

ooT <!ATTLIST text:tate text:tate-atiust %c-turation;tIMPLIEt<

oT 14un1iTuu-4un1T

CSrrentays OpenOiiiiecorg does not sSpport month or year dSrationsc

4cmc9 Time FieadsTime iieads dispaay the iSrrent timec They are rery simiaar to the date iieads desiribed in the prerioSs seitionssSpporting the same attribStes e.iept that ior time iieadss they are iaaaed text:time-value and text:time-atiust attribStesc

rg int T <text:time<RrT 9T This eaement iontains the presentation oi the time iiead raaSes depending on the data styae

speiiiiedc The deiaSat time is the iSrrent timec YoS ian preserre the raaSe oi this eaementSsing the text:fixet attribSte desiribed in eition 4cmc94c

ooT <!ELEMENT text:time (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:time< eaement are:● Time raaSe

154 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 155: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Time adjSstment

● Fi.ed isee eition 4cmc94o

● Formatting styae isee eition 4cmc94oc The iormatting styae mSst be a time data styaes see eition c5c5 iormore iniormationc

Time VaaSeThe text:time-value attribSte reiords the time at thiih the doiSment tas aast editedc

rg int T text:time-value RrT 9T The raaSe oi this attribSte mSst ioniorm tith the e.tended time iormat desiribed in eition

5c9c0 oi O r620c ee page 9 ior a pointer to O r620c i no raaSe is speiiiieds theiSrrent time is assSmeds eren ii the iiead is marked fixetc

ooT <!ATTLIST text:time text:time-value %time; tIMPLIEt<

Time djSstmentYoS ian adjSst the raaSe oi a time iiead by a iertain time periods thiih yoS speiiiy Ssing the text:time-atiust attribStec The OpenOiiiiecorg soittare trSniates the time period to a period oi iSaa minStes and adds itto theraaSe oi the time iieadc i the time period is negatires the OpenOiiiiecorg soittare sSbtraits it irom the raaSeoi the time iiead yieading a time in the pastc

rg int T text:time-atiustRrT 9T The raaSe oi this attribSte mSst ioniorm to the time period iormat desiribed in eition

5c5c4c oi O r620c ee page 9 ior a pointer to O r620c The raaSe ian be preieded byan optionaa minSs sign to indiiate a negatire time dSrationc Positire raaSes adjSst the timeto a time in the iStSres thiae negatire raaSes adjSst the time to a time in the pastc The dSra-tion is trSniated to iSaa minStesc

ooT <!ATTLIST text:time text:time-atiust %c-turation;tIMPLIEt<

E4oT T u i4tjr9i4Iur 9i41tir uIi ee o9

i the attribSte text:time-atiustp"PTM14"s the time iiead dispaays a time thiih is 05 minStes aater thanthe aitSaa time speiiiied by the time iiead raaSec

i the attribSte text:time-atiustp"-PTm1"s the time iiead dispaays a time thiih is one hoSr beiore theaitSaa time speiiiied by the time iiead raaSec

4cmc5 Page NSmber FieadsPage nSmber iieads dispaay the iSrrent page nSmberc These iieads are partiiSaaray SseiSa ior reiSrring iontentssSih as headers and iootersc i yoS insert a page nSmber iiead into a iooters the iSrrent page nSmber is dispaayedon erery page on thiih the iooter appearsc

rg int T <text:page-number<RrT 9T i the text:page-atiust attribSte is Sseds the page nSmber oi the page at the speii-

iied oiiset is dispaayeds ii it e.istsc

ooT <!ELEMENT text:page-number (tPCtATAy<

Chapter 3 Text Content 155

Page 156: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The attribStes that yoS ian assoiiate tith the <text:page-number< eaement are:● Page adjSstment

● Dispaay prerioSs or ioaaoting page nSmbers

● Fi.ed isee eition 4cmc94o

● Formatting styae isee eition 4cmc94o Page nSmbers ian be iormatted aiiording to the nSmber iormat desiribed in eition c c i a nSmber styae isnot speiiiieds the page nSmbers are iormatted aiiording to the nSmber styae deiined in the iSrrent page styaec

Page djSstmentYoS ian adjSst the raaSe oi a page nSmber iiead by a speiiiied nSmbers aaaoting yoS to dispaay the page nSmbersoi ioaaoting or preieding pagesc YoS speiiiy the adjSstment nSmber Ssing the text:page-atiust attribStecDhen yoS Sse this attribStes the appaiiation:

0c dds the raaSe oi the attribSte to the iSrrent page nSmberc

c Cheiks to see ii the resSating page e.istsc

4c i the page e.istss the nSmber oi that page is dispaayedc

9c i the page does not e.ists the raaSe oi the page nSmber iiead remains empty and no nSmber is dispaayedc

rg int T text:page-atiustRrT 9T

ooT <!ATTLIST text:page-number text:page-atiust %integer;tIMPLIEt<

Dispaay PrerioSs or Foaaoting Page NSmbersThe text:select-page attribSte aaaots yoS to dispaay the nSmber oi the prerioSs or the ioaaoting pagerather than the nSmber oi the iSrrent pagec

rg int T text:select-pageRrT 9T The raaSe oi this attribSte ian be previouss currents or nextcooT <!ATTLIST text:page-number text:select-page ( previous |

current | next y "current"<

n T To dispaay the iSrrent page nSmber on aaa pages e.iept the iirst or aast pages yoS shoSad Sse a iombinationoi the text:select-page and text:page-atiust attribStesc E4oT Tiou9oT4yu1.ir iorII 1io4. i1r Iin1i4TTio4. 9i o oir ieuI9io4.

<text:page-number text:select-pagep"previous" text:page-atiustp"1" text:num-formatp"1"/<

4cmc6 Page ContinSation Te.t n some pSbaiiationss a iontinSation reminder is printed at the bottom oi the page in addition to the page nSmbercTo iniaSde a iontinSation reminders Sse the <text:page-continuation< eaementc

156 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 157: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:page-continuation<RrT 9T

ooT <!ELEMENT text:page-continuation (tPCtATAy<

The attribStes assoiiated tith the <text:page-continuation< eaement are:● PrerioSs or ioaaoting page

● tring raaSe

PrerioSs or Foaaoting PageThis attribSte speiiiies thether to iheik ior a prerioSs or ne.t page and ii the page e.istss the iontinSation te.t isprintedc

rg int T text:select-pageRrT 9T The raaSe oi this attribSte ian be previous or nextcooT <!ATTLIST text:page-continuation text:select-page

( previous | next y teEt|IeEt<

tring VaaSeThis attribSte speiiiies the iontinSation te.t to dispaayc

rg int T text:string-valueRrT 9T i this attribSte is omitteds the eaement iontent is Ssedc

ooT <!ATTLIST text:page-continuation text:string-value CtATAtIMPLIEt<

4cmcm ender FieadsThere are sereraa iieads thiih iontain iniormation aboSt the sender oi the iSrrent doiSments ior e.ampaes nameand emaia addressc The iniormation aboSt the sender is taken irom the OpenOiiiiecorg Sser iniormation diaaogc ia sender iiead is marked ii.ed Ssing the text:fixet attribStes the originaa sender iniormation in the senderiieads is preserredc Othertises the iniormation is Spdated eaih time the iiae is editeds iaSsing the iieads to ihangeraaSe then the doiSment is edited by a diiierent Sserc

First NameThis eaement represents the iirst name oi the senderc

rg int T <text:senter-firstname<RrT 9T

ooT <!ELEMENT text:senter-firstname (tPCtATAy<<!ATTLIST text:senter-firstname text:fixet %boolean"true"<

Chapter 3 Text Content 157

Page 158: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Last NameThis eaement represents the aast name oi the senderc

rg int T <text:senter-lastname<RrT 9T

ooT <!ELEMENT text:senter-lastname (tPCtATAy<<!ATTLIST text:senter-lastname text:fixet %boolean "true"<

nitiaasThis eaement represents the initiaas oi the senderc

rg int T <text:senter-initials<RrT 9T

ooT <!ELEMENT text:senter-initials (tPCtATAy<<!ATTLIST text:senter-initials text:fixet %boolean "true"<

TitaeThis eaement represents the titae oi the senderc

rg int T <text:senter-title<RrT 9T

ooT <!ELEMENT text:senter-title (tPCtATAy<<!ATTLIST text:senter-title text:fixet %boolean; "true"<

PositionThis eaement represents the position oi the senderc

rg int T <text:senter-position<RrT 9T

ooT <!ELEMENT text:senter-position (tPCtATAy<<!ATTLIST text:senter-position text:fixet "true"<

Emaia ddressThis eaement represents the emaia address oi the senderc

rg int T <text:senter-email<RrT 9T

ooT <!ELEMENT text:senter-email (tPCtATAy<<!ATTLIST text:senter-email text:fixet "true"<

158 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 159: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Prirate Teaephone NSmberThis eaement represents the prirate teaephone nSmber oi the senderc

rg int T <text:senter-phone-private<RrT 9T

ooT <!ELEMENT text:senter-phone-private (tPCtATAy<<!ATTLIST text:senter-phone-private text:fixet "true"<

Fa. NSmberThis eaement represents the iaisimiae nSmber oi the senderc

rg int T <text:senter-fax<RrT 9T

ooT <!ELEMENT text:senter-fax (tPCtATAy<<!ATTLIST text:senter-fax text:fixet "true"<

Company NameThis eaement represents the name oi the iompany that empaoys the senderc

rg int T <text:senter-company<RrT 9T

ooT <!ELEMENT text:senter-company (tPCtATAy<<!ATTLIST text:senter-company text:fixet "true"<

Oiiiie Teaephone NSmberThis eaement represents the oiiiie teaephone nSmber oi the senderc

rg int T <text:senter-phone-work<RrT 9T

ooT <!ELEMENT text:senter-phone-work (tPCtATAy<<!ATTLIST text:senter-phone-work text:fixet "true"<

treetThis eaement represents the street name oi the address oi the senderc

rg int T <text:senter-street<RrT 9T

ooT <!ELEMENT text:senter-street (tPCtATAy<<!ATTLIST text:senter-street text:fixet "true"<

Chapter 3 Text Content 159

Page 160: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

CityThis eaement represents the iity name oi the address oi the senderc

rg int T <text:senter-city<RrT 9T

ooT <!ELEMENT text:senter-city (tPCtATAy<<!ATTLIST text:senter-city text:fixet "true"<

Postaa CodeThis eaement represents the postaa iode oi the address oi the senderc

rg int T <text:senter-postal-cote<RrT 9T

ooT <!ELEMENT text:senter-postal-cote (tPCtATAy<<!ATTLIST text:senter-postal-cote text:fixet "true"<

CoSntryThis eaement represents the ioSntry oi the address oi the senderc

rg int T <text:senter-country<RrT 9T

ooT <!ELEMENT text:senter-country (tPCtATAy<<!ATTLIST text:senter-country text:fixet "true"<

tate or ProrinieThis eaement represents the state or prorinie oi the address oi the senders ii appaiiabaec

rg int T <text:senter-state-or-province<RrT 9T

ooT <!ELEMENT text:senter-state-or-province (tPCtATAy<<!ATTLIST text:senter-state-or-province text:fixet true"<

4cmcr Sthor FieadsThere are tto OpenOiiiiecorg X L eaements araiaabae to represent the aSthor oi a doiSmentc One eaementdispaays the iSaa name oi the aSthor and the other eaement dispaays the initiaas oi the aSthorc

YoS ian ii. the raaSe oi aSthor iieads Ssing the text:fixet attribStec arking an aSthor iiead as ii.edpreserres the originaa iiead iontentc Othertises the iiead iontent ihanges eaih time the doiSment is Spdateds toreiaeit the aast aSthor oi the doiSmentc

160 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 161: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Name oi the SthorThis eaement represents the iSaa name oi the aSthorc

rg int T <text:author-name<RrT 9T

ooT <!ELEMENT text:author-name (tPCtATAy<<!ATTLIST text:author-name text:fixet "true"<

nitiaas oi the SthorThis eaement represents the initiaas oi the aSthorc

rg int T <text:author-initials<RrT 9T

ooT <!ELEMENT text:author-initials (tPCtATAy<<!ATTLIST text:author-initials text:fixet "true"<

4cmc PaaiehoadersOpenOiiiiecorg Driter Sses paaiehoader iieads to indiiate aoiations in a doiSment there the Sser mSst iiaa insome iniormationc For e.ampae in a aetter tempaates yoS ian hare a seition oi the doiSment reserred ior theaddress oi the reiipientc paaiehoader iiead dispaays te.t iniorming the Sser aboSt the pSrpose oi the paaiehoaderand sometimes iniaSdes a desiriptionc Paaiehoader iieads ian represent diiierent te.t eaementss sSih as te.t ortabaesc

rg int T <text:placeholter<RrT 9T This eaement iontains some briei te.t thiih is dispaayed tith the paaiehoaderc

ooT <!ELEMENT text:placeholter (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:placeholter< eaement are:● Paaiehoader type

● Paaiehoader desiription

Paaiehoader TypeThere are iire diiierent types oi paaiehoaders representing the iire possibae types oi iontent: te.ts tabaess te.tbo.ess imagess or objeitsc The text:placeholter-type attribSte represents the iontent typec

rg int T text:placeholter-typeRrT 9T This attribSte is mandatory and it indiiates thiih type oi te.t iontent the paaiehoader repre-

sentsc The raaSe oi the attribSte ian be texts text-boxs images tables or obiectcooT <!ATTLIST text:placeholter text:placeholter-type ( text |

table | text-box | image | obiect y teEt|IeEt<

Chapter 3 Text Content 161

Page 162: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Paaiehoader Desiription n addition to the briei te.t stored in the eaement iontents yoS ian assoiiate a text:tescription attribStetith the paaiehoader eaementc This attribSte is optionaac The pSrpose oi the attribSte is to iontain a more eaaboratedesiription oi the pSrpose oi the paaiehoader than the desiription stored in the eaement iontentc ee eition4cmc94 ior iniormation on Ssing the text:tescription attribStecooT <!ATTLIST text:placeholter text:tescription %string; tIMPLIEt<

4cmc02 Database FieadsOpenOiiiiecorg Driter doiSments ian ionneit to OpenOiiiiecorg Base databases and dispaay database iniorma-tion as te.t iontentc To dispaay database iniormations OpenOiiiiecorg Driter Sses a groSp oi te.t iieadss ioaaei-tireay iaaaed database iieadsc OpenOiiiiecorg Base ian Sse database tabaes irom oL serrerss thereiore yoS ianSse database iieads to aiiess any oL databases prorided that the appropriate drirers are araiaabaec

n OpenOiiiiecorg Bases a database iontains the ioaaoting iomponents:

● Tabaess thiih store the aitSaa datac

● oSeriess thiih e.trait a sSbset oi data irom one or more tabaesc

● Formss thiih present the datac

● eportss thiih sSmmarike the database iontentc

Database iorms and reports are not reaerant to X L te.t iontents thereiore they are not disiSssed in this ihaptercFrom the point oi riet oi embedding database iniormation in OpenOiiiiecorg te.t doiSmentss qSeries and tabaesare ionsidered the samec Thereiore ior the remainder oi this seitions the phrase database table reiers to both data-base tabaes and database qSeriesc

Erery database in OpenOiiiiecorg Base has a name and this name is Ssed by aaa oi the OpenOiiiiecorg iompo-nents to identiiy a databasec aa database iieads iontain a database name and most database iieads aaso iontain thename oi a database tabaes thiih mSst be stored in the named databasec n additionaa attribSte determines thetherthe database tabae reiers to an oL tabaes an OpenOiiiiecorg qSerys or the resSat oi an oL iommandc

The ioaaoting entity is deiined ior database iieads:

rg int T %tatabase-table;ooT <!ENTITY % tatabase-table

"text:tatabase-name CtATA teEt|IeEt text:table-name CtATA teEt|IeEt" text:table-type (table|query|commanty tIMPLIEt" <

E4oT T <!ATTLIST tatabase-element %tatabase-table;<

Database iieads aaone do not retriere iniormation irom a databasec n addition to the database iieadss a set oi data-base rots is aaso added to the doiSmentc Dhen net data is added to the doiSments aaa database iieads beaongingto the added database tabae are Spdatedc sing the OpenOiiiiecorg Sser interiaies yoS ian add database rots inone oi the ioaaoting tays:

● anSaaays Ssing the Beamer and the Data to Fieads iSnitionc

● sing the Form Letter menS item on the Fiae menSc This menS item adds eaih rot in the ihosen data set into anetay ireated iopy oi the iorm aetterc

To dispaay data irom a database tabae Sse the <text:tatabase-tisplay< eaementc sing the <text:tatabase-select< and <text:tatabase-next< eaementss yoS ian determine thiih rot tithin the

162 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 163: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

iSrrent seaeition to dispaayc YoS ian dispaay the iSrrent rot nSmber ior a partiiSaar tabae Ssing the <text:tatabase-row-number< eaementc Finaaays the <text:tatabase-name< iiead dispaays the name oi themost reientay Ssed databases thiih is the address book iiae database by deiaSatc

4cmc00 Dispaaying Database ContentThe <text:tatabase-tisplay< eaement dispaays data irom a databasec Dhen a net data set is added to adoiSments aaa iieads that dispaay data irom that database tabae Spdate their iontentc

rg int T <text:tatabase-tisplay<RrT 9T

ooT <!ELEMENT text:tatabase-tisplay (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:tatabase-tisplay< eaement are:● text:tatabase-names text:table-name and text:table-type

These attribStes speiiiy the database and database tabae that this iiead Ssesc

ooT <!ATTLIST text:tatabase-tisplay %tatabase-table;<

● text:tatabase-column-name ee the seition holumn ame ior iniormation aboSt this attribStec

● style:tata-style-name i the ioaSmn speiiiies a nSmeriis booaeans dates or time raaSes the data is iormatted aiiording to the appro-priate data styaec i no data styae is speiiiieds the data styae assigned to this ioaSmn in OpenOiiiiecorg Base isSsedc ee eition 4cmc94 ior more iniormation aboSt Ssing this attribStec

ooT <!ATTLIST text:tatabase-tisplay style:tata-style-name %style-name;<

CoaSmn NameThe text:column-name attribSte speiiiies the ioaSmn irom thiih to dispaay the datac

rg int T text:column-nameRrT 9T The raaSe oi this attribSte mSst be a ioaSmn iontained in the speiiiied data -

basec

ooT <!ATTLIST text:tatabase-tisplay text:column-name CtATAteEt|IeEt<

4cmc0 eaeiting the Ne.t Database otThe <text:tatabase-next< eaement ihanges the rot in the iSrrent seaeition thiih is Ssed ior dispaay inaaa ioaaoting atext:tatabase-tisplay< iieadsc The ne.t rot irom the iSrrent seaeition is ihosen ii itsatisiies a giren ionditionc i the ne.t rot is tanted regardaess oi any ionditions the iondition may be omitted orset to truec

Chapter 3 Text Content 163

Page 164: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:tatabase-next<RrT 9T

ooT <!ELEMENT text:tatabase-next EMPTY<

The attribStes that yoS ian attaih to the <text:tatabase-next< are:● text:tatabase-names text:table-name and text:table-type

These attribStes speiiiy the database and the database tabae that this iiead Ssesc

ooT <!ATTLIST text:tatabase-next %tatabase-table;<

● text:contition ee the seition hondition ior iniormation aboSt this attribStec

ConditionThe text:contition attribSte speiiiies the iondition e.pressionc The e.pression is eraaSated and ii the resSatinterpreted as a booaean raaSe is trSes the ne.t rot is Ssed as the net iSrrent rotc Paease note that yoS ian Ssedatabase iiead raaSes in the e.pression by eniaosing in sqSare braiketss the database names the tabae names and theioaSmn names separated by dotsc

i the text:contition attribSte is not presents OpenOiiiiecorg assSmes the iormSaa trues meaning that thene.t rot is seaeited Snionditionaaayc

rg int T text:contitionRrT 9T

ooT <!ATTLIST text:tatabase-next text:contition %formula;tIMPLIEt<

E4oT T

text:formulap'[attress book file.attress.FIeSTNAME] pp "Julie"'

This e.ampae speiiiies a iondition that is trSe ii the iSrrent rot irom the OpenOiiiiecorg address book is theaddress ior a person named JSaiec i the iondition shotn in this e.ampae is Ssed in a <text:tatabase-next< eaements the ioaaoting happens:● The <text:tatabase-tisplay< eaements dispaay the data irom the iirst rot oi the iSrrent seaeitionc● i the FIeSTNAME ioaSmn oi the iSrrent rot reads Julies the iSrrent rot is ihangedc Othertises nothing

happensc

● i the iirst rot is Julies the ioaaoting <text:tatabase-tisplay< eaements dispaay data irom theseiond rotc Othertises they dispaay data irom the iirst rotc

ee eition 4cmc94 ior more iniormation on the iormSaa synta. oi a text:contition attribStes thiih is thesame as that oi the text:formula attribStec

4cmc04 eaeiting a ot NSmberThe <text:tatabase-row-select< eaement seaeits a speiiiii rot irom the iSrrent seaeitionc s tith the<text:tatabase-row-next< eaements yoS ian speiiiy a iondition so that the giren rot is onay seaeited ii

164 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 165: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

the iondition is truec

rg int T <text:tatabase-row-select<RrT 9T

ooT <!ELEMENT text:tatabase-row-select EMPTY<

The attribStes that yoS ian assoiiate tith the <text:tatabase-row-select< are:● text:tatabase-names text:table-name and text:table-type

These attribStes determine the database and the database tabae that this iiead Ssesc

ooT <!ATTLIST text:tatabase-row-select %tatabase-table;<

● text:contitionThis attribSte speiiiies the iondition e.pressionc ee eition 4cmc0 ior a iSaa e.paanation oi hot to Sse thisattribStec

ooT <!ATTLIST text:tatabase-row-select text:contition %formula;tIMPLIEt<

● text:row-number ee the seition Telectinm tie noS umbee ior iniormation aboSt this attribStec

eaeiting the ot NSmberThis attribSte speiiiies the rot nSmber to seaeit then a iondition is truec

rg int T text:row-numberRrT 9T

ooT <!ATTLIST text:tatabase-row-select text:row-number %integer; teEt|IeEt<

4cmc09 Dispaaying the ot NSmberThe <text:tatabase-row-number< eaement dispaays the iSrrent rot nSmber ior a giren tabaec Note thatthe eaement dispaays the aitSaa rot nSmber irom the database and not the rot nSmber oi the iSrrent seaeition thatis Ssed as an attribSte raaSe in the <text:tatabase-row-select< eaementc

rg int T <text:tatabase-row-number<RrT 9T

ooT <!ELEMENT text:tatabase-row-number (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:tatabase-row-number< are:● text:tatabase-names text:table-name and text:table-type

These attribStes determine the database and the database tabae that this iiead Ssesc

ooT <!ATTLIST text:tatabase-row-number %tatabase-table;teEt|IeEt<

Chapter 3 Text Content 165

Page 166: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● text:num-format and text:num-letter-syncThese attribStes determine hot the nSmber shoSad be iormattedc ee eition 4cmc0 ior more iniormation onhot to Sse this attribStec

ooT <!ATTLIST text:tatabase-row-number %num-format; tIMPLIEt<

● text:valueThis attribSte speiiiies the iSrrent rot nSmberc The nSmber ihanges then net data is added to the iSrrentdoiSmentc

ooT <!ATTLIST text:tatabase-row-number text:value %integer;tIMPLIEt<

4cmc05 Dispaay CSrrent Database and TabaeOpenOiiiiecorg keeps traik oi the aast database and tabae that tas Ssed in the doiSmentc n other tordss the tabaethat is Ssed by the aast iiead that tas inserted into the doiSmentc n the OpenOiiiiecorg Sser interiaies the data-base is dispaayed in the Beamerc The <text:tatabase-name< eaement dispaays the database and tabae nameoi the most reientay Ssed tabaec

rg int T <text:tatabase-name<RrT 9T

ooT <!ELEMENT text:tatabase-name (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:tatabase-name< eaement are:● text:tatabase-names text:table-name and text:table-type

These attribStes determine the database and the database tabae that this iiead Ssesc

ooT <!ATTLIST text:tatabase-name %tatabase-table;<

4cmc06 etadata Fieads etadata iieads dispaay meta iniormation aboSt the doiSments sSih ass the doiSment ireation date or the time atthiih the doiSment tas aast printedc The names oi the metadata iiead eaements iorrespond to the metadataeaements desiribed in Chapter c

aa metadata iiead eaements ian be marked as ii.ed Ssing the text:fixet attribStec ereraa metadata iieads dispaay a date or a timec The eaements ior these iieads reqSire an assoiiated text:tate-value or a text:time-value attribStes and optionaaays they ian aaso hare a style:tata-style-name attribStec ee eition 4cmc94 ior more iniormation on these attribStesc

nitiaa CreatorThis eaement represents the name oi the aSthor tho ireated the originaa doiSmentc

rg int T <text:initial-creator<RrT 9T

166 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 167: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:initial-creator<ooT <!ELEMENT text:initial-creator (tPCtATAy<

<!ATTLIST text:initial-creator text:fixet %boolean; "false"<

DoiSment Creation DateThis eaement represents the date on thiih the doiSment tas ireatedc

rg int T <text:creation-tate<RrT 9T

ooT <!ELEMENT text:creation-tate (tPCtATAy<<!ATTLIST text:creation-tate

text:fixet %boolean; "false"text:tate-value %tate; tIMPLIEtstyle:tata-style-name %style-name; tIMPLIEt<

DoiSment Creation TimeThis eaement represents the time at thiih the doiSment tas ireatedc

rg int T <text:creation-time<RrT 9T

ooT <!ELEMENT text:creation-time (tPCtATAy<<!ATTLIST text:creation-time

text:fixet %boolean; "false"text:time-value %timeInstance; tIMPLIEtstyle:tata-style-name %style-name; tIMPLIEt<

DoiSment DesiriptionThis eaement iontains a briei desiription oi the doiSmentc

rg int T <text:tescription<RrT 9T

ooT <!ELEMENT text:tescription (tPCtATAy<<!ATTLIST text:tescription

text:fixet %boolean; "false"<

ser-Deiined DoiSment niormationThis groSp oi eaements iontains Sser-deiined iniormation aboSt the doiSmentc The iieads are not Ssed or inter-preted by OpenOiiiiecorgs so the Sser may Sse these eaements ior any pSrposec

rg int T <text:user-tefinet<RrT 9T

Chapter 3 Text Content 167

Page 168: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:user-tefinet<ooT <!ELEMENT text:user-tefinet (tPCtATAy<

<!ATTLIST text:user-tefinettext:name %string; teEt|IeEttext:fixet %boolean; "false"<

Print TimeThis eaement represents the time at thiih the doiSment tas aast printedc

rg int T <text:print-time<RrT 9T

ooT <!ELEMENT text:print-time (tPCtATAy<<!ATTLIST text:print-time

text:fixet %boolean; "false"text:time-value %timeInstance; tIMPLIEtstyle:tata-style-name %style-name; tIMPLIEt<

Print DateThis eaement represents the date on thiih the doiSment tas aast printedc

rg int T <text:print-tate<RrT 9T

ooT <!ELEMENT text:print-tate (tPCtATAy<<!ATTLIST text:print-tate

text:fixet %boolean; "falsetext:tate-value %tate; tIMPLIEtstyle:tata-style-name %style-name; tIMPLIEt<

Printed ByThis eaement represents name oi the aast person tho printed the doiSmentc

rg int T <text:printet-by<RrT 9T

ooT <!ELEMENT text:printet-by (tPCtATAy<<!ATTLIST text:printet-by

text:fixet %boolean; "false"<

DoiSment TitaeThis eaement represents the titae oi the doiSmentc

rg int T <text:title<RrT 9T

168 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 169: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ELEMENT text:title (tPCtATAy<<!ATTLIST text:title

text:fixet %boolean; "false"<

DoiSment SbjeitThis eaement represents the sSbjeit oi the doiSmentc

rg int T <text:subiect<RrT 9T

ooT <!ELEMENT text:subiect (tPCtATAy<<!ATTLIST text:subiect

text:fixet %boolean; "false"<

DoiSment 2eytordsThis eaement iontains a aist oi keytords Ssed to desiribe the doiSmentc

rg int T <text:keyworts<RrT 9T

ooT <!ELEMENT text:keyworts (tPCtATAy<<!ATTLIST text:keyworts

text:fixet %boolean; "false"<

DoiSment erision NSmberThis eaement iontains the doiSment rerision nSmberc Dhen the doiSment is ireateds the rerision nSmber is set to0c Eaih time the doiSment is sareds the doiSment rerision nSmber is inirementedc

rg int T <text:etiting-cycles<RrT 9T

ooT <!ELEMENT text:etiting-cycles (tPCtATAy<<!ATTLIST text:etiting-cycles

text:fixet %boolean; "false"<

n T inie the <text:etiting-cycles< iiead ian not be iormatteds the rerision nSmber ian be read iromthe eaement iontentc Thereiores no e.tra attribSte is neededc

DoiSment Edit DSrationErery time a doiSment is editeds OpenOiiiiecorg reiords the dSration betteen the time the doiSment is openedand the time the doiSment is iaosedc t then adds the dSration to an internaa ioSnters thereby keeping traik oi thetotaa time that has been spent editing the doiSmentc

rg int T <text:etiting-turation<RrT 9T

Chapter 3 Text Content 169

Page 170: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:etiting-turation<ooT <!ELEMENT text:etiting-turation (tPCtATAy<

<!ATTLIST text:etiting-turationtext:fixet %boolean; "false"text:turation %timeturation; tIMPLIEtstyle:tata-style-name %style-name; tIMPLIEt<

DoiSment odiiiiation TimeThis eaement represents the time at thiih the doiSment tas aast modiiiedc

rg int T <text:motification-time<RrT 9T

ooT <!ELEMENT text:motification-time (tPCtATAy<<!ATTLIST text:motification-time text:fixet %boolean; "false" text:time-value %timeInstance; tIMPLIEt style:tata-style-name %style-name; tIMPLIEt<

n T This eaement dispaays the iniormation irom the <meta:tate< eaementc Thename tas ihosen to aroid ioniSsion tith <text:tate< iieadsc

DoiSment odiiiiation DateThis eaement represents the date on thiih the doiSment tas aast modiiiedc

rg int T <text:motification-tate turation<RrT 9T

ooT <!ELEMENT text:motification-tate (tPCtATAy<<!ATTLIST text:motification-tate

text:fixet %boolean; "false" text:tate-value %tate; tIMPLIEt style:tata-style-name %style-name; tIMPLIEt<

DoiSment odiiied ByThis eaement represents the name oi the person tho aast modiiied the doiSmentc

rg int T <text:creator<RrT 9T

ooT <!ELEMENT text:creator (tPCtATAy<<!ATTLIST text:creator

text:fixet %boolean; "false"<

4cmc0m Conditionaa Te.t FieadsTe.t iieads ian be Ssed to dispaay one te.t or anothers depending on the ionditionc Conditionaa te.t iieads aregiren a iondition and tto te.t stringsc i the iondition is trSes one oi the te.t strings is dispaayedc i the ionditionis iaases the other te.t string is dispaayedc

170 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 171: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:contitional-text<RrT 9T

ooT <!ELEMENT text:contitional-text (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:contitional-text< eaement are:● Condition

● Te.t to dispaay ii the iondition is trSe

● Te.t to dispaay ii the iondition is iaase

● CSrrent iondition

The text:contition attribSte iontains a booaean e.pressionc Depending on the resSats the raaSe oi thetext:tisplay-if-true or text:tisplay-if-false attribSte is dispaayedc

rg int T text:contitionRrT 9T

ooT <!ATTLIST text:contitional-text text:contition %formula; teEt|IeEt<

Te.t to Dispaay ii the Condition is TrSeThe text:string-value-if-true attribSte iontains the te.t string to dispaay ii the iondition is truec

rg int T text:string-value-if-trueRrT 9T i the iondition is trues the raaSe oi this attribSte is dispaayedcooT <!ATTLIST text:contitional-text text:string-value-

if-true %string; teEt|IeEt<

Te.t to Dispaay ii the Condition is FaaseThe text:string-value-if-false attribSte iontains the te.t string to dispaay ii the iondition is falsec

rg int T text:string-value-if-falseRrT 9T i the iondition eraaSates to falses the raaSe oi this attribSte is dispaayedcooT <!ATTLIST text:contitional-text text:string-value-

if-false %string; teEt|IeEt<

CSrrent ConditionThe text:current-value attribSte iontains the eraaSation resSat oi the iondition giren by the e.pression inthe text:contition attribStec E.paiiitay giring the resSat aaaots appaiiations to deaay eraaSating the resSatSntia neiessaryc This attribSte is raaSabae ior the ioaaoting reasons:

● i the e.pression is iostay to eraaSates ior e.ampaes the e.pression iontains reierenies to sereraa databasesc

● To aaaot transiormations to iorreitay dispaay the state oi the doiSment tithoSt haring to parse and eraaSatethe ionditionc

Chapter 3 Text Content 171

Page 172: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:current-valueRrT 9T The raaSe oi this attribSte is orertritten tith a net raaSe as soon as the appai-

iation eraaSates the e.pressionc

ooT <!ATTLIST text:contitional-text text:current-value%boolean; "false"<

n T This attribSte has no iSnition other than to ease transiormation or initiaaaydispaay the doiSmentc

4cmc0r Oidden Te.t FieadThe hidden te.t iiead is iaoseay reaated to the ionditionaa te.t iieadc t dispaays ii.ed te.ts e.iept then the iondi-tion is true then it does not dispaay anythingc

rg int T <text:hitten-text<RrT 9T

ooT <!ELEMENT text:hitten-text (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:hitten-text< eaement are:● Condition

● Te.t

● s hidden

ConditionThe text:contition attribSte iontains a booaean e.pressionc i the e.pression eraaSates to trues the te.t ishiddenc

rg int T text:contitionRrT 9T

ooT <!ATTLIST text:hitten-text text:contition %formula; teEt|IeEt<

Te.tThe text:string-value attribSte speiiiies the te.t to dispaay ii the iondition is falsec

rg int T text:string-valueRrT 9T The raaSe oi this attribSte is dispaayed ii the iondition eraaSates to falsecooT <!ATTLIST text:hitten-text text:string-value %

formula; teEt|IeEt<

s OiddenThe text:is-hitten attribSte speiiiies thether or not the iiead is iSrrentay risibaec The pSrpose oi thisattribSte is simiaar to that oi the text:current-value attribSte in the text:contition iieadc eiording

172 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 173: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

the resSat aaaots transiormations to iorreitay represent the doiSment tithoSt haring to parse the ionditione.pression or eraaSate the iondition then aoading the doiSmentc

rg int T text:is-hittenRrT 9T The raaSe oi this attribSte is orertritten tith a net raaSe as soon as the appai-

iation eraaSates the e.pressionc

ooT <!ATTLIST text:hitten-text text:is-hitten %boolean; "false"<

n T This attribSte has no iSnition other than to ease transiormation or initiaaaydispaay the doiSmentc

4cmc0 Oidden Paragraph FieadsThe hidden paragraph iiead has a simiaar iSnition to the hidden te.t iieadc Ooterers the hidden paragraph iieaddoes not hare any iontentc t hides the paragraph in thiih it is iontainedc This aaaots yoS to hide or dispaay aparagraph oi iormatted te.ts depending on thether a iondition is true or falsec Oidden paragraph iieads are oiten Ssed together tith iorm aettersc For e.ampaes ii a iondition depends on a data-base iieads a hidden paragraph iiead ian be Ssed to seaeitireay iniaSde paragraphs in the iorm aetter depending onthe database iontentc Satipae paragraph iieads ian be iontained one paragraphc The paragraph is dispaayed ii theiondition assoiiated tith at aeast one hidden paragraph iiead is falsec aternatireays yoS ian iombine the iondi-tions assoiiated tith sereraa hidden paragraph iieads into a singae iondition ior a singae iiead Ssing aogiiaa opera-tions on the ionditionsc

rg int T <text:hitten-paragraph<RrT 9T

ooT <!ELEMENT text:hitten-paragraph EMPTY< n T naike most iieadss this iiead does not dispaay te.ts bSt it aiieits the entire para -

graph in thiih it is iontainedc

The attribStes that yoS ian assoiiate tith the <text:hitten-paragraph< eaement are:● Condition

● s hidden

ConditionThe text:contition attribSte iontains a booaean e.pressionc

rg int T text:contitionRrT 9T i the iondition is trues the paragraph is hiddenc i the iondition is falses

the paragraph is dispaayedc

ooT <!ATTLIST text:hitten-paragraph text:contition %formula; teEt|IeEt<

s OiddenThe text:is-hitten attribSte reiords thether the paragraph is iSrrentay risibae or notc t has the samepSrpose as the iorresponding attribSte oi the hidden te.t iieads nameay to aaaot iorreit dispaay oi the paragraph

Chapter 3 Text Content 173

Page 174: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

tithoSt haring to eraaSate the iondition iirstc

rg int T text:is-hittenRrT 9T The raaSe oi this attribSte is orertritten tith a net raaSe as soon as the appai-

iation eraaSates the e.pressionc

ooT <!ATTLIST text:hitten-paragraph text:is-hitten %boolean; "false"<

n T This attribSte has no iSnition other than to ease transiormation or initiaaaydispaay the doiSmentc

4cmc 2 Chapter FieadsChapter iieads dispaay one oi the ioaaoting:

● The name oi the iSrrent ihapter

● The nSmber oi the iSrrent ihapter

● Both the name and nSmber oi the iSrrent ihapter

i the ihapter iiead is paaied inside a header or iooters it dispaays the iSrrent ihapter name or nSmber on ererypagec

rg int T <text:chapter<RrT 9T

ooT <!ELEMENT text:chapter (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:chapter< eaement are:● Dispaay

● OStaine aerea

DispaayThe text:tisplay attribSte speiiiies the iniormation that the ihapter iiead shoSad dispaayc

rg int T text:tisplayRrT 9T

ooT <!ATTLIST text:chapter text:tisplay ( name |number | number-ant-name | plain-number-ant-name |plain-number y "number-ant-name"<

oT 14un1 uu4un1T

n the iSrrent rersion oi the OpenOiiiiecorg Driter Sser interiaies plain-number-ant-name ihapter iieads are not sSpportedc

E4oT T i the iSrrent ihapter nSmber is c9s the ihapter titae is Dorking tith Tabaess the preii. is ts and sSiii.is Ts the possibae dispaay options and resSats are as ioaaots:

h4Tr ineiValVe of texi4Iur u Ttion1 1itu9oT4y tnumber t c9Tname Dorking tith Tabaes

174 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 175: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

h4Tr ineiValVe of texi4Iur u Ttion1 1itu9oT4y t

number-ant-name t c9T Dorking tith Tabaesplain-number c9 plain-number-ant-name c9 Dorking tith Tabaes

OStaine LereaThis attribSte aaaots yoS to speiiiy the oStaine aerea to Ssec The ihapter iiead dispaays the ihapter nSmber or titaeSp to the speiiiied oStaine aereac

rg int T text:outline-levelRrT 9T

ooT <!ATTLIST text:chapter text:outline-level %integer; "1"<

n T OpenOiiiiecorg Driter iSrrentay sSpports Sp to ten oStaine aereasc

4cmc 0 Fiae Name FieadsFiae name iieads dispaay the name oi the iiae that is iSrrentay being editedc

rg int T <text:file-name<RrT 9T

ooT <!ELEMENT text:file-name (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:file-name< eaement are:● Dispaay

● Fi.ed

DispaayThe text:tisplay attribSte speiiiies hot mSih oi the iiae name to dispaayc YoS ian ihoose thether todispaay:

● The iSaa iiae name iniaSding the path and the e.tension

● The iiae path onay

● The iiae name onay

● The iiae name and the e.tension

rg int T text:tisplayRrT 9T

ooT <!ATTLIST text:file-name text:tisplay ( full |path | name | name-ant-extension y "full"<

Chapter 3 Text Content 175

Page 176: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Fi.ed Fiae Name Fieads i a iiae name iiead is ii.eds its raaSe does not ihange then the iiae is editedc

rg int T text:fixetRrT 9T

ooT <!ATTLIST text:file-name text:fixet %boolean;"false"<

4cmc DoiSment Tempaate Name FieadsThe doiSment tempaate name iiead dispaays iniormation aboSt the doiSment tempaate in Sses sSih as the tempaatetitae or the iiae namec

rg int T <text:template-name<RrT 9T

ooT <!ELEMENT text:template-name (tPCtATAy<

The attribSte that yoS ian assoiiate tith the <text:template-name< eaement is:● Dispaay

DispaayThis attribSte speiiiies thiih iniormation aboSt the doiSment tempaate to dispaayc YoS ian ihoose to dispaay:

● The iSaa iiae name iniaSding the path and the e.tension

● The iiae path onay

● The iiae name onay

● The iiae name and the e.tension

● The titae

● The area oi the doiSment tempaate

The aatter tto raaSes are Ssed in the OpenOiiiiecorg Driter Sser interiaie doiSment tempaate diaaogc The dispaayraaSes are a sSperset oi the dispaay raaSes araiaabae ior the <text:file-name< eaementc

rg int T text:tisplayRrT 9T

ooT <!ATTLIST text:template-name text:tisplay ( full |path | name | name-ant-extension | area | title y"full"<

4cmc 4 Page Variabae FieadsPage rariabaes aaaot yoS to deiine an aaternatire page nSmbering sihemec There is onay one page rariabaes and itis set by any set page rariabae iiead in the doiSmentc The raaSe oi the page rariabae is inireased on eaih pages in

176 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 177: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

the same tay as regSaar page nSmbersc

etting Page Variabae FieadsTo set a page rariabae iieads yoS Sse the <text:set-page-variable< eaementc

rg int T <text:set-page-variable<RrT 9T

ooT <!ELEMENT text:set-page-variable EMPTY<

TSrning Page Variabaes On or Oii t the beginning oi a doiSments the page rariabae is inaitirec YoS ian Sse the text:active attribSte todisabae a page rariabae aiter it tas Ssed in the doiSmentc

rg int T text:activeRrT 9T

ooT <!ATTLIST text:set-page-variable text:active %boolean; "true"<

Page Variabae djSstmentThe text:page-atiust attribSte determines the page adjSstmentc The raaSe oi the aitire page rariabae is theiSrrent page nSmber paSs the iaosest page adjSstment raaSe that tas prerioSsay setc

rg int T text:page-atiustRrT 9T

ooT <!ATTLIST text:set-page-variable text:page-atiust%integer; "0"<

Dispaaying Page Variabae FieadsThe <text:get-page-variable< eaement dispaays the raaSe oi the page rariabaec The iiead ian beiormatted in the same tay as regSaar page nSmber iieadsc

rg int T <text:get-page-variable<RrT 9T

ooT <!ELEMENT text:get-page-variable (tPCtATAy<

The attribStes that yoS ian assoiiate tith the <text:get-page-variable< eaement are:● text:num-format and text:num-letter-sync

These attribStes determine hot the nSmber shoSad be iormattedc ee eition 4cmc0 ior more iniormation onhot to Sse these attribStesc

ooT <!ATTLIST text:get-page-variable %num-format; tIMPLIEt<

Chapter 3 Text Content 177

Page 178: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4cmc 9 airo FieadsThe mairo iiead iontains the name oi a mairo that is e.eiSted then the iiead is aitiratedc The iiead aaso iontainsa desiription that is dispaayed as the iiead iontentc

rg int T <text:execute-macro<RrT 9T

ooT <!ELEMENT text:execute-macro (tPCtATAy<

The attribSte that yoS ian assoiiate tith the <text:execute-macro< eaement is:● airo name

airo NameThe text:name attribSte speiiiies the mairo to inroke then the iiead is aitiratedc

rg int T text:nameRrT 9T

ooT <!ATTLIST text:execute-macro text:name %string;teEt|IeEt<

4cmc 5 DDE Conneitions Dynamii Data E.ihange iDDEo ionneition ionsists oi the parameters ior the DDE target appaiiations a iiaenames and a iommand stringc DDE ionneition aaso takes a parameter that speiiiies thether it tiaa be SpdatedaStomatiiaaay or onay on the Sser's reqSestc Erery DDE ionneition mSst be namedc

Container ior DDE Conneition DeiaarationsThe DDE ionneition deiaarations are iontained in one deiaarations eaementc

rg int T <text:tte-connection-tecls<RrT 9T

ooT <!ELEMENT text:tte-connections-tecls (text:tte-connection-teclya<

Deiaaring DDE ConneitionsErery DDE ionneition is deiaared Ssing a deiaaration eaementc Satipae DDE iieads ian reier to one DDEionneition by Ssing the same namec The deiaaration eaement has no iontentc

rg int T <text:tte-connection-tecl<RrT 9T

ooT <!ELEMENT text:tte-connections-tecl EMPTY<

The attribStes that yoS ian assoiiate tith the <text:tte-connection-tecl< eaement are:

178 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 179: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Conneition name

● DDE target appaiiation

● DDE target iiae name

● DDE iommand

● Stomatii Spdate iaag

Conneition NameThe text:name attribSte speiiiies the name by thiih the ionneition tiaa be reierredc

rg int T text:nameRrT 9T

ooT <!ATTLIST text:tte-connection-tecl text:name %string; teEt|IeEt<

Target ppaiiationThe text:tte-application attribSte speiiiies the name oi the target appaiiation to Sse ior the DDEionneitionc

rg int T text:tte-applicationRrT 9T

ooT <!ATTLIST text:tte-connection-tecl text:tte-application %string; teEt|IeEt<

n T The target name ior OpenOiiiiecorg is sofficec Thereiores internaa DDEainks hare the attribSte text:tte-applicationp"soffice"c

Target TopiiThe text:tte-topic attribSte speiiiies the name oi the topii to Sse ior the DDE ionneitionc

rg int T text:tte-topicRrT 9T

ooT <!ATTLIST text:tte-connection-tecl text:tte-topic%string; teEt|IeEt<

n T i the target appaiiation is OpenOiiiiecorgs it interprets the DDE topii as thename oi the iiaec

Target temThe text:tte-item attribSte speiiiies thiih iniormation the target appaiiation shoSad deairerc

rg int T text:tte-itemRrT 9T

Chapter 3 Text Content 179

Page 180: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ATTLIST text:tte-connection-tecl text:tte-item %string; teEt|IeEt<

n T i the target appaiiation ior the DDE ionneition is OpenOiiiiecorg Driters theitem represents the name oi a bookmarkc OpenOiiiiecorg deairers the iSrrentte.t iontent to the reqSesting appaiiationc

Stomatii pdateOpenOiiiiecorg Driter ian aStomatiiaaay Spdate DDE ainksc i preierreds yoS ian Sse the text:automatic-uptate attribSte to speiiiy that the DDE ionneition ainks shoSad onay be Spdated at the reqSest oi the Sserc

rg int T text:automatic-uptateRrT 9T i the raaSe oi this attribSte is trues the DDE ainks are aStomatiiaaay Spdatedc

i this raaSe oi this attribSte is falses the DDE ainks are Spdated on SserreqSest onayc

ooT <!ATTLIST text:tte-connection-tecl text:automatic-uptate %boolean; "false"<

4cmc 6 DDE Conneition Fieads DDE iiead aaaots yoS to dispaay iniormation irom a DDE ionneitionc The onay parameter reqSired ior the DDEiiead is the name oi the DDE ionneition that sSppaies the data to this iieadc This DDE ionneition eaement speii-iies the aitSaa DDE iiead that appears in the te.t bodyc

rg int T <text:tte-connection<RrT 9T

ooT <!ELEMENT text:tte-connection (tPCtATAy<

The attribSte that yoS ian assoiiate tith the <text:tte-connection< eaement is:● DDE ionneition name

DDE Conneition NameThe text:name attribSte speiiiies the name oi the DDE ionneition to thiih the iiead reiersc

rg int T text:nameRrT 9T

ooT <!ATTLIST text:tte-connection text:name %string;teEt|IeEt<

4cmc m eierenie FieadsOpenOiiiiecorg Driter Sses iire types oi reierenie iiead and eaih type is represented by its otn eaementc Thereierenie iiead types are based on the type oi eaement they reier to; iootnotess endnotess bookmarkss reiereniessand seqSeniesc Erery reierenie iontains a reierenie iormat thiih determines that iniormation aboSt the reier-enied target is dispaayedc For e.ampaes reierenies ian dispaay:

180 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 181: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● The page nSmber oi the reierenied target

● The ihapter nSmber oi the reierenied target

● Dording indiiating thether the reierenied target is abore or beaot the reierenie iiead

n additions eaih reierenie iiead mSst identiiy its target thiih is SsSaaay done Ssing a name attribStec Bookmarksand reierenies are identiiied by the name oi the respeitire bookmark or reiereniec Footnotess endnotess andseqSenies are identiiied by a name that is SsSaaay generated aStomatiiaaay then a doiSment is e.portedc

rg int T <text:reference-ref<<text:sequence-ref<<text:bookmark-ref<<text:footnote-ref<<text:entnote-ref<

RrT 9T

ooT <!ELEMENT text:reference-ref (tPCtATAy<<!ELEMENT text:sequence-ref (tPCtATAy<<!ELEMENT text:bookmark-ref (tPCtATAy<<!ELEMENT text:footnote-ref (tPCtATAy<<!ELEMENT text:entnote-ref (tPCtATAy<

The attribStes that yoS ian assoiiate tith the reierenie iiead eaements are:

● eierenie name

● eierenie iormat

eierenie NameThe text:ref-name attribSte identiiies the reierenied eaementc inie bookmarks and reierenies hare a namesthis name is Ssed by the respeitire reierenie iieadsc Footnotess endnotess and seqSenies are assigned names by theappaiiation Ssed to ireate the OpenOiiiiecorg X L iiae iormat then the doiSment is e.portedc

rg int T text:ref-nameRrT 9T

ooT <!ATTLIST text:reference-ref text:ref-name %string; teEt|IeEt<

eierenie FormatThe text:reference-format attribSte determines that iniormation aboSt the reierenie is dispaayedc

rg int T text:reference-format

Chapter 3 Text Content 181

Page 182: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

RrT 9T aa types oi reierenie iieads sSpport the ioaaoting raaSes ior this attribSteiormats:

● pages thiih dispaays the nSmber oi the page on thiih the reierenieditem appearsc

● chapters thiih dispaays the nSmber oi the ihapter in thiih the reier-enied item appearsc

● tirections thiih dispaays thether the reierenied item is abore orbeaot the reierenie iieadc

● texts thiih dispaays the te.t oi the reierenied itemc i the reierenie iormat is not speiiiieds the page iormat is Ssed as the deiaSatc

eierenies to seqSenie iieads sSpport the ioaaoting three additionaa raaSes:

● category-ant-values thiih dispaays the name and raaSe oi theseqSeniec

● captions thiih dispaays the iaption in thiih the seqSenie is Ssedc● values thiih dispaays the raaSe oi the seqSeniec

ooT <!ATTLIST text:reference-ref text:reference-format(page|chapter|text|tirectiony tIMPLIEt<<!ATTLIST text:footnote-ref text:reference-format(page|chapter|text|tirectiony tIMPLIEt<<!ATTLIST text:entnote-ref text:reference-format(page|chapter|text|tirectiony tIMPLIEt<<!ATTLIST text:bookmark-ref text:reference-format(page|chapter|text|tirectiony tIMPLIEt<<!ATTLIST text:sequence-ref text:reference-format(page|chapter|text|tirection|category-ant-value|caption|valuey tIMPLIEt<

E4oT Tiouee I 1iI e I 1o ienI49i41titu9oT4y9

The ioaaoting tabae shots aaa possibae reierenie iormats and the resSating reierenie dispaay that ian be Ssed toreier to the tabae itseaic The aeit ioaSmn aists the raaSe oi the text:reference-format attribSte and theright ioaSmn

Table 2T bla �leE am lemele re mal aeE

R e I 1o ienI4 R e I 1o itu9oT4ypage 0r chapter 4cmc mtext Tabae : E.ampaes oi reierenie iormatstirection aborecategory-ant-value Tabae 0caption E.ampaes oi reierenie iormatsvalue 0

182 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 183: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4cmc r Variabae FieadsOpenOiiiiecorg Driter doiSments ian iontain rariabaess thiih are proiessed or dispaayed Ssing rariabae iieadsc rariabae is a namesraaSe pairc The rariabae name is Ssed throSghoSt the doiSment to identiiy a partiiSaar rari-abaes and thereiore rariabae names iannot be reSsed ior diiierent types oi rariabaesc ost rariabae iieads sSpportdiiierent raaSe typess sSih as nSmberss datess stringss and so onc n the OpenOiiiiecorg X L iiae iormats a rari-abae mSst be deiaared at the beginning oi a doiSmentc

There are three types oi rariabaes in OpenOiiiiecorg Driter:

● huoT iv4Iu4T 9

impae rariabaess SsSaaay iaaaed rariabaess ian take diiierent raaSes at diiierent positions throSghoSt a doiS-mentc YoS set simpae rariabaes Ssing either setter or inpSt iieadsc etter iieads iontain an e.pressions thiih isSsed to iompSte the net raaSe oi the rariabaec npSt iieads prompt the Sser ior the net raaSec YoS ian Ssesimpae rariabaes to dispaay diiierent te.t in reiSrring eaementss sSih as headers or iootersc

● 9 Iiv4Iu4T 9

ser rariabaes hare the same raaSe throSghoSt a doiSmentc i a Sser rariabae is set anythere tithin the doiS-ments aaa iieads in the doiSment that dispaay the Sser rariabae hare the same raaSec n the OpenOiiiiecorg Sserinteriaies yoS ian set a Sser rariabae at any oiiSrrenie oi a Sser iieads or Ssing Sser rariabae inpSt iieadsc nthe OpenOiiiiecorg X L iiae iormats yoS ian onay set the raaSe oi the Sser rariabae aiter the rariabae isdeiaaredc

● h r 1o iv4Iu4T 9

eqSenie rariabaes are Ssed to nSmber iertain items in an OpenOiiiiecorg Driter doiSments ior e.ampaesimages or tabaesc

E.pression and te.t inpSt iieads are aaso rariabae iieadss bSt they are not assoiiated tith any partiiSaar rariabaesc inie their iSnitionaaity is iaoseay reaated to that oi the rariabae iieadss they are aaso desiribed in this seition oithe manSaac

rg int T %variable-fielts;RrT 9T

ooT <!ENTITY % variable-fielts "text:variable-set | text:variable-get | text:variable-input | text:user-fielt-get | text:user-fielt-input |text:sequence | text:expression | text:text-input" <

YoS mSst deiaare rariabaes beiore yoS ian Sse themc The rariabae deiaarations are ioaaeited in iontainer eaementsior the partiiSaar rariabae typec The OpenOiiiiecorg X L iode ior deiaaring rariabaes is desiribed in theioaaoting tabaec

rg int T %variable-teclarations;RrT 9T

ooT <!ELEMENT text:variable-tecls "text:variable-tecla"<<!ELEMENT text:user-fielt-tecls "text:user-fielt-tecla"<<!ELEMENT text:sequence-tecls "text:sequence-tecla"<<!ENTITY % variable-teclarations "text:variable-tecl?, text:user-fielt-tecl?, text:sequence-tecl?<

4cmc Deiaaring impae VariabaesYoS deiaare simpae rariabaes Ssing <text:variable-tecl< eaementsc The deiaaration speiiiies the name

Chapter 3 Text Content 183

Page 184: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

and the raaSe type oi the rariabaec

rg int T <text:variable-tecl<RrT 9T This eaement does not hare any iontentc

ooT <!ELEMENT text:variable-tecl EMPTY<

To speiiiy the name and raaSe type oi the simpae rariabaes yoS attaih the ioaaoting attribStes to the <text:variable-tecl< eaement:● text:name

The name oi the rariabae mSst be SniqSec The name iannot aaready be Ssed ior any other type oi rariabaec ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-tecl text:name %variable-name;teEt|IeEt<

● text:value-type ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-tecl %value-type-attlist;<

4cmc42 etting impae VariabaesYoS ian set simpae rariabaes Ssing rariabae setter eaementsc

rg int T <text:variable-set<RrT 9T This eaement iontains the presentation oi the raaSe oi the rariabaes thiih ian be empty ii

the text:tisplay attribSte is set to nonecooT <!ELEMENT text:variable-set (tPCtATAy<

The attribStes that yoS ian attaih to the <text:variable-set< eaement are:● text:name

This attribSte speiiiies the name oi the rariabae to setc t mSst matih the name oi a rariabae that has aareadybeen deiaaredc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-set text:name %variable-name;<

● text:formulaThis attribSte iontains the iormSaa to iompSte the raaSe oi the rariabae iieadc i the iormSaa eqSaas the iontentoi the iiead eaements yoS ian omit this attribStec ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-set text:formula %formula;<

● text:value-type and the appropriate raaSe attribSte ee eition 4cmc94 ior iniormation on Ssing these attribStesc

n T simpae rariabae shoSad not iontain diiierent raaSe types at diiierent paaies in a doiSmentc Ooterersthe iSrrent OpenOiiiiecorg soittare impaementation aaaots the Sse oi diiierent raaSe types ior diiierentinstanies oi the same rariabaec n the iase oi the nSmerii raaSe types floats percentage, andcurrencys the raaSe is aStomatiiaaay ionrerted to the diiierent raaSe typec For raaSe types that are stored

184 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 185: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

internaaay as nSmberss sSih as tates time, and boolean typess the raaSes are reinterpreted as nSmbers oithe respeitire typesc i a rariabae is Ssed ior both string and non-string typess the beharior is Sndeiineds there-iore this praitiie is not reiommendedc

ooT <!ATTLIST text:variable-set %value-attlist;<

● text:tisplayYoS ian Sse this attribSte to speiiiy thether or not to dispaay the raaSe oi the <text:variable-set<eaementc i the text:tisplay attribSte is set to values the raaSe oi the rariabae is dispaayedc i theattribSte is set to nones the raaSe is not dispaayedc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-set text:tisplay ( value | none y"value"<

● style:tata-style-nameThis attribSte speiiiies the data styae to Sse to iormat a nSmeriis booaeans or datestime rariabaec i a data styaeis not speiiiieds a standard data styae is Ssedc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-set style:tata-style-name %style-name; tIMPLIEt<

4cmc40 Dispaaying impae VariabaesThe <text:variable-get< eaement reads and dispaays the raaSe oi a simpae rariabaec

rg int T <text:variable-get<RrT 9T The raaSe oi this eaement is the raaSe oi the aast preieding <text:variable-set<

eaement tith an identiiaa text:name attribStec The eaement determines hot the raaSe oithe rariabae is presenteds in aiiordanie tith the ihosen iormatting styaec

ooT <!ELEMENT text:variable-get (tPCtATAy<

The attribStes that yoS ian attaih to the atext:variable-get< eaement are:● text:name

This attribSte speiiiies the name oi the rariabae to dispaayc The name mSst matih the name oi a preieding<text:variable-tecl< eaementc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-get text:name %variable-name;teEt|IeEt<

● text:tisplayYoS ian Sse this attribSte to speiiiy thether to dispaay the iormSaa ior a simpae rariabae or the iompStedraaSe oi the rariabaec ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-get text:tisplay ( value |formula y "value"<

● style:tata-style-name This attribSte speiiiies the data styae to Sse to iormat a nSmeriis booaeans or datestime rariabaec i a data styaeis not speiiiieds a standard data styae is Ssedc ee eition 4cmc94 ior iniormation on Ssing this attribStec

Chapter 3 Text Content 185

Page 186: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ATTLIST text:variable-get style:tata-style-name %style-name;tIMPLIEt<

4cmc4 impae Variabae npSt Fieads s an aaternatire to setting simpae rariabaes Ssing iormSaas in rariabae setter iieadss the Sser ian be prompted iorrariabae raaSesc To do thiss yoS Sse the <text:variable-input< eaementc

rg int T <text:variable-input<RrT 9T This eaement iontains the presentation oi the rariabae's raaSe aiiording to the ihosen

iormatting styaec

n T The presentation ian be empty ii the text:tisplay attribSte is set to nonecooT <!ELEMENT text:variable-input (tPCtATAy<

The attribStes that yoS ian attaih to the <text:variable-input< eaement are:● text:name

This attribSte speiiiies the name oi the rariabae to dispaayc t mSst matih the name oi a rariabae that tasaaready deiaaredc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-input text:name %variable-name;teEt|IeEt<

● text:tescriptionThis optionaa attribSte iontains a briei message that is presented to Ssers then they are prompted ior inpStcThe message shoSad gire Ssers enoSgh iniormation aboSt the rariabae or the Sse oi the raaSe tithin the doiS-ment to enabae them to ihoose an appropriate raaSec ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-input text:tescription %string:tIMPLIEt<

● text:value-type and the appropriate raaSe attribSte ee eition 4cmc94 ior iniormation on Ssing these attribStesc

ooT <!ATTLIST text:variable-input %value-attlist;<

● text:tisplayYoS ian Sse this attribSte to speiiiy thether to dispaay or hide the raaSe oi the rariabae throSgh the rariabaeinpSt iieadc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-input text:tisplay ( value | none y"value"<

● style:tata-style-nameThis attribSte speiiiies the data styae to Sse to iormat a nSmeriis booaeans or datestime rariabaec i a data styaeis not speiiiieds a standard data styae is Ssedc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:variable-input style:tata-style-name %style-name; tIMPLIEt<

186 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 187: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4cmc44 Deiaaring ser Variabaes ser rariabaes iontain raaSes that are dispaayed Ssing appropriate iieadsc naike simpae rariabaess Sser rariabaeshare the same raaSe throSghoSt a doiSment beiaSse the raaSe oi the Sser rariabae is speiiiied in the rariabaedeiaarationc

rg int T <text:user-fielt-tecl<RrT 9T This eaement does not hare any iontentc

ooT <!ELEMENT text:user-fielt-tecl EMPTY<

The attribStes that yoS ian assoiiate tith the <text:user-fielt-tecl< eaement are:● text:name

This attribSte speiiiies the name oi the rariabae that yoS tant to deiaarec The name mSst be SniqSec t iannotaaready be Ssed ior any other type oi rariabae iniaSding simpae and seqSenie rariabaesc ee eition 4cmc94 ioriniormation on Ssing this attribStec

ooT <!ATTLIST text:user-fielt-tecl text:name %variable-name;teEt|IeEt<

● text:formulaThis attribSte iontains the iormSaa to iompSte the raaSe oi the Sser rariabae iieadc i the iormSaa is the same asthe iontent oi the iiead eaements yoS ian omit this attribStec ee eition 4cmc94 ior iniormation on Ssing thisattribStec

ooT <!ATTLIST text:user-fielt-tecl text:formula %formula;tIMPLIEt<

● text:value-type and the appropriate raaSe attribSte ee eition 4cmc94 ior iniormation on Ssing these attribStesc

ooT <!ATTLIST text:user-fielt-tecl %value-attlist;<

4cmc49 Dispaaying ser VariabaesYoS ian dispaay the iontent oi Sser rariabaes Ssing <text:user-fielt-get< eaementsc

rg int T <text:user-fielt-get<RrT 9T

ooT <!ELEMENT text:user-fielt-get (tPCtATAy<

The attribStes that yoS ian attaih to the <text:user-fielt-get< eaement are:● text:name

This attribSte speiiiies the name oi the rariabae to dispaayc The name mSst matih the name oi a preieding<text:user-fielt-tecl< eaementc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:user-fielt-get text:name %variable-name;teEt|IeEt<

● text:tisplay

Chapter 3 Text Content 187

Page 188: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

YoS ian Sse this attribSte to speiiiy thether to:

➢ Dispaay the iormSaa Ssed to iompSte the raaSe oi the Sser rariabaec

➢ Dispaay the raaSe oi the Sser rariabaec

➢ Oide the Sser rariabae iieadsc

ee eition 4cmc94 ior iniormation on Ssing this attribStec

n T inie the OpenOiiiiecorg Driter Sser interiaie aaaots Ssers to edit a Sser iiead rariabae by iaiiking onany Sser iieads a hidden <text:user-fielt-get< eaement ian be Ssed as an anihor to aaaot easy aiiessto a partiiSaar Sser iiead rariabaec

ooT <!ATTLIST text:user-fielt-get text:tisplay ( value | formula| none y "value"<

● style:tata-style-name This attribSte speiiiies the data styae to Sse to iormat a nSmeriis booaeans or datestime rariabaec i a data styaeis not speiiiieds a standard data styae is Ssedc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:user-fielt-get style:tata-style-name %style-name;<

4cmc45 ser Variabae npSt Fieads n aaternatire method oi setting Sser rariabaes is to Sse inpSt iieadss simiaar to the inpSt iieads ior simpae rari-abaesc YoS ian set a Sser rariabae in this tay Ssing the <text:user-fielt-input< eaementc inie theraaSe oi a Sser iiead rariabae is stored in the <text:user-fielt-tecl< eaements the atext:user-fielt-input< eaement does not iontain the raaSe and raaSe type attribStes irom the atext:variable-input< iieadc

rg int T <text:user-fielt-input<RrT 9T This eaement determines hot the raaSe oi the Sser rariabae is dispaayeds in aiiordanie tith

the ihosen iormatting styaec

n T The presentation ian be empty ii the text:tisplay attribSte is set to nonecooT <!ELEMENT text:user-fielt-input (tPCtATAy<

The attribStes that yoS ian attaih to the <text:user-fielt-input< eaement are:● text:name

This attribSte speiiiies the name oi the rariabae to setc t mSst matih the name oi a rariabae that has aareadybeen deiaaredc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:user-fielt-input text:name %variable-name;teEt|IeEt<

● text:tescriptionThis optionaa attribSte iontains a briei message that is presented to Ssers then they are prompted ior inpStcThe message shoSad gire Ssers enoSgh iniormation aboSt the rariabae or the Sse oi the raaSe tithin the doiS-ments to enabae them to ihoose an appropriate raaSec ee eition 4cmc94 ior iniormation on Ssing thisattribStec

188 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 189: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ATTLIST text:user-fielt-input text:tescription %string;tIMPLIEt<

● style:tata-style-nameThis attribSte speiiiies the data styae to Sse to iormat a nSmeriis booaeans or datestime rariabaec i a data styaeis not speiiiieds a standard data styae is Ssedc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:user-fielt-input style:tata-style-name %style-name; tIMPLIEt<

4cmc46 Deiaaring eqSenie Variabaes eqSenie rariabaes are Ssed to nSmber items tithin an OpenOiiiiecorg Driter doiSmentc eqSenie rariabaes aremost iommonay Ssed ior seqSentiaa nSmberingc Ooterers yoS ian iniaSde e.pression iormSaas in seqSenie iieadsto sSpport more adranied seqSeniesc ee eition 4cmc4m ior more iniormation on Ssing seqSenie iieads and theirSsesc

YoS deiaare seqSenie rariabaes Ssing the <text:sequence-tecl< eaementc

rg int T <text:sequence-tecl<RrT 9T This eaement does not hare any iontentc

ooT <!ELEMENT text:sequence-tecl EMPTY<

To iaiiaitate ihapter-speiiiii nSmberings yoS ian attaih attribStes ior the ihapter aerea and a separation iharaiterto a seqSenie rariabaec The attribStes that yoS ian attaih to the <text:sequence-tecl< eaement are:● text:name

This attribSte speiiiies the name oi the rariabae that yoS tant to deiaarec The name mSst be SniqSec t iannotaaready be Ssed ior any other type oi rariabae iniaSding simpae and Sser rariabaesc ee eition 4cmc94 ioriniormation on Ssing this attribStec

ooT <!ATTLIST text:sequence-tecl text:name %variable-name;teEt|IeEt<

● text:tisplay-outline-level ee the seition Sutline secel ior iniormation aboSt this attribStec

● text:separation-character ee the seition Tepaeation hiaeactee ior iniormation aboSt this attribStec

OStaine LereaYoS ian nSmber seqSenies by ihapterc To Sse this ieatSres Sse the text:tisplay-outline-levelattribSte to speiiiy an oStaine aerea that determines thiih ihapters to reierenie ior the ihapter-speiiiiinSmberingc aa ihapters that are at or beaot the speiiiied oStaine aerea reset the raaSe oi the seqSenie to keros thedeiaSat raaSec asos the ihapter nSmber oi the aast ihapter at or beaot the speiiiied oStaine aerea is prepended tothe seqSenie nSmberc Choosing an oStaine aerea oi kero resSats in a straight seqSenie oi aaa seqSenie eaements iorthat seqSenie rariabaec

rg int T text:tisplay-outline-level

Chapter 3 Text Content 189

Page 190: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

RrT 9T The raaSe oi this attribSte mSst be an integer greater than or eqSaa to keroc

OpenOiiiiecorg iSrrentay sSpports ten oStaine aereasc

ooT <!ATTLIST text:sequence-tecl text:tisplay-outline-level %integer; "0"<

eparation Charaiter i yoS nSmber seqSenies by ihapters Sse this attribSte to ihoose a iharaiter to separate the ihapter nSmber iromthe seqSenie nSmberc

rg int T text:separation-characterRrT 9T i the raaSe oi the text:tisplay-outline-level attribSte is a non-kero raaSes yoS

mSst speiiiy a separation iharaiterc Othertises ii the raaSe oi text:tisplay-outline-level is keros yoS mSst omit this attribStec

ooT <!ATTLIST text:sequence-tecl text:separation-character %character; "."<

E4oT Tih r 1o iv4Iu4T

The seqSenie rariabae 4cmc46*5 tith a raaSe oi 4 is deiaared Ssing:

AIur h4Tr text:tisplay-outline-level 3text:separation-character t

4cmc4m sing eqSenie FieadsOnie a seqSenie rariabae is deiaareds yoS ian Sse it in seqSenie iieads throSghoSt the doiSmentc ost seqSenieiieads simpay inirement and dispaay the seqSenie rariabaec Ooterers seqSenie iieads ian aaso assSme a net startraaSe at any giren position in a doiSmentc This start raaSe is iompSted Ssing a iormSaa thiih is iontained in theseqSenie iieadc i a seqSenie iiead tithoSt a start raaSe is added to the OpenOiiiiecorg Sser interiaies theOpenOiiiiecorg soittare aStomatiiaaay inserts an e.pression oi the type variablet1c eqSenie iieads are most iommonay Ssed ior simpae ioSnting seqSeniesc Ooterers the abiaity to proride arbitrarye.pressions sSpports more iompae. seqSeniesc To iorm a seqSenie oi eren nSmberss aaa seqSenie eaements iorthat partiiSaar rariabae need to iontain a iormSaa inirementing the raaSe by ttos ior e.ampaes variablet2c seqSenie tith a starting raaSe oi 1 and aaa sSbseqSent eaements Ssing the iormSaa variablea2 yieads aaapoters oi ttoc inie diiierent seqSenie eaements ior the same seqSenie rariabae may iontain diiierent iormSaassiompae. seqSenies may be ionstrSitedc

rg int T <text:sequence<RrT 9T

ooT <!ELEMENT text:sequence (tPCtATAy<

The attribStes that yoS ian attaih to the <text:sequence< eaement are:● text:name

This attribSte speiiiies the name oi the rariabae that the iiead is to dispaayc t mSst matih the name oi aseqSenie rariabae that tas aaready deiaaredc ee eition 4cmc94 ior iniormation on Ssing this attribStec

190 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 191: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ATTLIST text:sequence text:name %variable-name; teEt|IeEt<

● text:formulaThis optionaa attribSte iontains a iormSaa to iompSte the raaSe oi the seqSenie iieadc i this attribSte isomitteds an e.pression iontaining the iontent oi the eaement is Ssedc ee eition 4cmc94 ior iniormation onSsing this attribStec

ooT <!ATTLIST text:sequence text:formula %formula; tIMPLIEt<

● style:num-format and style:num-letter-syncThese attribStes speiiiy the nSmbering styae to Ssec i a nSmbering styae is not speiiiieds the nSmbering styaeis inherited irom the page styaec ee eition 4cmc94 ior iniormation on these attribStesc

ooT <!ATTLIST text:page-number %num-format;<

● text:ref-name ee the ioaaoting seition nefeeence ame ior more iniormation aboSt this attribStec

eierenie Name eqSenie iieads ian be the target oi reiereniess as impaemented Ssing reierenie iieadsc ee eition 4cmc m iormore iniormation aboSt reierenie iieadsc To enabae a reierenie iiead to identiiy a partiiSaar seqSenie iieads theseqSenie iiead mSst iontain an additionaa attribSte iontaining a namec No tto seqSenie iieads ian hare the samereierenie namec

rg int T text:ref-nameRrT 9T i the seqSenie iiead is not the target oi a reierenies this attribSte ian be

omittedc

ooT <!ATTLIST text:ref-name %string; tIMPLIEt<

4cmc4r E.pression FieadsE.pression iieads iontain e.pressions that are eraaSated and the resSating raaSe is dispaayedc The raaSe oi thee.pression is iormatted aiiording to the ihosen iormatting styaec

rg int T <text:expression<RrT 9T

ooT <!ELEMENT text:expression (tPCtATAy<

The attribStes that yoS ian attaih to the <text:expression< eaement are:● text:formula

This attribSte iontains the aitSaa e.pression Ssed to iompSte the raaSe oi the e.pression iieadc ee eition4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:expression text:formula %formula; tIMPLIEt<

● text:value-type and the appropriate raaSe attribSte ee eition 4cmc94 ior iniormation on Ssing these attribStesc

Chapter 3 Text Content 191

Page 192: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ATTLIST text:expression %value-type;<

● text:tisplay se this attribSte to speiiiy one oi the ioaaoting:

● To dispaay the raaSe oi the iieadc

● To dispaay the iormSaa Ssed to iompSte the raaSec

ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:expression text:tisplay ( value | formula y"value"<

● style:tata-style-nameThis attribSte speiiiies the data styae to Sse to iormat a nSmeriis booaeans or datestime rariabaec i a data styaeis not speiiiieds a standard data styae is Ssedc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:expression style:tata-style-name %style-name;tIMPLIEt<

4cmc4 Te.t npSt Fieads te.t inpSt iiead is a rariabae iieadc From the point oi riet oi the OpenOiiiiecorg Sser interiaies a te.t inpSt iieadis simiaar to the atext:variable-input< and atext:user-fielt-input< iieadsc Ooterers the te.tinpSt iiead does not ihange the raaSe oi any rariabaesc

rg int T <text:text-input<RrT 9T

ooT <!ELEMENT text:text-input (tPCtATAy<

The attribSte that yoS ian attaih to the <text:text-input< eaement is:● text:tescription

This attribSte iontains a briei message that is presented to Ssers then they are prompted ior inpStc Themessage shoSad gire Ssers enoSgh iniormation aboSt the pSrpose oi the iiead and hot it is Ssed tithin thedoiSments to enabae them to ihoose an appropriate raaSec ee eition 4cmc94 ior iniormation on Ssing thisattribStec

ooT <!ATTLIST text:text-input text:tescription %string;tIMPLIEt<

4cmc92 iript Fieads siript iiead stores siripts or seitions oi siriptscYoS ian Sse the iiead to store and edit siripts that are attaihed tothe doiSmentc The primary pSrpose oi this iiead is to proride an eqSiraaent to the <script< eaement in OT Lsso that the iontent oi a <script< eaement in OT L ian be importeds editeds and e.ported Ssing theOpenOiiiiecorg soittarec

The soSrie iode ior the siript ian be stored in one oi the ioaaoting tays:

● The <text:script< eaement iontains the soSrie iodec

192 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 193: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● The soSrie iode is stored in an e.ternaa iiaec se the text:href attribSte to speiiiy the aoiation oi thesoSrie iiaec

rg int T <text:script<RrT 9T The eaement shoSad hare either a text:href attribSte or iontents bSt not bothcooT <!ELEMENT text:script (tPCtATAy<

iript LThe text:href attribSte speiiiies the aoiation oi the iiae that iontains the siript soSrie iodec

rg int T text:hrefRrT 9T The siript iiead shoSad hare either an L attribSte or iontents bSt not bothc

ooT <!ATTLIST text:script text:href CtATA<

iript LangSageThe script:language attribSte speiiiies the aangSage in thiih the siript soSrie iode is trittens ior e.ampaesJara iriptc

rg int T script:languageRrT 9T

ooT <!ATTLIST text:script script:language CtATA<

4cmc90 easSre Fieadsrnfoemation to be supplied.

4cmc9 Tabae FormSaa FieadThe tabae iormSaa iiead is a aegaiy irom prerioSs rersion oi tarDriterc t shoSad not be Ssed in net doiSmentsc t stores a iormSaa to eb Ssed in tabaess a iSnition that is better periormed by the tabae:iormSaa attribSte oi thetabae ieaac

rg int T <text:table-formula<RrT 9T This eaement shoSad not be Ssed in net doiSments

ooT <!ELEMENT text:table-formula (tPCtATAy<

The tabae iormSaa iiead ian take the ioaaoting attribStes:

● text:formulaThis attribSte iontains the aitSaa e.pression Ssed to iompSte the raaSe oi the tabae iormSaa iieadc ee eition4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:table-formula text:formula %formula;tIMPLIEt<

Chapter 3 Text Content 193

Page 194: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● text:tisplay se this attribSte to speiiiy one oi the ioaaoting:

● To dispaay the raaSe oi the iieadc

● To dispaay the iormSaa Ssed to iompSte the raaSec

ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:table-formula text:tisplay ( value |formula y "value"<

● style:tata-style-nameThis attribSte speiiiies the data styae to Sse to iormat a nSmeriis booaeans or datestime rariabaec i a data styaeis not speiiiieds a standard data styae is Ssedc ee eition 4cmc94 ior iniormation on Ssing this attribStec

ooT <!ATTLIST text:table-formula style:tata-style-name %style-name; tIMPLIEt<

4cmc94 Common Fiead ttribStesYoS ian Sse the attribStes desiribed in this seition tith sereraa iiead eaementsc

Variabae VaaSe Types and VaaSesVariabaes and most rariabae iieads hare a iSrrent raaSec Erery rariabae has a raaSe type that mSst be speiiiiedthen the iiead sSpports mSatipae raaSe typesc The raaSe type is speiiiied Ssing the text:value-typeattribStec

rg int T text:value-typeRrT 9T This attribSte mSst speiiiy one oi the ioaaoting raaSe types ior the rariabae: floats

percentages currencys tates times booleans or stringcooT <!ENTITY % value-type-attlist

"text:value-type ( float | time | tate | percentage | currency | boolean | string y teEt|IeEt"<

n T This entity shoSad be Ssed tithin any <!ATTLIST< deiinitions ior text:value-typeattribStesc

E4oT T

<!ELEMENT some-element (tPCtATAy<<!ATTLIST some-element %value-type-attlist<

Depending on the raaSe types the raaSe itseai is tritten to diiierent raaSe attribStesc The sSpported raaSe typesstheir respeitire raaSe attribStess and hot the raaSes are enioded are desiribed in the ioaaoting tabae:

h4Tr ineiValVe et atVx a

h4Tr iAIur E1ont ti49iii

floats percentage text:value NSmerii raaSe

currency text:value and text:currency

NSmerii raaSe andiSrreniy symboa

194 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 195: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

h4Tr ineiValVe et atVx a

h4Tr iAIur E1ont ti49iii

tate text:tate-value Desiribed in Or620s b5c c0c0se.tended iormat

time text:time-value Desiribed in Or620s b5c9c0 aose.tended iormat

boolean text:boolean-value true or falsestrings

string text:string-value trings

The OpenOiiiiecorg Driter ioniept oi iiead raaSes and raaSe types and their enioding in X L is modeaed on theiorresponding X L ior tabae ieaa attribStesc ee eition 9crc0 ior more detaiaed iniormation on these attribStesc

The deiinition oi the entity %value-attlist; is as ioaaots:

ooT <!ENTITY % value-attlist "%value-type-attlist; text:value %float; tIMPLIEt text:tate-value %tate; tIMPLIEt text:time-value %time; tIMPLIEt text:boolean-value %boolean; tIMPLIEt text:string-value %string; tIMPLIEt text:currency CtATA tIMPLIEt" <

E4oT T <!ELEMENT some-element (tPCtATAy<<!ATTLIST some-element %value-attlist;<

This entity is SseiSa ior deiining aaa raaSe and raaSe type reaated attribStes ior any eaementc

Fi.edThe text:fixet attribSte speiiiies thether or not the raaSe oi a iiead eaement is ii.edc i the raaSe oi a iiead isii.eds the originaa raaSe oi the iiead is preserredc i the raaSe oi the iiead is not ii.eds the raaSe oi the iiead isrepaaied by a net raaSe then the doiSment is editedc

This attribSte ian be Ssed tith:

● Date iieads

● Time iieads

● Page nSmber iieads

● aa sender iieads

● aa aSthor iieads

rg int T text:fixetRrT 9T i the raaSe oi this attribSte is set to trues the raaSe oi the iiead eaement to thiih this

attribSte is attaihed is preserred in aaa iStSre edits oi the doiSmentc

i the raaSe oi this attribSte is set to falses the raaSe oi the iiead eaement is not preserredand tiaa be repaaied tith net raaSes as appropriatec

h4oT iooT <!ATTLIST text:author-name text:fixet %boolean; "true"<

Chapter 3 Text Content 195

Page 196: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Variabae Name se the text:name attribSte to speiiiy the name oi a rariabae then yoS are deiaarings settings or dispaaying arariabaec YoS ian Sse this attribSte tith any oi the ioaaoting eaements:

● <text:variable-tecl<● <text:variable-set<● <text:variable-get<● <text:variable-input<● <text:user-fielt-tecl<● <text:user-fielt-get<● <text:user-fielt-input<● <text:sequence-tecl<● <text:sequence<

rg int T text:nameRrT 9T Dhen yoS are Ssing this attribSte to speiiiy the name oi a rariabae to dispaays a rariabae oi

the appropriate type tith the same name mSst aaready hare been deiaaredc

h4oT iooT <!ATTLIST text:sequence text:name %variable-name;teEt|IeEt<

Desiription The text:tescription attribSte iontains a briei message that is dispaayed then Ssers are prompted iorinpStc YoS ian Sse this attribSte tith any oi the ioaaoting eaements:

● <text:placeholter<● <text:variable-input<● <text:user-fielt-input<● <text:text-input<

rg int T text:tescriptionRrT 9T The optionaa text:tescription attribSte may iontain a briei desiriptionch4oT iooT <!ATTLIST text:text-input text:tescription %string;

tIMPLIEt<

DispaayThe text:tisplay attribSte sSpports Sp to three raaSes as ioaaots: ● value

This raaSe dispaays the raaSe oi the iieadc ome iieads do not sSpport this raaSec n these iasess the text:tisplay attribSte onay takes the raaSes value or nones and value or formulas respeitireayc

● formulaThis raaSe aaaots yoS to dispaay the iormSaa rather than the raaSe oi the iieadc ome iieads do not sSpport this

196 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 197: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

raaSec n these iasess the text:tisplay attribSte onay takes the raaSes value or nones and value orformulas respeitireayc

● none ereraa rariabae iieads sSpport this raaSes thiih hides the iiead iontentc This aaaots yoS to set rariabaes in onepart oi the doiSment and dispaay them in another part oi the doiSmentc

YoS ian Sse this attribSte tith any oi the ioaaoting eaements:

● <text:variable-set<● <text:variable-get<● <text:variable-input<● <text:user-fielt-get<● <text:expression<

rg int T text:tisplayRrT 9T i the raaSe oi this attribSte is values the raaSe oi the iiead is dispaayedc i the raaSe is

formulas the iormSaa e.pression Ssed to iompSte the raaSe is dispaayedc Othertises theiiead is not be dispaayedc

h4oT iooT <!ATTLIST text:user-fielt-get text:tisplay ( value |formula | none y "value"<

FormSaaThe text:formula attribSte iontains the iormSaa or e.pression Ssed to iompSte the raaSe oi the iieadc YoSian Sse this attribSte tith any oi the ioaaoting eaements:

● <text:variable-set<● <text:user-fielt-tecl<● <text:sequence<● <text:expression<

rg int T text:formulaRrT 9T

h4oT iooT <!ATTLIST text:expression text:formula %formula;teEt|IeEt<

Formatting tyaeThe style:tata-style-name attribSte reiers to the data styae Ssed to iormat the nSmerii raaSec For generaainiormation aboSt styaess see Chapter 0c For more iniormation aboSt data styaess see Chapter c

YoS ian Sse this attribSte tith any oi the ioaaoting eaements:

● <text:tate<● <text:time<● <text:page-number<

Chapter 3 Text Content 197

Page 198: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● <text:variable-set<● <text:variable-get<● <text:variable-input<● <text:user-fielt-get<● <text:user-fielt-input<● <text:expression<

rg int T style:tata-style-nameRrT 9T For string rariabaes yoS mSst omit this attribStec Othertises this attribSte is reqSiredc

The name mSst matih the name oi a data styaec

h4oT iooT <!ATTLIST text:expression style:tata-style-name %style-name; tIMPLIEt<

NSmber Formatting tyaeYoS ian iormat nSmbers that are Ssed ior nSmber seqSenies sSih as page nSmbers or seqSenie iieads aiiordingto the nSmber styaes desiribed in Chapter c The nSmber styaes sSpported are as ioaaots:

● NSmerii: 0s s 4s ccc

● aphabetii: as bs is ccc or s Bs Cs ccc

● oman: is iis iiis irs ccc or s s s Vsccc

rg int T text:num-formatRrT 9T The raaSe oi this attribSte ian be any oi the X L nSmber iormat keys 1s is Is as or Ach4oT iooT <!ATTLIST some-element text:num-format CtATA tIMPLIEt<

aphabetii nSmber styaes need an additionaa attribSte to determine hot to dispaay nSmbers that iannot be repre-sented by a singae aetterc The OpenOiiiiecorg soittare sSpports:

● ynihroniked aetter nSmberings there aetters are Ssed mSatipae timess ior e.ampae aas bbs iis and so onc

● Non-synihroniked aetter nSmberings ior e.ampae aas abs ais and so onc

ee Chapter ior more iniormationc

rg int T text:num-letter-syncRrT 9T

h4oT iooT <!ATTLIST some-element text:num-letter-sync %boolean;"false"<

The ioaaoting entity aids the deiinition oi eaements that Sse nSmber iormats:

rg int T %num-format;h4oT iooT <!ENTITY % num-format 'text:num-format CtATA tIMPLIEt

text:num-letter-sync %boolean; "false"'<E4oT T <!ELEMENT some-element %num-format;<

198 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 199: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4cr Frames in Te.t DoiSments irame anihor ionsists oi the ioaaoting tto parts:

● nihor typeThe anihor type speiiiies hot a irame is boSnd to the te.t doiSmentc

● nihor positionThe anihor position is the point at thiih a irame is boSnd to a te.t doiSmentc For e.ampaes ii a irame isboSnd to a pages the anihor position is the page nSmberc

4crc0 nihor TypeThe anihor type attribSte speiiiies hot a irame is boSnd to the te.t doiSmentc

rg int T text:anchor-type RrT 9T This attribSte has to be attaihed to erery irame eaements ior e.ampaes erery <text:text-box<

that is iontained in a te.t doiSmentc t ian aaso be attaihed to graphii styaess in this iase it speii -iies the deiaSat anihor type ior erery irame that is inserted into a doiSment Ssing the graphiistyaec

ooT <!ATTLIST style:properties text:anchor-type (page|frame|paragraph|char|as-chary tIMPLIEt<

4crc nihor PositionThe anihor position is the point at thiih a irame is boSnd to a te.t doiSmentc The anihor position depends on theanihor type as e.paained in the ioaaoting tabaec

eir iv4Tr ineir ValVee valutVx ai4Iur iu9iiii

r i41ornIion9uun1iu9iii r ieI4 i T 1i4oo 4I9iiii n 9

page The page that has the samephysiiaa page nSmber as theraaSe oi the text:anchor-page-number attribSte that isattaihed to the irame eaementc ino text:anchor-page-number attribSte is girens theanihor position is the page atthiih the iharaiter behind theirame eaement appearsc

Either

● t the start oi the doiSmentbodys oStside any paragraphor irames prorided atext:anchor-page-number attribSte is girenc

Or

● nside any paragrapheaement that is not iontainedin a headers iooters iootnotesor te.t bo.s ii a text:anchor-page-numberattribSte is not girenc

The physiiaa pagenSmber is the nSmberassigned to the page iiaaa pages in the doiS-ment are ioSntedstarting tith page 0c

frame The parent irame that the iSrrentirame eaement is iontained inc

n the eaement representing theirame to thiih the irame isboSndc For e.ampaes ii an imageis boSnd to a te.t bo.s the irameeaement is aoiated in the te.tbo. eaementc

CSrrentays irames ianonay be boSnd to te.tbo.esc

Chapter 3 Text Content 199

Page 200: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

eir iv4Tr ineir ValVee valutVx ai4Iur iu9iiii

r i41ornIion9uun1iu9iii r ieI4 i T 1i4oo 4I9iiii n 9

paragraph The paragraph that the iSrrentirame eaement is iontained inc

t the start oi the paragrapheaementc

char The iharaiter aiter the irameeaementc

JSst beiore the iharaiterc

as-char There is no anihor positionc Theirame behares aike a iharaiterc

t the position there the ihar-aiter appears in the doiSmentc

Oorikontaa and Vertiiaa aignmentThe ioaaoting tabaes dispaay the possibae raaSes oi the attribStes style:horivontal-poss style:hori-vontal-rels style:vertical-poss and style:vertical-rels depending on the anihor type oi theiramec The possibae raaSes oi these aaignment attribStes are aisted in the iirst ioaSmn on the aeits and an aaignmentattribSte raaSesanihor type raaSe matih is indiiated by an Xc

h4Tr ineifVxtaealuoel Vett lf

h4Tr ineiValVee valutVx ao4. eI4 o4I4.I4or or4I 49-or4I

any X X X X

h4Tr ineifVxtaealuoel Vettuat

h4Tr ineiValVee valutVx ao4. eI4 o4I4.I4or or4I 49-or4I

page X X X

page-iontent X X X

page-start-margin X X X

page-end-margin X X X

irame X

irame-iontent X

irame-start-margin X

irame-end-margin X

paragraph X X

paragraph-iontent X X

paragraph-start-margin X X

paragraph-end-margin X X

ihar X

h4Tr ineifVxtae auVovett lf

h4Tr ineiValVee valutVx ao4. eI4 o4I4.I4or or4I 49-or4I

any X X X X X

200 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 201: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

h4Tr ineifVxtae auVovettuat

h4Tr ineiValVee valutVx apage frame paragraph char as-char

page X

page-iontent X

irame X

irame-iontent X

paragraph X X

paragraph-iontent X X

ihar X X

aine X

baseaine X

te.t X

n T X L and OT L sSpport rery iet oi the iombinations oi anihor types rertiiaashorikontaa aaignments andtrap mode that OpenOiiiiecorg sSpportsc

4crc4 nihor Page NSmberThe text:anchor-page-number attribSte speiiiies the physiiaa page nSmber oi an anihor ii the irame isboSnd to a pagec

rg int T text:anchor-page-numberRrT 9T

ooT <!ATTLIST style:properties text:anchor-page-number %number;tIMPLIEt<

4c Sby Sby is additionaa te.t that is dispaayed abore or beaot some base te.tc The pSrpose oi rSby is to annotate thebase te.t or proride iniormation aboSt its pronSniiationc

rg int T <text:ruby< RrT 9T This eaement ian be iontained anythere tithin a paragraphc t iontains to sSb eaementss one ior

the base and one ior the rSby te.tc

ooT <!ELEMENT text:ruby (text:ruby-base,text:ruby-texty<

The attribStes that yoS ian assoiiate tith the <text:ruby< eaement are:● Sby styae

● Sby te.t iormatting properties

There are tto eaements that ian be iontained in the <text:ruby< eaement:● Sby base

● Sby te.t

Chapter 3 Text Content 201

Page 202: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Sby tyae rSby styae speiiiies hot the rSby te.t is dispaayed reaatire to the base te.tc t is represented by a <style:style< eaement those iamiay is rubyc The rSby styae is assigned to the rSby eaement Ssing a text:style-name attribStec

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:ruby text:style-name %styleName; tIMPLIEt<

Sby Te.t Formatting Properties aa oi the rSby te.t is dispaayed Ssing the same iormatting propertiesc The style:style-name attribSte isSsed to speiiiy these propertiesc

rg int T style:style-nameRrT 9T This attribSte reierenies a te.t styae that is Ssed to dispaay the rSby te.tc

ooT <!ATTLIST text:ruby-text %styleName;<

Rryin9uun1

This property speiiiies the position oi the rSby te.t reaatire to the rSby basec

rg int T style:ruby-positionRrT 9T The raaSe oi this property ian be above or belowcooT <!ATTLIST style:properties style:ruby-position (above|belowy

tIMPLIEt<

RryiATu.1 1

This property speiiiies the aaignment oi the rSby te.t reaatire to the rSby basec

rg int T style:ruby-alignRrT 9T The raaSe oi this property ian be lefts centers rights tistribute-letters or

tistribute-spacecooT <!ATTLIST style:properties style:ruby-align (left|center|

right|tistribute-letter|tistribute-spacey tIMPLIEt<

4c c0 Sby BaseThe <text:ruby-base< eaement iontains the te.t that is to be annotatedc

rg int T <text:ruby-base <RrT 9T This eaement ian iontain any iontentc

ooT <!ELEMENT text:ruby-base (%inline-text;|tPCtATAy<

202 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 203: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c c Sby Te.tThe <text:ruby-text < eaement iontains the annotationc

rg int T <text:ruby-text <RrT 9T

ooT <!ELEMENT text:ruby-text (tPCtATAy<

4c02 Te.t Formatting PropertiesYoS ian appay te.t iormatting properties to te.t portionss paragraphss and paragraph styaesc

4c02c0 Font Variant se this property to stitih the option to dispaay te.t as smaaa iapitaaiked aetters on or oiic

rg int T fo:font-variant iX L propertyoRrT 9T

ooT <!ATTLIST style:properties fo:font-variant (normal|small-capsytIMPLIEt<

oT 14un1Tuu4un1T

t presents the fo:font-variant and fo:text-transform properties are mStSaaaye.iaSsirec i both properties are attaihed to an item set eaement simSataneoSsays the resSat is Snde-iined e.iept that the fo:text-transform raaSe is none and the fo:font-variantraaSe is normalc

4c02c Te.t Transiormations se this property to desiribe te.t transiormations to Spperiases aoteriases and iapitaaikationc

rg int T fo:text-transform iX L propertyoRrT 9T

ooT <!ATTLIST style:properties fo:text-transform (none|lowercase|uppercase|capitalivey tIMPLIEt<

oT 14un1Tuu4un1T

t presents the fo:font-variant and fo:text-transform properties are mStSaaaye.iaSsirec i both properties are attaihed to an item set eaement simSataneoSsays the resSat is Snde-iined e.iept that the fo:text-transform raaSe is none and the fo:font-variantraaSe is normalc

4c02c4 Coaor se this property to speiiiy the ioregroSnd ioaor oi te.tc

Chapter 3 Text Content 203

Page 204: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:color iX L propertyoRrT 9T

ooT <!ENTITY % color "CtATA"<<!ATTLIST style:properties fo:color %color; tIMPLIEt<

4c02c9 Dindot Font Coaor se this property to speiiiy thether or not the tindot ioregroSnd ioaor shoSad be as Ssed as the ioregroSndioaor ior a aight baikgroSnd ioaor and thite ior a dark baikgroSnd ioaorc

rg int T style:use-wintow-font-colorRrT 9T

ooT <!ATTLIST style:properties style:use-wintow-font-color %boolean; tIMPLIEt<

4c02c5 Te.t OStaine se this property to speiiiy thether to dispaay an oStaine oi te.t or the te.t itseaic

rg int T style:text-outlineRrT 9T This attribSte ian hare a raaSe oi true or falsecooT <!ATTLIST style:properties style:text-outline %boolean;

tIMPLIEt< n T X L does not hare a iorresponding propertyc

4c02c6 Crossing OSt se this property to speiiiy the styae to Sse then irossing oSt te.tc

rg int T style:text-crossing-outRrT 9T The raaSe oi this attribSte is the irossing oSt styae ior the te.tc

ooT <!ATTLIST style:properties style:text-crossing-out (none|single-line|touble-line|thick-line|slash|XytIMPLIEt<

n T X L does not sSpport this propertys bSt the raaSes none and single-line iorrespond to theraaSes none and unterline ior the X L fo:text-tecoration propertyc

4c02cm Te.t Position se this iormatting property to speiiiy thether te.t is positioned abore or beaot the baseaine and to speiiiy thereaatire iont height that is Ssed ior this te.tc

204 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 205: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:text-positionRrT 9T This attribSte ian hare one or tto raaSesc

The iirst raaSe mSst be present and speiiiies the rertiiaa te.t position as a perientage that reaatesto the iSrrent iont height or it takes one oi the raaSes sub or superc Negatire perientages or thesub raaSe paaie the te.t beaot the baseainec Positire perientages or the super raaSe paaie thete.t abore the baseainec i sub or super is speiiiieds the appaiiation ian ihoose an appropriatete.t positionc

The seiond raaSe is optionaa and speiiiies the iont height as a perientage that reaates to theiSrrent iont-heightc i this raaSe is not speiiiieds an appropriate iont height is Ssedc athoSgh thisraaSe may ihange the iont height that is dispaayeds it nerer ihanges the iSrrent iont height that isSsed ior additionaa iaaiSaationsc

ooT <!ATTLIST style:properties style:text-position CtATA tIMPLIEt< n T The eiieit oi Ssing this property is the same as the eiieit aihiered by Ssing the X L properties

fo:vertical-align and fo:font-sivec This representation is not appropriate beiaSsethe fo:font-sive property is Ssed to ihange the iont height tithoSt ihanging its positionc

4c02cr Font Name se these properties to assign a iont to the te.tc

rg int T style:font-namestyle:font-name-asianstyle:font-name-complex

RrT 9T The raaSes oi these attribStes iorm the name oi a iont that is deiaared by a <style:font-tecl< eaement tithin the <office:font-tecls< eaementcThe style:font-name-asian attribSte is eraaSated ior N CODE iharaiters that are CJ2iharaitersc

The style:font-name-complex attribSte is eraaSated ior N CODE iharaiters that areiompae. te.t aayoSt iCTLo iharaitersc

The style:font-name attribSte is eraaSated ior any other N CODE iharaitercooT <!ATTLIST style:properties fo:font-name %string; tIMPLIEt<

<!ATTLIST style:properties fo:font-name-asian %string;tIMPLIEt<<!ATTLIST style:properties fo:font-name-complex %string;tIMPLIEt<

4c02c Font Famiay se these properties to speiiiy the iont iamiay ior the te.tc

Chapter 3 Text Content 205

Page 206: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:font-family iX L propertyostyle:font-family-asianstyle:font-family-complex

RrT 9T YoS ian Sse these properties instead oi the style:font-name attribStes to speiiiy the prop-erties oi a iont indiridSaaayc Ooterers it is adrisabae toSse the style:font-name attribStesinsteadc

ee eition 4c02cr ior iniormation aboSt then asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ATTLIST style:properties fo:font-family %string; tIMPLIEt<<!ATTLIST style:properties fo:font-family-asian %string;tIMPLIEt<<!ATTLIST style:properties fo:font-family-complex %string;tIMPLIEt<

4c02c02 Font Famiay Generii se these properties to speiiiy a generii iont iamiay namec

rg int T style:font-family-genericstyle:font-family-generic-asianstyle:font-family-generic-complex

RrT 9T These properties are ignored ii there is no iorresponding fo:font-family property attaihedto the same properties eaementc

YoS ian Sse these properties instead oi the style:font-name attribStes to speiiiy the prop-erties oi a iontc Ooterers it is adrisabae to Sse the style:font-name attribSte insteadc ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ENTITY % fontFamilyGeneric "(roman|swiss|motern|tecorative|script|systemy"<<!ATTLIST style:properties style:font-family-generic %fontFamilyGeneric; tIMPLIEt<<!ATTLIST style:properties style:font-family-generic-asian %fontFamilyGeneric; tIMPLIEt<<!ATTLIST style:properties style:font-family-generic-complex %fontFamilyGeneric; tIMPLIEt<

4c02c00 Font tyae se these properties to speiiiy a iont styae namec

206 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 207: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:font-style-namestyle:font-style-name-asian style:font-style-name-complex

RrT 9T These properties are ignored ii there is no iorresponding fo:font-family property attaihedto the same properties eaementc

YoS ian Sse these properties instead oi the style:font-name attribStes to speiiiy the prop-erties oi a iontc Ooterers it is adrisabae to Sse the style:font-name attribSte insteadc ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ATTLIST style:properties style:font-style-name %string;tIMPLIEt<<!ATTLIST style:properties style:font-style-name-asian %string; tIMPLIEt<<!ATTLIST style:properties style:font-style-name-complex %string; tIMPLIEt<

n T X L does not sSpport this propertyc

4c02c0 Font Pitih se these properties to speiiiy thether a iont has a ii.ed or rariabae tidthc

rg int T style:font-pitchstyle:font-pitchgv style:font-pitch-complex

RrT 9T These properties are ignored ii there is no iorresponding fo:font-family property attaihedto the same properties eaementc

YoS ian Sse these properties instead oi the style:font-name attribStes to speiiiy the prop-erties oi a iontc Ooterers it is adrisabae to Sse the style:font-name attribSte insteadc ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ENTITY % fontPitch "(fixet|variabley"<<!ATTLIST style:properties style:font-pitch %fontPitch;tIMPLIEt<<!ATTLIST style:properties style:font-pitch-asian %fontPitch;tIMPLIEt<<!ATTLIST style:properties style:font-pitch-complex %fontPitch; tIMPLIEt<

n T X L does not sSpport this propertyc

4c02c04 Font Charaiter et se these properties to speiiiy the iharaiter set oi a iontc

Chapter 3 Text Content 207

Page 208: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:font-charsetstyle:font-charset-asian style:font-charset-complex

RrT 9T The raaSe oi these attribStes ian be x-symbol or the iharaiter enioding in the notationdesiribed in the X L reiommendation iChapter 9c4c4s Charaiter Enioding and Entitiess http:sstttct4corgsT s EC-.ma*ihareniodingoc i the raaSe is x-symbols aaa iharaiters that aredispaayed Ssing this iont mSst be iontained in the N CODE iharaiter range 2.i222 to 2.i2iic

These properties are ignored ii there is no iorresponding fo:font-family property attaihedto the same properties eaementc

YoS ian Sse these properties instead oi the style:font-name attribStes to speiiiy the prop-erties oi a iontc Ooterers it is adrisabae to Sse the style:font-name attribSte insteadc ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ATTLIST style:properties style:font-charset CtATA tIMPLIEt<<!ATTLIST style:properties style:font-charset-asian CtATAtIMPLIEt<<!ATTLIST style:properties style:font-charset-complex CtATAtIMPLIEt<

4c02c09 Font ike se these properties to speiiiy the sike oi iontc

rg int T fo:font-sive iX L propertyofo:font-sive-asianfo:font-sive-complex

RrT 9T The raaSe oi these property is either an absoaSte aength or a perientagec n iontrast to X Lsperientage raaSes ian be Ssed tithin styaes onay and reaate to the iont height oi the parent styaerather than to the iont height oi the attribStes neighborhoodc bsoaSte iont heights sSih asmetiums larges x-larges and so ons and reaatire iont heights sSih as smallers andlarger are not sSpportedc ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ENTITY % length_or_percentage "CtATA"<<!ATTLIST style:properties fo:font-sive %length_or_percentage;tIMPLIEt<<!ATTLIST style:properties fo:font-sive-asian %length_or_percentage; tIMPLIEt<<!ATTLIST style:properties fo:font-sive-complex %length_or_percentage; tIMPLIEt<

4c02c05 eaatire Font ike se these properties to speiiiy a reaatire iont sike ihangec

208 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 209: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:font-sive-relstyle:font-sive-rel-asianstyle:font-sive-rel-complex

RrT 9T These properties speiiiy a reaatire iont sike ihange as a aength sSih as t1pts -3ptc t iannot beSsed tithin aStomatii styaesc The sike ihanges reaates to the iont sike setting that appaies to theparent styae oi the styaec

ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ATTLIST style:properties fo:font-sive-rel %length; tIMPLIEt<<!ATTLIST style:properties fo:font-sive-rel-asian %length;tIMPLIEt<<!ATTLIST style:properties fo:font-sive-rel-complex %length;tIMPLIEt<

4c02c06 Letter paiing se this property to speiiiy the amoSnt oi spaie betteen aettersc

rg int T fo:letter-spacing iX L propertyoRrT 9T The raaSe oi this property ian be normal or it ian speiiiy a aengthcooT <!ATTLIST style:properties fo:letter-spacing CtATA tIMPLIEt<

4c02c0m LangSage se this property to speiiiy the aangSage oi the te.tc

rg int T fo:language iX L propertyofo:language-asian fo:language-complex

RrT 9T The raaSe oi these properties ian be any oi the O 64 aangSage iodes isee http:sstttcoasis-opencorgsiorersiso64 achtmaoc

t presents these properties are ignored ii they are not speiiiied together tith the iorrespondingfo:country propertyc ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ATTLIST style:properties fo:language CtATA tIMPLIEt<<!ATTLIST style:properties fo:language-asian CtATA tIMPLIEt<<!ATTLIST style:properties fo:language-complex CtATA tIMPLIEt<

4c02c0r CoSntry se this property tith the fo:language properties to speiiiy the ioSntry there aangSage oi the te.t is Ssedc

Chapter 3 Text Content 209

Page 210: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:country iX L propertyofo:country-asian fo:country-complex

RrT 9T The raaSe oi these properties ian be any oi the O 4066 ioSntry iodes isee http:sstttcsiacorgsaipSbsiataaogsioSntrychtmaoc

t presents these properties are ignored ii they are not speiiiied together tith the iorrespondingfo:language propertyc ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ATTLIST style:properties fo:country CtATA tIMPLIEt<<!ATTLIST style:properties fo:country-asian CtATA tIMPLIEt<<!ATTLIST style:properties fo:country-complex CtATA tIMPLIEt<

4c02c0 Font tyae se these properties to speiiiy thether to Sse normaa or itaaii iont iaiec

rg int T fo:font-style iX L propertyofo:font-style-asianfo:font-style-complex

RrT 9T ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ENTITY % fontStyle "(normal|italic|obliquey"<<!ATTLIST style:properties fo:font-style %fontStyle; tIMPLIEt<<!ATTLIST style:properties fo:font-style-asian %fontStyle;tIMPLIEt<<!ATTLIST style:properties fo:font-style-complex %fontStyle;tIMPLIEt<

4c02c 2 Font eaiei se this property to speiiiy thether the iont shoSad be embosseds engrareds or neitherc

rg int T style:font-reliefRrT 9T

ooT <!ENTITY % fonteelief "(none|embosset|engravety"<<!ATTLIST style:properties style:font-relief %fonteelief;tIMPLIEt<

4c02c 0 Te.t hadot se this property to speiiiy the te.t shadot styae to Ssec

210 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 211: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:text-shatow iX L propertyoRrT 9T

ooT <!ATTLIST style:properties fo:text-shatow CtATA tIMPLIEt<oT 14un1Tuu4un1T

t presents OpenOiiiiecorg onay sSpports a deiaSat te.t shadot styaec Thereiores any raaSe otherthan none stitihes on this deiaSat shadot styaec

4c02c nderaining se this property to speiiiy ii and hot te.t is Snderainedc

rg int T style:text-unterlineRrT 9T The raaSe oi this property is the Snderaining styae ior the te.ts ior e.ampaes singles tottets

tashcooT <!ATTLIST style:properties fo:text-unterline

(none|single|touble|tottet|tash|long-tash|tot-tash|tot-tot-tash|wave|bolt|bolt-tottet|bolt-tash|bolt-long-tash|bolt-tot-tash|bolt-tot-tot-tash|bolt-wave|touble-wave|small-wavey tIMPLIEt<

n T X L does not sSpport this property bSt the raaSes none and single iorrespond to the raaSesnone and unterline in the X L fo:text-tecoration propertyc The fo:text-tecoration property is aaso Ssed ior irossing oSt and bainking te.tc

4c02c 4 nderaine Coaor se this property to speiiiy the ioaor that is Ssed to Snderaine te.tc

rg int T style:text-unterline-colorRrT 9T The raaSe oi this property is either font-color or a ioaorc i the raaSe is font-colors the

iSrrent te.t ioaor is Ssed ior Snderainingc

ooT <!ATTLIST style:properties fo:text-unterline-color CtATAtIMPLIEt<

n T i yoS set this property tithin OpenOiiiiecorg tithoSt speiiiying a style:text-unterline property ior the same styaes Snderaining is stitihed oiic

4c02c 9 Font Deight se these properties to speiiiy the teight oi the iontc

Chapter 3 Text Content 211

Page 212: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:font-weight iX L propertyofo:font-weight-asian fo:font-weight-complex

RrT 9T The reaatire raaSes lighter or bolter are not sSpported and onay a iet distinit nSmeriiaaraaSes are sSpportedc nsSpported nSmeriiaa raaSes are roSnded oii to the ne.t sSpported raaSec

ee eition 4c02cr ior iniormation aboSt then the asian and iompae. rariants oi the attribSte areeraaSatedc

ooT <!ATTLIST style:properties fo:font-weight CtATA tIMPLIEt<<!ATTLIST style:properties fo:font-weight-asian CtATAtIMPLIEt<<!ATTLIST style:properties fo:font-weight-complex CtATAtIMPLIEt<

4c02c 5 Te.t Deioration Dord ode se this property to speiiiy thether irossing oSt and Snderaining is appaied to tords onay or to portions oi te.tc iirossing oSt and Snderaining is appaied to te.t portionss the spaies betteen tords and the tords are Snderained orirossed oStc

rg int T fo:score-spacesRrT 9T

ooT <!ATTLIST style:properties fo:score-spaces %boolean; tIMPLIEt< n 9T X L does not sSpport this propertyc

n tarOiiiie 5c s this property tas iaaaed style:tecorate-worts-onlyc

4c02c 6 Letter 2erning se this property to enabae or disabae kerning betteen iharaitersc

rg int T style:letter-kerningRrT 9T

ooT <!ATTLIST style:properties style:letter-kerning %boolean;tIMPLIEt<

n T X L does not sSpport this propertyc

4c02c m Te.t Bainking se this property to speiiiy thether or not te.t bainksc

212 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 213: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:text-blinkingRrT 9T

ooT <!ATTLIST style:properties style:text-blinking %boolean;tIMPLIEt<

n T X L does not sSpport this property bSt the raaSes false and true iorrespond to the raaSesnone and blink oi the X L fo:text-tecoration propertyc The X L fo:text-tecoration ian be Ssed to represent this property bSt it is aaso Ssed ior Snderained anirossing oSt te.tc

4c02c r Te.t BaikgroSnd Coaor se this property to speiiiy the baikgroSnd ioaor to appay to iharaitersc

rg int T style:text-backgrount-colorRrT 9T The raaSe oi this property ian be transparent or a ioaorc The property has the same raaSes as

the fo:backgrount-color propertycooT <!ENTITY % transparent_or_color "CtATA"<

<!ATTLIST style:properties style:text-backgrount-color %transparent_or_color; tIMPLIEt<

n T naike OpenOiiiiecorgs X L does not distingSish betteen iharaiter and paragraph baikgroSndsc n OpenOiiiiecorgs ii a baikgroSnd is appaied to a baoik eaement iparagraphos it behares aike aparagraph baikgroSnd and ii it is appaied to an inaine eaement ia pieie oi te.t tithin a paragraphosit behares aike a iharaiter baikgroSndc Thereiores this property ian be transiormed to an X Lfo:backgrount-color bSt an additionaa inaine eaement is reqSiredc

4c02c Te.t Combine se this property to iombine iharaiters so that they are dispaayed tithin tto ainesc

rg int T style:text-combineRrT 9T The raaSe oi this attribSte ian be nones letters or linesc

i the raaSe is liness aaa iharaiters tith this attribSte raaSe that immediateay ioaaot eaih otherare dispaayed tithin tto aines oi appro.imateay the same aengthc There ian be a aine breakbetteen any tto iharaiters to meet this ionstraintc

i the raaSe oi the attribSte is letterss Sp to 5 iharaiters are iombined tithin tto ainesc nyadditionaa iharaiter is dispaayed as normaa te.tc

ooT <!ATTLIST style:properties style:text-combine (none|letters|linesy<

n T ee http:sstttct4corgsT sDD-i0rn-iormatsrc

4c02c42 Te.t Combine tart and End Charaiters se these tto properties to speiiiy a start and end iharaiter that is dispaayed beiore and aiter a portion oi te.tthose style:text-combine property has a raaSe oi linesc

Chapter 3 Text Content 213

Page 214: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:text-combine-start-char style:text-combine-ent-char

RrT 9T

ooT <!ATTLIST style:properties style:text-combine-start-char %character;<<!ATTLIST style:properties style:text-combine-ent-char %character;<

4c02c40 Te.t Emphasis se this property to emphasike te.t in sian doiSmentsc

rg int T style:text-emphasiveRrT 9T The raaSe oi this attribSte ionsists oi tto spaie-separated raaSesc

The iirst raaSe represents the styae to Sse ior emphasis and it ian be nones accents totscircles or tiscc The seiond raaSe represents the position oi the emphasis and it ian be above or belowc i theiirst raaSe is nones this raaSe ian be omittedc

ooT <!ATTLIST style:properties style:text-emphasive CtATAtIMPLIEt<

n T OpenOiiiiecorg sSpports the ioaaoting iombined raaSes:

nonetot abovetot belowaccent above circle aboveDhen the doiSment is importeds tisc above is ihanged to tot aboves thiae any belowraaSe is ihanged to a tot below raaSec

4c02c4 Te.t Stospaie se this property to speiiiy thether to add spaie betteen asians testerns and iompae. te.tc

rg int T style:text-autospaceRrT 9T The OpenOiiiiecorg soittare onay sSpports the raaSes none and iteograph-alphacooT <!ATTLIST style:properties style:text-autospace (none |

iteograph-alphay tIMPLIEt<

4c02c44 Te.t iaae se this property to deirease or inirease the tidth oi the te.tc To aihiere siaaings ihange the iont tidthc

214 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 215: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:text-scaleRrT 9T

ooT <!ATTLIST style:properties style:text-scale %percentagetIMPLIEt<

4c02c49 Te.t otation ngae se this property to speiiiy an angae to thiih to rotate the te.tc YoS ian rotate te.t to an angae oi 2 or m2degreesc i this attribSte is speiiiied ior more than one iharaiters aaa te.t iontaining these iharaiters is rotatedc

rg int T style:text-rotation-angleRrT 9T The raaSe oi this attribSte ian be 0s 90s or 2:0c

For any angae greater than 45 the remainder oi a dirision by 462 is Ssedc ny angae other than 2s 2 or m2 is roSnded to the nearest possibae raaSec

ooT <!ATTLIST style:properties style:text-rotation-angle %integer;tIMPLIEt<

4c02c45 Te.t otation iaae i te.t is rotateds this property speiiiies thether the tidth oi the te.t shoSad be siaaed to iit into the iSrrent aineheight or the tidth oi the te.t shoSad remain ii.eds thereiore ihanging the iSrrent aine heightc

rg int T style:text-rotation-scaleRrT 9T

ooT <!ATTLIST style:properties style:text-rotationscale (fixet|line-heighty tIMPLIEt<

4c02c46 PSnitSation Drap se this property to determine thether or not a pSnitSation marks ii one is presents ian be paaied in the marginarea at the end oi a iSaa aine oi te.tc This is a iommon setting in East sian typographyc

rg int T style:punctuation-wrapRrT 9T

ooT <!ATTLIST style:properties style:punctuation-wrap (simple |hangingy tIMPLIEt<

4c02c4m Line Break se this property to seaeit the set oi aine breaking rSaes to Sse ior te.tc

Chapter 3 Text Content 215

Page 216: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:line-breakRrT 9T

ooT <!ATTLIST style:properties style:line-break (normal | strictytIMPLIEt<

4c00 Paragraph Formatting PropertiesYoS ian appay paragraph iormatting properties to paragraphs and paragraph styaesc

4c00c0 Fi.ed Line Oeight se this property to speiiiy a ii.ed aine height either as a aength or a perientage that reaates to the highest ihar-aiter in a ainec speiiaa raaSe oi normal aitirates the deiaSat aine height iaaiSaationc t is aaso Ssed to deaitiratethe eiieits oi the style:line-height-at-least and style:line-spacing propertiesc

rg int T fo:line-height iX L propertyoRrT 9T The raaSe oi this property ian be a aengths a perientages or a raaSe oi normalcooT <!ATTLIST style:properties fo:line-height

(normal|%length;|%percentage;y tIMPLIEt< n T The fo:line-heights style:line-height-at-least and style:line-

spacing properties are mStSaaay e.iaSsire and ianiea eaih other oStc The resSat oi speiiiyingtto or more oi these properties tithin one item set eaement is Sndeiinedc

X L sSpports this property bSt it does not sSpport a nSmber property raaSec

4c00c inimSm Line Oeight se this property to speiiiy a minimSm aine heightc

rg int T style:line-height-at-leastRrT 9T The raaSe oi this property is a aengthc There is no normal raaSe ior the propertyc ooT <!ATTLIST style:properties style:line-height-at-least %length;

tIMPLIEt< n T X L does not sSpport this propertyc

The fo:line-heights style:line-height-at-least and style:line-spacing properties are mStSaaay e.iaSsire and ianiea eaih other oStc The resSat oi speiiiyingtto or more oi these properties tithin one item set eaements is Sndeiinedc

4c00c4 Line Distanie se this property to speiiiy a ii.ed distanie betteen tto aines

216 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 217: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:line-spacingRrT 9T There is no normal raaSe ior this propertyc ooT <!ATTLIST style:properties style:line-spacing %length

tIMPLIEt< n T X L does not sSpport this propertyc

The fo:line-heights style:line-height-at-least and style:line-spacing properties are mStSaaay e.iaSsire and ianiea eaih other oStc The resSat oi speiiiyingtto or more oi these properties tithin one item set eaement is Sndeiinedc

4c00c9 Te.t aign se this property to speiiiy hot to aaign te.t in paragraphsc

rg int T fo:text-align iX L propertyoRrT 9T The raaSe oi this property ian be starts ents centers or iustifyc

i there are no raaSes speiiiied ior the style:text-align-last and style:iustify-single-wort properties tithin the same item set eaements the raaSes oi theseproperties are set to left and false respeitireayc

ooT <!ATTLIST style:properties fo:text-align (start|ent|center|iustifyy tIMPLIEt<

n 9T t presents the raaSes page-insite and page-outsite are not sSpportedc n tarOiiiie 5c s the attribSte raaSe iustify tas iaaaed iustifietc

4c00c5 Te.t aign oi Last Line se this property to speiiiy hot to aaign the aast aine oi a jSstiiied paragraphc

rg int T style:text-align-lastRrT 9T The raaSe oi this property ian be starts centers or iustifyc

This property is ignored ii it not aiiompanied by an fo:text-align propertyc i there are no raaSes speiiiied ior the fo:text-align and style:iustify-single-wort propertiess these raaSes oi these properties is set to left and false respeitireayc

ooT <!ATTLIST style:properties style:text-align-last (start|center|iustifyy tIMPLIEt<

n T n tarOiiiie 5c s the attribSte raaSe iustify tas iaaaed iustifietc

4c00c6 JSstiiy ingae Dord i the aast aine in a paragraph is jSstiiieds Sse this property to speiiiy thether or not a singae tord shoSad be jSsti-iiedc

Chapter 3 Text Content 217

Page 218: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:iustify-single-wortRrT 9T i there are no raaSes speiiiied ior the fo:text-align and style:text-align-last

propertiess the raaSes oi these properties are set to leftc This means that speiiiying a style:iustify-single-wort property tithoSt speiiiying a style:text-align andstyle:text-align-last property has no eiieitc

ooT <!ATTLIST style:properties style:iustify-single-wort %boolean;tIMPLIEt<

n T X L does not sSpport this propertyc

4c00cm Break nside se this property to iontroa thether page or ioaSmn breaks are aaaoted tithin a paragraphc

rg int T style:break-insiteRrT 9T

ooT <!ATTLIST style:properties style:break-insite (auto|avoitytIMPLIEt<

n T X L does not sSpport this propertyc

4c00cr Didots se this property to speiiiy the minimSm nSmber oi aines aaaoted at the top oi a page to aroid paragraphAutnA9c

rg int T fo:witows iX L propertyoRrT 9T

ooT <!ATTLIST style:properties fo:witows %number; tIMPLIEt< n T naike X Ls this property aiieits ioaSmn breaks and page breaksc

4c00c Orphans se this property to speiiiy the minimSm nSmber oi aines reqSired at the bottom oi a page to aroid paragraphnIor419c

rg int T fo:orphans iX L propertyoRrT 9T

ooT <!ATTLIST style:properties fo:orphans %number; tIMPLIEt< n T naike X Ls this property aiieits ioaSmn breaks and page breaksc

4c00c02 Tab tops se the tab stop eaements to speiiiy tab stop deiinitionsc

218 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 219: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <style:tab-stops<<style:tab-stop<

RrT 9T Erery tab stop position is represented by a singae <style:tab-stop< eaement that isiontained in the <style:tab-stops< eaementc

ooT <!ELEMENT style:tab-stops (style:tab-stopya<<!ELEMENT style:tab-stop EMPTY<

n T X L does not sSpport tab stopsc

The attribStes that yoS ian assoiiate tith the <style:tab-stops< and <style:tab-stop< eaements are:● Tab position

● Tab type

● Deaimiter iharaiter

● Leader iharaiter

Tab PositionThe style:position attribSte speiiiies the position oi a tab stopc

rg int T style:positionRrT 9T This attribSte is assoiiated tith the <style:tab-stop< eaement and its raaSe is a aengthcooT <!ATTLIST style:tab-stop style:position %length; teEt|IeEt<

Tab TypeThe style:type attribSte speiiiies the type oi tab stopc

rg int T style:typeRrT 9T This attribSte is assoiiated tith the <style:tab-stop< eaement and its raaSe ian be lefts

centers rights or charcooT <!ATTLIST style:tabtype style:type (left|center|right|chary

"left"<

Deaimiter CharaiterThe style:char attribSte speiiiies the deaimiter iharaiter ior tab stops oi type charc

rg int T style:charRrT 9T This attribSte is assoiiated tith the <style:tab-stop< eaement and it must be present ii the

raaSe oi the style:type attribSte is charc i the raaSe oi style:type attribSte is notchar, it is ignoredc The raaSe oi the attribSte mSst be a singae N CODE iharaiterc

ooT <!ATTLIST style:tab-stop style:char %char; tIMPLIEt<

Chapter 3 Text Content 219

Page 220: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Leader CharaiterThe style:leater-char attribSte speiiiies the aeader iharaiter to Sse ior tab stopsc

rg int T style:leater-charRrT 9T This attribSte is assoiiated tith the <style:tab-stop< eaement and its raaSe mSst be a

singae N CODE iharaiterc

ooT <!ATTLIST style:tab-stop style:leater-char %char; " "<

4c00c00 Oyphenation se this property to enabae or disabae aStomatii hyphenationc

rg int T fo:hyphenateRrT 9T

ooT <!ATTLIST style:properties fo:hyphenate %boolean; tIMPLIEt<oT 14un1Tuu4un1T

t presents ii yoS enabae hyphenations OpenOiiiiecorg X L sets the ioaaoting property raaSesSnaess they are speiiiied tithin the same item set eaement:

● fo:hyphenation-keep to none● fo:hyphenation-remain-char-count and fo:hyphenation-push-char-

count to 0● fo:hyphenation-latter-count to no-limit

4c00c0 Oyphenation 2eep se this property to enabae or disabae the hyphenation oi the aast tord on a pagec

rg int T fo:hyphenation-keep RrT 9T

ooT <!ATTLIST style:properties fo:hyphenation-keep (none|page|column|spreaty tIMPLIEt<

oT 14un1Tuu4un1T

t presents this property is not sSpportedc i yoS enabae this propertys OpenOiiiiecorg X L setsthe ioaaoting property raaSes Snaess they are speiiiied tithin the same item set eaement:

● fo:hyphenate to false● fo:hyphenation-remain-char-count and fo:hyphenation-push-char-

count to 0 ● fo:hyphenation-latter-count to no-limitThe raaSes none and page ian be setsbSt they tiaa nerer be eraaSatedc

4c00c04 Oyphenation emain Char CoSnt se this property to speiiiy the nSmber oi iharaiters that mSst be present beiore a hyphenation iharaiterc

220 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 221: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:hyphenation-remain-char-countRrT 9T

ooT <!ATTLIST style:properties fo:hyphenation-remain-char-count %number; tIMPLIEt<

oT 14un1Tuu4un1T

t presents ii yoS enabae this propertys OpenOiiiiecorg X L sets the ioaaoting property raaSesSnaess they are speiiiied tithin the same item set eaement:

● fo:hyphenate to false● fo:hyphenation-keep to none● fo:hyphenation-push-char-count to 0● fo:hyphenation-latter-count to no-limit

4c00c09 Oyphenation PSsh Char CoSnt se this property to speiiiy the minimSm nSmber oi iharaiters that are mored to the ne.t ainec

rg int T fo:hyphenation-push-char-countRrT 9T

ooT <!ATTLIST style:properties fo:hyphenation-push-char-count %number; tIMPLIEt<

oT 14un1Tuu4un1T

t presents ii yoS enabae this propertys OpenOiiiiecorg X L sets the ioaaoting property raaSesSnaess they are speiiiied tithin the same item set eaement:

● fo:hyphenate property to false● fo:hyphenation-keep to none● fo:hyphenation-remain-char-count to 0● fo:hyphenation-latter-count to no-limit

4c00c05 a.imSm Oyphens se this property to speiiiy the ma.imSm nSmber oi sSiiessire aines that ian iontain a hyphenated tordc

rg int T fo:hyphenation-latter-countRrT 9T

ooT <!ATTLIST style:properties fo:hyphenation-latter-count (no-limit|%number;y tIMPLIEt<

n T n tarOiiiie 5c s there tas a raaSe none instead oi no-limitcoT 14un1Tuu4un1T

t presents ii yoS enabae this propertys OpenOiiiiecorg X L sets the ioaaoting property raaSesSnaess they are speiiiied tithin the same item set eaement:

● fo:hyphenate property to false● fo:hyphenation-keep to none● fo:hyphenation-remain-char-count and fo:hyphenation-push-char-

count to 0

Chapter 3 Text Content 221

Page 222: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c00c06 Drop Caps se the <style:trop-cap< eaement to speiiiy ii the iirst iharaiter or more oi a paragraph is dispaayed in aaarger iontc

rg int T <style:trop-cap<RrT 9T This eaement ian be iontained in a <style:properties< eaementcooT <!ELEMENT style:trop-cap EMPTY<

The attribStes that yoS ian assoiiate tith the <style:trop-cap< eaement are:● Length

● Lines

● Distanie

● Te.t styae

LengthThe style:length attribSte speiiiies the nSmber oi iharaiters that are droppedc

rg int T style:lengthRrT 9T The raaSe oi this attribSte ian be a nSmber or worts thiih indiiates that the iirst tord shoSad be

droppedc

ooT <!ATTLIST style:trop-cap style:length (%number;|worty "1"< n T X L does not sSpport drop iaps bSt a ionrersion to X L may ireate a iormatting objeit that

iontains the dropped iharaitersc

LinesThe style:lines attribSte speiiiies the nSmber oi aines that the dropped iharaiters shoSad eniiriaec

rg int T style:linesRrT 9T i the raaSe oi this attribSte is 1 or 0s drop iaps is disabaedcooT <!ATTLIST style:trop-cap style:lines %number; "1"<

DistanieThe style:tistance attribSte speiiiies the distanie betteen the aast dropped iharaiter and the iirst oi theremaining iharaiters oi eaih ainec

rg int T style:tistanceRrT 9T The raaSe oi this attribSte is a aengthc

ooT <!ATTLIST style:trop-cap style:tistance %length; "0cm"<

222 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 223: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Te.t tyaeThe style:style-name attribSte speiiiies the te.t styae to appay to the dropped iharaitersc

rg int T style:style-nameRrT 9T

ooT <!ATTLIST style:trop-cap style:style-name CtATA tIMPLIEt<

4c00c0m egister TrSe se the style:register-true property to ensSre that then yoS are Ssing tto-sided printings the printedaines on both sides oi a page matihc t aaso ensSres that the te.t in page ioaSmns or te.t bo. ioaSmns is arrangedin sSih a tay that the te.t baseaines seem to rSn irom one ioaSmn to anotherc

rg int T style:register-trueRrT 9T

ooT <!ATTLIST style:properties style:register-true %boolean;tIMPLIEt<

n T X L does not sSpport this propertyc

4c00c0r NSmbering tyae ee Chapter ior iniormation on the nSmber styae iormatting propertiesc

4c00c0 Leit and ight argins se these properties to speiiiy the aeit and right margins ior a paragraphc

rg int T fo:margin-left and fo:margin-right iX L propertiesoRrT 9T These tto properties mSst be attaihed to an item set eaement together tith the fo:text-

intent propertyc i any oi the properties is missings its raaSe is assSmed to be 2imc The raaSeauto is not sSpportedc

ooT <!ATTLIST style:properties fo:margin-left (%number;|%percantage;y tIMPLIEt<<!ATTLIST style:properties fo:margin-right (%number;|%percantage;y tIMPLIEt<

n T naike X Ls perientage raaSes ior these attribStes ian be Ssed tithin paragraph styaes and reaateto the margins oi the parent paragraph styae oi the tidth oi the attribSte neighborhoodc

4c00c 2 Te.t ndent se this property to speiiiy an positire or negatire indent ior the iirst aine oi a paragraphc

Chapter 3 Text Content 223

Page 224: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:text-intent iX L propertyoRrT 9T This property mSst be attaihed to an item set eaement together tith the fo:margin-left and

fo:margin-right propertiesc i any oi these properties is missings its raaSe is assSmed to be2imc

ooT <!ATTLIST style:properties fo:text-intent %number; tIMPLIEt< n T naike X Ls perientage raaSes ian be Ssed tithin paragraph styaesc They perientages reaate to the

parent paragraph styaec

4c00c 0 Stomatii Te.t ndent se this property to speiiiy that the iirst aine oi a paragraph is indented by a raaSe that is based on the iSrrent iontsikec

rg int T style:auto-text-intentRrT 9T This property mSst be attaihed to an item set eaement together tith the fo:margin-left and

fo:margin-right propertiesc i any oi these properties is missings its raaSe is assSmed to be2imc

i this property is attaihed to an item set eaement together tith a fo:text-intent propertythat has a raaSe oi trues the fo:text-intent property is ignoredc

ooT <!ATTLIST style:properties style:auto-text-intent %boolean;tIMPLIEt<

n T X L does not sSpport this propertyc

4c00c Top and Bottom argins se these properties to speiiiy the top and bottom margins ior paragraphsc

rg int T fo:margin-top and fo:margin-bottom iX L propertiesoRrT 9T These tto properties mSst be attaihed to an item set eaement simSataneoSsayc i one oi the proper-

ties is missings its raaSe is assSmed to be 2imc The raaSe auto is not sSpportedcooT <!ATTLIST style:properties fo:margin-top CtATA tIMPLIEt<

<!ATTLIST style:properties fo:margin-bottom CtATA tIMPLIEt< n T naike X Ls perientage raaSes ian Ssed tithin paragraph styaesc The perientages reaate to the

parent paragraph styae instead oi the attribSte neighborhoodc

4c00c 4 Page eqSenie Entry Point ee Chapter 9 ior detaiaed iniormation on page seqSenie entry pointsc

4c00c 9 Break Beiore and Break iter se these properties to insert a page or ioaSmn break beiore or aiter a paragraphc

224 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 225: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:break-before and fo:break-after iX L propertiesoRrT 9T These tto properties are mStSaaay e.iaSsirec i they are attaihed to an item set eaement simSatane-

oSsays the resSat is Sndeiinedc

The raaSes ott-page and even-page behare aike a page raaSecooT <!ATTLIST style:properties fo:break-before (auto|column|pagey

tIMPLIEt<<!ATTLIST style:properties fo:break-after (auto|column|pageytIMPLIEt<

4c00c 5 Paragraph BaikgroSnd Coaor se this property to speiiiy the baikgroSnd ioaor oi a paragraphc

rg int T fo:backgrount-color iX L propertyoRrT 9T The raaSe oi this attribSte ian be either transparent or it ian be a ioaorc i the raaSe is

transparents it stitihes oii any baikgroSnd image that is speiiiied by a <style:backgrount-image< eaement tithin the same item set eaementc

ooT <!ATTLIST style:properties fo:backgrount-color %transparent_or_color tIMPLIEt<

4c00c 6 Paragraph BaikgroSnd mage se this property to speiiiy a baikgroSnd image ior a paragraphc

The baikgroSnd image ian be stored in one oi the ioaaoting tays:

● The image data is stored in an e.ternaa iiaec se the Xaink attribStes to speiiiy the aoiation oi the imagec

● The image data is iontained in an <office:binary-tata< sSbeaement in B E69 eniodingc

rg int T <style:backgrount-image<RrT 9T This eaement mSst be iontained tithin a properties eaementc

The baikgroSnd image is onay dispaayed ii one oi the ioaaoting ionditions e.ist:

● There is an xlink:href attribSte attaihed to the eaementc● There is an <office:binary-tata< eaement iontained in the eaementc i the <style:backgrount-image< eaement is empty and ii there is no ioaor speiiiied byan fo:backgrount-color eaement in the same properties eaements OpenOiiiiecorg X Lsets the baikgroSnd ioaor to transparentc

ooT <!ELEMENT style:backgrount-image (office:binary-tata?y<<!ATTLIST style:backgrount-image xlink:type (simpley tIMPLIEt<<!ATTLIST style:backgrount-image xlink:show (embety tIMPLIEt<<!ATTLIST style:backgrount-image xlink:actuate (onLoatytIMPLIEt<

n T X L is not sSitabae ior dispaaying baikgroSnd images beiaSse it is not based on XLinkc

The attribStes that yoS ian assoiiate tith the <style:backgrount-image< eaement are:● epetition

Chapter 3 Text Content 225

Page 226: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Position

● Fiater

epetitionThe style:repeat attribSte speiiiies thether a baikgroSnd image is repeated or stretihed in a paragraphc

rg int T style:repeatRrT 9T This attribSte is attaihed to the <style:backgrount-image< eaement and its raaSe ian be

no-repeats repeats or stretchcooT <!ATTLIST style:backgrount-image style:repeat

(no-repeat|repeat|stretchy "repeat"< n T This attribSte is simiaar to the X L fo:backgrount-repeat propertys e.iept that X L

does not sSpport the stretch raaSe bSt sSpports the raaSes repeat-x and repeat-yinsteadc

PositionThe style:position attribSte speiiiies there to position a baikgroSnd image in a paragraphc

rg int T style:positionRrT 9T This attribSte is attaihed to the <style:backgrount-image< eaement and its raaSe ian be

a spaie separated iombination oi tops centers or bottom ior the rertiiaa position and leftscenters or right ior the horikontaa positionc The rertiiaa and horikontaa positions ian bespeiiiied in any order and ii yoS tishs yoS ian speiiiy jSst one position in thiih iase the otherposition deiaSats to centerc

ooT <!ATTLIST style:backgrount-image style:repeat CtATA "center"< n T This attribSte is simiaar to the X L io:baikgroSnd-position property e.iept that X L sSpports a

tider range oi raaSesc

FiaterThe style:filter-name attribSte speiiiies the internaa OpenOiiiiecorg iiater name that is Ssed to aoad theimage into the doiSmentc

rg int T style:filter-nameRrT 9T This attribSte is attaihed to the <style:backgrount-image< eaementcooT <!ATTLIST style:backgrount-image style:filter CtATA tIMPLIEt<

4c00c m Border se the border properties to speiiiy the border properties ior paragraphsc

226 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 227: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:borterfo:borter-topfo:borter-bottomfo:borter-leftfo:borter-right

RrT 9T The fo:borter property appaies to aaa ioSr sides oi a paragraph thiae the other propertiesappay to one side onayc

ooT <!ATTLIST style:properties fo:borter CtATA tIMPLIEt<<!ATTLIST style:properties fo:borter-top CtATA tIMPLIEt<<!ATTLIST style:properties fo:borter-bottom CtATA tIMPLIEt<<!ATTLIST style:properties fo:borter-left CtATA tIMPLIEt<<!ATTLIST style:properties fo:borter-right CtATA tIMPLIEt<

oT 14un1Tuu4un19T

t presents aaa ioSr borders mSst be set simSataneoSsay by Ssing either the fo:borter propertyor by attaihing aaa ioSr oi the other border properties to an item set eaementc n the aatter iases iione or more oi the properties is missing their raaSes are assSmed to be nonecThe onay border styaes sSpported are none or hittens solits and toublec ny other borderstyae speiiiied is dispaayed as solitc Transparent borders are not sSpported and the bordertidths thins metiums and thick are mapped to aengthsc n additions onay some distinit bordertidths are sSpportedc nsSpported tidths are roSnded Sp to the ne.t sSpported tidthc

i there are no padding properties speiiiied tithin the same item set eaements a deiaSat padding isSsed ior sides that hare a borderc raaSe oi 2im is Ssed ior sides tithoSt a borderc

4c00c r Border Line Didth i the aine styae ior a border is toubles Sse the border aine properties to indiridSaaay speiiiy the tidth oi theinner and oSter aines and the distanie betteen themc

rg int T style:borter-line-witthstyle:borter-line-witth-topstyle:borter-line-witth-bottomstyle:borter-line-witth-leftstyle:borter-line-witth-right

RrT 9T The style:borter-line-witth speiiiies the aine tidths oi aaa ioSr sidess thiae the otherattribStes speiiiy the aine tidths oi one side onayc

The raaSe oi the attribStes ian be a aist oi three spaie-separated aengthss as ioaaots:

● The iirst raaSe speiiiies the tidth oi the inner aine

● The seiond raaSe speiiiied the distanie betteen the tto aines

● The third raaSe speiiiies the tidth oi the oSter aine

ooT <!ATTLIST style:properties style:borter-line-witth CtATAtIMPLIEt<<!ATTLIST style:properties style:borter-line-witth-top CtATAtIMPLIEt<<!ATTLIST style:properties style:borter-line-witth-bottomCtATA tIMPLIEt<<!ATTLIST style:properties style:borter-line-witth-left CtATAtIMPLIEt<<!ATTLIST style:properties style:borter-line-witth-right CtATAtIMPLIEt<

Chapter 3 Text Content 227

Page 228: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

oT 14un1Tuu4un19T

Onay a iet distinit tidth tripaes are sSpportedc nsSpported tidth tripaes are roSnded to asSpported tidth tripaec

The resSat oi speiiiying a border aine tidth tithoSt speiiiying a border tidth styae oi toubleior the same border is Sndeiinedc

n T X L does not sSpport these border aine tidth propertiesc

4c00c Padding se the padding properties to speiiiy the spaiing aroSnd a paragraphc

rg int T fo:pattingfo:patting-topfo:patting-bottomfo:patting-leftfo:patting-right

RrT 9T

ooT <!ATTLIST style:properties fo:patting CtATA tIMPLIEt<<!ATTLIST style:properties fo:patting-top CtATA tIMPLIEt<<!ATTLIST style:properties fo:patting-bottom CtATA tIMPLIEt<<!ATTLIST style:properties fo:patting-left CtATA tIMPLIEt<<!ATTLIST style:properties fo:patting-right CtATA tIMPLIEt<

oT 14un1Tuu4un19T

t presents the raaSe oi these properties ian be a non-kero raaSe ii there is a border at the sameside and the border is speiiiied tithin the same item set eaementc

The raaSe ian be kero ii there is no border at the same sidec

i an item set eaement iontains a padding speiiiiiation ior one bSt not aaa ioSr sidess a kero or adeiaSat padding is assigned to these sides depending on thether or not there is a border at thatsidec

i yoS speiiiy a padding ior one or more sides tithoSt speiiiying borders tithin the same item seteaements OpenOiiiiecorg X L stitihes oii aaa borders that are not setc

4c00c42 hadot se the style:shatow property to speiiiy a shadot eiieit ior the paragraphc

rg int T style:shatowRrT 9T The raaid raaSes ior this attribSte are the same as the raaSes ior the fo:text-shatow prop-

ertyc ee eition 4c02c 0 ior iniormationc

ooT <!ATTLIST style:properties style:shatow CtATA tIMPLIEt<oT 14un1Tuu4un19T

t presents onay one shadot eiieit is sSpported at a timec The absoaSte raaSes oi the rertiiaa andhorikontaa shadot positions mSst be the same and there is no baSr radiSsc

n T X L does not sSpport this propertyc

4c00c40 2eep tith Ne.t se the style:keep-with-next property to speiiiy thether or not to keep the iSrrent paragraph and the

228 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 229: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ne.t paragraph together on a page or in a ioaSmn aiter a break is insertedc

rg int T style:keep-with-nextRrT 9T

ooT <!ATTLIST style:properties style:keep-with-next %boolean;tIMPLIEt<

n T n tarOiiiie 5c s this attribSte tas iaaaed fo:keep-with-nextc

4c00c4 Line NSmbering ee eition 4c5 ior detaiaed iniormation on aine nSmbering iormatting propertiesc

4c00c44 Te.t Stospaies PSnitSation Draps Line Break ee eitions 4c02c4 s 4c02c46 and 4c02c4m ior iniormation aboSt these propertiesc

4c00c49 Vertiiaa aignment se the style:vertical-align property to determine the rertiiaa position oi a iharaiterc n this manSaasiharaiters are aaigned aiiording to their baseaines thiih is the deiaSat ior most ESropean aangSagesc aterna-tireays yoS ian rertiiaaay aaign iharaiters as ioaaots:

● To the bottom oi the ainec

● To the top oi the ainec

● To the ienter oi the ainec

● Stomatiiaaays thiih sets the rertiiaa aaignment to sSit the te.t rotationc Te.t that is rotated 2 or 2 degrees isaaigned to the baseaines thiae te.t that is rotated m2 degrees is aaigned to the ienter oi the ainec

The ioaaoting graphii iaaSstrates the eiieit oi the rertiiaa aaignment property then it is set to baseaines topsbottoms and ienterrespeitireayc

rg int T style:vertical-alignRrT 9T

ooT <!ATTLIST style:properties style:vertical-align (auto|baseline|top|bottom|mittley "auto"<

n T This property is simiaar to the rertiiaa-aaign property in X Lc The property does not sSpport aaa oithe X L raaSess and additionaaay sSpports aStomatii rertiiaa aaignmentc

Chapter 3 Text Content 229

mgk mgk mgk mgkmgk mgk mgkmgk

Page 230: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c0 eition Formatting PropertiesYoS ian appay seition iormatting properties to seition desiriptionsc

4c0 c0 eition BaikgroSndThe baikgroSnd iormatting properties ior seitions are the same as the baikgroSnd properties ior paragraphsc ee eition 4c00c 5 and 4c00c 6 ior iniormation on baikgroSnd iormatting properties ior paragraphsc

4c0 c CoaSmnsThe <style:columns< eaement iontains the ioaSmn eaements ior a seitionc

rg int T <style:columns<RrT 9T This eaement ian iontain <style:column< eaements that speiiiy eaih ioaSmn indiridSaaay

isee eition 4c0 c4oc i these eaements are not presents aaa ioaSmns are assigned the same tidthc

The <style:columns< ian iontain a <style:column-sep< eaement that desiribes theseparator aine betteen ioaSmnsc ee eition 4c0 c9 ior iniormation on this eaementc

ooT <!ELEMENT style:columns (style:column-sep?,(style:column,style:columnty?<

The attribStes that yoS ian assoiiate tith the <style:columns< eaement are:● CoaSmn ioSnt

● CoaSmn gap

CoaSmn CoSntThe fo:columns-count attribSte speiiiies the nSmber oi ioaSmns in a seitionc

rg int T fo:columns-countRrT 9T This attribSte is essentiaac

ooT <!ATTLIST style:columns fo:column-count %number teEt|IeEt< n T This attribSte has the same name as an X L property bSt it is attaihed to a diiierent eaementc

CoaSmn Gap i the <style:columns< eaement does not iontain indiridSaa <style:column< eaementss yoS ian speiiiythe gap betteen ioaSmns Ssing the fo:column-gap attribStec

rg int T fo:column-gapRrT 9T i there are indiridSaa ioaSmn eaementss this attribSte is ignoredc

ooT <!ATTLIST style:columns fo:column-gap %length tIMPLIEt< n T This attribSte has the same name as an X L property bSt it is attaihed to a diiierent eaementc

230 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 231: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c0 c4 CoaSmn peiiiiiationThe <style:column< eaement ian be iontained in a <style:columns< eaements to speiiiy detaias oi anindiridSaa ioaSmnc

rg int T <style:column<RrT 9T This eaement is iontained in the <styles:columns< eaementc There ian be either no ioaSmn

eaements or there ian be the same nSmber oi ioaSmn eaements as speiiiied by the fo:column-count attribStec

ooT <!ELEMENT style:column EMPTY< n T n X Ls it is not possibae to speiiiy ioaSmns indiridSaaayc

The attribStes that yoS ian assoiiate tith the <style:column< eaement are:● CoaSmn tidth

● CoaSmn aeits rights Sppers and aoter spaie

CoaSmn Didth se the style:rel-witth attribSte to speiiiy the tidth oi a ioaSmncThe ioaSmn tidth is not speiiiied in a perientage a aengths bSt rather in terms oi reaatire teightsc The totaa spaiearaiaabae ior the entire tabae is distribSted among its ioaSmns aiiording to its reaatire tidthsc For e.ampaes iithree ioaSmns are assigned the reaatire tidths 0s and 4s then the iirst ioaSmn tiaa take Sp 0s6 oi the araiaabaetidths the seiond tiaa take Sp 0s4s and the aast ioaSmn tiaa take Sp 0s oi the araiaabae spaiec To aihiere theseiigSress aaa giren reaatire tidths mSst be sSmmed Sp isi. in the e.ampaeos and then eaih ioaSmn tiaa get as mSihspaie as the proportion oi its otn reaatire tidth to the sSm oi aaa reaatire tidths indiiates i4s6 0s ior the aastioaSmn in the e.ampaeoc

rg int T style:rel-witthRrT 9T The ioaSmn tidths are speiiiied as nSmbers instead oi aengthsc To get the absoaSte ioaSmn tidths

the spaie that is araiaabae ior a ioaSmned area is distribSted among the ioaSmns proportionaa tothese nSmbersc

ooT <!ATTLIST style:column style:rel-witth %number; teEt|IeEt<

CoaSmn Leits ights ppers and Loter paieFor eaih ioaSmns yoS ian speiiiy the aeits rights Sppers and aoter spaiec The right spaie oi a ioaSmn togethertith the aeit spaie oi the ne.t ioaSmn iorresponds to the gap betteen tto ioaSmnsc i a ioaSmned area iontains aseparator aine betteen ioaSmnss the spaie that is oiiSpied by the aine is iontained tithin the aeit and right spaiesand thereiore is not added to themc

Chapter 3 Text Content 231

Page 232: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T For aeit and right spaies:

fo:start-intentfo:ent-intentFor Spper and aoter spaies:

fo:space-beforefo:space-after

RrT 9T

ooT <!ATTLIST style:column fo:start-intent %length: "0cm"<<!ATTLIST style:column fo:ent-intent %length: "0cm"<<!ATTLIST style:column fo:space-before %length: "0cm"<<!ATTLIST style:column fo:space-after %length: "0cm"<

4c0 c9 CoaSmn eparatorThe <style:column-sep< eaement speiiiies the separator aine to Sse betteen ioaSmnsc

rg int T <style:column-sep<RrT 9T This eaement ian be iontained in a <style:columns< eaement to speiiiy the type oi sepa-

rator aine to Sse betteen ioaSmnsc

ooT <!ELEMENT style:column-sep EMPTY< n T X L does not sSpport ioaSmn separatorsc

The attribStes that yoS ian assoiiate tith the <style:column-sep< eaement are:● Line styae

● Line tidth

● Line height

● Vertiiaa aine aaignment

● Line ioaor

Line tyae se the style:style attribSte to speiiiy the aine styae oi the ioaSmn separator ainec

rg int T style:styleRrT 9T

ooT <!ATTLIST style:column-sep style:style (none|solit|tottet|tashet|tot-tashety "solit"<

Line Didth se the style:witth attribSte to speiiiy the tidth oi the ioaSmn separator ainec

232 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 233: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:witthRrT 9T

ooT <!ATTLIST style:column-sep style:witth %length; teEt|IeEt<

Line Oeight se the style:height to speiiiy the height oi the ioaSmn separator ainec

rg int T style:heightRrT 9T The raaSe oi this attribSte is a perientage that reaates to the height oi the ioaSmned areac

ooT <!ATTLIST style:column-sep style:height %percentage; "100%"<

Vertiiaa Line aignment se the style:vertical-align attribSte to speiiiy hot to rertiiaaay aaign a aine that is aess than 022l oiits height tithin the ioaSmned areac

rg int T style:vertical-alignRrT 9T The raaSe oi this attribSte ian be either tops mittles or bottomcooT <!ATTLIST style:column-sep style:vertical-align (top|mittle|

bottomy "top"<

Line Coaor se the style:color attribSte to speiiiy the ioaor oi the ioaSmn separator ainec

rg int T style:colorRrT 9T

ooT <!ATTLIST style:column-sep style:color %color; "t000000"<

4c0 c5 Proteit eitions marked tith the style:protect attribSte shoSad not be ihangedc The Sser interiaie shoSad prerentthe Sser irom manSaaay making any ihangesc

rg int T style:protectRrT 9T The style:protect attribSte is set by deiaSat ior ainked seitions or inde.esc emoring the

proteition makes these seitions aiiessibae to the Ssers bSt Spdating the ainks or the inde. tiaa notpreserre the ihangesc

ooT <!ATTLIST style:properties style:protect %boolean; "false"<

Chapter 3 Text Content 233

Page 234: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c04 Change Traiking in Te.t DoiSmentsThis seition desiribes hot the OpenOiiiiecorg soittare traiks ihanges to te.t iontentc

4c04c0 Traiked Changes aa traiked ihanges to te.t doiSments are stored in a aistc The aist iontains an eaement ior eaih ihange made tothe doiSmentc i the <text:tracket-changes< eaement is absents ihange traiking is not enabaedc

rg int T <text:tracket-changes< RrT 9T

ooT <!ELEMENT text:tracket-changes (text:changet-regionyt<

Traik ChangesThis attribSte determines thether or not ihange traiking is enabaedc

rg int T text:track-changesRrT 9T

ooT <!ATTLIST text:tracket-changes text:track-changes %boolean;"true"<

ProteitionThe OpenOiiiiecorg soittare sSpports ihange traiking proteitionc i proteition is enabaeds a Sser ian not enabaeor disabae the traiking oi ihangess and aaso ian not aiiept or rejeit any ihangesc Proteition is enabaed bysSppaying a proteition keyc

rg int T text:protection-keyRrT 9T

ooT <!ATTLIST text:tracket-changes text:protection-key CtATAtIMPLIEt<

4c04c Changed egionsFor erery ihanged region oi a doiSments there is one entry in the aist oi traiked ihangesc This entry iontains a aistoi aaa ihanges that tere appaied to the regionc The start and end oi this region are marked by the start and endeaements that are desiribed in the ne.t seitionc

rg int T <text:changet-region< RrT 9T Erery eaement has an Dc The eaements that mark the start and end oi a region Sse this D to iden-

tiiy the region to thiih they beaongc

ooT <!ELEMENT text:changet-region (text:insertion|text:teletion|text:format-changeyt<<ATTLIST text:changet-region text:it It teEt|IeEt<

234 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 235: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The <text:changet-region< eaement has an additionaa attribSte that modiiies the deiaSat beharior thenthe appaiiation shots deaeted redaines inaine in a doiSmentc By deiaSats the redaine is merged into the te.t so thatthe starting and ending paragraphs are iombined tith the sSrroSnding te.t to iorm merged paragraphsc To ihangethis behariors yoS ian sSrpress the aast paragraph by setting the text:merge-last-paragraph attribSte tofalsec

rg int T text:merge-last-paragraphRrT 9T

ooT <ATTLIST text:changet-region text:merge-last-paragraph %boolean; "true"<

4c04c4 egion tart and EndThere are three eaements that mark the start and the end oi a ihanged regions as ioaaots:

● Change start eaement P <text:change-start< This eaement marks the start oi a region tith iontent there te.t has been inserted or the iormat has beenihangedc

● Change end eaement P <text:change-ent<This eaement marks the end oi a region tith iontent there te.t has been inserted or the iormat has beenihangedc

● Change position eaement P <text:change<This eaement marks a position in an empty region there te.t has been deaetedc

rg int T <text:change-start<<text:change-ent<<text:change<

RrT 9T aa three eaements hare an attribSte that speiiiies the D oi the region to thiih they beaongc

ooT <!ELEMENT text:change-start EMPTY<<!ELEMENT text:change-ent EMPTY<<!ELEMENT text:change EMPTY<<!ATTLIST text:change-start text:region-it IteEF teEt|IeEt<<!ATTLIST text:change-ent text:region-it IteEF teEt|IeEt<<!ATTLIST text:chang text:region-it IteEF teEt|IeEt<

4c04c9 nsertionThe <text:insertion< eaement iontains the iniormation that is reqSired to identiiy any insertion oi iontentcThis iontent ian be a pieie oi te.t tithin a paragraphs a thoae paragraphs or a thoae tabaec The inserted iontentis part oi the te.t doiSment itseai and is marked by a ihange start and a ihange end eaementc

rg int T <text:insertion< RrT 9T

ooT <!ELEMENT text:insertion (office:change-infoy<

E4oT Ti19 Iun1inei

Chapter 3 Text Content 235

Page 236: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<text:tracket-changes< <text:changet-region text:itp”c001”< <text:insertion< <office:change-info office:chg-authorp”Michael Brauer” office:chg-tatep”04/1-/99” office:chg-timep”12:4::0:”/< </text:insertion< </text:changet-region<</text:tracket-changes<...<text:p< This is the original text<text:change-start text:region-itp”c001”/<, but this has been attet</text:change-ent text:region-itp”c001”/<.</text:p<

4c04c5 Deaetion <text:teletion< eaement iontains iontent that tas deaeted thiae ihange traiking tas enabaedc The posi-tion there the te.t tas deaeted is marked by the ihange position eaement i<text:change<oc

rg int T <text:teletion< RrT 9T i part oi a paragraph tas deaeteds the te.t that tas deaeted is iontained in this eaement as a para -

graph eaementc i the deaeted te.t is reinserted into the doiSments the paragraph is joined tith theparagraph there the deaetion took paaiec

ooT <!ELEMENT text:teletion (office:change-info,%text;y<

E4oT Tio T un1inei

<text:tracket-changes< <text:changet-region text:itp”c002”< <text:teletion< <office:change-info office:chg-authorp”Michael Brauer” office:chg-tatep”04/1-/99” office:chg-timep”12:4::0:”< <text:p< , but this has been teletet </text:p< </text:teletion< </text:changet-region<</text:tracket-changes<...<text:p< This is the original text<text:change text:region-itp”c002”/<.</text:p<

This e.ampae shots:

● Deaeted te.t but this has been teletet This te.t is iontained in the <text:p< eaement tithin the <text:teletion< eaementc

● CSrrent te.t This is the original text. This te.t is iontained in the <text:p< eaement at the end oi the e.ampaec

● Originaa te.t beiore deaetion took paaie This is the original text, but this has beenteletet.

236 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 237: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

4c04c6 Format Change iormat ihange eaement represents any ihange in iormatting attribStesc The region there the ihange took paaieis marked by a ihange start and a ihange end eaementc

rg int T <text:format-change< RrT 9T

ooT <!ELEMENT text:format-change (office:change-infoy< n T iormat ihange eaement does not iontain the aitSaa ihanges that took paaiec

4c09 Optionaa niormationYoS ian iniaSde the iniormation desiribed in this seition in an X L doiSment to improre its periormaniecOoterers it is not essentiaac

4c09c0 Sto ark Fiae ior aphabetiiaa ndiiesTo ease the ireation oi aaphabetiiaa indiiess OpenOiiiiecorg aaaots yoS to assign a so-iaaaed aSto mark iiaec Thisiiae iontains a aist oi keytordss and Spon Spdate oi an aaphabetiiaa inde. erery oiiSrrenie oi sSih a keytord inthe doiSment is marked as an aaphabetiiaa inde. entrycThe aSto mark iiae eaement is an XLinks and the L isgiren by the xlink:href attribStec

rg int T xlink:hrefRrT 9T

ooT <!ATTLIST text:alphabetical-intex-auto-mark-file xlink:hrefCtATA teEt|IeEt<<!ATTLIST text:alphabetical-intex-auto-mark-file xlink:type(simpley fixet "simple"<

Chapter 3 Text Content 237

Page 238: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion
Page 239: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9 Tabae Content

This ihapter desiribes the OpenOiiiiecorg X L representation oi tabae and spreadsheet iontentc t iontains theioaaoting seitions:

● Generaa ntrodSition to OpenOiiiiecorg Tabaes

● CaaiSaation ettings

● Change Traiking

● Tabaes

● CoaSmns

● ots

● Ceaas

● Tabae Ceaa Content Vaaidations

● Sbtabaes

● Labea anges

● Named E.pressions

● Fiaters

● Database anges

● Data Piaot Tabaes

● Consoaidation

● DDE Links

● Tabae Formatting Properties

● CoaSmn Formatting Properties

● Tabae ot Formatting Properties

● Tabae Ceaa Formatting Properties

9c0 Generaa ntrodSition to OpenOiiiiecorg TabaesOpenOiiiiecorg Driter and OpenOiiiiecorg Caai doiSments ian iniaSde tabaess bSt the internaa strSitSre oi thetabaes ireated Ssing these appaiiations is diiierentc The diiierenies betteen the tabae strSitSres in both appaiia-tions are as ioaaots:

239

CHAPTER 4

Page 240: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● The strSitSre oi OpenOiiiiecorg Caai tabaes is simiaar to the strSitSre oi Sn-nested OT L and X L tabaesc nOpenOiiiiecorg Caai X L doiSment does not iontain any 9r4T 9sisometimes iaaaed nested tabaesc

● The strSitSre oi OpenOiiiiecorg Driter tabaes is simiaar to the strSitSre oi nested OT L or X L tabaes thatdo not hare any rertiiaaay merged ieaasc n OpenOiiiiecorg Driter X L doiSment does not iontain rertiiaaaymerged ieaasc

i a doiSment that iontains either a sSbtabae or rertiiaaay merged ieaass or boths is ionrerted to X Ls the strSi-tSre oi the tabae may ihangec This does not aiieit hot the tabae appears then the doiSment is dispaayedc

There are sereraa reasons thy yoS need to preserre the internaa OpenOiiiiecorg Driter tabae strSitSre:

0c The OpenOiiiiecorg P and iormSaas aiiess tabae ieaas Ssing names that are derired irom the internaa tabaestrSitSrec

c Dithin an OpenOiiiiecorg Driter tabaes rots may hare a ii.ed height or baikgroSndc i the internaaOpenOiiiiecorg Driter tabae strSitSre is not preserreds there ioSad be rots that do not hare a iorrespondingrot in the OT L or X L representation oi the tabaec This ioSad aead to a aoss oi iniormationc

4c The internaa ioaSmn tidths oi an OpenOiiiiecorg Driter tabae do not hare to be the same as the dispaayedioaSmn tidthsc

The representation oi tabaes is based on a grid oi rots and ioaSmnsc ots take preiedenie orer ioaSmnsc Thetabae is dirided into rots and the rots are dirided into ieaasc Eaih ioaSmn iniaSdes a ioaSmn desiriptions bSt thisdesiription does not iontain any ieaasc

ots and ioaSmns appear in InAi.Inro9 and onTr1i.Inro9c These groSps speiiiy thether or not to repeat arot or ioaSmn on the ne.t pagec

9c DoiSment ProteitionYoS ian proteit the strSitSre oi a spreadsheet doiSment so that Ssers ian not inserts deaetes more or rename thetabaes in the doiSmentc YoS ian Sse an optionaa passtord to prerent Ssers irom resetting the tabae proteition iaagto aaaot editingc

rg int T table:structure-protectettable:protection-key

RrT 9T

ooT <!ATTLIST office:boty table:structure-protectet %boolean;"false"<<!ATTLIST office:boty table:protection-key CtATA tIMPLIEt<

9c4 CaaiSaation ettings preadsheet doiSments iontain settings that aSSect the calculation oS Sormulast Sor exam le the null aate or itera-tion settings. These settings must be savea in the aocument in the <table:calculation-settings<element.

rg int T <table:calculation-settings<RrT 9T

ooT <!ELEMENT table:calculation-settings (table:null-tate?, table:iteration?y<

240 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 241: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The attribStes that yoS ian assoiiate tith the <table:calculation-settings< eaement are: ● Case sensitire

● Preiision as shotn

● earih iriteria mSst appay to thoae ieaa

● Automatic Sina labels

● Null year

Case ensitireThis attribSte speiiiies thether or not to distingSish betteen Spper and aoter iase in te.t then iomparing ieaaiontents ior iaaiSaationsc

rg int T table:case-sensitiveRrT 9T

ooT <!ATTLIST table:calculation-settings table:case-sensitive %boolean; "true"<

Preiision as hotnThis attribSte speiiiies thether to periorm a iaaiSaation Ssing the roSnded raaSes dispaayed in the spreadsheet orSsing aaa oi the digits in a nSmberc

rg int T table:precision-as-shownRrT 9T i the raaSe oi this attribSte is trues OpenOiiiiecorg Caai periorms the iaaiSaation Ssing the

roSnded raaSes dispaayed in the spreadsheetc i the raaSe oi this attribSte is falses OpenOiiiiecorg Caai periorms the iaaiSaation Ssing aaa oi the digits in the nSmber bSt dispaays a roSndednSmber as the resSatc

ooT <!ATTLIST table:calculation-settings table:precision-as-shown%boolean; "false"<

earih Criteria Sst ppay to Dhoae CeaaThis attribSte speiiiies thether or not the speiiiied searih iriterias aiiording to the regSaar e.pression Sseds mSstappay to the entire ieaa iontentsc

rg int T table:search-criteria-must-apply-to-whole-cellRrT 9T

ooT <!ATTLIST table:calculation-settings table:search-criteria-must-apply-to-whole-cell %boolean; "true"<

Stomatii Find LabeasThis attribSte speiiiies thether or not to aStomatiiaaay iind the aabeas oi rots and ioaSmnsc

Chapter 4 Table Content 241

Page 242: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:automatic-fint-labelsRrT 9T

ooT <!ATTLIST table:calculation-settings table:automatic-fint-labels %boolean; "true"<

NSaa YearThis attribSte speiiiies the start year ior year raaSes that iontain onay tto digitsc

rg int T table:null-yearRrT 9T

ooT <!ATTLIST table:calculation-settings table:null-year %positiveInteger; "1930"<

9c4c0 NSaa DateThis eaement speiiiies the nSaa datec

rg int T <table:null-tate<RrT 9T

ooT <!ELEMENT table:null-tate EMPTY<oT 14un1Tuu4un1T

n tar Oiiiies there are onay three possibae nSaa dates as ioaaots; 12/30/1-99s 01/01/1900sand 01/01/190:c

The attribStes that yoS ian assoiiate tith the atable:null-tate< eaement are: ● VaaSe Type and Date VaaSe

VaaSe Type and Date VaaSe

rg int T table:value-typetable:tate-value

RrT 9T

ooT <!ATTLIST table:null-tate table:value-type %valueType; tFIXEt"tate" table:tate-value %tate; "1-99-12-30"<

9c4c terationThe <table:iteration< eaement enabaes iormSaas tith iteratire reierenies to be iaaiSaated aiter a speiiiiinSmber oi iterationsc FormSaas tith iteratire reierenies are repeated Sntia the probaem is soaredc i this eaement isnot enabaeds a iormSaa tith an iteratire reierenie in a tabae iaSses an error messagec

242 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 243: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:iteration<RrT 9T

ooT <!ELEMENT table:iteration EMPTY<

The attribStes that yoS ian assoiiate tith the atable:iteration< eaement are: ● tatSs

● teps

● a.imSm diiierenie

tatSsThis attribSte speiiiies thether or not the iteration is enabaedc

rg int T table:statusRrT 9T

ooT <!ATTLIST table:iteration table:status (enable|tisabley"tisable"<

tepsThis attribSte speiiiies the ma.imSm nSmber oi iterations aaaotedc

rg int T table:stepsRrT 9T

ooT <!ATTLIST table:iteration table:steps %positiveInteger; "100"<

a.imSm DiiierenieThis attribSte speiiiies the ma.imSm diiierenie aaaoted betteen tto iaaiSaation resSatsc The iteration is stoppedii the resSat is aess than the raaSe oi this attribStec

rg int T table:maximum-tifferenceRrT 9T

ooT <!ATTLIST table:iteration table:maximum-tifference %float;"0.001"<

9c9 Change Traiking in preadsheets n OpenOiiiiecorg Driter doiSmentss yoS ian not traik ihanges to tabaesc n OpenOiiiiecorg Caai doiSmentssyoS ian traik ihanges to tabaesc This seition desiribes hot OpenOiiiiecorg Caai traiks ihanges to tabae iontentc

Chapter 4 Table Content 243

Page 244: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c9c0 Traiked ChangesOpenOiiiiecorg Caai stores aaa oi the ihanges to a spreadsheet doiSment in a aistc The aist iontains an eaement ioreaih ihange made to the doiSmentc To traik the ihanges to a spreadsheet doiSments the <table:tracket-changes< eaement mSst be presentc

rg int T <table:tracket-changes< RrT 9T

ooT <!ELEMENT table:tracket-changes (table:cell-content-change |table:insertion | table:teletion | table:movement | table:reiectiony<

Traik ChangesThis attribSte speiiiies thether or not the ihange traiking is enabaedc

rg int T table:track-changesRrT 9T

ooT <!ATTLIST table:tracket-changes table:track-changes %boolean;"true"<

ProteitionThis attribSte speiiiies that the ihange traiking data is proteiteds thiih prerents Ssers irom aiiepting or rejeitingihanges or disabaing the ihange traikingc i the ihange traiking is proteiteds a Sser ian stiaa make ihanges to theiontent oi the doiSmentc The proteition is assigned by the appaiiationc

rg int T table:protection-keyRrT 9T

ooT <!ATTLIST table:tracket-changes table:protection-key CtATAtIMPLIEt<

9c9c DependeniesThe <table:tepentences< eaement iontains the iniormation thiih ihange to this ihange dependsc Ereryeaement oi the traiked-ihanges ian iontain a <table:tepentences< eaementc

rg int T <table:tepentences< RrT 9T

ooT <!ELEMENT table:tepentences (table:tepentenceyt<

9c9c4 DependenieThe <table:tepentence< eaement iontains the iniormation oi one ihange aition thiih the parent eaementdepends toc

244 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 245: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:tepentence< RrT 9T

ooT <!ELEMENT table:tepentence EMPTY<

The attribStes that yoS ian assoiiate tith this eaement are:

● D

9c9c9 DeaetionsThe <table:teletions< eaement iontains aaa deaetions thiih are eiieited tith this ihangec

rg int T <table:teletions< RrT 9T

ooT <!ELEMENT table:teletions (table:cell-content-teletion |table:change-teletionyt<

9c9c5 Ceaa Content DeaetionThis eaement iontains the iontent oi a deaeted ieaac

rg int T <table:cell-content-teletion< RrT 9T

ooT <!ELEMENT table:cell-content-teletion (table:cell-attress?,table:change-track-table-cell?y<

The attribStes that yoS ian assoiiate tith this eaement are:

● D

9c9c6 Change DeaetionThis eaement iontains the iniormation oi deaeted ihangesc

rg int T <table:change-teletion< RrT 9T

ooT <!ELEMENT table:change-teletion EMPTY<

The attribStes that yoS ian assoiiate tith this eaement are:

● D

Chapter 4 Table Content 245

Page 246: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c9cm nsertionThe <table:insertion< eaement iontains the iniormation that is reqSired to identiiy any insertion oiiontentc This iontent ian be one or more rotss one or more ioaSmnss or a tabaec

rg int T <table:insertion< RrT 9T

ooT <!ELEMENT table:insertion (office:change-info, table:tepentences?, table:teletions?y<

The attribStes that yoS ian assoiiate tith this eaement are:

● D

● iieptanie tate

● ejeiting Change D

● Type

● Position

● CoSnt

● Tabae

TypeThis attribSte speiiiies the type oi the insertionc

rg int T table:typeRrT 9T

ooT <!ATTLIST table:insertion table:type (row | column | tableyteEt|IeEt<

PositionThis attribSte speiiiies the position there the insertion tas made in the tabaec

rg int T Table:positionRrT 9T

ooT <!ATTLIST table:insertion table:position %integer; teEt|IeEt<

CoSntThis attribSte speiiiies the ioSnt oi inserted rots | ioaSmns | tabaesc

rg int T table:countRrT 9T

ooT <!ATTLIST table:insertion table:count %positiveInteger; "1"<

246 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 247: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

TabaeThis attribSte speiiiies the tabae there the insertion isc This attribSte onay e.istss ii it is a ioaSmn or rot insertionc

rg int T table:tableRrT 9T

ooT <!ATTLIST table:insertion table:table %Integer; tIMPLIEt<

E4oT Ti19 Iun1inei iu1i4io TT

<table:tracket-changes< <table:insertion table:itp"c001" table:acceptance-statep"penting" table:typep"column" table:positionp"4"< <office:change-info office:chg-authorp”Sascha Ballach” office:chg-tatep”04/1-/99” office:chg-timep”12:4::0:”/< </table:insertion<</table:tracket-changes<

9c9cr Deaetion <table:teletion< eaement iontains iontent that tas deaeted thiae ihange traiking tas enabaedc

rg int T <table:teletion< RrT 9T i the iontent oi a ieaa tas deaeteds the deaeted ieaa is iontained in the <table:

tepentences< eaementc i the ieaa iontent tas giren thiae ihange traiking tas enabaed theprerioSs ieaa is iontained in the <table:tepentence< eaementc i the iontent tas girenthiae ihange traiking tas disabaed the prerioSs ieaa is iontained in the <table:cell-content-teletion< eaementc

ooT <!ELEMENT table:teletion (office:change-info, table:tepentences?, table:teletions?, table:cut-offs?y <

The attribStes that yoS ian assoiiate tith this eaement are:

● D

● iieptanie tate

● ejeiting Change D

● Type

● Position

● Tabae

● Sati Deaetion panned

TypeThis attribSte speiiiies the type oi the insertionc

Chapter 4 Table Content 247

Page 248: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:typeRrT 9T

ooT <!ATTLIST table:teletion table:type (row | column | tableyteEt|IeEt<

PositionThis attribSte speiiiies the position there the deaetion tas made in the tabaec

rg int T table:positionRrT 9T

ooT <!ATTLIST table:teletion table:position %integer; teEt|IeEt<

TabaeThis attribSte speiiiies the tabae there the deaetion isc This attribSte onay e.istss ii it is a ioaSmn or rot deaetionc

rg int T table:tableRrT 9T

ooT <!ATTLIST table:teletion table:table %Integer; tIMPLIEt<

Sati Deaetion pannedThis attribSte speiiiies the ioSnt oi deaetions thiih tere done tith this deaetionc Onay the iirst deaetion iontainsthis attribStec

rg int T table:base-change-positionRrT 9T

ooT <!ATTLIST table:teletion table:multi-teletion-spannet %integer; tIMPLIEt<

9c9c CSt Oiis <table:cut-offs< eaement iontains the iniormation aboSt iSt oiisc This means ecgc i deaete a ioaSmn ina range thiih tas mored thiae ihange traiking tas enabae this hare to storec This eaement iontains sSih inior-mationsc

rg int T <table:cut-offs< RrT 9T

ooT <!ELEMENT table:cut-offs (table:insertion-cut-off | table:movement-cut-offt | (table:insertion-cut-off, table:movement-cut-offtyy <

248 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 249: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c9c02 nsertion CSt OiiThis eaement iontains the iniormation there a insertion tas deaeted and thiihc

rg int T <table:insertion-cut-off< RrT 9T

ooT <!ELEMENT table:insertion-cut-off EMPTY <

The attribStes that yoS ian assoiiate tith this eaement are:

● D

● position

PositionThis attribSte speiiiies the position there the insertion tas deaetedc

rg int T table:positionRrT 9T

ooT <!ATTLIST table:insertion-cut-off table:position %integer;teEt|IeEt<

9c9c00 orement CSt OiiThis eaement iontains the iniormation there a morement tas deaeted and thiihc

rg int T <table:movement-cut-off< RrT 9T

ooT <!ELEMENT table:movement-cut-off EMPTY <

The attribStes that yoS ian assoiiate tith this eaement are:

● D

● start positions end positions position

tart Positions End Positions PositionThis attribSte speiiiies the position there in the morement tas deaetedc

rg int T table:start-position; table:ent-position; table:positionRrT 9T

ooT <!ATTLIST table:movement-cut-off table:start-position %integer; tIMPLIEt<<!ATTLIST table:movement-cut-off table:ent-position %integer;tIMPLIEt<<!ATTLIST table:movement-cut-off table:position %integer;tIMPLIEt<

Chapter 4 Table Content 249

Page 250: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

E4oT Tio T un1ineii4ionTr1iAruoritni1nion14u1ion1 1

<table:tracket-changes< <table:teletion table:itp”c002” table:acceptance-statep"penting" table:typep"column" table:positionp"9"< <office:change-info office:chg-authorp”Sascha Ballach” office:chg-tatep”04/1-/99” office:chg-timep”12:4::0:”< </table:teletion<</table:tracket-changes<

9c9c0 orement <table:movement< eaement iontains the iniormation that is reqSired to identiiy any morement oi iontentcThis iontent ian be a ieaa iontent or a ieaa range iontentc

rg int T <table:movement< RrT 9T

ooT <!ELEMENT table:movement (table:source-range-attress, table:target-range-attress, office:change-info, table:tepentences?,table:teletions?y<

The attribStes that yoS ian assoiiate tith this eaement are:

● D

● iieptanie tate

● ejeiting Change D

9c9c04 Target ange ddresss oSrie ange ddressThese eaements iontains a ieaa address or a ieaa range addressc

rg int T table:target-range-attresstable:source-range-attress

RrT 9T

ooT <!ELEMENT table:target-range-attress EMPTY<<!ELEMENT table:source-range-attress EMPTY<

The attribStes that yoS ian assoiiate tith these eaements are:

● CoaSmns ots and Tabae

● tart ioaSmns End ioaSmns tart rots End rots tart tabaes and End tabae

CoaSmns ots and Tabae i the range address is a ieaa address these three attribStes are neiessaryc

250 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 251: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:columntable:rowtable:table

RrT 9T

ooT <!ATTLIST table:target-range-attress table:column %Integer;tIMPLIEt<<!ATTLIST table:target-range-attress table:row %Integer;tIMPLIEt<<!ATTLIST table:target-range-attress table:table %Integer;tIMPLIEt<<!ATTLIST table:source-range-attress table:column %Integer;tIMPLIEt<<!ATTLIST table:source-range-attress table:row %Integer;tIMPLIEt<<!ATTLIST table:source-range-attress table:table %Integer;tIMPLIEt<

tart CoaSmns End CoaSmns tart ots End ots tart Tabaes and End Tabae i the range address is a range address instead oi a ieaa addresss these attribStes are neiessaryc

rg int T table:start-columntable:ent-columntable:start-rowtable:ent-rowtable:start-tabletable:ent-table

RrT 9T

ooT <!ATTLIST table:target-range-attress table:start-column %Integer; tIMPLIEt<<!ATTLIST table:target-range-attress table:start-row %Integer;tIMPLIEt<<!ATTLIST table:target-range-attress table:start-table %Integer; tIMPLIEt<<!ATTLIST table:target-range-attress table:ent-column %Integer; tIMPLIEt<<!ATTLIST table:target-range-attress table:ent-row %Integer;tIMPLIEt<<!ATTLIST table:target-range-attress table:ent-table %Integer;tIMPLIEt<<!ATTLIST table:source-range-attress table:start-column %Integer; tIMPLIEt<<!ATTLIST table:source-range-attress table:start-row %Integer;tIMPLIEt<<!ATTLIST table:source-range-attress table:start-table %Integer; tIMPLIEt<<!ATTLIST table:source-range-attress table:ent-column %Integer; tIMPLIEt<<!ATTLIST table:source-range-attress table:ent-row %Integer;tIMPLIEt<<!ATTLIST table:source-range-attress table:ent-table %Integer;tIMPLIEt<

Chapter 4 Table Content 251

Page 252: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

E4oT Tignvu1.i4io TT

<table:tracket-changes< <table:changet-region table:itp”c003”< <table:moving< <office:change-info office:chg-authorp”Sascha Ballach” office:chg-tatep”04/1-/99” office:chg-timep”12:4::0:”/< </table:moving< </table:changet-region<</table:tracket-changes<...<table:table-cell ...< <table:change-start table:region-itp”c003”/< <text:p< This is the original text, but this has been attet. </text:p< <table:change-ent table:region-itp”c003”/<</table:table-cell<...<table:table-cell ...< <table:change table:region-itp”c003”/<</table:table-cell<

9c9c09 Change Traik Ceaa <table:change-track-table-cell< eaement iontains aaa iniormation oi a <table:table-cell<thiih are needed in the ihange traikc t iontains some additionaa iniormations thiih are onay in the ihange traikneededc

rg int T <table:change-track-table-cell< RrT 9T

ooT <!ELEMENT table:change-track-table-cell (text:pay<

Ceaa ddress i the ieaa is a iormSaa ieaa a ieaa address attribSte is neiessaryc

rg int T table:cell-attressRrT 9T This attribSte is onay eraaSated ior ieaas thiih are in the traiked ihanges and a iormSaa ieaac

ooT <!ATTLIST table:change-track-table-cell table:cell-attress %cell-attress; tIMPLIEt<

atri. Corered i the ieaa is a matri. ieaa and not the base oi the matri. this attribSte is neiessaryc

rg int T table:matrix-coveretRrT 9T This attribSte is onay eraaSated ior ieaas thiih are in the traiked ihanges and a iormSaa ieaac

ooT <!ATTLIST table:change-track-table-cell table:matrix-coveret (true| falsey “false”<

252 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 253: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c9c05 Ceaa Content Change <table:cell-content-change< eaement iontains the iniormation that is reqSired to identiiy anyihange oi the ieaa iontentc

rg int T <table:cell-content-change< RrT 9T

ooT <!ELEMENT table:cell-content-change (table:cell-attress,office:change-info, table:tepentences?, table:teletions?,table:previousy<

The attribStes that yoS ian assoiiate tith this eaement are:

● D

● iieptanie tate

● ejeiting Change D

9c9c06 Ceaa ddressThis eaement iontains a ieaa addressc There is a attribSte speiiiied thiih iontains the same iniormationc BSt need this eaement beiaSse in a ihange traik the raaSes ian be negatire or greater than the tabae rangec

rg int T table:cell-attressRrT 9T

ooT <!ELEMENT table:cell-attress EMPTY<

The attribStes that yoS ian assoiiate tith this eaement are:

● CoaSmns ots and Tabae

CoaSmns ots and Tabae

rg int T table:column, table:row, table:tableRrT 9T

ooT <!ATTLIST table:cell-attress table:column %Integer; tIMPLIEt<<!ATTLIST table:cell-attress table:row %Integer; tIMPLIEt<<!ATTLIST table:cell-attress table:table %Integer; tIMPLIEt<

9c9c0m PrerioSsThis eaement iontains the prerioSs ieaa thiih is orertritten tith this ihangec

rg int T table:previousRrT 9T

ooT <!ELEMENT table:previous table:change-track-table-cell<

Chapter 4 Table Content 253

Page 254: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The attribStes that yoS ian assoiiate tith this eaement are:

● D

9c9c0r ejeition <table:cell-content-change< eaement iontains the iniormation that is reqSired to identiiy anyihange oi the ieaa iontentc

rg int T <table:cell-content-change< RrT 9T

ooT <!ELEMENT table:reiection (office:change-info, table:tepentences?, table:teletions?y<

The attribStes that yoS ian assoiiate tith this eaement are:

● D

● iieptanie tate

● ejeiting Change D

9c9c0 Common Change Traiking ttribStesYoS ian Sse the attribStes desiribed in this seition tith the ioaaoting ihange traiking eaements:

DThis attribSte speiiiies the D that OpenOiiiiecorg Caai assigns to the ihange aitionc

rg int T table:itRrT 9T The raaSe oi this attribSte mSst be SniqSec

ooT <!ATTLIST table:reiection table:it CtATA teEt|IeEt<

iieptanie tateThis attribSte speiiiies thether the ihange is aiiepteds rejeiteds or pendingc

rg int T table:acceptance-stateRrT 9T

ooT <!ATTLIST table:reiection table:acceptance-state (acceptet |reiectet | penting y "penting"<

ejeiting Change D i a ihange is rejeiteds this attribSte speiiiies the D that OpenOiiiiecorg Caai assigns to the rejeited ihangeaitionc

254 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 255: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:reiecting-change-itRrT 9T

ooT <!ATTLIST table:reiection table:reiecting-change-it %positiveInteger; tIMPLIEt<

9c5 Tabaes

9c5c0 TabaeThe tabae eaement desiribes a tabaec

rg int T <table:table<RrT 9T The iontent oi a tabae eaement is one or more groSps oi ioaSmns and rotsc

ooT <!ENTITY % table-columns "( table:table-columns | ( table:table-column | table:table-column-group yt y"<<!ENTITY % table-heater-columns "table:table—heater-columns"<<!ENTITY % table-rows "( table:table-rows | ( table:table-rowt |table:table-row-group y y"<<!ENTITY % table-heater-rows "table:table-heater-rows"< <!ENTITY % table-column-groups "( (%table-heater-columns;?, %table-columns;y |(%table-columns;, %table-heater-columns;, %table-columns;?y y"< <!ENTITY % table-row-groups "( (%table-heater-rows;?, %table-rows;y | (%table-rows;, %table-heater-rows;, %table-rows;?y y"<

<!ELEMENT table:table (table:view-settings, table:table-source?,table:scenario?, table:shapes?, %table-column-groups;,%table-row-groups;y<

Tabae Name The table:name attribSte speiiiies the name oi a tabaec

rg int T table:nameRrT 9T

ooT <!ATTLIST table:table table:name CtATA teEt|IeEt<

Tabae tyae The table:style-name attribSte desiribes the iormatting properties oi a tabaes sSih as tidth and baik-groSnd ioaorc The tabae styae ian be either an aStomatii or iommon styaec

Chapter 4 Table Content 255

Page 256: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:style-nameRrT 9T YoS deiine a tabae styae Ssing a <style:style< eaement and a iamiay attribSte raaSe oi

tablec The <table:table< eaement iniaSdes a table:style-name attribSte that reier-enies the styae by the style:name attribStec

ooT <!ATTLIST table:table table:style-name %style-name teEt|IeEt<

E4oT Ti4T ihyT

<style:style style:namep"Table 1" style:familyp"table"< <style:properties fo:witthp"12cm" fo:backgrount-colorp"light-grey"/<</style:style<

<table:table table:namep"Table 1" table:style-namep"Table 1"< ...</table:table<

DDE Conneition rnfoemation to be supplied.

rg int T office:tte-sourceoffice:tte-commantoffice:tte-mote

RrT 9T

ooT <!ATTLIST table:table office:tte-source CtATA tIMPLIEt<<!ATTLIST table:table office:tte-commant CtATA tIMPLIEt<<!ATTLIST table:table office:tte-mote CtATA tIMPLIEt<

ProteitedThe table:protectet attribSte speiiiies thether or not a tabae is proteited irom editingc i the tabae isproteiteds the table:protection-key attribSte ian speiiiy a passtord to prerent a Sser irom resetting theproteition iaag to enabae editingc i a tabae is proteiteds aaa oi the tabae eaements and the ieaa eaements tith astyle:cell-protect attribSte set to true are proteitedc

rg int T table:protectet and table:protection-keyRrT 9T These attribStes ian be attaihed to the <table:table< eaementcooT <!ATTLIST table:table table:protectet %boolean; "false"<

<!ATTLIST table:table table:protection-key CtATA tIMPLIEt<

Print angesThe table:print-ranges attribSte speiiiies the print ranges oi the tabaec t iontains a aist oi ieaa addressesor ieaa range addressesc

rg int T table:print-rangesRrT 9T This attribSte ian be assoiiated tith the <table:table< eaementcooT <!ATTLIST table:table table:print-ranges %cell-range-attress-

list; tIMPLIEt<

256 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 257: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c5c Tabae oSrie i a tabae is ainked to an originaa tabaes the originaa tabae is represented by a tabae soSrie eaementc

rg int T <table:table-source<RrT 9T

ooT <!ELEMENT table:table-source EMPTY<

The attribStes that yoS ian assoiiate tith the atable:table-source< eaement are: ● ode

● L

● Fiater name

● Tabae name

● Fiater options

● eiresh deaay

odeThe table:mote attribSte speiiiies hot data shoSad be iopied betteen the ainked tabae and the originaa tabaec

rg int T table:moteRrT 9T This attribSte is mandatoryc

ooT <!ATTLIST table:table-source table:mote ( "copy-all" | "copy-results-only" y "copy-all"<

LThe XLink attribStes speiiiy the L oi the doiSment iontaining the originaa tabaec

rg int T xlink:types xlink:actuates and xlink:hrefRrT 9T

ooT <!ATTLIST table:table-source xlink:type (simpley tFIXEt"simple"<<!ATTLIST table:table-source xlink:actuate (oneequesty"oneequest"<<!ATTLIST table:table-source xlink:href %url; teEt|IeEt<

Fiater NameThe table:filter-name attribSte speiiiies the iiae type oi the doiSment iontaining the originaa tabaec

rg int T table:filter-nameRrT 9T The raaSe oi this attribSte is appaiiation-speiiiiic

ooT <!ATTLIST table:table-source table:filter-name CtATA tIMPLIEt<

Chapter 4 Table Content 257

Page 258: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Fiater OptionsThe table:filter-options attribSte speiiiies optionaa settings aboSt the iiae typec

rg int T table:filter-optionsRrT 9T The raaSe oi this attribSte is appaiiation-speiiiiic

ooT <!ATTLIST table:table-source table:filter-options CtATAtIMPLIEt<

Tabae NameThe table:table-name attribSte speiiiies the name oi the tabae in the originaa tabae doiSmentc i the tabaename is not speiiiieds the appaiiation Sses the iirst tabae in the doiSmentc

rg int T table:table-nameRrT 9T

ooT <!ATTLIST table:table-source table:table-name CtATA tIMPLIEt<

eiresh DeaayThe table:refresh-telay attribSte speiiiies the time deaay betteen reiresh aitionsc

rg int T table:refresh-telayRrT 9T This attribSte ian be assoiiated tith the <table:tatabase-range< eaementcooT <!ATTLIST table:table-source table:refresh-telay %

timeturation; tIMPLIEt <

9c5c4 ienario TabaeThe <table:scenario< eaement represents a sienario tabaec The name oi the tabae and the name oi thesienario are the samec The sienario is dispaayed in the regSaar tabae preieeding the sienario tabaec Onay onesienario tabae ian be aitire at one timec

rg int T <table:scenario<RrT 9T

ooT <!ELEMENT table:scenario EMPTY<

The attribStes that yoS ian assoiiate tith this eaement are:

● Dispaay Border

● Border Coaor

● Copy Baik

● Copy tyaes

● Copy FormSaas

● s itire

258 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 259: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● ienario anges

● Comment

Dispaay BorderThe table:tisplay-borter attribSte speiiiies thether or not to dispaay the border oi the sienarioc

rg int T table:tisplay-borterRrT 9T

ooT <!ATTLIST table:scenario table:tisplay-borter %boolean;"true"<

Border CoaorThe table:borter-color attribSte speiiiies the ioaor oi the borderc

rg int T table:borter-colorRrT 9T

ooT <!ATTLIST table:scenario table:borter-color %color; tIMPLIEt<

Copy BaikThe table:copy-back attribSte speiiiies thether or not data is iopied baik into the aitire sienario tabae iianother sienario is aitiratedc

rg int T table:copy-backRrT 9T The raaSe oi this attribSte ian be true or falsec i the raaSe is trues yoS ian direitay edit

the data ior eaih sienario in the sienario tabaec

ooT <!ATTLIST table:scenario table:copy-back %boolean; "true"<

Copy tyaesThe table:copy-styles attribSte speiiiies thether or not to iopy the ieaa styaes tith the datac

rg int T table:copy-stylesRrT 9T The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST table:scenario table:copy-styles %boolean; "true"<

Copy FormSaasThe table:copy-formulas attribSte speiiiies thether or not to iopy the iormSaasc

Chapter 4 Table Content 259

Page 260: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:copy-formulasRrT 9T The raaSe oi this attribSte ian be true or falsec i the raaSe is trues the iormSaas are iopiedc

i the raaSe is falses onay the raaSes resSating irom the iormSaas are iopiedcooT <!ATTLIST table:scenario table:copy-formulas %boolean; "true"<

s itireThe table:is-active attribSte speiiiies thether or not the iSrrent sienario is aitirec

rg int T table:is-activeRrT 9T

ooT <!ATTLIST table:scenario table:is-active %boolean; teEt|IeEt<

ienario angesThe table:scenario-ranges attribSte speiiiies the range oi this sienarioc

rg int T table:scenario-rangesRrT 9T The raaSe oi this attribSte is a aist oi ieaa range addressesc

ooT <!ATTLIST table:scenario table:scenario-ranges %cell-range-attress-list; teEt|IeEt<

CommentThe table:comment attribSte iontains a iomment aboSt the sienarioc

rg int T table:commentRrT 9T

ooT <!ATTLIST table:scenario table:comment CtATA tIMPLIEt<

9c5c9 hapesThis eaement iontains aaa shapes tith an anihor on a tabaec This is a iontainer eaement and does not hare anyassoiiated attribStesc

rg int T <table:shapes<RrT 9T

ooT <!ELEMENT table:shapes ANY<

260 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 261: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c6 CoaSmns

9c6c0 GroSpingCoaSmns ian be groSpedc Erery groSp ian iontain a net groSps ioaSmnss and ioaSmn headersc Erery groSp ianbe risibae or hiddenc

The <table:table-column-heaters< shoSad onay be separated by atable:table-column-group< eaementss so that ii the table:table-column-group does not e.ist there is onay one <table:table-heater-columns< eaementc

rg int T <table:table-column-group<RrT 9T There ian onay be one <table:table-heater-columns< eaement in this eaementcooT <!ELEMENT table:table-column-group “( table:table-heater-columns |

table:table-column | table:table-column-groupyt” <

The attribStes that yoS ian assoiiate tith this eaement are:

● Dispaay

DispaayThis attribSte speiiiies thether or not the groSp is risibaec

rg int T table:tisplayRrT 9T

ooT <!ATTLIST table:table-column-group table:tisplay %boolean; “true”<

9c6c CoaSmn GroSps There are tto types oi ioaSmn groSpss as ioaaots:

● H 4t Ii.Inro9

header groSp is a groSp oi ioaSmns that repeat on eaih page ii the tabae e.tends orer sereraa pagesc

● Bntyi.Inro9

body groSp is a groSp oi ioaSmns that do not repeat aiross pagesc Typiiaaays a body groSp iontains theiontent oi the tabae that is not part oi the headerc

Chapter 4 Table Content 261

Page 262: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:table-heater-columns<<table:table-columns<

RrT 9T The tabae header ioaSmn eaement represents a header ioaSmnc The tabae ioaSmn eaement repre-sents a body ioaSmnc

YoS ian omit the <table:table-columns< eaements in the same tay that yoS ian omitthe<TBOtY< tag in OT Lc tabae mSst iontain at aeast one ioaSmn groSps bSt onay one headergroSpc body groSp mSst not ioaaot another body groSpc

ooT <!ELEMENT table:table-heater-columns ( table:table-column | table:table-column-group yt<<!ELEMENT table:table-columns ( table:table-column | table:table-column-group yt<

n 9T ppaiiations may sSpport ioaSmn header groSpss bSt this is not essentiaac i a Sser agent does notsSpport header groSpss it mSst proiess header groSps as body groSpsc

There are no ioaSmn groSps in X Lc

9c6c4 CoaSmn Desiription Erery ioaSmn in a tabae has a ioaSmn desiription eaementc i tto or more ioaSmns are adjoining and hare thesame propertiess yoS ian desiribe them Ssing a singae <table:table-column< eaementc

rg int T <table:table-column<RrT 9T

ooT <!ELEMENT table:table-column EMPTY< n 9T The <table:table-column< eaement is simiaar to the X L <fo:table-column<

eaementc

NSmber oi CoaSmns epeatedThe table:number-columns-repeatet attribSte speiiiies the nSmber oi ioaSmns to thiih a ioaSmndesiription appaiesc

rg int T table:number-columns-repeatetRrT 9T i tto or more ioaSmns are adjoinings and hare the same propertiess yoS ian Sse a singae

<table:table-column< eaement to desiribe themc n this iases yoS Sse a table:number-columns-repeatet attribSte to speiiiy thenSmber oi sSiiessire ioaSmns to thiih the desiription appaiesc YoS speiiiy this attribSte tiththe <table:table-column< eaementc

ooT <!ATTLIST table:table-column table:number-columns-repeatet %number; "1"<

CoaSmn tyae tabae styae stores the iormatting properties oi a tabae ioaSmns sSih as tidth and baikgroSnd ioaorc The tabaestyae ian be either an aStomatii or a iommon styaec YoS speiiiy the styae oi a ioaSmn Ssing a tabae styaec

262 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 263: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:style-nameRrT 9T To deiine the styae oi the ioaSmns yoS Sse a <style:style< eaement and a iamiay attribSte

raaSe oi tablec The <table:table-column< eaement iniaSdes a table:style-name attribSte that reierenies the styae by the style:name attribStec

ooT <!ATTLIST table:style-name %style-name; teEt|IeEt;<

VisibiaityThe table:visibility attribSte speiiiies thether the ioaSmn is risibaes iiatereds or ioaaapsedc

rg int T table:visibilityRrT 9T This attribSte is assoiiated tith the <table:table-column< eaementc

i the raaSe oi this attribSte is filters the ioaSmn is aaso ioaaapsedcooT <!ATTLIST table:table-column table:visibility ( visible |

collapse | filter y "visible"<

DeiaSat Ceaa tyaeThe table:tefault-cell-style-name attribSte speiiiies the deiaSat ieaa styaec Ceaas tithoSt a styae Ssethis styae then there is no deiaSat ieaa styae speiiiied ior the iSrrent ioaSmnc

rg int T table:tefault-cell-style-nameRrT 9T This attribSte is assoiiated tith the <table:table-column< eaementcooT <!ATTLIST table:table-column table:tefault-cell-style-name %

style-name; tIMPLIEt<

E4oT Ti4T iAurirI ionTr19

This e.ampae shots the OpenOiiiiecorg X L iode ior a tabae tith three ioaSmnsc

<style:style style:namep"Table 1" style:familyp"table"< <style:properties fo:witthp"12cm" fo:backgrount-colorp"light-grey"/<</style:style<<style:style style:namep"Col1" style:familyp"table-column"< <style:properties fo:witthp"2cm"/<</style:style<<style:style style:namep"Col2" style:familyp"table-column"< <style:properties fo:witthp":cm"/<</style:style<<style:style style:namep"Col3" style:familyp"table-column"< <style:properties fo:witthp":cm"/<</style:style<

<table:table table:namep"Table 1" table:style-namep"Table 1"< <table:table-columns< <table:table-column table:style-namep"Col1"/< <table:table-column table:style-namep"Col2"/< <table:table-column table:style-namep"Col3"/< </table:table-columns< ...</table:table<

Chapter 4 Table Content 263

Page 264: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9cm ots

9cmc0 GroSping ots ian be groSpedc Erery groSp ian iontain a net groSps rotss and rot-headersc Erery groSp ian be risibaeor hiddenc

The table:table-row-heaters eaement ian onay be separated by table:table-row-groupeaementss so that ii table:table-row-group does not e.ist there is onay one table:table-heater-rows eaementc

rg int T <table:table-row-group<RrT 9T There ian onay be one table:table-heater-rows eaement in this eaementcooT <!ELEMENT table:table-row-group “( table:table-heater-rows |

table:table-row | table:table-row-groupyt” < n 9T

The attribStes that yoS ian assoiiate tith this eaement are:

● Dispaay

DispaayThis attribSte speiiiies thether or not the groSp is risibaec

rg int T table:tisplayRrT 9T

ooT <!ATTLIST table:table-row-group table:tisplay %boolean; “true”<

9cmc ot GroSps There are tto types oi rot groSpss as ioaaots:

● H 4t Ii.Inro

header groSp is a groSp oi rots that repeat on eaih page ii the tabae e.tends orer sereraa pagesc

● Bntyi.Inro

body groSp is a groSp oi rots that do not repeat aiross pagesc Typiiaaays a body groSp iontains the iontentoi the tabae that is not part oi the headerc

264 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 265: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:table-heater-rows<<table:table-rows<

RrT 9T The tabae header rots eaement represents a header rotc The tabae rot eaement represents a bodyrotc

YoS ian omit the <table:table-rows< eaements in the same tay that yoS ian omitthe<TBOtY< tag in OT Lc tabae mSst iontain at aeast one rot groSps bSt onay one headergroSpc body groSp mSst not ioaaot another body groSpc

ooT <!ELEMENT table:table-heater-rows ( table:table-row | table:table-row-group yt<<!ELEMENT table:table-rows ( table:table-row | table:table-row-group yt<

n 9T ppaiiations may sSpport rot header groSpss bSt this is not essentiaac i a Sser agent does notsSpport header groSpss it mSst proiess header groSps as body groSpsc

9cmc4 ot The <table:table-row< eaement iontsins other eaements that speiiiy the iontent oi the tabae rotc

rg int T <table:table-row<RrT 9T

ooT <!ENTITY % table-cell "(table:table-cell|table:coveret-table-celly"<<!ELEMENT table:table-row %table-cell;t<

n 9T The <table:table-row< eaement is simiaar to the X L <fo:table-row< eaementc

NSmber oi ots epeatedThe table:number-rows-repeatet attribSte speiiiies the nSmber oi rots to thiih a rot eaement appaiesc i tto or more rots are adjoinings and hare the same iontent and propertiess yoS ian Sse a singae <table:table-row< eaement to desiribe themc

rg int T table:number-rows-repeatet RrT 9T YoS speiiiy this attribSte tith the <table:table-row< eaementcooT <!ATTLIST table:table-row

table:number-rows-repeatet %number; "1"< n 9T YoS ian not repeat a rot that iontains a rertiiaaay merged ieaac

ot tyae tabae styae stores the iormatting properties oi a tabae rots sSih as height and baikgroSnd ioaorc The tabae styaeian be either an aStomatii or a iommon styaec YoS speiiiy the styae oi a rot Ssing a tabae styaec

Chapter 4 Table Content 265

Page 266: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:style-nameRrT 9T To deiine the styae oi the rots yoS Sse a <style:style< eaement and a iamiay attribSte raaSe

oi tablec The <table:table-row< eaement iniaSdes a table:style-name attribStethat reierenies the styae by the style:name attribStec

ooT <!ATTLIST table:table-row table:style-name %style-name; tIMPLIEt;<

n 9T The tabae rot styae attribSte is simiaar to the X L <fo:table-row< eaementc

VisibiaityThe table:visibility attribSte speiiiies thether the rot is risibaes iiatereds or ioaaapsedc

rg int T table:visibilityRrT 9T This attribSte is assoiiated tith the <table:table-row< eaementc

i the raaSe oi this attribSte is filters the rot aaso ioaaapsedcooT <!ATTLIST table:table-row table:visibility ( visible |

collapse | filter y "visible"<

DeiaSat Ceaa tyaeThe table:tefault-cell-style-name attribSte speiiiies the deiaSat ieaa styaec Ceaas tithoSt an indi-ridSaa styae Sse the deiaSat styaec

rg int T table:tefault-cell-style-nameRrT 9T This attribSte is assoiiated tith the <table:table-row< eaementcooT <!ATTLIST table:table-row table:tefault-cell-style-name %

style-name; tIMPLIEt<

E4oT Ti4T iAurirI iInA9i41tirI ionTr19

266 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 267: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

This e.ampae shots the OpenOiiiiecorg X L iode ior a tabae tith three rots and three ioaSmnsc The iirst ttorots oi the tabae hare a baSe baikgroSndc

<style:style style:namep"Table 1" style:familyp"table"< <style:properties fo:witthp"12cm" fo:backgrount-colorp"light-grey"/<</style:style<<style:style style:namep"Col1" style:familyp"table-column"< <style:properties fo:witthp"2cm"/<</style:style<<style:style style:namep"Col2" style:familyp"table-column"< <style:properties fo:witthp":cm"/<</style:style<<style:style style:namep"Col3" style:familyp"table-column"< <style:properties fo:witthp":cm"/<</style:style<<style:style style:namep"eow1" style:familyp"table-row"< <style:properties fo:backgrount-colorp"blue"/<</style:style<

<table:table table:namep"Table 1" table:style-namep"Table 1"< <table:table-columns< <table:table-column table:style-namep"Col1"/< <table:table-column table:style-namep"Col2"/< <table:table-column table:style-namep"Col3"/< </table:table-columns< <table:table-rows< <table:table-row table:style-namep"eow1"< ... </table:table-row< <table:table-row table:style-namep"eow1"< ... </table:table-row< <table:table-row< ... </table:table-row< <table:table-rows<</table:table<

9cr Ceaas

9crc0 Tabae Ceaa The <table:table-cell< eaement speiiiies the iontent oi a tabae ieaac The <table:table-cell<eaements are iontained in tabae rot eaementsc

Chapter 4 Table Content 267

Page 268: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:table-cell<<table:coveret-table-cell<

RrT 9T The <table:table-cell< eaement ian iontain:● Paragraphs and other te.t iontents or

● sSbtabae

Dhen tabae ieaas merge horikontaaay and rertiiaaays the <table:coveret-table-cell<eaement represents ieaas that are iorered by other ieaasc The <table:table-cell< eaementrepresents aaa other ieaasc

ooT <!ENTITY % cell-content "(table:cell-range-source?, office:annota-tion?,(table:subtable|%text-wo-table;yy"<<!ELEMENT table:table-cell %cell-content;<<!ELEMENT table:coveret-table-cell %cell-content;<

n 9T There is a diiierenie betteen the representation oi ieaas that span sereraa rots or ioaSmns inOpenOiiiiecorg X Ls and their representation in OT L and X Lc

Dhen a ieaa merges tith other ieaass the ieaas that the iirst ieaa iorers do not appear in the OT Lor X L representation oi the tabaec OpenOiiiiecorg X L represents these iorered ieaas as<table:coveret-table-cell< eaementsc The reasons ior this are as ioaaots:● n spreadsheetss there ian be some iontent in the iorered ieaasc

● i a rot does not iniaSde iorered ieaass it is rery diiiiiSat to identiiy the ioaSmn that iontainsa partiiSaar ieaac t means that yoS mSst proiess aaa preieding ieaas to identiiy the ioaSmnc dentiiying the ioaSmn that iontains a partiiSaar ieaa is rery important ior transiormations toother X L aangSagess beiaSse this iniormation is essentiaa to iaaiSaate the tidth oi a ieaac

part irom thiss the tabae ieaa eaement is simiaar to the X L <fo:table-cell< eaement andthe OT L <tt< and <th< tagsc

NSmber oi Ceaas epeatedThe table:number-columns-repeatet attribSte speiiiies the nSmber oi sSiiessire ioaSmns in thiih aieaa is repeatedc

rg int T table:number-columns-repeatetRrT 9T YoS ian Sse a singae <table:table-cell< eaement to desiribe tto or more adjoining

ieaass ii they meet the ioaaoting ionditions:

● The ieaas iontain the same iontent and propertiesc

● The ieaas are not merged horikontaaay or rertiiaaayc

n this iases yoS Sse a table:number-columns-repeatet attribSte to speiiiy thenSmber oi sSiiessire ioaSmns in thiih the ieaa is repeatedc YoS speiiiy this attribSte tith eitherthe <table:table-cell< eaement or the <table:coveret-table-cell< eaementc

ooT <!ATTLIST table:table-cell table:number-columns-repeatet %number; "1"<<!ATTLIST table:coveret-table-cell table:number-columns-repeatet %number; "1"<

268 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 269: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

NSmber oi ots and CoaSmns panned These attribStes speiiiy the nSmber oi rots and ioaSmns that a ieaa spansc YoS speiiiy these attribStes tith the<table:table-cell< eaementc

rg int T table:number-rows-spannettable:number-columns-spannet

RrT 9T

ooT <!ATTLIST table:table-cell table:number-rows-spannet %number; "1"<<!ATTLIST table:table-cell table:number-columns-spannet %number; "1"<

n 9T Dhen a ieaa iorers another ieaas a <table:coveret-table-cell< eaement mSst appearin the tabae to represent the iorered ieaac

Ceaa tyae tabae styae stores the iormatting properties oi a ieaas sSih as the ioaaoting:

● BaikgroSnd ioaor

● NSmber iormat

● Vertiiaa aaignment

● Borders

The tabae styae ian be either an aStomatii or a iommon styaec YoS speiiiy the styae oi a ieaa Ssing a tabae styaec ia ieaa does not hare a styaes the appaiiation iheiks ii a the iSrrent rot has a deiaSat ieaa styaec i the iSrrent rotdoes not hare a deiaSat ieaa styaes the appaiiation iheiks ii the iSrrent ioaSmn has a deiaSat ieaa styaec

rg int T table:style-nameRrT 9T The raaSe oi this attribSte mSst be the name oi a <style:style< eaement that beaongs to the

table-cell styae iamiaycooT <!ATTLIST table:table-cell table:style-name %style-name; tIMPLIEt<

<!ATTLIST table:coveret-table-cell table:style-name %style-name;tIMPLIEt<

Ceaa Content Vaaidation The table:content-valitation-name attribSte speiiiies ii a ieaa iontains a valiaity check.

rg int T table:content-valitation-nameRrT 9T The raaSe oi this attribSte is the name oi a <table:cell-content-valitation< eaementcooT <!ATTLIST table:table-cell table:content-valitation-name CtATA

tIMPLIEt<<!ATTLIST table:coveret-table-cell table:content-valitation-nameCtATA tIMPLIEt<

ee eition 4.9 Sor more inSormation on cell content valiaation ana the <table:cell-content-valita-tion< element.

Chapter 4 Table Content 269

Page 270: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

FormSaaFormSaas aaaot yoS to periorm iaaiSaations tithin tabae ieaasc Erery iormSaa begins tith an eqSaa i o signcFormSaas ian iniaSde the ioaaoting iomponents:

● NSmbersc

● Te.tc

● Named rangesc

● Operatorsc

● Logiiaa operatorsc

● FSnition iaaasc

● ddresses oi ieaas that iontain nSmbersc The addresses ian be reaatire or absoaStes see eition 9crcmc ddresses in iormSaas start tith a ete and end tith a eTrc ee eitions 9crcmand 9crcr ior iniormation aboSthot to address a ieaa or ieaa rangec

The ioaaoting is an e.ampae oi a simpae iormSaa:

psum([.A1:.A4]yThis iormSaa iaaiSaates the sSm oi the raaSes oi aaa ieaas in the range e.A1:.A4rc The iSnition is esumrc Theparameters are marked by a e(e at the start and a eyr at the endc i a iSnition iontains more than one parametersthe parameters are separated by a e;rc The ioaaoting is a rariation oi the iormSaa shotn abore:

psum([.A1];[.A2];[.A3];[.A:];[.A4]yThe resSat oi this iormSaa is the samec The iomponents that yoS Sse in the iormSaa depend on the appaiiation thatyoS are Ssingc

The table:formula attribSte iontains a iormSaa ior a tabae ieaac

rg int T table:formulaRrT 9T ee aborec

ooT <!ATTLIST table:table-cell table:formula CtATA tIMPLIEt<<!ATTLIST table:coveret-table-cell table:formula CtATA tIMPLIEt<

n 9T One oi the ioaaoting attribStes represents the iSrrent raaSe oi the ieaa:

● table:value● table:tate-value● table:time-value● table:boolean-value● table:string-value

atri. Dhen an appaiiation is periorming spreadsheet iaaiSaationss a ionneited range oi ieaas that iontains raaSes isiaaaed a matri.c i the ieaa range iontains m rots and n ioaSmnss the matri. is iaaaed an m e n matri.c The smaaaestpossibae matri. is a W e or e W matri. tith tto adjaient ieaasc i yoS tant to Sse a matri. in a iormSaas yoSmSst iniaSde the ieaa range address oi the matri. in the iormSaac n a matri. iormSaas onay speiiaa matri. opera-tions are possibaec

The nSmber oi rots and ioaSmns that a matri. spans are represented by the table:number-matrix-rows-

270 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 271: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

spannet and table:number-matrix-columns-spannet attribStess thiih are attaihed to the ieaaeaementsc

rg int T table:number-matrix-rows-spannettable:number-matrix-columns-spannet

RrT 9T These attribStes are attaihed to the ieaa eaement in the iirst rot and the iirst ioaSmn oi the matri.c

ooT <!ATTLIST table:coveret-table-cell table:number-matrix-rows-spannet %number; tIMPLIEt<<!ATTLIST table:table-cell table:number-matrix-rows-spannet %number; tIMPLIEt<<!ATTLIST table:coveret-table-cell table:number-matrix-columns-spannet %number; tIMPLIEt<<!ATTLIST table:table-cell table:number-matrix-columns-spannet %number; tIMPLIEt<

VaaSe TypeiThe table:value-type attribSte speiiiies the type oi raaSe that ian appear in a ieaac

rg int T table:value-typeRrT 9T The table:cell-type may iontain one oi the ioaaoting raaSes:

● float● time● tate● percentage● currency● boolean● string

ooT <!ATTLIST table:table-cell table:value-type ("float"|"time"|"tate"|"percentage"|"currency"|"boolean"|"string"y "string"<<!ATTLIST table:coveret-table-cell table:value-type ("float"|"time"|"tate"|"percentage"|"currency"|"boolean"|"string"y "string"<

Ceaa CSrrent NSmerii VaaSe The table:value attribSte speiiiies the iSrrent nSmerii raaSe oi a ieaac

rg int T table:valueRrT 9T This attribSte is onay eraaSated ior ieaas that iontain the ioaaoting data types:

● float● percentage● currency

ooT <!ENTITY % float CtATA<<!ATTLIST table:table-cell table:value %float; tIMPLIEt<<!ATTLIST table:coveret-table-cell table:value %float; tIMPLIEt<

Chapter 4 Table Content 271

Page 272: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Ceaa CSrrent Date VaaSe The table:tate-value attribSte speiiiies the iSrrent date raaSe oi a ieaac

rg int T table:tate-valueRrT 9T This attribSte is onay eraaSated ior ieaas those data type is tatecooT <!ATTLIST table:table-cell table:tate-value %tate; tIMPLIEt<

<!ATTLIST table:coveret-table-cell table:tate-value %tate;tIMPLIEt<

Ceaa CSrrent Time VaaSeThe table:time-value attribSte speiiiies the iSrrent time raaSe oi a ieaac

rg int T table:time-valueRrT 9T This attribSte is onay eraaSated ior ieaas those data type is timecooT <!ATTLIST table:table-cell table:time-value %time; tIMPLIEt<

<!ATTLIST table:coveret-table-cell table:time-value %time;tIMPLIEt<

Ceaa CSrrent Booaean VaaSeThe table:boolean-value attribSte speiiiies the iSrrent Booaean raaSe oi a ieaac

rg int T table:boolean-valueRrT 9T This attribSte is onay eraaSated ior ieaas those data type is booleancooT <!ATTLIST table:table-cell table:boolean-value %boolean; tIMPLIEt<

<!ATTLIST table:coveret-table-cell table:boolean-value %boolean;tIMPLIEt<

Ceaa CSrrent tring VaaSeThe table:string-value attribSte speiiiies the iSrrent string raaSe oi a ieaac

rg int T table:string-valueRrT 9T This attribSte is onay eraaSated ior ieaas those data type is stringcooT <!ATTLIST table:table-cell table:string-value CtATA tIMPLIEt<

<!ATTLIST table:coveret-table-cell table:string-value CtATAtIMPLIEt<

n 9T i the table:string-value attribSte does not e.ists the raaSe oi the ieaa is the te.t iontentoi the ieaac

Ceaa CSrrent CSrreniy VaaSe The table:currency attribSte speiiiies the iSrrent iSrreniy raaSe oi a ieaac The raaSe oi this attribSte isSsSaaay iSrreniy iniormation sSih as DE or E c

272 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 273: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:currencyRrT 9T This attribSte is onay eraaSated ior ieaas those data type is currencycooT <!ATTLIST table:table-cell table:currency CtATA tIMPLIEt<

<!ATTLIST table:coveret-table-cell table:currency CtATA tIMPLIEt<

Tabae Ceaa Proteition iOpenOiiiiecorg Driter onayoThe table:protectet attribSte proteits the tabae ieaas iontained in OpenOiiiiecorg Driter doiSmentsc sersian not edit the iontent oi a ieaa that is marked as proteitedc

rg int T table:protectetRrT 9T This attribSte shoSad onay be Ssed in OpenOiiiiecorg Driter tabaesc

ooT <!ATTLIST table:table-cell table:protectet %boolean; "false"<

OpenOiiiiecorg Caai sSpports more sophistiiated proteition iSnitionaaity ior spreadsheet doiSmentss asdesiribed in eition 9c 0c06c

9crc Ceaa ange oSrie i a ieaa is ainked to a database range or named range oi another iiaes the originaa database range or named range isrepresented by a <table:cell-range-source< eaementc

rg int T <table:cell-range-source<RrT 9T

ooT <!ELEMENT table:cell-range-source EMPTY<

The attribStes that yoS ian assoiiate tith this eaement are:

● Name

● L

● Fiater name

● Fiater options

● Last sike

● eiresh deaay

NameThe table:name attribSte speiiiies the name oi the database range or named rangec

rg int T table:nameRrT 9T This attribSte is mandatoryc

ooT <!ATTLIST table:cell-range-source table:name CtATA teEt|IeEt<

Chapter 4 Table Content 273

Page 274: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

LThe XLink attribStes speiiiy the L oi the ainked tabae doiSmentc

rg int T xlink:types xlink:actuates and xlink:hrefRrT 9T

ooT <!ATTLIST table:cell-range-source xlink:type (simpley tFIXEt"simple"<<!ATTLIST table:cell-range-source xlink:actuate (oneequestytFIXEt "oneequest"<<!ATTLIST table:cell-range-source xlink:href %url; teEt|IeEt<

Fiater NameThe table:filter-name attribSte speiiiies the iiae type oi the ainked tabae doiSmentc

rg int T table:filter-nameRrT 9T The raaSe oi this attribSte is appaiiation-speiiiiic

ooT <!ATTLIST table:cell-range-source table:filter-name CtATAteEt|IeEt<

Fiater OptionsThe table:filter-options attribSte speiiiies optionaa settings aboSt the iiae typec

rg int T table:filter-optionsRrT 9T The raaSe oi this attribSte is appaiiation-speiiiiic

ooT <!ATTLIST table:cell-range-source table:filter-options CtATAtIMPLIEt<

Last ikeThe table:last-column-spannet and table:last-row-spannet attribStes speiiiy the aast knotnsike oi the rangec i the sike oi the range is ihanged sinie the aast operations the raaSes oi these attribStes areiniorreitc

rg int T table:last-column-spannettable:last-row-spannet

RrT 9T These attribStes are mandatoryc

ooT <!ATTLIST table:cell-range-source table:last-column-spannet %positiveInteger; teEt|IeEt<<!ATTLIST table:cell-range-source table:last-row-spannet %positiveInteger; teEt|IeEt<

eiresh DeaayThe table:refresh-telay attribSte speiiiies the time deaay betteen reiresh aitionsc

274 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 275: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:refresh-telayRrT 9T

ooT <!ATTLIST table:cell-range-source table:refresh-telay %timeturation; tIMPLIEt<

9crc4 nnotation The <office:annotation< eaement speiiiies an OpenOiiiiecorg annotationc

rg int T <office:annotation<RrT 9T

ooT <!ELEMENT office:annotation (text:pya<

The attribStes assoiiated tith the <office:annotation< eaement are: ● Sthor

● Creation date

● Dispaay

SthorThe office:author attribSte speiiiies the aSthor oi the annotationc

rg int T office:authorRrT 9T This attribSte is mandatoryc

ooT <!ATTLIST office:author CtATA; tIMPLIEt<

Creation DateThe office:create-tate attribSte speiiiies the ireation date and time oi the annotationc i the appaiiationonay has a date string and iannot parse this strings it mSst trite the string to the office:create-tate-string attribStec

rg int T office:create-tateRrT 9T This attribSte is mandatoryc

ooT <!ATTLIST office:create-tate %tate-time; tIMPLIEt<<!ATTLIST office:create-tate-string %string; tIMPLIEt<

DispaayThe office:tisplay attribSte speiiiies thether or not the annotation is risibaec

Chapter 4 Table Content 275

Page 276: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T office:tisplayRrT 9T This attribSte is optionaa and ian hare a true or false raaSecooT <!ATTLIST office:tisplay %boolean; "false"<

9crc9 DeteitireThe <table:tetective< eaement aaaots yoS to dispaay ainks betteen the iSrrent iormSaa ieaas and the ieaasin the spreadsheet doiSmentc This makes is easy to iheik iormSaa deiinitions and make any neiessary iorreitionsc

rg int T <table:tetective<RrT 9T

ooT <!ELEMENT table:tetective (table:highlightet-rangea, table:opera-tionay<

The eaements that ian be iontained in the <table:tetective< eaement are:● Oighaighted range

● Operation

9crc5 Oighaighted angeThe atable:highlightet-range< eaement speiiiies a range ieaa address ior a range thiih iontainsdependents or preiendents and thether or not the range iontains an errorc aso it ian speiiiy that the iontainingieaa is marked inraaidc The table:market-invalit attribSte shoSad be aatays aaone and shoSad not be thereii another attribSte is therec

t represents the risibae marks ireated by deteitirec t is not girens that the representation is reaaay trSec o it ispossibaes that the ieaa is not inraaids bSt at the time the operation tas done the ieaa tas inraaidc o it is aasopossibaes that the dependentsspreiendents are no aonger in the giren rangesc

rg int T <table:highlightet-range<RrT 9T

ooT <!ELEMENT table:highlightet-range EMPTY<

The attribStes that yoS ian assoiiate tith the atable:highlightet-range< eaement are: ● Ceaa ange ddress

● Direition

● Contains Error

● arked nraaid

Ceaa ange ddressThe table:cell-range-attress attribSte speiiiies the ieaa range address oi the highaighted rangec

276 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 277: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:cell-range-attressRrT 9T

ooT <!ATTLIST table:highlightet-range table:cell-range-attress %cell-range-attress; tIMPLIEt<

DireitionThe table:tirection attribSte speiiiies the direition oi the arrot betteen this ieaa and the highaightedrangec

rg int T table:tirectionRrT 9T

ooT <!ATTLIST table:highlightet-range table:tirection (from-another-table | to-another-table | from-same-tabley tIMPLIEt<

Contains ErrorThe table:contains-error attribSte speiiiies thether or not the ieaa range iontains an errorc

rg int T table:contains-errorRrT 9T

ooT <!ATTLIST table:highlightet-range table:contains-error %boolean;tIMPLIEt<

arked nraaidThe table:market-invalit attribSte speiiiies thether or not the ieaa is marked inraaidc

rg int T table:market-invalitRrT 9T

ooT <!ATTLIST table:highlightet-range table:market-invalit %boolean;tIMPLIEt<

9crc6 OperationThe <table:operation< eaement iontains the operation and its inde.c sing the inde.s the appaiiation ianrestore the order oi the operations oi aaa ieaasc

rg int T <table:operation<RrT 9T

ooT <!ELEMENT table:operation EMPTY<

The attribStes assoiiated tith the <table:operation< eaement are: ● Name

● nde.

Chapter 4 Table Content 277

Page 278: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

NameThe table:name attribSte speiiiies the name oi the operationc Possibae names are trace-tepentents sremove-tepententss trace-precetentss remove-precetentss and trace-errorsc

rg int T table:nameRrT 9T

ooT <!ATTLIST table:operation table:name (trace-tepentents|remove-tepentents|trace-precetents|remove-precetents|trace-errorsyteEt|IeEt<

nde.The table:intex attribSte speiiiies the inde. in the order oi the operations oi aaa ieaasc

rg int T table:intexRrT 9T

ooT <!ATTLIST table:operation table:intex %nonNegativeInteger;teEt|IeEt<

9crcm Ceaa ddress Entity speiiaa data type e.ists ior the address oi a ieaac ieaa address entity desiribes a ieaa addressc

The strSitSre oi a ieaa address is as ioaaots:

0c The name oi the tabaec

c dot icoc

4c n aaphabetii raaSe representing the ioaSmnc The aetter represents ioaSmn 0s B represents ioaSmn s and soonc represents ioaSmn ms B represents ioaSmn rs and so onc

9c nSmerii raaSe representing the rotc The nSmber 0 represents the iirst rots the nSmber represents theseiond rots and so onc

0 represents the ieaa in ioaSmn 0 and rot 0c B0 represents the ieaa in ioaSmn and rot 0c represents theieaa in ioaSmn 0 and rot c

For e.ampaes ii yoS hare a tabae tith the name SampleTable and yoS tant to address the ieaa in ioaSmn 49and rot 06s the address is SampleTable.Am1:c n some iases it is not neiessary to proride the name oi thetabaec Ooterers the dot mSst be presentc Dhen the tabae name is not reqSireds the address in the prerioSs e.ampaeis .Am1:cThe strSitSre oi the address oi a ieaa in a sSbtabae is as ioaaots:

0c The address oi the ieaa that iontains the sSbtabaec

c dot icoc

4c The address oi the ieaa in the sSbtabaec

For e.ampaes to reierenie the ieaa in ioaSmn 0 and rot 0 in a sSbtabae that is iaaaed Subtables and that is inioaSmn 49 and rot 06 oi the tabae SampleTables the address is SampleTable.Am1:.A1c i the name oithe tabae iontains a baank the name shoSad be betteen tto qSotation marksc This qSotation marks shoSad be

278 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 279: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

qSotedc

A9nTr i41tiI T4uv io TTi4ttI 99u1.

YoS ian reierenie ieaas in tto tayss Ssing absoaSte addresses or reaatire addressesc Dhen yoS periorm an opera-tion on a tabae ieaas ior e.ampae then yoS iopy a iormSaas absoaSte ieaa reierenies do not ihange; reaatire ieaareierenies do ihangec The prerioSs e.ampae Sses reaatire addressingc

To ireate an absoaSte addresss paaie a doaaar sign i$o beiore eaih tabae names ioaSmn reierenies and rot reier-eniec For e.ampaes the absoaSte address oi the prerioSs e.ampae is TSampleTable.TAmT1:c YoS ianiombine absoaSte and reaatire reierenies in a ieaa addressc For e.ampaes yoS ian Sse SampleTable.AmT1: toreier to a reaatire tabae and ioaSmns and an absoaSte rotc bsoaSte addresses mSst iontain a tabae namec Thedisirimination betteen absoaSte and reaatire addressing is onay neiessary in some speiiaa iasesc Othertises a ieaareierenie tithoSt the doaaar signs is Ssedc

rg int T cell-attressRrT 9T

ooT <!ENTITY % cell-attress CtATA<

9crcr Ceaa ange ddress Entity ieaa range is a nSmber oi adjaient ieaas iorming a reitangSaar shapec The reitangae stretihes irom the ieaa on thetop aeit to the ieaa on the bottom rightc

The range address oi ieaas has a speiiaa data typec To speiiiy a ieaa range addresss yoS Sse an entityc To reiereniea range oi adjaient ieaass ionstrSit the address as ioaaotss in the speiiiied order:

0c The address oi the ieaa at the top aeit oi the range yoS tant to reiereniec

c ioaon i:oc

4c The address oi the ieaa at the bottom right oi the range yoS tant to reiereniec

For e.ampaes yoS Sse the address .A1:.B2 to reierenie the range oi ieaas irom ioaSmn 0 and rot 0 to ioaSmn and rot c The smaaaest range yoS ian speiiiy is a singae ieaac n this iases the range address is the same as theieaa addressc

rg int T cell-range-attressRrT 9T

ooT <!ENTITY % cell-range-attress CtATA<

9crc Ceaa ange ddress List Entity ieaa range address aist is a aist oi ieaa ranges or ieaa addresses s or bothc Eaih item in the aist is separated by aspaiec

rg int T cell-range-attress-listRrT 9T

ooT <!ENTITY % cell-range-attress-list CtATA<

Chapter 4 Table Content 279

Page 280: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c Tabae Ceaa Content VaaidationsThe <table:content-valitations< eaement iontains aaa oi the ieaa iontent raaidationsc

rg int T <table:content-valitations<RrT 9T

ooT <!ELEMENT table:content-valitations (table:content-valitationya<

9c c0 Tabae Ceaa Content VaaidationThe <table:content-valitation< eaement speiiiies the raaidation oi the iontent oi the ieaa tith thisstyaec

rg int T <table:content-valitation<RrT 9T i this eaement is not presents the ieaa ian iontain any iontentc

ooT <!ELEMENT table:content-valitation (table:help-message?,(table:error-message | table:error-macroy?y<

The attribStes that yoS ian assoiiate tith the <table:content-valitation< eaement are:● Name

● Condition

● Base ieaa address

● aaot empty ieaa

NameThe table:name attribSte speiiiies the name oi the iontent raaidationc The name is ireated aStomatiiaaay bythe appaiiationc

rg int T table:nameRrT 9T

ooT <!ATTLIST table:content-valitation table:name CtATA teEt|IeEt<

ConditionThe table:contition attribSte speiiiies the iondition thiih ieaa iontent is aaaotedc

rg int T table:contition

280 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 281: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

RrT 9T The raaSe oi this attribSte is a Booaean e.pressionc The synta. oi the e.pression is simiaar to theXPath synta.c The ioaaoting are raaid ionditions:

● Contition ::p ExtentetTrueContition | TrueFunction 'ant'TrueContition

● TrueFunction ::p cell-content-is-whole-number(y | cell-content-is-tecimal-number(y | cell-content-is-tate(y | cell-content-is-time(y

● ExtentetTrueContition ::p ExtentetGetFunction | cell-content-text-length(y Operator "alue

● TrueContition ::p GetFunction | cell-content(y Operator"alue

● GetFunction ::p cell-content-is-between("alue, "aluey |cell-content-is-not-between("alue, "aluey

● ExtentetGetFunction ::p cell-content-text-length-is-between("alue, "aluey | cell-content-text-length-is-not-between("alue, "aluey

● Operator ::p '<' | '<' | '<p' | '<p' | 'p' | '!p'● "alue ::p Number"alue | String | Formula

Formula is a iormSaa tithoSt an eqSaas i o sign at the beginningc ee eition 9crc0 iormore iniormationc

String iomprises one or more iharaiters sSrroSnded by qSotation marksc Number"alue is a thoae or deiimaa nSmbercYoS mSst iniaSde an OperatorcThe nSmber in a Number"alue or Formula iannot iontain iomma separators ior nSmbersoi 0222 or greaterc

ooT <!ATTLIST table:content-valitation table:contition CtATAtIMPLIEt<

Base Ceaa ddressThe table:base-cell-attress attribSte speiiiies the address oi the base ieaa ior reaatire addresses iniormSaasc

rg int T table:base-cell-attressRrT 9T This attribSte is onay neiessary then the iondition iontains a iormSaac The raaSe oi this attribSte

mSst be an absoaSte ieaa address tith a tabae namec

ooT <!ATTLIST table:content-valitation table:base-cell-attress %cell-attress; tIMPLIEt<

aaot Empty CeaaThe table:allow-empty-cell attribSte speiiiies thether or not a ieaa ian be emptyc

Chapter 4 Table Content 281

Page 282: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:allow-empty-cellRrT 9T

ooT <!ATTLIST table:content-valitation table:allow-empty-cell %boolean; tIMPLIEt<

9c c Oeap essageThe <table:help-message< eaement speiiiies a message to dispaay ii a Sser seaeits the ieaac

rg int T <table:help-message<RrT 9T

ooT <!ELEMENT table:help-message (text:pay<

The attribStes that yoS ian assoiiate tith the <table:help-message< eaement are:● Titae

● Dispaay

TitaeThe table:title attribSte speiiiies the titae oi the heap messagec

rg int T table:titleRrT 9T

ooT <!ATTLIST table:help-message table:title CtATA tIMPLIEt<

DispaayThe table:tisplay attribSte speiiiies thether or not to dispaay the messagec

rg int T table:tisplayRrT 9T

ooT <!ATTLIST table:help-message table:tisplay %boolean; tIMPLIEt<

9c c4 Error essageThe <table:error-message< eaement speiiiies a message to dispaay ii a Sser tries to iniaSde Snaiieptabaeiontent in a ieaac

rg int T <table:error-message<RrT 9T

ooT <!ELEMENT table:error-message (text:pay<

The attribStes that yoS ian assoiiate tith the <table:error-message< eaement are:● Titae

282 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 283: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● essage Type

● Dispaay

TitaeThe table:title attribSte speiiiies the titae oi the error messagec

rg int T table:titleRrT 9T

ooT <!ATTLIST table:error-message table:title CtATA tIMPLIEt<

essage TypeThe table:message-type attribSte speiiiies the type oi error messagec

rg int T table:message-typeRrT 9T The raaSe oi this attribSte ian be stops warnings or informationcooT <!ATTLIST table:error-message table:message-type ( stop |

warning | information y tIMPLIEt<

DispaayThe table:tisplay attribSte speiiiies thether or not to dispaay the messagec

rg int T table:tisplayRrT 9T

ooT <!ATTLIST table:error-message table:tisplay %boolean;tIMPLIEt<

9c c9 Error airoThe <table:error-macro< eaement speiiiies a mairo that is e.eiSted then a Sser tries to iniaSded Snai-ieptabae iontent in a ieaac

rg int T <table:error-macro<RrT 9T

ooT <!ELEMENT table:error-macro EMPTY<

The attribStes that yoS ian assoiiate tith the <table:error-macro< eaement are:● Name

● E.eiSte

Chapter 4 Table Content 283

Page 284: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

NameThe table:name attribSte speiiiies the name oi the mairoc

rg int T table:nameRrT 9T

ooT <!ATTLIST table:error-macro table:name CtATA tIMPLIEt<

E.eiSteThe table:execute attribSte speiiiies thether or not to e.eiSte the mairoc

rg int T table:executeRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ATTLIST table:error-macro table:execute %boolean; tIMPLIEt<

9c02 Sbtabaes sSbtabae is a tabae tithin another tabaec t oiiSpies one ieaa and no other iontent ian appear in this ieaac i atabae ieaa iontains a sSbtabaes it iannot iontain any paragraphsc

rg int T <table:sub-table<RrT 9T The borders oi a sSbtabae merge tith the borders oi the ieaa that it resides inc sSbtabae does not

iontain any iormatting propertiesc sSbtabae is essentiaaay a iontainer ior some additionaa tabaerots that integrate seamaessay tith the parent tabaec

ooT <!ELEMENT table:sub-table (%table-column-groups;,%table-row-groups;y<

n 9T There is a diiierenie betteen a sSbtabae and a OT L tabae that is nested tithin another OT Ltabaec nested OT L tabae appears as a tabae tithin a tabaes that iss it has borders distinit iromthose oi the parent ieaa and respeits the padding oi the parent ieaac

E4oT ineiR oI 9 14un1ineihr4T

OpenOiiiiecorgirg io41iI oI 9 1iru9i4T iu1i ur Iineir iA4y9it 4uT tiu1ih4oT ii41tih4oT i1i

A B

B c0c0 B c c0

B c0c

Tample W

OpenOiiiiecorg X L ian desiribe the preieding tabae as ioaaots:

284 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 285: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<style:style style:namep"Table 1" style:familyp"table"< <style:properties fo:witthp"12cm" fo:backgrount-colorp"light-grey"/<</style:style<<style:style style:namep"Col1" style:familyp"table-column"< <style:properties fo:witthp"2cm"/<</style:style<<style:style style:namep"Col2" style:familyp"table-column"< <style:properties fo:witthp":cm"/<</style:style<<style:style style:namep"Col3" style:familyp"table-column"< <style:properties fo:witthp":cm"/<</style:style<<style:style style:namep"eow1" style:familyp"table-row"< <style:properties fo:backgrount-colorp"grey"/<</style:style<<style:style style:namep"Cell1" style:familyp"table-cell"< <style:properties fo:backgrount-colorp"grey"/<</style:style<<table:table table:namep"Table 1" table:style-namep"Table 1"< <table:table-columns< <table:table-column table:style-namep"Col1"/< <table:table-column table:style-namep"Col2"/< <table:table-column table:style-namep"Col3"/< </table:table-columns< <table:table-heater-rows< <table:table-row table:style-namep"eow1"< <table:table-cell< <text:p text:stylep"Table Caption"< A1 </text:p< </table:table-cell< <table:table-cell< <text:p text:stylep"Table Caption"< B1 </text:p< </table:table-cell< <table:table-cell< <text:p text:stylep"Table Caption"< C1 </text:p< </table:table-cell< </table:table-row< </table:table-heater-rows<

Chapter 4 Table Content 285

Page 286: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<table:table-rows< <table:table-row< <table:table-cell table:number-rows-spannetp"2" table:style-namep"Cell1"< <text:p text:stylep"Table Boty"< A2 </text:p< </table:table-cell< <table:table-cell< <text:p text:stylep"Table Boty"< B2.1.1 </text:p< </table:table-cell< <table:table-cell< <text:p text:stylep"Table Boty"< B2.2.1 </text:p< </table:table-cell< </table:table-row< <table:table-row< <table:coveret-table-cell/< <table:table-cell table:number-columns-spannetp"2"< <text:p text:stylep"Table Boty"< B2.1.2 </text:p< </table:table-cell< <table:coveret-table-cell/< </table:table-row< </table:table-rows<</table:table<

Tample

This sampae ignores the borders oi the tabaec OpenOiiiiecorg X L ian desiribe the preieding tabae as ioaaots:

286 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 287: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<style:style style:namep"Table 1" style:familyp"table"< <style:properties fo:witthp"12cm" fo:backgrount-colorp"light-grey"/<</style:style<<style:style style:namep"Col1" style:familyp"table-column"< <style:properties fo:witthp"2cm"/<</style:style<<style:style style:namep"Col2" style:familyp"table-column"< <style:properties fo:witthp":cm"/<</style:style<<style:style style:namep"Col3" style:familyp"table-column"< <style:properties fo:witthp":cm"/<</style:style<<style:style style:namep"eow1" style:familyp"table-row"< <style:properties fo:backgrount-colorp"grey"/<</style:style<<style:style style:namep"Cell1" style:familyp"table-cell"< <style:properties fo:backgrount-colorp"grey"/<</style:style<

<table:table table:namep"Table 1" table:style-namep"Table 1"< <table:table-columns< <table:table-column table:style-namep"Col1"/< <table:table-column table:style-namep"Col2"/< <table:table-column table:style-namep"Col3"/< </table:table-columns< <table:table-heater-rows< <table:table-row table:style-namep"eow1"< <table:table-cell< <text:p text:stylep"Table Caption"< A1 </text:p< </table:table.cell< <table:table-cell< <text:p text:stylep"Table Caption"< B1 </text:p< </table:table-cell< <table:table-cell< <text:p text:stylep"Table Caption"< C1 </text:p< </table:table-cell< </table:table-row< </table:table-heater-rows< <table:table-rows< <table:table-row< <table:table-cell table:style-namep"Cell1"< <text:p text:stylep"Table Boty"< A2 </text:p< </table:table-cell< <table:table-cell table:number-columns-spannetp"2"<

Chapter 4 Table Content 287

Page 288: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<table:subtable< <table:table-columns< <table:table-column table:style-namep"Col2"/< <table:table-column table:style-namep"Col3"/< </table:table-columns< <table:table-cell< <text:p text:stylep"Table Boty"< B2.1.1 </text:p< </table:table-cell< <table:table-cell< <text:p text:stylep"Table Boty"< B2.2.1 </text:p< </table:table-cell< </table:table-row< <table:table-row< <table:table-cell table:number-columns-spannetp"2"< <text:p text:stylep"Table Boty"< B2.1.2 </text:p< </table:table-cell< <table:coveret-table-cell/< </table:table-row< </table:table-rows< </table:subtable< </table:table-cell< <table:coveret-table-cell/< </table:table-row< </table:table-rows<</table:table<

9c00 Labea angesThe aabea ranges eaement iontains a ioaaeition oi aabea rangesc

rg int T <table:label-ranges<RrT 9T

ooT <!ELEMENT table:label-ranges (table:label-rangeya <

9c00c0 Labea angeThe aabea range eaement speiiiies a ieaa range thiih iontain the aabeas and a ieaa ranges thiih iontains the datacThere are tto types oi aabea rangesc

● One ior ioaSmns

● One ior rotsc

The range oi the data shoSad hare either the same height and rertiiaa position aike the aabea range oi rots or thesame tidth and horikontaa position aike the aabea range oi ioaSmnsc For iniormation on deiining a ieaa ranges see eition 9crc9c

288 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 289: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:label-range<RrT 9T

ooT <!ELEMENT table:label-range EMPTY<

The attribStes that yoS ian assoiiate tith the aabea range eaement are:

● Labea ieaa range address

● Data ieaa range address

● Orientation

Labea Ceaa ange ddressThis attribSte speiiiies the ieaa range address oi the aabeasc

rg int T table:label-cell-range-attressRrT 9T

ooT <!ATTLIST table:label-range table:label-cell-range-attress %cell-range-attress; teEt|IeEt<

Data Ceaa ange ddressThis attribSte speiiiies the ieaa range address oi the datac

rg int T table:tata-cell-range-attressRrT 9T

ooT <!ATTLIST table:label-range table:tata-cell-range-attress %cell-range-attress; teEt|IeEt<

OrientationThis attribSte speiiiies the orientation oi the aabea rangec

rg int T table:orientationRrT 9T This attribSte ian hare a raaSe oi column or rowcooT <!ATTLIST table:range table:orientation (column|rowy

teEt|IeEt<

9c0 Named E.pressionsThe named e.pressions eaement iontains a ioaaeition oi e.pressions tith namess thiih yoS ian Sse to reier to thee.pressionc

Chapter 4 Table Content 289

Page 290: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:namet-expressions<RrT 9T

ooT <!ELEMENT table:namet-expressions (table:namet-range|table:namet-expressionya <

n e.pression eaement ian be Ssed to represent:

● named ieaa rangec

● Other e.pressionss ior e.ampaes part oi a iormSaac

9c0 c0 Named angeThe named range eaement speiiiies a ieaa range tith a namec For iniormation on deiining a ieaa ranges see eition9crc9c

rg int T <table:namet-range<RrT 9T i the ieaa range address is reaatires the table:base-cell-attress attribSte mSst be

attaihed to this eaementc

i the named e.pression is a ieaa range a attribSte that iontains the ieaa area is neiessaryc

ooT <!ELEMENT table:namet-range EMPTY< n T Named ange is one iase there a disirimination betteen absoaSte and reaatire addresses is

possibaec

The attribStes that yoS ian assoiiate tith the named range eaement are:

● Name

● Ceaa range address

● Base ieaa address

● ange Ssabae as

Name

rg int T table:nameRrT 9T This attribSte ian be attaihed to the <table:namet-range< and <table:namet-

expression< eaementscooT <!ATTLIST table:namet-range table:name CtATA teEt|IeEt<

Ceaa ange ddressThis attribSte speiiiies the ieaa range addressc

290 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 291: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:cell-range-attressRrT 9T This attribSte ian be attaihed to the <table:namet-range< eaementcooT <!ATTLIST table:namet-range table:cell-range-attress %cell-

range-attress; teEt|IeEt<

Base Ceaa ddressThis attribSte speiiiies the base ieaa address ii the ieaa address or the ieaa range address in the named range is reaa-tirec

rg int T table:base-cell-attressRrT 9T This attribSte ian be attaihed to the <table:namet-range< eaementcooT <!ATTLIST table:namet-range table:base-cell-attress %cell-

attress; tIMPLIEt< n T Disirimination betteen absoaSte and reaatire addressese is not possibaec Thereiore a tabae name in

the address tiaa needed and doaaar signs tiaa ignoredc

ange Ssabae asThis attribSte speiiiies the possibae Ssage oi the named rangec The named range ian be Ssed as a Print anges aFiaters a epeat ots or a epeat CoaSmnc

rg int T table:range-usable-asRrT 9T This attribSte ian be attaihed to the <table:namet-range< eaementc

The raaSe oi this attribSte ian be either:

● none or

● a spaie-separated aist that ionsists oi any oi the raaSes print-ranges filters repeat-row or repeat-columnc

ooT <!ATTLIST table:namet-range table:range-usable-as CtATA"none"<

9c0 c Named E.pressionThe named e.pression eaement iontains an e.pression tith a names ior e.ampaes part oi a iormSaac

rg int T <table:namet-expression<RrT 9T E.pressions do not sSpport the eqSaa i o sign as the iirst iharaiterc

i the eaement iontains a named range or another named e.pressions the named range or namede.pression mSst be speiiiied iirsts beiore the iontaining e.pressionc

ooT <!ELEMENT table:namet-expression EMPTY<

The attribStes that yoS ian assoiiate tith the named e.pression eaement are:

● Name ithe Ssage oi this attribSte is the same as ior the <table:namet-range< eaements see eition

Chapter 4 Table Content 291

Page 292: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c0 c0co

● E.pression

● Base ieaa address ithe Ssage oi this attribSte is the same as ior the <table:namet-range< eaements see eition 9c0 c0co

E.pression

rg int T table:expressionRrT 9T This attribSte ian be attaihed to the <table:namet-expression< eaementcooT <!ATTLIST table:namet-expression table:expression CtATA

teEt|IeEt<

E4oT Ti 4 ti oI 99un19i T 1iAuri4i14 tiI41. i41ti4i14 ti oI 99un1

<table:namet-expressions< <table:namet-range table:namep"sample1" table:cell-range-attressp".C:"table:base-cell-attressp"sampletable.F1" table:area-typep"none"/< <table:namet-range table:namep"sample2" table:cell-range-attressp".TtT3:.T T-" table:area-typep"print-range filter"/< <table:namet-expression table:namep"sample3" table:expressionp"sum([.A1:.B3]y"/<</table:namet-expressions<

9c04 Fiaters

9c04c0 Tabae FiaterThe tabae iiater eaement desiribes hot to iiater the data in a database range or datapiaot tabaesc

rg int T <table:filter<RrT 9T

ooT <!ELEMENT table:filter ( table:filter-contition | table:filter-ant | table:filter-or y <

Target ange ddressThis attribSte speiiiies there the resSat oi the iiater is oStpStc

rg int T table:target-range-attressRrT 9T This attribSte ian be attaihed to the <table:filter< and <table:sort< eaementsc i the

attribSte is not presents the data is oStpSt in the soSrie rangec

ooT <!ATTLIST table:filter table:target-range-attress %cell-range-attress; tIMPLIEt <

n T Disirimination betteen absoaSte and reaatire addresses is not possibaec Thereiores yoS mSstspeiiiy a tabae name in the address and doaaar signs are ignoredc

292 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 293: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Condition oSrie ange ddressThis attribSte speiiiies the ieaa range irom thiih the iiater iondition ian get its datac

rg int T table:contition-source-range-attressRrT 9T This attribSte ian be attaihed to the <table:filter< eaementc ooT <!ATTLIST table:filter table:contition-source-range-attress %

cell-range-attress; tIMPLIEt<

Condition oSrieThis attribSte speiiiies the soSrie aoiation irom there the appaiiation gets the iiater ionditionc

rg int T table:contition-sourceRrT 9T This attribSte ian hare one oi the ioaaoting raaSes:

● selfThe appaiiation gets the iiater iondition irom the <table:filter< eaementc

● cell-rangeThe appaiiation gets the iiater iondition irom the ieaa range speiiiied by the table:contition-source-range-attress attribStec

ooT <!ATTLIST table:filter table:contition-source ("self" | "cell-range"y "self"y

Dispaay DSpaiiates dispaay dSpaiiates attribSte speiiiies thether or not to dispaay dSpaiiate matihes in the resSatc

rg int T table:tisplay-tuplicatesRrT 9T

ooT <!ATTLIST table:filter table:tisplay-tuplicates %boolean; "true"<

9c04c Fiater ndThe filter-ant eaement speiiiies thether the aogiiaa operator ND is Ssed in a iiaterc

rg int T <table:filter-ant<RrT 9T

ooT <!ELEMENT table:filter-ant ( table:filter-or | table:filter-contition yt <

9c04c4 Fiater Or The filter-or eaement speiiiies thether the aogiiaa operator O is Ssed in a iiaterc

Chapter 4 Table Content 293

Page 294: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:filter-or<RrT 9T

ooT <!ELEMENT table:filter-or ( table:filter-ant | table:filter-contition yt <

9c04c9 Fiater Condition The tabae iiater iondition eaement desiribes a iondition to appay in a iiater operationc

rg int T <table:filter-contition<RrT 9T

ooT <!ELEMENT table:filter-contition EMPTY <

Fiead NSmber iiead nSmber attribSte speiiiies thiih iiead to Sse ior the ionditionc n e.ampae oi a iiead nSmber is a rot orioaSmn nSmbers the iondition being the orientation oi the tabaec

rg int T table:fielt-numberRrT 9T

ooT <!ATTLIST table:filter-contition table:fielt-number CtATAteEt|IeEt<

Case ensitire iase sensitire attribSte determines thether a iiater iondition is iase sensitirec

rg int T table:case-sensitiveRrT 9T

ooT <!ATTLIST table:filter-contition table:case-sensitive %boolean;"false"<

Data Type data type attribSte speiiiies that data type to Sse ior the iiater ionditionc

rg int T table:tata-typeRrT 9T

ooT <!ATTLIST table:filter-contition table:tata-type ("text" |"number"y "text"<

VaaSe raaSe attribSte speiiiies a raaSe ior the iiater ionditionc

294 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 295: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:valueRrT 9T

ooT <!ATTLIST table:filter-contition table:value CtATA teEt|IeEt<

Operator n operator attribSte speiiiies that operator to Sse in the iiater ionditionc

rg int T table:operatorRrT 9T The possibae raaSes ior the operator attribSte depend on thether the iondition Sses a regSaar

e.pressionc i the iondition iniaSdes a regSaar e.pression there are onay tto possibae raaSes:

● match imatiheso● !match idoes not matiho i the iondition does not iniaSde a regSaar e.pressions the possibae raaSes are the ioaaotingionrentionaa reaationaa operators:

● iEqSaa too

● ! iNot eqSaa too

● a iLess thano

● < iGreater thano

● a iLess than or eqSaa too

● < iGreater than or eqSaa too

n additions yoS ian Sse non-ionrentionaa operators sSih as eemptyr and e!emptyrs ebottomraaSesrs etop raaSesrs ebottom perientrs and etop perientrc For e.ampaes yoS ian Sse the aattertto operators to iiater the aotest and highest perientage oi entriesc

ooT <!ATTLIST table:filter-contition table:operator CtATA teEt|IeEt<

E4oT TR oI 9 14un1inei4ieuT I

<filter< <filter-or< <filter-ant< <filter-contition table:fielt-numberp1 table:operatorp"p" table:valuep"toe"/< <filter-contition table:fielt-numberp2 table:operatorp"p" table:valuep"John"/< </filter-ant< <filter-ant< <filter-contition table:fielt-numberp1 table:operatorp"p" table:valuep"Burns"/< <filter-contition table:fielt-numberp2 table:operatorp"p" table:valuep"Michael"/< </filter-ant< </filter-or<</filter<

Chapter 4 Table Content 295

Page 296: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c09 Database angesThe Database anges eaement iontains a ioaaeition oi Database angesc

rg int T <table:tatabase-ranges<RrT 9T

ooT <!ELEMENT table:tatabase-ranges (table:tatabase-rangeya <

9c09c0 Database ange database range is a named area in a tabae there yoS ian periorm database operationsc

rg int T <table:tatabase-range<RrT 9T

ooT <!ELEMENT table:tatabase-range ((table:tatabase-source-sql| table:tatabase-source-table| table:tatabase-source-queryy?, table:filter?, table:sort?, table:subtotal-rules?y<

Database ange Name The table:name attribSte speiiiies the name oi the database range on thiih to periorm operationsc Onay onedatabase range ian be tithoSt a namec This database range is SsSaaay ireated by the appaiiation and is Ssed toiiater or sort data in a ieaa range tithoSt the Sser ireating a database rangec

rg int T table:name RrT 9T

ooT <!ATTLIST table:tatabase-range table:name CtATA tIMPLIEt<

s eaeition The table:is-selection attribSte speiiiies thether the database range iniaSdes the iompaete databases ora seaeition oi reiords irom the databasec

rg int T table:is-selectionRrT 9T

ooT <!ATTLIST table:tatabase-range table:is-selection %boolean;"false"<

On pdate 2eep tyaes The table:on-uptate-keep-styles attribSte speiiiies the beharior oi the ieaa styaes ii the data in thedata soSrie ihangesc

296 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 297: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:on-uptate-keep-stylesRrT 9T i the attribSte raaSe is trSes the styae oi the net ieaas in the database range is the same as the

other ieaas in the ioaSmnc

i the attribSte raaSe is iaases the styae oi the net ieaas in the database range is the standard styaeoi the doiSmentc

ooT <!ATTLIST table:tatabase-range table:on-uptate-keep-styles %boolean; "false"<

On pdate 2eep ikeThe table:on-uptate-keep-sive attribSte speiiiies the beharior oi the database range ii the sike oi thedata in the data soSrie ihangesc

rg int T table:on-uptate-keep-siveRrT 9T i the attribSte raaSe is trSes the range retains its sikec

i the attribSte raaSe is iaases the range does not retain its sikec

ooT <!ATTLIST table:tatabase-range table:on-uptate-keep-sive %boolean;"true"<

Oas Persistent DataThe table:has-persistent-tata attribSte speiiiies thether or not to store the data in a database rangec

rg int T table:has-persistent-tataRrT 9T

ooT <!ATTLIST table:tatabase-range table:has-persistent-tata %boolean;"true"<

Orientation The table:orientation attribSte speiiiies the orientation oi the database rangec

rg int T table:orientationRrT 9T The orientation oi a database range ian be by rot or by ioaSmnc The onay possibae raaSes ior this

attribSte are row and columncooT <!ATTLIST table:tatabase-range table:orientation ( "row" |

"column" y "row"<

Contains Oeader The table:contains-heater attribSte speiiiies thether or not the database range iontains a headerc

rg int T table:contains-heaterRrT 9T

ooT <!ATTLIST table:tatabase-range table:contains-heater %boolean;"true"<

Chapter 4 Table Content 297

Page 298: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Dispaay Fiater BSttons The table:tisplay-filter-buttons bSttons attribSte speiiiies thether or not to dispaay iiater bSttonsc

rg int T table:tisplay-filter-buttons RrT 9T

ooT <!ATTLIST table:tatabase-range table:tisplay-filter-buttons %boolean; "false"<

Target ange ddressThe table:target-range-attress attribSte speiiiies the ieaa range address oi the database rangec

rg int T table:target-range-attressRrT 9T This attribSte ian be attaihed to the <table:tatabase-range< eaementcooT <!ATTLIST table:tatabase-range table:target-range-attress %

cell-range-attress; teEt|IEeEt < n T Disirimination betteen absoaSte and reaatire addresses is not possibaec Thereiores a tabae name

mSst be speiiiied in the address and doaaar signs are ignoredc

eiresh DeaayThe table:refresh-telay attribSte speiiiies the time deaay betteen reiresh aitionsc

rg int T table:refresh-telayRrT 9T This attribSte ian be assoiiated tith the <table:tatabase-range< eaementcooT <!ATTLIST table:tatabase-range table:refresh-telay %

timeturation; tIMPLIEt <

9c09c Database oSrie oL This eaement desiribes an oL database that integrates tith the tabaec

rg int T <table:tatabase-source-sql<RrT 9T

ooT <!ELEMENT table:tatabase-source-sql EMPTY?<

Database Name database name attribSte speiiiies the name oi the oL database that the data is imported iromc

rg int T table:tatabase-nameRrT 9T

ooT <!ATTLIST table:tatabase-source-sql table:tatabase-name CtATAteEt|IeEt<

298 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 299: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

oL tatement n oL statement attribSte speiiiies the oL statement to Sse then importing data irom an oL databasec

rg int T table:sql-statementRrT 9T

ooT <!ATTLIST table:tatabase-source-sql table:sql-statement CtATAteEt|IeEt<

Parse oL tatement parse oL statement attribSte speiiiies thether or not the appaiiation tiaa parse oL statementsc

rg int T table:parse-sql-statementRrT 9T

ooT <!ATTLIST table:tatabase-source-sql table:parse-sql-statement %boolean; "false"<

9c09c4 Database oSrie Tabae The database soSrie tabae eaement iontains the iniormation aboSt the iniaSded database and the tabaec

rg int T <table:tatabase-source-table<RrT 9T

ooT <!ELEMENT table:tatabase-source-table EMPTY?<

Database Name database name attribSte speiiiies the name oi the database that data is imported iromc

rg int T table:tatabase-nameRrT 9T

ooT <!ATTLIST table:tatabase-source-table table:tatabase-name CtATAteEt|IeEt<

Tabae Name tabae name attribSte speiiiies the tabae that data is imported iromc

rg int T table:table-nameRrT 9T

ooT <!ATTLIST table:tatabase-source-table table:table-name CtATAteEt|IeEt<

Chapter 4 Table Content 299

Page 300: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c09c9 Database oSrie oSeryThe database soSrie qSery eaement iontains the iniormation aboSt the iniaSded database and the qSeryc

rg int T <table:tatabase-source-query<RrT 9T

ooT <!ELEMENT table:tatabase-source-query EMPTY?<

Database Name database name attribSte speiiiies a database that data is imported iromc

rg int T table:tatabase-nameRrT 9T

ooT <!ATTLIST table:tatabase-source-query table:tatabase-name CtATAteEt|IeEt<

oSery Name qSery name attribSte speiiiies the qSery to periorm on the database those data is being importedc

rg int T table:query-nameRrT 9T

ooT <!ATTLIST table:tatabase-source-query table:query-name CtATAteEt|IeEt<

9c09c5 ort The sort eaement desiribes the sort keys in a database rangec

rg int T <table:sort<RrT 9T

ooT <!ELEMENT table:sort (table:sort-byyt <

Bind tyaes to Content The table:bint-styles-to-content attribSte speiiiies thether or not ieaas retain their styae attribStesaiter a sort operationc

rg int T table:bint-styles-to-contentRrT 9T

ooT <!ATTLIST table:sort table:bint-styles-to-content %boolean;"true"<

300 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 301: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Target ange ddressThis attribSte speiiiies there the resSat oi the sort is pStc The attribSte is Ssed tith the <table:sort< eaementin the same tay as it is Ssed tith the <table:filter< eaementc ee eition 9c04c0 ior iniormation aboStSsing this attribStec

Case ensitire The table:case-sensitive attribSte speiiiies thether or not the sort operation is iase sensitirec

rg int T table:case-sensitiveRrT 9T

ooT <!ATTLIST table:sort table:case-sensitive %boolean; "false"<

LangSage The table:language attribSte speiiiies the aangSage oi the iompare operatorc

rg int T table:languageRrT 9T

ooT <!ATTLIST table:sort table:language CtATA tIMPLIEt<

CoSntry This attribSte speiiiies the ioSntry ior the iompare operatorc

rg int T table:countryRrT 9T

ooT <!ATTLIST table:sort table:country CtATA tIMPLIEt<

agorithm This attribSte speiiiies the aagorithm ior the iompare operatorc

rg int T table:algorithmRrT 9T

ooT <!ATTLIST table:sort table:algorithm CtATA tIMPLIEt<

9c09c6 ort By The sort by eaement speiiiies thiih iiead to sorts the data type oi this iieads and hot to sort itc

rg int T <table:sort-by<RrT 9T

ooT <!ELEMENT table:sort-by EMPTY <

Chapter 4 Table Content 301

Page 302: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Fiead NSmber iiead nSmber attribSte speiiiies the rot or ioaSmn nSmber to sort byc

rg int T table:fielt-numberRrT 9T

ooT <!ATTLIST table:sort-by table:fielt-number CtATA teEt|IeEt<

Data Type data type attribSte speiiiies the data type oi the iiead to be sortedc

rg int T table:tata-typeRrT 9T i the attribSte raaSe is automatics the appaiiation mSst determine that type oi data is in the

iieadc i the iiead iontains a Sser-deiined data types the attribSte raaSe is the name oi this datatypec

ooT <!ATTLIST table:sort-by table:tata-type ("text" | "number" | "automatic" | qname-but-not-ncname y "auto-matic" <

Order n order attribSte speiiiies thether to sort the data in asiending or desiending orderc

rg int T table:orterRrT 9T

ooT <!ATTLIST table:sort-by table:orter ( "ascenting" | "tescenting" y "ascenting" <

9c09cm Sbtotaa Saes The sSbtotaa rSaes eaement contains the Sollowing inSormatione

● The rovisional result oS a Siela in a aatabase ranget Sor exam let a column.

● The Sunction usea to calculate the rovisional result.

The element consists oS generatea grou s oS Sielas in the aatabase range. For exam let all cells with the samecontent in the same Siela Sorm a grou .

rg int T <table:subtotal-rules<RrT 9T

ooT <!ELEMENT table:subtotal-rules ( table:sort-groups? | table:subtotal-ruleay <

Bind tyaes To Content bind styae to iontent attribSte speiiiies thether or not ieaas retain their styae ieatSres aiter a sSbtotaa operationc

302 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 303: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:bint-styles-to-contentRrT 9T This attribSte is onay eraaSated ii the table:sort-groups eaement is presentcooT <!ATTLIST table:subtotal-rules table:bint-styles-to-content %

boolean; "true"<

Case ensitire iase sensitire attribSte speiiiies thether or not the iase oi iharaiters is important then iomparing entriess iore.ampaes then sorting groSpsc

rg int T table:case-sensitiveRrT 9T This attribSte onay eraaSates ii the table:sort-groups eaement is presentcooT <!ATTLIST table:subtotal-rules

table:case-sensitive %boolean; "false"<

Page Breaks On GroSp Change page breaks on groSp ihange attribSte speiiiies thether or not to insert a page break aiter the sSbtotaa ior eaihgroSpc

rg int T table:page-breaks-on-group-changeRrT 9T This attribSte onay eraaSates ii the table:sort-groups eaement is presentcooT <!ATTLIST table:subtotal-rules table:page-breaks-on-group-change %

boolean; "false"<

9c09cr ort GroSps The sort groSps eaement speiiiies thether to sort ioaSmn groSps or rot groSpss and hot to sort themc t beaongsto the sSbtotaa rSaes eaements see the prerioSs seitionc

rg int T <table:sort-groups<RrT 9T

ooT <!ELEMENT table:sort-groups EMPTY <

Data Type data type attribSte speiiiies the data type oi the ioaSmn groSp or rot groSp to sortc

rg int T table:tata-typeRrT 9T i the attribSte raaSe is automatics the appaiiation mSst determine that type oi data is in the

groSpc i the groSp iontains a Sser-deiined data types the attribSte raaSe is the name oi this datatypec

ooT <!ATTLIST table:sort-groups table:tata-type ("text" | "number" | "automatic" | qname-but-not-ncname y "auto-matic" <

Chapter 4 Table Content 303

Page 304: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Order n order attribSte speiiiies thether to sort the groSp data in asiending or desiending orderc

rg int T table:orterRrT 9T

ooT <!ATTLIST table:sort-groups table:orter ( "ascenting" |"tescenting" y "ascenting" <

9c09c Sbtotaa Sae The sSbtotaa rSae eaement iontains a rSae ior one iieads ior e.ampaes a ioaSmnc The rSae iontains the groSp iieadnSmbers thiih speiiiies the ioaSmn groSp ior thiih the rSae is Sseds and one or more sSbtotaa iieadss thiihspeiiiy a iiead and the iSnition oi the iieadc n sSmmarys the rSae desiribes hot to iaaiSaate the sSbtotaac

rg int T <table:subtotal-rule<RrT 9T

ooT <!ELEMENT table:subtotal-rule (table:subtotal-fieltya <

GroSp By Fiead NSmber groSp by iiead nSmber attribSte speiiiies the iieads ior e.ampaes a ioaSmns that is to be groSpedc

rg int T table:group-by-fielt-numberRrT 9T This attribSte ian be Ssed tith the <table:subtotal-rule< eaementcooT <!ATTLIST table:subtotal-rule

table:group-by-fielt-number CtATA teEt|IeEt <

9c09c02 Sbtotaa Fiead The sSbtotaa iiead eaement iontains the iiead nSmber and the iSnition that is Ssed to iaaiSaate a prorisionaa resSatc n e.ampae oi a iiead is a ioaSmnc

rg int T <table:subtotal-fielt<RrT 9T

ooT <!ELEMENT table:subtotal-fielt EMPTY <

Fiead NSmber iiead nSmber attribSte speiiiies the inde. nSmber oi the iieadc

rg int T table:fielt-numberRrT 9T

ooT <!ATTLIST table:subtotal-fielt table:fielt-number CtATA teEt|IeEt<

304 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 305: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

FSnition iSnition attribSte speiiiies that kind oi sSbtotaas to iaaiSaatec The ioaaoting are possibae raaSes ior thisattribSte: autos averages counts countnumss maxs mins protucts sttevs sttevps sums var andvarp.

rg int T table:functionRrT 9T

ooT <!ATTLIST table:subtotal-fielt table:function CtATA teEt|IeEt<

E4oT Tihrn4Tieu Tt

<table:tatabase-range table:range-positionp"sampletable.A1:sampletable.G20"table:namep"sample"< <table:tatabase-source-table table:tatabase-namep"sampletB" table:table-namep"sampleTable"/< <table:filter ...< ⋮ </table:filter< <table:sort< <table:sort-by table:fielt-numberp1< </table:sort< <table:subtotal-rules< <table:sort-groups/< <table:subtotal-rule table:column-group "3"< <table:subtotal-fielt table:fielt-numberp"1" table:functionp"sum"/< </table:subtotal-rule< </table:subtotal-rules<</table:tatabase-range<

9c05 Data Piaot TabaesData piaot tabaes aaaot yoS to anaayke and eraaSate yoSr datac The data piaot tabaes eaement ian iontain sereraadata piaot tabaesc

rg int T <table:tata-pilot-tables<RrT 9T

ooT <!ELEMENT table:tata-pilot-tables (table:tata-pilot-tableya <

9c05c0 Data Piaot Tabae

Chapter 4 Table Content 305

Page 306: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:tata-pilot-table<RrT 9T This eaement ian iontain one oi the ioaaoting eaements:

● <table:tatabase-source-sql< isee eition 9c09c o● <table:tatabase-source-table< isee eition 9c09c4o● <table:tatabase-source-query< isee eition 9c09c9o● <table:source-service< isee eition 9c05c o● <table:source-cell-range< isee eition 9c05c4o

ooT <!ELEMENT table:tata-pilot-table ((table:tatabase-source-sql |table:tatabase-source-table | table:tatabase-source-query |table:source-service | table:source-cell-rangey, table:tata-pilot-fieltty<

The attribStes assoiiated tith the data piaot tabae eaement are:

● Data piaot tabae name

● ppaiiation data

● Grand totaa

● gnore empty rots

● dentiiy iategories

● Target range address

Data Piaot Tabae NameThis attribSte speiiiies the name oi the data piaot tabaec

rg int T table:nameRrT 9T

ooT <!ATTLIST table:tata-pilot-table table:name CtATA teEt|IeEt<

ppaiiation DataThis attribSte speiiiies e.tra iniormation aboSt the data piaot tabaes thiih ian be Ssed by the appaiiationc

rg int T table:application-tataRrT 9T

ooT <!ATTLIST table:tata-pilot-table table:application-tata CtATAtIMPLIEt<

Grand TotaaThis attribSte speiiiies ii a ioaSmns rots or both hare a grand totaa or ii there is a grand totaa at aaac

306 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 307: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:grant-totalRrT 9T

ooT <!ATTLIST table:tata-pilot-table table:grant-total ( "no" |"row" | "column" | "both" y "both" <

gnore Empty otsThis attribSte speiiiies thether or not empty rots in the soSrie range shoSad be ignoredc

rg int T table:ignore-empty-rowsRrT 9T

ooT <!ATTLIST table:tata-pilot-table table:ignore-empty-rows %boolean; "false"<

dentiiy CategoriesThis attribSte speiiiies thether or not the appaiiation orders rots tithoSt aabeas to the ne.t higher iategory speii-iied by a rot aabeac

rg int T table:itentify-categoriesRrT 9T

ooT <!ATTLIST table:tata-pilot-table table:itentify-categories %boolean; "false"<

Target ange ddressThis attribSte speiiiies there the target range oi the data piaot tabae oStpStc

rg int T table:target-range-attressRrT 9T

ooT <!ATTLIST table:tata-pilot-table table:target-range-attress %cell-range-attress; teEt|IeEt <

n T Disirimination betteen absoaSte and reaatire addresses is not possibaec Thereiores yoS mSstspeiiiy a tabae name in the address and doaaar signs are ignoredc

BSttonsThis attribSte speiiiies aaa ieaas thiih are a bSttonc This is a aist oi ieaa-addressesc

rg int T table:buttonsRrT 9T

ooT <!ATTLIST table:tata-pilot-table table:buttons %cell-range-attress-list; teEt|IeEt <

n T Disirimination betteen absoaSte and reaatire addresses is not possibaec Thereiores yoS mSstspeiiiy a tabae name in the address and doaaar signs are ignoredc

Chapter 4 Table Content 307

Page 308: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c05c oSrie erriie soSrie serriie eaement iontains iniormation aboSt the serriie thiih is Ssed to ireate the data piaot tabaec

rg int T <table:source-service<RrT 9T

ooT <!ELEMENT table:source-service EMPTY <

The attribStes that yoS ian assoiiate tith this eaement are:

● erriie name

● oSrie name

● Objeit name

● oSrie Ssername

● oSrie passtord

erriie NameThis attribSte speiiiies the name oi the serriiec

rg int T table:nameRrT 9T

ooT <!ATTLIST table:source-service table:name CtATA teEt|IeEt <

oSrie NameThis attribSte speiiiies the soSrie oi the serriiec

rg int T table:source-nameRrT 9T

ooT <!ATTLIST table:source-service table:source-name CtATAteEt|IeEt <

Objeit NameThis attribSte speiiiies the name oi the objeit in the soSrie thiih iontains the datac

rg int T table:obiect-nameRrT 9T

ooT <!ATTLIST table:source-service table:obiect-name CtATAteEt|IeEt <

oSrie sernameThis attribSte speiiiies the Ssername reqSired to aiiess the soSriec

308 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 309: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:usernameRrT 9T

ooT <!ATTLIST table:source-service table:username CtATA tIMPLIEt <

oSrie PasstordThis attribSte speiiiies the passtord reqSired to aiiess the soSriec

rg int T table:passwortRrT 9T

ooT <!ATTLIST table:source-service table:passwort CtATA tIMPLIEt <

9c05c4 oSrie Ceaa ange soSrie ieaa range eaement iontains iniormation aboSt the ieaa range and hot the data piaot tabae gets the datairom the rangec YoS ian aiqSire the data tith or tithoSt a qSeryc

rg int T <table:source-cell-range<RrT 9T

ooT <!ELEMENT table:source-cell-range (table:filtery? <

The attribStes that yoS ian assoiiate tith the soSrie ieaa range eaement is:

● Ceaa range address

Ceaa ange ddressThis attribSte speiiiies the ieaa range iontaining the soSrie datac

rg int T table:cell-range-attress RrT 9T

ooT <!ATTLIST table:source-cell-range table:cell-range-attress %cell-range-attress; teEt|IeEt <

n T Disirimination betteen absoaSte and reaatire addresses is not possibaec Thereiores yoS mSstspeiiiy a tabae name in the address and doaaar signs are ignoredc

9c05c9 Fiater ee eition 9c04c0 ior iniormation on iiatering in tabaesc

9c05c5 Data Piaot Fiead

Chapter 4 Table Content 309

Page 310: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:tata-pilot-fielt<RrT 9T

ooT <!ELEMENT table:tata-pilot-fielt ( table:tata-pilot-level y ?<

The attribStes that yoS ian assoiiate tith the data piaot iiead eaement are:

● oSrie iiead name

● s data aayoSt iiead

● FSnition

● Orientation

● sed hierarihy

oSrie Fiead NameThis attribSte speiiiies the name oi the soSrie iieadc There ian be mSatipae <table:tata-pilot-fielt<eaements tith the same raaSe ior this attribStec

rg int T table:source-fielt-nameRrT 9T

ooT <!ATTLIST table:tata-pilot-fielt table:source-fielt-name CtATAteEt|IeEt <

s Data LayoSt FieadThis attribSte speiiiies thether or not the soSrie iiead is a data aayoSt iieadc

rg int T table:is-tata-layout-fieltRrT 9T

ooT <!ATTLIST table:tata-pilot-fielt table:is-tata-layout-fielt %boolean; "false" <

FSnitionThis attribSte speiiiies the iSnition thiih is Ssed ior the soSrie iieadc Possibae raaSes ior this attribSte are:averages counts countnumss maxs mins protucts sttevs sttevps sums var and varpc

rg int T table:functionRrT 9T This attribSte is onay eraaSated ii the raaSe oi the table:orientation attribSte is tata.ooT <!ATTLIST table:tata-pilot-fielt table:function CtATA

teEt|IeEt <

OrientationThis attribSte speiiiies the orientation oi the soSrie iieadc The orientation ian be by rots by ioaSmns by datas by

310 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 311: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

pages or hiddenc

rg int T table:orientationRrT 9T

ooT <!ATTLIST table:tata-pilot-fielt table:orientation ( "row" |"column" | "tata" | "page" | "hitten" y teEt|IeEt<

sed OierarihyThis attribSte speiiiies the Ssed hierarihy oi the soSrie iieadc

rg int T table:uset-hierarchyRrT 9T

ooT <!ATTLIST table:tata-pilot-fielt table:uset-hierarchy CtATA"1" <

9c05c6 Data Piaot LereaThe data piaot aerea eaement iontains iniormation aboSt the aerea oi a data piaot tabaec

rg int T <table:tata-pilot-level<RrT 9T

ooT <!ELEMENT table:tata-pilot-level (table:tata-pilot-subtotals?,table:tata-pilot-members?y <

The attribSte that yoS ian assoiiate tith the data piaot aerea eaement is:

● hot empty

hot EmptyThis attribSte speiiiies thether or not empty iieads shoSad be dispaayedc i this attribSte is not presents the appai-iation ian determine the deiaSat setting tith the heap oi the soSriec

rg int T table:show-emptyRrT 9T

ooT <!ATTLIST table:tata-pilot-level table:show-empty %boolean;tIMPLIEt <

9c05cm Data Piaot SbtotaasThe data piaot sSbtotaas eaement iontains iniormation aboSt the rovisional result oS a Siela in a aata ilot tableana the Sunction usea to calculate the result. mS the element is not resentt the a lication can aetermine the subto-tals with the hel oS the source.

Chapter 4 Table Content 311

Page 312: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <table:tata-pilot-subtotals<RrT 9T This eaement ian iontain the data piaot sSbtotaa eaementsc

ooT <!ELEMENT table:tata-pilot-subtotals ( table:tata-pilot-subtotal ya <

9c05cr Data Piaot SbtotaaThedata piaot sSbtotaa eaement iontains the iSnition thiih is Ssed to iaaiSaate the sSbtotaac

rg int T <table:tata-pilot-subtotal<RrT 9T

ooT <!ELEMENT table:tata-pilot-subtotal EMPTY <

The attribSte that yoS ian assoiiate tith the data piaot sSbtotaa eaement is:

● FSnition

FSnitionThis attribSte speiiiies the iSnition Ssed ior the sSbtotaac Possibae iSnitions are autos averages countscountnumss maxs mins protucts sttevs sttevps sums var and varpc

rg int T table:functionRrT 9T

ooT <!ATTLIST table:tata-pilot-subtotal table:function CtATAteEt|IeEt <

9c05c Data Piaot embersThe data piaot members eaement iontains iniormation aboSt the members oi the data piaot soSriec This eaementian iontain data piaot member eaementsc

rg int T <table:tata-pilot-members<RrT 9T

ooT <!ELEMENT table:tata-pilot-members ( table:tata-pilot-member ya <

9c05c02 Data Piaot emberThe data piaot member eaement iontains iniormation aboSt a member oi the data piaot tabaec

rg int T <table:tata-pilot-member<RrT 9T

ooT <!ELEMENT table:tata-pilot-member EMPTY <

The attribStes that yoS ian assoiiate tith the data piaot member eaement are:

312 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 313: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● ember name

● Dispaay

● hot detaias

ember NameThis attribSte speiiiies the name oi the data piaot memberc

rg int T table:nameRrT 9T

ooT <!ATTLIST table:tata-pilot-member table:name CtATA teEt|IeEt<

DispaayThis attribSte speiiiies thether or not a data piaot member is risibaec mS this attribute is not resentt the a licationcan aetermine the aeSault setting with the hel oS the source.

rg int T table:tisplayRrT 9T

ooT <!ATTLIST table:tata-pilot-member table:tisplay %boolean;tIMPLIEt <

hot DetaiasThis attribSte speiiiies thether or not the detaias aboSt a data piaot member are dispaayedc mS this attribute is not resentt the a lication can aetermine the aeSault setting with the hel oS the source.

rg int T table:show-tetailsRrT 9T

ooT <!ATTLIST table:tata-pilot-member table:show-tetails %boolean;tIMPLIEt <

9c06 Consoaidation se this iSnition to iombine data irom sereraa independent tabae areasc net area is iaaiSaated ria a seaeitedmathematiiaa iSnition and based on those areasc

rg int T <table:consolitation<RrT 9T

ooT <!ELEMENT table:consolitation EMPTY <

The attribStes that yoS ian assoiiate tith this eaement are:

● FSnition

● oSrie ieaa range addresses

Chapter 4 Table Content 313

Page 314: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Target ieaa address

● se aabea

● Link to soSrie data

FSnitionThis attribSte iontains the iSnition thiih is Ssed to ionsoaidate the datac Possibae iSnitions are autosaverages counts countnumss maxs mins protucts sttevs sttevps sums var and varpc

rg int T table:functionRrT 9T

ooT <!ATTLIST table:consolitation table:function CtATA teEt|IeEt <

oSrie Ceaa ange ddressesThis attribSte iontains a aist oi ieaa range addressesc These are the soSrie ieaa rangesc

rg int T table:source-cell-range-attressesRrT 9T

ooT <!ATTLIST table:consolitation table:source-cell-range-attresses %cell-range-attress-list; teEt|IeEt <

Target Ceaa ddressThis attribSte iontains the target ieaa addressc

rg int T table:target-cell-attressRrT 9T

ooT <!ATTLIST table:consolitation table:target-cell-attress %cell-attress; teEt|IeEt <

se LabeaThis attribSte speiiiies thether or not aabeas shoSad be Ssed by the ionsoaidation and ii Sseds thiih onescPossibae raaSes are nones columns row and bothc

rg int T table:use-labelRrT 9T

ooT <!ATTLIST table:consolitation table:use-label (none | column |row | bothy "none" <

Link to oSrie DataThis attribSte speiiiies thether to aink the data in the ionsoaidation area to the soSrie datas and thether or not toaStomatiiaaay Spdate the resSats oi the ionsoaidation ii any ihanges are made to the originaa datac

314 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 315: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:link-to-source-tataRrT 9T

ooT <!ATTLIST table:consolitation table:link-to-source-tata %boolean; "false" <

9c0m DDE LinksThe <table:tte-links< iontainer eaement stores aaa DDE ainksc Erery aink iontains the DDE oSrie andthe data oi the aast ionneitionc

rg int T <table:tte-links<RrT 9T

ooT <!ELEMENT table:tte-links (table:tte-linkyt <

9c0mc0 DDE LinkThis <table:tte-link< eaement iontains the DDE soSrie and a simpae tabae eaementc

rg int T <table:tte-link<RrT 9T The tabae does not need a namec

The eaements in the tabae do not hare styaes or other iniormationc Onay the data in the ieaa attrib-Stes is Ssedc

The ieaa does not iontain paragraphsc

The data is stored in the raaSe attribStesc

The tabae mSst iontain at aeast one ieaac

ooT <!ELEMENT table:tte-link (table:tte-source, table:tabley <

9c0mc DDE oSrieThe DDE soSrie oi the <table:tte-link< eaement onay sSpports the raaSe true ior the office:automatic-uptate attribStec dditionaaays the DDE soSrie has a net attribSte table:conversion-motec

Conrersion odeThis attribSte speiiiies the method by thiih the DDE serrer ionrerts its data into nSmbersc There are threepossibae raaSesc

rg int T table:conversion-moteRrT 9T

ooT <!ATTLIST table:tte-link table:conversion-mote (into-tefault-style-tata-style|into-english-number|let-texty "into-tefault-style-tata-style" <

Chapter 4 Table Content 315

Page 316: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c0r Tabae Formatting PropertiesThe ioaaoting seitions detaia the iormatting properties that ian be appaied to tabaesc

9c0rc0 Tabae DidthErery tabae mSst hare a ii.ed tidthc YoS speiiiy this tidth as a ii.ed aengthc

YoS ian aaso speiiiy the tidth oi a tabae reaatire to the tidth oi the area that the tabae is inc n this iases yoSspeiiiy the tidth as a perientagec ser agents that sSpport speiiiying the reaatire tidth oi a tabae ian speiiiytidths in this tays bSt it is not essentiaac

rg int T style:witthstyle:rel-witth

RrT 9T

ooT <!ATTLIST style:properties style:witth %length; tIMPLIEt<<!ATTLIST style:properties style:rel-witth %percentage; tIMPLIEt<

n 9T The reasons thy erery tabae mSst hare a ii.ed tidth and reaatire tidths are onay an option are asioaaots:

● peiiiying the tidth oi a tabae by a perientage is SseiSa ior iSrrent teb brotsers and otherappaiiations there the perientage is reaatire to the tidth oi a tindotc BSt it may iaSse prob-aems ii the perientage reaates to a ii.ed paper tidthc

● eaatire tidths ian aaso iaSse probaems ior appaiiations sSih as spreadsheet appaiiationssthere there is no reqSirement ior a tabae to iit on a pagec

Ooterers ii an appaiiation sSpports reaatire tidthss it is reaatireay easy to program the appaiiationto iaaiSaate a ii.ed tabae tidths based on a perientagec

9c0rc Tabae aignment tabae aaignment property speiiiies the horikontaa aaignment oi a tabaec

rg int T table:alignRrT 9T The options ior a tabae aaignment property are as ioaaots:

● left e The tabae aaigns to the aeitc● center e The tabae aaigns to the ienterc● right e The tabae aaigns to the rightc● margins e The tabae iiaas aaa the spaie betteen the aeit and right marginsc

ooT <!ATTLIST style:properties table:align (left|center|right|marginsy teEt|IeEt<

n 9T ser agents that do not sSpport the margins raaSes may treat this raaSe as leftc

9c0rc4 Tabae Leit and ight arginThese properties speiiiy the distanie oi the tabae irom the aeit and right marginsc ee Chapter 4 ior a iSaa e.paana-tion oi aeit and right margin propertiesc

316 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 317: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T fo:margin-leftfo:margin-right

RrT 9T n appaiiation may reiognike tabae marginss bSt this is not essentiaac

Tabaes that aaign to the aeit or to the ienter ignore right marginss and tabaes aaign to the right or tothe ienter ignore aeit marginsc

9c0rc9 Tabae Top and Bottom arginThese properties speiiiy the distanie oi the tabae irom the top and bottom marginss fo:margin-top and fo:margin-bottomc ee Chapter 4 ior a iSaa e.paanation oi top and bottom margin propertiesc

9c0rc5 Page eqSenie Entry Point ee ? ior iniormation on this attribSte style:page-sequence-namec

9c0rc6 Break Beiore and Break iterThese properties insert a page or ioaSmn break beiore or aiter a tabaes fo:break-before and fo:break-afterc ee eition 4c00c 9 ior a iSaa e.paanation oi these propertiesc

9c0rcm Tabae BaikgroSnd and BaikgroSnd mageThese properties speiiiy the baikgroSnd ioaor and image oi a tabae Ssing the attribSte fo:backgrount-color and the eaement <style:backgrount-image<c ee eition 4c00c 5 and 4c00c 6 ior a iSaa e.paana-tion oi these propertiesc

9c0rcr Tabae hadotThe tabae shadot property speiiiies that a shadot risSaa eiieit appears on a tabaes Ssing the attribSte style:shatowc ee eition 4c00c42 ior a iSaa e.paanation oi this propertyc

9c0rc 2eep tith Ne.tThe keep tith ne.t property speiiiies that a tabae stays tith the paragraph that ioaaots its Ssing the attribSte fo:keep-with-nextc ee eition 4c00c40 ior a iSaa e.paanation oi this propertyc

9c0rc02 ay Break Betteen otsThis property speiiiies that a page break may oiiSr inside a tabaec

Chapter 4 Table Content 317

Page 318: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:may-break-between-rows RrT 9T

ooT <!ATTLIST style:properties style:may-break-between-rows %boolean; tIMPLIEt<

9c0rc00 Border odea PropertyThe table:borter-motel property speiiiies that border modea to Sse then ireating a tabae tith a bordercThere are tto types oi border modeas as ioaaots:

● nTT4o9u1.inIt Iint T

Dhen tto adjaient ieaas hare diiierent borderss the tider border appears as the border betteen the ieaasc Eaihieaa reieires haai oi the tidth oi the borderc

● h o4I4u1.inIt Iint T

Borders appear tithin the ieaa that speiiiies the borderc

Both border modeas are rery simiaar to the ioaaapsing and separating border modeas oi X L and hh1c Theydiiier in hot border tidths reaate to rot and ioaSmn tidthsc

n OpenOiiiiecorgs a rot height or ioaSmn tidth iniaSdes any spaie reqSired to dispaay borders or paddingc Thismeans thats thiae the tidth and height oi the iontent area is aess than the ioaSmn tidth and rot heights the sSmoi the tidths oi aaa ioaSmns is eqSaa to the totaa tidth oi the tabaec

n X L and C s a ioaSmn tidth or rot height speiiiies the tidth or height oi the iontent area oi a ieaac Thismeans that the sSm oi the tidths oi aaa ioaSmns is aess than the tidth oi the tabaec

rg int T table:borter-motelRrT 9T

ooT <!ATTLIST style:properties table:borter-motel (collapsing|separatingy tIMPLIEt<

9c0rc0 Page tyaeThis attribSte speiiiies the name oi the page styaec

rg int T table:page-style-nameRrT 9T

ooT <!ATTLIST style:properties table:page-style-name %styleName;tIMPLIEt<

9c0rc04 DispaayThis attribSte speiiiies thether or not a tabae is dispaayedc

318 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 319: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T table:tisplayRrT 9T

ooT <!ATTLIST style:properties table:tisplay %boolean; tIMPLIEt<

9c0 CoaSmn Formatting PropertiesThe ioaaoting seitions detaia the iormatting properties that yoS ian appay to tabae ioaSmnsc

9c0 c0 CoaSmn DidthErery tabae ioaSmn mSst hare a ii.ed tidthc YoS speiiiy this tidth as a ii.ed aengthc

YoS ian aaso speiiiy the tidth oi a ioaSmn reaatire to the other ioaSmn tidthsc ppaiiations that sSpport speii-iying the reaatire tidth oi a ioaSmn ian speiiiy tidths in this tays bSt it is not essentiaac

eS infoemation to be supplied.

rg int T style:column-witthstyle:rel-column-witth

RrT 9T To speiiiy a ii.ed tidths Sse the style:column-witth propertyc To speiiiy a reaatiretidths Sse the style:rel-column-witth propertys ioaaoted by a nSmber signiiying thetidth yoS reqSirec

ooT <!ENTITY % rel-number "CtATA"<<!ATTLIST style:properties style:column-witth %length; tIMPLIEt<<!ATTLIST style:properties style:rel-column-witth %rel-number;tIMPLIEt<

n 9T The reaatire tidth oi a tabae is the sSm oi aaa oi the reaatire tidths oi the ioaSmns in the tabaec

n T n X L and C s a ioaSmn tidth does not iniaSde any border tidths or paddingc

Break Beiore and Break iterThe break beiore ifo:break-beforeo and break aiter ifo:break-aftero attribStes ian be Ssed to iormattabaes in a simiaar tay to the tay they are Ssed to iormat paragraphsc For tabaess the onay raaSes yoS ian set iorthese attribStes are "auto" or "page"c ee eition 4c00c 9 ior more iniormation aboSt Ssing these attribStesc

9c 2 Tabae ot Formatting PropertiesThe ioaaoting seitions detaia the iormatting properties that yoS ian appay to tabae rotsc

9c 2c0 ot OeightThis property speiiiies the height oi a tabae rotc By deiaSats rot height is the height oi the taaaest item in the rotcYoS ian aaso speiiiy a minimSm height or a ii.ed heightc

Chapter 4 Table Content 319

Page 320: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:row-heightstyle:min-row-height

RrT 9T To speiiiy a ii.ed heights Sse the style:row-height propertyc To speiiiy a minimSmheights Sse the style:min-row-height propertyc

ooT <!ATTLIST style:properties style:row-height %length; tIMPLIEt<<!ATTLIST style:properties style:min-row-height %length; tIMPLIEt<

n T n X L and C s a rot height does not iniaSde border tidths or paddingc

ot BaikgroSndTo appay a baikgroSnd ioaor or a baikgroSnd image to a tabae rots Sse the baikgroSnd and baikgroSnd ioaorparagraph iormatting propertiesc ee eitions 4c00c 5 and 4c00c 6 ior a iSaa e.paanation oi the baikgroSnd andbaikgroSnd ioaor propertiesc

9c 2c Break Beiore and Break iterThe break beiore ifo:break-beforeo and break aiter ifo:break-aftero attribStes ian be Ssed to iormattabae rots in a simiaar tay to the tay they are Ssed to iormat paragraphsc For tabae rotss the onay raaSes yoS ianset ior these attribStes are "auto" or "page"c ee eition 4c00c 9 ior more iniormation aboSt Ssing these attrib-Stesc

9c 0 Tabae Ceaa Formatting PropertiesThe ioaaoting seitions detaia the iormatting properties that yoS ian appay to tabae ieaasc

9c 0c0 Vertiiaa aignmentThe rertiiaa aaignment property aaaots yoS to speiiiy the rertiiaa aaignment oi te.t in a tabae ieaac

rg int T fo:vertical-alignRrT 9T

ooT <!ATTLIST style:properties fo:vertical-align (top|mittle|bottom|automaticy tIMPLIEt<

n 9T The options ior the rertiiaa aaignment property are as ioaaots:

● top e aigns te.t rertiiaaay tith the top oi the ieaac● mittle e aigns te.t rertiiaaay tith the middae oi the ieaac● bottom e aigns te.t rertiiaaay tith the bottom oi the ieaac● Stomatii l The appaiiation deiide hot to aaign the te.tc

uu4un19T There is no X L property that speiiiies the rertiiaa aaignment oi a tabae ieaac This appears to be anorersight rather than deaiberatec

9c 0c Te.t aign ee Chapter 4 ior iniormation on Ssing this property to iormat tabae ieaasc

320 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 321: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c 0c4 Te.t aign oSrieThis property speiiiies the soSrie oi the te.t-aaign propertyc

rg int T style:text-align-sourceRrT 9T i the raaSe oi this attribSte is "fix"s onay the fo:text-align property is Ssedc i the raaSe is

"value-type"s the te.t aaignment is ae enaent on the value-type oi the ieaacooT <!ATTLIST style:properties style:text-align-source (fix|value-

typey tIMPLIEt<

9c 0c9 Te.t OStaine ee Chapter 4 ior iniormation on Ssing this property to iormat tabae ieaasc

9c 0c5 DireitionThis property speiiiies the direition oi iharaiters in a ieaac The most iommon direition is aeit to right iltroc Theother direition is top to bottom ittbos there the iharaiters in the ieaa are staiked bSt not rotatedc

rg int T fo:tirectionRrT 9T

ooT <!ATTLIST style:properties fo:tirection ( "ltr" | "ttb" ytIMPLIEt<

9c 0c6 Vertiiaa Gayph OrientationThis property speiiiies the rertiiaa gayph orientationc The property speiiiies an angae or aStomatii modec Theonay possibae angae is 2s thiih disabaes this ieatSrec

rg int T fo:glyph-orientation-verticalRrT 9T

ooT <!ATTLIST style:properties style:glyph-orientation-vertical ( auto| 0 y tIMPLIEt<

9c 0cm Te.t hadotTo speiiiy a te.t shadot tithin a tabae ieaas Sse the fo:text-shatow iormatting propertyc ee Chapter 4 ior aiSaa e.paanation oi the te.t shadot propertyc

9c 0cr Ceaa hadotTo speiiiy a ieaa shadot in a tabae ieaas Sse the style:shatow iormatting propertyc ee Chapter 4 ior a iSaae.paanation oi the shadot propertyc

Chapter 4 Table Content 321

Page 322: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c 0c Ceaa BaikgroSndTo appay a baikgroSnd ioaor or a baikgroSnd image to a tabae ieaas Sse the baikgroSnd and baikgroSnd ioaorparagraph iormatting propertiesc ee Chapte 4 ior a iSaa e.paanation oi the baikgroSnd and baikgroSnd ioaorpropertiesc

9c 0c02 Ceaa Borders and Border Line Didth To appay a border to a tabae ieaa and speiiiy the tidth oi the borders Sse the border and border aine tidth para-graph iormatting propertiesc ee eitions 4c00c m and 4c00c r ior a iSaa e.paanation oi the border and border ainetidth propertiesc

9c 0c00 PaddingTo appay padding to a tabae ieaas Sse the padding paragraph iormatting propertyc ee Chapter 4 ior a iSaa e.paana-tion oi the padding propertyc

9c 0c0 Leit arginTo speiiiy a aeit margin in a tabae ieaas Sse the aeit margin paragraph iormatting propertyc ee Chapter 4 ior a iSaae.paanation oi the aeit margin propertyc

9c 0c04 Drap OptionThis property is aike speiiiied in X Lc n addition the X L property fo:overflow is neiessaryc The deiaSat isnot trap aike in X Ls bSt the deiaSat is no-trapc

rg int T fo:wrap-optionfo:overflow

RrT 9T

ooT <!ATTLIST style:properties fo:wrap-option (no-wrap|wrapy tIMPLIEt<<!ATTLIST style:properties fo:overflow (autoy tFIXEt<

9c 0c09 otation ngaeThis property speiiiies the raaSe oi a rotation angae in degreesc

rg int T style:rotation-angleRrT 9T

ooT <!ATTLIST style:properties style:rotation-angle %number tIMPLIEt<

322 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 323: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

9c 0c05 otation aignThis property speiiiies hot the edge oi the te.t in a ieaa is aaigned aiter a rotationc There are ioSr aaignmentoptions:

ATu.1 1i iu9iiii BnIt I9i41ti4o.Inr1ti4I iii

Nonec otatedc nihangedc

Bottom oi the ieaac

Top oi the ieaac

Center oi the ieaac

otated and may oreraap tithother ieaas ii the te.t is aongerthan the aength oi the ieaac

Positioned paraaaea to the te.ts therebythe Spper or aoter edge is dratn at theoriginaa position oi the ieaac

The OpenOiiiiecorg X L iode ior the rotation aaign attribSte is desiribed in the ioaaoting tabaec

rg int T style:rotation-alignRrT 9T The raaSe oi this attribSte ian be "none"s "bottom"s "top"s or "center"cooT <!ATTLIST style:properties style:rotation-align ( "none" |

"bottom" | "top" | "center"y tIMPLIEt<

9c 0c06 Ceaa ProteitThis property speiiiies hot a ieaa is proteitedc

rg int T style:cell-protectRrT 9T This attribSte is onay eraaSated ii the iSrrent tabae is proteited isee 9c5c0oc The raaSe oi the

attribSte ian be "none"s "hitten-ant-protectet"s or a spaie-separated aist iontaining theraaSes "protectet" or "formula-hitten"c

ooT <!ATTLIST style:properties style:cell-protect CtATA tIMPLIEt <

9c 0c0m Print ContentThis property speiiiies thether or not the ieaa iontent ian be printedc

rg int T style:print-contentRrT 9T

ooT <!ATTLIST style:properties style:print-content %boolean;tIMPLIEt <

9c 0c0r Data tyaeThis property iontains the name oi a data styae to Sse as the data styae ior the ieaac The data styae is represented byone oi the styae eaements desiribed in Chapter c The styae ian be reierenied by a namec

Chapter 4 Table Content 323

Page 324: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T style:tata-style-nameRrT 9T

ooT <!ATTLIST style:properties style:tata-style-name %style-name;teEt|IeEt<

324 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 325: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5 Graphii Content

This ihapter prorides the OpenOiiiiecorgirg i9o oueuo4un1ienIir ionI i T 19ineir ito 1teeuo inI.graphiis 4ooTuo4un19 ito 1teeuo inI.ioI4Ai41tito 1teeuo inI.ioI 99iiion14u19ir ienTTnAu1.9 oun19Ti

● aster Pages

● Drating Pages

● Drating hapes

● Presentation hapes

● 4D hapes

● Graphii tyae Eaements

● troke Properties

● Fiaa Properties

● Te.t nimation Properties

● Te.t Properties

● Graphii Properties

● hadot Properties

● Conneitor Properties

● easSre Properties

● Caption Properties

● 4D Geometry Properties

● 4D Lighting Properties

● 4D Te.tSre Properties

● 4D ateriaa Properties

● 4D hadot Properties

● Layer ets

● GaSe Points

● Presentation Page LayoSts

● Presentation Page ttribStes

325

CHAPTER 5

Page 326: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Presentation ettings

● Presentation nimations

onI41i n

OpenOiiiiecorgioI4Aiu9i4i9r9 ineito 1teeuo inI.ioI 99iir ito 1teeuo inI.ioI4Ai4ooTuo4un1itn 91ni9roonIioI 9 14un1ie 4rI 9ii1iru9ior4o I ir 9 ie 4rI 9i4I iu1tuo4 tir9u1.ir iorI49 iOnIioI 9- 14un19in1TyOi

5c0 aster PagesYoS Sse 49 Iio4. 9 as iommon baikgroSnds ior tI4Au1.io4. 9c YoS assign master pages Ssing the<styles:master-page< eaementc

rg int Ti <style:master-page<RrT 9Ti aster pages are stored in the <office:styles< eaementc

YoS mSst hare one master page eaementc

Eaih drating page is ainked to one master pages thiih is yoS speiiiy Ssing the style:parent-style-name attribSte oi the drating pages styaec

oo <!ELEMENT style:master-page ( (style:heater, style:heater-left?y?, (style:footer, style:footer-left?y?, office:forms?,style:stylea, (%shapes;ya, presentation:notes? y<

The attribStes that yoS ian assoiiate tith the <style:master-page< eaement are:● Page name

● Page master

● Page styae

● Ne.t styae name

The eaements that yoS ian iniaSde in the <style:master-page< eaement are:● Presentation notes

● hapes

● Frames

Page NameThe style:name attribSte speiiiies the name oi a master pagec Eaih master page is reierenied Ssing the pagenamec

rg int Ti style:nameRrT 9Ti This attribSte is reqSired and the name speiiiied mSst be SniqSec

ooT <!ATTLIST style:master-page style:name %styleName;teEt|IeEt<

326 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 327: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Page asterThe style:page-master-name attribSte speiiiies the sikes borders and orientation oi a master pagec Thesesettings are ioaaeitireay iaaaed the page masterc

rg int Ti style:page-master-nameRrT 9Ti This attribSte is reqSiredc

ooT <!ATTLIST style:master-page style:page-master-name %styleName; teEt|IeEt<

Page tyaeYoS ian assign additionaa page styae attribStes to a drating page Ssing the traw:style-name attribStec

rg int Ti traw:style-nameRrT 9Ti This attribSte is optionaac

The ii.ed iamiay ior page styaes is trawing-pagec ooT <!ATTLIST traw:page traw:style-name %styleName; tIMPLIEt <

Ne.t tyae Name i the appaiiation sSpports aStomatiiaaay generated pagess the traw:next-style-name attribSte identiiiesthe master page that is Ssed as a tempaate ior the ne.t pagec

rg int Ti traw:next-style-nameRrT 9Ti This attribSte is optionaac

The raaSe oi this attribSte mSst be the name oi another style:master-page eaementcooT <!ATTLIST style:master-page style:next-style-name %

styleName; tIMPLIEt<

5c0c0 OandoSt asterFor appaiiations that sSpport printing handoSt pagess this eaement is a tempaate ior aStomatiiaaay generating thehandoSt pagesc This eaement ian iontain any type oi shapec The most SseiSa shape is the <traw:page-thumbnail<s thiih is repaaied by aitSaa drating pages irom the doiSmentc

rg int Ti <style:hantout-master<RrT 9Ti YoS ian onay hare one <style:hantout-master< eaement and it is stored in the

<office:styles< eaementcoo <!ELEMENT style:hantout-master (%shapes;ya<

The attribStes that yoS ian assoiiate tith the <style:hantout-master< eaement are:● Presentation Page LayoSt

Chapter 5 Graphic Content 327

Page 328: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Presentation Page LayoStThis attribSte ainks to a <style:presentation-page-layout< eaementc ee eition 5c 4 ior iniorma-tion on the presentation page aayoSt eaement

rg int Ti presentation:presentation-page-layout-nameRrT 9Ti This attribSte is optionaac

ooT <!ATTLIST style:hantout-master presentation:presentation-page-layout-name %styleName; tIMPLIEt<

5c0c Presentation NotesEaih drating page in a presentation ian hare an additionaa presentation notes pages thiih iontains:

● preriet oi the drating page

● dditionaa graphii shapes

The <presentation:notes< eaement iontains the presentation notesc

rg int Ti <presentation:notes<RrT 9Ti

ooT <!ELEMENT presentation:notes (%shapes;ya< n 9Ti For presentations onayc

E4oT Tig49 Iio4.

<office:styles< ... <style:master-page style:namep"home" style:page-masterp"tefault"< <style:style style:namep"title" style:familyp"presentation"< <style:properties fo:font-stylep"italic"/< </style:style< <style:style style:namep"subtitle" style:familyp"presentation" style:parent-style-namep"title"< <style:properties style:text-outlinep"true"/< </style:style< <traw:rectangle .../< <presentation:notes< <traw:text ...<this is a note</traw:text< </presentation:notes< </style:master-page< ...</office:styles<

5c Drating Pages drating page is a iontainer ior iontent in a drating or presentation doiSmentc Drating pages are Ssed ior theioaaoting:

● Dratings

● aides ior presentations

328 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 329: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <traw:page< RrT 9Ti YoS mSst assign a master page to eaih drating pagec

ooT <!ELEMENT traw:page (office:forms?,(%shapes;ya,presentation:animations?,presentation:notes?y<

The attribStes that yoS ian assoiiate tith the <traw:page< eaement are:● Page name

● Page styae

● aster page

● Presentation page aayoSt

● Presentation page properties

The eaements that yoS ian iniaSde in the <traw:page< eaement are:● hapes

● Frames

● Presentation notes

● Forms

● nimations

Page NameThe traw:name attribSte speiiiies the name oi a drating pagec

rg int Ti traw:name RrT 9Ti This attribSte is optionaac

i yoS Sse this attribStes the name mSst be SniqSec

i yoS do not Sse this attribStes the appaiiation generates a SniqSe namec

ooT <!ATTLIST traw:page traw:name %styleName; tIMPLIEt <

Page tyaeYoS ian assign additionaa iormatting attribStes to a drating page by assigning a page styaec

rg int Ti traw:style-nameRrT 9Ti This attribSte is optionaac

The ii.ed iamiay ior page styaes is trawing-pagec ooT <!ATTLIST traw:page traw:style-name %styleName; tIMPLIEt <

aster PageEaih drating page mSst hare one master page assigned to itc The master page:

Chapter 5 Graphic Content 329

Page 330: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Deiines properties sSih as the sike and borders oi the drating page

● erres as a iontainer ior shapes that are Ssed as a iommon baikgroSnd

The traw:master-page-name attribSte speiiiies the name oi the master page assigned to the drating pagec

rg int Ti traw:master-page-nameRrT 9Ti This attribSte is reqSiredc

ooT <!ATTLIST traw:page traw:master-page-name %styleName;teEt|IeEt<

Presentation Page LayoStThis attribSte ainks to a <style:presentation-page-layout< eaementc ee eition 5c 4 ior iniorma-tion on the presentation page aayoSt eaement

rg int Ti presentation:presentation-page-layout-nameRrT 9Ti This attribSte is optionaac

ooT <!ATTLIST traw:page presentation:presentation-page-layout-name %styleName; tIMPLIEt<

Presentation Page PropertiesEaih drating page ian hare optionaa presentation propertiess ior e.ampaes the dSration ior thiih a page isdispaayed or a iade eiieitc For iniormation on the attribStes Ssed to represent these propertiess see eition 5c 9c

n T These attribStes are ior presentations onayc

5c c0 BaikgroSnd tyae Properties drating page ian hare an optionaa baikgroSnd that deiines the baikgroSnd appearanie oi the pagec i yoS setan optionaa baikgroSnds it orerrides the baikgroSnd oi the assigned master pages bSt not the shapes that are onthe pagec YoS ian aater the baikgroSnd oi the assigned master page by Ssing one oi the ioaaoting eaements in thestyae eaement oi the page:

● <style:backgrount-image< - see Chapter 4 ● <fo:backgrount-color< - see Chapter 4● <traw:hatch< - see eition 5c6c ● <traw:gratient< - see eition 5c6c0

5c c Presentation NotesEaih drating page in a presentation ian hare an additionaa presentation notes pages thiih iontains a preriet oithe iorresponding drating page and additionaa graphii shapesc YoS ian iniaSde the <presentation:notes< eaement in the <traw:page< eaementc ee eition 5c0c ior more iniormation aboSt this eaementcE4oT TioI4Au1.io4.

330 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 331: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<office:automatic-styles< <style:style style:namep"gg3:3:" style:familyp"trawing-page"< <style:properties presentation:page-turationp"4s"< </style:style< <style:style style:namep"titletia"

style:familyp"presentation-page-layout"< <presentation:placeholter presentation:obiectp"title"

svg:xp"20%" svg:yp"10%"svg:witthp"-0%" svg:heightp"10%" /<

<presentation:placeholter presentation:obiectp"subtitle"svg:xp"20%" svg:yp"30%"svg:witthp"-0%" svg:heightp":0%" /<

</style:style<<office:automatic-styles<<office:boty< <traw:page office:namep"Page 1"

traw:style-namep"gg3:3:"traw:master-page-namep"home"presentation:page-layout-namep"titeltia"<

<traw:rect .../< <presentation:notes< <traw:text ...<this is a note</traw:text< </presentation:notes< </traw:page<<office:boty<

5c4 Drating hapes

5c4c0 eitangaeThe <traw:rect< eaement represents a reitangSaar drating shapec

rg int Ti <traw:rect<RrT 9Ti

ooT <!ELEMENT traw:rect ( office:events?, (traw:glue-pointya, %traw-text; y<<!ATTLIST traw:rect %traw-position; %traw-sive; %traw-style-name; %traw-transform; %traw-ent-position; %table-backgrount; %traw-layer; %traw-v-intex; %traw-it; %text-anchor; %traw-layer;<

The attribStes that yoS ian assoiiate tith the <traw:rect< eaement are:● Positions ikes tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09

● Te.t anihor

● Tabae baikgroSnd

Chapter 5 Graphic Content 331

Page 332: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Drat end position

● oSnd iorners

oSnd CornersThis attribSte speiiiies the radiSs oi the iiriae Ssed to roSnd oii the iorners oi the reitangaec

rg int Ti traw:corner-ratiusRrT 9Ti

ooT <!ATTLIST traw:rect traw:corner-ratius %nonNegativeLength;tIMPLIEt<

E4oT TiR o41.rT4IitI4Au1.i9r4o

<traw:rect svg:xp"2cm" svg:yp"3cm" svg:witthp"10cm" svg:heightp"20cm" svg:transformp"rotate(:4y" traw:style-namep"obiect-with-shatow"<

5c4c LineThe <traw:line< eaement represents a ainec

rg int Ti <traw:line<RrT 9Ti

ooT<!ELEMENT traw:line ( office:events?, (traw:glue-pointya, %traw-text; y<<!ATTLIST traw:line svg:x1 %coortinate; tIMPLIEt

svg:y1 %coortinate; tIMPLIEtsvg:x2 %coortinate; tIMPLIEtsvg:y2 %coortinate; tIMPLIEt%traw-style-name;%traw-transform;%traw-ent-position;%table-backgrount;%traw-layer;%traw-v-intex;%text-anchor;%traw-it;

The attribStes that yoS ian assoiiate tith the <traw:line< eaement are:● tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

● tart point

● End point

332 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 333: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

tart PointThe start point attribStes speiiiy the start ioordinates oi the ainec

rg int Ti svg:x1svg:y1

RrT 9Ti

ooT ee aborec

End PointThe end point attribStes speiiiy the end ioordinates oi the ainec

rg int Ti svg:x2svg:y2

RrT 9Ti

ooT ee aborec

5c4c4 PoayaineThe <traw:polyline< eaement represents a poayaine drating shapec

rg int Ti <traw:polyline<RrT 9Ti

ooT <!ELEMENT traw:polyline ( office:events?, (traw:glue-pointya, %traw-text; y<<!ATTLIST traw:polyline %traw-position;

%traw-sive;%traw-viewbox;%traw-style-name;%traw-transform;%traw-layer%traw-v-intex%traw-ent-position;%table-backgrount;%text-anchor;%traw-it<

oT 14un1Tuu4un1T

The OpenOiiiiecorg drating iore iSrrentay ignores the sike attribStes bSt trites oSt a iorreitonec The sike oi a shape is determined e.iaSsireay irom the shape data iicec poaygon rertiiesoc

The attribStes that yoS ian assoiiate tith the <traw:polyline< eaement are:● Positions ikes VietBo.s tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

● Points

Chapter 5 Graphic Content 333

Page 334: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

PointsThe svg:points attribSte stores a seqSenie oi pointss thiih are ionneited by straight ainesc Eaih pointionsists oi tto ioordinatesc The ioordinates are separated by a iomma and the points are separated by thitespaiesc

rg int Ti svg:pointsRrT 9Ti

ooT <!ATTLIST traw:polyline svg:points %points; teEt|IeEt<

5c4c9 PoaygonThe <traw:polygon< eaement represents a poaygonc poaygon is a iaosed set oi straight ainesc

rg int Ti <traw:polygon<RrT 9Ti

ooT <!ELEMENT traw:polygon ( office:events?, (traw:glue-pointya,%traw-text; y<<!ATTLIST traw:polygon %traw-position;

%traw-sive;%traw-viewbox;svg:points %Points; teEt|IeEt%traw-style-name;%traw-transform;%traw-layer;%traw-v-intex;%traw-ent-position;%table-backgrount;%text-anchor;%traw-it;<

oT 14un1Tuu4un1T

The OpenOiiiiecorg drating iore iSrrentay ignores the sike attribStes bSt trites oSt a iorreitonec The sike oi a shape is determined e.iaSsireay irom the shape data iicec poaygon rertiiesoc

The attribStes that yoS ian assoiiate tith the <traw:polygon< eaement are:● Positions ikes VietBo.s tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

● Points l see eition 5c4c4

5c4c5 PathThe <traw:path< eaement represents a pathc path is a shape tith a Sser-deiined oStainec The shape is bSiatSsing mSatipae drating aitions sSih as:

● moceto < set a net iSrrent point● lineto < drat a straight aine

334 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 335: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● cueceto < drat a iSrre Ssing a iSbii bekier● aec l drat an eaaiptiiaa or iiriSaar ari

● closepati < iaose the iSrrent shape by drating a aine to the aast moceto

CompoSnd paths are paths tith sSbpathss eaih sSbpath ionsisting oi a singae moceto ioaaoted by one or moreaine or iSrre operationsc CompoSnd paths ian be Ssed ior eiieits sSih as hoaes in objeitsc

rg int Ti <traw:path<RrT 9Ti

ooT <!ELEMENT traw:path ( office:events?, (traw:glue-pointya, %traw-text; y<<!ATTLIST traw:path %traw-position;

%traw-sive;%traw-viewbox;%traw-style-name;

%traw-transform;%traw-layer;%traw-v-intex;%traw-ent-position;%table-backgrount;%text-anchor;%traw-it;<

oT 14un1Tuu4un1T

The OpenOiiiiecorg drating iore iSrrentay ignores the sike attribStes bSt trites oSt a iorreitonec The sike oi a shape is determined e.iaSsireay irom the shape data iicec poaygon rertiiesoc

The attribStes that yoS ian assoiiate tith the <traw:path< eaement are:● Positions ikes VietBo.s tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09c

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

● Path data

Path DataThe synta. ior this attribSte is doiSmented in Chapter r oi the Tcalable xectoe heapiics bTxh W.d TpecificationThh Toetinm oeaft. ee the Preiaie ior a pointer to this doiSmentc

rg int Ti svg:tRrT 9Ti

ooT <!ATTLIST svg:path t %Pathtata; teEt|IeEt<oT 14un1Tuu4un1T

The iSrrent OpenOiiiiecorg drating iore onay sSpports path shapes thiih hare either open oriaosed iSrresc mi. oi open and iaosed iSrres ior one shape is not sSpportedc The eaaiptiiaaari iommand is aaso not sSpported yetc

5c4c6 CiriaeThe <traw:circle< eaement represents a iiriSaar drating shapec

Chapter 5 Graphic Content 335

Page 336: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <traw:circle<RrT 9Ti

ooT <!ELEMENT traw:circle ( office:events?, (traw:glue-pointya,%traw-text; y<<!ATTLIST traw:circle svg:cx %coortinate; tIMPLIEt

svg:cy %coortinate; tIMPLIEtsvg:r %length; tIMPLIEt%traw-style-name;%traw-transform;%traw-layer;%traw-v-intex;%traw-ent-position;%table-backgrount;%text-anchor;%traw-it;<

The attribStes that yoS ian assoiiate tith the <traw:circle< eaement are:● tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

● Center point

● adiSs

● 2ind

● tart angae

● End angae

Center PointThe ienter point attribStes speiiiy the ioordinates oi the ienter point oi the iiriaec

rg int Ti svg:cxsvg:cy

RrT 9Ti

ooT <!ATTLIST traw:circle svg:cx %coortinate; tIMPLIEt svg:cy %coortinate; tIMPLIEt<

adiSsThe radiSs attribSte speiiiies the radiSs oi the iiriaec

rg int Ti svg:rRrT 9Ti

ooT <!ATTLIST traw:circle svg:r %length; tIMPLIEt<

336 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 337: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

2indThe traw:kint attribSte speiiiies the appearanie oi the iiriaec

rg int Ti traw:kintRrT 9Ti

ooT <!ATTLIST traw:circle traw:kint (full|section|cut|arcy"full"<

tart ngaeFor iiriaes there the traw:kint attribSte raaSe is sections cut or arcs the traw:start-angleattribSte speiiiies the start angae oi the seitions iSts or aric

rg int Ti svg:start-angleRrT 9Ti

ooT <!ATTLIST traw:circle traw:start-angle %nonNegativeInteger;tIMPLIEt<

End ngaeFor iiriaes there the traw:kint attribSte raaSe is sections cut or arcs the traw:ent-angle attribStespeiiiies the end angae oi the seitions iSts or aric

rg int Ti svg:ent-angleRrT 9Ti

ooT <!ATTLIST traw:circle traw:ent-angle %nonNegativeInteger;tIMPLIEt<

5c4cm EaaipseThe <traw:ellipse< eaement represents an eaaipsec

rg int Ti <traw:ellipse<RrT 9Ti

ooT <!ELEMENT traw:ellipse ( office:events?, (traw:glue-pointya,%traw-text; y<<!ATTLIST traw:ellipse svg:cx %coortinate; tIMPLIEt

svg:cy %coortinate; tIMPLIEtsvg:rx %length; tIMPLIEtsvg:ry %length; tIMPLIEt%traw-style-name;%traw-transform;%traw-layer;%traw-v-intex;%traw-ent-position;%table-backgrount;%text-anchor;%traw-it;<

Chapter 5 Graphic Content 337

Page 338: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The attribStes that yoS ian assoiiate tith the <traw:ellipse< eaement are:● tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09

● Center points 2inds tart angaes End angaes adiSs l see eition 5c4c6

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

5c4cr ConneitorThe <traw:connector< eaement represents a series oi aines that ionneit to gaSe points on tto other shapesc

rg int Ti <traw:connector<RrT 9Ti

ooT <!ELEMENT traw:connector ( office:events?, (traw:glue-pointya, %traw-text; y<<!ATTLIST traw:connector

%traw-style-name;%traw-layer;%traw-v-intex;%traw-ent-position;%table-backgrount;%text-anchor;%traw-it;<

The attribStes that yoS ian assoiiate tith the <traw:connector< eaement are:● tyaes Layers 1- nde. and D l see eition 5c4c09

● Type

● tart position

● tart shape

● tart gaSe point

● End position

● End shape

● End gaSe point

● Line shot

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

TypeThe traw:type attribSte speiiiies hot the ionneition betteen tto points is renderedc

338 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 339: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:typeRrT 9Ti The raaSe oi this attribSte ian be stantarts liness lines or curvecooT <!ATTLIST traw:connector

traw:type (stantart|lines|line|curvey "stantart"<

tart PositionThe start position attribStes speiiiy the start position oi a ionneitorc

rg int Ti svg:x1svg:y1

RrT 9Ti i the start position is ionneited to a shapes these attribStes are optionaa beiaSse the start posi -tion deiaSats to the iorresponding gaSe point on the target shapec

ooT <!ATTLIST traw:connectorsvg:x1 %coortinate; tIMPLIEtsvg:y1 %coortinate; tIMPLIEt<

tart hapeThe traw:start-shape attribSte identiiies the drating shape to thiih the start oi this ionneitor isionneitedc

rg int Ti traw:start-shapeRrT 9Ti i a shape is ionneited to the start oi a ionneitors the start position deiaSats to the iorre -

sponding gaSe point on the target shapec

ooT <!ATTLIST traw:connectortraw:start-shape %shapeIt; tIMPLIEt<

tart GaSe PointThe traw:start-glue-point attribSte identiiies the gaSe point in the start shape oi the ionneitorc

rg int Ti traw:start-glue-pointRrT 9Ti i this attribSte is not set and the start oi the ionneitor is ionneited to a shapes the appaiiation

ihooses the gaSe pointc i the start oi the ionneitor is not ionneited to a shapes this attribSte isignoredc

ooT <!ATTLIST traw:connectortraw:start-glue-point %integer; tIMPLIEt<

End PositionThe end position attribStes speiiiy the end position oi a ionneitorc

Chapter 5 Graphic Content 339

Page 340: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti svg:x2svg:y2

RrT 9Ti i the end position is ionneited to a shapes these attribStes are optionaa beiaSse the end posi -tion deiaSats to the iorresponding gaSe point on the target shapec

ooT <!ATTLIST traw:connectorsvg:x2 %coortinate; tIMPLIEtsvg:y2 %coortinate; tIMPLIEt<

End hapeThe traw:ent-shape attribSte identiiies the drating shape to thiih the end oi the ionneitor is ionneitedc

rg int Ti traw:ent-shapeRrT 9Ti i a shape is ionneited to the end oi a ionneitors the end position deiaSats to the iorresponding

gaSe point on the target shapec

ooT <!ATTLIST traw:connectortraw:ent-shape %shapeIt; tIMPLIEt<

End GaSe PointThe traw:ent-glue-point attribSte identiiies the gaSe point in the end shape oi the ionneitorc

rg int Ti traw:ent-glue-pointRrT 9Ti i this attribSte is not set and the end oi the ionneitor is ionneited to a shapes the appaiiation

ihooses the gaSe pointc i the end oi the ionneitor is not ionneited to a shapes this attribSte isignoredc

ooT <!ATTLIST traw:connectortraw:ent-glue-point %integer; tIMPLIEt<

Line ketThe traw:line-skew attribSte iontroas the generation oi the aines that ionneit the start and end pointscDepending on the type oi ionneitors this ian rary irom one to three distanies that more the ionneitor aines reaa-tire to their normaa positionc

rg int Ti traw:line-skewRrT 9Ti

ooT <!ATTLIST traw:connectortraw:line-skew CtATA tIMPLIEt<

5c4c CaptionThe <traw:caption< eaement represents a reitangSaar drating shape tith an additionaa set oi ainesc t ian beSsed as a desiription ior a ii.ed point inside a dratingc

340 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 341: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <traw:caption<RrT 9Ti

ooT <!ELEMENT traw:caption ( office:events?, (traw:glue-pointya,%traw-text; y<<!ATTLIST traw:caption

%traw-position;%traw-sive;%traw-style-name;%traw-transform;%traw-layer;%traw-v-intex;%traw-ent-position;%table-backgrount;%text-anchor;%traw-it;<

The attribStes that yoS ian assoiiate tith the <traw:caption< eaement are:● Positions ikes tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09

● Caption point

● oSnd iorners

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

Caption PointThe iaption point attribStes speiiiy the position oi the point that is iaptionedc set oi aines are rendered irom theiaption areac

rg int Ti traw:caption-point-xtraw:caption-point-y

RrT 9Ti

ooT <!ATTLIST traw:caption traw:caption-point-x %coortinate; tIMPLIEt traw:caption-point-y %coortinate; tIMPLIEt <

oSnd CornersThe traw:corner-ratius attribSte speiiiies the radiSs oi the iiriae Ssed to roSnd oii the iorners oi theiaptionc

rg int Ti traw:corner-ratiusRrT 9Ti

ooT <!ATTLIST traw:caption traw:corner-ratius %length; tIMPLIEt<

Chapter 5 Graphic Content 341

Page 342: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c4c02 easSreThe <traw:measure< eaement represents a shape that is Ssed to measSre distanies in dratingsc

rg int Ti <traw:measure<RrT 9Ti

ooT <!ELEMENT traw:measure ( office:events?, (traw:glue-pointya,%traw-text; y<<!ATTLIST traw:measure %traw-style-name; %traw-transform; %traw-ent-position; %table-backgrount; %text-anchor; %traw-layer; %traw-v-intex; %traw-it;<

The attribStes that yoS ian assoiiate tith the <traw:measure< eaement are:● tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09

● tart position

● End position

● Te.t anihor

● Tabae baikgroSnd

● tart position

● Drat end position

tart PositionThese attribStes speiiiy the start point oi the measSred distaniec

rg int Ti svg:x1svg:y1

RrT 9Ti

ooT <!ATTLIST traw:measure svg:x1 %coortinate; teEt|IeEt<<!ATTLIST traw:measure svg:y1 %coortinate; teEt|IeEt<

Drat End PositionThese attribStes speiiiy the end point oi the measSred distaniec

rg int Ti svg:x2svg:y2

RrT 9Ti

ooT <!ATTLIST traw:measure svg:x2 %coortinate; teEt|IeEt<<!ATTLIST traw:measure svg:y2 %coortinate; teEt|IeEt<

342 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 343: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c4c00 ControaThe <traw:control< eaement represents a shape that is ainked to a iontroa inside an <office:forms<eaementc

rg int Ti <traw:control<RrT 9Ti

ooT <!ELEMENT traw:control EMPTY<<!ATTLIST traw:control

%traw-position;%traw-sive;%traw-style-name;%traw-layer;%control-it;%traw-v-intex;%traw-ent-position;%table-backgrount;%text-anchor;%traw-it;<

The attribStes that yoS ian assoiiate tith the <traw:control< eaement are:• Positions ikes tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09c

• Controa Ds see the doiSmentation ior iormsc

● Te.t anihor

● Tabae baikgroSnd

● Drat end position

5c4c0 Page ThSmbnaiaThe <traw:page-thumbnail< eaement represents a reitangSaar area that dispaays the thSmbnaia oi adrating pagec

rg int Ti <traw:page-thumbnail<RrT 9Ti

ooT <!ELEMENT traw:page-thumbnail EMPTY<<!ATTLIST traw:page-thumbnail

%traw-position;%traw-sive;%presentation-class;%traw-ent-position;%table-backgrount;%text-anchor;%traw-layer;%traw-v-intex;%traw-it<

The attribStes that yoS ian assoiiate tith the <traw:page-thumbnail< eaement are:• Positions ikes tyaes Layers 1- nde.s Ds and Transiormation l see eition 5c4c09c

• Presentation iaass l see eition 5c9c0

Chapter 5 Graphic Content 343

Page 344: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

• Controa Ds see the doiSmentation ior iormsc

● Te.t anihor

● Tabae baikgroSnd

● Page nSmber

Page NSmberThe traw:page-number attribSte speiiiies the nSmber oi the page that is dispaayed as a thSmbnaiac

rg int Ti traw:page-numberRrT 9Ti For thSmbnaias on notes pagess the raaSe oi this attribSte is ii.ed to the drating page oi the

notes pagec

For thimbnaias on handoSt master pagess the raaSe oi this attribSte is reaatire and speiiiiesin thiih order the pages are prerieted on the handoStc

ooT <!ATTLIST traw:page-thumbnail traw:page-number %positiveInteger; tIMPLIEt<

5c4c04 GroSpingThe <traw:g< eaement represents a groSp oi drating shapesc

rg int Ti <traw:g<RrT 9Ti

ooT <!ELEMENT traw:g ( office:events?, (%shapes;ya y <<!ATTLIST traw:g

%traw-v-intex%traw-it<

5c4c09 Common Drating hape ttribStesThe attribStes desiribed in this seition are iommon to aaa drating shapesc

PositionThe position attribStes speiiiy the x and y ioordinates oi the start postion oi the drating shapec

rg int Ti svg:x and svg:yRrT 9Ti

ooT <!ENTITY % Coortinate "CtATA"<<!ENTITY % traw-position "svg:x %coortinate; tIMPLIEt

svg:y %coortinate; tIMPLIEt"<

344 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 345: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ikeThe sike attribStes speiiiy the tidth and height oi the drating shapec

rg int Ti svg:witth and svg:heightRrT 9Ti

ooT <!ENTITY % traw-sive "svg:witth %coortinate; tIMPLIEtsvg:height %coortinate; tIMPLIEt<

End PositionYoS onay need to speiiiy the end position oi a shape then the shape is iniaSded in a spreadsheet doiSment andthe anihor oi the shape is in a ieaac YoS speiiiy the end position Ssing the ieaa address oi the ieaa in thiih the endposition is aoiateds and the x and y ioordinates oi the end position reaatire to the top aeit edge oi the ieaac

rg int Ti table:ent-cell-attresstable:ent-x table:ent-y

RrT 9Ti

ooT <!ENTITY % traw-ent-position "table:ent-cell-attress %Cell-Attress; tIMPLIEttable:ent-x %coortinate; tIMPLIEttable:ent-y %coortinate; tIMPLIEt"<

Tabae BaikgroSndThe table:table-backgrount attribSte speiiiies thether or not the shape is in the tabae baikgroSnd thena shape is iniaSded in a spreadsheet doiSmentc i the styae does not iontain this attribSte the shape is not iniaSdedin the baikgroSnd oi the tabaec

rg int Ti table:table-backgrountRrT 9Ti

ooT <!ENTITY % table-backgrount"table:table-backgrount (true | false y tIMPLIEt"<

TransiormationThe traw:transform attribSte speiiiies a aist oi transiormations that ian be appaied to a drating shapec

Chapter 5 Graphic Content 345

Page 346: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:transformRrT 9Ti The raaSe oi this attribSte is a aist oi transiorm deiinitionss thiih are appaied to the drating

shape in the order in thiih they are aistedc The transiorm deiinitions in the aist mSst be sepa-rated by a thite spaie andsor a iommac The types oi transiorm deiinitions araiaabae iniaSde:

● matrix(<a< <b< <c< <t< <e< <f<ys thiih speiiiies a transiormation in the iormoi a transiormation matri. oi si. raaSesc matrix(a,b,c,t,e,fy is the eqSiraaent oiappaying the transiormation matri. [a b c t e f]c

● translate(<tx< [<ty<]ys thiih speiiiies a transaation by tx and tyc● scale(<sx< [<sy<]ys thiih speiiiies a siaae operation by sx and syc i <sy< is not

prorideds it is assSmed to be eqSaa to <sx<c● rotate(<rotate-angle<ys thiih speiiiies a rotation by <rotate-angle< aboSt

the origin oi the shapes ioordinate systemc

● skewX(<skew-angle<ys thiih speiiiies a sket transiormation aaong the X a.isc● skewY(<skew-angle<ys thiih speiiiies a sket transiormation aaong the Y a.isc

ooT <!ENTITY % transform-list; CtATA<<!ENTITY % traw-transform "traw:transform %TransformList;tIMPLIEt"<

VietBo.The svg:viewbox attribSte estabaishes a Sser ioordinate system inside the physiiaa ioordinate system oi theshape speiiiied by the position and sike attribStesc This Sser ioordinate system is Ssed by the svg:pointsattribSte and the <svg:path< eaementc

rg int Ti svg:viewboxRrT 9Ti The synta. ior Ssing this attribSte is the same as the VG synta.c The raaSe oi the attribSte

is ioSr nSmbers seperated by thite spaiess thiih deiine the aeits tops rights and bottomdimensions oi the Sser ioordinate systemc

ooT <!ENTITY %traw-viewbox "svg:viewbox CtATA teEt|IeEt"<oT 14un1Tuu4un1T

The OpenOiiiiecorg drating iore iSrrentay ignores the rietbo. attribStes bSt trites oSt aiorreit onec The impaied ioordinate system has its origin at the aeits top iorner oi the shapestithoSt any siaaing reaatire to the shapec

tyaeThe traw:style-name attribSte speiiiies a styae ior the drating shapec The attribStes oi the speiiiied styaeand its optionaa parent styaes are Ssed to iormat the shapec

rg int Ti traw:style-nameRrT 9Ti The raaSe oi this attribSte ian be a <style:style< eaement tith a styae iamiay raaSe oi

graphic.ooT <!ENTITY % traw-style-name "traw:style-name %styleName;

teEt|IeEt"<

346 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 347: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

LayerEaih shape ian be assigned to a aayerc The traw:layer attribSte speiiiies the aayer to thiih a shape isassignedc

rg int Ti traw:layerRrT 9Ti The raaSe oi this attribSte mSst be the name oi a aayer inside the aayer-set oi the doiSmentc

ooT <!ENTITY % traw-layer "traw:layer %layerName; tIMPLIEt"<

DYoS ian Sse the traw:it attribSte to assign a SniqSe D to eaih drating shape that is iontained in a doiSmentcYoS ian reierenie the drating shape Ssing the SniqSe Dc The raaSe oi the attribSte is onay e.ported ii the shapeis reiereniedc

rg int Ti traw:itRrT 9Ti This attribSte is optionaac

ooT <!ENTITY % traw-it "traw:it %shapeIt; tIMPLIEt"<

1- nde.Drating shapes are rendered in a speiiiii orderc n generaas the shapes are rendered in the order in thiih theyappear in the X L doiSmentc To ihange the orders Sse the traw:v-intex attribStec

rg int Ti traw:v-intexRrT 9Ti This attribSte is optionaac

ooT <!ENTITY % traw-v-intex"traw:v-intex %nonNegativeInteger; tIMPLIEt"<

5c9 Presentation hapesPresentation shapes are speiiaa shapes iontained in a presentationc Presentation shapes Sse styaes tith a styaeiamiay raaSe oi presentations Snaike drating shapes thiih Sse styaes tith a styae iamiay raaSe oi graphiccPresentation shapes ian be emptys aiting onay as paaiehoadersc

tandard drating shapes ian aaso be Ssed in presentationsc The presentation:class attribSte distingSishespresentation shapes irom drating shapesc

5c9c0 Common Presentation hape ttribStesThe attribStes desiribed in this seition are iommon to aaa presentation shapesc

tyaePresentation shapes ian hare styaes irom the styae iamiay presentation assigned to themc YoS ian distingSisha presentation shape irom a drating shape by iheiking the styae attribSte Ssedc drating shape Sses a traw:

Chapter 5 Graphic Content 347

Page 348: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

style-name attribSte tith a styae irom the graphics iamiays thiae a presentation shape Sses a presenta-tion:style-name attribSte tith a styae irom the presentation iamiayc This name ainks to a <style:style< eaement tith the iamiay presentationc The attribStes in this styae and its optionaa parent styaes areSsed to iormat this shapec

rg int T presentation:style-nameRrT 9T

ooT <!ENTITY % presentation-style-name "presentation:style-name %styleName; tIMPLIEt"<

CaassThe presentation:class attribSte speiiiies the iaass to thiih the presentation beaongsc The presenta-tion:placeholter attribSte deiines ii this is a paaiehoader or a presentation objeit tith aitSaa iontentc Thepresentation:user-transformet attribSte speiiiies thether the sike and position oi the shape is set bythe Sser or is set by the iorresponding presentation shape on the master pagec

rg -nt T presentation:classpresentation:placeholterpresentation:user-transformet

RrT 9T

ooT <!ENTITY % presentation-classes "(title|outline|subtitle|text|graphic|obiect|chart|table|orgchart|page|notesy" <<!ENTITY % presentation-class "presentation:class %presentation-classes; tIMPLIEt presentation:placeholter(true|falsey tIMPLIEt presentation:user-transformet (true|falsey tIMPLIEt"<

5c9c TitaeTitaes are standard te.t shapes c The iaass name ior this presentation shape is presentation-titlec

5c9c4 OStaineOStaines are standard te.t shapesc The iaass name ior this presentation shape is presentation-outlinec

5c9c9 Sbtitae Sbtitaes are standard te.t shapesc The iaass name ior this presentation shape is presentation-subtitlec

5c9c5 Te.tPresentation te.ts are standard te.t shapesc The iaass name ior this presentation shape is presentation-textc

348 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 349: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c9c6 GraphiiPresentation graphiis are standard graphii shapes c The iaass name ior this presentation shape is presenta-tion-textc

5c9cm ObjeitPresentation objeits are standard OLE shapesc The iaass name ior this presentation shape is presentation-obiectc

5c9cr ChartPresentation iharts are standard OLE shapesc The iaass name ior this presentation shape is presentation-chartc

5c9c TabaePresentation tabaes are standard OLE shapesc The iaass name ior this presentation shape is presentation-tablec

5c9c02 OrgihartsPresentation organikation iharts are standard OLE shapesc The iaass name ior this presentation shape is pres-entation-orgchart. n T CSrrentays orgiharts are not impaemented in OpenOiiiiecorgi

5c9c00 PagesPresentation pages are Ssed on notes pagesc The iaass name ior this presentation shape is pagec

5c9c0 NotesPresentation notes are Ssed on notes pagesc The iaass name ior this presentation shape is notesc

5c5 4D hapes

5c5c0 ieneThe <tr3t:scene< eaement is the onay eaement that ian iontain three-dimensionaa shapesc siene is aike agroSps bSt it aaso deiines the projeitions aightings and other render detaias ior the shapes inside the sienec

Chapter 5 Graphic Content 349

Page 350: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <tr3t:scene<RrT 9Ti

ooT <!ENTITY % shapes3t "(tr3t:scene|tr3t:extrute|tr3t:sphere|tr3t:rotate|tr3t:cubey"<<!ELEMENT tr3t:scene (tr3t:lighta,(%shapes3t;yay<<!ATTLIST tr3t:scene

%traw-position;%traw-sive;%tr3t-transform;%traw-style-name;%traw-layer;%traw-v-intex;%traw-it;%traw-layer;<

The attribStes that yoS ian assoiiate tith the <tr3t:scene< eaement are:● tyaes Layers 1- nde.s and D l see eition 5c4c09

● Camera reitors

● Projeition

● Distanie

● Foiaa aength

● hadot saant

● hade mode

● mbient ioaor

● Lighting mode

Camera VeitorsThe iamera reitors deiine a rieting roaSmec The tr3t:vrp attribSte speiiiies the origins the tr3t:vpnattribSte points totards the projeited objeitss and the tr3t:vup attribSte deiines the Sp reitorc

rg int Ti tr3t:vrptr3t:vpntr3t:vup

RrT 9Ti

ooT <!ATTLIST tr3t:scene tr3t:vrp %vector3t; tIMPLIEt<<!ATTLIST tr3t:scene tr3t:vpn %vector3t; tIMPLIEt<<!ATTLIST tr3t:scene tr3t:vup %vector3t; tIMPLIEt<

ProjeitionThe tr3t:proiection attribSte speiiiies the projeitionc The projeition ian be perspeitire or paraaaeac nperspeitire modes objeits beiome smaaaer in the distaniec

350 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 351: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti tr3t:proiectionRrT 9Ti

ooT <!ATTLIST tr3t:scenetr3t:proiection (parallel|perspectivedrtIMPLIEt<

DistanieThe tr3t:tistance attribSte speiiiies the distanie betteen the iamera and the objeitc

rg int Ti tr3t:tistanceRrT 9Ti

ooT <!ATTLIST tr3t:scene tr3t:tistance %length; tIMPLIEt<

Foiaa LengthThe tr3t:focal-length attribSte speiiiies the aength oi the ioiSs ior the rirtSaa iamera oi this sienec

rg int Ti tr3t:focal-lengthRrT 9Ti

ooT <!ATTLIST tr3t:scene tr3t:focal-length %length; tIMPLIEt<

hadot aant

rg int Ti tr3t:shatow-slantRrT 9Ti

ooT <!ATTLIST tr3t:scene tr3t:shatow-slant %nonNegativeInteger;tIMPLIEt<

hade ode

rg int Ti tr3t:shatow-moteRrT 9Ti

ooT <!ATTLIST tr3t:scenetr3t:shate-mote (flat|phong|gouraut|trafty tIMPLIEt<

mbient Coaor

Chapter 5 Graphic Content 351

Page 352: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti tr3t:ambient-colorRrT 9Ti

ooT <!ATTLIST tr3t:scene tr3t:ambient-color %color; tIMPLIEt<

Lighting ode

rg int Ti tr3t:lighting-moteRrT 9Ti

ooT <!ATTLIST tr3t:scene tr3t:lighting-mote %boolean; tIMPLIEt<

5c5c LightThe <tr3t:light< eaement represents a aight inside a sienec

rg int Ti <tr3t:light<RrT 9Ti This eaement mSst be the iirst eaement iontained in a <tr2t:scene< eaementc The

OpenOiiiiecorg soittare iSrrentay sSpports Sp to r aights per sienec

ooT <!ELEMENT tr3t:light EMPTY<<!ATTLIST tr3t:light

tr3t:tiffuse-color %color; tIMPLIEttr3t:tirection %vector3t; teEt|IeEttr3t:enablet %boolean; tIMPLIEttr3t:specular %boolean; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <tr3t:light< eaement are:● DiiiSse ioaor

● Direition

● Enabaed

● peiSaar

DiiiSse CoaorThe tr3t:tiffuse-color attribSte speiiiies the base ioaor that the aight is emittingc

rg int Ti tr3t:tiffuse-colorRrT 9Ti

ooT <!ATTLIST tr3t:light tr3t:tiffuse-color %color; tIMPLIEt<

DireitionThe tr3t:tirection attribSte speiiiies the direition in thiih the aight is emittedc

352 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 353: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti tr3t:tirectionRrT 9Ti

ooT <!ATTLIST tr3t:light tr3t:tirection %vector3t; teEt|IeEt<

EnabaedThe tr3t:enablet attribSte speiiiies thether or not the aight is enabaedc i a aight is not enabaeds it does notemit any aightc

rg int Ti tr3t:enabletRrT 9Ti

ooT <!ATTLIST tr3t:light tr3t:enablet %boolean; tIMPLIEt<

peiSaarThe tr3t:specular attribSte speiiiies thether or not thes aight iaSses a speiSaar reiaeition on the objeitsc

rg int Ti tr3t:specularRrT 9Ti CSrrentays this attribSte ian onay be appaied to the iirst aight in a sienec

ooT <!ATTLIST tr3t:light tr3t:specular %boolean; tIMPLIEt<

5c5c4 CSbeThe <tr3t:cube< eaement represents a three-dimensionaa iSbe shapec

rg int Ti <tr3t:cube<RrT 9Ti

ooT <!ELEMENT tr3t:cube EMPTY<<!ATTLIST tr3t:cube

tr3t:min-etge %vector3t; tIMPLIEttr3t:max-etge %vector3t; tIMPLIEt%tr3t-transform;%traw-style-name;%traw-layer;%traw-v-intex;%traw-it;%traw-layer;<

The attribStes that yoS ian assoiiate tith the <tr3t:cube< eaement are:● tyaes Layers 1- nde. and D l see eition 5c4c09

● Projeitions Distanies Foiaa aengths hadot saants hade modes mbient ioaors Lighting mode l see eition5c5c0

● inimSm and a.imSm Edge

Chapter 5 Graphic Content 353

Page 354: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

inimSm and a.imSm EdgeThese attribStes speiiiy the minimSm and ma.imSm edge oi the iSbe in a 4D spaiec

rg int Ti tr3t:min-etgetr3t:max-etge

RrT 9Ti

ooT <!ATTLIST tr3t:cube tr3t:min-etge %vector3t; tIMPLIEttr3t:max-etge %vector3t; tIMPLIEt<

5c5c9 phereThe <tr3t:sphere< eaement represents a three-dimensionaa sphere shapec

rg int Ti <tr3t:sphere<RrT 9Ti

ooT <!ELEMENT tr3t:sphere EMPTY<<!ATTLIST tr3t:sphere

tr3t:center %vector3t; tIMPLIEttr3t:sive %vector3t; tIMPLIEt%tr3t-transform;%traw-style-name;%traw-layer;%traw-v-intex;%traw-it;%traw-layer;<

The attribStes that yoS ian assoiiate tith the <tr3t:sphere< eaement are:● tyaes Layers 1- nde.s and D l see eition 5c4c09

● Projeitions Distanies Foiaa aengths hadot saants hade modes mbient ioaors Lighting mode l see eition5c5c0

● Center

● ike

CenterThe tr3t:center attribSte deiines the ienter oi the sphere in a three-dimensionaa spaiec

rg int Ti tr3t:centerRrT 9Ti

ooT <!ATTLIST tr3t:sphere tr3t:center %vector3t; tIMPLIEt<

ikeThe tr3t:sive attribSte deiines the sike oi the sphere in a three-dimensionaa spaiec

354 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 355: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti tr3t:siveRrT 9Ti

ooT <!ATTLIST tr3t:sphere tr3t:sive %vector3t; tIMPLIEt<

5c5c5 E.trSdeThe <tr3t:extrute< eaement represents a three-dimensionaa e.trSde based on a poaygonc

rg int Ti <tr3t:extrute<RrT 9Ti

ooT <!ELEMENT tr3t:extrute EMPTY<<!ATTLIST tr3t:extrute

svg:t %pathtata; teEt|IeEt%traw-viewbox;%tr3t-transform;%traw-style-name;%traw-layer;%traw-v-intex;%traw-it;%traw-layer;<

The attribStes that yoS ian assoiiate tith the <tr3t:extrute< eaement are:● Vietbo.s tyaes Layers 1- nde.s and D l see eition 5c4c09

● Projeitions Distanies Foiaa aengths hadot saants hade modes mbient ioaors Lighting mode l see eition5c5c0c

● Path Data l see eition 5c4c5

5c5c6 otateThe <tr3t:rotate< eaement represents a three-dimensionaa rotation shape based on a poaygonc

rg int Ti <tr3t:rotate<RrT 9Ti

ooT <!ELEMENT tr3t:rotate EMPTY<<!ATTLIST tr3t:rotate

svg:t %pathtata; teEt|IeEt%traw-viewbox;%tr3t-transform;%traw-style-name;%traw-layer;%traw-v-intex;%traw-it;%traw-layer;<

The attribStes that yoS ian assoiiate tith the <tr3t:rotate< eaement are:● Vietbo.s tyaes Layers 1- nde.s and D l see eition 5c4c09

● Projeitions Distanies Foiaa aengths hadot saants hade modes mbient ioaors Lighting mode l see eition

Chapter 5 Graphic Content 355

Page 356: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c5c0c

● Path Data l see eition 5c4c5

5c6 Graphii tyae EaementsThe eaements desiribed in this seition are aoiated in the <office:styles< seition oi a doiSment and arereiered to by a SniqSe namec The ioaaoting styaes ior iiaaing graphii objeits are araiaabae:

● Gradient

● Oatih

● mage

● Transpareniy

● arker

● Dash

5c6c0 GradientThis eaement deiines a gradient ior iiaaing a drating objeitc

rg int Ti <traw:gratient<RrT 9Ti This eaement mSst be aoiated inside the <office:styles< eaementscooT <!ELEMENT traw:gratient EMPTY<

The attribStes that yoS ian assoiiate tith the gradient eaement are:

● Name

● Gradient styae

● Gradient ienter

● Coaors

● ntensity

● ngae

● Border

NameThis attribSte SniqSeay identiiies a gradient inside an <office:styles< eaementc

rg int Ti traw:nameRrT 9Ti

ooT <!ATTLIST traw:gratient traw:name %styleName; teEt|IeEt<

356 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 357: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Gradient tyaeThis attribSte speiiiies the styae oi the gradientc

rg int Ti traw:styleRrT 9Ti The gradient styaes that OpenOiiiiecorg iSrrentay sSpports are linears axials ratials

ellipsoits squares and rectangularcooT <!ENTITY % gratient-style "(linear|axial|ratial|ellipsoit|

square|rectangulary"<<!ATTLIST traw:gratient traw:style %gratient-style;teEt|IeEt<

Gradient Center i the gradient styae is ratials ellipsoits squares or rectangulars the gradient ienter attribSte speii-iies the ienter oi the geometry that is Ssed ior the gradientc

rg int Ti traw:cx and traw:cyRrT 9Ti The raaSes oi these attribStes are aatays perientage raaSesc

ooT <!ATTLIST traw:gratient traw:cx %coortinate; tIMPLIEt traw:cy %coortinate; tIMPLIEt<

CoaorsThe gradient interpoaates betteen a start ioaor and an end ioaors thiih are speiiiied Ssing the ioaaoting attrib-Stesc

rg int Ti traw:start-color and traw:ent-colorRrT 9Ti

ooT <!ATTLIST traw:gratient traw:start-color %color; teEt|IeEt<<!ATTLIST traw:gratient traw:ent-color %color; teEt|IeEt<

ntensityThe intensity attribStes aaaot yoS to Sse base ioaors ior interpoaation and to modiiy the start and end ioaor inten-sity Ssing perientage raaSesc n OpenOiiiiecorgs this iSnitionaaity is onay Ssed there a iommon ioaor is Ssed iorthe Sser interiaie and it ian be modiiied Ssing a diiierent intensity raaSec

rg int Ti traw:start-intensity and traw:ent-intensityRrT 9Ti These attribStes are optionaac i the attribStes are not speiiiieds the ioaors are Ssed as they ares

that is at 022l intensityc

ooT <!ATTLIST traw:gratient traw:start-intensity %percentage;tIMPLIEt<<!ATTLIST traw:gratient traw:ent-intensity %percentage;tIMPLIEt<

Chapter 5 Graphic Content 357

Page 358: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ngaeThe angae attribSte speiiiies an angae that rotates the a.is at thiih the gradient raaSes are interpoaatedc

rg int Ti traw:angleRrT 9Ti This attribSte is ignored ior radiaa styae gradientsc

ooT <!ATTLIST traw:gratient traw:angle %angle; tIMPLIEt<

BorderDepending on the styae oi the gradients the border attribSte speiiiies a perientage raaSe thiih is Ssed to siaae aborder thiih is iiaaed by the start or end ioaor onayc

rg int Ti traw:borterRrT 9Ti

ooT <!ATTLIST traw:gratient traw:borter %percentage; tIMPLIEt<

5c6c OatihThis eaement deiines a hatih ior iiaaing graphii objeitsc hatih is a simpae pattern oi straight aines that isrepeated in the iiaa areac

rg int Ti <traw:hatch<RrT 9Ti These eaements mSst be aoiated inside the <office:styles< eaementscooT <!ELEMENT traw:hatch EMPTY<

The attribStes that yoS ian assoiiate tith the hatih eaement are:

● Name

● tyae

● Coaor

● Distanie

● ngae

● BaikgroSnd

NameThis attribSte SniqSeay identiiies a hatih inside an <office:styles< eaementc

rg int Ti traw:nameRrT 9Ti

ooT <!ATTLIST traw:hatch traw:name %styleName; teEt|IeEt<

358 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 359: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

tyaeThe styae attribSte speiiiies the styae oi the hatihc

rg int Ti traw:styleRrT 9Ti The hatih ian hare one oi three styaes: singles toubles or triplecooT <!ATTLIST traw:hatch traw:style "(single|touble|tripley"

tIMPLIEt<

CoaorThe ioaor attribSte speiiiies the ioaor oi the hatih ainesc

rg int Ti traw:colorRrT 9Ti

ooT <!ATTLIST traw:hatch traw:color %color; tIMPLIEt<

DistanieThe distanie attribSte speiiiies the distanie betteen tto hatih ainesc

rg int Ti traw:tistanceRrT 9Ti

ooT <!ATTLIST traw:hatch traw:tistance %length; tIMPLIEt<

ngaeThe angae attribSte speiiiied the rotation angae oi the hatih ainesc

rg int Ti traw:rotationRrT 9Ti

ooT <!ATTLIST traw:hatch traw:rotation %angle; tIMPLIEt<

5c6c4 mageThis eaement speiiiies a aink to a bitmap resoSries ior e.ampaes a cJPG iiaec This eaement ioaaots the Xaink speii-iiiationc

rg int Ti <traw:fill-image<RrT 9Ti These eaements mSst be aoiated inside the <office:styles< eaementscooT <!ELEMENT traw:fill-image EMPTY<

<!ATTLIST traw:fill-image xlink:href %uri; teEt|IeEt xlink:type (simpley tIMPLIEt xlink:show (parsety tIMPLIEt xlink:actuate (onLoaty tIMPLIEt<

Chapter 5 Graphic Content 359

Page 360: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The attribStes that yoS ian assoiiate tith the iiaa image eaement are:

● Name

● ike

NameThis attribSte SniqSeay identiiies a iiaa image inside an <office:styles< eaementc

rg int Ti traw:nameRrT 9Ti

ooT <!ATTLIST traw:fill-image traw:name %styleName; teEt|IeEt<

ikeThese optionaa attribStes speiiiy the sike oi the ainked imagec

rg int Ti svg:witthsvg:height

RrT 9Ti These raaSes are optionaa and are orerridden by the physiiaa sike oi the ainked image resoSriecThey ian be Ssed to get the sike oi an image beiore it is aoadedc

ooT <!ATTLIST traw:fill-image svg:witth %length tIMPLIEt svg:height %length tIMPLIEt<

5c6c9 Transpareniy GradientTo speiiiy a transpareniy gradient ior a graphii objeits yoS ian deiine a transpareniy that torks in a simiaariashion to a gradients e.iept that the transpareniy is interpoaated instead oi the ioaorc

rg int Ti <traw:transparency<RrT 9Ti

ooT <!ENTITY % gratient-style "(linear|axial|ratial|ellipsoit|square|rectangulary"<<!ELEMENT traw:transparency EMPTY<<!ATTLIST traw:transparency

traw:name %styleName; teEt|IeEttraw:style %gratient-style; teEt|IeEttraw:cx %coortinate; tIMPLIEttraw:cy %coortinate; tIMPLIEt

traw:gratient-angle %angle; tIMPLIEttraw:gratient-borter %percentage; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <traw:transparency< eaement are:● Name

● tyae

● Transpareniy ienter

● Transpareniy

360 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 361: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● ngae

● Border

NameThis attribSte is the same as the name attribSte assoiiated tith the gradient eaementc ee eition 5c6c0 ior inior-mationc

tyaeThis attribSte is the same as the styae attribSte assoiiated tith the gradient eaementc ee eition 5c6c0 ior iniorma-tionc

Transpareniy CenterThis attribSte is the same as the gradient ienter attribSte assoiiated tith the gradient eaementc ee eition 5c6c0ior iniormationc

TranspareniyThe transpareniy interpoaates betteen a start and an end raaSec

rg int Ti traw:start traw:ent

RrT 9Ti The raaSes oi these attribStes are perientages there 2l is iSaay transparent and 022l is iSaayopaqSec

ooT <!ATTLIST traw:transparencytraw:start %percentage; tIMPLIEttraw:ent %percentage; tIMPLIEt<

ngaeThis angae rotates the a.is at thiih the transpareniy raaSes are interpoaatedc t is the same as the angae attribSteassoiiated tith the gradient eaementc ee eition 5c6c0 ior more iniormationc

BorderDepending on the styae oi the transpareniys the border attribSte speiiiies a perientage raaSe thiih is Ssed to siaaea border thiih is onay the start or end transpareniy Ssedc This attribSte is the same as the border attribSte assoii-ated tith the gradient eaementc ee eition 5c6c0 ior more iniormationc

5c6c5 arkerThe marker eaement represents markerss thiih are Ssed to drat poaygons at the start and end points oi strokesc

Chapter 5 Graphic Content 361

Page 362: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <traw:marker< RrT 9Ti These eaements mSst be aoiated inside the <office:styles< eaementscooT <!ELEMENT traw:marker svg:patha<

<!ATTLIST traw:markertraw:name %styleName; tIMPLIEt%traw-viewbox;svg:t %Pathtata; teEt|IeEt<

oT 14un1Tuu4un1T

CSrrentays markers onay store the marker geometryc

ee eitions 5c4c9 and 5c4c09 ior iniormation on the Path Data and VietBo. attribStes that yoS ian assoiiatetith the <traw:marker< eaementc

5c6c6 DashThe dash eaement represents a dash styae that ian be Ssed to render strokes oi shapesc

rg int Ti <traw:stroke-tash<RrT 9Ti These eaements mSst be aoiated inside the <office:styles< eaementscooT <!ELEMENT traw:stroke-tash EMPTY<

traw:name %styleName; teEt|IeEttraw:style (rect|rounty tIMPLIEttraw:tots1 %integer; tIMPLIEttraw:tots1-length %length; tIMPLIEttraw:tots2 %integer; tIMPLIEttraw:tots2-length %length; tIMPLIEttraw:tistance %length; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <traw:stroke-tash< eaement are:● Name

● tyae

● Dots

● Distanie

NameThis attribSte SniqSeay identiiies a dash inside an <office:styles< eaementc

rg int Ti traw:nameRrT 9Ti

ooT <!ATTLIST traw:stroke-tash traw:name %styleName; teEt|IeEt<

tyaeThis attribSte speiiiies thether the points oi a dash are roSnd or reitangaSaarc

362 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 363: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:styleRrT 9Ti

ooT <!ATTLIST traw:stroke-tash traw:style (rect|rounty tIMPLIEt<

DotsThese attribStes deiine a repeating seqSenie oi dots that are Ssed to render the dashc There are tto sets oi attrib-Stes thiih are Ssed in an aaternating seqSeniec For eaih seqSenies yoS ian speiiiy the nSmber oi dots to dratand the aength oi eaih dotc

rg int Ti traw:tots1traw:tots1-lengthtraw:tots2traw:tots2-length

RrT 9Ti

ooT <!ATTLIST traw:stroke-tashtraw:tots1 %integer; tIMPLIEttraw:tots1-length %length; tIMPLIEttraw:tots2 %integer; tIMPLIEttraw:tots2-length %length; tIMPLIEt<

DistanieThe traw:tistance attribSte speiiiies the distanie betteen the dots oi a dashc

rg int Ti traw:tistanceRrT 9Ti

ooT <!ATTLIST traw:stroke-tash traw:tistance %length; tIMPLIEt<

5cm troke PropertiesYoS Sse the ioaaoting 9In ioIno Iu 9 to deiine drating objeit aine iharaiteristiis in aaa OpenOiiiiecorgitnor- 19Ti

● tyae

● Dash

● Didth

● Coaor

● tart marker

● End marker

● tart marker tidth

● End marker tidth

● tart marker ienter

Chapter 5 Graphic Content 363

Page 364: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● End marker ienter

● Transpareniy

● Joint

5cmc0 tyaeThis attribSte speiiiies the styae oi the stroke on the iSrrent objeitc

rg int Ti traw:stroke RrT 9Ti

ooT <!ATTLIST style:properties traw:stroke (none|tash|solitytIMPLIEt<

5cmc DashThis attribSte speiiiies the dash styae that is Ssed ior the strokec

rg int Ti svg:stroke-tashRrT 9Ti

ooT <!ATTLIST style:properties traw:stroke-tash %styleName;tIMPLIEt<

5cmc4 DidthThis attribSte speiiiies the tidth oi the stroke on the iSrrent objeit in either Snits oi aength or as a perientagec

rg int Ti svg:stroke-witthRrT 9Ti

ooT <!ATTLIST style:properties svg:stroke-witth %length;tIMPLIEt<

5cmc9 CoaorThis attribSte speiiiies the ioaor oi the stroke on the iSrrent objeitc

rg int Ti svg:stroke-color RrT 9Ti

ooT <!ATTLIST style:properties svg:stroke-color %color;tIMPLIEt<

364 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 365: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5cmc5 tart arkerThis attribSte speiiiies a aine start markers thiih is a path that ian be ionneited to the start oi a strokec

rg int Ti traw:marker-start RrT 9Ti

ooT <!ATTLIST style:properties traw:marker-start %styleName;tIMPLIEt<

5cmc6 End arkerThis attribSte speiiiies a stroke end markers thiih is a path that ian be ionneited to the end oi a strokec

rg int Ti traw:marker-ent RrT 9Ti

ooT <!ATTLIST style:properties traw:marker-ent %styleName;tIMPLIEt<

5cmcm tart arker DidthThis attribSte speiiiies the tidth oi the marker at the start oi the strokec

rg int Ti traw:marker-start-witthRrT 9Ti

ooT <!ATTLIST style:properties traw:marker-start-witth %length;tIMPLIEt<

5cmcr End arker DidthThis attribSte speiiiies the tidth oi the marker at the end oi thestrokec

rg int Ti traw:marker-ent-witth RrT 9Ti

ooT <!ATTLIST style:properties traw:marker-ent-witth %length;tIMPLIEt<

5cmc tart arker CenterThis attribSte speiiiies thether or not a start marker is ientered at the start oi a strokec

rg int Ti traw:marker-start-center RrT 9Ti

ooT <!ATTLIST style:properties traw:marker-start-center %boolean; tIMPLIEt<

Chapter 5 Graphic Content 365

Page 366: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5cmc02 End arker CenterThis attribSte speiiiies thether or not an end marker is ientered at the end oi a strokec

rg int Ti traw:marker-ent-centerRrT 9Ti

ooT <!ATTLIST style:properties traw:marker-ent-center %boolean;tIMPLIEt<

5cmc00 OpaiityThis attribSte speiiiies the opaiity oi a strokec

rg int Ti svg:stroke-opacityRrT 9Ti The raaSe oi this attribSte ian be a nSmber betteen 2 iiSaay transparento and 0 iiSaay opaqSeo or

in a perientagec

ooT <!ATTLIST style:properties svg:stroke-opacity (%floatOrPercentage; tIMPLIEt<

5cmc0 JointThis attribSte speiiiies the shape at the iorners oi paths or other reitor shapess then they are strokedc

rg int Ti svg:stroke-lineioin RrT 9Ti

ooT <!ATTLIST style:properties svg:stroke-linejoin (miter|round|

bevel|middle|none|inherit) #IMPLIED>

5cr Fiaa Propertiesr ieuTTioIno Iu 9ir9 tiu1iOpenOiiiiecorgioI4Ai41tito 1teeuo inI.ioI 99i4I i49ienTTnA9Ti

● tyae

● Coaor

● Gradient

● Gradient step ioSnt

● Oatih

● oaid hatih

● Bitmap

● Transpareniy

366 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 367: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5crc0 tyaeThis attribSte speiiiies the iiaa styae ior a graphii objeitc Graphii objeits that are not iaoseds sSih as a pathtithoSt a iaosepath at the ends tiaa not be iiaaedc The iiaa operation does not aStomatiiaaay iaose aaa open sSbpathsby ionneiting the aast point oi the sSbpath tith the iirst point oi the sSbpath beiore painting the iiaac

rg int Ti traw:fillRrT 9Ti

ooT <!ATTLIST style:properties traw:fill (none|solit|bitmap|gratient|hatchy tIMPLIEt<

5crc CoaorThis attribute speiiiies the ioaor oi the iiaa ior a graphii objeitc

rg int Ti traw:fill-colorRrT 9Ti

ooT <!ATTLIST style:properties traw:fill-color %color; tIMPLIEt<

5crc4 GradientThis attribSte speiiiies a gradient styae that is Ssed ior iiaaing graphii objeitsc

rg int T traw:fill-gratient-nameRrT 9T

ooT <!ATTLIST style:properties traw:fill-gratient-name %styleName;tIMPLIEt<

5crc9 Gradient tep CoSnt i a gradient is Ssed ior iiaaings yoS ian set the gradient step ioSnt oi the ioaor interpoaation to be a ii.ed raaSec

rg int Ti traw:gratient-step-countRrT 9Ti By deiaSats the step ioSnt is aStomatiiaaay iaaiSaated based on the sike and resoaStion oi the

iiaaed areac

ooT <!ATTLIST style:properties traw:gratient-step-count (auto|%value;y tIMPLIEt<

5crc5 OatihThis attribSte speiiiies a hatih styae that is Ssed ior iiaaingc

rg int T traw:fill-hatch-nameRrT 9T

Chapter 5 Graphic Content 367

Page 368: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T traw:fill-hatch-nameooT <!ATTLIST style:properties traw:fill-hatch-name %styleName;

tIMPLIEt<

5crc6 oaid OatihThis attribSte speiiiies thether the baikgroSnd oi a hatih iiaaing is soaid or transparentc

rg int T traw:fill-hatch-solitRrT 9T

ooT <!ATTLIST style:properties traw:fill-hatch-solit %boolean;tIMPLIEt<

5crcm BitmapThe ioaaoting attribStes are Ssed then an area is to be iiaaed tith a bitmapc

mageThe iiaa image attribSte speiiiies a L that ainks to a <traw:fill-image< eaementc

rg int Ti traw:fill-image-nameRrT 9Ti

ooT <!ATTLIST style:properties traw:fill-image-name %styleName;tIMPLIEt<

endering tyae bitmap image ian either be rendered in the giren sikes stretihed to the iiaaed areas or tiaed orer the areac Thestyae repeat attribSte speiiiies hot the bitmap image shoSad be treatedc

rg int Ti style:repeatRrT 9Ti The raaSe oi this attribSte ian be no-repeats repeats or stretchc ooT <!ATTLIST style:properties style:repeat (no-repeat|repeat|

stretchy tIMPLIEt<

ikeThese optionaa sike attribStes ian be Ssed to orerride the aogiiaa sike oi the soSrie image datac

rg int Ti traw:fill-image-witth and traw:fill-image-heightRrT 9Ti i the raaSe oi the style:repeat attribSte is stretchs these attribStes are ignoredcooT <!ATTLIST style:properties

traw:fill-image-witth %lengthOrPercentage; tIMPLIEttraw:fill-image-height %lengthOrPercentage; tIMPLIEt<

368 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 369: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Tiae eierenie PointThese reierenie point attribStes speiiiy the point inside the soSrie image that is Ssed as the top aeit starting pointior tiaingc

rg int Ti traw:refX and traw:refYRrT 9Ti These attribStes are onay interpreted ii the raaSe oi the iSrrent style:repeat attribSte is

repeatc ooT <!ATTLIST style:properties traw:refX %percentage; tIMPLIEt

traw:refY %percentage; tIMPLIEt<

Tiae TransaationThis attribSte deiines the transaation oi eaih tiae in reaation to the prerioSs tiaec

rg int Ti traw:tile-repeat-offsetRrT 9Ti This attribSte is onay interpreted ii the raaSe oi the iSrrent style:repeat attribSte is

tiletc The raaSe oi this attribSte is a perientage raaSe representing the tiaes repeat oiiset reaa-tire to the tiaes height or tidths ioaaoted by either the tord horivontal or verticalc

ooT <!ENTITY % tile-repeat-offset "CtATA"<<!ATTLIST style:properties traw:tile-repeat-offset %tile-repeat-offset; tIMPLIEt<

E4oT TiuT iI419T4un1

<style:properties traw:tile-repeat-offsetp"40% horivontal"/<

5crcr TranspareniyThe iiaa area oi a graphii objeit ian either hare nones ainears or gradient transpareniyc None and ainear transpar-eniy is seaeited Ssing the traw:transparency attribStes thiae gradient transpareniy is seaeited Ssing thetraw:transparency-name attribStec

None and Linear TranspareniyThe traw:transparency attribSte disabaes transpareniy or sets a ainear transpareniy ior the iiaa area oi agraphii objeitc

rg int Ti traw:transparencyRrT 9Ti

ooT <!ATTLIST style:propertiestraw:transparency %transparency; tIMPLIEt<

Gradient TranspareniyThe traw:transparency-name attribSte speiiiies a transpareniy gradient that deiines the transpareniy iorthe iiaa area oi a graphii objeitc Dhen appaying a transpareniy gradients the transpareniy is interpoaated asdeiined in the reierenied transpareniy gradient styaec This iiaa styae is rendered independentay irom other iiaa

Chapter 5 Graphic Content 369

Page 370: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

styaes aike gradients images and hatihc

rg int Ti traw:transparency-nameRrT 9Ti The raaSe oi this attribSte orerides the traw:transparency attribStecooT <!ATTLIST style:properties traw:transparency-name %

styleName; tIMPLIEt<

5c Te.t nimation PropertiesDrating objeits that iontain te.t and te.t irames ian hare optionaa animation propertiesc These properties aataysanimate the iompaete te.t oi a drating objeit or te.t iramec The ioaaoting attribStes deiine the te.t animation:

● nimation

● nimation direition

● nimation start inside

● nimation stop inside

● nimation repeat

● nimation deaay

nimationThis attribSte speiiiies the type oi animation that is Ssed ior the te.tc

rg int Ti text:animationRrT 9Ti The raaSe oi this attribSte ian be one oi the ioaaoting:

• nones disabaes the te.t animationc• scrolls siroaas the te.t irom one side to anotherc• alternates siroaas the te.t irom one side to another and baikc• slites siroaas the te.t irom one side to the originaa te.t position and stops therec

ooT <!ATTLIST style:properties text:animation(none|scroll|alternate|slitey tIMPLIEt<

nimation DireitionThis attribSte speiiiies the siroaa direition oi animated te.tc

rg int Ti text:animation-tirectionRrT 9Ti

ooT <!ATTLIST style:properties text:animation-tirection(left|right|up|towny tIMPLIEt<

370 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 371: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

nimation tart nsideThis attribSte speiiiies thether or not te.t animation starts at the originaa position oi the te.tc

rg int Ti text:animation-start-insiteRrT 9Ti

ooT <!ATTLIST style:properties text:animation-start-insite%boolean; tIMPLIEt<

nimation top nsideThis attribSte speiiiies thether or not te.t animation stops at the originaa position oi the te.tc

rg int Ti text:animation-stop-insiteRrT 9Ti

ooT <!ATTLIST style:properties text:animation-stop-insite%boolean; tIMPLIEt<

nimation epeatThis attribSte speiiiies the nSmber oi times the animation is repeatedc i the raaSe oi the attribSte is 0s the anima-tion is repeated indeiiniteayc

rg int Ti text:animation-repeatRrT 9Ti

ooT <!ATTLIST style:properties text:animation-repeat%integer; tIMPLIEt<

nimation DeaayThis attribSte speiiiies a deaay beiore the animation is startedc

rg int Ti text:animation-telayRrT 9Ti To ioniorm tith O r620s the iormat oi the raaSe oi this attribSte is PnYnMntTnmnMnS.

ee eition 5c5c4c oi O r620 ior more detaiaed iniormation on this time iormatc ee thePreiaie ior a pointer to O r620c

ooT <!ATTLIST style:properties text:animation-telay%timeturation; tIMPLIEt<

Chapter 5 Graphic Content 371

Page 372: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c02 Te.t Properties

5c02c0 Sto Grot Didth and OeightThese attribStes speiiiy thether or not to aStomatiiaaay inirease the tidth and height oi the te.t ii te.t is added toa drating objeitc

rg int Ti traw:auto-grow-witthtraw:auto-grow-height

RrT 9Ti

ooT <!ATTLIST style:propertiestraw:auto-grow-witth %boolean; tIMPLIEttraw:auto-grow-height %boolean; tIMPLIEt<

5c02c Fit To ikeThis attribSte speiiiies thether or not to stretih the te.t iontent oi a drating objeit to iiaa the entire objeitc i theraaSe oi the attribSte is trues the te.t iontent is stretihedc

rg int Ti traw:fit-to-siveRrT 9Ti

ooT <!ATTLIST style:properties traw:fit-to-sive %boolean tIMPLIEt<

5c02c4 Te.t rea Vertiiaa aignThis attribSte speiiiies the rertiiaa aaignment oi the te.t area inside a shapec

rg int Ti traw:textarea-vertical-alignRrT 9Ti

ooT <!ATTLIST style:propertiestraw:textarea-vertical-align

(top|mittle|bottom|iustifyy tIMPLIEt<

5c02c9 Te.t rea Oorikontaa aignThis attribSte speiiiies the horikontaa aaignment oi the te.t area inside a shapec

rg int Ti traw:textarea-horivontal-alignRrT 9Ti

ooT <!ATTLIST style:propertiestraw:textarea-horivontal-align

(left|center|right|iustifyy tIMPLIEt<

372 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 373: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c00 Graphii Properties

5c00c0 Coaor ode The ioaor mode styae aiieits the oStpSt oi ioaors irom a soSrie bitmap or raster graphiic

rg int Ti traw:color-mote RrT 9Ti

ooT <!ENTITY % color-mote ; (greyscale|mono|watermark|stantarty<<!ATTLIST style:properties traw:color-mote %color-mote;tIMPLIEt<

5c00c Coaor nrersionThe ioaor inrersion attribSte speiiiies thether or not the ioaors in the graphii shape shoSad be inrertedc

rg int Ti traw:color-inversionRrT 9Ti

ooT <!ATTLIST style:properties traw:color-inversion %boolean;tIMPLIEt<

5c00c4 djSst LSminanie The aSminanie attribSte speiiiies a signed perientage raaSe that aiieits the oStpSt aSminanie oi a bitmap or rastergraphiic

rg int Ti traw:luminance RrT 9Ti

ooT <!ATTLIST style:properties traw:luminance %signet-percent;tIMPLIEt<

5c00c9 djSst Contrast The iontrast attribSte speiiiies a signed perientage raaSe that aiieits the oStpSt iontrast oi a bitmap or rastergraphiic

rg int Ti traw:contrast RrT 9Ti

ooT <!ATTLIST style:properties traw:contrast %signet-percent;tIMPLIEt<

Chapter 5 Graphic Content 373

Page 374: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c00c5 djSst Gamma The gamma attribSte speiiiies a raaSe that aiieits the oStpSt gamma oi a bitmap or raster graphiic

rg int Ti traw:gamma RrT 9Ti

ooT <!ATTLIST style:properties traw:gamma %signet-percent;tIMPLIEt<

5c00c6 djSst ed The red attribSte speiiiies a signed perientage raaSe that aiieits the oStpSt oi the red ioaor spaie oi a bitmap orraster graphiic

rg int Ti traw:ret RrT 9Ti

ooT <!ATTLIST style:properties traw:ret %signet-percent;tIMPLIEt<

5c00cm djSst Green The green attribSte speiiiies a signed perientage raaSe that aiieits the oStpSt oi the green ioaor spaie oi a bitmapor raster graphiic

rg int Ti traw:green RrT 9Ti

ooT <!ATTLIST style:properties traw:green %signet-percent;tIMPLIEt<

5c00cr djSst BaSe The baSe attribSte speiiiies a signed perientage raaSe that aiieits the oStpSt oi the baSe ioaor spaie oi a bitmap orraster graphiic

rg int Ti traw:blue RrT 9Ti

ooT <!ATTLIST style:properties traw:blue %signet-percent;tIMPLIEt<

5c00c djSst TranspareniyThis attribSte adjSsts the transpareniy oi an imagec

374 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 375: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:transparencyRrT 9Ti The raaSe oi this attribSte ian be an integer in the range irom -022 to 022c

ooT <ENTITY % transparency "CtATA"<<!ATTLIST style:properties traw:transparency %transparency;tIMPLIEt<

5c0 hadot Properties ost drating objeits ian hare a shadotc The ioaaoting attribStes speiiiy hot the shadot is renderedc

hadotThis attribSte enabaes or disabaes the risibiaity oi a shadotc

rg int Ti traw:shatowRrT 9Ti

ooT <!ATTLIST style:properties traw:shatow (visible|hittenytIMPLIEt<

OiisetTo render a shadots a iopy oi the shape is rendered in the singae shadot ioaor behind the shapec The oiisetattribStes speiiiy the oiiset betteen the top aeit edge oi the shape and the top aeit edge oi the border c

rg int Ti traw:shatow-tistance-x and traw:shatow-tistance-yRrT 9Ti

ooT <!ATTLIST style:propertiestraw:shatow-offset-x %length; tIMPLIEttraw:shatow-offset-y %length; tIMPLIEt<

CoaorThe shadot ioaor attribSte speiiiies the ioaor in thiih the shadot is renderedc

rg int Ti traw:shatow-colorRrT 9Ti

ooT <!ATTLIST style:propertiestraw:shatow-color %color; tIMPLIEt<

TranspareniyThe shadot transpareniy attribSte speiiiies the transpareniy in thiih the shadot is renderedc

Chapter 5 Graphic Content 375

Page 376: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:shatow-transparency RrT 9Ti The raaSe oi this attribSte is a perientage raaSec

ooT <!ATTLIST style:propertiestraw:shatow-transparency %percent; tIMPLIEt<

5c04 Conneitor Properties

tart Line paiingThe start aine spaiing attribStes modiiy the aine spaiing at the start point oi a ionneitor shapec

rg int Ti traw:start-line-spacing-horivontaltraw:start-line-spacing-vertical

RrT 9Ti

ooT <!ATTLIST style:propertiestraw:start-line-spacing-horivontal %tistance; tIMPLIEttraw:start-line-spacing-vertical %tistance; tIMPLIEt<

End Line paiingThe end aine spaiing raaSes modiiy the aine spaiing at the end point oi a ionneitor shapec

rg int Ti traw:ent-line-spacing-horivontaltraw:ent-line-spacing-vertical

RrT 9Ti

ooT <!ATTLIST style:propertiestraw:ent-line-spacing-horivontal %tistance; tIMPLIEttraw:ent-line-spacing-vertical %tistance; tIMPLIEt<

5c09 easSre Properties

Line DistanieThe traw:line-tistance attribSte speiiiies the distanie irom the reierenie points to the measSre ainec

rg int Ti traw:line-tistanceRrT 9Ti

ooT <!ATTLIST style:propertiestraw:line-tistance %tistance; tIMPLIEt<

GSide OrerhangThe gSides are the tto aines irom the reierenie points to the measSre ainec The traw:guite-overhangattribSte speiiiies the distanie that the gSides are dratn aiter they iross the measSre ainec

376 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 377: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:guite-overhangRrT 9Ti

ooT <!ATTLIST style:propertiestraw:guite-overhang %tistance; tIMPLIEt<

GSide DistanieThe traw:guite-tistance attribSte speiiiies the distanie betteen the reierenie points and the measSreaine there the drating oi the gSides startsc

rg int Ti traw:guite-tistanceRrT 9Ti

ooT <!ATTLIST style:propertiestraw:guite-tistance %tistance; tIMPLIEt<

tart GSideThe traw:start-guite attribSte speiiiies the oiiset to the start oi the gSide irom the iirst reierenie point tothe measSre ainec

rg int Ti traw:start-guiteRrT 9Ti

ooT <!ATTLIST style:propertiestraw:start-guite %tistance; tIMPLIEt<

End GSideThe traw:ent-guite attribSte speiiiies the oiiset to the start oi the gSide irom the aast reierenie point to themeasSre ainec

rg int Ti traw:ent-guiteRrT 9Ti

ooT <!ATTLIST style:propertiestraw:ent-guite %tistance; tIMPLIEt<

PaaiingThe traw:placing attribSte speiiiies thether the measSre aine is rendered beaot or abore the edge deiinedby the tto reierenie pointsc

rg int Ti traw:placingRrT 9Ti The raaSe oi this attribSte ian be below or abovecooT <!ATTLIST style:properties

traw:placing (below|abovey tIMPLIEt<

Chapter 5 Graphic Content 377

Page 378: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ParaaaeaThe traw:parallel attribStes toggaes ii the te.t is paraaaea to the measSre aine or perpendiiSaarc

rg int Ti traw:parallelRrT 9Ti

ooT <!ATTLIST style:propertiestraw:parallel %boolean; tIMPLIEt<

Te.t aignmentThese attribStes determine the te.t aaignment reaatire to the measSre ainec

rg int Ti traw:measure-aligntraw:measure-vertical-align

RrT 9Ti i raaSe oi this attribSte is automatics the appaiiation ihooses the best positioncooT <!ATTLIST style:properties

traw:measure-align(automatic|left-outsite|insite|right-outsiteytIMPLIEt

traw:measure-vertical-align(automatic|above|below|centery tIMPLIEt<

nitThis attribSte speiiiies the Snit Ssed in the te.tSaa presentation oi a measSre shapec

rg int Ti traw:unitRrT 9Ti

ooT <!ATTLIST style:propertiestraw:unit

(automatic|mm|cm|m|km|pt|pc|inch|ft|miy tIMPLIEt<

hot nitThis attribSte toggaes the dispaay oi the Snit in the te.tSaa presentation oi a measSre shapec

rg int Ti traw:show-unitRrT 9Ti

ooT <!ATTLIST style:propertiesshow-unit %boolean; tIMPLIEt<

Deiimaa PaaiesThis attribSte speiiiies the nSmber oi deiimaa paaies that are Ssed ior the measSre te.tc

378 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 379: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:tecimal-placesRrT 9Ti

ooT <!ATTLIST style:propertiestecimal-places %nonNegativeLength; tIMPLIEt<

5c05 Caption PropertiesThe ioaaoting attribStes ian be Ssed in the styaes ior iaption shapesc

● Type

● ngae type

● ngae

● Gap

● Esiape direition

● Esiape

● Line aength

● Fit aine aength

TypeThis attribSte speiiiies the geometry oi the aine oi a iaptionc

rg int Ti traw:caption-typeRrT 9Ti

ooT <!ATTLIST style:properties traw:caption-type (straight-line|anglet-line|anglet-connector-liney tIMPLIEt<

ngae TypeThis attribSte speiiiies ii the esiape angae oi the aine oi a iaption is ii.ed or ireec i this is set to free the appai-iation ian ihoose the best possibae angaec

rg int Ti caption-angle-typeRrT 9Ti

ooT <!ATTLIST style:propertiestraw:caption-angle-type (fixet|freey tIMPLIEt<

ngaeThis attribSte speiiiies the esiape angae oi the aine oi a iaptionc

Chapter 5 Graphic Content 379

Page 380: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:caption-angleRrT 9Ti

ooT <!ATTLIST style:propertiestraw:caption-angle %nonNegativeInteger; tIMPLIEt<

GapThis attribSte speiiiies the distanie betteen the te.t area oi the iaption and the start oi the ainec

rg int Ti traw:caption-gapRrT 9Ti

ooT <!ATTLIST style:propertiestraw:caption-gap %tistance; tIMPLIEt<

Esiape DireitionThis attribSte speiiiies the esiape direition ior the aine oi a iaptionc

rg int Ti traw:caption-escape-tirectionRrT 9Ti

ooT <!ATTLIST style:properties traw:caption-escape-tirection(horivontal|vertical|autoy tIMPLIEt<

EsiapeThis attribSte speiiiies the esiape distanie ior the aine oi a iaptionc

rg int Ti traw:caption-escapeRrT 9Ti

ooT <!ATTLIST style:propertiestraw:caption-escape %lengthOrPercentage; tIMPLIEt<

Line LengthThis attribSte speiiiies the aength oi the iaption ainec

rg int Ti traw:caption-line-lengthRrT 9Ti

ooT <!ATTLIST style:propertiestraw:caption-line-length %tistance; tIMPLIEt<

Fit Line Length i this attribSte is trSes the appaiiation determines the best possibae aength ior the iaption ainec

380 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 381: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti traw:caption-fit-line-lengthRrT 9Ti

ooT <!ATTLIST style:propertiestraw:caption-fit-line-length %boolean; tIMPLIEt<

5c06 4D Geometry Properties

Oorikontaa egments i the geometry oi a 4D objeit is generated dSring rSn-times yoS ian ihoose the nSmber oi horikontaa segmentsthat are Ssed to generate the geometry Ssing the tr3t:horivontal-segments attribStec

rg int Ti tr3t:horivontal-segmentsRrT 9Ti VaaSes betteen and 56 are iSrrentay sSpportedc

ooT <!ATTLIST style:propertiestr3t:horivontal-segements %nonNegativeNumber;tIMPLIEt<

Vertiiaa egments i the geometry oi a 4D objeit is generated dSring rSn-times yoS ian ihoose the nSmber oi rertiiaa segments thatare Ssed to generate the geometryc

rg int Ti tr3t:vertical-segmentsRrT 9Ti VaaSes betteen and 56 are iSrrentay sSpportedc

ooT <!ATTLIST style:propertiestr3t:vertical-segements %nonNegativeNumber; tIMPLIEt<

Edge oSnding i the geometry oi a 4D objeit is generated dSring rSn-times yoS ian ihoose the sike oi an area at the edge oi thegeometry that is Ssed ior roSnding the edgesc

rg int Ti tr3t:etge-rountingRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:etge-rounting %percentage; tIMPLIEt<

Edge oSnding odeThe tr3t:etge-rounting-mote attribSte speiiiies hot to generate roSnded edgesc

Chapter 5 Graphic Content 381

Page 382: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti tr3t:etge-rounting-moteRrT 9Ti The raaSe oi this attribSte ian be correct or numberc i the raaSe is corrects a mathe-

matiiaaay iorreit method is Ssedc i the raaSe is attractives a method thiih preserres therisSaa appearanie oi the te.t is Ssedc

ooT <!ATTLIST style:propertiestr3t:etge-rounting-mote (correct|attractivey tIMPLIEt<

Baik iaaeThe tr3t:back-scale attribSte speiiiies the proportion oi the baikgroSnd geometry ior aathe and e.trSdeobjeitsc

rg int Ti tr3t:back-scaleRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:back-scale %percentage; tIMPLIEt<

DepthThe tr3t:tepth attribSte speiiiies the e.trSsion depth ior e.trSde objeitsc

rg int Ti tr3t:tepthRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:tepth %length; tIMPLIEt<

Baikiaie CSaaingThe tr3t:backface-culling attribSte enabaes or disabaes baikiaie iSaaingc

rg int Ti tr3t:backface-cullingRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:backface-culling (enablet|tisablety tIMPLIEt<

5c0m 4D Lighting Properties

odeThe tr3t:lighting-mote attribSte determines the aighting aagorithm Ssed to render the iorresponding 4Dobjeitc

382 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 383: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti tr3t:lighting-moteRrT 9Ti The raaSe oi this attribSte ian be stantart or touble-sitetc i the raaSe is touble-

sitets the rererse sides oi the objeits are aaso aightedcooT <!ATTLIST style:properties

tr3t:lighting-mote (stantart|touble-sitety tIMPLIEt<

Normaas 2indThe tr3t:tepth attribSte speiiiies hot the normaa settings ior aighting are generatedc

rg int Ti tr3t:tepthRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:normals-kint (obiect|flat|spherey tIMPLIEt<

Normaas DireitionThe tr3t:normals-tirection attribSte aaaots yoS to inrerse the generated normaa aighting settingsc

rg int Ti tr3t:normals-tirectionRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:normals-tirection (normal|inversey tIMPLIEt<

5c0r 4D Te.tSre Properties

Generation odeThese attribStes speiiiy hot the te.tSre ioordinates are generatedc

rg int Ti tr3t:texture-generation-mote-xtr3t:texture-generation-mote-y

RrT 9Ti

ooT <!ATTLIST style:propertiestr3t:texture-generation-mote-x

(obiect|parallel|spherey tIMPLIEttr3t:texture-generation-mote-y

(obiect|parallel|spherey tIMPLIEt<

2indThe tr3t:texture-kint attribSte aaaots yoS to seaeit thether the te.tSre ihanges the aSminanies intensitysor ioaor oi the shapec

Chapter 5 Graphic Content 383

Page 384: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti tr3t:texture-kintRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:texture-kint (luminance|intesity|colory tIMPLIEt<

FiaterThe tr3t:texture-filter attribSte aaaots yoS to enabae or disabae te.tSre iiateringc

rg int Ti tr3t:texture-filterRrT 9Ti

ooT <!ATTLIST style:properties tr3t:texture-filter(enablet|tisablety tIMPLIEt<

odeThe tr3t:normals-tirection attribSte aaaots yoS to speiiiy hot the te.tSre is modSaatedc

rg int Ti tr3t:normals-tirectionRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:normals-tirection (normal|inversey tIMPLIEt<

5c0 4D ateriaa Properties

CoaorsThese attribStes speiiiy the ioSr ioaors that deiine a materiaac

rg int Ti tr3t:ambient-colortr3t:emissive-colortr3t:specular-colortr3t:tiffuse-color

RrT 9Ti

ooT <!ATTLIST style:propertiestr3t:ambient-color %color; tIMPLIEttr3t:emissive-color %color; tIMPLIEttr3t:specular-color %color; tIMPLIEttr3t:tiffuse-color %color; tIMPLIEt<

hininessThe tr3t:shininess attribSte speiiiies the shine oi the Ssed materiaac

384 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 385: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti tr3t:shininessRrT 9Ti

ooT <!ATTLIST style:propertiestr3t:shininess %percentage; tIMPLIEt<

5c 2 4D hadot PropertiesThe tr3t:shatow attribSte enabaes or disabaes a three-dimensionaa shadot ior a three-demensionaa objeitc

rg int T tr3t:shatowRrT 9T

ooT <!ATTLIST style:propertiestr3t:shatow (visible|hitteny tIMPLIEt<

5c 0 Layer etsLayer sets deiine a set oi aayersc

rg int Ti <traw:layer-set<RrT 9Ti CSrrentay there ian onay be one aayer set ior a Drat or mpress doiSmentc

ooT <!ELEMENT traw:layer-set (traw:layeray<

5c 0c0 LayerEaih aayer is deiined and reierenied by a namec Eaih drating objeit inside a drating or impress doiSment ianbe assigned to a aayerc Layers rirtSaaay groSp the shapesc Eaih shape that is assigned to a aayer inherits the settingsoi the aayerc

rg int Ti <traw:layer<RrT 9Ti

ooT <!ELEMENT traw:layer EMPTY<<!ATTLIST traw:layer traw:name %layerName; teEt|IeEt<

5c GaSe PointsGaSe points are designated points on the area oi a drating objeit to thiih a ionneitor shape ian ionneitc ostdrating objeits hare ioSr standard gaSe points at the ioSr edges oi the objeitc YoS ian add yoSr otn iSstom gaSepoints to a drating objeit by inserting one or more oi the ioaaoting eaements inside a drating objeit eaementc

5c c0 GaSe PointThe gaSe point eaement ireates a singae Sser-deiined gaSe point ii paaied inside a drating objeit eaements iore.ampaes a <traw:rectangle< eaementc

Chapter 5 Graphic Content 385

Page 386: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <traw:glue-point<RrT 9Ti

ooT <!ELEMENT traw:glue-point EMPTY<<!ATTLIST traw:glue-point

traw:it %integer; teEt|IeEtsvg:x %coortinateOrPercentage; teEt|IeEtsvg:y %coortinateOrPercentage; teEt|IeEt<

aignThe traw:align attribSte speiiiies the aaignment beharior oi the gaSe point ii the drating objeit is resikedc

rg int Ti traw:alignRrT 9Ti

ooT <!ATTLIST traw:glue-point traw:align (top-left|top|top-right|left|center|right|bottom-left|bottom-righty tIMPLIEt<

Esiape DireitionThe traw:escape-tirection attribSte speiiiies the direition in thiih the ionneition aine esiapes irom thedrating objeit ii a ionneitor ionneits to the gaSe pointc

rg int Ti traw:escape-tirectionRrT 9Ti

ooT <!ATTLIST traw:glue-point traw:escape-tirection (auto|left|right|up|town|horivontal|verticaly tIMPLIEt<

5c 4 Presentation Page LayoSts presentation page aayoSt is a iontainer ior paaiehoaderss thiih deiine a set oi empty presentation objeitss iore.ampaes a titae or oStainec These paaiehoaders are Ssed as tempaates ior ireating net presentation objeits and tomark the sike and position oi an objeit ii the presentation page aayoSt oi a drating page is ihangedc

rg int Ti <style:presentation-page-layout<RrT 9Ti

ooT <!ELEMENT style:presentation-page-layout presentation:placeholtera<<!ATTLIST style:presentation-page-layout

style:name %styleName; teEt|IeEt< n Ti For presentations onayc

5c 4c0 Presentation PaaiehoaderThe presentation paaiehoader eaement speiiiies a paaiehoader ior presentation objeitss ior e.ampaes a titae oroStainec

386 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 387: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <presentation:placeholter<RrT 9Ti

ooT <!ENTITY % presentation-obiect "(title|outline|subtitle|text|graphic|obiect|chart|orgchart|table|page|notes|hantouty" <<!ELEMENT presentation:placeholter EMPTY<<!ATTLIST presentation:placeholter presentation:obiect %presentation-obiect; teEt|IeEt<<!ATTLIST presentation:placeholter svg:x %coortinateOrPercentage; teEt|IeEt<<!ATTLIST presentation:placeholter svg:y %coortinateOrPercentage; teEt|IeEt<<!ATTLIST presentation:placeholter svg:witth %lengthOrPercentage; teEt|IeEt<<!ATTLIST presentation:placeholter svg:height %lengthOrPercentage; teEt|IeEt<

5c 9 Presentation Page ttribStesYoS ian add transitions iades and aSdio eiieits to eaih presentation page Ssing the ioaaoting optionaa presentationattribStes:

● Transition Type

● Transition tyae

● Transition peed

● Page DSration

● Page Visibiaity

● oSnd

● BaikgroSnd ike

● BaikgroSnd Objeits Visibae

● BaikgroSnd Visibae

The transition attribStes are iontained in the styae eaement oi the pagec

5c 9c0 Transition TypeYoS ian set the mode oi transitions ior e.ampae manSaas Ssing the transition-type attribStec

rg int Ti presentation:transition-typeRrT 9Ti

ooT <!ENTITY % transition-type ; (manual|automatic|semi-automaticy<<!ATTLIST style:properties presentation:transition-type %transition-type; "manual"<

n Ti For presentations onayc

Chapter 5 Graphic Content 387

Page 388: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c 9c Transition tyaeThe transition-style attribSte speiiiies the tay that eaih presentation page repaaies the prerioSs pres-entation pages ior e.ampae aeit-to-right repaaiements or iadingc

rg int Ti presentation:transition-styleRrT 9Ti

ooT <!ENTITY % page-transition "(none|fate-from-left|fate-from-top|fate-from-right|fate-from-bottom|fate-to-center|fate-from-center|move-from-left|move-from-top|move-from-right|move-from-bottom|roll-from-left|roll-from-right|roll-from-bottom|vertical-stripes|horivontal-stripes|clockwise|counterclockwise|fate-from-upperleft|fate-from-upperright|fate-from-lowerleft|fate-from-lowerright|close-vertical|close-horivontal|open-vertical|open-horivontal|spiralin-left|spiralin-right|spiralout-left|spiralout-right|tissolve|wavyline-from-left|wavyline-from-top|wavyline-from-right|wavyline-from-bottom|rantom|stretch-from-left|stretch-from-top|stretch-from-right|stretch-from-bottom|vertical-lines|horivontal-lines|move-from-upperleft|move-from-upperright|move-from-lowerright|move-from-lowerleft|uncover-to-left|uncover-to-upperleft|uncover-to-top|uncover-to-upperright|uncover-to-right|uncover-to-lowerright|uncover-to-bottom|uncover-to-lowerleft|vertical-checkerboart|horivontal-checkerboarty"<<!ATTLIST style:properties presentation:transition-style %page-transition; "none"<

n Ti For presentations onayc

5c 9c4 Transition peedThe transition-speed attribSte iontroas the speed at thiih a presentation page is remored irom dispaaysand repaaied by a net presentation pagec

rg int Ti presentation:transition-speetRrT 9Ti

ooT <!ENTITY % speet (slow|metium|fasty<<!ATTLIST style:properties presentation:transition-speet %speet; "metium"<

n Ti For presentations onayc

5c 9c9 Page DSrationThe page-duration attribSte iontroas the amoSnt oi time that the presentation page is dispaayedc T

388 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 389: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti presentation:page-turationRrT 9Ti

ooT <!ATTLIST style:properties presentation:page-turation %timeturation; tIMPLIEt<

n Ti For presentations onayc

5c 9c5 Page VisibiaityYoS ian mark a drating page as hidden dSring a presentation by Ssing the visibility attribStec pagemarked tith this attribSte is onay shotn thiae editing the doiSment bSt not dSring the presentationc

rg int Ti presentation:visibilityRrT 9Ti

ooT <!ENTITY %visibility (visible|hitteny<<!ATTLIST style:properties presentation:visibility (visible|hitteny "visible"<

n Ti For presentations onayc

5c 9c6 oSndYoS ian add soSnd eiieits to yoSr presentation pages Ssing the sound eaementc

rg int Ti presentation:sountRrT 9Ti

ooT <!ELEMENT presentation:sount EMPTY<<!ATTLIST presentation:sount xlink:href %url; tIMPLIEtxlink:type (simpley tFIXEt "simple"xlink:show (embety "embet"xlink:actuate (onLoaty "onLoat"<

n Ti For presentations onayc

5c 9cm BaikgroSnd ikeThis attribSte speiiiies thether the baikgroSnd oi a page is rendered on the iSaa page or onay inside the borders oithe pagec

rg int Ti traw:backgrount-siveRrT 9Ti

ooT <!ATTLIST style:propertiestraw:backgrount-sive (full|bortery tIMPLIEt<

5c 9cr BaikgroSnd Objeits VisibaeThis attribSte speiiiies thether or not to hide objeits on the baikgroSnd oi the master page then dispaaying the

Chapter 5 Graphic Content 389

Page 390: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

presentation pagec

rg int Ti presentation:backgrount-obiects-visibleRrT 9Ti

ooT <!ATTLIST style:properties presentation:backgrount-obiects-visible %boolean; tIMPLIEt<

n Ti For presentations onayc

5c 9c BaikgroSnd VisibaeThis attribSte speiiiies thether or not to hide the baikgroSnd oi the master page then dispaaying the presentationpagec

rg int Ti presentation:backgrount-visibleRrT 9Ti

ooT <!ATTLIST style:properties presentation:backgrount-visible %boolean; tIMPLIEt<

n Ti For presentations onayc

5c 5 Presentation ettings

5c 5c0 PresentationThe settings ior a presentation are stored in a <presentation:settings< eaement inside an <office:boty< eaementc These settings aiieit the beharioSr ii the doiSment is dispaayed in a presentationc

rg int Ti <presentation:settings<RrT 9Ti

ooT <!ELEMENT presentation:settings (presentation:showya< n Ti For presentations onayc

The attribStes that yoS ian assoiiate tith the <presentation:settings< eaement are:● tart page

● hot

● FSaa sireen

● Endaess

● PaSse

● hot aogo

● Forie manSaa

● oSse risibae

390 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 391: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● oSse as pen

● tart tith narigator

● aaot animation

● Transition on iaiik

● tay on top

tart pageThis attribSte speiiiies the name oi the page on thiih the presentation startsc

rg int Ti presentation:start-pageRrT 9Ti i this attribSte is sets it orerides the presentation:show attribStecooT <!ATTLIST presentation:settings

presentation:start-page %styleName tIMPLIEt< n Ti For presentations onayc

hotThis attribSte speiiiies the name oi a shot that is Ssed ior the presentationc

rg int Ti presentation:showRrT 9Ti i the presentation:start-page attribSte is sets it orerides the raaSe oi this

attribStec

ooT <!ATTLIST presentation:settingspresentation:show %styleName tIMPLIEt<

n Ti For presentations onayc

FSaa ireenThis attribSte determines thether the presentation is dispaayed in iSaa sireen mode or in a tindotc

rg int Ti presentation:full-screenRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:full-screen %boolean; "true"<

n Ti For presentations onayc

EndaessThis attribSte stitihes indeiinite repetition oi a presentation on and oiic

Chapter 5 Graphic Content 391

Page 392: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti presentation:entlessRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:entless %boolean; "false"<

n Ti For presentations onayc

PaSse i a presentation is repeated indeiiniteays this attribSte speiiiies a time dSration ior dispaaying a paSse sireenbeiore the presentation is paayed againc i this attribSte is not set or has a raaSe oi 2s a paSse sireen is notdispaayed in endaess modec

rg int Ti presentation:pauseRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:pause %timeturation; tIMPLIEt<

n Ti For presentations onayc

hot LogoThis attribSte speiiiies thether or not a presentation appaiiation shots its aogo on the paSse sireenc

rg int Ti presentation:show-logoRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:show-logo %boolean; "false"<

n Ti For presentations onayc

Forie anSaa i sets this attribSte orerides the attribSte presentation:transition-type and sets it to manualc

rg int Ti presentation:force-manualRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:force-manual %boolean; "false"<

n Ti For presentations onayc

oSse VisibaeThis attribSte speiiiies thether or not the moSse pointer is risibae dSring a presentationc

392 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 393: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti presentation:mouse-visibleRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:mouse-visible %boolean; "true"<

n Ti For presentations onayc

oSse s PenThis attribSte speiiiies ii the moSse pointer is dispaayed as a pen or a pointerc i the moSse is dispaayed as a penthe Sser ian drat sketihes on the pages dSring a presentationc

rg int Ti presentation:mouse-as-penRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:mouse-as-pen %boolean; "false"<

n Ti For presentations onayc

tart Dith NarigatorThis attribSte speiiiies thether or not the narigator tindot is initiaaay dispaayed dSring a presentationc

rg int Ti presentation:start-with-navigatorRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:start-with-navigator %boolean; "false"<

n Ti For presentations onayc

nimationsThis attribSte enabaes or disabaes the paaybaik oi bitmap animations dSring a presentationc

rg int Ti presentation:animationsRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:animations (enablet|tisablety "enablet"<

n Ti For presentations onayc

Transition On CaiikThis attribSte enabaes or disabaes a manSaa transition by a moSse iaiik on the saide dSring a presentationc

Chapter 5 Graphic Content 393

Page 394: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti presentation:transition-on-clickRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:transition-on-click (enablet|tisablety"enablet"<

n Ti For presentations onayc

tay On Top i this attribSte is set to trues the presentation tindot is dispaayed on top oi other tindots dSring a presenta-tionc

rg int Ti presentation:stay-on-topRrT 9Ti

ooT <!ATTLIST presentation:settingspresentation:stay-on-top %boolean; "false"<

n Ti For presentations onayc

5c 5c hots presentation doiSment ian iontain one or more shotsc shot enabaes yoS to iSstomike the order in thiih thepages are dispaayed dSring a presentationc YoS ian aaso omit pages irom the presentation or repeat the pagesdSring the presentationc

rg int Ti <presentation:show<RrT 9Ti This eaement is optionaac

ooT <!ELEMENT presentation:show EMPTY< n Ti For presentations onayc

The attribStes that yoS ian assoiiate tith the <presentation:show< eaement are:● Name

● Pages

NameThis attribSte SniqSeay identiiies a <presentation:show< eaementc

rg int Ti presentation:nameRrT 9Ti

ooT <!ATTLIST presentation:showpresentation:name %styleName; teEt|IeEt<

394 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 395: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

PagesThis attribSte iontains a iomma separated aist oi page namesc The pages are dispaayed in the order in thiih theyare aisted dSring a presentation that Sses this shotc Pages ian be iniaSded more than oniec

rg int Ti presentation:pagesRrT 9Ti

ooT <!ATTLIST presentation:showpresentation:pages CtATA teEt|IeEt<

5c 6 Presentation nimations n a presentation doiSments shapes ian be animatedc Eaih presentation page ian hare an optionaa <presenta-tion:animations< eaements thiih is a iontainer ior animation eiieitsc The animation is e.eiSted then thepage is dispaayed dSring a presentationc

rg int Ti <presentation:animations<RrT 9Ti

ooT <!ELEMENT presentation:animations(presentation:show-shape|presentation:show-text|presentation:hite-shape|presentation:hite-text|presentation:tim|presentation:playya<

oT 14un1Tuu4un19T

The iSrrent iiae iormat speiiiiiation is more ie.ibae than the iSrrent soittare impaementationcThe iSrrent impaementation oi the OpenOiiiiecorg mpress appaiiation onay sSpports one shotand one hide eiieit per shape tith an additionaa shot and hide te.t and one dim and soSndeiieitc

5c 6c0 oSndYoS ian iniaSde the <presentation:sount< eaement in any animation eiieit that sSpports soSndc ThesoSnd iiae reierenied by the Xaink attribStes is paayed then the eiieit is e.eiStedc

rg int Ti <presentation:sount<RrT 9Ti

ooT <!ELEMENT presentation:sount EMPTY<<!ATTLIST presentation:sountxlink:href %urieeference; teEt|IeEtxlink:type (simpley tFIXEt "simple"xlink:show (new|replacey tIMPLIEtxlink:actuate (oneequesty "oneequest"<

The attribStes that yoS ian assoiiate tith the apresentation:sount< eaement are:● Paay iSaa

Chapter 5 Graphic Content 395

Page 396: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Paay FSaa i the raaSe oi this attribSte is trues the ne.t eiieit starts aiter the soSnd is paayedc i the raaSe oi this attribSte isfalses the ne.t eiieit starts then the iSrrent eiieit is iinishedc

rg int Ti presentation:play-fullRrT 9Ti

ooT <!ATTLIST presentation:sountpresentation:play-full %boolean; tIMPLIEt<

5c 6c hot hapeThe <presentation:show-shape< eaement makes a shape risibaec i there is a <presentation:show-shape< eaement ior one shapes this shape is aStomatiiaaay inrisibae beiore the eiieit is e.eiStedc

rg int Ti <presentation:show-shape<RrT 9Ti

ooT a!ELE ENT presentation:shot-shape ipresentation:soSndo?<

The attribStes that yoS ian assoiiate tith the apresentation:show-shape< eaement are:● hape

● Eiieit

● Direition

● peed

● tart iaae

● Path

hapeThis attribSte speiiiies the shape oi this eiieit Ssing a shape Dc

rg int Ti traw:shape-itRrT 9Ti

ooT <!ATTLIST presentation:show-shapetraw:shape-it %shapeIt; teEt|IeEt<

EiieitThis attribSte speiiiies the type oi eiieitc

396 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 397: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti presentation:effectRrT 9Ti

ooT <!ENTITY % presentationEffects "(none|fate|move|stripes|open|close|tissolve|wavyline|rantom|lines|laser|appear|hite|move-short|checkerboart|rotate|stretchy" <<!ATTLIST presentation:show-shapepresentation:effect %presentationEffects; "none"<

DireitionThis attribSte speiiiies the direition oi the eiieitc This is reaerant ior some eiieits onayc

rg int Ti presentation:tirectionRrT 9Ti

ooT <!ENTITY % presentationEffecttirections "(none|from-left|from-top|from-right|from-bottom|from-center|from-upper-left|from-upper-right|from-lower-left|from-lower-right|to-left|to-top|to-right|to-bottom|to-upper-left|to-upper-right|to-lower-right|to-lower-left|path|spiral-inwart-left|spiral-inwart-right|spiral-outwart-left|spiral-outwart-right|vertical|horivontal|to-center|clockwise|counter-clockwisey"<<!ATTLIST presentation:show-shape presentation:tirection %presentationEffecttirections; "none"<

peedThis attribSte speiiiies the speed oi the eiieitc

rg int Ti presentation:speetRrT 9Ti

ooT <!ENTITY % presentationSpeets "(slow|metium|fasty" <<!ATTLIST presentation:show-shape presentation:speet %presentationSpeets; "metium"<

tart iaae ome eiieits siaae a shape dSring e.eiStion oi the eiieitc This attribSte speiiiies the start sike oi the shape as aperientage oi its originaa sikec

rg int Ti presentation:start-scaleRrT 9Ti

ooT <!ATTLIST presentation:show-shapepresentation:start-scale %percentage; "100%"<

PathThis optionaa attribSte appaies to move eiieitsc The attribSte speiiiies the path to a poaygonc The eiieit mores

Chapter 5 Graphic Content 397

Page 398: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

aaong the aines oi the speiiiied poaygonc The poaygon is not risibae dSring the presentationc

rg int Ti presentation:path-itRrT 9Ti

ooT <!ATTLIST presentation:show-shapepresentation:path-it %shapeIt; tIMPLIEt<

5c 6c4 hot Te.tThis eaement makes the te.t oi a shape risibaec i there is a <show-text< eaement ior one shapes the te.t oi theshape is aStomatiiaaay inrisibae beiore the eiieit is e.eiStedc

rg int Ti <presentation:show-text<RrT 9Ti

ooT <!ELEMENT presentation:show-text (presentation:sounty?<<!ATTLIST presentation:show-text traw:shape-it %shapeIt; teEt|IeEt< presentation:effect %presentationEffects; "none" presentation:tirection %presentationEffecttirections; "none" presentation:speet %presentationSpeets; "metium" presentation:start-scale %percentage; "100%" presentation:path-it %shapeIt; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the apresentation:show-text< eaement are:● hapes Eiieits Direitions peeds tart iaaes Path l see eition 5c 6c

5c 6c9 Oide hapeThis eaement makes a shape inrisibaec

rg int Ti <presentation:hite-shape<RrT 9Ti

ooT <!ELEMENT presentation:hite-shape (presentation:sounty?<<!ATTLIST presentation:hite-shape traw:shape-it %shapeIt; teEt|IeEt presentation:effect %presentationEffects; "none" presentation:tirection %presentationEffecttirections; "none" presentation:speet %presentationSpeets; "metium" presentation:start-scale %percentage; "100%" presentation:path-it %shapeIt; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the apresentation:hite-shape< eaement are:● hapes Eiieits Direitions peeds tart iaaes Path l see eition 5c 6c

398 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 399: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

5c 6c5 Oide Te.tThis eaement makes the te.t oi a shape inrisibaec

rg int Ti <presentation:hite-text<RrT 9Ti

ooT <!ELEMENT presentation:hite-text (presentation:sounty?<<!ATTLIST presentation:hite-text traw:shape-it %shapeIt; teEt|IeEt presentation:effect %presentationEffects; "none" presentation:tirection %presentationEffecttirections; "none" presentation:speet %presentationSpeets; "metium" presentation:start-scale %percentage; "100%" presentation:path-it %shapeIt; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the apresentation:hite-text< eaement are:● hapes Eiieits Direitions peeds tart iaaes Path l see eition 5c 6c

5c 6c6 DimThis eaement iiaas a shape in a singae ioaorc

rg int Ti <presentation:tim<RrT 9Ti

ooT <!ELEMENT presentation:tim (presentation:sounty?<<!ATTLIST presentation:tim traw:shape-it %shapeIt;teEt|IeEt<

The attribStes that yoS ian assoiiate tith the apresentation:tim< eaement are:● hape l see eition 5c 6c

● Coaor

CoaorThis attribSte speiiiies the ioaor that is Ssed to iiaa the shape then the shape is dimmedc

rg int Ti traw:colorRrT 9Ti

ooT <!ATTLIST presentation:tim traw:color %color; teEt|IeEt<

5c 6cm PaayThis eaement starts the animation oi a shape that sSpports animationc

Chapter 5 Graphic Content 399

Page 400: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <presentation:play<RrT 9Ti

ooT <!ELEMENT presentation:play EMPTY<<!ATTLIST presentation:play

traw:shape-it %shapeIt; teEt|IeEtpresentation:speet %presentationSpeets; "metium"<

The attribStes that yoS ian assoiiate tith the apresentation:play< eaement are:● hape D and peed l see eition 5c 6c

400 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 401: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

6 Form Content

This ihapter desiribes the OpenOiiiiecorg X L representation oi iorms and iontroasc This ihapter iontains theioaaoting seitions:

● Forms

● Controas

● Common Form and Controa ttribStes

● Common Controa ttribStes

● Erents

● Properties

6c0 Forms iorm is a iontainer ior Sser interiaie iontroas thiih a Sser interaits tithc For e.ampaes bSttonss te.t bo.essiheik bo.ess and drop-dotn aists are Sser interiaie iontroas that ian be iontained in a iormc n the OpenOiiiiecorg X L iiae iormats the ioaaoting basii rSaes appay to Sser interiaie iontroas and iorms:

● YoS mSst aoiate erery iontroa in a iormc

● iontroa that is not hidden mSst iontain te.t or hare an absoaSte positionc se a irame iontaining a reierenieto the iontroa to represent the position oi the iontroac

● YoS ian nest iormsc

● Forms are not ionneited tith the te.t iaot and aayoSt oi a doiSmentc This does not appay to iontroasc

● Forms ian be data-atarec The iontroas reiaeit the iontent oi a databasec

Forms deiine rSaes ior the ioaaoting iorm beharioSr:

● Sbmitting the iorms thiih is simiaar to OT L 9c20c Note: YoS ian not sSbmit nested iorms and iontroas thatian not be ionrerted to OT Lc

● Conneiting to a data soSriec Dhen this happenss the iontroas in a iorm beiome data-atarec

nI9i4I ion14u1 tiu1ir iFlrrovaerluofti9 oun1inei41iOpenOiiiiecorgirg itnor 1ii

6c0c0 FormThe <form:form< eaement represents a Sser interiaie iorm and deiines the iontents and properties oi the iormc

401

CHAPTER 6

Page 402: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <form:form<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● The <office:forms< eaement oi a doiSmentc● nother <form:form< eaementcThe eaement iontains the ioaaoting items:

● The iontroas and sSb-iorms in the iormc

● <form:properties< eaement that deiines the properties oi the iormc● <office:events< eaement that iontains the erents ior the iormc

ooT <!ELEMENT form:form (form:properties?, office:events?, (form:control|form:formyay<<!ATTLIST form:form %name; %service-name;<

The attribStes that yoS ian assoiiate tith the <form:form< are as ioaaots:● Namec ee eition 6c4c

● erriie namec ee eition 6c4c

● ition

● Target irame

● ethod

● Enitype

● aaot deaetes

● aaot inserts

● aaot Spdates

● ppay iiater

● Command type

● Command

● Data soSrie

● aster iieads

● Detaia iieads

● Esiape proiessing

● Fiater

● gnore resSat

● Narigation mode

● Order

● Tabbing iyiae

402 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 403: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

itionThe xlink:href attribSte represents the L oi the proiessing agent ior the iormc

rg int T xlink:hrefRrT 9T

ooT <!ATTLIST form:form xlink:href %url; tIMPLIEt<

Target FrameThe office:target-frame attribSte speiiiies the target irame oi the iormc ee Chapter ior more detaiaediniormation aboSt this attribStec

rg int T office:target-frameRrT 9T This attribSte ian hare one oi the ioaaoting raaSes:

● _self: The iorm repaaies the iontent oi the iSrrent iramec● _blank: The iorm is dispaayed in a net iramec● _parent: The iorm is dispaayed in the parent irame oi the iSrrent iramec● _top: The iorm is dispaayed in the topmost irames that is the irame that iontains the iSrrent

irame as a ihiad or desiendent bSt is not iontained tithin another iramec

● irame name: The iorm is dispaayed in the named iramec i the named irame does not e.ists anet irame tith that name is ireatedc

ooT <!ATTLIST form:form office:target-frame CtATA "_blank"<

ethodThe form:methot attribSte speiiiies the OTTP method to Sse to sSbmit the data in the iorm to the serrerc

rg int T form:methotRrT 9T The raaSe oi this attribSte ian be get or postc The deiaSat raaSe is getc These raaSes are not

iase sensitirec

ooT <!ATTLIST form:form form:methot CtATA "get"<

Enitype i the raaSe oi the form:methot attribSte is posts the form:enctype attribSte speiiiies the iontent typeSsed to sSbmit the iorm to the serrerc

rg int T form:enctypeRrT 9T The deiaSat raaSe oi this attribSte is application/x-www-form-urlencotetc Other sSit-

abae E types are aaso aiieptabaec

ee eition 0mc4 oi the STss e.dW Tpecification ior more iniormationc ee the Preiaie ior apointer to this speiiiiiationc

ooT <!ATTLIST form:form form:enctype CtATA "application/x-www-form-urlencotet"<

Chapter 6 Form Content 403

Page 404: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

aaot DeaetesThe form:allow-teletes attribSte speiiiies thether or not data reiords ian be deaetedc

rg int T form:allow-teletesRrT 9T The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST form:form form:allow-teletes %boolean; "true"<

aaot nsertsThe form:allow-inserts attribSte speiiiies thether or not net data reiords ian be insertedc

rg int T form:allow-insertsRrT 9T The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST form:form form:allow-inserts %boolean; "true"<

aaot pdatesThe form:allow-uptates attribSte speiiiies thether or not data reiords ian be Spdatedc

rg int T form:allow-uptatesRrT 9T The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST form:form form:allow-uptates %boolean; "true"<

ppay FiaterThe form:apply-filter attribSte speiiiies thether or not iiaters shoSad be appaied to the iormc

rg int T form:apply-filterRrT 9T The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST form:form form:apply-filter %boolean; "false"<

Command TypeThe form:commant-type attribSte speiiiies the type oi iommand to e.eiSte on the data soSriec

rg int T form:commant-typeRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● table: The iommand iontains a tabae namec The iorm retrieres aaa oi the data in the tabaec● query : The iommand iontains the name oi qSeryc The iorm retrieres and e.eiStes the

qSeryc

● commant : The iommand iontainss ior e.ampaes an oL statementc The iorm e.eiStes the oL statementc

ooT <!ATTLIST form:form form:commant-type (table|query|commanty"commant"<

404 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 405: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

CommandThe form:commant attribSte speiiiies the iommand to e.eiSte on the data soSriec

rg int T form:commantRrT 9T The raaSe oi this attribSte ian be the name oi a database tabae s the name oi a qSery objeit or an

oL statementc

ooT <!ATTLIST form:form form:commant CtATA tIMPLIEt<

Data oSrieThe form:tatasource attribSte speiiiies the name oi a data soSrie to Sse ior the iormc

rg int T form:tatasourceRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● L speiiiying a database ionneitionc

● data soSrie name that OpenOiiiiecorg Sses to estabaish database ionneitionsc

ooT <!ATTLIST form:form form:tatasource CtATA tIMPLIEt<

aster FieadsThe form:master-fielts attribSte is Ssed ior nested database iormsc The attribSte speiiiies the names oithe ioaSmns in the parent iorm resSat setc The ioaSmns are SsSaaay the ioreign key iieads oi the parent iormc TheraaSes oi the ioaSmns are Ssed to identiiy the data ior the sSbiormc Eaih time the parent iorm ihanges the iSrrentrots the sSbiorm qSeries the database again based on the raaSes oi the master iieadsc

rg int T form:master-fieltsRrT 9T This attribSte ian iontain a iomma separated aist oi iiead namesc

ooT <!ATTLIST form:form form:master-fielts CtATA tIMPLIEt<

Detaia FieadsThe form:tetail-fielts attribSte is Ssed ior nested database iormsc The attribSte speiiiies the names oithe ioaSmns in sSbiorms that are reaated to ioaSmns in the parent iormc The parent iorm is speiiiied Ssing theform:master-fielts attribStec The ioaSmns represent part oi the primary key iieads or their aaiasesc TheioaSmns are Ssed as parameters in the iommand ior the nested iorm to retriere the detaias ior a matihing masteriormc

rg int T form:tetail-fieltsRrT 9T This attribSte ian iontain a iomma separated aist oi iiead namesc

ooT <!ATTLIST form:form form:tetail-fielts CtATA tIMPLIEt<

Esiape ProiessingmS the value oS the form:commant-type attribute is commants the form:escape-processing attributes eciSies whether or not the a lication rocesses the commana beSore the aatabase ariver.

Chapter 6 Form Content 405

Page 406: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T form:escape-processingRrT 9T The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST form:form form:escape-processing %boolean; "true"<

FiaterThe form:filter attribSte speiiiies a iiater ior the iommandc The iiater is SsSaaay part oi the TmEeE ionditionin an oL qSeryc The form:apply-filter attribute s eciSies whether or not Silters are a liea to thecommana.

rg int T form:filterRrT 9T

ooT <!ATTLIST form:form form:filter CtATA tIMPLIEt<

gnore esSatThe form:ignore-result attribSte speiiiies thether or not to disiard aaa resSats that are retriered irom thedata soSriec

rg int T form:ignore-resultRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ATTLIST form:form form:ignore-result %boolean; "false"<

Narigation odeThe form:navigation-mote attribSte speiiiies hot the reiords in a database iorm are narigatedc

rg int T form:navigation-moteRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● none: narigation bar is not proridedc The iorm mSst be narigated Ssing the T B and O FTsT B keys on the keyboardc

● current: A narigation bar is prorided and the narigation is periormed on the iSrrent iormc● parent: A narigation bar is prorided and the narigation is periormed on the parent iorm oi

the iSrrent iormc

ooT <!ENTITY %navigation "(none|current|parenty"<<!ATTLIST form:form form:navigation-mote %navigation;tIMPLIEt<

OrderThe form:orter attribSte speiiiies a sort iriteria ior the iommandc The sort is SsSaaay part oi the OetEeiondition in an oL qSeryc

406 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 407: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T form:orterRrT 9T

ooT <!ATTLIST form:form form:orter CtATA tIMPLIEt<

Tabbing CyiaeThe form:tab-cycle attribSte speiiiies hot the appaiiation responds then the Sser presses the T B key inthe iontroas in a iormc The beharior oi the appaiiation depends on thether or not the iorm is boSnd to a datasoSriec

rg int T form:tab-cycleRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● recorts: i a Sser presses the T B key in the aast iontroa oi the iorms the ioiSs mores tothe iirst iontroa speiiiied in the tab order ior the ne.t reiord oi the same iormc

● current: i a Sser presses the T B key in the aast iontroa oi the iorms the ioiSs mores tothe iirst iontroa speiiiied in the tab order ior the same reiordc

● pagep i a Sser presses the T B key in the aast iontroa oi a iorms the ioiSs mores to the iirstiontroa speiiiied in the tab order ior the ne.t iormc

ooT <!ENTITY %cycles "(recorts|current|pagey"<<!ATTLIST form:form form:tab-cycle %cycles; tIMPLIEt<

6c Controas sers Sse iontroas to interait tith iormsc Eaih iontroa in a iorm is identiiied by a namec Controas are notionneited to the te.t iaot oi a doiSmentc Controas are ionneited to a iorm by binding them to a shape that aits asa paaiehoader ior the iontroac

The <form:control< eaement represents a iontroac

rg int T <form:control<RrT 9T

ooT <!ENTITY % controls "(form:text|form:textarea|form:fixet-text|form:file|form:passwort|form:formattet-text|form:button|form:image|form:checkbox|form:ratio|form:listbox|form:combobox|form:frame|form:hitten|form:image-frame|form:grit|form:generic-controly"<<!ELEMENT form:control (%controls;ty<<!ATTLIST form:control %name; %service-name; %control-it;<

Erery iontroa has the ioaaoting tto raaSes:

● n initiaa raaSe

● iSrrent raaSe

Both raaSes are iharaiter stringsc n generaas the initiaa raaSe is speiiiied in a form:value attribSte oi the<form:control< eaementc The initiaa raaSe oi a iontroa does not ihangec

Chapter 6 Form Content 407

Page 408: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The iSrrent raaSe is initiaaay set to the initiaa raaSec Thereaiter the iSrrent raaSe ian be modiiied dSring Sser inter-aition and siriptingc Dhen a iorm is resets the iSrrent raaSe oi eaih iontroa is reset to the initiaa raaSe ior theiontroac i a iontroa does not hare an initiaa raaSes the resSat oi resetting the iorm is Sndeiinedc

Dhen a Sser sSbmits a iorm ior proiessings the names oi some iontroas are paired tith the iSrrent raaSes oi theiontroas and the pairs are sSbmitted tith the iormc These iontroas are iaaaed sSiiessiSa iontroasc ee eition0mc04c oi the STss e.dW Tpecification ior more iniormationc ee the Preiaie ior a pointer to this speiiiiiationc

YoS ian aaso aink iontroas to a database iieadc The iontroa reieires a raaSe irom a data soSriec The modiiied datais stored in the data soSrie instead oi in the doiSmentc

Controas iontain attribStess thiih are deiined by the iiae iormatc ome appaiiations reqSire additionaa iontroaattribStesc These attribStes arestored in the <form:properties< eaement in eaih iontroac Controa erents arespeiiiied in the <office:events< eaementcThe OpenOiiiiecorg X L iiae iormat prorides eaements ior the ioaaoting standard iontroas:

● Te.t

● Te.t area

● Passtord

● Fiae

● Formatted te.t

● Fi.ed te.t

● Combo bo.

● List bo.

● BStton

● mage

● Cheik bo.

● adio bStton

● Frame

● mage irame

● Oidden

● Grid

YoS ian aaso deiine appaiiation-speiiiii iontroasc These iontroas are desiribed by the aform:generic-control< eaementc

6c c0 Te.tThe <form:text< eaement deiines a iontroa ior inpStting te.ts thiih aaso aaaots a Sser to aater the te.tdispaayedc

408 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 409: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <form:text<RrT 9T

ooT <!ELEMENT form:text (form:properties?, office:events?y<<!ATTLIST form:text %current-value; %tisablet; %max-length; %printable; %reatonly; %tab-intex; %tab-stop; %title; %value; %convert-empty; %tata-fielt;<

The attribStes that yoS ian assoiiate tith the <form:text< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds CSrrent VaaSes Disabaeds a.imSm Lengths Printabaes ead onays Tab nde.s Tab tops Titae andVaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

● Conrert Empty and Data Fieadc ee eition 6c9c0 ior iniormation aboSt these attribStesc

6c c Te.t reaThe <form:textarea< eaement deiines a iontroa ior inpStting te.t on mSatipae ainess thiih aaso aaaots a Sserto aater the te.t dispaayedc

rg int T <form:textarea<RrT 9T

ooT <!ELEMENT form:textarea (form:properties?, office:events?y<<!ATTLIST form:textarea %current-value; %tisablet; %max-length; %printable; %reatonly; %tab-intex; %tab-stop; %title; %value; %convert-empty; %tata-fielt;<

The attribStes that yoS ian assoiiate tith the <form:textarea< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds CSrrent VaaSes Disabaeds a.imSm Lengths Printabaes ead onays Tab nde.s Tab tops Titae andVaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

● Conrert Empty and Data Fieadc ee eition 6c9c0 ior iniormation aboSt these attribStesc

Chapter 6 Form Content 409

Page 410: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

6c c4 PasstordThe <form:passwort< eaement deiines a iontroa that hides the te.t that a Sser inpSts Ssing an eiho iharaitersior e.ampaes an asteriskc This type oi iontroa is oiten Ssed ior inpStting sensitire te.t sSih as a passtordc

rg int T <form:passwort<RrT 9T

ooT <!ELEMENT form:passwort (form:properties?, office:events?y<<!ATTLIST form:passwort %tisablet; %max-length; %printable; %tab-intex; %tab-stop; %title; %value;<

The attribStes that yoS ian assoiiate tith the <form:passwort< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds Disabaeds a.imSm Lengths Printabaes Tab nde.s Tab tops Titae and VaaSec ee eition 6c9 ioriniormation aboSt these attribStesc

● Eiho Char

Eiho CharThe form:echo-char attribSte speiiiies the iharaiter that the iorm Sses in paaie oi the te.t that a Sser inpStsin a passtord iontroac

rg int T form:echo-charRrT 9T

ooT <!ATTLIST form:passwort form:echo-char CtATA "a"<

6c c9 FiaeThe <form:file< eaement deiines a iontroa ior seaeiting a iiaec

rg int T <form:file<RrT 9T

ooT <!ELEMENT form:file (form:properties?, office:events?y<<!ATTLIST form:file %current-value; %tisablet; %max-length; %printable; %reatonly; %tab-intex; %tab-stop; %title; %value;<

The attribStes that yoS ian assoiiate tith the <form:file< eaement are:

410 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 411: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds CSrrent VaaSes Disabaeds Printabaes ead onays Tab nde.s Tab tops Titae and VaaSec ee eition6c9 ior iniormation aboSt these attribStesc

6c c5 Formatted Te.tThe <form:formattet-text< eaement deiines a iontroa ior inpStting iormatted te.ts thiih aaso aaaots aSser to aater the te.t dispaayedc

rg int T <form:formattet-text<RrT 9T

ooT <!ELEMENT form:formattet-text (form:properties?, office:events?y<<!ATTLIST form:formattet-text %current-value; %tisablet; %max-length; %printable; %reatonly; %tab-intex; %tab-stop; %title; %value; %convert-empty; %tata-fielt;<

The attribStes that yoS ian assoiiate tith the <form:formattet-text< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds CSrrent VaaSes Disabaeds a.imSm Lengths Printabaes ead onays Tab nde.s Tab tops Titae andVaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

● Conrert Empty and Data Fieadc ee eition 6c9c0 ior iniormation aboSt these attribStesc

● a.imSm VaaSe

● inimSm VaaSe

● Vaaidation

a.imSm VaaSeThe form:max-value attribSte speiiiies the ma.imSm raaSe that a Sser ian enterc

rg int T form:max-valueRrT 9T

ooT <!ATTLIST form:formattet-text form:max-value CtATA tIMPLIEt<

inimSm VaaSeThe form:min-value attribSte speiiiies the minimSm raaSe that a Sser ian enterc

Chapter 6 Form Content 411

Page 412: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T form:min-valueRrT 9T

ooT <!ATTLIST form:formattet-text form:min-value CtATA tIMPLIEt<

VaaidationThe form:valitation attribSte speiiiies thether or not the te.t that the Sser enters is raaidatedc

rg int T form:valitationRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ATTLIST form:formattet-text form:valitation %boolean;

"false"<

6c c6 Fi.ed Te.tThe <form:fixet-text< eaement attaihes additionaa iniormation to iontroas and dispaays the iniormation inthe appaiiationc The iniormation is aaso dispaayed in error messages and tarnings ior the reaated iontroasc eaa-tions ian be estabaished by speiiiying the form:for attribSte oi the aabeac Onay one aabea may be assoiiatedtith the same iontroac

rg int T <form:fixet-text<RrT 9T

ooT <!ELEMENT form:fixet-text (form:properties?, office:events?y<<!ATTLIST form:fixet-text %for; %tisablet; %label; %printable; %title;<

The attribStes that yoS ian assoiiate tith the <form:fixet-text< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds Disabaeds Fors Labeas Printabaes and Titaec ee eition 6c9 ior iniormation aboSt these attribStesc

● Sati-Line

Sati-LineThe form:multi-line attribSte speiiiies thether or not the aabea is dispaayed on mSatipae ainesc

rg int T form:multi-lineRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ATTLIST form:fixet-text form:multi-line %boolean; "false"<

6c cm Combo Bo.The <form:combobox< eaement deiines a iontroa iontaining a aist oi possibae raaSes ior a te.t inpSt iontroac

412 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 413: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <form:combobox<RrT 9T

ooT <!ELEMENT form:combobox (form:properties?, office:events?,form:itemay<<!ATTLIST form:combobox %current-value; %tisablet; %troptown; %max-length; %printable; %reatonly; %sive; %tab-intex; %tab-stop; %title; %value; %convert-empty; %tata-fielt; %list-source; %list-source-type;<

The attribStes that yoS ian assoiiate tith the <form:combobox< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds CSrrent VaaSes Disabaeds Dropdotns a. Lengths Printabaes ead onays ikes Tab nde.s Tab tops Titaes and VaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

● Conrert Emptys Data Fieads List oSries and List oSrie Typec ee eition 6c9c0 ior iniormation aboSt theseattribStesc

● Stomatii Compaetion

Stomatii CompaetionThe form:auto-complete attribSte speiiiies that then a Sser enters te.t in the iombobo. that matihes oneoi the aist items in the iombobo.s the appaiiation iompaetes the te.t ior the Sserc

rg int T form:auto-completeRrT 9T

ooT <!ATTLIST form:combobox form:auto-complete %boolean; tIMPLIEt<

6c cr temThe <form:item< eaement deiines the aist items ior a iombobo. iontroac

rg int T <form:item<RrT 9T

ooT <!ELEMENT form:item (tPCtATAy<<!ATTLIST form:item %label;<

The attribSte that yoS ian assoiiate tith the <form:item< eaement is:● Labeac ee eition 6c9 ior iniormation aboSt this attribStec

Chapter 6 Form Content 413

Page 414: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

6c c List Bo.The <form:listbox< eaement deiines an inpSt iontroa that aaaots a Sser to seaeit one or more items irom aaistc t is another representation oi a groSp oi radio bSttonsc

rg int T <form:listbox<RrT 9T

ooT <!ELEMENT form:listbox (form:properties?, office:events?,form:optionay<<!ATTLIST form:listbox %tisablet; %troptown; %printable; %sive; %tab-intex; %tab-stop; %title; %bount-column; %tata-fielt; %list-source; %list-source-type;<

The attribStes that yoS ian assoiiate tith the <form:listbox< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds Disabaeds Dropdotns Printabaes ead onays ikes Tab nde.s Tab tops and Titaec ee eition 6c9ior iniormation aboSt these attribStesc

● BoSnd CoaSmns Data Fieads List oSries and List oSrie Typec ee eition 6c9c0 ior iniormation aboSt theseattribStesc

● Satipae

SatipaeThe form:multiple attribSte determines thether or not a Sser ian seaeit mSatipae items irom a aist bo.c

rg int T form:multipleRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ATTLIST form:listbox form:multiple %boolean; "false"<

6c c02 OptionThe <form:option< eaement deiines the aist items ior a aist bo. iontroac n item ian be preseaeited and ianiontain a reaated raaSec

rg int T <form:option<RrT 9T

ooT <!ELEMENT form:option (tPCtATAy<<!ATTLIST form:option %current-selectet; %selectet; %label; %value;<

414 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 415: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The attribStes that yoS ian assoiiate tith the <form:option< eaement are:● CSrrent eaeiteds eaeiteds Labeas and VaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

6c c00 BSttonThe <form:button< eaement deiines a bSttonc se a value attribSte to deiine the iontent oi the bSttoncDhen presseds a bStton SsSaaay triggers an aitionc

rg int T <form:button<RrT 9T

ooT <!ELEMENT form:button (form:properties?, office:events?y<<!ATTLIST form:button %button-type; %tisablet; %image-tata; %printable; %tab-intex; %tab-stop; %target-frame; %target-location; %title; %value;<

The attribStes that yoS ian assoiiate tith the aform:button< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● BStton Types Controa Ds Disabaeds mage Datas Printabaes Tab nde.s Tab tops Target Frames Target Loia-tions Titaes and VaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

● DeiaSat BStton

DeiaSat BSttonThe form:tefault-button attribSte determines thether or not the bStton is the deiaSat bStton on the iormc i a Sser iaiiks the deiaSat bStton or presses etSrns the appaiiation takes the same aitionc

rg int T form:tefault-buttonRrT 9T The raaSe oi this attribSte ian be true or falsec

i yoS deiine more than one deiaSat bSttons the beharioSr oi the appaiiation is Sndeiinedc

ooT <!ATTLIST form:tefault-button %boolean; "false"<

6c c0 mageThe <form:image< eaement deiines a graphiiaa bStton iontroac This eaement iorresponds to the inpSt eaementoi type image in OT L 9c20c n TiOT L 9c20 onay aaaots the bStton type to be sSbmit ior an image bSttonc nOpenOiiiiecorg X Ls an image bStton ian be oi any typec

Chapter 6 Form Content 415

Page 416: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <form:image<RrT 9T

ooT <!ELEMENT form:image (form:properties?, office:events?y<<!ATTLIST form:image %button-type; %tisablet; %image-tata; %printable; %tab-intex; %tab-stop; %target-frame; %target-location; %title; %value;<

The attribStes that yoS ian assoiiate tith the <form:image< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● BStton Types Controa Ds Disabaeds mage Datas Printabaes Tab nde.s Tab tops Target Frames Target Loia-tions Titaes and VaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

6c c04 Cheik Bo. iheik bo. is an onsoii iontroa thiih a Sser ian toggaec The iontroa is on then the raaSe oi the form:current-state attribSte assoiiated tith the iontroa eaement is checketc Dhen a Sser sSbmits a iorms onaythe iontroas those iSrrent state is checket are sSiiessiSac

rg int T <form:checkbox<RrT 9T

ooT <!ELEMENT form:checkbox (form:properties?, office:events?y<<!ATTLIST form:checkbox %tisablet; %label; %printable; %tab-intex; %tab-stop; %title; %value; %tata-fielt;<

The attribStes that yoS ian assoiiate tith the <form:checkbox< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds Disabaeds Labeas Printabaes Tab nde.s Tab tops Titaes and VaaSec ee eition 6c9 ior iniormationaboSt these attribStesc

● Data Fieadc ee eition 6c9c0 ior iniormation aboSt this attribStec

● CSrrent tate

● s Tristate

● tate

416 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 417: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

CSrrent tateThe form:current-state attribSte speiiiies the iSrrent state oi the iheik bo. iontroac i the raaSe oi thisattribSte is sets it orerrides the iSrrent statec

rg int T form:current-stateRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● unchecket: The iheik bo. is not iheikedc● checket: The iheik bo. is iheikedc The raaSe oi the iontroa is sSbmitted tith the iormc● unknown: This raaSe is onay araiaabae then the iontroa is in tristate modec se this raaSe in

ionneition tith data iiead binding to indiiate that the raaSe is N LLc

ooT <!ENTITY % states "(unchecket|checket|unknowny"<<!ATTLIST form:checkbox form:current-state %states; tIMPLIEt<

s TristateThe form:is-tristate attribSte speiiiies that the iheik bo. ian hare three states instead oi the iommontto statesc

rg int T form:is-tristateRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ATTLIST form:checkbox form:is-tristate %boolean; "false"<

tateThe form:state attribSte speiiiies the deiaSat state oi the iheik bo. iontroac This state is Ssed to initiaaise theiontroac

rg int T form:stateRrT 9T

ooT <!ATTLIST form:checkbox form:state %states; "unchecket"<

6c c09 adio BStton adio bSttons are aike iheik bo.es e.iept that then sereraa radio bSttons share the same iontroa name they aremStSaaay e.iaSsirec Dhen one bStton is ons aaa oi the other bSttons tith the same name are oiic i no radio bSttonis initiaaay ons the tay in thiih the appaiiation ihooses thiih bStton to tSrn on initiaaay is Sndeiinedc

i a groSp oi radio bSttons is boSnd to one database iieads the raaSe oi the seaeited radio bStton is tritten into thedatabase iieadc

Chapter 6 Form Content 417

Page 418: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <form:ratio<RrT 9T

ooT <!ELEMENT form:ratio (form:properties?, office:events?y<<!ATTLIST form:ratio %current-selectet; %tisablet; %label; %printable; %selectet; %tab-intex; %tab-stop; %title; %value; %tata-fielt;<

The attribStes that yoS ian assoiiate tith the <form:ratio< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds CSrrent eaeiteds Disabaeds Labeas Printabaes eaeiteds Tab nde.s Tab tops Titaes and VaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

● Data Fieadc ee eition 6c9c0 ior iniormation aboSt this attribStec

6c c05 FrameThe <form:frame< eaement deiines a irames thiih yoS ian Sse to arrange iontroas risSaaayc This eaement doesnot hare a raaSe and it does not aaaot any Sser inpStc

rg int T <form:frame<RrT 9T

ooT <!ELEMENT form:frame (form:properties?, office:events?y<<!ATTLIST form:frame %tisablet; %for; %label; %printable; %title;<

The attribStes that yoS ian assoiiate tith the <form:frame< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds Disabaeds Fors Labeas Printabaes and Titaec ee eition 6c9 ior iniormation aboSt these attribStesc

6c c06 mage FrameThe <form:image-frame< eaement deiines a graphiiaa iontroac The iontroa dispaays an images thiih isaoiated at the image data aoiationc

418 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 419: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <form:image-frame<RrT 9T

ooT <!ELEMENT form:image-frame (form:properties?, office:events?y<<!ATTLIST form:image-frame %tisablet; %image-tata; %printable; %reatonly; %title; %tata-fielt;<

The attribStes that yoS ian assoiiate tith the <form:image-frame< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds Disabaeds mage Datas Printabaes ead onays and Titaec ee eition 6c9 ior iniormation aboSt theseattribStesc

● Data Fieadc ee eition 6c9c0 ior iniormation aboSt this attribStec

6c c0m OiddenThe <form:hitten< eaement deiines a iontroa that does not hare a risSaa representationc This eaement isSsSaaay Ssed as a iontainer ior iniormationc

rg int T <form:hitten<RrT 9T

ooT <!ELEMENT form:hitten (form:properties?, office:events?y<<!ATTLIST form:hitten %name; %service-name; %value;<

The attribStes that yoS ian assoiiate tith the <form:hitten< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● VaaSec ee eition 6c9 ior iniormation aboSt these attribStesc

6c c0r GridThe <form:grit< eaement deiines a iontroa that dispaays tabae datac This iontroa is data-atare and is boSnd toa iorm thiih retrieres data irom a data soSriec Eaih ioaSmn in the grid is speiiiied by a <form:column<eaementc Eaih ioaSmn is boSnd to a iiead in the resSating data tabaec The rots in the grid iontain the data reiordsirom the resSating data tabaec

rg int T <form:grit<RrT 9T

ooT <!ELEMENT form:grit (form:properties?, office:events?, %form:columnay<<!ATTLIST form:grit %tisablet; %printable; %tab-intex; %tab-stop; %title;<

Chapter 6 Form Content 419

Page 420: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

The attribStes that yoS ian assoiiate tith the <form:grit< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Controa Ds Disabaeds Printabaes Tab nde.s Tab tops and Titaec ee eition 6c9 ior iniormation aboSt theseattribStesc

6c c0 CoaSmnThe <form:column< eaement deiines a ioaSmn in a grid iontroac The ioaSmn iontains a iontroa that dispaaysthe grid data ior the ioaSmnc

rg int T <form:column<RrT 9T

ooT <!ENTITY % column-type "(form:text| form:textarea| form:formattet-text| form:checkbox| form:listbox| form:comboboxy"<<!ELEMENT form:column (form:properties?, office:events?,column-type;ty<<!ATTLIST form:column %name; %service-name; %label;<

The attribStes that yoS ian assoiiate tith the aform:column< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

● Labeac ee eition 6c9 ior iniormation aboSt this attribStec

6c c 2 Generii ControaThe <form:generic-control< eaement deiines a paaiehoader ior a generii iontroac The generii iontroa ianiontain any properties and any erentsc The appaiiation deteits the type oi the iontroa and instantiates the iorreitiontroac

rg int T <form:generic-control<RrT 9T

ooT <!ELEMENT form:generic-control (form:properties?, office:events?y<

The attribStes that yoS ian assoiiate tith the <form:generic-control< eaement are:● Name and erriie Namec ee eition 6c4 ior iniormation aboSt these attribStesc

6c4 Common Form and Controa ttribStes

NameThe form:name attribSte speiiiies the name oi the iorm or iontroa eaementc YoS ian Sse this attribSte to gire aiorm or iontroa eaement an identitys thiih is important ior siripting and ior sSbmitting the iontent oi iontroasc

420 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 421: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T form:nameRrT 9T

ooT <!ENTITY % name "form:name CtATA tIMPLIEt"<

erriie NameThe form:service-name attribSte identiiies the name oi the serriie that the iorm or iontroa sSpportsc

rg int T form:service-nameRrT 9T

ooT <!ENTITY % service-name "form:service-name CtATA tIMPLIEt"<

6c9 Common Controa ttribStes

BStton TypeThe form:button-type attribSte speiiiies the type oi a bSttonc YoS ian Sse this attribSte tith the ioaaotingeaements:

● <form:button<● <form:image<

rg int T form:button-typeRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● submit: Pressing the bStton sSbmits the iormc● reset: Pressing the bStton resets erery iontroa to its initiaa raaSec● push: Pressing the bStton does not periorm a deiaSat aitionc sSaaays there is a siript boSnd

to bSttonc and the siript is rSn

● url: Pressing the bStton opens the L that is speiiiied in the form:target-urlattribStec

ooT <!ENTITY % types "(submit|reset|push|urly"<<!ENTITY % button-type "form:button-type %types; 'push'"<

n T n OT Ls the deiaSat bStton type is submitc n an OpenOiiiiecorg appaiiations the mostiommon bStton type is pushc

Controa DControas that are not hidden are iontained in a iormc The iontroas iontain te.t or they hare an absoaSte positioncThe position is represented by a irame that iontains a reierenie to the iontroa eaement tithin the iorm eaementcControas that are not hidden mSst hare a form:it assoiiated tith thems thiih is Ssed to reierenie the iontroasc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<

Chapter 6 Form Content 421

Page 422: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● <form:textarea<● <form:passwort<● <form:file<● <form:formattet-text<● <form:fixet-text<● <form:combobox<● <form:listbox<● <form:button<● <form:image<● <form:checkbox<● <form:ratio<● <form:frame<● <form:image-frame<● <form:grit<

rg int T form:itRrT 9T The D ian not iontain a iommac

ooT <!ENTITY % control-it "form:it CtATA teEt|IeEt"<

CSrrent eaeitedThe form:current-selectet attribSte determines the iSrrent state oi a radio bStton or option eaementc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:option<● <form:ratio<

rg int T form:current-selectetRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ENTITY %current-selectet "form:current-selectet %boolean;

'false'"<

CSrrent VaaSeThe form:current-value attribSte speiiiies the iSrrent statSs oi an inpSt iontroac t orerrides the raaSe oi aform:value attribStes ii one is presentc OT L does not hare an eqSiriaant attribStec

YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<

422 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 423: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● <form:file<● <form:formattet-text<● <form:combobox<

rg int T form:current-valueRrT 9T

ooT <!ENTITY % current-value "form:current-value CtATA tIMPLIEt"<

VaaSeThe form:value attribSte speiiiies the raaSe oi an inpSt iontroa at a speiiiied timecYoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:passwort<● <form:file<● <form:formattet-text<● <form:combobox<● <form:option<● <form:button<● <form:image<● <form:checkbox<● <form:ratio<● <form:hitten<

rg int T form:valueRrT 9T

ooT <!ENTITY % value "form:value CtATA tIMPLIEt"<

DeiaSat VaaSeThe form:tefault-value attribSte speiiiies the deiaSat raaSe oi a iontroac This raaSe is dispaayed then theiontroa is initiaaay dispaayed or then a Sser resets a iormc

rg int T form:tefault-valueRrT 9T

ooT <!ENTITY % tefault-value "form:tefault-value CtATA tIMPLIEt"<

Chapter 6 Form Content 423

Page 424: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

DisabaedThe form:tisablet attribSte speiiiies thether or not a iontroa ian aiiept Sser inpStc YoS ian Sse thisattribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:passwort<● <form:file<● <form:formattet-text<● <form:fixet-text<● <form:combobox<● <form:listbox<● <form:button<● <form:image<● <form:checkbox<● <form:ratio<● <form:frame<● <form:image-frame<● <form:grit<

rg int T form:tisabletRrT 9T The raaSe oi this attribSte ian be true or falsec

Controas that are disabaed are not iniaSded in the tabbing narigation seqSenie and ian not beseaeitedc

ooT <!ENTITY % tisablet "form:tisablet %boolean; 'false'"<

DropdotnThe form:troptown attribSte speiiiies thether the aist in a iombo bo. or aist bo. is aatays risibae or is onayrisibae then the Sser iaiiks the drop-dotn bSttonc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:combobox<● <form:listbox<

rg int T form:troptownRrT 9T The raaSe oi this attribSte ian be true or falsec i the raaSe is trues the aist is aatays risibaec

i the raaSe is falses the aist is onay risibae then the Sser iaiiks the drop-dotn bSttoncooT <!ENTITY % troptown "form:troptown %boolean; 'false'"<

424 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 425: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ForThe attribSte speiiiies the Ds oi the iontroas tith thiih the iontroa eaement is Ssedc YoS ian Sse this attribStetith the ioaaoting eaements:

● <form:fixet-text<● <form:frame<

rg int T form:forRrT 9T This attribSte iontains a iomma separated aist oi iontroa Dsc

ooT <!ENTITY % for "form:for CtATA tIMPLIEt"<

mage DataThe iorm:image-tata attribSte ainks the iontroa to an e.ternaa iiae iontaining image datac YoS ian Sse thisattribSte tith the ioaaoting eaements:

● <form:button<● <form:image<● <form:image-frame<

rg int T form:image-tataRrT 9T

ooT <!ENTITY % image-tata "form:image-tata %url; tIMPLIEt"<

LabeaThe form:label attribSte iontains a aabea ior a iontroa sSih as a radio bStton or iheik bo.c YoS ian Sse thisattribSte tith the ioaaoting eaements:

● <form:fixet-text<● <form:item<● <form:option<● <form:checkbox<● <form:ratio<● <form:frame<● <form:column<

rg int T form:labelRrT 9T

ooT <!ENTITY % label "form:label CtATA tIMPLIEt"<

Chapter 6 Form Content 425

Page 426: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

a.imSm LengthThe form:max-length attribSte speiiiies the ma.imSm nSmber oi iharaiters that a Sser ian enter in an inpStiontroac YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:passwort<● <form:formattet-text<● <form:combobox<

rg int T form:max-lengthRrT 9T The deiaSat raaSe oi this attribSte is unlimitets thiih aaaots a Sser to enter an Snaimited

nSmber oi iharaitersc

ooT <!ENTITY % max-length "form:max-length CtATA tIMPLIEt"<

PrintabaeThe form:printable attribSte speiiiies thether or not a iontroa is printed then a Sser prints the doiSment inthiih the iontroa is iontainedc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:passwort<● <form:file<● <form:formattet-text<● <form:fixet-text<● <form:combobox<● <form:listbox<● <form:button<● <form:image<● <form:checkbox<● <form:ratio<● <form:frame<● <form:image-frame<● <form:grit<

rg int T form:printableRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ENTITY % printable "form:printable %boolean; 'true'"<

426 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 427: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ead onayThe form:reatonly attribSte speiiiies thether or not a Sser ian modiiy the raaSe oi a iontroac YoS ian Ssethis attribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:file<● <form:formattet-text<● <form:combobox<● <form:listbox<● <form:image-frame<

rg int T form:reatonlyRrT 9T The raaSe oi this attribSte ian be true or falsec

ead-onay iontroas are iniaSded in the tabbing narigation seqSeniec

ooT <!ENTITY % reatonly "form:reatonly %boolean; 'false'"<

eaeitedThe form:selectet attribSte speiiiies the deiaSat state oi a radio bStton or optionc Dhen the iontroa is initiaa-iseds it is in the deiaSat state speiiiied by this attribStec YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:option<● <form:ratio<

rg int T form:selectetRrT 9T The raaSe oi this attribSte ian be true or falsec n a groSp oi radio bSttons that share the same

names onay one radio bStton ian hare this attribSte set to truecooT <!ENTITY % selectet "form:selectet %boolean; 'false'"<

ikeThe form:sive attribSte speiiiies the nSmber oi rots that are risibae at a time in a iombo bo. aist or a aist bo.aistc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:combobox<● <form:listbox<

rg int T form:siveRrT 9T

ooT <!ENTITY % sive "form:sive CtATA tIMPLIEt"<

Chapter 6 Form Content 427

Page 428: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Tab nde.The form:tab-intex attribSte speiiiies the tabbing narigation order oi a iontroa tithin a iormc The tabbingorder is the order in thiih iontroas are giren ioiSs then a Sser narigates throSgh the iorm Ssing the T B key onthe keyboardc The tabbing order ian iniaSde eaements that are nested in other eaementsc YoS ian Sse this attribStetith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:passwort<● <form:file<● <form:formattet-text<● <form:combobox<● <form:listbox<● <form:button<● <form:image<● <form:checkbox<● <form:ratio<● <form:grit<

rg int T form:tab-intexRrT 9T The rSaes ior tabbing are simiaar to the tabbing rSaes Ssed in OT L 9c2c

Controas that ian be giren ioiSs are narigated in the order desiribed in the ioaaoting rSaes:

0c The iontroas that hare a positire raaSe ior the form:tab-intex attribSte are narigatediirstc

c The narigation starts at the iontroa tith aotest form:tab-intex raaSe and ends at theiontroa tith the highest raaSec VaaSes do not hare to be seqSentiaa and they do not hare tobegin tith a partiiSaar raaSec

4c Controas that hare the same raaSes ior the form:tab-intex attribSte are narigatedaiiording their position in the iormc

9c Controas that do not iontain the form:tab-intex attribSte or iontain the attribSte tith araaSe oi 0 are narigated ne.tc These iontroas are narigated aiiording to their position in theiormc

5c Controas that hare the form:tisablet attribSte set to true are not iniaSded in the nagi-gationc

ooT <!ENTITY % tab-intex "form:tab-intex CtATA tIMPLIEt"<

Tab topThe form:tab-stop attribSte speiiiies thether or not a iontroa is iniaSded in the tabbing narigation ordercYoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<

428 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 429: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● <form:textarea<● <form:passwort<● <form:file<● <form:formattet-text<● <form:combobox<● <form:listbox<● <form:button<● <form:image<● <form:checkbox<● <form:ratio<● <form:grit<

rg int T form:tab-stopRrT 9T The raaSe oi this attribSte ian be true or falsec i the raaSe is falses the iontroa is not

iniaSded in the tabbing narigationc

ooT <!ENTITY % tab-stop "form:tab-stop %boolean; 'true'"<

Target FrameThe office:target-frame attribSte speiiiies the aink target irame oi the areac YoS ian Sse this attribStetith the ioaaoting eaements:

● <form:button<● <form:image<

rg int T office:target-frameRrT 9T

ooT <!ENTITY % target-frame "office:target-frame CtATA '_blank'"<

Target Loiation n xlink:href attribSte speiiiies the L that is dispaayed ii a bStton is iaiikedc YoS ian Sse this attribStetith the ioaaoting eaements:

● <form:button<● <form:image<

rg int T xlink:hrefRrT 9T This attribSte is onay eraaSated ii the raaSe oi the form:button-type attribSte is locationcooT <!ENTITY % target-location "xlink:href %url; tIMPLIEt"<

Chapter 6 Form Content 429

Page 430: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

TitaeThe form:title attribSte iontains additionaa iniormation aboSt a iontroac The raaSe oi the attribSte ian beSsed as a tooa tipc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:passwort<● <form:file<● <form:formattet-text<● <form:fixet-text<● <form:combobox<● <form:listbox<● <form:button<● <form:image<● <form:checkbox<● <form:ratio<● <form:image<● <form:image-frame<● <form:grit<

rg int T form:titleRrT 9T

ooT <!ENTITY % title "form:title CtATA tIMPLIEt"<

6c9c0 Database ttribStesYoS ian bind iontroas to database iieadsc i yoS do thiss the iontroas beiomes data-atarec The iontroa aiqSires theraaSes oi a database iiead by going throSgh a resSat set that is prorided by the iormc Eaih time there is a rotihange in the iorms the raaSe oi the iontroa ian ihangec The raaSe ihanges are stored in the assoiiated databaseiieadc

BoSnd CoaSmnThe form:bount-column attribSte speiiiies the ioaSmn raaSes oi the aist soSrie resSat set that are Ssed to iiaathe data iiead raaSesc YoS ian Sse this attribSte tith the <form:listbox< eaementc

rg int form:bount-columnRrT 9T

ooT <!ENTITY % bount-column "form:bount-column CtATA tIMPLIEt"<

430 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 431: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Conrert Empty To NSaaThe form:convert-empty-to-null attribSte speiiiies thether or not empty iSrrent raaSes are regardedas N LL This attribSte is important ior data-atare iontroas to determine thiih raaSes to store ior the boSnddatabase iieadc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:formattet-text<● <form:combobox<

rg int T form:convert-empty-to-nullRrT 9T The raaSe oi this attribSte ian be true or falsec i the raaSe oi the attribSte is trues the raaSe

oi the iontroa is regarded as nSaac i the raaSe oi the attribSte is falses the raaSe oi the iontroa isregarded as an empty stringc

ooT <!ENTITY % convert-empty "form:convert-empty-to-null %boolean; 'false'"<

Data FieadThe form:tata-fielt attribSte speiiiies the name oi a resSat set ioaSmnc The resSat set is speiiiied ior theiormc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:text<● <form:textarea<● <form:formattet-text<● <form:combobox<● <form:listbox<● <form:checkbox<● <form:ratio<● <form:image-frame<

rg int T form:tata-fieltRrT 9T

ooT <!ENTITY % tata-fielt "form:tata-fielt CtATA tIMPLIEt"<

List oSrieThe form:list-source attribSte speiiiies the soSrie Ssed to popSaate the aist in a aist bo. or iombo bo.c Theiirst ioaSmn oi the aist soSrie resSat set popSaates the aistc YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:combobox<● <form:listbox<

Chapter 6 Form Content 431

Page 432: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T form:list-sourceRrT 9T

ooT <!ENTITY % list-source "form:list-source CtATA tIMPLIEt"<

List oSrie TypeThe form:list-source-type attribSte speiiiies the type oi data soSrie that is Ssed to popSaates the aistdata in a aist bo. or iombo bo.c YoS ian Sse this attribSte tith the ioaaoting eaements:

● <form:combobox<● <form:listbox<

rg int T form:list-source-typeRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● table: The aist is popSaated Ssing the iontent oi a database tabaec● query: The aist is popSaated by e.eiSting a qSeryc● sql: The aist is popSaated by e.eiSting an oL statementc● sql-pass-through: The aist is popSaated by e.eiSting any type oi statement that is passed

direitay to a database drirerc

● value-list: The aist is popSaated tith raaSes speiiiied by the Sser Ssing the form:value attribSte in the <form:option< eaementc This setting is onay appaiiabae to aistbo.esc

● table-fielts: The aist is popSaated Ssing the iiead names in a database tabaecooT <!ENTITY % list-source-types "(table|query|sql|sql-pass-

through|value-list|table-fieltsy"<<!ENTITY % list-source-type "form:list-source-type %list-source-types; tIMPLIEt"<

6c5 ErentsOT L deiines a aist oi standard erents ior iontroasc These erents are represented by attribStess thiih are assoii-ated tith the iontroa eaementsc n the OpenOiiiiecorg X L iiae iormats these erents and any additionaa erentsdeiined by the OpenOiiiiecorg iomponent are stored as eaements in an <office:events< eaementcFor a singae erent eaements the script:event-name attribSte speiiiies the type oi erent and other attribStesspeiiiy the aangSage and the erent handaerc

6c5c0 Erents tith an EqSiraaent OT L Erent TypeThe ioaaoting tabae desiribes the OpenOiiiiecorg X L erents that hare an eqSiraaent erent in OT Lc

432 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 433: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

h4Tr ineifvuo Vea a Vt eoa

AIur

E ruv4T 1iHg Ev 1

o 9oIuoun1ineiEv 1

on-change onihange OiiSrs then a iontroa is no aonger ioiSssed and the raaSe oithe iontroa tas modiiied sinie it tas giren ioiSsc

on-focus onioiSs OiiSrs then a iontroa is giren ioiSs Ssing the moSse or theT B keyc

on-blur onbaSr OiiSrs then a iontroa is no aonger ioiSssed as a resSat oimoring the moSse or by tabbing narigationc t may be Ssed tiththe same eaements as form:on-focusc

on-keytown onkeydotn OiiSrs then a key is pressed on a iontroacon-keyup onkeySp OiiSrs then a key is reaeased on a iontroacon-mouseover onmoSseorer OiiSrs then the moSse pointer is mored orer the iontroacon-mousemove onmoSsemore OiiSrs then the moSse pointer is mored onto a iontroacon-mousetown onmoSsedotn OiiSrs then a moSse bStton is pressed on a iontroacon-mouseup onmoSseSp OiiSrs then a moSse bStton is reaeased on a iontroacon-mouseout onmoSseoSt OiiSrs then the moSse pointer is mored atay irom a iontroacon-reset onreset OiiSrs then a iorm is resetcon-submit onsSbmit OiiSrs then a iorm is sSbmittedc

6c5c OpenOiiiiecorg Erent Types n addition to the OT L erent typess OpenOiiiiecorg X L aaaots additionaa erents to be handaed at rSn timec

h4Tr ineifvuo Vea a Vt eoaiAIur

AooTu 9in o 9oIuoun1ineiEv 1

on-approveaction BStton or imagec OiiSrs beiore the on-performeaction erent takes paaiec aaots the Sser to reto the aitionc

on-performeaction BStton or imagec OiiSrs then the iontroa aition is to be periormedc Theiommon interpretation oi this erent is epressing the bSttonrc

on-textchange aa iontroas that aaaotte.t inpStc

OiiSrs then a Sser ihanges the te.t in a iontroac

on-itemstatechange

Cheik bo. or radiobSttonc

OiiSrs then the state oi a iheik bo. or radio bStton ihangesc

on-mousetrag aa iontroasc OiiSrs then a Sser presses and hoads one oi the moSse bSttonsand mores the moSse pointer onto a iontroac

on-approvereset same objeits as iorform:on-reset

OiiSrs beiore the on-reset erent takes paaiec aaots theSser to reto the reset erentc

on-approveuptate aa iontroas that ian beboSnd to a databaseiieads that is iontroas thationtain the tata-fielt attribStec

OiiSrs beiore the on-uptate erent takes paaiec aaots theSser to reto the Spdatec

Chapter 6 Form Content 433

Page 434: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

h4Tr ineifvuo Vea a Vt eoaiAIur

AooTu 9in o 9oIuoun1ineiEv 1

on-uptate aa iontroas that ian beboSnd to a databaseiieads that is iontroas thationtain the tata-fielt attribStec

OiiSrs then the iontent oi a iontroa that is boSnd to a databaseiiead is iommittedc

on-loat Formsc OiiSrs then the iorm estabaishes a ionneition to the datasoSriec

on-startrealot Formsc OiiSrs then the iorm is aboSt to reiresh a data soSrie ionnei-tionc

on-reloat Formsc OiiSrs then the iorm has reireshed a data soSrie ionneitioncon-startunloat Formsc OiiSrs then the iorm is aboSt to drop a data soSrie ionnei-

tioncon-unloat Formsc OiiSrs then the iorm has dropped a data soSrie ionneitioncon-confirmtelete Formsc OiiSrs then the Sser is aboSt to deaete a reiordcon-approverowchange

Formsc OiiSrs beiore the on-rotihange erent takes paaiec aaots theSser to reto the ihangec

on-rowchange Formsc OiiSrs aiter ihanges to a rot are iompaetes sSih as deaetionssSpdatess and insertionsc

on-approvecursormove

Formsc OiiSrs beiore the iorm is mored to another rotc aaots theSser to reto the morec

on-cursormove Formsc OiiSrs aiter the iorm is mored to another rotcon-supplyparameter

Formsc OiiSrs then the iorm needs to iiaa parameters to ionneit to adata soSriec

on-error Formss iombo bo.es andaist bo.esc

OiiSrs then a database-reaated error oiiSrsc

6c6 PropertiesYoS ian Sse properties to store the ioaaoting settings ior iontroas and iorms:

● ettings that are not knotn by the doiSment iormatc

● ettings that are prorided by e.ternaa rendorsc

● ettings that are speiiiii to the appaiiationc

Properties ionsist oi a namesraaSe pairc The name identiiies the propertyc The raaSe ian be giren in a iSnda-mentaa data type or as a aist oi iSndamentaa data typesc

6c6c0 Property etThe <form:properties< eaement iontains the property settingc

rg int T <form:properties<RrT 9T

ooT <!ELEMENT form:properties (form:propertyty<

434 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 435: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

6c6c PropertyThe <form:property< eaement desiribes the name oi the propertys the property types and thether or not theproperty iontains aist data or singae datac

rg int T <form:property<RrT 9T This eaement is iontained in the <form:properties< eaementcooT <!ELEMENT form:property (form:property-valueay<

The attribStes that yoS ian assoiiate tith the <form:property< eaement are:● s List

● Name

● Type

s ListThe form:property-is-list attribSte speiiiies that the property ian iontain a aist oi property raaSesc

rg int T form:property-is-listRrT 9T The raaSe oi this attribSte ian be true or falsec

i this attribSte is not present or its raaSe is falses onay one ioaaoting <form:property-value< eaement is eraaStatedc

ooT <!ATTLIST form:property form:property-is-list %boolean;tIMPLIEt<

Property NameThe form:property-name attribSte speiiiies the name oi a property eaementc

rg int T form:property-nameRrT 9T

ooT <!ATTLIST form:property form:property-name CtATA teEt|IeEt<

Property TypeThe form:property-type attribSte speiiiies the data type oi the property raaSec

Chapter 6 Form Content 435

Page 436: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T form:property-typeRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● boolean: reqSires the raaSe trSe or iaase● short: speiiiies a 06-bit integer● int: speiiiies a 4 -bit integer● long: speiiiies a 69-bit based integer● touble: speiiiies a 69-bit iaoating point nSmber● string: speiiiies a string

ooT <!ATTLIST form:property form:property-type (boolean|short|int|long|touble|stringy teEt|IeEt<

6c6c4 Property VaaSeThe <form:property-value< eaement speiiiies the iontent oi the propertyc

rg int T <form:property-value<RrT 9T

ooT <!ELEMENT form:property-value (tPCtATAy<

E4oT Tih4oT ioIno Iu 9

<form:properties< <form:property form:property-namep"Name" form:property-typep"string"< <form:property-value<Name 1</form:property-value< </form:property< <form:property form:property-namep"Items" form:property-typep"string"form:property-is-listp"true"< <form:property-value<Item 1</form:property-value< <form:property-value<Item 2</form:property-value< <form:property-value<Item 3</form:property-value< </form:property<</form:properties<

436 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 437: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

m nde.ing

This ihapter desiribes the OpenOiiiiecorg X L representation oi inde.esc t iontains the ioaaoting seitions:

● Basii Components oi OpenOiiiiecorg X L nde.es

● nde. Entries

● nde. oSrie tyaes

● nde. arks

● Tabae oi Contents

● nde. oi aaSstrations

● nde. oi Tabaes

● nde. oi Objeits

● ser-Deiined nde.

● aphabetiiaa nde.

● Bibaiography

mc0 Basii Components oi OpenOiiiiecorg X L nde.esOpenOiiiiecorg ian aStomatiiaaay generate sereraa types oi inde.s depending on:

● The type oi data to be inde.ed

● The tay in thiih the data ior the inde. is gathered

● The iormatting options reqSired ior the inde.

n e.ampae oi one type oi aStomatiiaaay generated inde. is a tabae oi iontentsc

n inde. is represented by an inde. eaement and this eaement iontains the ioaaoting tto ihiad eaements:

● nde. soSrie

● nde. body

mc0c0 nde. oSrieThe inde. soSrie eaements desiribe hot the iontent oi an inde. is generatedc The inde. soSrie eaement aaone issSiiiiient to reireate the inde. iontents prorided that the Sser did not ihange the soSrie iontent sinie the aast

437

CHAPTER 7

Page 438: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

inde. tas generatedc The inde. soSrie eaement iontains:

● ereraa attribStes that aid the proiess oi ireating the inde.c

● nde. entry tempaate eaements that desiribe the e.ait iormat oi the indiridSaa inde. entriesc For e.ampaes theinde. entries in the Tabae oi Contents in this manSaa iontain the seition nSmbers the seition names a tab stopsand the page nSmberc The iorresponding inde. entry tempaate eaement iontains one inde. entry eaement ioreaih oi these itemsc

mc0c nde. BodyThe inde. body eaement iontains the te.t that makes Sp the body oi the inde.c t is a standard baoik oi te.ts tiththe possibae addition oi an inde. header eaementc i the trite proteition ior the inde. is disabaeds the Sser ianmodiiy the inde. body bSt these ihanges are aost then the inde. is Spdated againc

inie yoS ian regenerate the inde. body at any times it may seem Snneiessary to e.port itc Ooterers it is better toe.port the inde. body ior the ioaaoting reasons:

● t makes it easier to proiess the doiSment Ssing e.ternaa tooas beiaSse ii it is not e.porteds the e.ternaa tooasmSst regenerate the inde.c

● sers ian modiiy the inde.s eren thoSgh their ihanges are aost then the inde. is Spdatedc

The <text:intex-boty< eaement iontains the te.t eaements that make Sp the inde.c Dhen the inde. isregenerateds the iSrrent inde. body iontent is orertrittenc

rg int T <text:intex-boty<RrT 9T

ooT <!ELEMENT text:intex-boty %text;<

mc0c4 nde. Titae TempaateThe <text:intex-title-template< eaement determines the styae oi the inde. titaec

rg int T <text:intex-title-template<RrT 9T The text:style-name attribSte speiiiies the paragraph styae to Sse ior the inde. titaec

There ian onay be one <text:intex-title-template< eaement iontained in a<text:table-of-content-source< eaementc

ooT <!ELEMENT text:intex-title-template CtATA< <!ATTLIST text:intex-title-template text:style-name %styleName; tIMPLIEt<

mc0c9 nde. Entry TempaatesThe iormat oi an inde. entry is determined by the inde. entry tempaate eaementc There is a tempaate eaement ioreaih iaass oi entryc For e.ampaes ior a Tabae oi Contents there is an eaement ior the inde. header and an eaementior eaih oStaine aereac For a Bibaiography nde. there is an eaement ior the header and an eaement ior eaih doiS-ment iaassc

Eaih inde. tempaate eaement iontains a seqSenie oi tempaate eaementss there eaih tempaate eaement represents

438 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 439: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

one part oi an inde. entryc The most iommon iormat ior inde. entries is the ihapter nSmbers the ihapter titaes atabbed spaie iiaaed tith dotss and a page nSmberc To aihiere this the inde. entry is ioniigSred to iontaineaements ior the ihapter nSmbers the entry te.ts the tab spaies and the page nSmberc

Diiierent types oi inde.es sSpport diiierent inde. entry eaementsc Thereiores eaih type oi inde. sSpports aspeiiiii inde. entry tempaate eaement tith the raaid ihiad eaementsc

rg int T <text:intex-entry-template<RrT 9T

ooT <!ENTITY % templateElement "text:intex-entry-chapter|text:intex-entry-page-number|text:intex-entry-text|text:intex-entry-span|text:intex-entry-tab-stop"<<!ELEMENT text:intex-entry-template (%entryElement;ya<

uu4un1T The OpenOiiiiecorg Sser interiaie onay aaaots tempaates to Sse one page nSmber and one entryte.t eaementc

Tempaate OStaine LereaThis attribSte speiiiies to thiih oStaine aerea this entry ioniigSration appaiesc There may not be sereraa <text:outline-level< eaements ior the same oStaine aerea tithin the same parent eaementc

rg int T text:outline-levelRrT 9T This attribSte mSst be SniqSe among aaa <text:outline-level<

eaementsc tithin the same parent eaementc

ooT <!ATTLIST text:intex-entry-template text:outline-level %number; teEt|IeEt<

Paragraph tyaeThe paragraph styae attribSte names the paragraph styae to be Ssed ior instantiations oi this tempaatec

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:intex-entry-template text:style-name %styleName; teEt|IeEt<

mc0c5 Common nde. and nde. oSrie ttribStesThe ioaaoting attribSte is sSpported by aaa inde. eaements:

● text:outline-levelThe ioaaoting attribStes are sSpported by aaa inde. soSrie eaements:

● text:use-intex-marks● text:intex-scope

Chapter 7 Indexing 439

Page 440: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

tyae Name n inde. is iormatted Ssing a seition styaec This aaaots the inde. to iontain mSatipae ioaSmnsc nde. headereaements Sse their otn seition styaes thiih enabaes a mSatiioaSmn inde. to hare a singae ioaSmn titaec Thetext:style-name attribSte identiiies the seition styae Ssed to iormat the inde.c

rg int T text:style-nameRrT 9T

h4oT iooT <!ATTLIST text:table-of-content text:style-name %styleName;tIMPLIEt<

Drite ProteitionYoS ian proteit inde.es so that they are not aiiidentaaay ihanged by a Sserc i the text:protectet attribSteis sets the Sser interiaie shoSad prerent Ssers irom modiiying the iontents oi the inde.c

rg int T text:protectetRrT 9T

h4oT iooT <!ATTLIST text:table-of-content text:protectet %boolean;"false"<

nde. iope aa inde. soSrie eaements iontain a text:intex-scope attribSte thiih determines thether the inde. isgenerated ior the entire doiSment or ior the iSrrent ihapter onayc

rg int T text:intex-scopeRrT 9T

h4oT iooT <!ATTLIST text:table-of-content-source text:intex-scope (tocument|chaptery "tocument"<

n T This attribSte is not sSpported ior Bibaiography nde.esc

eaatire Tab tops in nde. EntriesThe text:relative-tab-stop-position attribSte determines thether the position oi tab stops is reaa-tire to the aeit margin or to the aeit indent as determined by the paragraph styaec This is SseiSa ii yoS tant to iopythe same entry ioniigSration ior aaa oStaine aereas beiaSse tith reaatire tab stop positions the tabs do not need tobe adjSsted to the respeitire paragraph iormatc

rg int T text:relative-tab-stop-positionRrT 9T The raaSe oi this attribSte ian be true or falsec

i the raaSe is trues the tab stop position is reaatire to the aeit indentc i the raaSe is falses the tab stop position is reaatire to the aeit marginc

ooiE4oT T <!ATTLIST text:table-of-content-source text:relative-tab-stop-position %boolean; "true"<

n T This attribSte is not sSpported ior Bibaiography nde.esc

440 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 441: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

mc nde. EntriesThere are nine types oi inde. entriess as ioaaots:

● Chapter nSmber

● Chapter iniormation

● Entry te.t

● Page nSmber

● Fi.ed string

● Bibaiography iniormation

● Tab stop

● Oyperaink start and end

mc c0 Chapter NSmberThe <text:intex-entry-chapter-number< eaement dispaays the ihapter nSmber oi the inde. entrycThe iharaiter styae ior the ihapter nSmber ian be iniaSded in the inde. entry eaement as a text:style-nameattribStec

rg int T <text:intex-entry-chapter-number<RrT 9T

ooT <!ELEMENT text:intex-entry-chapter-number EMPTY< <!ATTLIST text:intex-entry-chapter-number text:style-name %styleName; tIMPLIEt<

n T This eaement ian onay dispaay the ihapter nSmberc To dispaay the ihapter names yoS mSst Sse the<text:intex-entry-text< eaementsc

mc c Chapter niormationThe <text:intex-entry-chapter< eaement dispaays the ihapter nSmber oi the inde. entryc The iharaiterstyae ior the ihapter nSmber ian be iniaSded in the inde. entry eaement as a text:style-name attribStec

rg int T <text:intex-entry-chapter<RrT 9T

ooT <!ELEMENT text:intex-entry-chapter-number EMPTY< <!ATTLIST text:intex-entry-chapter-number text:style-name %styleName; tIMPLIEt<

n T This eaement ian onay dispaay the ihapter nSmberc To dispaay the ihapter names yoS mSst Sse the<text:intex-entry-text< eaementsc

Dispaay Chapter FormatThe text:tisplay attribSte dispaays either the ihapter nSmbers the ihapter names or bothc

Chapter 7 Indexing 441

Page 442: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:tisplayRrT 9T

ooT <!ATTLIST text:intex-entry-chapter text:tisplay( name | number | number-ant-name y "number-ant-name"<

mc c4 Entry Te.tThe <text:intex-entry-text< eaement dispaays the te.t oi the inde. entrys ior e.ampaes the ihapter nameii the entry is derired irom a header or the phrase iontained in the inde. mark ii the entry is derired irom aninde. markc The iharaiter styae ior the entry te.t ian be iniaSded in the inde. entry eaement as a text:style-name attribStec

rg int T <text:intex-entry-text<RrT 9T

ooT <!ELEMENT text:intex-entry-text EMPTY< <!ATTLIST text:intex-entry-text text:style-name %styleName;tIMPLIEt<

mc c9 Page NSmberThe <text:intex-entry-page-number< eaement dispaays the page nSmber on thiih the inde. entry isaoiatedc The iharaiter styae ior the page nSmber ian be iniaSded in the inde. entry eaement as a text:style-name attribStec

rg int T <text:intex-entry-page-number<RrT 9T

ooT <!ELEMENT text:intex-entry-page-number EMPTY< <!ATTLIST text:intex-entry-page-number text:style-name %styleName; tIMPLIEt<

mc c5 Fi.ed tringThe <text:intex-entry-span< eaement represents a ii.ed string tithin an inde. entryc The iharaiter styaeior the entry te.t ian be iniaSded in the inde. entry eaement as a text:style-name attribStec

rg int T <text:intex-entry-span<RrT 9T naike the <text:span< eaements the <text:intex-entry-span< eaement does not

hare any ihiad eaementsc

ooT <!ELEMENT text:intex-entry-string CtATA< <!ATTLIST text:intex-entry-string text:style-name %styleName;tIMPLIEt<

mc c6 Bibaiography niormationThe <text:intex-entry-bibliography< eaement introdSies bibaiography data into inde. entry

442 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 443: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

tempaatesc

rg int T <text:intex-entry-bibliography<RrT 9T

ooT <!ELEMENT text:intex-entry-bibliography EMPTY< <!ATTLIST text:intex-entry-bibliography text:style-name %styleName; tIMPLIEt<

Eaih <text:intex-entry-bibliography< eaement ian iontain:● text:style-name attribSte speiiiying a iharaiter styae ior the entry ● bibaiography data iiead identiiier

Bibaiography Data Fiead dentiiierThe text:bibliography-tata-fielt attribSte determines thiih part oi the bibaiography data iiead todispaayc

rg int T text:bibliography-tata-fieltRrT 9T

ooT <!ATTLIST text:intex-entry-bibliography text:bibliography-tata-fielt ( attress | annote |author | bibiliographic_type | booktitle | chapter| custom1 | custom2 | custom3 | custom: | custom4| etition | etitor | howpublishet | itentifier |institution | isbn | iournal | month | note |number | organivations | pages | publisher |report_type | school | series | title | url |volume | year y teEt|IeEt<

mc cm Tab topThe <text:intex-entry-tab-stop< eaement represents a tab stop tithin an inde. entryc t aaso iontainsthe position iniormation ior the tab stopc

rg int T <text:intex-entry-tab-stop<RrT 9T

ooT <!ELEMENT text:intex-entry-tab-stop EMPTY< <!ATTLIST text:intex-entry-tab-stop text:style-name %styleName; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <text:intex-entry-tab-stop< eaement are:● style:leater-char● style:type● style:position

Chapter 7 Indexing 443

Page 444: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Leader CharThe style:leater-char attribSte speiiiies the aeader iharaiterc

rg int T style:leater-charRrT 9T

ooT <!ATTLIST text:intex-entry-tab-stop style:leater-char %char; " "<

Tab TypeThe style:type attribSte speiiiies the tab stop typec

rg int T style:typeRrT 9T The <text:intex-entry-tab-stop< eaement onay sSpports tto types

oi tab: left and rightc i the raaSe oi this attribSte is lefts the style:position attribSte mSstaaso be Ssedc Othertises this attribSte mSst be omittedc

ooT <!ATTLIST text:intex-entry-tab-stop style:type(left|righty "left"<

Tab PositionThe style:position attribSte speiiiies the position oi the tabc

rg int T style:positionRrT 9T This attribSte ian onay be Ssed tith <text:intex-entry-tab-stop<

eaements there the raaSe oi the style:type attribSte is leftcooT <!ATTLIST text:intex-entry-tab-stop style:position

%length; tIMPLIEt< n T Depending on the raaSe oi the text:relative-tab-stop-position

attribSte in the <text:intex-entry-config< eaements the position oithe tab is interpreted as being reaatire to the aeit margin or the aeit indentc

mc cr Oyperaink tart and EndThe <text:intex-entry-link-start< and <text:intex-entry-link-ent< eaements mark thestart and end oi a hyperaink inde. entryc The iharaiter styae ior the hyperaink ian be iniaSded in the inde. entryeaement as a text:style-name attribStec

444 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 445: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:intex-entry-link-start<<text:intex-entry-link-ent<

RrT 9T

ooT <!ELEMENT text:intex-entry-link-start EMPTY< <!ELEMENT text:intex-entry-link-ent EMPTY< <!ATTLIST text:intex-entry-link-start text:style-name %styleName; tIMPLIEt<<!ATTLIST text:intex-entry-link-ent text:style-name %styleName; tIMPLIEt<

mc c E.ampae oi an nde. Entry ConiigSrationThe ioaaoting is an e.ampae oi the X L iode ior a tabae oi iontents iaaaed Tabae oi Content tith the ioaaotingiharaiteristiis:

● t Sses the top tto oStaine aereasc

● Eaih entry ionsists oi the ihapter nSmbers a iaosing parenthesiss the ihapter titaes a tab stops and the pagenSmberc

● For the top oStaine aereas the page nSmber is iormatted Ssing a styae iaaaed Boadc

● For the seiond oStaine aereas a braiket is Ssed instead oi a iaosing parenthesisc

E4oT T 4T inein1 1

<text:table-of-content< <text:table-of-content-source text:outline-levelp"2" text:use-intex-marksp"false" text:intex-scopep"tocument"< <text:intex-title-template text:style-namep"Intex 1"< Table of Content </text:intex-title-template< <text:intex-entry-template text:ouline-levelp"1" text:style-namep"Contents 1"< <text:intex-entry-chapter-number/< <text:intex-entry-span<y </text:intex-entry-span< <text:intex-entry-text/< <text:intex-entry-tab-stop style:typep"right"/< <text:intex-entry-page-number text:style-namep"bolt"/< </text:intex-entry-template< <text:intex-entry-template text:ouline-levelp"2" text:style-namep"Contents 2"< <text:intex-entry-chapter-number/< <text:intex-entry-span<] </text:intex-entry-span< <text:intex-entry-text/< <text:intex-entry-tab-stop style:typep"right"/< <text:intex-entry-page-number/< </text:intex-entry-template< </text:table-of-content-source<

Chapter 7 Indexing 445

Page 446: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<text:table-of-content-boty< .ea el <text:p text:style-namep"..."<1y Chapter <text:tab-stop/<<text:span style-namep"bolt"< 1 </text:span< </text:p< <text:p text:style-namep"..."<1.1] Subchapter <text:tab-stop/<1 </text:p< ale e eleeE </text:table-of-content-boty<</text:table-of-content<

mc4 nde. oSrie tyaesThe tabae oi iontent inde. ian gather inde. entries irom paragraphs iormatted Ssing iertain paragraph styaesc The<text:intex-source-styles< eaement iontains aaa oi the <text:intex-source-style< eaementsior a partiiSaar oStaine aereac

rg int T <text:intex-source-styles<RrT 9T

ooT <!ELEMENT text:intex-source-styles (text:intex-source-styleya<

oSrie tyaes OStaine LereaThe text:outline-levels attribSte determines at thiih oStaine aerea to aist the inde. entries gathered iromthe respeitire paragraph styaesc

rg int T text:outline-levelsRrT 9T

ooT <!ATTLIST text:intex-source-styles text:outline-level %number; tIMPLIEt<

mc4c0 nde. oSrie tyae aa paragraphs iormatted Ssing the styae speiiiied in the <text:intex-source-style< eaement areiniaSded in the inde.c

rg int T <text:intex-source-style<RrT 9T

ooT <!ELEMENT text:intex-source-style EMPTY<

The attribSte assoiiated tith the <text:intex-source-style< eaement is:● tyae name

tyae NameThe text:style-name attribSte speiiiies the paragraph styaec Paragraphs iormatted Ssing this styae are

446 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 447: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

iniaSded in the inde.c

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:intex-source-style text:style-name%styleName; teEt|IeEt<

mc9 nde. arksThere are three types oi inde. marks to iorrespond to the three types oi inde. that Sse oi inde. marksc The threetypes oi inde. marks are:

● Tabae oi iontent inde. marks

● ser-deiined inde. marks

● aphabetiiaa inde. marks

The X L iode ior inde. marks is simiaar to the iode ior Bookmarks and eiereniesc The ioaaoting are somebasii rSaes aboSt inde. marks:

● Eaih inde. mark is represented by a start and an end eaementc

● Both eaements Sse an D attribSte to matih the appropriate start and end eaementsc

● The start and end eaements ior an inde. mark mSst be iontained in the same paragraphs tith the start eaementoiiSrring iirstc

● The attribStes assoiiated tith the inde. mark are attaihed to the start eaementc

● The te.t betteen the start and end eaements is the te.t the inde. entryc

● The iormatting attribStes ior inde. marks ian oreraapc

mc9c0 Tabae oi Content nde. arksThe <text:toc-mark-start< eaement marks the start oi a tabae oi iontent inde. entryc

rg int T <text:toc-mark-start< RrT 9T The D speiiiied by the text:it attribSte mSst be SniqSec

There mSst be an end eaement to matih the start eaement aoiated in the same paragraphs tith thestart eaement appearing iirstc

ooT <!ELEMENT text:toc-mark-start EMPTY<<!ATTLIST text:toc-mark-start text:it It teEt|IeEt<<!ATTLIST text:toc-mark-start text:outline-level %number;tIMPLIEt<

The attribStes assoiiated tith the <text:toc-mark-start< eaement are: ● text:it attribSte to aaaot the start and end eaements to be matihedc● text:outline-level attribSte to speiiiy the oStaine aerea oi the resSating tabae oi iontent inde. entrycThe <text:toc-mark-ent< eaement marks the end oi a tabae oi iontents inde. entryc

Chapter 7 Indexing 447

Page 448: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:toc-mark-ent< RrT 9T The D speiiiied by the text:it attribSte mSst be SniqSec

The mSst be a start eaement to matih the end eaement aoiated in the same paragraphs tith the starteaement appearing iirstc

ooT <!ELEMENT text:toc-mark-ent EMPTY< <!ATTLIST text:toc-mark-ent text:it It teEt|IeEt<

Tabae oi iontent inde. marks aaso hare a rariant that does not eniaose the te.t to be inde.edc This is representedSsing the <text:toc-mark< eaement thiih iontains a text:string-value attribSte ior the te.t oi theinde. entryc n this sitSations a text:it attribSte is not neiessary beiaSse there are no start and end eaements tomatihc

rg int T <text:toc-mark< RrT 9T

ooT <!ELEMENT text:toc-mark EMPTY< <!ATTLIST text:toc-mark text:string-value %string teEt|IeEt<<!ATTLIST text:toc-mark text:outline-level %number; tIMPLIEt<

mc9c ser-Deiined nde. arksThe <text:user-intex-mark-start< eaement marks the start oi a Sser-deiined inde. entryc

rg int T <text:user-intex-mark-start< RrT 9T The D speiiiied by the text:it attribSte mSst be SniqSec

There mSst be an end eaement to matih the start eaement aoiated in the same paragraphs tith thestart eaement appearing iirstc

ooT <!ELEMENT text:user-intex-mark-start EMPTY<<!ATTLIST text:user-intex-mark-start text:it It teEt|IeEt<<!ATTLIST text:user-intex-mark-start text:outline-level %number; tIMPLIEt<

The <text:user-intex-mark-ent< eaement marks the end oi the Sser-deiined inde. entryc

rg int T <text:user-intex-mark-ent< RrT 9T The D speiiiied by the text:it attribSte mSst be SniqSec

There mSst be a start eaement to matih the end eaement aoiated in the same paragraphs tith thestart eaement appearing iirstc

ooT <!ELEMENT text:user-intex-mark-ent EMPTY< <!ATTLIST text:user-intex-mark-ent text:it It teEt|IeEt<

ser inde. marks aaso hare a rariant that does not eniaose the te.t to be inde.edc This is represented by the<text:user-intex-mark< eaement thiih iontains a text:string-value attribSte ior the te.t oi theinde. entryc n this sitSations the text:it attribSte is not neiessary beiaSse there are no start and end eaementsto matihc

448 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 449: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:user-intex-mark< RrT 9T

ooT <!ELEMENT text:user-intex-mark EMPTY<<!ATTLIST text:user-intex-mark text:string-value %string;teEt|IeEt<<!ATTLIST text:user-intex-mark text:outline-level %number;tIMPLIEt<

Name oi ser nde.There ian be more than one Sser-deiined inde.c n this iases the Sser inde. mSst be named Ssing the text:intex-name attribStec This attribSte determines to thiih Sser-deiined inde. an inde. mark beaongsc i no nameis girens the deiaSat Sser-deiined inde. is Ssedc

rg int T text:intex-nameRrT 9T

ooT <!ATTLIST text:user-intex-mark text:intex-name %string tIMPLIEt<<!ATTLIST text:user-intex-mark-start text:intex-name %string tIMPLIEt<

mc9c4 aphabetiiaa nde. arkThe <text:alpha-intex-mark-start< eaement marks the start oi an aaphabetiiaa inde. entryc inieaaphabetiiaa entries may make Sse oi tto keys to strSitSre entriess there are tto optionaa attribStes ior these keyscThere is aaso a booaean attribSte that determines ii this entry is intended to be the main entrys ii there are sereraaeqSaa entriesc

rg int T <text:alpha-intex-mark-start< RrT 9T The D speiiiied by the text:it attribSte mSst be SniqSec

There mSst be an end eaement to matih the start eaement aoiated in the same paragraphs tith thestart eaement appearing iirstc

ooT <!ELEMENT text:alpha-intex-mark-start EMPTY<<!ATTLIST text:alpha-intex-mark-start text:it It teEt|IeEt<

The attribStes assoiiated tith the <text:toc-mark-start< eaement are: ● text:it attribSte to aaaot the start and end eaements to be matihedc● dditionaa keys

● ain entry

The <text:alpha-intex-mark-ent< eaement marks the end oi an aaphabetiiaa inde. entryc

Chapter 7 Indexing 449

Page 450: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:alpha-intex-mark-ent< RrT 9T The D speiiiied by the text:it attribSte mSst be SniqSec

There mSst be a start eaement to matih the end eaement aoiated in the same paragraphs tith thestart eaement appearing iirstc

ooT <!ELEMENT text:alpha-intex-mark-ent EMPTY< <!ATTLIST text:alpha-intex-mark-ent text:it It teEt|IeEt<

aphabetiiaa inde. marks aaso hare a rariant that does not eniaose the te.t to be inde.edc This is representedSsing the <text:alpha-intex-mark< eaement thiih iontains a text:string-value attribSte ior thete.t oi the inde. entryc n this sitSations a text:it attribSte is not neiessary beiaSse there are no start and endeaements to matihc

rg int T <text:alpha-intex-mark< RrT 9T

ooT <!ELEMENT text:alpha-intex-mark EMPTY< <!ATTLIST text:alpha-intex-mark text:string-value %string;teEt|IeEt<

dditionaa 2eysThe text:key1 and text:key2 attribStes speiiiy additionaa keys ior the aaphabetiiaa inde. markc

rg int T text:key1text:key2

RrT 9T i onay one key is Sseds it mSst be iontained in the text:key1 attribStec ooT <!ATTLIST text:alpha-intex-mark-start

text:key1 %string; tIMPLIEt text:key2 %string; tIMPLIEt <<!ATTLIST text:alpha-intex-mark text:key1 %string; tIMPLIEt text:key2 %string; tIMPLIEt <

ain Entry i there are sereraa inde. marks ior the same entrys yoS ian deiaare one entry as the main entry Ssing the text:main-entry attribStec

rg int T text:main-entryRrT 9T

ooT <!ATTLIST text:alpha-intex-mark-start text:main-entry %boolean; "false"<<!ATTLIST text:alpha-intex-mark text:main-entry %boolean; "false"<

mc9c9 Bibaiography nde. arkThe <text:bibliography-mark< eaement iontains the te.t and iniormatin ior a bibaiography inde. entryc t sSpports attribStes ior eaih type oi bibaiographiiaa data that a bibaiography inde. may iontainc

450 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 451: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:bibliography-mark<RrT 9T

ooT <!ELEMENT text:bibliography-mark (tPCtATAy<<!ATTLIST text:bibliography-mark text:bibiliographic-type ( article | book | booklet | conference | custom1 | custom2 | custom3 | custom: | custom4 | email | inbook | incollection | inproceetings | iournal | manual | mastersthesis | misc | phtthesis | proceetings | techreport | unpublishet | www y teEt|IeEt <<!ATTLIST text:bibliography-mark text:itentifier CtATAtIMPLIEt<<!ATTLIST text:bibliography-mark text:attress CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:annote CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:author CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:booktitle CtATAtIMPLIEt<<!ATTLIST text:bibliography-mark text:chapter CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:etition CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:etitor CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:howpublishet CtATAtIMPLIEt<<!ATTLIST text:bibliography-mark text:institution CtATAtIMPLIEt<<!ATTLIST text:bibliography-mark text:iournal CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:month CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:note CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:number CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:organivations CtATAtIMPLIEt<<!ATTLIST text:bibliography-mark text:pages CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:publisher CtATAtIMPLIEt<<!ATTLIST text:bibliography-mark text:school CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:series CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:title CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:report-type CtATAtIMPLIEt<<!ATTLIST text:bibliography-mark text:volume CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:year CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:url CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:custom1 CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:custom2 CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:custom3 CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:custom: CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:custom4 CtATA tIMPLIEt<<!ATTLIST text:bibliography-mark text:isbn CtATA tIMPLIEt<

mc5 Tabae oi Contents tabae oi iontents ian be ireated irom:

● Tabae oi iontent inde. marks in the te.t

● The oStaine strSitSre iormed by the headers

● rbitrary paragraph iormats

The tabae oi iontents is represented by the <text:table-of-content< eaementc

Chapter 7 Indexing 451

Page 452: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:table-of-content<RrT 9T

ooT <!ELEMENT text:table-of-content (text:table-of-content-source, text:intex-botyy<

The attribSte that yoS ian assoiiate tith the <text:table-of-content< eaement is:● text:style-name

This attribSte speiiiies the seition styae to Sse ior iormatting the tabae oi iontentsc

ooT <!ATTLIST text:table-of-content text:style-name %styleName;tIMPLIEt<

mc5c0 Tabae oi Content oSrieThe <text:table-of-content-source< eaement speiiiies hot the tabae oi iontents is generatedc tspeiiiies hot the entries are gatheredc

rg int T <text:table-of-content-source<RrT 9T

ooT <!ELEMENT text:table-of-content-source (text:intex-heater-template? | text:table-of-content-entry-templatea | text:intex-source-stylesa y <

The attribStes that yoS ian attaih to the <text:table-of-content-source< eaement are:● OStaine aerea

● se inde. marks

● se inde. soSrie styaes

● nde. siope

ee eition mc0c5 ior iniormation aboSt this attribStec

ooT <!ATTLIST text:table-of-content-source text:intex-scope(tocument|chaptery "tocument"<

● eaatire tab stop position

ee eition mc0c5 ior iniormation aboSt this attribStec

ooT <!ATTLIST text:table-of-content-source text:relative-tab-stop-position %boolean; "true"<

OStaine LereaThe text:outline-level attribSte speiiiies thiih oStaine aereas are Ssed then generating the tabae oiiontentsc

rg int T text:outline-level

452 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 453: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

RrT 9T The raaSe oi this attribSte mSst be none or an integer greater than keroc i the raaSe oi this attribSte is nones no entries are generated irom the oStainec i this attribSte is omitteds aaa oStaine aereas are Ssed by deiaSatc

ooT <!ATTLIST text:table-of-content-source text:outline-level CtATA teEt|IeEt<

se nde. arksThe text:use-intex-marks attribSte determines thether or not to Sse inde. marks to generate the tabae oiiontentc

rg int T text:use-intex-marksRrT 9T The raaSe oi this attribSte ian be true or falsec

i the raaSe is trues the tabae oi iontents iniaSdes entries generated irom tabaeoi iontent inde. marksc ee eition mc9 ior more iniormation on inde. marksc

ooT <!ATTLIST text:table-of-content-source text:use-intex-marks %boolean; "true"<

se nde. oSrie tyaesThe text:use-intex-source-styles attribSte determines thether or not inde. entries are generated iorparagraph iormatted Ssing iertain paragraph styaesc

rg int T text:use-intex-source-stylesRrT 9T The raaSe oi this attribSte ian be true or falsec

i the raaSe is trues the tabae oi iontents iniaSdes an entry ior erery para-graph iormatted tith one oi the styaes speiiiied in a <text:intex-source-style< eaementc

ooT <!ATTLIST text:table-of-content-source text:use-intex-source-styles %boolean; "false"<

mc5c Tabae oi Content Entry TempaateThe <text:table-of-content-entry-template< eaement determines the iormat oi an inde. entry iora partiiSaar oStaine aereac

Chapter 7 Indexing 453

Page 454: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:table-of-content-entry-template<RrT 9T This eaement sSpports the ioaaoting ihiad eaements:

● text:intex-entry-chapter-number● text:intex-entry-page-number● text:intex-entry-text● text:intex-entry-span● text:intex-entry-tab-stop● text:intex-entry-link-start● text:intex-entry-link-ent

ooT <!ELEMENT text:table-of-content-entry-template ( text:intex-entry-chapter | text:intex-entry-page-number | text:intex-entry-text | text:intex-entry-span | text:intex-entry-tab-stop | text:intex-entry-link-start | text:intex-entry-link-ent ya<

uu4un1T The OpenOiiiiecorg Sser interiaie onay aaaots tempaates to Sse one page nSmber and one entryte.t eaementc

The attribStes that yoS ian assoiiate tith the <text:table-of-content-entry-template< eaementare:

● Tempaate oStaine aerea

● Paragraph styae

Tempaate OStaine LereaThis attribSte speiiiies to thiih oStaine aerea the entry ioniigSration appaiesc

rg int T text:outline-levelRrT 9T YoS iannot hare sereraa <text:outline-level< eaements ior the same

oStaine aerea tithin a parent eaementc

ooT <!ATTLIST text:table-of-content-entry-template text:outline-level %number; teEt|IeEt<

Paragraph tyaeThe text:style-name attribSte speiiiies the paragraph styae to Sse ior this tempaatec

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:table-of-content-entry-template text:style-name %styleName; teEt|IeEt<

454 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 455: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

mc6 nde. oi aaSstrationsThe inde. oi iaaSstrations aists aaa images and graphiis in the iSrrent doiSment or ihapterc The inde. entries ianbe derired irom the iaption oi the iaaSstration or the name oi the iaaSstrationc

rg int T <text:illustration-intex<RrT 9T

ooT <!ELEMENT text:illustration-intex (text:illustration-intex-source, text:intex-botyy<

The attribStes that yoS ian attaih to the <text:illustration-intex< eaement are:● text:style-name

This attribSte speiiiies the seition styae to Sse ior the inde. oi iaaSstrationsc

ooT <!ATTLIST text:illustration-intex text:style-name %styleName; tIMPLIEt<

mc6c0 nde. oi aaSstration oSrieThe <text:illustration-intex-source< eaement speiiiies hot the inde. oi iaaSstrations is generatedc

rg int T <text:illustration-intex-source<RrT 9T

ooT <!ELEMENT text:illustration-intex-source (text:intex-heater-template? | text:illustration-intex-entry-template?y <

The attribStes yoS ian Sse tith a <text:illustration-intex-source< eaement are:● se iaption

● Caption seqSenie name

● Caption seqSenie iormat

● nde. siope

This attribSte speiiiies thether the inde. appaies to the entire doiSment or onay the the iSrrent ihapterc

ooT <!ATTLIST text:illustration-intex-source text:intex-scope(tocument|chaptery "tocument"<

● text:relative-tab-stop-positionThis attribSte speiiiies thether the position oi tab stops are interpreted reaatire to the aeit margin or the aeitindentc

ooT <!ATTLIST text:illustration-intex-source text:relative-tab-stop-position %boolean; "true"<

Chapter 7 Indexing 455

Page 456: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

se Caption n OpenOiiiiecorgs eaih objeit iontained in a te.t doiSment has a namec n additions images aaso hare a iaptioncThe image iaption or the image name ian be gathered ior the inde. oi iaaSstrationsc

rg int T text:use-captionRrT 9T This attribSte ian hare a raaSe oi true or falsec

i the raaSe is trues the image iaption is Ssedc i the raaSe is falses the image name is Ssedc

ooT <!ATTLIST text:illustration-intex-source text:use-caption %boolean; "true"<

Caption eqSenie NameCaptions are assoiiated tith a seqSenie namec i the text:use-caption attribSte is set to trues yoS mSstSse this attribSte to speiiiy the seqSenie tith thiih the iaptions are assoiiatedc

rg int T text:caption-sequence-nameRrT 9T i this attribSte is omitteds the deiaSat seqSenie ior the objeit type is Sseds ior

e.ampae the seqSenie e aaSstrationr is Ssed ior iaaSstrationsc

ooT <!ATTLIST text:illustration-intex-source text:caption-sequence-name %string; tIMPLIEt<

Caption eqSenie Format i the entries ior the inde. oi iaaSstrations are obtained irom the image iaptionss yoS mSst Sse this attribSte tospeiiiy the iormat ior the entriesc

rg int T text:sequence-formatRrT 9T The raaSe oi this attribSte ian be texts category-ant-values or

captionc ooT <!ATTLIST text:illustration-intex-source text:

sequence-format (text|category-ant-value|captionytIMPLIEt<

mc6c aaSstration nde. Entry TempaateThe iaaSstration inde. entry tempaate eaement determines the iormat oi an inde. entry ior a partiiSaar oStaine aereac

456 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 457: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:illustration-intex-entry-template<RrT 9T This eaement sSpports the ioaaoting ihiad eaements:

● text:intex-entry-page-number● text:intex-entry-text● text:intex-entry-span● text:intex-entry-tab-stop

ooT <!ELEMENT text:illustration-intex-entry-template ( text:intex-entry-page-number | text:intex-entry-text | text:intex-entry-span | text:intex-entry-tab-stop ya<

uu4un1T The OpenOiiiiecorg Sser interiaie onay aaaots tempaates to Sse one page nSmber and one entryte.t eaementc

inie yoS ian onay hare one <text:illustration-intex-entry-template< eaements yoS do notneed to Sse the text:outline-level attribStec The attribSte that yoS ian assoiiate tith the <text:illustration-intex-entry-template< eaement is:● Paragraph styae

Paragraph tyaeThis attribSte identiiies the paragraph styae to Sse ior this tempaatec

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:illustration-intex-entry-template text:style-name %styleName; teEt|IeEt<

mcm nde. oi TabaesThe inde. oi tabaes aists aaa oi the tabaes in the iSrrent doiSment or ihapterc t torks in e.aitay the same tay asthe inde. oi iaaSstrationsc

rg int T <text:table-intex<RrT 9T

ooT <!ELEMENT text:table-intex (text:table-intex-source, text:intex-botyy< <!ATTLIST text:table-intex text:style-name %styleName; tIMPLIEt<

mcmc0 Tabae nde. oSrieThe <text:table-intex-source< eaement speiiiies hot the inde. oi tabaes is generatedc

Chapter 7 Indexing 457

Page 458: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:table-intex-source<RrT 9T

ooT <!ELEMENT text:table-intex-source (text:intex-heater-template?, text:table-intex-entry-template?y < <!ATTLIST text:table-intex-source text:intex-scope (tocument|chaptery "tocument" text:relative-tab-stop-position %boolean; "true" text:use-caption %boolean; "true" text:caption-sequence-name %string; tIMPLIEt text:sequence-format (text|category-ant-value|captiony tIMPLIEt<

The attribStes that yoS ian assoiiate tith this eaement are the same as those that ian be assoiiated tith the<text:illustration-intex-source< eaementc ee eition mc6c0 ior detaiaed iniormation aboSt theseattribStesc

mcmc Tabae nde. Entry TempaateThe tabae inde. entry tempaate eaement determines the iormat oi an inde. entry ior a partiiSaar oStaine aereac

rg int T <text:table-intex-entry-template<RrT 9T

ooT <!ELEMENT text:table-intex-entry-template ( text:intex-entry-page-number | text:intex-entry-text | text:intex-entry-span | text:intex-entry-tab-stop ya< <!ATTLIST text:table-intex-entry-template text:style-name %styleName; teEt|IeEt<

The attribStes that yoS ian assoiiate tith this eaement are the same as those that ian be assoiiated tith the<text:illustration-intex-entry-template< eaementc ee eition mc6c0 ior detaiaed iniormationaboSt these attribStesc

mcr nde. oi ObjeitsThe inde. oi objeits aists aaa oi the objeits in the iSrrent doiSment or ihapterc t gathers its entries irom theknotn objeit typesc

rg int T <text:obiect-intex<RrT 9T

ooT <!ELEMENT text:obiect-intex (text:obiect-intex-source, text:intex-botyy< <!ATTLIST text:obiect-intex text:style-name %styleName; tIMPLIEt<

mcrc0 Objeit nde. oSrieThe <text:obiect-intex-source< eaement determines thiih objeit types to iniaSde in the inde. oi

458 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 459: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

objeitsc t aaso sSpports the standard inde. soSrie attribStesc

rg int T <text:obiect-intex-source<RrT 9T

ooT <!ELEMENT text:obiect-intex-source (text:intex-heater-template?, text:obiect-intex-entry-template?y <

The attribStes that yoS ian assoiiate tith the <text:obiect-intex-source< eaement are:● se attribStess text:use-a-obiects● nde. siope

This attribSte speiiiies thether the inde. appaies to the entire doiSment or onay the the iSrrent ihapterc

ooT <!ATTLIST text:illustration-intex-source text:intex-scope(tocument|chaptery "tocument"<

● eaatire tab stop position

This attribSte speiiiies thether the position oi tab stops are interpreted reaatire to the aeit margin or the aeitindentc

ooT <!ATTLIST text:illustration-intex-source text:relative-tab-stop-position %boolean; "true"<

se ttribStesThe text:use-a-obiects attribStes speiiiy thiih types oi objeits to iniaSde in the inde. oi objeitsc Thereis an attribSte ior eaih type oi OpenOiiiiecorg objeit as ioaaots:

● text:use-spreatsheet-obiects● text:use-traw-obiects● text:use-chart-obiects● text:use-math-obiectsOther objeits are iniaSded or omitted Ssing the ioaaoting attribSte:

● text:use-other-obiects

rg int T text:use-spreatsheet-obiectstext:use-math-obiectstext:use-traw-obiectstext:use-chart-obiectstext:use-other-obiects

RrT 9T

ooT <!ATTLIST text:obiect-intex-source text:use-spreatsheet-obiects %boolean; "false" text:use-traw-obiects %boolean; "false" text:use-chart-obiects %boolean; "false" text:use-other-obiects %boolean; "false" text:use-math-obiects %boolean; "false"<

Chapter 7 Indexing 459

Page 460: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

mcrc Objeit nde. Entry TempaateThe objeit inde. entry tempaate eaement determines the iormat oi an inde. entry ior a partiiSaar oStaine aereac

rg int T <text:obiect-intex-entry-template<RrT 9T

ooT <!ELEMENT text:obiect-intex-entry-template ( text:intex-entry-page-number | text:intex-entry-text | text:intex-entry-span | text:intex-entry-tab-stop ya< <!ATTLIST text:obiect-intex-entry-template text:style-name %styleName; teEt|IeEt<

The attribStes that yoS ian assoiiate tith this eaement are the same as those that ian be assoiiated tith the<text:illustration-intex-entry-template< eaementc ee eition mc6c0 ior detaiaed iniormationaboSt these attribStesc

mc ser-Deiined nde. Sser-deiined inde. iombines the iapabiaities oi the inde.es disiSssed earaier in this ihapterc Sser-deiinedinde. ian gather entries irom the ioaaoting soSries:

● nde. marks

● Paragraphs iormatted Ssing partiiSaar paragraph styaes

● Tabaess imagess or objeits

● Te.t irames

The <text:user-intex< eaement represents a Sser-deiined inde.c

rg int T <text:user-intex<RrT 9T

ooT <!ELEMENT text:user-intex (text:user-intex-source, text:intex-botyy< <!ATTLIST text:user-intex text:style-name %styleName; tIMPLIEt<

mc c0 ser-Deiined nde. oSrieThe <text:user-intex-source< eaement ian iontain sereraa attribStes that determine hot the inde.entries are gatheredc t aaso sSpports an attribSte that determines hot the oStaine aereas oi the inde. entries aregatheredc

The paragraph iormats that are Ssed as inde. marks are enioded in <text:intex-source-styles<eaementss jSst aike in <text:table-of-content-source< eaementsc

460 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 461: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:user-intex-source<RrT 9T

ooT <!ELEMENT text:user-intex-source ( text:intex-heater-template?, text:user-intex-entry-templatea, text:intex-source-stylesa y <

The attribStes yoS ian Sse tith <text:user-intex-source< eaements are:● se attribStess text:use-a● Copy oStaine aerea

● nde. siope

This attribSte speiiiies thether the inde. appaies to the entire doiSment or onay to the iSrrent ihapterc

ooT <!ATTLIST text:user-intex-source text:intex-scope (tocument|chaptery "tocument"<

● nde. name

n order to sSpport sereraa Sser-deiined inde.es tith diiierent iontentss Sser inde. marks hare a text:intex-name attribStec The same attribSte ian be Ssed tith a <text:user-intex-source< eaement tospeiiiy thiih inde. marks appay to the iSrrent inde.c

ooT <!ATTLIST text:user-intex-source text:intex-name %string;tIMPLIEt<

● eaatire tab stop position

This attribSte speiiiies thether the position oi tab stops are interpreted reaatire to the aeit margin or the aeitindentc

ooT <!ATTLIST text:user-intex-source text:relative-tab-stop-position %boolean; "true"<

se ttribStesThe text:use-a attribStes speiiiy thiih entries to iniaSde in the Sser-deiined inde.c The attribStes that yoSian speiiiy are:

● text:use-intex-marks● text:use-graphics● text:use-tables● text:use-floating-frames● text:use-obiects

rg int T text:use-intex-markstext:use-graphicstext:use-tablestext:use-floating-framestext:use-obiects

RrT 9T

Chapter 7 Indexing 461

Page 462: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ATTLIST text:user-intex-source text:use-intex-marks %boolean; "false" text:use-graphics %boolean; "false" text:use-tables %boolean; "false" text:use-floating-frames %boolean; "false" text:use-obiects %boolean; "false"<

Copy OStaine Lereasrg int T text:copy-outline-levelsRrT 9T This attribSte ian hare a raaSe oi true or falsec

i the raaSe is trues the entries are gathered at the oStaine aerea oi the soSrieeaement to thiih they reierc

i the raaSe is falses aaa inde. entries gathered are at the top oStaine aereac Fore.ampaes ii an image appears in eition 0c c4s the entry ior the image is aoiatedat oStaine aerea 4c

ooT <!ATTLIST text:user-intex-source text:copy-outline-levels %boolean; "false"<

mc c ser-Deiined nde. Entry Tempaate ser inde. entry tempaates sSpport entry eaements ior ihapter nSmbers page nSmbers entry te.ts te.t spanss andtab stopsc

rg int T <text:user-intex-entry-template<RrT 9T This eaement sSpports the ioaaoting ihiad eaements:

● text:intex-entry-chapter-number● text:intex-entry-page-number● text:intex-entry-text● text:intex-entry-span● text:intex-entry-tab-stop

ooT <!ELEMENT user-intex-entry-template ( text:intex-entry-chapter | text:intex-entry-page-number | text:intex-entry-text | text:intex-entry-span | text:intex-entry-tab-stop ya<

The attribStes that yoS ian assoiiate tith the <text:user-intex-entry-template< eaements are:● Tempaate oStaine aerea

● Paragraph styae

Tempaate OStaine LereaThe text:outline-level attribSte speiiiies to thiih oStaine aerea this entry ioniigSration appaiesc

462 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 463: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:outline-levelRrT 9T YoS iannot hare sereraa <text:outline-level< eaements ior the same

oStaine aerea tithin a parent eaementc

ooT <!ATTLIST text:table-of-content-entry-template text:outline-level %number; teEt|IeEt<

Paragraph tyaeThe text:style-name attribSte speiiiies the paragraph styae to Sse ior the tempaatec

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:table-of-content-entry-template text:style-name %styleName; teEt|IeEt<

mc02 aphabetiiaa nde. n aaphabetiiaa inde. gathers its entries soaeay irom inde. marksc

rg int T <text:alphabetical-intex<RrT 9T

ooT <!ELEMENT text:alphabetical-intex (text:alphabatical-intex-source, text:intex-botyy< <!ATTLIST text:alphabetical-intex text:style-name %styleName;tIMPLIEt<

mc02c0 aphabetiiaa nde. oSrieThe <text:alphabetical-intex-source< eaement speiiiies hot the aaphabetiiaa inde. is generatedc

rg int T <text:alphabetical-intex-source<RrT 9T

ooT <!ELEMENT text:alphabetical-intex-source ( text:intex-heater-template?, text:alphabetical-intex-entry-templatea y <

The attribStes yoS ian assoiiate tith <text:alphabetical-intex-source< eaements are:● gnore iase

● ain entry styae name

● aphabetiiaa separators

● Combine entries attribStes

● se keys as entries

● Capitaaike entries

Chapter 7 Indexing 463

Page 464: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Comma separated entries

● nde. siope

This attribSte speiiiies thether the inde. appaies to the entire doiSment or onay to the iSrrent ihapterc

ooT <!ATTLIST text:alphabetical-intex-source text:intex-scope(tocument|chaptery "tocument"<

● eaatire tab stop position

This attribSte speiiiies thether the position oi tab stops are interpreted reaatire to the aeit margin or the aeitindentc

ooT <!ATTLIST text:alphabetical-intex-source text:relative-tab-stop-position %boolean; "true"<

gnore CaseThe text:ignore-case attribSte determines thether or not the iapitaaikation oi tords is ignoredc

rg int T text:ignore-caseRrT 9T The raaSe oi this attribSte ian be true or falsec

i the raaSe is trues the iapitaaikation is ignored and entries that are identiiaae.iept ior iharaiter iase are aisted as the same entriesc

i the raaSe is falses the iapitaaikation oi tords is not ignoredcooT <!ATTLIST text:alphabetical-intex-source text:

ignore-case %boolean; "false"<

ain Entry tyae NameThe text:main-entry-style-name attribSte determines the iharaiter styae to Sse ior main entriesc Sb-entries are iormatted Ssing the deiaSat iharaiter styae determined by the paragraph styae oi the entriesc

rg int T text:main-entry-style-nameRrT 9T

ooT <!ATTLIST text:alphabetical-intex-source text:main-entry-style-name %styleName; tIMPLIEt<

aphabetiiaa eparatorsThe text:alphabetical-separators attribSte determines thether or not entries beginning tith thesame aetter are groSped and separated irom the entries beginning tith the ne.t aetters and so onc

rg int T text:alphabetical-separatorsRrT 9T The raaSe oi this attribSte ian be true or falsec

i the raaSe is trues aaa entries beginning tith the same aetter are groSpedtogetherc The inde. iontains headings ior eaih seitions ior e.ampaes ior aaaentries starting tith the aetter s B ior aaa entries starting tith the aetter Bs andso onc

464 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 465: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ooT <!ATTLIST text:alphabetical-intex-source text:alphabetical-separators %boolean; "false"<

Combining EntriesThe OpenOiiiiecorg soittare prorides sereraa options ior deaaing tith the iommon sitSation there yoS haremSatipae inde. entries ior the same tord or phrases as ioaaots:

● Satipae entries ior the same tord ian be iombined into a singae entry Ssing the text:combine-entries attribStec

● i the iombined entry iontains a seqSenie oi pagess the pages ian be iormatted:

➢ s a range oi nSmbers separated by a dash Ssing the text:combine-entries-with-tashattribSte

➢ s the start nSmber tith a pp aabeas or the appropriate aabea ior the ihosen aangSages Ssing the text:combine-entries-with-pp attribSte

rg int T text:combine-entriestext:combine-entries-with-tashtext:combine-entries-with-pp

RrT 9T

ooT <!ATTLIST text:alphabetical-intex-source text:combine-entries %boolean; "true" text:combine-entries-with-tash %boolean; "false" text:combine-entries-with-pp %boolean; "true"<

E4oT Tinu1u1.iu1t i 1Iu 9

n inde. mark ior the tord Ass oiiSrs on pages 95s 96s 9ms and 9rc The entries ian be iormatted as ioaaots:

E1IyienI4 ti49 R 9rT

eparate entries X Lcccccccccccccccccccccccccccccccccccccc 95X Lcccccccccccccccccccccccccccccccccccccc 96etic

impae iombined entries X Lcccccccccccccccccccccccccccccccccccccc 95s 96s 9ms 9r

Entries iombined tith dash X Lcccccccccccccccccccccccccccccccccccccc 95-9r

Entries iombined tith pp X Lcccccccccccccccccccccccccccccccccccccc 95pp

se 2eys as Entries n addition to a keytords inde. marks ian hare Sp to tto keysc

rg int T text:use-keys-as-entriesRrT 9T i the raaSe oi this atttribSte is trues the keys are Ssed as additionaa entriesc

i the raaSe oi this attribSte is falses the keys are Ssed as sSb-entriescooT <!ATTLIST text:alphabetical-intex-source text:use-

keys-as-entries %boolean; "false"<

Chapter 7 Indexing 465

Page 466: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Capitaaike EntriesThe text:capitalive-entries attribSte determines thether or not the OpenOiiiiecorg soittare iapitaa-ikes aaa entries in the inde.c

rg int T text:capitalive-entriesRrT 9T The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST text:alphabetical-intex-source text:

capitalive-entries %boolean; "false"<

Comma eparated EntriesThe text:comma-separatet attribSte speiiiies hot to treat mSatipae inde. entriesc nstead oi aisting eaihinde. entry on a separate aines the OpenOiiiiecorg soittare ian aist mSatipae entries on a singae aine separated by aiommac

rg int T text:comma-separatetRrT 9T i the raaSe oi this attribSte is trues mSatipae entries are aisted on a singae aine

separated by a iommac

By deiaSats the raaSe oi this attribSte is false and eaih inde. entry isdispaayed on a separate ainec

ooT <!ATTLIST text:alphabetical-intex-source text:comma-separatet %boolean; "false"<

mc02c aphabetiiaa nde. Entry Tempaate aphabetiiaa inde.es sSpport three aereas; one aerea ior the main inde. entrys and Sp to tto additionaa aereas iorkeys assoiiated tith the inde. entriesc aphabetiiaa inde.es aaso Sse an entry tempaate ior the aaphabetiiaa sepa-ratorc

rg int T <text:alphabetical-intex-entry-template<RrT 9T aphabetiiaa inde.es sSpport the ioaaoting ihiad eaements:

● text:intex-entry-chapter● text:intex-entry-page-number● text:intex-entry-text● text:intex-entry-span● text:intex-entry-tab-stop

ooT <!ELEMENT alphabetical-intex-entry-template ( text:intex-entry-chapter | text:intex-entry-page-number | text:intex-entry-text | text:intex-entry-span | text:intex-entry-tab-stop ya<

The attribStes that yoS ian assoiiate tith the <text:alphabetical-intex-entry-template<eaements are:

● Tempaate oStaine aerea

466 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 467: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● Paragraph styae

Tempaate OStaine LereaThis attribSte speiiiies thether the tempaate appaies to:

● One oi the three aereas 0s sor 4

or

● The aaphabetiiaa separator

rg int T text:outline-levelRrT 9T The raaSe oi this attribSte ian be 1s 2s 3s or separatorc

YoS iannot hare sereraa <text:outline-level< eaements ior the sameoStaine aerea tithin the same parent eaementc

ooT <!ATTLIST text:table-of-content-entry-template text:outline-level (1|2|3|separatory teEt|IeEt<

Paragraph tyaeThe text:style-name attribSte speiiiies the paragraph styae to Sse ior the tempaatec

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:table-of-content-entry-template text:style-name %styleName; teEt|IeEt<

mc00 Bibaiography bibaiography inde. gathers its entries irom bibaiography inde. marksc The <text:bibliography< eaementrepresents a bibaiographyc

rg int T <text:bibliography<RrT 9T

ooT <!ELEMENT text:bibliography (text:bibliography-source, text:intex-botyy< <!ATTLIST text:bibliography text:style-name %styleName;tIMPLIEt<

mc00c0 Bibaiography nde. oSrieThe <text:bibliography-source< eaement speiiiies hot the bibaiography is generatedc

Chapter 7 Indexing 467

Page 468: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <text:bibliography-source<RrT 9T This eaement does not hare an assoiiated attribStesc

ooT <!ELEMENT text:alphabetical-intex-source ( text:intex-heater-template?, text:bibliography-entry-templateay <

oT 14un1Tuu4un1T

Bibaiography do not iSrrentay sSpport the iommon inde. soSrie attribStes desiribed in eitionmc0c5c

mc00c Bibaiography Entry TempaateBibaiography entry tempaates sSpport entry eaements ior bibaiography datas te.t spanss and tab stopsc There is oneentry tempaate eaement ior eaih type oi entryc

rg int T <text:bibliography-entry-template<RrT 9T This eaement sSpports the ioaaoting ihiad eaements:

● text:intex-entry-span● text:intex-entry-tab-stop● text:intex-entry-bibliography-tata-fielt

ooT <!ELEMENT text:bibliography-entry-template ( text:intex-entry-span | text:intex-entry-tab-stop | text:intex-entry-bibliography-tata-fielt ya<

The attribStes that yoS ian assoiiate tith the <text:bibligraphy-entry-template< eaements are:● Bibaiography type

● Paragraph styae

Bibaiography TypeThis attribSte speiiiies to thiih type oi bibaiographiiaa entry the tempaate appaiesc

rg int T text:bibliography-typeRrT 9T This attribSte mSst be SniqSe among aaa <text:bibliography-type<

eaements tithin the same parent eaementc

ooT <!ATTLIST text:bibliography-entry-template text:outline-level ( article | book | booklet | conference | custom1 | custom2 | custom3 | custom: | custom4 | email | inbook | incollection | inproceetings | iournal | manual | mastersthesis | misc | phtthesis | proceetings | techreport | unpublishet | www y teEt|IeEt<

Paragraph tyaeThe text:style-name attribSte speiiiies the paragraph styae to Sse ior this tempaatec

468 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 469: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T text:style-nameRrT 9T

ooT <!ATTLIST text:table-of-content-entry-template text:style-name %styleName; teEt|IeEt<

Chapter 7 Indexing 469

Page 470: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion
Page 471: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

r Chart Content

This ihapter desiribes OpenOiiiiecorg X L ihart iontentc t iontains the ioaaoting seitions:

● ntrodSition to Chart DoiSments

● Chart

● Titae

● Sbtitae

● Legend

● Paot rea

● Daaa

● Faoor

● .is

● eries

● Categories

● Data Point

● Common Chart Properties

rc0 ntrodSition to Chart DoiSments n OpenOiiiiecorg X Ls ihart doiSments are aatays iontained tithin other X L doiSmentsc There are ttotypes oi iontainer ihart doiSments:

● DoiSments that do not proride data ior the ihart The ihart data is iontained in a <table:table< eaement inside the <chart:chart< eaementc

● DoiSments that proride data ior the ihartThe ihart data may be iontained in a <table:table< eaement in the parent doiSments ior e.ampaes in aspreadsheet or te.t doiSmentc

To reierenie the iorreit tabae and tabae ieaass yoS ian Sse the table:cell-range-attress attribStessthiih are appaied to the achart:plot-area< eaement that represents the risSaaikation iontainer oi aaa dataseries in the ihartc

471

CHAPTER 8

Page 472: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rc ChartThe ihart eaement represents an entire iharts iniaSding titaess a aegend s and the graphiiaa objeit that risSaaikes theSnderaying data iaaaed the paot areac The data Snderaying the ihart is represented by a tabae eaementc This eaementmay aaso e.ist ior embedded iharts that get the data irom the iontainer doiSmentc n this iase the ihart ian berendered tithoSt getting the data irom the iontainer doiSmentc

rg int Ti <chart:chart<RrT 9Ti

ooT <!ELEMENT chart:chart ( chart:plot-area, chart:title?, chart:subtitle?, chart:legent? table:table? y<

CaassThe iaass attribSte speiiiies the ihart typec i yoS need to speiiiy the type more preiiseay there are additionaaproperties that yoS ian assign Ssing styaesc For e.ampaes ii yoS tant to speiiiy a 4D bar ihart tith horikontaabarss yoS mSst set the iaass attribSte to bar and yoS mSst set the properties ior three dimensionaa and horikontaaarrangement in the iorresponding styae attribStec

rg int Ti chart:classRrT 9Ti The raaSe oi this attribSte ian be one oi the main iategories oi ihart types: lines areas

circles rings scatters ratars bars or stockc The raaSe bubble is not yet sSpportedby the <chart:chart< eaementc

oT 14un1Tuu4un1T

CSrrentays this attribSte is onay sSpported by the <chart:chart< eaementc

ooT <!ENTITY % chart-class "(line|area|circle|ring|scatter|ratar|bar|stock|bubble|att-iny"<<!ATTLIST chart:chart chart:class %chart-class; teEt|IeEt chart:att-in-name %string; tIMPLIEt svg:witth %length; tIMPLIEt svg:height %length; tIMPLIEt chart:column-mapping %string; tIMPLIEt chart:row-mapping %string; tIMPLIEt chart:style-name %style-name; tIMPLIEt <

The att-in-name attribSte iontains the serriie name oi a ihart type addin that is Ssed ii the chart-classis set to att-inc That is a NO serriie that is registered in the oiiiie and is iapabae oi rendering a ihartcThe svg:witth and svg:height attribStes deiine the e.tent oi the entire ihartc Normaaays the sike oi theihart is determined by the sike oi the tindot in thiih the ihart is dispaayedc YoS ian set these attribStes as areierenie sikes so that positions and sikes in sSb-eaements ian be adaptedc

The chart:column-mapping and chart:row-mapping attribStes iontain ii prorided a aist oi inde.es oiseriesc The nSmbers deiine a reordering oi data that iomes irom a iontainer doiSment that prorides the data iorthe ihartc aist oi asiending nSmbers beginning tith 0 has no eiieitc i yoS tant to e.ihange tto seriess yoSmSst trite the nSmbers in e.ihanged orders ior e.ampaes 1 3 2 :, to e.ihange the seiond and the third seriescThe nSmbering begins tith 0c Note that yoS ian onay Sse one oi the tto attribStesc

472 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 473: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Generaa tyae PropertiesThe siaae te.t property aaaots yoS to speiiiy that aaa te.t objeits in the ihart shoSad be siaaed thenerer the sikeoi the ihart ihanges c

rg int Ti chart:scale-textRrT 9Ti To enabae siaaings set the raaSe oi this property to truec ooT <!ATTLIST style:properties chart:scale-text %boolean;

"true" <

To set the baikgroSnd properties ior a achart:chart< eaements yoS ian Sse the Fiaa Properties idesiribed in eition rc04c0o and the troke Properties idesiribed in eition rc04c oc

rc4 TitaeThe titae eaement represents a main titae objeit in a ihart doiSmentc

rg int Ti <chart:title<RrT 9Ti This eaement ian iontain ii.ed te.t or it ian iontain a <table:cell-attress< eaement

pointing to the te.t that shoSad be dispaayed as the titaec

This eaement ian aaso be a sSb-eaement oi chart:axis,see eition rc c n this iase the titaeis dispaayed beside the a.is objeitc

oT 14un1Tuu4un1T

CSrrentays onay inpaaie titaes are sSpportedc

ooT <!ELEMENT chart:title text:p?<<!ATTLIST chart:title table:cell-range %cell-attress; tIMPLIEt svg:x %Coortinate; tIMPLIEt svg:y %Coortinate; tIMPLIEt chart:style-name %style-name; tIMPLIEt <

PropertiesYoS ian appay iiaa and stroke properties to the sSrroSnding titae bo.c ee eitions rc04c0 and rc04c ior moreiniormationc YoS ian aaso appay te.t properties to the titae te.t itseais see eition rc04c4c YoS ian aaso appay ttoaaignment propertiess Orientation and otation ngaes see eition rc04c9c

rc9 SbtitaeThe sSbtitae eaement represents a sSbtitae thiih ian be Ssed ior additionaa titae iniormation in a ihartc The strSi-tSre oi the sSbtitae eaement is simiaar to that oi the titae eaementc

Chapter 8 Chart Content 473

Page 474: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <chart:subtitle<RrT 9Ti

oT 14un1Tuu4un1T

CSrrentays onay inpaaie titaes are sSpportedc

ooT <!ELEMENT chart:subtitle text:p?<<!ATTLIST chart:subtitle table:cell-range %cell-attress; tIMPLIEt svg:x %Coortinate; tIMPLIEt svg:y %Coortinate; tIMPLIEt chart:style-name %style-name; tIMPLIEt <

PropertiesYoS ian appay the same properties to the <chart:subtitle< eaement as yoS ian appay to the <chart:title< eaementc ee eition rc4 ior more iniormationc

rc5 LegendThe aegend eaement determines thether or not a aegend is dispaayed in the ihartc YoS ian set either a reaatire oran absoaSte position ior the aegendc The sike oi the aegend is iaaiSaated aStomatiiaaay and thereiore iannot be setas attribStec

rg int Ti <chart:legent<RrT 9Ti

ooT <!ELEMENT chart:legent EMPTY<<!ATTLIST chart:legent chart:legent-position (top|left|bottom|righty "right" svg:x %Coortinate; tIMPLIEt svg:y %Coortinate; tIMPLIEt chart:style-name %style-name; tIMPLIEt <

PropertiesYoS ian appay iiaa and stroke properties to the aegend objeits see eitions rc04c0and rc04c c YoS ian aaso set te.tproperties ior the te.t inside the aegend objeits see eition rc04c4c

rc6 Paot reaThe paot area eaement is a iontainer ior the graphiis objeits that represent ihart datac The main pSrpose oi thepaot area is to be a iontainer ior the series eaements that represent singae data seriess and the a.is eaementsc

474 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 475: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <chart:plot-area<RrT 9Ti

ooT <!ELEMENT chart:plot-area (chart:seriesa, chart:axisa, chart:wall?, chart:floor?y <<!ATTLIST chart:plot-area svg:x %Coortinate; tIMPLIEt svg:y %Coortinate; tIMPLIEt svg:witth %length; tIMPLIEt svg:height %length; tIMPLIEt table:cell-range-attress %cell-range-attress;tIMPLIEt chart:table-number-list %string; tIMPLIEt chart:tata-source-has-labels (none|row|column|bothy "none" < chart:style-name %style-name; tIMPLIEt <

The styae that yoS appay to the paot area eaement is Ssed ior aaa data eaements iontained inside the paot areas SnaessyoS speiiiy e.tra styaes in one oi those sSb eaementsc These data eaements ian be achart:series< andachart:tata-point< eaementsc i the position and sike attribStes are not speiiiieds the raaSes are iaaiSaated by the render appaiiationc

i a ihart is embedded in a doiSment that prorides the data ior the iharts the table:cell-range-attressattribSte reiaeits the ranges irom thiih aaa the data ior the ihart iomesc The range giren here is interpreted by theihart as ionseiStire seriesc i the iirst rot or ioaSmns or both iontains aabeass this is stated by the chart:tata-source-has-labels attribStecThe chart:table-number-list is neiessary ior storing Caai doiSments in the oad binary iormatc TheattribSte mSst be stored sinie this iniormation ian not be obtained easetherec The aist ionsists oi inde.es oi sheetsoi the Caai doiSmentc There is an inde. ior eaih range in the table:cell-range-attress eaementiontaining the inde. oi the sheet iontaining the reierred ieaasc

The onay pSrpose oi the styae attribSte is to store siene properties ior three-dimensionaa ihartsc

Properties i the ihart is three-dimensionaas yoS ian appay siene properties to the paot areac ee the ihapter entitaed heapiichontent ior more iniormationc

Sbtype Properties se these properties to iSstomike the basii ihart type set in the <chart:chart< eaementc

Chapter 8 Chart Content 475

Page 476: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti chart:stock-uptown-barschart:stock-with-volumechart:three-timensionalchart:teepchart:lineschart:percentagechart:solit-typechart:splineschart:stacketchart:symbolchart:verticalchart:lines-usetchart:connect-bars

RrT 9Ti The chart:teep property is onay reaerant tith the chart:three-timensionalpropertyc

The chart:symbol property is onay reaerant tith the chart:lines-uset propertycThe chart:vertical and chart:connect-bars properties are ior bar iharts onaycThe chart:stock-uptown-bars and chart:stock-with-volume propertiesare onay eiieitire ior stoik ihartsc

ooT <!ATTLIST style:properties chart:stock-uptown-bars %boolean; "false" chart:stock-with-volume %boolean; "false" chart:three-timensional %boolean; "false" chart:teep %boolean; "false" chart:lines %boolean; "false" chart:percentage %boolean; "false" chart:solit-type %chart-solit-type; "cuboit" chart:splines %nonNegativeInteger; "0" chart:stacket %boolean; "false" chart:symbol %integer; "-1" chart:vertical %boolean; "false" chart:lines-uset %nonNegativeInteger; "0" chart:connect-bars %boolean; "false"<

rcm DaaaThe taaa eaement ian be iontained in the paot area eaementc For tto-dimensionaa ihartss the taaa eaement spansthe entire paot areac For three-dimensionaa ihartss the taaa eaement SsSaaay ionsists oi tto perpendiiSaar reitan-gaesc YoS ian Sse the tidth attribSte to set the tidth oi a taaa ior three-dimensionaa ihartsc

rg int Ti <chart:wall<RrT 9Ti

oT 14un1Tuu4un1T

OpenOiiiiecorg Chart does not yet sSpport the tidth oi the taaac Daaas are aatays dratn askero-tidth reitangaesc

ooT <!ELEMENT chart:wall EMPTY<<!ATTLIST chart:wall svg:witth %length; tIMPLIEt chart:style-name %style-name; tIMPLIEt <

476 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 477: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

PropertiesYoS ian appay iiaa and stroke properties to a taaac ee eitions rc04c0 and rc04c ior more iniormationc

rcr FaoorThe iaoor eaement ian be iontained in the paot area eaementc For three-dimensionaa ihartss the iaoor eaement ispresent in addition to the taaa eaementc The sike oi the iaoor is determined in respeit oi the sike oi the paot areasthiih is aatays a tto-dimensionaa reitangae that serres as a boSnding reitangae oi the three-dimensionaa sienecYoS ian Sse the tidth attribSte to set the tidth oi the iaoorc

rg int Ti <chart:floor<RrT 9Ti

oT 14un1Tuu4un1T

OpenOiiiiecorg Chart does not yet sSpport the iaoor thiiknessc The iaoor thiikness is aatays aii.ed tidthc

ooT <!ELEMENT chart:floor EMPTY<<!ATTLIST chart:floor svg:witth %length; tIMPLIEt chart:style-name %style-name; tIMPLIEt <

PropertiesYoS ian appay iiaa and stroke properties to a iaoorc ee eitions rc04c0 and rc04c ior more iniormationc

rc .isThe a.is eaement mainay iontains styae iniormations in partiiSaar siaaing iniormationc Chart data is SsSaaay strSi-tSred as ioaaots:

● ereraa data series eaih ionsisting oi a names ior e.ampaes the name oi a iompanyc

● VaaSess ior e.ampaes the yiead oi the iompany in diiierent yearsc

● One raaSe in eaih series beaongs to a iategorys ior e.ampaes the yearc

u.rI Tir4Iit44i41tiu9iI oI 9 14un1

Chapter 8 Chart Content 477

Page 478: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <chart:axis<RrT 9Ti se the chart:axis-class attribSte to speiiiy thiih type oi data the a.is is assoiiated

tithc

ooT <!ELEMENT chart:axis (chart:title?,chart:grit?y<<!ATTLIST chart:axis chart:axis-class (category|value|series|tomainy teEt|IeEt chart:axis-name %string tIMPLIEt; chart:style-name %style-name; tIMPLIEt <

rII 1iuoT 14un1iTuu4un19T

● Titaes are onay sSpported ior a ma.imSm oi one a.is per iaassc

● OpenOiiiiecorg Chart onay sSpports the ioaaoting a.ess the nSmbers in parenthesis indiiating hot iar theraaSe ian e.tended:

ouI oun11o 2o

r I A4or4T r I A4or4T category 2 0i -9o 2value 0i4-9o 0i4-9oseries - - 0i -9o 2

tomain iior siattersbSbbae ihartso 2 - -

Deiining .esOere are some gSideaines ior deiining a.es in a ihart doiSment:

0c The iirst a.is yoS might tant to appay to a ihart is an a.is representing iategoriesc To do thiss yoS insert an

478 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Members of Series

namecell

valuesrow

aomainrow

Sor scatter ana bubble charts

aomainrow

Sor bubble charts

categoriesrow

Category 1 Category 2 Category 3 Category 4

0

1

2

3

4

5

6

7

8

9

10

Name 1Name 2Name 3

2 3 4 5 6 7 8 9 10

0

1

2

3

4

5

6

7

8

9

10

Name 1Name 2

View

Page 479: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

a.is eaement tith the axis:class attribSte set to categoryc c Ne.ts yoS insert an a.is shoting a siaae ior yoSr raaSesc To do thiss yoS insert an a.is eaement tith the

axis:class attribSte set to valuec 4c n three-dimensionaa iharts the names oi the seriess that are SsSaaay dispaayed in the aegends ian aaso be

dispaayed on an a.isc To do thiss insert an a.is eaement tith the axis:class attribSte set to seriesc 9c i yoS hare a siatter or bSbbae iharts eaih series has a domain oi raaSes speiiiying the .-ioordinates and y-

ioordinate ior bSbbae ihartss apart irom the raaSes that are to be risSaaikedc For these types oi ihartss yoS ianinsert an a.is eaement tith the axis:class attribSte set to tomains thiih tiaa resSat in an a.is simiaar tothe a.is desiribed in tep c

5c ihart ian iontain more than one a.is oi the same typec For e.ampaes ii yoS hare tto raaSe a.ess data seriesian be attaihed to either a.isc This tay data ian be groSped ior diiierent siaaingc To attaih a speiiiii a.is to aseries eaement yoS mSst reier to the a.is by the chart:axis-name attribStec The a.is name is reqSiredthenerer yoS intend to attaih data series to an a.isc Othertise the a.is beiomes a iopy oi an e.isting a.is oithe same iaassc

The position oi an a.is in a ihart is determined by the render appaiiation and depends on the ihart typec i yoShare a ihart tith horikontaa barss the render appaiiation SsSaaay paints the raaSe a.is on the bottom oi the paotareac i yoS hare tto raaSe a.ess a render appaiiation might paint the seiond a.is at the top oi the paot areac

n T i yoSr data ionsists oi nSmbers onay and yoS tant to ireate a siatter iharts the a.is representing the raaSesirom the .-a.is mSst hare the axis:class attribSte set to tomain aathoSgh yoSr domain ionsists oi raaSescE4oT TiB4Iior4I

n this e.ampaes there are tto raaSe a.es and one a.is has the name primary-valuec YoS ian attaih a dataseries to that named a.is by Ssing the namec There is no data attaihed to the seiond a.iss thereiore yoS do notneed to speiiiy a name and the a.is is jSst a iopy oi the iirst onec

<chart:chart chart:classp"bar"< <chart:title< <text:p<Title of my chart</text:p< </chart:title< <chart:plot-area< ... <chart:axis chart:axis-classp"category" chart:axis-namep"x"/< <chart:axis chart:axis-classp"value" chart:axis-namep"primary-value"/< <chart:axis chart:axis-classp"value"/< <!-- copy of previous axis --< ... <chart:series chart:values-attressp"Sheet1.A1:.A:" chart:attachet-axis-namep"primary-value"/< ... </chart:plot-area<</chart:chart<

Generaa PropertiesYoS ian appay stroke properties to a.ess see eition rc04c c These properties aiieit aaa aines oi the a.is objeitcYoS aaso ian appay te.t properties to a.ess see eition rc04c4c These properties aiieit the appearanie oi aaa te.tobjeitsc

NSmber Format PropertiesYoS ian appay nSmber iormat properties to a.ess thiih aiieit the nSmbers dispaayed beside the a.isc ee eition

Chapter 8 Chart Content 479

Page 480: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ior iniormation on nSmber iormat propertiesc i yoS omit these propertiess the standard nSmber iormat is Ssedc ithe ihart is embedded in a spreadsheet and yoS omit the nSmber iormat propertiess the nSmber iormat is takenirom the nSmber iormat settings oi the spreadsheet ieaas that iontain the ihart datac

ooT <!ATTLIST style:properties style:tata-style-name %style-name; tIMPLIEt chart:link-tata-style-to-source %boolean; "true" <

The chart:link-tata-style-to-source attribSte ian onay be Ssed in ihart doiSments that reside in adoiSment that prorides the data ior the ihartc i the raaSe oi the attribSte is trues the nSmber iormat Ssed iorrendering the a.is is the iormat that the iontainer doiSment sSggests based on the seaeited ieaa rangec Fore.ampaes ii yoS hare a ieaa range tith iSrreniies aaa iormatted in hs yoS tiaa aaso get this iormat at this a.isc

Visibiaity PropertyTo determine thether or not an a.is objeit is risibaes Sse the chart:axis-visible styae propertyc This taysyoS ian proride a ihart tith siaaing iniormation tithoSt dispaaying the a.is objeitc

rg int Ti chart:axis-visibleRrT 9Ti

ooT <!ATTLIST style:properties chart:axis-visible %boolean;"true" <

iaaing Properties i a siaaing attribSte is omitteds the a.is is set to adaptation modec This means that the raaSe is not set to a ii.edraaSe bSt may be ihanged by the render appaiiation ii data ihangesc Ooterers the chart:axis-logarithmic attribSte is set to falsec

ooT <!ATTLIST style:properties chart:axis-minimum %float; tIMPLIEt chart:axis-maximum %float; tIMPLIEt chart:axis-interval-maior %float; tIMPLIEt chart:axis-interval-minor %float; tIMPLIEt chart:axis-origin %float; tIMPLIEt chart:axis-logarithmic %boolean; "false"<

Tiikmark PropertiesThe tiikmark properties aaaot yoS to speiiiy the e.istenie oi tiikmarks at an a.isc The major marks are dratntith respeit to the major interraa that may be speiiiied by the chart:axis-interval-maior attribStec Theminor tiik marks reier to the chart:axis-interval-minor attribStec nner marks are dratn totards theinside oi the paot areas that is to the right ior an a.is dispaayed on the aeit hand side oi the paot areas and to the aeitior an a.is dispaayed on the right hand side oi the paot areac OSter marks point in the opposite direitionc i bothproperties are speiiiieds one tiik mark is dratn that irosses the a.isc

480 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 481: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti chart:axis-ticks-maior-inner chart:axis-ticks-maior-outerchart:axis-ticks-minor-innerchart:axis-ticks-minor-outer

RrT 9Ti

ooT <!ATTLIST style:properties chart:axis-ticks-maior-inner %boolean; "false" chart:axis-ticks-maior-outer %boolean; "true" chart:axis-ticks-minor-inner %boolean; "false" chart:axis-ticks-minor-outer %boolean; "false" <

Desiription PropertiesThe desiription properties iniaSenie the desiriptire te.t Snderneath the a.is objeitc

rg int Ti chart:axis-show-textstyle:rotation-anglechart:axis-text-overlapchart:axis-text-break

RrT 9Ti

ooT <!ATTLIST style:properties chart:axis-show-text %boolean; "true" style:rotation-angle %integer; "0" chart:axis-text-overlap %boolean; "false" chart:axis-text-break %boolean; "true" <

rc c0 GridGrids ian be added to a.is eaementsc i yoS appay a major grid to an a.iss the major tiikmarks are e.tended togridainesc i a grid is minors any minor tiikmarks assigned to the a.is are Ssedc

rg int Ti <chart:grit<RrT 9Ti

ooT <!ELEMENT chart:grit EMPTY<<!ATTLIST chart:grit grit:class (maior|minory "maior"chart:style-name %style-name; <

Generaa PropertiesYoS ian appay stroke properties to gridss thiih aiieit the aines oi the gridc ee eition rc04c ior iniormation onthese stroke propertiesc

rc02 eriesThe series eaement represents a data series in a ihartc

Chapter 8 Chart Content 481

Page 482: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <chart:series<RrT 9Ti

oT 14un1Tuu4un1T

OpenOiiiiecorg Chart does not iSrrentay sSpport the chart:class attribSte ior a seriescYoS ian onay set this attribSte ior an entire ihartc

ooT <!ELEMENT chart:series (chart:class?, chart:tomaina, chart:tata-pointa y<<!ATTLIST chart:series chart:values-cell-range-attress %cell-range-attress; tIMPLIEt chart:label-cell-attress %cell-attress; tIMPLIEt chart:class %chart-class; tIMPLIEt chart:style-name %style-name; tIMPLIEt <

The chart:values-cell-range-attress attribSte aaaots yoS to speiiiy a range that iontains the raaSesthat shoSad be risSaaiked by this data seriesc The chart:label-cell-attress attribSte aaaots to proride aname ior the seriesc i the ihart reqSires more inpSt data aike siatter and bSbbae ihartss yoS mSst deiine chart:tomain sSb-eaements that mainay iontain the cell-range-attress oi the iorresponding datac

Generaa PropertiesYoS ian appay iiaa and stroke properties ior seriess see eitions rc04c0 and rc04c ior iniormationc YoS ian aasoappay te.t properties to the desiriptire te.t Snderneath the seriess see eition rc04c4 ior iniormationc

rc02c0 DomainFor siatter and bSbbae ihartss yoS mSst speiiiy a domain ior the seriesc For e.ampaes one cell-range-attress raaSe that points to the ioordinate raaSes ior the siatter iharts or tto cell-range-attressraaSes ior the . and y ioordinate raaSes ior bSbbae ihartsc For these ihart typess yoS need at aeast one series tiththe neiessary nSmber oi domain sSb-eaementsc aa other series ian omit theses the iirst domain speiiiied is Ssedc

rg int Ti <chart:tomain<RrT 9Ti

oT 14un1Tuu4un1T

n OpenOiiiiecorg Charts yoS ian onay gire one range addresss thiih may be iompoSnds iromthiih raaSes are taken in a ii.ed orderc For e.ampaes in siatter iharts the iirst rotsioaSmnspeiiiies the .-raaSes ior aaa seriess the seiond rotsioaSmn represents the raaSes oi the iirstseries and so onc

ooT <!ELEMENT chart:tomain EMPTY<<!ATTLIST chart:tomain chart:coortinate-attress %cell-range-attress; teEt|IeEt <

rc00 CategoriesThe iategories eaement represents the range oi ieaa addresses that iontains the iaptions ior the iategoriesiontained in eaih seriesc

482 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 483: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti <chart:categories<RrT 9Ti

oT 14un1Tuu4un1T

OpenOiiiiecorg Chart does not iSrrentay sSpport the chart:class attribSte ior a seriescYoS ian onay set this attribSte ior an entire ihartc

ooT <!ELEMENT chart:categories EMPTY<<!ATTLIST chart:categories table:cell-range-attress %cell-range-attress; <

rc0 Data Point i a singae data point in a data series shoSad hare a speiiiii appearanies the data point eaement is Ssed to appay thereqSired propertiesc

rg int Ti <chart:tata-point<RrT 9Ti

ooT <!ELEMENT chart:tata-point<<!ATTLIST chart:tata-point chart:intex %nonNegativeInteger;teEt|IeEt chart:style-name %style-name; <

Generaa PropertiesYoS ian appay iiaa and stroke properties to eaih data point objeits see eitions rc04c0 and rc04c c YoS ian aasoappay te.t properties to the desiriptire te.t aoiated Snderneath the data pointss see eition rc04c4c

rc04 Common Chart PropertiesThe properties desiribed in this seition appay to aaa types oi data representation objeitss iniaSding the eaements<chart:plot-area<s <chart:series<s and <chart:tata-point<c Properties are appaied in a hierarihiiaa mannerc i a property is set in the <chart:chart< eaements it appaies toaaa data points iontained in the ihartc i the same property is set in a <chart:series< eaements it onay appaiesto the data points iontained in that speiiiii seriesc To set a iormatting property ior one data point onays yoS shoSadset the property in the <chart:tata-point< eaementc

rc04c0 Fiaa PropertiesThe iiaa properties appay to aaa soaid objeits aike reitangaes or iiriaesc ee eition Chapter 5 ior iniormation on iiaapropertiesc

rc04c troke PropertiesThe stroke properties appay to aaa aine objeits aike the a.iss grids or ainear parts oi a reitangae or iiriaec eeChapter 5 ior iniormation stroke propertiesc

Chapter 8 Chart Content 483

Page 484: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rc04c4 Te.t PropertiesThe te.t properties appay to aaa objeits that dispaay te.ts ior e.ampaes the legents titles subtitles axisscharts series, and tata-pointc ee Chapter 4 ior iniormation on te.t propertiesc

rc04c9 aignment PropertiesThe aaignment properties desiribed in this seition appay to sereraa te.t objeitsc They determine the tay te.t ispositioned inside the sSrroSnding bo.c

taiked Te.tThis property determines thether or not te.t is dispaayed rertiiaaay tithoSt rotating the aettersc

rg int Ti chart:text-stacketRrT 9Ti The raaSe oi this property ian be ltr ii te.t goes irom aeit to right or ttb ii the te.t is

staikeds that is goes irom top to bottomc

ooT <!ATTLIST style:properties fo:tirection (ltr|ttby tIMPLIEt<

otation ngaeThe style:rotation-angle property speiiiies the raaSe oi a rotation angae in degreesc ee Chapter 9 ioriniormation on Ssing this propertyc

rc04c5 Data Labea PropertiesData aabeas ian be appaied to data series and data points as teaa as to an entire ihartc n the aatter iases aabeas areshotn ior aaa data pointsc Data aabeas ian ionsist oi the ioaaoting three parts:

● The raaSes thiih ian be dispaayed as a perientage or the raaSe itseaic

● The aabea oi the iorresponding seriesc

● The aegend symboac

VaaSeThis attribSte represents the raaSe oi the data aabeac

rg int Ti chart:tata-label-numberRrT 9Ti

ooT <!ATTLIST style:properties chart:tata-label-number (none|value|percentagey "none" <

484 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 485: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

LabeaThis attribSte determines thether or not to dispaay the aabea oi the iorresponding seriesc

rg int Ti chart:tata-label-textRrT 9Ti The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST style:properties chart:tata-label-text %boolean;

"false" <

Legend ymboaThis attribSte determines thether or not to dispaay the aegend symboac

rg int Ti chart:tata-label-symbolRrT 9Ti The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST style:properties chart:tata-label-symbol %boolean;

"false" <

rc04c6 tatistiiaa Properties tatistiiaa properties ian be appaied to data series or to an entire ihartc n the aatter iases the properties appay to aaaseries in the ihartc

ean VaaSeThis attribSte determines thether or not to dispaay a aine that represents the statistiiaa mean raaSe oi aaa datapoints oi a seriesc

rg int Ti chart:mean-valueRrT 9Ti The raaSe oi this attribSte ian be true or falsec ooT <!ATTLIST style:properties chart:mean-value %boolean;

"false" <

Error CategoryThis attribSte is Ssed to determine thiih iSnition is Ssed to dispaay error indiiators at data pointsc YoS ian set theioaaoting iSnitions:

● Varianie oi the raaSes oi a series assSming an eqSaa distribStionc

● tandard-deriation oi the raaSes oi a series assSming an eqSaa distribStionc

● se a ii.ed perientage oi eaih raaSe

● se a ii.ed perientage oi the biggest raaSe l this is iaaaed error-marginc

● se ii.ed absoaSte raaSes ior both direitions: positire and negatire

Chapter 8 Chart Content 485

Page 486: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti chart:error-categoryRrT 9Ti i this attribSte is set to any raaSe other than none, error indiiators are shotnc To determine

in thiih direition the indiiators are pointing see the attribStes chart:error-upper-inticator and chart:error-lower-inticatorc

ooT <!ATTLIST style:properties chart:error-category(none|variance|stantart-teviation|percentage|error-margin|constanty "none" <

Error PerientageThis attribSte determines the perientage that is Ssed to dispaay error indiiators ior eaih data point oi a seriesc

rg int T chart:error-percentageRrT 9Ti

ooT <!ATTLIST style:properties chart:error-percentage %float; <

Error arginThis attribSte determines the perientage that is Ssed to dispaay error indiiators ior the biggest raaSe in a seriesc

rg int T chart:error-marginRrT 9Ti

ooT <!ATTLIST style:properties chart:error-margin %float; <

Constant Error Loter and pper Limit i yoS set the error iategory to constants these attribStes determine the absoaSte raaSes in a positire and nega-tire direition that are Ssed to dispaay the error indiiatorsc

rg int T chart:error-lower-limitchart:error-upper-limit

RrT 9Ti

ooT <!ATTLIST style:propertieschart:error-lower-limit %nonNegativeInteger; tIMPLIEtchart:error-upper-limit %nonNegativeInteger; tIMPLIEt <

Error ndiiatorsThe chart:error-lower-inticator and chart:error-upper-inticator attribStes determine inthiih direition indiiators shoSad be dratnc

486 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 487: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T chart:error-lower-inticatorchart:error-upper-inticator

RrT 9Ti

ooT <!ATTLIST style:propertieschart:error-lower-inticator %boolean; "false"chart:error-upper-inticator %boolean; "false" <

egression CSrres se this attribSte to dispaay a regression ior a seriesc Dith a regression yoS ian appro.imate the data points yoShare in a series by a mathematiiaa iSnitionc YoS ian Sse one oi the ioaaoting modeas ior appro.imation:

● Linear regression l appro.imate the raaSes oi the series Ssing the modea: y Tie i Lc

● Logarithmii regression l appro.imate the raaSes oi the series Ssing the modea: y TLaogieo i Lc

● E.ponentiaa regression l appro.imate the raaSes oi the series Ssing the modea: y TieLiec

● egression tith a poter iSnition l appro.imate the raaSes oi the series Ssing the modea: y g TieLc

rg int T chart:regression-typeRrT 9Ti This property is onay reaerant in siatter ihartss beiaSse regression needs both e and y raaSes ior

iaaiSaation

ooT <!ATTLIST style:properties chart:regression-type(none|linear|logarithmic|exponential|powery "none" <

rc04cm otation oi Three-Dimensionaa DiagramsThe atr3t:transform< eaement represents the rotation oi a ihart sienes that is the three-dimensionaa paotareac The tr3t:transform eaement represents a ioSr-dimensionaa transiormation matri.c ee the ihapter enti-taed heapiic hontent ior more iniormationc

Chapter 8 Chart Content 487

Page 488: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion
Page 489: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ser nteriaie Content

This ihapter desiribes the OpenOiiiiecorg X L representation oi Sser interiaie iomponentsc Dhere possibaes theSser interiaie eaements iorrespond to the E.tensibae ser nteriaie LangSage iX Lo Sser interiaie eaementsc Thisenabaes Ssers to easiay migrate Sser interiaie eaements irom one aangSage to anotherc This ihapter iontains theioaaoting seitions:

● enSbars

● iieaerators

● tatSs bars

● Tooabars

● Erents

● mages

YoS ian store Sser interiaie iontent in an OpenOiiiiecorg doiSment or in a gaobaa Sser ioniigSration oaikagecEaih OpenOiiiiecorg iomponents sSih as Driter or Caais has its otn ioniigSration ior menSss aiieaeratorss astatSs bars and some tooabarsc ome tooabars are not ionte.t-dependent aike the iSnition barc Eaih menSbarsaiieaerators statSs bars tooabars or erents ioniigSration is stored as a sSbdoiSment in the gaobaa Sser ioniigSrationpaikage or in an OpenOiiiiecorg doiSmentc The name oi the sSbdoiSment desiribes the iontent oi the sSbdoiS-ments ior e.ampae writerstatusbar.xml iontains the tarDriter statSs bar ioniigSrationc

c0 enSbars menS is a aist oi iommandss attribStess or states irom thiih a Sser ian ihoosec enSs are based on the interiaiepriniipae oi e ee-and-Pointrc menSbar is an area in the Sser interiaie there menSs residec

The menSbar spans Sp the iontainer top-aerea eaement ior aaa other menS eaements embedded in itc n the OpenOiiiiecorg X L iiae iormats the ioaaoting basii rSaes appay to menSbars:

● YoS mSst aoiate <menu:menuitem<s <menu:menuseparator<s and <menu:menu< eaements in a<menu:menupopup< eaementc

● YoS ian not nest <menu:menubar< eaementsc

c0c0 enSbarThe <menu:menubar< eaement represents a menSbar that an OpenOiiiiecorg iomponent Sses and deiines theiontents and properties oi the menSbarc

489

CHAPTER 9

Page 490: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <menu:menubar<RrT 9T This eaement is a iontainer eaement ior aaa other menS eaementsc

ooT <!ELEMENT menu:menubar (menu:menuty<<!ATTLIST menu:menubar

menu:it %menu-it; teEt|IeEtxmlns:menu CtATA tFIXEt "http://openoffice.org/2001/

menu"<

The attribSte that yoS ian assoiiate tith the <menu:menubar< is:● dentiiier isee eition c0c6o

c0c enSThe <menu:menu< eaement represents the titae oi a menS on the menSbarc This eaement ian be paaied on amenSbar or as a sSbmenS inside a menSpopSpc

rg int T <menu:menu<RrT 9T Erery menS mSst hare a SniqSe D that represents the iSnition oi the menSc

ooT <!ELEMENT menu:menu (menu:menupopupy<<!ATTLIST menu:menu

menu:it %menu-it; teEt|IeEtmenu:label %menu-label; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <menu:menu< eaement are:● dentiiier isee eition c0c6o

● Labea isee eition c0c6o

c0c4 enS PopSpThe <menu:menupopup< eaement represents the popSp bo. that appears then yoS iaiik on the menS titaec

rg int T <menu:menupopup<RrT 9T This eaement is a iontainer eaement ior menS itemss menS separatorss and sSbmenSsc

ooT <!ELEMENT menu:menupopup (menu:menuitem | menu:menuseparator |menu:menuyt<

There are no attribStes assoiiated tith this eaementc The eaement ian iontain the ioaaoting eaements:

● <menu:menuitem<● <menu:menuseparator<● <menu:menu<

c0c9 enS temThe <menu:menuitem< eaement represents an option on the menSc

490 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 491: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <menu:menuitem<RrT 9T Erery menS item mSst hare a SniqSe D that represents the iSnition oi the itemc

ooT <!ELEMENT menu:menuitem EMPTY<<!ATTLIST menu:menuitem

menu:it %menu-it; teEt|IeEtmenu:helpit CtATA tIMPLIEtmenu:label %menu-label; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <menu:menuitem< eaement are:● dentiiier isee eition c0c6o

● Labea isee eition c0c6o

● Oeap identiiier

Oeap dentiiierThe menu:helpit attribSte speiiiies the heap identiiier ior the menS itemc

rg int T menu:helpitRrT 9T The raaSe oi this attribSte is a string that speiiiies the heap identiiier ior the menS itemc

ooT <!ATTLIST menu:menuitem menu:helpit CtATA tIMPLIEt<

c0c5 enS eparatorThe <menu:menuseparator< eaement separates groSps oi menS itemsc

rg int T <menu:menuseparator<RrT 9T

ooT <!ELEMENT menu:menuseparator EMPTY<

E4oT Tih4oT i 1r4I

The ioaaoting e.ampae shots a menSbar tith one menS iaaaed Fiae and one sSbmenS iaaaed Netc

<menu:menubar menu:itp"test"< <menu:menu menu:itp"slot:4300" menu:labelp"eFile"< <menu:menupopup< <menu:menu menu:itp"slot:4:00" menu:labelp"eNew"< <menu:menupopup< <menu:menuitem menu:itp"macro:currency/euro" menu:labelp"eEuroconverter"/< </menu:menupopup< </menu:menu< <menu:menuitem menu:itp"slot:4301" menu:labelp"eOpen"/< </menu:menupopup< </menu:menu<</menu:menubar<

Chapter 9 User Interface Content 491

Page 492: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c0c6 Common enSbar ttribStesYoS ian assoiiate the attribStes desiribed in this seition tith the menSbar eaementsc

dentiiierThe menu:it attribSte speiiiies a SniqSe string that identiiies the iSrrent menS iomponent and deiines theoperation that is e.eiStedc

rg int T menu:itRrT 9T The raaSe oi this attribSte mSst be a SniqSe string tithin a menSc The attribSte deiines the opera -

tion that is e.eiSted aiter aitirationc Normaaay this is a iommand L sSih as esaot:5524r thatrepresents a iSnitionc

ooT <!ENTITY % menu:it "CtATA"<<!ATTLIST menu:menuitem menu:it %menu-it; teEt|IeEt<

LabeaThe menu:label attribSte speiiiies the te.t that appears on the menS or menS items sSih as Fiae or Editc

rg int T menu:labelRrT 9T This attibSte iontains the te.t oi a menS or menS itemc

YoS ian Sse the speiiaa iharaiter e~r to speiiiy the key that the Sser ian press to aitirate themenS or menS itemc This aetter is typiiaaay Snderained in the te.t aabeac For e.ampaes Sse e~Fiaersto speiiiy that the aetter F aitirates the menSc

ooT <!ENTITY % menu:label "CtATA"<<!ATTLIST menu:menuitem menu:label %menu-label; tIMPLIEt<

c iieaerators n aiieaerator binds a menS iommand to a keyboard shortiStc This enabaes a Sser rSn a iommand by pressing aseqSenie oi keys on the keyboard instead oi aiiessing a menS itemc

n the OpenOiiiiecorg X L iiae iormats the ioaaoting basii rSaes appay to aiieaerators:

● YoS mSst iniaSde aaa <accel:item< eaements in an <accel:acceleratorlist< eaementc● YoS ian not nest <accel:acceleratorlist< eaementsc aa aiieaerator deiinitions are iontained in a sSbdoiSment oi an OpenOiiiiecorg X L doiSment or in thesoffice.cfg paikage ior the gaobaa Sser settingsc

c c0 iieaerator ListThe <accel:acceleratorlist< eaement is a iontainer eaement ior aaa aiieaerator itemsc

492 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 493: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <accel:acceleratorlist<RrT 9T aa aiieaerator items are embedded in this eaementc

ooT <!ELEMENT accel:acceleratorlist (accel:itemay<<!ATTLIST accel:acceleratorlist

xmlns:accel CtATA tFIXEt "http://openoffice.org/2001/accel"

xmlns:xlink CtATA tFIXEt "http://www.w3.org/1999/xlink"<

There are no modiiiabae attribStes assoiiated tith this eaementc

c c iieaerator temThe <accel:item< eaement speiiiies the keyboard shortiSt and the iommand to e.eiStec

rg int T <accel:item<RrT 9T YoS mSst speiiiy raaSes ior the xlink:href and the accel:cote attribStesc ooT <!ELEMENT accel:item EMPTY<

<!ATTLIST accel:itemaccel:cote CtATA teEt|IeEtaccel:shift %boolean; tIMPLIEtaccel:mot1 %boolean; tIMPLIEtaccel:mot2 %boolean; tIMPLIEtxlink:href CtATA teEt|IeEt<

The attribStes that yoS ian assoiiate tith the <accel:item< eaement are:● 2ey iode

● hiit key state

● odiiier 0 key state

● odiiier key state

● Command L

2ey CodeThe accel:cote attribSte speiiiies the key iode oi the key that the Sser mSst press to aitirate the iommandc

rg int T accel:coteRrT 9T The raaSe oi this attribSte is a rirtSaa key iode that represents the keyc

ooT <!ATTLIST accel:item accel:cote CtATA teEt|IeEt<

The ioaaoting tabae aists the rirtSaa key iodes that are araiaabaec ome oi the keys desiribed in the tabae are notaraiaabae on aaa keyboardsc

Chapter 9 User Interface Content 493

Page 494: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

2EY_2 2EY_0 2EY_ 2EY_4

2EY_9 2EY_5 2EY_6 2EY_m

2EY_r 2EY_ 2EY_ 2EY_B

2EY_C 2EY_D 2EY_E 2EY_F

2EY_G 2EY_O 2EY_ 2EY_J

2EY_2 2EY_L 2EY_ 2EY_N

2EY_O 2EY_P 2EY_o 2EY_

2EY_ 2EY_T 2EY_ 2EY_V

2EY_D 2EY_X 2EY_Y 2EY_1

2EY_F0 2EY_F 2EY_F4 2EY_F9

2EY_F5 2EY_F6 2EY_Fm 2EY_Fr

2EY_F 2EY_F02 2EY_F00 2EY_F0

2EY_F04 2EY_F09 2EY_F05 2EY_F06

2EY_F0m 2EY_F0r 2EY_F0 2EY_F 2

2EY_F 0 2EY_F 2EY_F 4 2EY_F 9

2EY_F 5 2EY_F 6 2EY_DODN 2EY_ P

2EY_LEFT 2EY_ GOT 2EY_OO E 2EY_END

2EY_P GE P 2EY_P GEDODN 2EY_ ET N 2EY_E C PE

2EY_T B 2EY_B C2 P CE 2EY_ P CE 2EY_ N E T

2EY_DELETE 2EY_ DD 2EY_ BT CT 2EY_ LT PLY

2EY_D V DE 2EY_PO NT 2EY_CO 2EY_LE

2EY_LE 2EY_G E TE 2EY_Eo L 2EY_OPEN

2EY_C T 2EY_COPY 2EY_P TE 2EY_ NDO

2EY_ EPE T 2EY_F ND 2EY_P OPE T E 2EY_F ONT

2EY_CONTEXT EN 2EY_ EN 2EY_OELP

hiit 2ey tateThe accel:shift attribSte speiiiies thether or not the hiit key is reqSired to aitirate the keyboard shortiStc

rg int T accel:shiftRrT 9T The raaSe oi this attribSte ian be true or falsec i the raaSe is trues the Sser mSst press the

hiit key to aitirate the shortiStc

ooT <!ENTITY % boolean "(true|falsey"<<!ATTLIST accel:item accel:shift %boolean; "false"<

odiiier 0 2ey tateThe accel:mot1 attribSte speiiiies thether or not the modiiier one key is reqSired to aitirate the keyboardshortiStc The modiiier one key is system dependent as ioaaots:

● Dindots Leit or right iontroa key

494 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 495: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● N X Leit or right iontroa key

● ai Command key

rg int T accel:mot1RrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ENTITY % boolean "(true|falsey"<

<!ATTLIST accel:item accel:mot1 %boolean; "false"<

odiiier 2ey tateThe accel:mot2 attribSte speiiiies thether or not the modiiier tto key is reqSired to aitirate the keyboardshortiStc The modiiier tto key is system dependent as ioaaots:c

● Dindots at key

● N X at key

● ai Option key

rg int T accel:mot1RrT 9T The raaSe oi this attribSte ian be true or falsec ooT <!ENTITY % boolean "(true|falsey"<

<!ATTLIST accel:item accel:mot2 %boolean; "false"<

Command LThe xlink:href attribSte speiiiies the iommand to e.eiSte ii the aiieaerator is aitiratedc

rg int T xlink:hrefRrT 9T

ooT <!ENTITY % url "CtATA"<<!ATTLIST xlink:href %url; teEt|IeEt<

E4oT Tih4oT i4oo T I4nIiTu9iAuriAni4oo T I4nIiu 9i

<accel:acceleratorlist< <accel:item accel:cotep" EY_F:" xlink:hrefp"slot:4401"/< <accel:item accel:cotep" EY_Y" accel:mot1p"true" xlink:hrefp"slot:4:01"/<</accel:acceleratorlist<

c4 tatSs Bars statSs bar is SsSaaay paaied aaong the bottom oi a tindot and prorides statSs iniormation to the Sserc n theOpenOiiiiecorg X L iiae iormats the ioaaoting basii rSaes appay to statSs bars:

● YoS mSst aoiate a <statusbar:statusbaritem< eaement in a <statusbar:statusbar< eaementc● YoS ian not nest <statusbar:statusbar< eaementsc

Chapter 9 User Interface Content 495

Page 496: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

statSs bar is iontained as a separate sSbdoiSment oi an OpenOiiiiecorg X L doiSment or in the soffice.cfg paikage ior the gaobaa Sser settingsc

c4c0 tatSs BarThe <statusbar:statusbar< eaement is a iontainer eaement ior statSs bar itemsc

rg int T <statusbar:statusbar<RrT 9T YoS mSst iniaSde aaa statSs bar items in a this eaementc

ooT <!ELEMENT statusbar:statusbar (statusbar:statusbaritemay<<!ATTLIST statusbar:statusbar

xmlns:statusbar CtATA tFIXEt "http://openoffice.org/2001/statusbar"

xmlns:xlink CtATA tFIXEt "http://www.w3.org/1999/xlink"<

c4c tatSs Bar temThe <statusbar:statusbaritem< eaement represents an iniormation iiead that is dispaayed in the statSsbarc

rg int T <statusbar:statusbaritem<RrT 9T YoS mSst speiiiy a raaid raaSe ior the xlink:href attribStec ooT <!ELEMENT statusbar:statusbaritem EMPTY<

<!ATTLIST statusbar:statusbaritemxlink:href CtATA teEt|IeEtstatusbar:align %alignment; tIMPLIEtstatusbar:style %style; tIMPLIEtstatusbar:autosive %boolean; tIMPLIEtstatusbar:ownertraw %boolean; tIMPLIEtstatusbar:witth %numeric; tIMPLIEtstatusbar:offset %numeric; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <statusbar:statusbaritem< eaement are:● tatSs L

● aignment

● tyae

● Stosike

● Otnerdrat

● Didth

● Oiiset

tatSs LThe xlink:href attribSte speiiiies the state that is dispaayed ior this statSs bar itemc

496 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 497: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T xlink:hrefRrT 9T The raaSe oi this attribSte mSst be a raaid statSs Lc reierenie oi the iSrrentay araiaabae statSs

L ian be ioSnd at ccc???

ooT <!ATTLIST statusbar:statusbaritem xlink:href CtATA teEt|IeEt<

aignmentThe statusbar:align attribSte speiiiies hot the iniormation is aaigned in the boSnding bo. oi the statSsbarc

rg int T statusbar:alignRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● left: The iniormation is aaigned to the aeit border oi the boSnding bo.c● center: The iniormation is aaigned to the ienter oi the boSnding bo.● right: The iniormation is aaigned to the right border oi the boSnding bo.cThe deiaSat raaSe oi this attribSte is centerc

ooT <!ENTITY % alignment "(left|center|righty"<<!ATTLIST statusbar:statusbaritem statusbar:align %alignment;"center"<

tyaeThe statusbar:style attribSte speiiiies hot the statSs bar item is dispaayed in the boSnding bo. oi thestatSs barc

rg int T statusbar:styleRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● in: The iniormation is dispaayed in a bo. tith a 4D eiieitc● out: The iniormation is dispaayed in a bo. tith a 4D eiieit c● flat: The iniormation is dispaayed in a iaat bo. tithoSt any 4D eiieitcThe deiaSat raaSe oi this attribSte is inc

ooT <!ENTITY % style "(in|out|flaty"<<!ATTLIST statusbar:statusbaritem statusbar:style %style;"in"<

StosikeThe statusbar:autosive attribSte speiiiies thether or not the sike oi the boSnding bo. ior the statSs baritem is set aStomatiiaaay by the statSs barc

Chapter 9 User Interface Content 497

Page 498: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T statusbar:autosiveRrT 9T The raaSe oi this attribSte ian be true or falsec i the raaSe is trues the sike oi the boSnding

bo. is set aStomatiiaaay by the statSs barc i the raaSe is falses the statusbar:witthattribSte determines the sike oi the boSnding bo.c The deiaSat raaSe is false.

ooT <!ENTITY % boolean "(true|falsey"<<!ATTLIST statusbar:statusbaritem statusbar:autosive %boolean;"false"<

OtnerdratThe statusbar:ownertraw attribSte speiiiies thether or not the statSs bar item is dispaayed Ssing ane.ternaa iSnitionc

rg int T statusbar:ownertrawRrT 9T The raaSe oi this attribSte ian be true or falsecooT <!ENTITY % boolean "(true|falsey"<

<!ATTLIST statusbar:statusbaritem statusbar:ownertraw %boolean; "false"<

DidthThe statusbar:witth attribSte speiiiies the tidth oi the boSnding bo. ior a statSs bar itemc

rg int T statusbar:witthRrT 9T This attribSte is onay raaid ii the raaSe oi the statusbar:autosive attribSte is set to

falsecThe raaSe oi the attribSte mSst be a positire raaSec The deiaSat raaSe is 0c

ooT <!ENTITY % numeric "CtATA"<<!ATTLIST statusbar:statusbaritem statusbar:witth %numeric;"0"<

OiisetThe statusbar:offset attribSte speiiiies the distanie by thiih the te.t oi the statSs bar item is oiiset on the.-a.isc

rg int T statusbar:offsetRrT 9T The raaSe oi this attibSte is a nSmeriiaa raaSe in pi.easc The deiaSat raaSe oi is 4 pi.eascooT <!ENTITY % numeric "CtATA"<

<!ATTLIST statusbar:statusbaritem statusbar:offset %numeric;"4"<

E4oT Tih4oT i94r9i4I

The ioaaoting e.ampae shots a statSs bar tith tto iniormation iieadsc

498 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 499: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<statusbar:statusbar< <statusbar:statusbaritem xlink:hrefp"slot:10000" statusbar:alignp"center"statusbar:witthp"34"/< <statusbar:statusbaritem xlink:hrefp"slot:211-1" statusbar:alignp"left"statusbar:autosivep"true" statusbar:witthp"4:"/<</statusbar:statusbar<

c9 Tooabars tooabar is a Sser interiaie iomponent that prorides risSaa aiiess to the most important and ireqSentay-SsediSnitionsc Eaih item on the tooabar is represented as an image or a te.t aabeas or bothc

The tooabar eaement spans Sp the iontainer ior aaa other tooabar eaements embedded in itc n the OpenOiiiiecorgX L iiae iormats the ioaaoting basii rSaes appay to tooabars:

● YoS mSst embed aaa <toolbar:toolbaritem<s <toolbar:toolbarspace<, <toolbar:tool-barbreak<, <toolbar:toolbarseparator< eaements in a <toolbar:toolbar< eaementc

● YoS ian not nest <toolbar:toolbar< eaementsc● The <toolbar:toolbarlayouts< eaement is the top-aerea iontainer eaement ior aayoSt iniormation oi

erery tooabar Ssed inside OpenOiiiiecorgc

● YoS mSst aoiate a <toolbar:toolbarlayout< eaement in a <toolbar:toolbarlayouts<eaementc

● YoS iannot nest <toolbar:toolbarlayouts< eaementsc aa tooabar deiinitions are iontained in a sSbdoiSment oi an OpenOiiiiecorg X L doiSment or ian be ioSnd inthe soffice.cfg paikage ior the gaobaa Sser settingsc Erery tooabar has additionaa aayoSt iniormation thiih is stored in a separate sSbdoiSment iaaaedtoolbarlayout.xmlc To iompaeteay desiribe a tooabars there mSst be an raaid entry in thetoolbarlayout.xml sSbdoiSmentc

c9c0 TooabarThe <toolbar:toolbar< eaement represents a tooabar tith bSttons and other items sSih as separatorssspaiess and breaksc

rg int T <toolbar:toolbar<RrT 9T

ooT <!ELEMENT toolbar:toolbar (toolbar:toolbaritem | toolbar:toolbarspace | toolbar:toolbarbreak | toolbar:toolbarseparatorya<<!ATTLIST toolbar:toolbar xmlns:toolbar CtATA tFIXEt "http://openoffice.org/2001/toolbar" xmlns:xlink CtATA tFIXEt "http://www.w3.org/1999/xlink" <

YoS ian iniaSde the ioaaoting tooabar eaements in the <toolbar:toolbar< eaement: ● <toolbar:toolbaritem<● <toolbar:toolbarspace< (section missingy

Chapter 9 User Interface Content 499

Page 500: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● <toolbar:toolbarbreak< (section missingy● <toolbar:toolbarseparator< (section missingy

c9c Tooabar temThe <toolbar:toolbaritem< eaement deiines a bStton on the tooabarc The bStton represents a iSnitionc

rg int T <toolbar:toolbaritem<RrT 9T

ooT <!ELEMENT toolbar:toolbaritem EMPTY<<!ATTLIST toolbar:toolbaritem

xlink:href CtATA teEt|IeEttoolbar:visible %boolean; "true"toolbar:usertefinet %boolean; "false"toolbar:text CtATA tIMPLIEttoolbar:witth %numeric; "0"toolbar:style CtATA tIMPLIEttoolbar:bitmap CtATA tIMPLIEttoolbar:helpit CtATA tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <toolbar:toolbaritem< eaement are:● Command L

● Visibae

● ser-deiined

● Te.t

● Didth

● tyae

● Bitmap

● Oeap identiiier

Command LThe xlink:href attribSte speiiiies the iommand that is e.eiSted ii a Sser seaeits the tooabar itemc

rg int T xlink:hrefRrT 9T

ooT <!ATTLIST toolbar:toolbaritem xlink:href CtATA teEt|IeEt<

VisibaeThe toolbar:visible attribSte speiiiies the minimSm raaSe that a Sser ian enterc

500 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 501: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T toolbar:visibleRrT 9T The raaSe oi this attribSte ian be true or falsec DeiaSat raaSe is etrSercooT <!ENTITY % boolean "(true|falsey"<

<!ATTLIST toolbar:toolbaritem toolbar:visible %boolean;"true"<

ser-deiinedThe toolbar:usertefinet attribSte speiiiies thether or not the tooabar item is Sser-deiinedc

rg int T toolbar:usertefinetRrT 9T The raaSe oi this attribSte ian be true or falsec The deiaSat raaSe is falsecooT <!ENTITY % boolean "(true|falsey"<

<!ATTLIST toolbar:toolbaritem toolbar:usertefinet %boolean;"false"<

Te.tThe toolbar:text attribSte speiiiies the te.t ior this tooabar itemc The te.t is onay dispaayed ii the aayoStstyae oi the tooabar is set to text or symboltextc ee the <toolbar:toolbarlayout< eaementc

rg int T toolbar:textRrT 9T

ooT <!ATTLIST toolbar:text CtATA tIMPLIEt<

DidthThe toolbar:witth attribSte speiiiies the tidth oi the tooabar itemc

rg int T toolbar:witthRrT 9T The deiaSat raaSe oi this attribSte is 0cooT <!ENTITY % numeric "CtATA"<

<!ATTLIST toolbar:witth %numeric; "0"<

tyaeThe toolbar:style attribSte speiiiies additionaa styaes ior a tooabar itemc

Chapter 9 User Interface Content 501

Page 502: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T toolbar:styleRrT 9T The raaSe oi this attribSte ian be a spaie-separated aist oi the ioaaoting styaes:

● ratio: This raaSe indiiates that the tooabar item beaongs to a groSp oi itemsc Onay one itemin the groSp ian be aitiratedc

● auto: This raaSe indiiates that yoS ian toggae the tooabar item betteen aitirated and deaiti-ratedc

● left: This raaSe is onay raaid ii the aayoSt styae oi the tooabar is set to symboltextc niion is paaied on aeit side oi the te.ts aike an entry in a taskbarc

● autosive: This raaSe indiiates that the sike oi the tooabar item is aStomatiiaaay adjSstedc● troptown: This raaSe indiiates that the tooabar item sSpports a dropdotn menS or tooabar

ior additionaa iSnitionsc

● repeat: This raaSe indiiates that the tooabar item iontinSes to e.eiSte the iommand thiaeyoS iaiik and hoad the moSse bSttonc

The deiaSat raaSe oi this attribSte is an empty stringc

ooT <!ATTLIST toolbar:style CtATA tIMPLIEt<

BitmapThe toolbar:bitmap attribSte speiiiies the name oi a Sser-deiined bitmap ior the tooabar itemc CSrrentay thebitmap iiae mSst be aoiated besides the tooabar sSbdoiSmentc

rg int T toolbar:bitmapRrT 9T The raaSe oi this attribSte ian be empty or the name oi an image iiaec

ooT <!ATTLIST toolbar:bitmap CtATA tIMPLIEt<

Oeap dentiiierThe toolbar:helpit attribSte speiiiies an optionaa heap identiiierc sSaaay the xlink:href assoiiates heapte.t tith the tooabar itemc This attribSte assoiiates additionaa heap te.t tith the tooabar itemc

rg int T toolbar:helpitRrT 9T

ooT <!ATTLIST toolbar:helpit CtATA tIMPLIEt<

E4oT Tih4oT innT4IiAuriAninnT4Iiu 9 in1 i9 o4I4nI i41ti41i4ttuun14TinnT4Iiu i

<toolbar:toolbar< <toolbar:toolbaritem xlink:hrefp"slot:4400"/< <toolbar:toolbaritem xlink:hrefp"slot:449:" toolbar:witthp"300"/< <toolbar:toolbarseparator/< <toolbar:toolbaritem xlink:hrefp"slot:49:2" toolbar:stylep"troptown"/<</toolbar:toolbar<

502 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 503: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c9c4 Tooabar LayoStsThe <toolbar:toolbarlayouts< eaement is the top-aerea iontainer eaement ior aaa speiiiii tooabar aayoSteaementsc

rg int T <toolbar:toolbarlayouts<RrT 9T This eaement is a iontainer eaement ior tooabar aayoSt eaementsc

ooT <!ELEMENT toolbar:toolbarlayouts (toolbar:toolbarlayoutay<<!ATTLIST toolbar:toolbarlayouts xmlns:toolbar CtATA tFIXEt"http://openoffice.org/2001/toolbar"<

There are no attribStes assoiiated tith this eaementc The eaement ian iontain the ioaaoting eaement:

● <toolbar:toolbarlayout<s see the ne.t seitionc

c9c9 Tooabar LayoStThe <toolbar:toolbarlayout< eaement speiiiies the aayoSt detaias ior a speiiiii tooabarc

rg int T <toolbar:toolbarlayout<RrT 9T This eaement mSst be embedded in a <toolbar:toolbarlayouts< eaementcooT <!ELEMENT toolbar:toolbarlayout EMPTY<

<!ATTLIST toolbar:toolbarlayouttoolbar:it CtATA teEt|IeEttoolbar:floatingposleft %numeric; tIMPLIEttoolbar:floatingpostop %numeric; tIMPLIEttoolbar:floatinglines %numeric; "0"toolbar:tockinglines %numeric; "1"toolbar:align %alignment; "left"toolbar:visible %boolean; "false"toolbar:floating %boolean; "false"toolbar:style %style; "symbol"<

The attribStes that yoS ian assoiiate tith the <toolbar:toolbarlayout< eaement are:● dentiiier

● Faoating state

● Faoating position

● Faoating aines

● Doiking aines

● Doiking aaignment

● Visibae

● tyae

Chapter 9 User Interface Content 503

Page 504: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

dentiiierThe toolbar:it attribSte is a SniqSe identiiier ior a tooabar aayoSt entryc This identiiier is Ssed to iind theiorresponding tooabar deiinitionc For e.ampaes ii the raaSe oi toolbar:it is writerobiectbars there mSstbe a iiae ne.t to this tooabar aayoSts iiae iaaaed writerobiectbar.xmls to attaih both iniormationc

rg int T toolbar:itRrT 9T This attribSte mSst hare a raaid name to iind the iorresponding tooabar deiinition .ma iiaec

ooT <!ATTLIST toolbar:toolbarlayout toolbar:it CtATA teEt|IeEt<

Faoating tateThe toolbar:floating attribSte speiiiies the initiaa state oi the tooabarc

rg int T toolbar:floatingRrT 9T The deiaSat raaSe oi this attribSte is true or falsec

i the raaSe is trues the toolbar:floatingposleft and toolbar:floatingpostop attribStes determine the initiaa position oi the tooabarc i the raaSe is falses the tooabar is doiked and the toolbar:align attribSte determines theinitiaa doiking positionc

ooT <!ENTITY % boolean "(true|falsey"<<!ATTLIST toolbar:toolbarlayout toolbar:floating %boolean;"false"<

Faoating PositionThe toolbar:floatingposleft attribSte speiiiies the initiaa aeit position oi the tooabar then the tooabar isin the iaoating statec

rg int T toolbar:floatingposleftRrT 9T This attribSte is onay raaid ii the raaSe oi the toolbar:floating attribSte is truecooT <!ENTITY % numeric "CtATA"<

<!ATTLIST toolbar:toolbarlayout toolbar:floatingposleft %numeric; tIMPLIEt<

The toolbar:floatingpostop attribSte speiiiies the initiaa top position oi the tooabar then the tooabar isin the iaoating statec

rg int T toolbar:floatingpostopRrT 9T This attribSte is onay raaid ii the raaSe oi the toolbar:floating attribSte is truecooT <!ENTITY % numeric "CtATA"<

<!ATTLIST toolbar:toolbarlayout toolbar:floatingpostop %numeric; tIMPLIEt<

504 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 505: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Faoating LinesThe toolbar:floatinglines attribSte speiiiies the nSmber oi aines that are Ssed to dispaay the tooabar iithe tooabar is iaoatingc

rg int T toolbar:floatinglinesRrT 9T YoS mSst assign a raaSe to this attribSte ii the raaSe oi the toolbar:floating attribSte is

truec The deiaSat raaSe oi this attribSte is 0c ooT <!ENTITY % numeric "CtATA"<

<!ATTLIST form:formattet-text form:min-value CtATA tIMPLIEt<

Doiking LinesThe toolbar:tockinglines attribSte speiiiies the nSmber oi aines that are Ssed to dispaay the tooabar ii thetooabar is doikedc

rg int T toolbar:tockinglinesRrT 9T The deiaSat raaSe oi this attribSte is 1cooT <!ENTITY % numeric "CtATA"<

<!ATTLIST toolbar:toolbarlayout toolbar:tockinglines %numeric;"1"<

Doiking aignmentThe toolbar:align attribSte speiiiies the aoiation at thiih the tooabar is initiaaay doikedc

rg int T toolbar:alignRrT 9T This attribSte is onay reaerant ii the raaSe oi the toolbar:floating attribSte is falsec

The raaSe oi this attribSte ian be one oi the ioaaoting:

● top: The tooabar is doiked at the top oi the doiSment tindotc● bottom: The tooabar is doiked at the bottom oi the doiSment tindotc● left: The tooabar is doiked at the aeit side oi the doiSment tindotc● right: The tooabar is doiked at the right side oi the doiSment tindotcThe deiaSat raaSe oi this attribSte is leftc

ooT <!ENTITY % alignment "(top|bottom|left|righty"<<!ATTLIST toolbar:toolbarlayout toolbar:align %numeric; "1"<

VisibaeThe toolbar:visible attribSte speiiiies thether or not the tooabar is initiaaay risibaec

Chapter 9 User Interface Content 505

Page 506: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T toolbar:visibleRrT 9T The raaSe oi this attribSte ian be true or falsec The deiaSat raaSe is falsec ooT <!ENTITY % boolean "(true|falsey"<

<!ATTLIST toolbar:toolbarlayout toolbar:visible %boolean;"false"<

tyaeThe toolbar:style attribSte speiiiies the dispaay styae oi the tooabar itemsc This styae does not iniaSenie thestyae oi the Sser-deiined tooabar itemsc ee desiription oi the tooabaritem attribStesc

rg int T toolbar:styleRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● symbol: The standard tooabar items are shotn as bSttons tith an image to represent theiSnition oi the itemc

● text: The standard tooabar items are shotn as bSttons tith te.t to desiribe the iSnition oithe itemc

● symboltext: The standard tooabar items are shotn as bSttons tith an image and te.t todesiribe the iSnition oi the itemc

The deiaSat raaSe oi this attribSte is symbolcooT <!ENTITY % style "(symbol|text|symboltexty"<

<!ATTLIST toolbar:toolbarlayout toolbar:style %style;"symbol"<

E4oT Tih4oT innT4IiT4ynrit eu1uun1iAuriAninnT4I9io4TT tiEer1oun14Ipi41tiEerTT9oI 14Ipi

<toolbar:toolbarlayouts< <toolbar:toolbarlayout toolbar:itp"functionbar" toolbar:alignp"top"toolbar:visiblep"true" toolbar:stylep"symbol"/< <toolbar:toolbarlayout toolbar:itp"fullscreenbar" toolbar:alignp"top"toolbar:visiblep"true" toolbar:floatingp"false" toolbar:stylep"symbol"/<</toolbar:toolbarlayouts<

c5 Erents n erent is Ssed to e.eiSte a mairo then a speiiiii aition is takenc For e.ampaes then yoS open a doiSmentsthis aition ian e.eiSte a mairo to searih the doiSment ior speiiiii tordsc n the OpenOiiiiecorg X L iiaeiormats the ioaaoting basii rSaes appay to erents:

● YoS mSst embed erery erent in the <event:events< iontainer eaementc● YoS ian not nest erentsc

Erents that are deiined in the gaobaa ionte.t are stored as a sSbdoiSment in the soffice.cfg paikage aoiatedin the SsersioniigSration direitoryc

506 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 507: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c5c0 ErentsThe <event:events< eaement is a top-aerea iontainer eaement ior aaa erentsc

rg int T <event:events<RrT 9T

ooT <!ELEMENT event:events (event:eventay<<!ATTLIST event:events xmlns:event CtATA tFIXEt "http://openoffice.org/2001/event"<<!ATTLIST event:events xmlns:xlink CtATA tFIXEt "http://www.w3.org/1999/xlink"<

There are no attribStes assoiiated tith the <event:events< eaementc

c5c ErentThe <event:event< eaement deiines an erentc

rg int T <event:event<RrT 9T

ooT <!ELEMENT event:event EMPTY<<!ATTLIST event:event

event:name CtATA teEt|IeEtevent:language CtATA teEt|IeEtevent:library CtATA teEt|IeEtevent:macro-name CtATA teEt|IeEtxlink:type CtATA tFIXEt "simple"xlink:href CtATA tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <event:event< eaement are:● Name

● LangSage

● Library

● airo name

● n optionaa L there the aibrary ian be ioSnd

NameThe event:name attribSte speiiiies the name oi the erent that mSst oiiSr to aitirate the mairoc

rg int T event:nameRrT 9T This attribSte mSst hare a raaSec

ooT <!ATTLIST event:event event:name CtATA teEt|IeEt<

Chapter 9 User Interface Content 507

Page 508: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

LangSageThe event:language attribSte speiiiies the aangSage Ssed to trite the mairoc The onay aangSage thatOpenOiiiiecorg X L iSrrentay sSpports is tarBasiic

rg int T event:nameRrT 9T This attribSte mSst hare a raaSec The onay raaSe that OpenOiiiiecorg X L iSrrentay sSpports is

StarBasiccooT <!ATTLIST event:event event:language CtATA teEt|IeEt<

LibraryThe event:library attribSte speiiiies the aibrary there the mairo is storedc

rg int T event:libraryRrT 9T This attribSte mSst hare a raaSec

ooT <!ATTLIST event:event event:library CtATA teEt|IeEt<

airo NameThe event:macro-name attribSte speiiiies the name oi the mairoc

rg int T event:macro-nameRrT 9T This attribSte mSst hare a raaSec

ooT <!ATTLIST event:event event:macro-name CtATA teEt|IeEt<

E4oT TiEv 19iAurin1 i.Tn4Ti v 1it eu1uun1ienIi4i4oInir4iu9i or ti4i4ooTuo4un1i94Iroi

<event:events< <event:event event:namep"OnStartApp" event:languagep"StarBasic" event:libraryp"StarOffice" event:macro-namep"Tools.Strings.Checktouble"/<</event:events<

c6 magesYoS ian paaie images on tooabar bSttons and menS itemsc The images heap the Sser to identiiy the iSnition oi abStton or menS itemc n the OpenOiiiiecorg X L iiae iormats the ioaaoting basii rSaes appay to images:

● The images iontainer eaement spans Sp the iontainer top-aerea eaement ior aaa other image eaements embeddedin itc

● YoS mSst embed aaa imagess both internaa and e.ternaas in the top-aerea iontainer eaementc

● YoS mSst embed entry into an images eaement and an e.ternaa entry into an e.ternaaimages eaementc YoSiannot mi. themc

● There ian be kero or more images eaement inside an images iontainer bSt onay one e.ternaaimages eaementc

● YoS ian not nest images or e.ternaaimagesc

508 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 509: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

c6c0 mages ContainerThe <image:imagescontainer< eaement is a top-aerea iontainer ior aaa image deiinitionsc

rg int T <image:imagescontainer<RrT 9T

ooT <!ELEMENT image:imagescontainer (image:imagesa, image:externalimages?y<<!ATTLIST image:imagescontainer

xmlns:image CtATA tFIXEt "http://openoffice.org/2001/image"

xmlns:xlink CtATA tFIXEt "http://www.w3.org/1999/xlink"<

There are no attribStes assoiiated tith the <image:imagescontainer< eaementc

c6c magesThe <image:images< eaement deiines a iontainer ior an internaa bitmap that iontains one or more imagesc

rg int T <image:images<RrT 9T YoS mSst speiiiy a raaSe ior the xlink:href attribStecooT <!ELEMENT image:images (image:entryay<

<!ATTLIST image:imagesxlink:href %urieeference; teEt|IeEtxlink:type CtATA tFIXEt "simple"image:maskmote %maskMote; "maskcolor"image:maskcolor %color; "t000000"image:maskurl %url; tIMPLIEt<

The attribStes that yoS ian assoiiate tith the <image:images< eaement are:● eierenie

● ask mode

● ask ioaor

● ask bitmap

eierenieThe xlink:href attribSte speiiiies a Sniiorm resoSrie identiiier i o ior the images thiih ian iontain one ormore imagesc

rg int T xlink:hrefRrT 9T This attribSte mSst hare a raaSec

ooT <!ENTITY % urieeference "CtATA"<<!ATTLIST image:images xlink:href %urieeference; teEt|IeEt<

Chapter 9 User Interface Content 509

Page 510: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ask odeThe image:maskmote attribSte speiiiies the mask mode ior the imagec

rg int T image:maskmoteRrT 9T The raaSe oi this attribSte ian be one oi the ioaaoting:

● maskbitmap: The image iontains a seiond bitmap tith images that are Ssed as masksc● maskcolor: ioaor is Ssed as a transparent ioaorcThe deiaSat raaSe oi this attribSte is maskcolorc

ooT <!ATTLIST event:event event:language CtATA teEt|IeEt<

ask CoaorThe image:maskcolor attribSte speiiiies a ioaor that is rendered as transparentc

rg int T image:maskcolorRrT 9T This raaSe oi this attribSte is onay raaid ii the raaSe oi the image:maskmote attribSte is

maskcolorcThe raaSe oi the attribSte mSst be in the iormat trrggbb and the three ioaor raaSes mSst behe.adeiimaac

The deiaSat raaSe is t000000 thiih is baaikcooT <!ENTITY % color "CtATA"<

<!ATTLIST image:images image:maskcolor %color; "t000000"<

ask BitmapThe image:maskbitmap attribSte speiiiies a seiond bitmap tith embedded images that is Ssed as a mask iorthe images reierenied by xlink:hrefc

rg int T image:maskurlRrT 9T This raaSe oi this attribSte is onay raaid ii the raaSe oi the image:maskmote attribSte is

maskbitmapc ooT <!ENTITY % url "CtATA"<

<!ATTLIST image:maskurl %url; IMPLIEt<

c6c4 EntryThe <image:entry< eaement deiines one image that is embedded in an internaa bitmap that is speiiiied by aparent <image:images< eaementc

510 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 511: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <image:entry<RrT 9T The image:commant and image:bitmap-intex attribStes are reqSiredcooT <!ELEMENT image:entry EMPTY<

<!ATTLIST image:entryimage:commant %url; teEt|IeEtimage:bitmap-intex CtATA teEt|IeEt<

YoS mSst assoiiate the ioaaoting attribStes tith the <image:entry< eaement:● Command L

● Bitmap inde.

Command LThe image:commant attribSte speiiiies the L ior a iommand that is boSnd to the imagec

rg int T image:commantRrT 9T This attribSte mSst hare a raaSec

ooT <!ENTITY % url "CtATA"<<!ATTLIST image:commant %url; teEt|IeEt<

Bitmap inde.The image:bitmap-intex attribSte speiiiies the inde. to an image that is embedded in an internaa bitmapcThe image is addressed by the parent iontainer eaement <image:images<c

rg int T image:bitmap-intexRrT 9T The attribSte mSst hare a positire integer raaSec

ooT <!ATTLIST image:entry image:bitmap-intex CtATA teEt|IeEt<

c6c9 E.ternaa magesThe <image:externalimages< eaement is a iontainer eaement ior e.ternaa bitmapsc

rg int T <image:externalimages<RrT 9T There ian onay be one <image:externalimages< eaement in the <image:

imagescontainer< eaementc ooT <!ELEMENT image:externalimages (image:externalentryay<

There are no attribStes assoiiated tith the <image:externalimages< eaementc The eaement ian iontain theioaaoting eaement:

● <image:externalimages<s see ne.t seitionc

c6c5 E.ternaa EntryThe <image:externalentry< eaement deiines an image entry that reierenies an e.ternaa bitmapc

Chapter 9 User Interface Content 511

Page 512: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <image:externalimages<RrT 9T The eaement mSst be iontained in an <image:externalimages< eaementc

The image:commant and xlink:href attribStes are reqSiredcooT <!ELEMENT image:externalentry EMPTY<

<!ATTLIST image:externalentryimage:commant %url; teEt|IeEtxlink:href %urieeference; teEt|IeEtxlink:type CtATA tFIXEt "simple"<

The attribStes that yoS mSst assoiiate tith the <image:externalentry< eaement:● Command L

● eierenie

Command LThe image:commant attribSte speiiiies the L ior a iommand that is boSnd to the imagec

rg int T image:commantRrT 9T This attribSte mSst hare a raaSec

ooT <!ENTITY % url "CtATA"<<!ATTLIST image:commant %url; teEt|IeEt<

eierenieThe xlink:href attribSte speiiiies a ior the bitmapc The bitmap is siaaed to the iorreit dimensions thenit is rendered on the sireenc

rg int T image:bitmap-intexRrT 9T The attribSte mSst hare a positire integer raaSec

ooT <!ATTLIST image:entry image:bitmap-intex CtATA teEt|IeEt<

E4oT Ti4. ion1eu.rI4un1

The ioaaoting e.ampae shots an image ioniigSration tith one internaa and one e.ternaa image aistc Both aistsiontain tto image entriesc

<image:imagescontainer< <image:images xlink:hrefp"/bitmaps/functionbar.bmp image:maskcolorpt-0-0-0< <image:entry image:commantp"slot:4400" image:bitmap-intexp"0"/< <image:entry image:commantp"slot:4410" image:bitmap-intexp"1"/< </image:images< <image:externalimages< <images:externalimage image:commantp"slot:4:00" xlink:hrefp"file:///f:/bitmaps/file_new.bmp"/< <images:externalimage image:commantp"slot:4:01" xlink:hrefp"file:///f:/bitmaps/file_save.bmp"/<</image:imagescontainer<

512 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 513: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

02 Diaaog Content

This ihapter desiribes the T enTSSice.org X L representation oi diaaogsc The diaaog eaements are based on andiorrespond iaoseay to the E.tensibae ser nteriaie LangSage iX Lo diaaog eaementsc This enabaes easy migra-tion oi diaaogs irom one aangSage to the otherc This ihapter iontains the ioaaoting seitions:

● Diaaog Containers

● tyaes

● Controas

02c0 Diaaog ContainersThe <tlg:wintow< eaement is the top-aerea iontainer eaement ior aaa diaaog-reaated eaements iniaSding theioaaoting:

● BSaaetin boardss see eition 02c0c0

● tyaess see eition 0c9

● Controass see eition 6c

● Erentss see eition c00

rg int T <tlg:wintow<RrT 9T Eaih doiSment iontains onay one <tlg:wintow< eaementc ooT <!ELEMENT tlg:wintow (tlg:stylesa, (%event;ya,

tlg:bulletinboartay<<!ATTLIST tlg:wintow tlg:it CtATA teEt|IeEt tlg:left CtATA tIMPLIEt tlg:top CtATA tIMPLIEt tlg:witth CtATA tIMPLIEt tlg:height CtATA tIMPLIEt tlg:style-it CtATA tIMPLIEt tlg:title CtATA tIMPLIEt tlg:page CtATA tIMPLIEt tlg:tag CtATA tIMPLIEt tlg:help-text CtATA tIMPLIEt tlg:help-url CtATA tIMPLIEt xmlns:tlg CtATA tFIXEt "http://openoffice.org/2000/tialog" xmlns:script CtATA tFIXEt "http://openoffice.org/2000/script" <

513

CHAPTER 10

Page 514: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

02c0c0 BSaaetin BoardT enTSSice.org X L does not iaiiaitate iontroa aayoSt management or aStomatii positioningc The same appaiesto <tlg:titletbox< eaements thiih is another iontainer eaement ior iontroasc

rg int T <tlg:bulletinboart<RrT 9T This eaement ian iontain iontroa eaements and other bSaaetin board eaementsc

The position oi aaa eaements iontained in this eaement is reaatire to the parent <tlg:bullet-inboart< eaementc

ooT <!ELEMENT tlg:bulletinboart ((tlg:bulletinboart| tlg:button| tlg:checkbox| tlg:combobox| tlg:menulist| tlg:ratiogroup| tlg:titletbox| tlg:textfielt| tlg:text| tlg:filecontrol| tlg:img| tlg:timefielt| tlg:tatefielt| tlg:numericfielt| tlg:currencyfielt| tlg:patternfielt| tlg:formattetfielt| tlg:fixetline| tlg:progressmeter|tlg:scrollbar yay<<!ATTLIST tlg:bulletinboart tlg:left CtATA tIMPLIEt tlg:top CtATA tIMPLIEt <

The attribStes that yoS ian assoiiate tith the <tlg:bulletinboart< eaement are:● Leit

● Top

LeitThe tlg:left attribSte speiiiies the aeit i.o position oi the bSaaetin boardc

rg int T tlg:leftRrT 9T The raaSe oi this attribSte is nSmeriic

ooT <!ATTLIST tlg:bulletinboart tlg:left CtATA tIMPLIEt<

TopThe tlg:top attribSte speiiiies the Spper iyo position oi the bSaaetin boardc

514 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 515: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T tlg:topRrT 9T The raaSe oi this attribSte is nSmeriic

ooT <!ATTLIST tlg:bulletinboart tlg:top CtATA tIMPLIEt<

02c tyaesThe <tlg:styles< eaement is a iontainer eaement ior <tlg:style< eaementsc

rg int T <tlg:styles<RrT 9T This eaement is iontained in the top-aerea <tlg:wintow< eaementc

This eaement ian iontain one or more <tlg:style< eaementscooT <!ELEMENT tlg:styles (tlg:stylety<

02c c0 tyaeThe <tlg:style< eaement deiines the styae attribStes ior a iontroac The styae attribStes that are assoiiated titha iontroa depends oi the type oi iontroa to thiih the styae is ainkedc For e.ampaes iont attribStes are onay reaerantior iontroas that iontain te.tc

Chapter Oe Dialog Content 515

Page 516: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tlg:style<RrT 9T This eaement does not iontain iSrther sSb eaementsc

The tlg:style-it attribSte is reqSiredc aa other attribStes are optionaac i yoS do not speiiiyraaSes ior the optionaa attribStess the appaiiation deiaSats are Ssedc

ooT <!ELEMENT tlg:style EMPTY<<!ATTLIST tlg:style tlg:style-it CtATA teEt|IeEt tlg:backgrount-color CtATA tIMPLIEt tlg:text-color CtATA tIMPLIEt tlg:fill-color CtATA tIMPLIEt tlg:borter (none|3t|simpley tIMPLIEt tlg:font-name CtATA tIMPLIEt tlg:font-height CtATA tIMPLIEt tlg:font-witth CtATA tIMPLIEt tlg:font-stylename CtATA tIMPLIEt tlg:font-family (tecorative|motern|roman| script|swiss|systemy tIMPLIEt tlg:font-charset (ansi|mac|ibmpc_:3:| ibmpc_-40|ibmpc_-:0|ibmpc_-:1| ibmpc_-:3|ibmpc_-:4| system|symboly tIMPLIEt tlg:font-pitch (fixet|variabley tIMPLIEt tlg:font-charwitth CtATA tIMPLIEt tlg:font-weight CtATA tIMPLIEt tlg:font-slant (oblique|italic|reverse_oblique| reverse_italicy tIMPLIEt tlg:font-unterline (single|touble|tottet| tash|longtash|tashtot| tashtottot|smallwave|wave| toublewave|bolt|bolttottet| bolttash|boltlongtash| bolttashtot|bolttashtottot| boltwavey tIMPLIEt tlg:font-strikeout (single|touble|bolt| slash|xy tIMPLIEt tlg:font-orientation CtATA tIMPLIEt tlg:font-kerning (true|falsey tIMPLIEt tlg:font-wortlinemote (true|falsey tIMPLIEt tlg:font-type (raster|tevice|scalabley tIMPLIEt <

The attribStes that yoS ian assoiiate tith the <tlg:style< eaement are:● tlg:style-it

peiiiies the D oi the styae so that yoS ian assoiiate the styae tith a iontroac This attribSte is mandatoryc

● tlg:backgrount-color peiiiies the baikgroSnd ioaor oi a iontroac

● tlg:text-color peiiiies the te.t ioaor oi a iontroac

● tlg:fill-color peiiiies the iiaa ioaor oi a iontroac

● tlg:borter

516 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 517: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

peiiiies the border styae a iontroac

● tlg:font-name peiiiies the name oi the iont to Sse ior te.t in the iontroac

● tlg:font-height peiiiies the height oi the iont to Sse ior te.t in a iontroac

● tlg:font-witth peiiiies the tidth oi the iont to Sse ior te.t in a iontroac

● tlg:font-stylename peiiiies the name oi the iont styae to Sse ior te.t in a iontroac For e.ampaes Italic Boltc

● tlg:font-family to peiiiies the iont iamiay to Sse ior te.t in a iontroac For e.ampaes eomanc

● tlg:font-charset to peiiiies the iharaiter set to Sse ior te.t in a iontroac

● tlg:font-pitch to peiiiies thether the pitih oi the iont ior te.t in a iontroa is fixet or variablec

● tlg:font-charwitth to peiiiies the iharaiter tidth oi the iont to Sse ior te.t in a iontroac

● tlg:font-weight to peiiiies the iont teight to Sse ior te.t in a iontroac

● tlg:font-slant to peiiiies the saant to Sse ior te.t in a iontroac

● tlg:font-unterline to peiiiies the Snderaine styae to Sse ior te.t in a iontroac

● tlg:font-strikeout to peiiiies the strikeoSt styae to Sse ior te.t in a iontroac

● tlg:font-orientation to peiiiies the orientation in degreess to Sse ior te.t in a iontroas there 2 is the baseainec

● tlg:font-kerning to peiiiies thether or not to Sse iont kerning ior the te.t in a iontroac

● tlg:font-wortlinemote to peiiiies thether or not onay tords are Snderained in the te.t oi a iontroac

● tlg:font-type to peiiiies the iont type to Sse ior te.t in a iontroac

Chapter Oe Dialog Content 517

Page 518: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

For a iompaete aist oi the aiiepted raaSes ior these attribStess paease reier to the prerioSs tabaec

02c4 ControasTo bSiad a Sser interiaie diaaogs yoS Sse a ioaaeition oi iontroas sSih as bSttonss te.t bo.ess iheik bo.ess anddrop-dotn aistsc The ioaaoting seitions desiribe the iontroa eaements that are araiaabae; bSttonss aist bo.essiombo bo.ess ihoiiess radio bSttonss titaed bo.ess aabeass te.t iieadss imagess iiae diaaogss iSrreniy iieadss dateiieadss time iieadss nSmerii iieadss pattern iieadss ii.ed ainess siroaa barss and progress barsc

n T n the ioaaoting seitions:

● The %tefault-attributes; paaiehoader denotes the iommon attribStes desiribed in eition 02c4c0c● The %event paaiehoader iorresponds to an erent eaement as desiribed in eition c00c

02c4c0 Common Controa ttribStesThere are some attribStes that yoS ian assoiiate tith any iontroa eaementc The ioaaoting entity shots theiommon iontroa attribStes:

<!ENTITY % tefault-attributes "tlg:it CtATA teEt|IeEt tlg:left CtATA teEt|IeEt tlg:top CtATA teEt|IeEt tlg:witth CtATA teEt|IeEt tlg:height CtATA teEt|IeEt tlg:style-it CtATA tIMPLIEt tlg:tab-intex CtATA tIMPLIEt tlg:tisablet (true|falsey tIMPLIEt tlg:printable (true|falsey tIMPLIEt tlg:page CtATA tIMPLIEt tlg:tag CtATA tIMPLIEt tlg:help-text CtATA tIMPLIEt tlg:help-url CtATA tIMPLIEt "<

The pSrpose oi these iommon iontroa attribStes is as ioaaots:

● tlg:it is a mandatory string attribSte oi aaa iontroas peiiiies the SniqSe D oi the iontroa tithin a doiSmentc This attribSte is mandatoryc

● tlg:style-itContains a nSmerii string that speiiiies the D nSmber oi a styae to Sse ior the iontroac This attribSte reierenies a <tlg:style< eaement tith the same Dc This attribSte is optionaac

● tlg:leftContains a nSmerii raaSe that speiiiies the aeit position i.o oi the iontroa reaatire to the parent <tlg:bulletin-boart< eaementc This attribSte is mandatoryc

● tlg:topContains a nSmerii raaSe that speiiiies the Spper position iyo oi the iontroa reaatire to the parent <tlg:bulletin-boart< eaementc This attribSte is mandatoryc

● tlg:witth

518 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 519: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Contains a nSmerii raaSe that speiiiies the tidth oi the iontroac This attribSte is mandatoryc

● tlg:heightContains a nSmerii raaSe that speiiiies the height oi the iontroac This attribSte is mandatoryc

● tlg:tab-intexContains a nSmerii raaSe that speiiiies the aoiation in the tabbing order then the iontroa gains ioiSsc This attribSte isoptionaac

● tlg:tisablet peiiiies thether or not a iontroa is disabaedc The raaSe oi the attribSte ian be true or false and the deiaSat raaSe isfalsec This attribSte is optionaac

● tlg:printable peiiiies thether or not a iontroa is printabaec The raaSe oi the attribSte ian be true or falsec This attribSte isoptionaac

● tlg:pageContains a nSmerii raaSe that speiiiies the page oi mSatiaayer diaaogsc This attribSte is optionaac

● tlg:tagContains a te.t string that speiiiies additionaa Sser datas thiih ian be eraaSated by a basii siriptc This attribSte isoptionaac

● tlg:help-textContains a te.t string that speiiiies heap te.t ior the iontroac The heap te.t ian be dispaayed as a tooatipc This attribSte isoptionaac

● tlg:help-urlContains a te.t string that speiiiies a L that iontains heap te.t ior the iontroac i yoS speiiiy a Ls the L isaiiessed and dispaayed then the Sser reqSests heapc This attribSte is optionaac

02c4c BSttonThe <tlg:button< eaement desiribes a iaiikabae bSttonc Dhen yoS iaiik on a bSttons a deiined erent eaementnotiiies an aitions thiih triggers a mairoc

rg int T <tlg:button<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:button ((%event;yay<<!ATTLIST tlg:button %tefault-attributes; tlg:value CtATA tIMPLIEt tlg:tefault (true|falsey tIMPLIEt tlg:tabstop (true|falsey tIMPLIEt tlg:button-type (stantart|ok|cancel|helpy tIMPLIEt <

Chapter Oe Dialog Content 519

Page 520: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:value

peiiiies the te.t aabea oi the bSttonc This attribSte is optionaac

● tlg:tefault peiiiies thether or not the bStton is the deiaSat bStton ior the diaaogc This attribSte is optionaac

● tlg:tabstop peiiiies thether or not the bStton is reaihabae ria the Tab keyc This attribSte is optionaac

● tlg:button-type peiiiies the type oi the bSttonc The deiaSat bStton type is stantartc This attribSte is optionaac

02c4c4 Cheik Bo.The <tlg:checkbox< eaement desiribes a iontroa that yoS ian iheikc Dhen yoS modiiy the iheik bo.s adeiined erent eaement notiiies an aitions thiih triggers a mairoc

rg int T <tlg:iheikbo.<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:checkbox ((%event;yay<<!ATTLIST tlg:checkbox %tefault-attributes; tlg:value CtATA tIMPLIEt tlg:checket (true|falsey tIMPLIEt tlg:tristate (true|falsey tIMPLIEt tlg:tabstop (true|falsey tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:value

peiiiies the te.t aabea oi the iheik bo.c This attribSte is optionaac

● tlg:checket peiiiies thether or not the iheik bo. is iheikedc To speiiiy state ton't knows set the attribSte tlg:tristate totrue and omit the tlg:checket attribStec This attribSte is optionaac

● tlg:tristate peiiiies thether or not the iheik bo. ian hare three states; checkets uncheckets and ton't knowc i yoSspeiiiy ton't knows yoS mSst omit the tlg:checket attribStec This attribSte is optionaac

● tlg:tabstop peiiiies thether or not the iheik bo. is reaihabae ria the Tab keyc This attribSte is optionaac

520 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 521: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

02c4c9 List Bo. and Combo Bo.For aist and iombo bo.ess there is a predeiined set oi eaements irom thiih a Sser ian ihoosec The iombo bo.iniaSdes a te.t iiead there the Sser ian enter te.ts ior e.ampaes to aimit the set oi items that the Sser ian seaeitirom the aist bo.c

List Bo.The <tlg:menulist< eaement represents a aist bo.c aist bo. is a aist oi items irom thiih a Sser ian ihooseone or more itemsc Dhen a Sser ihooses an items a deiined erent eaement notiiies an aitions thiih triggers amairoc i the aist bo. iontains itemss the <tlg:menulist< eaement iontains a <tlg:menupopup< sSb-eaement thiih iontains one or more <tlg:menuitem< eaementsc

rg int T <tlg:menulist<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:menulist (tlg:menupopup?, (%event;yay<<!ATTLIST tlg:menulist %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:spin (true|falsey tIMPLIEt tlg:multiselection (true|falsey tIMPLIEt tlg:linecount CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the aist bo. is reaihabae ria the Tab keyc

● tlg:spin peiiiies thether or not the aist bo. has a spin bSttonc

● tlg:multiselection peiiiies thether or not a Sser ian seaeit more than one item irom the aist bo.c

● tlg:linecount peiiiies the nSmber oi aines oi the seaeition that are risibaec Sser ian Sse the siroaabar to aiiess the remainder oi theseaeitionc

Combo Bo.The <tlg:combobox< eaement represents a aist bo. and te.t iiead iombinationc Dhen a Sser ihooses a itemirom the aist bo. or enters te.t in the te.t iieads a deiined erent eaement notiiies an aitions thiih triggers a mairoc i the aist bo. seition oi the iombo bo. iontains predeiined itemss the <tlg:combobox< eaement iontains a<tlg:menupopup< sSb-eaement thiih iontains one or more <tlg:menuitem< eaementsc

Chapter Oe Dialog Content 521

Page 522: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tlg:combobox<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:combobox (tlg:menupopup?, (%event;yay<<!ATTLIST tlg:combobox %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:reatonly (true|falsey tIMPLIEt tlg:autocomplete (true|falsey tIMPLIEt tlg:spin (true|falsey tIMPLIEt tlg:maxlength CtATA tIMPLIEt tlg:linecount CtATA tIMPLIEt tlg:value CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the iombo bo. is reaihabae ria the Tab keyc

● tlg:reatonly peiiiies thether or not a Sser ian edit the iontents oi the iombo bo.c

● tlg:autocomplete peiiiies thether or not the iombo bo. aStoiompaetes manSaa inpStsc

● tlg:spin peiiiies thether or not the iombo bo. has a spin bSttonc

● tlg:maxlength peiiiies the ma.imSm nSmber oi iharaiters that is aaaoted ior manSaa inpStsc

● tlg:linecount peiiiies the nSmber oi aines oi the seaeition that are risibaec Sser ian Sse the siroaabar to aiiess the remainder oi theseaeitionc

● tlg:value peiiiies the te.t in the te.t iieadc

enS PopSpThe <tlg:menupopup< eaement serres as a iontainer eaement ior <tlg:menuitem< eaementsc

rg int T <tlg:menupopup<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:menulist<● <tlg:combobox<

ooT <!ELEMENT tlg:menupopup (tlg:menuitemty<

522 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 523: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

enS temThe <tlg:menuitem< eaements represent the items that yoS ian seaeit irom a aist bo. or irom the aist bo.seition oi a iombo bo.c

rg int T <tlg:menuitem<RrT 9T This eaement is iontained in the <tlg:menupopup< eaement and iontains one or more styae

eaementsc

ooT <!ELEMENT tlg:menuitem EMPTY<<!ATTLIST tlg:menuitem tlg:value CtATA teEt|IeEt tlg:selectet (true|falsey tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:value

peiiiies the te.t aabea oi the itemc

● tlg:selectet peiiiies thether or not the item is seaeitedc

02c4c5 adio GroSp and Titaed Bo. radio groSp is a ioaaeition oi items irom thiih a Sser ian seaeit one itemc i yoS speiiiy that more than oneradio item ian be seaeiteds it is Sndeiined thiih one is seaeitedc

adio GroSpThe <tlg:ratiogroup< eaement serres as a iontainer eaement ior one or more <tlg:ratio< eaementscThere ian be none or one radio item iheiked at a timec

rg int T <tlg:ratiogroup<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:ratiogroup (tlg:ratioty<

adio temsThe <tlg:ratio< eaement represents an item in a radio groSpc Dhen a Sser seaeits a radio items a deiinederent eaement notiiies an aitions thiih triggers a mairoc

Chapter Oe Dialog Content 523

Page 524: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tlg:ratio<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:ratiogroup<● <tlg:titletbox<

ooT <!ELEMENT tlg:ratio ((%event;yay<<!ATTLIST tlg:ratio %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:value CtATA tIMPLIEt tlg:tristate (true|falsey tIMPLIEt tlg:checket (true|falsey tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the radio item is reaihabae ria the Tab keyc

● tlg:value peiiiies the te.t aabea oi the radio itemc

● tlg:tristate peiiiies thether or not the item ian hare three states; checkets uncheckets and ton't knowc To speiiiy theraaSe to ton't knows set this to true and omit the tlg:checket attribStec

● tlg:checket peiiiies thether or not the radio item is iheikedc To speiiiy the tristate raaSe to ton't knows set the attribSte tlg:tristate to true and omit the tlg:checket attribStec

Titaed Bo.The <tlg:titletbox< eaement groSps arbitrary iontroas and <tlg:ratio< items and assigns a border anda titae to the groSpc titaed bo. is sometimes iaaaed a groSp bo.c Dhen a Sser mores the moSse pointer orer atitaed bo.s a deiined erent eaement notiiies an aitions thiih triggers a mairoc

rg int T <tlg:titletbox<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:titletbox (tlg:title?, tlg:ratioa, (tlg:bulletinboart|tlg:button|tlg:checkbox| tlg:combobox|tlg:menulist|tlg:ratiogroup|tlg:titletbox| tlg:textfielt|tlg:text|tlg:filecontrol|tlg:img| tlg:timefielt|tlg:tatefielt|tlg:numericfielt| tlg:currencyfielt|tlg:patternfielt|tlg:formattetfielt| tlg:fixetline|tlg:progressmeter|tlg:scrollbarya, (%event;yay <<!ATTLIST tlg:titletbox %tefault-attributes;<

524 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 525: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

TitaeThe <tlg:title< eaement represents the titae aabea oi a <tlg:titletbox<c

rg int T <tlg:title<RrT 9T This eaement is optionaaay iontained in a <tlg:titletbox< eaementcooT <!ELEMENT tlg:title EMPTY<

<!ATTLIST tlg:title tlg:value CtATA tIMPLIEt<

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:value

peiiiies the te.t oi the titae aabea oi the titaed bo.c

02c4c6 LabeaThe <tlg:text< eaement desiribes a ionstant string oi te.tc Dhen a Sser mores the moSse pointer orer a te.taabeas a deiined erent eaement notiiies an aitions thiih triggers a mairoc

rg int T <tlg:text<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:text ((%event;yay<<!ATTLIST tlg:text %tefault-attributes; tlg:align (left|center|right|noney tIMPLIEt tlg:multiline (true|falsey tIMPLIEt tlg:value CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:align

peiiiies hot the te.t is aaigneds ior e.ampae ii it is aaigned to the aeit or right oi a speiiiied dimensionc

● tlg:multiline peiiiies thether or not the te.t ian appear on more than one ainec

● tlg:value peiiiies the te.t oi the aabeac

02c4cm Te.t FieadThe <tlg:textfielt< eaement represents a te.t iieadc te.t iiead serres as an inpSt iontroa ior strings oiiharaitersc Dhen a Sser modiiies a te.t iieads a deiined erent eaement notiiies an aitions thiih triggers a mairoc

Chapter Oe Dialog Content 525

Page 526: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tlg:textfielt<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:textfielt ((%event;yay<<!ATTLIST tlg:textfielt %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:align (left|center|right|noney tIMPLIEt tlg:reatonly (true|falsey tIMPLIEt tlg:echochar CtATA tIMPLIEt tlg:hart-linebreaks (true|falsey tIMPLIEt tlg:hscroll (true|falsey tIMPLIEt tlg:vscroll (true|falsey tIMPLIEt tlg:maxlength CtATA tIMPLIEt tlg:multiline (true|falsey tIMPLIEt tlg:value CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the te.t iiead is reaihabae ria the Tab keyc

● tlg:align peiiiies hot the inpSt te.t is aaigneds ior e.ampae ii it is aaigned to the aeit or right oi a speiiiied dimensionc

● tlg:reatonly peiiiies thether or not a Sser ian edit the te.t iieadc

● tlg:echochar peiiiies a speiiaa eiho iharaiterc i this attribSte is enabaeds the same iharaiter is dispaayed in the oStpSt dispaayregardaess oi thiih iharaiters the Sser inpStsc This attribSte is SseiSa ior passtord inpSt iieadsc

● tlg:hart-linebreaks peiiiies thether or not aine break iharaiters remain part oi the inpStc

● tlg:hscroll peiiiies thether or not a horikontaa siroaabar is dispaayed ior the te.t iieadc

● tlg:vscroll peiiiies thether or not a rertiiaa siroaabar is dispaayed ior the te.t iieadc

● tlg:maxlength peiiiies the ma.imSm nSmber oi inpSt iharaiters that is aaaotedc

● tlg:multiline peiiiies thether or not the te.t ian appear on more than one ainec

● tlg:value

526 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 527: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

peiiiies the inpSt te.t string oi the iieadc

02c4cr mageThe <tlg:img< eaement represents an imagec Dhen a Sser iaiiks on the image or more the moSse pointer orerthe images a deiined erent eaement notiiies an aitions thiih triggers a mairoc

rg int T <tlg:img<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:img ((%event;yay<<!ATTLIST tlg:img %tefault-attributes; tlg:src CtATA tIMPLIEt tlg:scale-image (true|falsey tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:src

peiiiies a L ior the image soSrie iiaec

● tlg:scale-image peiiiies thether or not the image is siaaed to sSit the sike oi the iontroa in thiih it residesc

02c4c Fiae DiaaogThe <tlg:filecontrol< eaement represents a iontroa that dispaays a iiae diaaogc The iiae diaaog is Ssed toseaeit a iiaec Dhen a Sser aiiesses a iiae diaaogs a deiined erent eaement notiiies an aitions thiih triggers amairoc

rg int T <tlg:filecontrol<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:filecontrol ((%event;yay<<!ATTLIST tlg:filecontrol %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:value CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether the iontroa is reaihabae ria the Tab keyc

● tlg:value

Chapter Oe Dialog Content 527

Page 528: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

peiiiies the name oi the iiae that is seaeited Ssing the iiae diaaogc

02c4c02 Date FieadThe <tlg:tatefielt< eaement represents a date iiead that a Sser ian modiiyc Dhen a Sser modiiies a dateiieads a deiined erent eaement notiiies an aitions thiih triggers a mairoc

rg int T <tlg:tatefielt<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:tatefielt ((%event;yay<<!ATTLIST tlg:tatefielt %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:reatonly (true|falsey tIMPLIEt tlg:strict-format (true|falsey tIMPLIEt tlg:tate-format (system_short|system_short_YY| system_short_YYYY|system_long| short_ttMMYY|short_MMttYY| short_YYMMtt|short_ttMMYYYY| short_MMttYYYY|short_YYYYMMtt| short_YYMMtt_tIN400-| short_YYYYMMtt_tIN400-y tIMPLIEt tlg:value CtATA tIMPLIEt tlg:value-min CtATA tIMPLIEt tlg:value-max CtATA tIMPLIEt tlg:spin (true|falsey tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the date iiead is reaihabae ria the Tab keyc

● tlg:reatonly peiiiies thether or not a Sser ian edit the iieadc

● tlg:strict-format peiiiies thether or not the system iheiks the raaidity oi the date thiae the Sser is modiiying the iieadc

● tlg:tate-format peiiiies the iormat in thiih the date raaSe is dispaayedc

● tlg:value peiiiies the date raaSe by a rot oi digits YYYYMMtt; a ioSr digit years ioaaoted by a tto digit months and a tto digitdayc For e.ampaes 20010330 represents arih 42ths 220c

● tlg:value-min peiiiies the aoter date boSndary oi the iieadc

528 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 529: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● tlg:value-max peiiiies the Spper date boSndary oi the iieadc

● tlg:spin peiiiies thether or not the iiead has a spin bStton to inirease or deirease the date raaSe by a ii.ed step deatac ee tlg:value-stepc

● tlg:value-step peiiiies the nSmerii step deata then Ssing the spin bSttonc

02c4c00 Time FieadThe <tlg:timefielt< eaement represents a time iiead that a Sser ian modiiyc Dhen a Sser modiiies the timeiieads a deiined erent eaement notiiies an aitions thiih triggers a mairoc

rg int T <tlg:timefielt<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:timefielt ((%event;yay<<!ATTLIST tlg:timefielt %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:reatonly (true|falsey tIMPLIEt tlg:strict-format (true|falsey tIMPLIEt tlg:time-format (2:h_short|2:h_long|12h_short| 12h_long|turation_short| turation_longy tIMPLIEt tlg:value CtATA tIMPLIEt tlg:value-min CtATA tIMPLIEt tlg:value-max CtATA tIMPLIEt tlg:spin (true|falsey tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the iiead is reaihabae ria the Tab keyc

● tlg:reatonly peiiiies thether or not a Sser ian edit the iiead to modiiy the timec

● tlg:strict-format peiiiies thether or not the system iheiks the raaidity oi the time setting thiae the Sser is modiiying the iieadc

● tlg:time-format peiiiies the iormat in thiih the time is dispaayedc

● tlg:value

Chapter Oe Dialog Content 529

Page 530: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

peiiiies the time raaSe by a rot oi digits mmMMSSCC; tto digit hoSrs ioaaoted by minStess seiondss and 02 miaaisei-ondsc For e.ampaes 12300000 represents 0 :22 pcmc

● tlg:value-min peiiiies the aoter time boSndary oi the iieadc

● tlg:value-max peiiiies the Spper time boSndary oi the iieadc

● tlg:spin peiiiies thether or not the iiead has a spin bStton to inirease or deirease the time raaSe by a ii.ed step deatac ee tlg:value-stepc

● tlg:value-step peiiiies the nSmerii step deata then Ssing the spin bSttonc

02c4c0 NSmerii FieadThe <tlg:numericfielt< eaement represents a nSmerii iiead that a Sser ian modiiyc Dhen a Sser modiiiesthe iieads a deiined erent eaement notiiies an aitions thiih triggers a mairoc

rg int T <tlg:numericfielt<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:numericfielt ((%event;yay<<!ATTLIST tlg:numericfielt %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:reatonly (true|falsey tIMPLIEt tlg:strict-format (true|falsey tIMPLIEt tlg:tecimal-accuracy CtATA tIMPLIEt tlg:thousants-separator (true|falsey tIMPLIEt tlg:value CtATA tIMPLIEt tlg:value-min CtATA tIMPLIEt tlg:value-max CtATA tIMPLIEt tlg:value-step CtATA tIMPLIEt tlg:spin (true|falsey tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the iiead is reaihabae ria the Tab keyc

● tlg:reatonly peiiiies thether or not a Sser ian modiiy the raaSe oi the iieadc

● tlg:strict-format

530 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 531: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

peiiiies thether or not the system iheiks the raaidity oi the raaSe thiae the Sser is modiiying the raaSec

● tlg:tecimal-accuracy peiiiies the deiimaa aiiSraiy oi the iieadc

● tlg:thousants-separator peiiiies thether or not a thoSsands separator is dispaayed in the iieadc

● tlg:value peiiiies the nSmerii raaSe oi the iieadc

● tlg:value-min peiiiies the aoter nSmerii boSndary oi the iieadc

● tlg:value-max peiiiies the Spper nSmerii boSndary oi the iieadc

● tlg:spin peiiiies thether or not the iiead has a spin bStton to inirease or deirease the raaSe by a ii.ed step deatac ee tlg:value-stepc

● tlg:value-step peiiiies the nSmerii step deata then Ssing the spin bSttonc

02c4c04 CSrreniy FieadThe <tlg:currencyfielt< eaement represents a iiead that dispaays a iSrreniy raaSec Dhen a Sser modiiiesthe iSrreniy iieads a deiined erent eaement notiiies an aitions thiih triggers a mairoc

rg int T <tlg:currencyfielt<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:currencyfielt ((%event;yay<<!ATTLIST tlg:currencyfielt %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:reatonly (true|falsey tIMPLIEt tlg:currency-symbol CtATA tIMPLIEt tlg:strict-format (true|falsey tIMPLIEt tlg:tecimal-accuracy CtATA tIMPLIEt tlg:thousants-separator (true|falsey tIMPLIEt tlg:value CtATA tIMPLIEt tlg:value-min CtATA tIMPLIEt tlg:value-max CtATA tIMPLIEt tlg:value-step CtATA tIMPLIEt tlg:spin (true|falsey tIMPLIEt <

Chapter Oe Dialog Content 531

Page 532: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the iiead is reaihabae ria the Tab keyc

● tlg:reatonly peiiiies thether or not a Sser ian modiiy the raaSe oi the iieadc

● tlg:currency-symbol peiiiies the iSrreniy symboac

● tlg:strict-format peiiiies thether or not the system iheiks the raaidity oi a raaSe thiae a Sser is modiiying the iieadc

● tlg:tecimal-accuracy peiiiies the deiimaa aiiSraiy oi the iieadc

● tlg:thousants-separator peiiiies thether or not a thoSsands separator is dispaayed in the iieadc

● tlg:value peiiiies the nSmerii raaSe oi the iieadc

● tlg:value-min peiiiies the aoter nSmerii boSndary oi the iieadc

● tlg:value-max peiiiies the Spper nSmerii boSndary oi the iieadc

● tlg:spin peiiiies thether or not the iiead has a spin bStton to inirease or deirease the raaSe by a ii.ed step deatac ee tlg:value-stepc

● tlg:value-step peiiiies the nSmerii step deata then Ssing the spin bSttonc

02c4c09 Pattern FieadThe <tlg:patternfielt< eaement represents a iiead that dispaays a pattern that a Sser ian modiiyc Dhen aSser modiiies the pattern iieads a deiined erent eaement notiiies an aitions thiih triggers a mairoc

532 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 533: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tlg:patternfielt<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:patternfielt ((%event;yay<<!ATTLIST tlg:patternfielt %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:reatonly (true|falsey tIMPLIEt tlg:strict-format (true|falsey tIMPLIEt tlg:etit-mask CtATA tIMPLIEt tlg:literal-mask CtATA tIMPLIEt tlg:value CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the iiead is reaihabae ria the Tab keyc

● tlg:reatonly peiiiies thether or not a Sser ian edit the raaSe oi the iieadc

● tlg:strict-format peiiiies thether or not the system iheiks the raaidity oi a pattern raaSe thiae a Sser is modiiying the iieadc

● tlg:etit-mask peiiiies the edit mask oi the iieadc

● tlg:literal-mask peiiiies the aiteraa mask oi the iieadc

● tlg:value peiiiies the patternc

02c4c05 Formatted FieadThe <tlg:formattetfielt< eaement represents a iormatted iieads thiih dispaays nSmberss iSrreniiessdatess and so onc Dhen a Sser modiiies a iormatted iieads a deiined erent eaement notiiies an aitions thiih trig-gers a mairoc

Chapter Oe Dialog Content 533

Page 534: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tlg:formattetfielt<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:formattetfielt ((%event;yay<<!ATTLIST tlg:formattetfielt %tefault-attributes; tlg:tabstop (true|falsey tIMPLIEt tlg:reatonly (true|falsey tIMPLIEt tlg:strict-format (true|falsey tIMPLIEt tlg:maxlength CtATA tIMPLIEt tlg:spin (true|falsey tIMPLIEt tlg:align (left|center|righty tIMPLIEt tlg:text CtATA tIMPLIEt tlg:value-tefault CtATA tIMPLIEt tlg:value-max CtATA tIMPLIEt tlg:value-min CtATA tIMPLIEt tlg:value CtATA; tIMPLIEt tlg:format-cote CtATA tIMPLIEt tlg:format-locale CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:tabstop

peiiiies thether or not the iiead is reaihabae ria the Tab keyc

● tlg:reatonly peiiiies thether or not a Sser ian modiiy the raaSe oi the iieadc

● tlg:strict-format peiiiies thether or not the system iheiks the raaidity oi a raaSe thiae a Sser is modiiying the iieadc

● tlg:maxlength peiiiies the ma.imSm nSmber oi inpSt iharaiters aaaoted in the iieadc

● tlg:spin peiiiies thether or not the iiead iontains a spin bStton to inirease or deirease the raaSe oi the iieadc

● tlg:align peiiiies hot the te.t is aaignedc

● tlg:text peiiiies the te.t dispaayed in the iontroac

● tlg:value-min peiiiies the minimSm eiieitire nSmerii raaSe oi the iieadc

● tlg:value-max

534 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 535: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

peiiiies the ma.imSm eiieitire nSmerii raaSe oi the iieadc

● tlg:value peiiiies the eiieitire nSmerii raaSe oi the iieadc

● tlg:value-tefault peiiiies the deiaSat raaSe oi the iiead inSmerii or stringoc

● tlg:format-cote peiiiies the iormat oi the iieadc

● tlg:format-locale peiiiies the iormat aoiaae oi the iieads thiih is " O_LangSageCode; O_CoSntryCode; Variant"c For e.ampaes theraaSe oi this attribSte ian be "te;tE;TIN"c YoS ian omit the iinaa rariantc

02c4c06 Fi.ed LineThe <tlg:fixetline< eaement represents a horikontaa or rertiiaa aines thiih ian optionaaay hare a aabea te.tcDhen a Sser mores the moSse pointer orer a ii.ed aines a deiined erent eaement notiiies an aitions thiih triggersa mairoc

rg int T <tlg:fixetline<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:fixetline ((%event;yay<<!ATTLIST tlg:fixetline %tefault-attributes; tlg:align (horivontal|verticaly tIMPLIEt tlg:value CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:align

peiiiies the orientation oi the ainec

● tlg:value peiiiies the te.t oi the aabeac

02c4c0m iroaabarThe <tlg:scrollbar< eaement represents a horikontaa or rertiiaa siroaabarc Dhen a Sser Sses the siroaabars adeiined erent eaement notiiies an aitions thiih triggers a mairoc

Chapter Oe Dialog Content 535

Page 536: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tlg:scrollbar<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:scrollbar ((%event;yay<<!ATTLIST tlg:scrollbar %tefault-attributes; tlg:align (horivontal|verticaly tIMPLIEt tlg:curpos CtATA tIMPLIEt tlg:maxpos CtATA tIMPLIEt tlg:increment CtATA tIMPLIEt tlg:pageincrement CtATA tIMPLIEt tlg:visible-sive CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:align

peiiiies the orientation oi the siroaabarc

● tlg:curpos peiiiies the iSrrent position oi the siroaabar as a nSmerii raaSec

● tlg:maxpos peiiiies the ma.imSm position oi the siroaabar as a nSmerii raaSec

● tlg:increment peiiiies the inirement amoSnt ior a singae aine more oi the siroaabar as a nSmerii raaSec

● tlg:pageincrement peiiiies the inirement amoSnt ior a baoik more oi the siroaabar as a nSmerii raaSec

● tlg:visible-sive peiiiies the risibae sike oi the siroaabarc

02c4c0r Progress BarThe <tlg:progressmeter< eaement represents a progress barc Dhen a Sser Sses the progress bars a deiinederent eaement notiiies an aitions thiih triggers a mairoc

536 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 537: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int T <tlg:progressmeter<RrT 9T This eaement is iontained in one oi the ioaaoting eaements:

● <tlg:bulletinboart<● <tlg:titletbox<

ooT <!ELEMENT tlg:progressmeter ((%event;yay<<!ATTLIST tlg:progressmeter %tefault-attributes; tlg:value CtATA tIMPLIEt tlg:value-min CtATA tIMPLIEt tlg:value-max CtATA tIMPLIEt <

n addition to the iommon iontroa attribStes desiribed in eition 02c4c0s the attribStes that yoS ian assoiiate tiththe <tlg:button< eaement are:● tlg:value

peiiiies the iSrrent position oi the progress bar as a nSmerii raaSec

● tlg:value-min peiiiies the aoter boSndary ior progress bar positions as a nSmerii raaSec

● tlg:value-max peiiiies the Spper boSndary ior progress bar positions as a nSmerii raaSec

02c9 Erents n addition to the obsoaete tlg:event eaements there are tto other eaements that enabae yoS to aink to erentsthat oiiSr as a resSat oi Ssing iontroasc The ioaaoting e.ampae shots an erent entity:

<!ENTITY % event "(script:event|script:listener-event|tlg:eventy"<

02c9c0 Erents peiiiied sing Common Erent NamesThe <script:event< eaement represents an erent that Sses iommon erent namess ior e.ampaes on-item-statechangec

rg int T <script:event<RrT 9T This eaement ian be iontained in any eaement that represents a iontroac

ooT <!ELEMENT script:event EMPTY<<!ATTLIST script:event script:location CtATA tIMPLIEt script:language CtATA teEt|IeEt script:macro-name CtATA teEt|IeEt script:event-name CtATA teEt|IeEt <

The attribStes that yoS ian assoiiate tith the <script:event< eaement are:● script:location

peiiiies the aoiation there the mairo is e.eiStedc The onay raaSes iSrrentay aiiepted are application or tocu-mentc The deiaSat is tocumentc

Chapter Oe Dialog Content 537

Page 538: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

● script:language peiiiies the programming aangSage oi the mairo to be e.eiSteds ior e.ampae StarBasicc

● script:macro-name peiiiies the name oi a mairo to e.eiSte then the erent is iiredc

● script:event-name peiiiies the name oi the erent that is oiiSrringc CSrrentay the ioaaoting names are sSpported:

➢ on-approveaction➢ on-performaction➢ on-change➢ on-textchange➢ on-itemstatechange➢ on-focus➢ on-blur➢ on-keytown➢ on-keyup➢ on-mouseover➢ on-mousetrag➢ on-mousemove➢ on-mousetown➢ on-mouseup➢ on-mouseout➢ on-approvereset➢ on-reset➢ on-submit➢ on-approveuptate➢ on-uptate➢ on-loat➢ on-startreloat➢ on-reloat➢ on-startunloat➢ on-unloat➢ on-confirmtelete➢ on-approverowchange➢ on-rowchange➢ on-approvecursormove

538 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 539: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

➢ on-cursormove➢ on-supplyparameter➢ on-error

02c9c E.paiiit Erents peiiiied by ListenerThe <script:listener-event< eaement desiribes an erent by an speiiiii aistener type methodc

rg int T <script:listener-event<RrT 9T This eaement ian be iontained in any eaement that desiribes a iontroac

ooT <!ELEMENT script:listener-event EMPTY<<!ATTLIST script:listener-event script:location CtATA tIMPLIEt script:language CtATA teEt|IeEt script:macro-name CtATA teEt|IeEt script:listener-type CtATA teEt|IeEt script:listener-methot CtATA teEt|IeEt script:listener-param CtATA tIMPLIEt <

The attribStes that yoS ian assoiiate tith the <script:listener-event< eaement are:● script:location

peiiiies the aoiation there the mairo is e.eiStedc The onay raaSes iSrrentay aiiepted are application or tocu-mentc The deiaSat is tocumentc

● script:language peiiiies the programming aangSage oi the mairo to be e.eiSteds ior e.ampae StarBasicc

● script:macro-name peiiiies the name oi a mairo to e.eiSte then the erent is iiredc

● script:listener-type peiiiies the name oi the erent aistener types ior e.ampae com.sun.star.awt.XActionListenerc

● script:listener-methot peiiiies the destination erent method oi the aisteners ior e.ampae actionPerformetc

● script:listener-param peiiiies an optionaa parameter that qSaaiiies the aisteners ior e.ampae when listening for propertychanges, you have to know the property namec

Chapter Oe Dialog Content 539

Page 540: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion
Page 541: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

00 Paikage Format

This ihapter desiribes the paikage iormat Ssed in OpenOiiiiecorgc t iontains the ioaaoting seitions:

● ntrodSition

● 1ip Fiae trSitSre

● Eniryption

● aniiest Fiae

00c0 ntrodSition s X L has no natire sSpport ior binary objeits sSih as imagess OLE objeitss or other media typess OpenOiiiiecorg Sses a paikage iiae to store the X L iontent oi a doiSment together tith its assoiiated binary datac Thispaikage is a standard 1ip iiaes those strSitSre is disiSssed beaotc

niormation aboSt the iiaes iontained in the paikage is stored in an X L iiae iaaaed the maniiest iiaec The mani-iest iiae is aatays stored at the pathname ET - NFsmaniiestc.mac The main pieies oi iniormation stored in themaniiest are as ioaaots:

● aist oi aaa oi the iiaes in the paikagec

● The media type oi eaih iiae in the paikagec

● i a iiae stored in the paikage is enirypteds the iniormation reqSired to deirypt the iiae is stored in the mani-iestc

541

CHAPTER 11

Page 542: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

00c 1ip Fiae trSitSre 1ip iiae starts tith a seqSenie oi iiaess eaih oi thiihian be iompressed or stored in rat iormatc Eaih iiaehas a aoiaa header immediateay beiore its datas thiihiontains most oi the iniormation aboSt the iiaesiniaSding time-stampss iompression method and iiaenamec The iompressed iiae iontents immediateayioaaots and are terminated by an optionaa datadesiriptorc The data desiriptor iontains the C C andiompressed sike oi the iiaes thiih are ireqSentay notaraiaabae then triting the aoiaa iiae headerc i thesedetaias tere iniaSdeds the data desiriptor ian beskippedc

Eaih iiae in the arihire is aaid dotn seqSentiaaay in thisiormats ioaaoted by a ientraa direitory at the end oi the1ip arihirec The ientraa direitory is a iontigSoSs set oidireitory entriess eaih oi thiih iontains aaa the inior-mation in the aoiaa iiae headers paSs e.tras sSih as iiaeiomments and attribStesc ost importantays the ientraadireitory iontains pointers to the position oi eaih iiaein the arihires thiih makes narigation oi the 1ip iiaeqSiik and easyc

For more detaias aboSt the 1ip iiae iormats see: http:sstttcpktareciomsappnotechtmac

00c4 EniryptionThe eniryption proiess takes paaie in the ioaaoting mSatipae stages:

0c 2-byte O 0 digest oi the Sser entered passtord is ireated and passed to the paikage iomponentc

c The paikage iomponent initiaaikes a random nSmber generator tith the iSrrent timec

4c The random nSmber generator is Ssed to generate a random r-byte initiaaikation reitor and 06-yte saat ior eaihiiaec

9c This saat is Ssed together tith the 2-byte O 0 digest oi the passtord to derire a SniqSe 0 r-bit key ioreaih iiaec The aagorithm Ssed to derire the key is the PB2DF isee FC r o tith an iteration ioSnt oi02 9c

5c The derired key is Ssed together tith the intiaaisation reitor to enirypt the iiae Ssing the Baotiish aagorithmin iipher-ieedbaik iCFBo modec

Eaih iiae that is enirypted is iompressed beiore being eniryptedc To aaaot the iontents oi the paikage iiae to bereriiieds it is neiessary that enirypted iiaes are iaagged as ' TO ED' rather than 'DEFL TED'c s entries thiihare ' TO ED' mSst hare their sike eqSaa to the iompressed sikes it is neiessary to store the Sniompressed sike inthe maniiestc The iompressed sike is stored in both the aoiaa iiae header and ientraa direitory reiord oi the 1ipiiaec

542 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 543: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

00c9 aniiest FiaeThe eaements and attribStes in the maniiest iiae are in the namespaie: http:ssopenoiiiiecorgs 220smaniiestc

I eu o 9oIuoun1 4 9o4o i

manifest The maniiest namespaie iontainsaaa attribStes and eaements Ssed inthe maniiest iiaec

http://openoffice.org/2001 /manifest

00c9c0 aniiest oot EaementThe root eaement is iaaaed maniiestc The root eaement iontains one ii.ed attribSte thiih speiiiies the namespaieas desiribed aborec

rg int Ti <manifest:manifest<RrT 9Ti This is the root eaement oi the maniiest iiaec t iontains mSatipae 'iiae-entry' eaementss eaih oi

thiih desiribes a singae iiae in the paikagec

ooT <!ELEMENT manifest:manifest (manifest:file-entrytya<<!ATTLIST manifest:manifest xmlns:manifest CtATA tFIXEt"http://openoffice.org/2001/manifest"<

00c9c Fiae EntryThe <manifest:file-entry< eaement represents a singae iiae tithin the paikages and stores the iiaes aoia-tion in the paikages the mime-type oi the iiae and optionaaay the data reqSired to deirypt this iiaec

rg int Ti <manifest:file-entry<ooT <!ELEMENT manifest:file-entry (manifest:encryption-tata?y<

The attribStes assoiiated tith a <manifest:file-entry> are as ioaaots:

● FSaa path

● ike

● edia type

FSaa PathThe manifest:full-path attribSte desiribes the aoiation oi the iiae tithin the paikagec

rg int Ti manifest:full-pathooT <!ATTLIST manifest:file-entry manifest:full-path CtATA

teEt|IeEt<

Chapter OO Package Format 543

Page 544: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ikeThe manifest:sive attribSte is onay present ii the iiae is stored in an enirypted iormatc The reason thy thisattribSte is reqSired is e.paained in eition 0c9c

rg int Ti manifest:siveRrT 9Ti This attribSte is onay Ssed ior enirypted iiaesc

ooT <!ATTLIST manifest:file-entry manifest:sive CtATA tIMPLIEt<

edia TypeThe manifest:metia-type attribSte speiiiies the mime type oi the speiiiied iiaec For a iSaa aist oi mimetypes see http:sstttcisicedSsin-notessianasassignmentssmedia-typessmedia-typesc s an e.ampaes aaa X L streamshare the media type "te.ts.ma"c

rg int Ti manifest:metia-typeooT <!ATTLIST manifest:file-entry manifest:metia-type CtATA

tIMPLIEt<

00c9c4 Eniryption DataThe <manifest:encryption-tata< eaement iontains aaa oi the iniormation reqSired to deirypt the iiaec

rg int Ti <manifest:encryption-tata<ooT <!ELEMENT manifest:encryption-tata (manifest:algorithm,

manifest:key-terivationy<

The <encryption-data> eaement iontains the ioaaoting eaements:

● agorithm

● 2ey Deriration

00c9c9 agorithmThe <manifest:algorithm< eaement iontains iniormation aboSt the aagorithm Ssed to enirypt the datac

rg int Ti <manifest:algorithm<ooT <!ELEMENT manifest:algorithm EMPTY<

The attribStes assoiiated tith <manifest:algorithm> are as ioaaots:

● agorithm name

● nitiaaikation reitor

agorithm NameThe manifest:algorithm-name attribSte speiiiies the name oi the aagorithm Ssed to enirypt the iiaes and

544 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 545: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

aaso speiiiies in thiih mode this aagorithm tas Ssedc CSrrentays the paikage iomponent onay sSpports theBlowfish aagorithm in CFB modec

rg int Ti manifest:algorithm-nameooT <!ATTLIST manifest:algorithm manifest:algorithm-name CtATA

teEt|IeEt<

nitiaaikation VeitorThe manifest:initialisation-vector attribSte speiiiies the r bytes Ssed as an initiaaikation reitor tothe stream iipherc

rg int Ti manifest:initialisation-vectorooT <!ATTLIST manifest:algorithm manifest:initialisation-vector

CtATA teEt|IeEt< n 9T The initiaaikation reitor is an r byte binary seqSenies and so is enioded in base69 then

tritten to the maniiest iiaec

00c9c5 2ey DerirationThe <manifest:key-terivation< eaement iontains the iniormation that tas Ssed to derire the eniryptionkey ior this iiae irom the Sser speiiiied passtordc

rg int Ti <manifest:key-terivation<ooT <!ELEMENT manifest:key-terivation EMPTY<

The attribStes assoiiated tith the <manifest:key-terivation< eaement are as ioaaots:● 2ey deriration name

● aat

● teration ioSnt

2ey Deriration NameThe manifest:key-terivation-name attribSte speiiiies the name oi the aagorithm Ssed to derire thenamec t this times the paikage iomponent onay sSpports the Sse oi the PB2DF key deriration methodc ForiSrther detaias see FC r rc

rg int Ti manifest:key-terivation-nameooT <!ATTLIST manifest:key-terivation manifest:key-terivation-

name CtATA teEt|IeEt<

aatThe manifest:key-terivation attribSte speiiiies the 06-byte seqSenie Ssed as the 'saat' by the keyderiration aagorithmc

Chapter OO Package Format 545

Page 546: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

rg int Ti manifest:key-terivationooT <!ATTLIST manifest:key-terivation manifest:salt CtATA

teEt|IeEt< n 9T The saat is a 06 byte binary seqSenies and thSs is enioded in base69 beiore being tritten to

the maniiest iiaec

teration CoSntThe manifest:key-terivation attribSte speiiiies the nSmber oi iterations Ssed by the key derirationaagorithm to derire the keyc

rg int Ti manifest:key-terivationooT <!ATTLIST manifest:key-terivation manifest:iteration-count

CtATA teEt|IeEt<

ampae aniiest

This is a sampae maniiest iiae generated by bSiad 6 54 oi OpenOiiiiecorgc t is an enirypted OpenOiiiiecorgDriter doiSment that iniaSdes one graphiic The iormatting has been saightay adjSsted ior iaarityc

546 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 547: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

<?xml versionp"1.0" encotingp"|TF--"?<<!tOCTYPE manifest:manifest P|BLIC "-//OpenOffice.org//tTt Manifest 1.0//EN" "Manifest.ttt"<<manifest:manifest xmlns:manifestp"http://openoffice.org/2001/manifest"< <manifest:file-entry manifest:metia-typep"application/vnt.sun.xml.writer" manifest:full-pathp"/"/< <manifest:file-entry manifest:metia-typep"image/ipeg" manifest:full-pathp"Pictures/10000000000003200000024-912EB1C3.ipg" manifest:sivep":::0:"< <manifest:encryption-tata< <manifest:algorithm manifest:algorithm-namep"Blowfish CFB" manifest:initialisation-vectorp"Ttmiu:03:-:p"/< <manifest:key-terivation manifest:key-terivation-namep"PB tF2" manifest:iteration-countp"102:" manifest:saltp"aNYtmqv:cObAJSJim:evqApp"/< </manifest:encryption-tata< </manifest:file-entry< <manifest:file-entry manifest:metia-typep"" manifest:full-pathp"Pictures/"/< <manifest:file-entry manifest:metia-typep"text/xml" manifest:full-pathp"content.xml" manifest:sivep"31:3"< <manifest:encryption-tata< <manifest:algorithm manifest:algorithm-namep"Blowfish CFB" manifest:initialisation-vectorp"Ttmiu:03:-:p"/< <manifest:key-terivation manifest:key-terivation-namep"PB tF2" manifest:iteration-countp"102:" manifest:saltp"aNYtmqv:cObAJSJim:evqApp"/< </manifest:encryption-tata< </manifest:file-entry< <manifest:file-entry manifest:metia-typep"text/xml" manifest:full-pathp"styles.xml" manifest:sivep"4149"< <manifest:encryption-tata< <manifest:algorithm manifest:algorithm-namep"Blowfish CFB" manifest:initialisation-vectorp"bChL2No4ItAp"/< <manifest:key-terivation manifest:key-terivation-namep"PB tF2" manifest:iteration-countp"102:" manifest:saltp"/kfasyu:X0Aet1uopteCtApp"/< </manifest:encryption-tata< </manifest:file-entry< <manifest:file-entry manifest:metia-typep"text/xml" manifest:full-pathp"meta.xml"/< <manifest:file-entry manifest:metia-typep"text/xml" manifest:full-pathp"settings.xml" manifest:sivep"431:"< <manifest:encryption-tata< <manifest:algorithm manifest:algorithm-namep"Blowfish CFB" manifest:initialisation-vectorp"JtxEm:rtt:cp"/< <manifest:key-terivation manifest:key-terivation-namep"PB tF2" manifest:iteration-countp"102:" manifest:saltp"Plptaxloh: | xtv1g:"9gpp"/< </manifest:encryption-tata< </manifest:file-entry<</manifest:manifest<

Chapter OO Package Format 547

Page 548: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion
Page 549: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Gaossary

Term Definition

4Iur 9 ttribStes are Ssed to assoiiate name-raaSe pairs tith eaementsc EaihattribSte speiiiiiation has a name and a raaSec ttribSte speiiiiiations mayappear onay tithin start-tags and empty-eaement tagsc

4rn4uoi9yT 9i styae that is aStomatiiaaay generated then the doiSment is e.portedc TheaStomatii styae is assigned to objeits sSih as paragraphss so that a separa-tion oi iontent and aayoSt is aihieredc

ntyi.Inro body groSp is a groSp oi rots or ioaSmns that do not repeat airosspagesc Typiiaaays a body groSp iontains the iontent oi the tabae that is notpart oi the headerc

or4I4o I9 Parsed data is made Sp oi iharaiterss some oi thiih iorm iharaiter datasand some oi thiih iorm markSpc

onTT4o9u1.inIt Iint T This is a modea oi hot to represent tabae bordersc The ioaaapsing bordermodea means that then tto adjaient ieaas hare diiierent borderss thetider border appears as the border betteen the ieaasc Eaih ieaa reieireshaai oi the tidth oi the borderc

onTr1i.Inro YoS ian groSp ioaSmns in ioaSmn groSpsc These groSps speiiiy thetheror not to repeat a ioaSmn on the ne.t pagec CoaSmn groSps ian be eitherbody groSps or header groSpsc tabae mSst iontain at aeast one ioaSmnbody groSps bSt onay one ioaSmn header groSpc

on 19 Comments may appear anythere in a doiSment oStside other markSpc nadditions they may appear tithin the doiSment type deiaaration at paaiesaaaoted by the grammarc They are not part oi the iharaiter data oi a doiS-mentc n X L proiessor mays bSt need nots make it possibae ior an appai-iation to retriere the te.t oi iommentsc

onn1i9yT 9 The styae that an OpenOiiiiecorg Sser tho doesn't iare aboSt theOpenOiiiiecorg X L iiae iormat e.peits to be a styaec The term commonstyles is Ssed to diiierentiate in iases there there might be ioniSsion tithautomatic stylesn othertise it is the same as stylesc

on1 1 The te.t betteen the start-tag and end-tag is the iontent oi an elementc

hh Casiading tyae heet

hh1 Casiading styae sheetss aerea c

orII 1ieuT ienI4iv I9un1 This rersion stores aaa the iniormation iontained in the doiSment tithoStaosing any iniormation then the doiSment is read againc

ooE Dynamii Data E.ihangec

tnor 1i T 1 n OpenOiiiiecorg X L doiSment begins tith a doiSment elementc

549

Page 550: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Term Definition

tnor 1ieu Tt9 The ioaaeitire name ior iieads that dispaay iniormation aboSt the iSrrentdoiSment or a speiiiii part oi the iSrrent doiSmentc For e.ampaes theaSthors the iSrrent page nSmbers or the doiSment ireation datec

tnor 1iInni The doiSment root eaement is the primary eaement ior deiining the iharai-teristiis oi an X L doiSmentc

tnor 1iyo it oT4I4un1 The doiSment type deiaaration ian point to an e.ternaa sSbset iontainingmarkSp deiaarationss or ian iontain the markSp deiaarations direitay in aninternaa sSbsets or ian do bothc The DTD ior a doiSment ionsists oi bothsSbsets taken togetherc

tI4Au1.io4. The main aoiation ior iontent in a drating or presentation doiSmentc

oo The X L doiSment type deiaaration iontains or points to markSp deiaara-tions that proride a grammar ior a iaass oi doiSmentsc This grammar isknotn as a doiSment type deiinitions or DTDc

T 19 Eaih X L doiSment iontains one or more eaementss the boSndaries oithiih are either deaimited by start-tags and end-tagss ors ior emptyeaementss by an empty-eaement tagc Eaih eaement has a types identiiied bynames and may hare a set oi attribSte speiiiiiationsc

1uy X L doiSments are made Sp oi storage Snits iaaaed entitiess thiihiontain either parsed or Snparsed datac Entities may reier to other entitiesto iaSse their iniaSsion in the doiSmentc

Et End-oi-aine

I14Ti9yT 9i tyaes not iontained tithin the X L iiae that iontains the iontentc

. 1 Iuoiut 1ueu I The type oi an eaementc

i ee meneeic identifieec

r 4t Ii.Inro header groSp is a groSp oi rots or ioaSmns that repeat on eaih page iithe tabae e.tends orer sereraa pagesc

u1 I14Ti9yT 9i tyaes iontained tithin the X L iiae that iontains the iontentc

Tu9iT v Ti9yT 9 aist aerea styae is a speiiiiiation iontaining a set oi properties to appay toa aist oi a iertain aist aereac

4Iro Code desiription oi the storage aayoSt and aogiiaa strSitSre oi an X LdoiSmentc arkSp takes the iorm oi start-tagss end-tagss empty-eaementtagss entity reiereniess iharaiter reiereniess iommentss CD T seitiondeaimiterss doiSment type deiaarationss and proiessing instrSitionsc

49 Iio4. The iommon baikgroSnd ior a drating pagec Eaih drating page mSst beainked to one master pagec

4t44 etadata is generaa iniormation aboSt the doiSments sSih as titaes aSthorsireation dates and so onc

14 token beginning tith a aetter or one oi a iet pSnitSation iharaiterss andiontinSing tith aetterss digitss hyphenss Sndersioress ioaonss or iSaa stopsstogether knotn as name iharaitersc

14 9o4o 9 Namespaies aaaot yoS to deiine speiiiii names ior eaementsc The pSrposeoi namespaies is to aroid ioniaiits betteen doiSments irom rarioSsaSthors tith diiierent naming ionrentionsc

1n 1 Name token; any mi.tSre oi name iharaitersc

nIor41 n orphan is a short aine at the start oi a paragraphs thiih then printedsappears aaone at the bottom oi the pagec

550 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 551: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Term Definition

o4. i49 I page-master speiiiies the sikes border and orientation oi a master pagesqcrc

o4I4.I4ori T 19 The X L eaements that are Ssed to represent headings and paragraphs inte.tc

InAi.Inro YoS ian groSp rots in rot groSpsc These groSps speiiiy thether or not torepeat a rot on the ne.t pagec ot groSps ian be either body groSps orheader groSpsc tabae mSst iontain at aeast one rot body groSps bSt onayone rot header groSpc

9 o4I4u1.inIt Iint T This is a modea oi hot to represent tabae bordersc The separating bordermodea means that borders appear tithin the ieaa that speiiiies the borderc

9 r 1o iv4Iu4T seqSenie rariabae nSmbers items sSih as tabaes or images in a doiS-mentc

hg tandard Generaaiked arkSp LangSagec

9uoT iv4Iu4T simpae rariabae ian hare diiierent raaSes at diiierent times in a doiS-mentc

9In ioIno Iu 9 VG stroke properties deiine graphii objeit aine iharaiteristiis inOpenOiiiiecorg Drat and OpenOiiiiecorg mpress doiSments:

9yT 9 The X L representations oi the styaes that are araiaabae in theOpenOiiiiecorg Sser interiaiec

9r4T sSbtabae is a tabae tithin another tabaec t oiiSpies one ieaa and no otheriontent ian appear in this ieaac i a tabae ieaa iontains a sSbtabaes it iannotiontain any paragraphsc Sbtabaes are sometimes reierred to as nestedtabaesc

hh iaaar Veitor Graphiisc n X L aangSage ior ireating reitor graphiis in nternet-rietabae doiSmentsc

yo The name in the start-tags and end-tags gires the eaement types see aasomeneeic identifieec

r9 Iiv4Iu4T Sser rariabae has the same raaSe throSghoSt a doiSmentc

v4Tut n X L doiSment is raaid ii it has an assoiiated doiSment type deiaara-tion and ii the doiSment iompaies tith the ionstraints e.pressed in itc

A TT-enI titnor 1i n a teaa-iormed doiSments the aogiiaa and physiiaa strSitSres in an X LdoiSment are properay nestedc ConseqSentays no start-tags end-tags empty-eaement tags eaements iomments proiessing instrSitions iharaiter reier-enies or entity reierenie ian begin in one entity and end in anotherc

T2 Dorad Dide Deb Committeec

AutnA tidot is a short aine at the end oi a paragraphs thiih then printedsappear aaone at the top oi the ne.t pagec

r u19 Oyperainks in X L doiSmentss identiiied by the xml:links attribStecXLink gorerns hot yoS insert ainks into yoSr X L doiSments and therethe aink might points toc

rg i The eXtensibae arkSp LangSage iX Lo is a sSbset oi G L desiribedin the D4C X L peiiiiiationc The goaa oi X L is to enabae generii G L to be serreds reieireds and proiessed on the Deb in a tay iompa-rabae to OT Lc X L prorides ease oi impaementation and interoper-abiaity tith both G L and OT Lc

rg itnor 19i iaass oi data objeits desiribed by X Lc X L doiSments areioniorming G L doiSmentsc

Preface 551

Page 552: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Term Definition

rg ioIno 99nI soittare modSae Ssed to read X L doiSments and proride aiiess totheir iontent and strSitSrec

r4r X L Path LangSage; a aangSage ior addressing parts oi an X L doiS-ments designed to be Ssed by both X LT and XPointerc

rh E.tensibae tyae heet LangSage; a styaesheet aangSage ior X Lc DhenyoS Sse X L aaa yoSr doiSments are iormatted the same tays no matterthiih appaiiation or paatiorm they are onc

rh X LT is a aangSage ior transiorming X L doiSments into other X LdoiSmentsc X LT is designed ior Sse as part oi X Ls or independentay oiX Lc

rnu1 I XPointer gorerns the iragment identiiier that ian go on a L thenyoS're ainking to an X L doiSment irom anytheres ior e.ampae irom anOT L iiaec XPointer and XLinks are part oi the same paikagec

552 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 553: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

nde.

1t -time 004l ieaa-address m l ieaa-range-address m l ieaa-range-address-aist m ldatabase-tabae; 06 lnSm-iormat; 0 rlraaSe-attaist; 0 5lrariabae-deiaarations; 0r4lrariabae-iieads; 0r4aaiiea:aiieaeratoraist< 9 4aaiiea:item< 9 4aihart:a.is< 9mraihart:iategories< 9r4aihart:ihart< 9m aihart:data-point< 9r4aihart:domain< 9r aihart:iaoor< 9mmaihart:grid< 9r0aihart:aegend< 9m9aihart:paot-area< 9m5aihart:series< 9r aihart:sSbtitae< 9m9aihart:titae< 9m4aihart:taaa< 9m6aioniig:ioniig-item-map-entry< 005aioniig:ioniig-item-map-inde.ed< 005aioniig:ioniig-item-map-named< 005aioniig:ioniig-item-set< 005aioniig:ioniig-item< 009adi:ireator< 4madi:date< 4radi:desiription< 46adi:aangSage< 90adi:sSbjeit< 4madi:titae< 46adag:bSaaetinboard< 509adag:bStton< 50 adag:iheikbo.< 5 2adag:iombobo.< 5 0s 5 adag:iSrreniyiiead< 540

adag:dateiiead< 5 radag:iiaeiontroa< 5 madag:ii.edaine< 545adag:iormattediiead< 544s 549adag:img< 5 madag:menSitem< 5 0s 5 s 5 4adag:menSaist< 5 0adag:menSpopSp< 5 0s 5 adag:nSmeriiiiead< 542adag:patterniiead< 54 s 544adag:progressmeter< 546s 54madag:radio< 5 4s 5 9adag:radiogroSp< 5 4adag:siroaabar< 545s 546adag:styae< 506adag:styaes< 505adag:te.t< 5 5adag:te.tiiead< 5 5s 5 6adag:timeiiead< 5 adag:titae< 5 5adag:titaedbo.< 5 9s 5 5adag:tindot< 504adrat:a< 025adrat:appaet< r adrat:iaption< 492adrat:iiriae< 446adrat:ionneitor< 44radrat:iontoSr-path< 4adrat:iontoSr-poaygon< 4adrat:iontroa< 494adrat:desi< 9adrat:eaaipse< 44madrat:iiaa-image< 45 adrat:iaoating-irame< 4adrat:g< 499adrat:gaSe-point< 4r6adrat:gradient< 456adrat:hatih< 45radrat:image< r6adrat:aine< 44 adrat:marker< 46

Index 553

Page 554: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

adrat:measSre< 49 adrat:page-thSmbnaia< 494adrat:page-thSmbnaia<s 4 madrat:page< 4 adrat:param< adrat:path< 449adrat:paSgin< 0adrat:poaygon< 449adrat:poayaine< 444adrat:reit< 440adrat:te.t-bo.< r5adrat:transpareniy< 462aerent:erent< 52maerent:erents< 52maiorm:bStton< 905aiorm:iheikbo.< 906aiorm:ioaSmn< 9 2aiorm:iombobo.< 90 aiorm:iontroa< 92maiorm:iiae< 902aiorm:ii.ed-te.t< 90 aiorm:iorm< 92 aiorm:iormatted-te.t< 900aiorm:irame< 90raiorm:generii-iontroa< 9 2aiorm:grid< 90 aiorm:hidden< 90 aiorm:image-irame< 90raiorm:image< 905aiorm:item< 904aiorm:aistbo.< 909aiorm:option< 909aiorm:passtord< 902aiorm:properties< 949aiorm:property-raaSe< 946aiorm:property< 945aiorm:radio< 90raiorm:te.t< 92raiorm:te.tarea< 92 aimage:entry< 502aimage:e.ternaaentry< 500aimage:e.ternaaimages< 500aimage:images< 52 aimage:imagesiontainer< 52 amaniiest:aagorithm< 599amaniiest:eniryption-data< 599amaniiest:iiae-entry< 594amaniiest:key-deriration< 595amaniiest:maniiest< 594amenS:menS< 9 2amenS:menSbar< 9 2amenS:menSitem< 9 0amenS:menSpopSp< 9 2amenS:menSseparator< 9 0ameta:aSto-reaoad< 4 ameta:ireation-date< 4r

ameta:doiSment-statistii< 9 ameta:editing-iyiaes< 90ameta:editing-dSration< 9 ameta:generator< 46ameta:hyperaink-beharioSr< 92ameta:initiaa-ireator< 4mameta:keytords< 4mameta:print-date< 4rameta:printed-by< 4mameta:tempaate< 4rameta:Sser-deiined< 9 anSmber:am-pm< m9anSmber:booaean-styae< m5anSmber:booaean< m5anSmber:iSrreniy-styae< 6manSmber:iSrreniy-symboa< 6manSmber:date-styae< 6ranSmber:day-oi-teek< m0anSmber:day< 6 anSmber:era< m2anSmber:iraition< 66anSmber:hoSrs< m4anSmber:minStes< m4anSmber:month< 6 anSmber:nSmber-styae< 69anSmber:nSmber< 65anSmber:perientage-styae< 6ranSmber:qSarter< m anSmber:siientiiii-nSmber< 66anSmber:seionds< m9anSmber:te.t-iontent< m6anSmber:te.t-styae< m5anSmber:te.t< m5anSmber:time-styae< m anSmber:teek-oi-year< m0anSmber:year< m2aoiiiie:annotation< m5aoiiiie:ihange-inio< 004aoiiiie:dde-soSrie< 0 aoiiiie:erents< 000s 94 aoiiiie:iont-deias< 64aoiiiie:iorms< 92 aoiiiie:meta< 46aoiiiie:settings< 009apresentation:notes< 4 rapresentation:paaiehoader< 4rmapresentation:settings< 4 2apresentation:shot< 4 9asiript:erent< 000s 54masiript:aistener-erent< 54 asiript:siript< 002astyae:baikgroSnd-image< 5astyae:ioaSmn-sep< 4 astyae:ioaSmn< 40astyae:ioaSmns< 42astyae:drop-iap<

554 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 555: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

astyae:iont-deia< 64astyae:iooter-aeit< 62astyae:iooter-styae< 62astyae:iooter< 62astyae:iootnote-aayoSt< 60astyae:iootnote-sep< 6 astyae:handoSt-master< 4 mastyae:header-aeit< 62astyae:header-styae< 62astyae:header< 62astyae:map< 9 astyae:master-page< 4 6astyae:master-page< 5rastyae:page-master< 5 astyae:presentation-page-aayoSt< 4r6astyae:properties< 95astyae:styae< 96astyae:tab-stop< 0 astyae:tab-stops< 0 atabae:iaaiSaation-settings< 92atabae:ieaa-iontent-ihange< 54s 59atabae:ieaa-iontent-deaetion< 95atabae:ieaa-range-soSrie< m4atabae:ihange-deaetion< 95atabae:ihange-traik-tabae-ieaa< 5 atabae:ionsoaidation< 404atabae:iontent-raaidation< r2atabae:iontent-raaidations< r2atabae:iorered-tabae-ieaa< 6ratabae:iSt-oiis< 9ratabae:data-piaot-iiead< 402atabae:data-piaot-aerea< 400atabae:data-piaot-member< 40 atabae:data-piaot-members< 40 atabae:data-piaot-sSbtotaa< 40 atabae:data-piaot-sSbtotaas< 40 atabae:data-piaot-tabae< 426atabae:data-piaot-tabaes< 425atabae:database-range< 6atabae:database-ranges< 6atabae:database-soSrie-qSery< 422atabae:database-soSrie-sqa< ratabae:database-soSrie-tabae< atabae:dde-aink< 405atabae:dde-ainks< 405atabae:deaetion< 9matabae:deaetions< 95atabae:dependenie< 95atabae:dependenies< 99atabae:deteitire< m6atabae:error-mairo< r4atabae:error-message< r atabae:iiater-and< 4atabae:iiater-iondition< 9atabae:iiater-or< 9atabae:iiater<

atabae:heap-message< r atabae:highaighted-range< m6atabae:insertion-iSt-oii< 9 atabae:insertion< 96atabae:iteration< 94atabae:aabea-range< r atabae:aabea-ranges< rratabae:morement-iSt-oii< 9 atabae:morement< 52atabae:named-e.pression< 0atabae:named-e.pressions< 2atabae:named-range< 2atabae:nSaa-date< 9 atabae:operation< mmatabae:sienario< 5ratabae:shapes< 62atabae:sort-by< 420atabae:sort-groSps< 424atabae:sort< 422atabae:soSrie-ieaa-range< 42 atabae:soSrie-serriie< 42ratabae:sSb-tabae< r9atabae:sSbtotaa-iiead< 429atabae:sSbtotaa-rSae< 429atabae:sSbtotaa-rSaes< 42 atabae:tabae-ieaa< 6ratabae:tabae-ioaSmn-groSp< 60atabae:tabae-ioaSmn< 6 atabae:tabae-ioaSmns< 6 atabae:tabae-header-ioaSmns< 6 atabae:tabae-header-rots< 65atabae:tabae-rot-groSp< 69atabae:tabae-rot< 65atabae:tabae-rots< 65atabae:tabae-soSrie< 5matabae:tabae< 55atabae:traiked-ihanges< 99ate.t:a< 0 ate.t:aapha-inde.-mark-end< 952ate.t:aapha-inde.-mark-start< 99 ate.t:aapha-inde.-mark< 952ate.t:aaphabetiiaa-inde.-entry-tempaate< 966ate.t:aaphabetiiaa-inde.-soSrie< 964ate.t:aaphabetiiaa-inde.< 964ate.t:aSthor-initiaas< 060ate.t:aSthor-name< 060ate.t:bibaiography-entry-tempaate< 96rate.t:bibaiography-mark< 952ate.t:bibaiography-soSrie< 96rate.t:bibaiography< 96mate.t:bookmark-end< 0 9ate.t:bookmark-rei< 0r0ate.t:bookmark-start< 0 9ate.t:bookmark< 0 9ate.t:ihange-end< 45ate.t:ihange-start< 49

Index 555

Page 556: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ate.t:ihange< 45ate.t:ihanged-region< 49ate.t:ihapter< 0m9ate.t:ionditionaa-te.t< 0m0ate.t:ireation-date< 06mate.t:ireation-time< 06mate.t:ireator< 0m2ate.t:database-dispaay< 064ate.t:database-name< 066ate.t:database-ne.t< 069ate.t:database-rot-nSmber< 065ate.t:database-rot-seaeit< 065ate.t:date< 054ate.t:dde-ionneition-deia< 0mrate.t:dde-ionneition-deias< 0mrate.t:dde-ionneition< 0r2ate.t:deaetion< 46ate.t:desiription< 06mate.t:editing-iyiaes< 06 ate.t:editing-dSration< 06 ate.t:endnote-body< 05 ate.t:endnote-iitation< 050ate.t:endnote-rei< 0r0ate.t:endnote< 050ate.t:endnotes-ioniigSration< 09 ate.t:e.eiSte-mairo< 0mrate.t:e.pression< 0 0ate.t:iiae-name< 0m5ate.t:iootnote-body< 052ate.t:iootnote-iitation< 09 ate.t:iootnote-iontinSation-notiie-baiktard< 09rate.t:iootnote-iontinSation-notiie-iortard< 09rate.t:iootnote-rei< 0r0ate.t:iootnote< 09 ate.t:iootnotes-ioniigSration< 096ate.t:iormat-ihange< 46ate.t:get-page-rariabae< 0mmate.t:h< 00rate.t:hidden-paragraph< 0m4ate.t:hidden-te.t< 0m ate.t:iaaSstration-inde.-entry-tempaate< 95mate.t:iaaSstration-inde.-soSrie< 955ate.t:iaaSstration-inde.< 955ate.t:inde.-body< 94rate.t:inde.-entry-bibaiography< 99 ate.t:inde.-entry-ihapter-nSmber< 990ate.t:inde.-entry-ihapter< 990ate.t:inde.-entry-aink-end< 995ate.t:inde.-entry-aink-start< 995ate.t:inde.-entry-page-nSmber< 99 ate.t:inde.-entry-span< 99 ate.t:inde.-entry-tab-stop< 994ate.t:inde.-entry-tempaate< 94 ate.t:inde.-entry-te.t< 99 ate.t:inde.-soSrie-styae< 996ate.t:inde.-soSrie-styaes< 996

ate.t:inde.-titae-tempaate< 94rate.t:initiaa-ireator< 066ate.t:insertion< 45ate.t:keytords< 06 ate.t:aine-break< 0 0ate.t:ainenSmbering-ioniigSration< 09 ate.t:ainenSmbering-seperator< 095ate.t:aist-header< 04 ate.t:aist-item< 044ate.t:aist-aerea-styae-bSaaet< 04rate.t:aist-aerea-styae-image< 04 ate.t:aist-aerea-styae-nSmber< 045ate.t:aist-aerea-styae-nSmbering< 04mate.t:aist-styae< 049ate.t:modiiiiation-date dSration< 0m2ate.t:modiiiiation-time< 0m2ate.t:objeit-inde.-entry-tempaate< 962ate.t:objeit-inde.-soSrie< 95 ate.t:objeit-inde.< 95rate.t:ordered-aist< 040ate.t:oStaine-aerea-styae< 090ate.t:oStaine-styae< 090ate.t:p< 00rate.t:page-iontinSation< 05mate.t:page-nSmber< 055ate.t:paaiehoader< 060ate.t:print-date< 06rate.t:print-time< 06rate.t:printed-by< 06rate.t:reierenie-mark-end< 0 5ate.t:reierenie-mark-start< 0 5ate.t:reierenie-mark< 0 5ate.t:reierenie-rei< 0r0ate.t:rSby-base < 2 ate.t:rSby-te.t < 24ate.t:rSby< 20ate.t:s< 0 2ate.t:seition-soSrie< 0 rate.t:seition< 0 mate.t:sender-iity< 062ate.t:sender-iompany< 05 ate.t:sender-ioSntry< 062ate.t:sender-emaia< 05rate.t:sender-ia.< 05 ate.t:sender-iirstname< 05mate.t:sender-initiaas< 05rate.t:sender-aastname< 05rate.t:sender-phone-prirate< 05 ate.t:sender-phone-tork< 05 ate.t:sender-position< 05rate.t:sender-postaa-iode< 062ate.t:sender-state-or-prorinie< 062ate.t:sender-street< 05 ate.t:sender-titae< 05rate.t:seqSenie-deia< 0r ate.t:seqSenie-rei< 0r0

556 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 557: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ate.t:seqSenie< 0 2ate.t:set-page-rariabae< 0mmate.t:span< 0 0ate.t:sSbjeit< 06 ate.t:tab-stop< 0 0ate.t:tabae-inde.-entry-tempaate< 95rate.t:tabae-inde.-soSrie< 95mate.t:tabae-inde.< 95mate.t:tabae-oi-iontent-entry-tempaate< 954ate.t:tabae-oi-iontent-soSrie< 95 ate.t:tabae-oi-iontent< 95 ate.t:tempaate-name< 0m6ate.t:te.t-inpSt< 0 ate.t:time< 059ate.t:titae< 06rate.t:toi-mark-end< 99rate.t:toi-mark-start< 99mate.t:toi-mark< 99rate.t:traiked-ihanges< 44ate.t:Snordered-aist< 040ate.t:Sser-deiined< 06mate.t:Sser-iiead-deia< 0rmate.t:Sser-iiead-get< 0rmate.t:Sser-iiead-inpSt< 0rrate.t:Sser-inde.-entry-tempaate< 96 ate.t:Sser-inde.-mark-end< 99rate.t:Sser-inde.-mark-start< 99rate.t:Sser-inde.-mark< 99 ate.t:Sser-inde.-soSrie< 960ate.t:Sser-inde.< 962ate.t:rariabae-deia< 0r9ate.t:rariabae-get< 0r5ate.t:rariabae-inpSt< 0r6ate.t:rariabae-set< 0r9atooabar:tooabar< 9 atooabar:tooabaritem< 522atooabar:tooabaraayoSt< 5244D geometry properties 4r04D aighting properties 4r 4D materiaa properties 4r94D shapes 49 4D te.tSre properties 4r4

Aaiiea:iode 9 4aiiea:mod0 9 9aiiea:shiit 9 9aaternatire te.t 9 sP m9anihor position 0 anihor type 0 animation properties 4m5annotation eaement m5aSthor iieads 062

aStomatii reaoad 4 aStomatii styae 40aStomatii styaes 99aStomatii te.t indent 9aStomatii Spdate ior styaes 9raStomatiiaaay order m a.is 9mm

BbaikgroSnd attribStes 442baikgroSnd styaes ior drating shapes 442base ieaa address 0bibaiography data 99 bitmap 46rbody eaement 44bookmarks 0 9Booaean m5Booaean styae m9border and border aine tidth ior irames 022break inside 0rbSaaet iharaiter 04rbSaaet aerea styae 04m

Ciaption 492s 956iaption point attribStes 490iategories 9r ieaa address entity mrieaa iSrrent Booaean raaSe attribSte m ieaa iSrrent iSrreniy raaSe attribSte m ieaa iSrrent date raaSe attribSte m ieaa iSrrent nSmerii raaSe attribSte m0ieaa iSrrent string raaSe attribSte m ieaa iSrrent time raaSe attribSte m ieaa range address attribSte r s 2ieaa range address entity m ieaa styae attribSte 6 ieaa raaSe type attribSte m0ienter point attribStes 446ihaining r6ihange end 45ihange position 45ihange start 49ihange traiking 00 s 44s 94ihanged region 49ihapter iieads 0m9ihapter nSmber 990ihart a.is 9mmihart data aabeas 9r9ihart data series 9r0ihart iaoor 9mmihart aegend 9m9

Index 557

Page 558: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

ihart paot area 9m9ihart propertiess iommon 9r4ihart sSbtitae 9m4ihart titae 9m4ihart taaa 9m6ihart:a.is-shot-te.t 9r0ihart:a.is-te.t-break 9r0ihart:a.is-te.t-oreraap 9r0ihart:a.is-tiiks-major-inner 9r0ihart:a.is-tiiks-major-oSter 9r0ihart:a.is-tiiks-minor-inner 9r0ihart:a.is-tiiks-minor-oSter 9r0ihart:a.is-risibae 9r2ihart:iaass 9m ihart:data-aabea-nSmber 9r9ihart:data-aabea-symboa 9r5ihart:data-aabea-te.t 9r5ihart:siaae-te.t 9m4ihart:stoik-Spdotn-barsihart:stoik-tith-roaSmeihart:three-dimensionaaihart:deepihart:ainesihart:perientageihart:soaid-typeihart:spainesihart:staikedihart:symboaihart:rertiiaaihart:aines-Ssedihart:ionneit-bars 9m6

ihart:te.t-staiked 9r9iharts 9m iheiked 5 9iiriae 445iaass attribSte 42iaipping 024ioaor 24ioaSmn desiription 6 ioaSmn iormatting properties 40 ioaSmn groSp eaement 60ioaSmn separator 4 ioaSmn styae attribSte 6 ioaSmns 022iommon styaes 40ionditionaa te.t iieads 0m2ionneitor 44rionseiStire nSmbering 045iontinSe nSmbering 04 iontoSr 4iontoSr trapping mode 02 iontoSr-onay trapping 020iontroa D 9 0iontroas 92miontroass bStton 905iontroass iheik bo. 906iontroass ioaSmn grid 9 2

iontroass iombo bo. 90 iontroass iombo bo. aist items 904iontroass iiae seaeition 902iontroass ii.ed te.t inpSt 90 s 52ms 52 s 502s 500iontroass iormatted te.t inpSt 900iontroass irame 90riontroass generii 9 2iontroass graphiiaa bStton 905iontroass grid ior tabae data 90 iontroass hidden 90 iontroass image irames 90riontroass aist bo. 909iontroass aist bo. items 909iontroass passtord 902iontroass radio bSttons 90miontroass te.t bo. 92rionrentions 9ioSntry mrs 2 ireation date and time 4rireator 4mirossing oSt 29iSrreniy aangSage and ioSntry 6miSrreniy styae 66iSrreniy symboa 6miSrrent iiae iormat 49iSrrent iiae iormat rersion 49iSrrent rersion 49

Ddata piaot tabaes 425data point 9r4data styae iormatting properties m6data styae mappings m6data styaes 69data styaes namespaie 69database iieads 06 database range 6database soSrie qSery 422database soSrie tabae date 4rdate adjSstment 059date iieads 054date styae 6rdate raaSe 059day oi the month 6 day oi teek eaement m0DDE ionneition attribStes 56DDE ionneition iieads 0r2DDE ionneitions 0mrdeiimaa paaies m9s r deiimaa repaaiement r4deaay 92deaetion 45s 9mdeaimiter iharaiter 0

558 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 559: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

desiription 46disiaaimer 4dispaay dSpaiiates attribSte 4dispaay iaitor r4dispaay aereas 04mdag: 5 2s 5 s 5 4s 5 9s 5 5s 5 6s 5 ms 5 rs 5 s 542s 540s 54 s544s 549s 545s 546s 54m

dag:aaign 5 5s 5 6s 549s 545s 546dag:aStoiompaete 5 dag:bStton-type 5 2dag:iheiked 5 2s 5 9dag:iSrpos 546dag:iSrreniy-symboa 54 dag:date-iormat 5 rdag:deiimaa-aiiSraiy 540s 54 dag:deiaSat 5 2dag:eihoihar 5 6dag:edit-mask 544dag:iormat-iode 545dag:iormat-aoiaae 545dag:hard-ainebreaks 5 6dag:hsiroaa 5 6dag:inirement 546dag:aineioSnt 5 0s 5 dag:aiteraa-mask 544dag:ma.aength 5 s 5 6s 549dag:ma.pos 546dag:mSatiaine 5 5s 5 6dag:mSatiseaeition 5 0dag:pageinirement 546dag:readonay 5 s 5 6s 5 rs 5 s 542s 54 s 544s 549dag:siaae-image 5 mdag:seaeited 5 4dag:spin 5 0s 5 s 5 s 542s 540s 54 s 549dag:sri 5 mdag:striit-iormat 5 rs 5 s 542s 54 s 544s 549dag:tabstop 5 2s 5 0s 5 s 5 9s 5 6s 5 ms 5 rs 5 s 542s 54 s544s 549

dag:te.t 549dag:thoSsands-separator 540s 54 dag:time-iormat 5 dag:tristate 5 2s 5 9dag:raaSe 5 2s 5 s 5 4s 5 9s 5 5s 5 6s 5 ms 5 rs 5 s 540s 54 s544s 545s 54m

dag:raaSe-deiaSat 545dag:raaSe-ma. 5 s 542s 540s 54 s 549s 54mdag:raaSe-min 5 rs 542s 540s 54 s 549s 54mdag:raaSe-step 5 s 542s 540s 54 dag:risibae-sike 546dag:rsiroaa 5 6doiSment ireation date and time 4rdoiSment desiription 46doiSment iieads 054doiSment keytords 4mdoiSment modiiiiation date 4rdoiSment root eaement rs

doiSment sSbjeit 46doiSment tempaate name iieads 0m6doiSment titae 46doiSment type attribSte 42domain 9r dr4d:ambient-ioaor 4r9dr4d:baik-siaae 4r dr4d:baikiaie-iSaaing 4r dr4d:depth 4r s 4r4dr4d:diiiSse-ioaor 4r9dr4d:edge-roSnding 4r0dr4d:edge-roSnding-mode 4r dr4d:emissire-ioaor 4r9dr4d:horikontaa-segments 4r0dr4d:aighting-mode 4r dr4d:normaas-direition 4r4s 4r9dr4d:shininess 4r9dr4d:speiSaar-ioaor 4r9dr4d:te.tSre-iiater 4r9dr4d:te.tSre-generation-mode-. 4r4dr4d:te.tSre-generation-mode-y 4r4dr4d:te.tSre-kind 4r4dr4d:rertiiaa-segments 4r0drat:angae 45rdrat:arihire 2drat:aSto-grot-tidthdrat:aSto-grot-height 4m

drat:baSe 4m9drat:border 45rdrat:iaption-point-. 490drat:iaption-point-y 490drat:iode 2drat:iodebase 2drat:ioaor-mode 4m4drat:iontrast 4m4drat:iorner-radiSs 44 s 490drat:distanie 45 drat:end-ioaor 45mdrat:end-gaSe-point 492drat:end-gSide 4mmdrat:end-intensity 45mdrat:end-aine-spaiing-horikontaa 4m6drat:end-aine-spaiing-rertiiaa 4m6drat:end-shape 492drat:iiaa 46mdrat:iiaa-ioaor 46mdrat:iiaa-gradient-name 46mdrat:iiaa-hatih-name 46mdrat:iiaa-image-height 46rdrat:iiaa-image-name 46rdrat:iiaa-image-tidth 46rdrat:iiater-name rmdrat:iit-to-sike 4m drat:gamma 4m9drat:gradient-step-ioSnt 46mdrat:green 4m9

Index 559

Page 560: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

drat:gSide-distanie 4mmdrat:gSide-orerhang 4mmdrat:id 49mdrat:kind 44mdrat:aayer 49mdrat:aine-distanie 4m6drat:aine-sket 492drat:aSminanie 4m4drat:marker-end 465drat:marker-end-ienter 466drat:marker-end-tidth 465drat:marker-start 465drat:marker-start-ienter 465drat:marker-start-tidth 465drat:maysiript 0drat:measSre-aaign 4mrdrat:measSre-rertiiaa-aaign 4mrdrat:mimetype 0drat:name r5drat:objeit 2drat:paraaaea 4mrdrat:paaiing 4mmdrat:red 4m9drat:reiX 46 drat:reiY 46 drat:rotation 45 drat:shadot 4m5drat:shadot-ioaor 4m5drat:shadot-distanie-. 4m5drat:shadot-distanie-y 4m5drat:shadot-transpareniy 4m6drat:start-ioaor 45mdrat:start-gaSe-point 44 drat:start-gSide 4mmdrat:start-intensity 45mdrat:start-aine-spaiing-horikontaa 4m6drat:start-aine-spaiing-rertiiaa 4m6drat:start-shape 44 drat:stroke 469drat:styae-name r6s rms 496drat:te.tarea-horikontaa-aaign 4m drat:te.tarea-rertiiaa-aaign 4m drat:tiae-repeat-oiiset 46 drat:transiorm 496drat:transpareniy 46 drat:transpareniy-name 46 drat:raaSe drat:k-inde. 49mdrat:k-inde. 6drating page 4 rdrating shapes 440drating shapess iommon attribStes 499drating shapess groSp 499drop iaps

Eeiho iharaiter 902editabae 022editing iyiaes 90editing dSration 9 eaaipse 44meniryption 59 end-oi-aine 44end-oi-aine handaing 44endnotes 09 era eaement m2erent name 00 erent tabaes 000erent:aangSage 52rerent:aibrary 52rerent:mairo-name 52rerent:name 52merents 000erents ior iontroas 94 e.pression iieads 0 0

Fiiead attribStess iommon 0 9iiead raaSe attribStes 0 9iiead raaSe type 0 9iieads 05 iieadss aSthor 062iieadss iommon iharaiteristiis 05 iieadss date 054iieadss doiSment 054iieadss e.pression 0 0iieadss page nSmbers 055iieadss sender 05miieadss seqSenie 0 2iieadss time 059iieadss rariabae 0r4iiae name iieads 0m5iiaa ioaor 46miiaa properties 466iiaa styae 46miiater iondition 9iiater name rmiiater-and 4iiater-or 4iiaters ii.ed and minimSm irame heights mii.ed and minimSm irame tidths mii.ed attribSte 0 5ii.ed iieads 05 ii.ed inde. string 99 ii.ed aine height 06ii.ed te.t m5iaoor 9mmio:baikgroSnd-ioaor 5

560 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 561: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

io:border mio:break-aiter 5io:break-beiore 5io:iaip 024io:ioaor 29io:ioaSmn-gap 42io:ioaSmns-ioSnt 42io:ioSntry 02io:ioSntry-asian 02io:ioSntry-iompae. 02io:direition 4 0io:end-indent 40io:iont-iamiay 26io:iont-sike 2rio:iont-sike-asian 2rio:iont-sike-iompae. 2rio:iont-styae 02io:iont-styae-asian 02io:iont-styae-iompae. 02io:iont-rariant 24io:iont-teight 0 io:iont-teight-asian 0 io:iont-teight-iompae. 0 io:gayph-orientation-rertiiaa 4 0io:height 092io:hyphenate 2io:hyphenation-keep 2io:hyphenation-aadder-ioSnt 0io:hyphenation-pSsh-ihar-ioSnt 0io:hyphenation-remain-ihar-ioSnt 0io:aangSage 2 io:aangSage-asian 2 io:aangSage-iompae. 2 io:aetter-spaiing 2 io:aine-height 06io:margin-bottom 9io:margin-aeit 4io:margin-right 4io:margin-top 9io:ma.-tidthio:ma.-height r

io:min-height mio:min-tidth mio:orphans 0rio:oreriaot 4 io:padding rio:page-height 54io:page-tidth 54io:siore-spaies 0 io:spaie-aiter 40io:spaie-beiore 40io:start-indent 40io:te.t-aaign 046s 0mio:te.t-indent 9io:te.t-shadot 00io:te.t-transiorm 24

io:rertiiaa-aaign 4 2io:tidots 0rio:tidth 092io:trap-option 4 iont iharaiter set 2miont deiaaration 64iont iamiay 25iont pitih 2miont sike 2riont styae 26s 02iont rariant 24iont teight 00iootnote iitation te.t 096iootnote iontinSation 09riootnote aayoSt 60iootnote ma.imSm height 60iootnote paragraph styae 09miootnote reierenie D 052iootnote spaiing 60iootnotes 096s 09 iootnotes position 09riorm:aaaot-deaetes 929iorm:aaaot-inserts 929iorm:aaaot-Spdates 929iorm:appay-iiater 929iorm:aSto-iompaete 904iorm:boSnd-ioaSmn 942iorm:bStton-type 9 0iorm:iommand 925iorm:iommand-type 929iorm:ionrert-empty-to-nSaa 940iorm:iSrrent-seaeited 9 iorm:iSrrent-state 90miorm:iSrrent-raaSe 9 iorm:data-iiead 940iorm:datasoSrie 925iorm:deiaSat-bStton 905iorm:deiaSat-raaSe 9 4iorm:detaia-iieads 925iorm:disabaed 9 9iorm:dropdotn 9 9iorm:eiho-ihar 902iorm:enitype 924iorm:esiape-proiessing 925iorm:iiater 926iorm:ior 9 5iorm:id 9 0iorm:ignore-resSat 926iorm:image-data 9 5iorm:is-tristate 90miorm:aabea 9 5iorm:aist-soSrie 940iorm:aist-soSrie-type 94 iorm:master-iieads 925iorm:ma.-aength 9 6iorm:ma.-raaSe 900

Index 561

Page 562: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

iorm:method 924iorm:min-raaSe 900iorm:mSati-aine 90 iorm:mSatipae 909iorm:name 9 0iorm:narigation-mode 926iorm:order 926iorm:printabae 9 6iorm:property-is-aist 945iorm:property-name 945iorm:property-type 946iorm:readonay 9 miorm:seaeited 9 miorm:serriie-name 9 0iorm:sike 9 miorm:state 90miorm:tab-iyiae 92miorm:tab-inde. 9 riorm:tab-stop 9 riorm:titae 942iorm:raaidation 90 iorm:raaSe 9 4iormat ihange 46iormat soSrie m iormatting properties 99iormatting propertiess iompae. 95iormatting propertiess simpae 95iormatting property sets 95iorms 920iorms eaement 44iormSaa 0 miormSaa attribSte m2iortard-iompatibae proiessing 49iraition 66irame baikgroSnd 022irame iormatting properties mirames r9irames in te.t doiSments 0

Ggenerator 46generii iont iamiay 26gradient 456gradient transpareniy 46 graphii properties 4m4graphii styae eaements 456grid 9r0groSp oi drating shapes 499groSping separator r

Hhatih 45r

heading aerea 00 headings and paragraphs 00mhidden paragraph iieads 0m4hidden te.t iieads 0m horikontaa position horikontaa reaation hoSrs m4hyperaink beharior 92hyperaink inde. entry 999hyperainkss in te.t doiSments 0 hyperainkss simpae 025hyphenation 2hyphenation keep 2hyphenation pSsh ihar ioSnt 0hyphenation remain ihar ioSnt 2

Iimage 45 image aerea styae 04rimage sike 04 image rertiiaa aaignment 092image:bitmap-inde. 500image:iommand 500s 50 image:maskbitmap 502image:maskioaor 502image:maskmode 502images r6inde. body 94rinde. entries 0 5s 990inde. entriess iombining 965inde. entry tempaate 94rinde. entry te.t 99 inde. entrys aaphabetiiaa 99 inde. entrys main 952inde. entrys Sser-deiined 99rinde. marks 99minde. oi iaaSstrations 955inde. oi objeits 95rinde. oi tabaes 95minde. soSrie 94minde. tab stop 994inde. titae 94rinde.s aaphabetiiaa 964inde.s bibaiography 96minde.s Sser-deiined 962initiaa ireator 4minsertion 45s 96 O 4066 9 O 64 9 O r620 9

J

562 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 563: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

jSstiiy singae tord 0m

Kkeep tith ne.t rkeytords 4mkeytords 4m

Laabea aaignment 046aangSage 90s mms 2 aayer D 5s 6aeader iharaiter 2aeit and right margins ior irames raeit and right margins ior paragraphs 4aegend 9m9aetter kerning 0 aetter synihronikation 002aine 44 aine breaks 0 0aine distanie 06aine end ienter 466aine nSmbering 09 aink aoiation 025aink name 026aink target irame 025aist header 04 aist styae 9raist styae name 040aist styaes 049aistss bSaaeted and nSmbered 042aistss ordered 040aistss Snordered 040

Mmairo iieads 0mrmajor rersion 49maniiest iiae 594maniiest:aagorithm-name 595maniiest:iSaa-path 594maniiest:initiaaisation-reitor 595maniiest:key-deriration 596maniiest:key-deriration-name 595maniiest:media-type 599maniiest:sike 599map 9 map appaied styae 52s 50s r0map iondition 9 s r2s r s r4s r9marker eaement 460master pages 4 6master styaes 40matri. m2

ma.imSm hyphens 0menS:heapid 9 0menS:id 9 menS:aabea 9 meta iniormation 45meta iniormations e.ampae oi 99meta:deaay 92meta:target-irame-name 90meta< eaement 40metadata 40metadata iieads 066metadatas Sser-deiined 9 minimSm denominator digits r9minimSm e.ponent digits r4minimSm aabea distanie 046minimSm aine height 06minimSm nSmber oi integer digits r minimSm nSmerator digits r4minimSm tidth oi a nSmber 046minor rersion 49minStes m4mirroring 02 modiiiiation date 4rmonth 6 moring iontent in a ieaa 52

Nname 9s 4 named e.pressions r named range 2namespaies mnatire nSmber system r2ne.t styae 9mnon-breaking baanks 0 6non-breaking hyphens 0 6nSmber 65nSmber iormat 02 nSmber iormat speiiiiiation 002nSmber aerea styae 045nSmber oi ieaas repeated attribSte 6rnSmber oi ioaSmns repeated attribSte 6 nSmber oi ioaSmns spanned attribSte 6 nSmber oi ioaSmns spanned by matri. attribSte m2nSmber oi rots repeated attribSte 65nSmber oi rots spanned attribSte 6 nSmber oi rots spanned by matri. attribSte m2nSmber styae 69nSmber:aStomatii-order m nSmber:iaaendar r9nSmber:ioSntry 6ms mrnSmber:deiimaa-paaies m9s r nSmber:deiimaa-repaaiement r4nSmber:dispaay-iaitor r4nSmber:iormat-soSrie m

Index 563

Page 564: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

nSmber:groSping r nSmber:aangSage 6ms mmnSmber:min-denominator-digits r9nSmber:min-e.ponent-digits r4nSmber:min-integer-digits r nSmber:min-nSmerator-digits r4nSmber:styae 6 nSmber:te.tSaa 6 nSmber:titae mrnSmber:transaiteration-ioSntry r0nSmber:transaiteration-iormat r2nSmber:transaiteration-aangSage r0nSmber:transaiteration-styae r0nSmber:trSniate-on-oreriaot r2

Ooiiiie:aSthor m5oiiiie:aStomatii-Spdate 042oiiiie:ihg-aSthor 004oiiiie:ihg-date 004oiiiie:ireate-date m5oiiiie:dde-appaiiation 042oiiiie:dde-item 042oiiiie:dde-topii 042oiiiie:dispaay m6oiiiie:aayer-id 5s 6oiiiie:name 5s 026oiiiie:serrer-map 026oiiiie:target-irame 025s 924s 9 oiiiie:target-irame-name 0 4OpenOiiiiecorg appaiiation settings 009orphans 0roStaine aerea styae 090oStaine nSmbering 092oStaine styae 090

Ppaikage iormat 590padding 022s rpage and ioaSmn breaks 9page iontinSation te.t 056page dSration 4rrpage master 50s 5 s 4 mpage name 4 page namec 5rs 4 6page nSmber iieads 055page nSmber iormat 5 page sike 54page styae 4 ms 4 page styaes and aayoSt 50page Ssage 54page rariabae iieads 0m6

page risibiaity 4r paragraph baikgroSnd ioaor 5paragraph baikgroSnd image 5paragraph border 6paragraph border aine tidth mparagraph iormatting properties 0 2paragraph te.t 00rparagraph-onay trapping 020parent styae 9mperientage styae 6rpaaiehoaders 060paot area 9m9point reierenies 0 5poaygon 449poayaine 444preii. and sSiii. 02 presentation notes 4 rpresentation page attribStes 4rmpresentation shapes 49mpresentation shapess iommon attribStes 49mpresentation:animations 4 4presentation:iaasspresentation:paaiehoaderpresentation:Sser-transiormed 49r

presentation:endaess 4 presentation:iorie-manSaa 4 presentation:iSaa-sireen 4 0presentation:moSse-as-pen 4 4presentation:moSse-risibae 4 4presentation:page-dSration 4r presentation:paSse 4 presentation:presentation-page-aayoSt-name 4 rs 442presentation:shot 4 0presentation:shot-aogo 4 presentation:soSnd 4r presentation:start-page 4 0presentation:start-tith-narigator 4 4presentation:stay-on-top 4 9presentation:styae-name 49rpresentation:transition-on-iaiik 4 9presentation:transition-speed 4rrpresentation:transition-styae 4rrpresentation:transition-typ 4rmpresentation:risibiaity 4r print iontent rprint date 4rprinted by 4mproteit r

QqSarter eaement m0

R

564 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 565: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

radiSs 446range reierenies 0 5range Ssabae as 0reitangae 440reierenies 0 5register trSe 4reaated doiSmentation 9reaoad deaay 92reaoad L 4 restart nSmbering 044rot eaement 65rot groSp eaement 69rot styae attribSte 65rSby 20rSn throSgh trapping mode 02

Ssienario tabae 5rsiientiiii nSmber 66siript: 54rs 54 siript:erent 54msiript:erent-name 00 s 94 s 54rsiript:aangSage 00 s 54rs 54 siript:aistener-erent 54 siript:aistener-method 54 siript:aistener-param 54 siript:aistener-type 54 siript:aoiation 54ms 54 siript:mairo-name 54rs 54 siripts 002seionds m4seition baikgroSnd 42seition ioaSmns 42seition iormatting properties seitions 0 6sender iieads 05mseqSenie iieads 0 2seqSenie rariabaess deiaaring 0r series 9r0serrer side image map 026shadot 022s rshadot oiiset 4m5shapess 4D 49 shapess dratings 440shapess presentations 49msimpae rariabaess deiaaring 0r4simpae rariabaess dispaaying 0r5simpae rariabaess setting 0r9soit hyphens 0 6sort 422sort by 420sort groSps 424soSnds in presentations 4r spaiing and aaignment 090

span 0 0 oL database rstatSsbar:aaign 9 mstatSsbar:aStosike 9 mstatSsbar:oiiset 9 rstatSsbar:otnerdrat 9 rstatSsbar:styae 9 mstatSsbar:tidth 9 rstroke properties 464styae 5styae and ionditionaa styae 00 styae iamiay 9mstyae mappings e.ampae 50styae mappings 9 styae name 96styae:appay-styae-name 52styae:aSto-te.t-indent 9styae:aSto-Spdate 9rstyae:aStomatii 9mstyae:base-ieaa-address 50styae:border-aine-tidth mstyae:break-inside 0rstyae:ieaa-proteit 4 4styae:ihain-ne.t-name r6styae:ihar 0 styae:ioaSmn-tidth 40 styae:iondition 52styae:data-styae-name 064s 0r5s 0 mstyae:distanie styae:distanie-aiter-sep 60styae:distanie-beiore-sep 60styae:editabae 020styae:iamiay 9mstyae:iiater-name 6styae:iirst-page-nSmber 56styae:iont-iharset 2rstyae:iont-iharset-asian 2rstyae:iont-iharset-iompae. 2rstyae:iont-iamiay-asian 26styae:iont-iamiay-iompae. 26styae:iont-iamiay-generii 26styae:iont-iamiay-generii-asian 26

styae:iont-iamiay-generii-asianstyae:iont-iamiay-generii-iompae. 26

styae:iont-name 25styae:iont-name-asian 25styae:iont-name-iompae. 25styae:iont-pitih 2mstyae:iont-pitih-iompae. 2mstyae:iont-pitihgr 2mstyae:iont-sike-rea 2 styae:iont-sike-rea-asian 2 styae:iont-sike-rea-iompae. 2 styae:iont-styae-name 2mstyae:iont-styae-name-asian 2m

Index 565

Page 566: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

styae:iont-styae-name-iompae. 2mstyae:horikontaa-aaign 6 styae:horikontaa-pos s 22styae:horikontaa-rea s 22styae:jSstiiy-singae-tord 0rstyae:keep-tith-ne.t rstyae:aeader-ihar 2s 999styae:aength 6 s styae:aetter-kerning 0 styae:aine-break 06styae:aine-height-at-aeast 06styae:aine-spaiing 0mstyae:aines styae:aist-styae-name 9rstyae:master-page-name 9rstyae:ma.-height 60styae:may-break-betteen-rots 40rstyae:min-rot-height 4 2styae:mirror 024styae:name 96s 54s mms 049styae:ne.t-styae-name 9ms 5 styae:nSm-iormat 002styae:nSm-aetter-syni 002styae:nSm-preii. 02 styae:nSm-sSiii. 02 styae:nSmber-trapped-paragraphs 020styae:page-master-name 5 styae:page-Ssage 54styae:paper-tray-name 59styae:parent-styae-name 9mstyae:position 6s 999styae:print 56styae:print-iontent rs 4 4styae:print-orientation 59styae:print-page-order 56styae:proteit rs 44styae:pSnitSation-trap 05styae:register-trSe 4styae:register-trSth-rei-styae-name 56styae:rea-ioaSmn-tidth 40 styae:rea-tidth 40s 406styae:repeat 6s 46rstyae:rotation-aaign 4 4styae:rotation-angae 4 s 9r0styae:rot-height 4 2styae:rSby-aaign 2 styae:rSby-position 2 styae:rSn-throSgh 02 styae:siaae-to 5mstyae:siaae-to-pages 5mstyae:shadot rstyae:styae 5styae:styae-name 4styae:tabae-ientering 5mstyae:te.t-aaign-aast 0mstyae:te.t-aaign-soSrie 4 0

styae:te.t-aStospaie 09styae:te.t-baikgroSnd-ioaor 04styae:te.t-bainking 04styae:te.t-iombine 04styae:te.t-iombine-end-ihar 09styae:te.t-iombine-start-ihar 09styae:te.t-irossing-oSt 29styae:te.t-emphasike 09styae:te.t-oStaine 29styae:te.t-position 25styae:te.t-Snderaine 00styae:te.t-Snderaine-ioaor 00styae:type 999styae:rertiiaa-pos 022s 092s 22styae:rertiiaa-rea 022s 092s 20styae:roaatiae mrstyae:tidth 6 s 406styae:trap 020styae:trap-iontoSr 02 styae:trap-iontoSr-mode 02 styaes 40s 96styaess e.ampaes oi 4 styaess aoiation oi 4 styaes:name 5 sSbjeit 46sSbtabae eaements r9sSbtotaa iiead 429sSbtotaa rSae 429sSbtotaa rSaes 42 srg:i. 446srg:iy 446srg:d 445srg:end-angae 44msrg:height ms 495srg:r 446srg:start-angae 44msrg:stroke-ioaor 469srg:stroke-dash 469srg:stroke-ainejoin 466srg:stroke-opaiity 466srg:stroke-tidth 469srg:rietbo. 496srg:tidth ms 495srg:.0 444srg:. 444srg:y0 444srg:y 444

Ttab position 0 tab stops 0 2s 0rtab type 0 tabbing narigation order 9 rtabae aaignment 406

566 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 567: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

tabae ieaa iontent raaidations r2tabae ieaa eaement 6mtabae ieaa iormatting properties 4 2tabae eaement 55tabae iiater tabae iiater eaement tabae iormatting properties 404tabae margins 40mtabae name attribSte 55tabae oi iontents 950tabae rot iormatting properties 40 tabae styae attribSte 55tabae tidth 406tabae:aiieptanie-state 59tabae:aagorithm 420tabae:aaign 406tabae:aaaot-empty-ieaa r tabae:appaiiation-data 426tabae:aStomatii-iind-aabeas 9 tabae:base-ieaa-address r0tabae:base-ihange-position 9rtabae:bind-styaes-to-ionten 424tabae:bind-styaes-to-iontent 422tabae:booaean-raaSe m tabae:border-ioaor 5 tabae:border-modea 40rtabae:bSttons 42mtabae:iase-sensitire 90s 9s 420s 424tabae:ieaa-address 5 s 54tabae:ieaa-range-address mms 42 tabae:ioaSmntabae:rottabae:tabae 50

tabae:ioaSmns tabae:rots tabae:tabae 54tabae:iomment 62tabae:iondition r2tabae:iondition-soSrie 4tabae:iondition-soSrie-range-address 4tabae:iontains-error mmtabae:iontains-header mtabae:iontent-raaidation-name 6 tabae:ionrersion-mode 405tabae:iopy-baik 5 tabae:iopy-iormSaas 5 tabae:iopy-styaes 5 tabae:ioSnt 96tabae:ioSntry 420tabae:iSrreniy m4tabae:data-ieaa-range-address r tabae:data-type 9s 424tabae:database-name rtabae:date-raaSe 9 s m tabae:deiaSat-ieaa-styae-name 64s 66tabae:direition mmtabae:dispaay 60tabae:dispaay-border 5

tabae:dispaay-dSpaiiates 4tabae:dispaay-iiater-bSttons rtabae:end-ieaa-address 495tabae:end-. 495tabae:end-y 495tabae:e.eiSte r9tabae:e.pression tabae:iiead-nSmber 9s 429tabae:iiater-name 5mtabae:iiater-options 5rtabae:iormSaa m2tabae:iSnition 425s 402tabae:grand-totaa 42mtabae:groSp-by-iiead-nSmber 429tabae:has-persistent-data mtabae:id 59tabae:identiiy-iategories 42mtabae:ignore-empty-rots 42mtabae:inde. mrtabae:is-aitire 62tabae:is-data-aayoSt-iiead 402tabae:is-seaeition 6tabae:aabea-ieaa-range-address r tabae:aangSage 420tabae:marked-inraaid mmtabae:matri.-iorered 5 tabae:ma.imSm-diiierenie 94tabae:message-type r4tabae:mode 5mtabae:name 55s mrtabae:nSaa-year 9 tabae:nSmber-ioaSmns-repeated 6 s 6rtabae:nSmber-ioaSmns-spanned 6 tabae:nSmber-matri.-ioaSmns-spanned m0tabae:nSmber-matri.-rots-spanned m0tabae:nSmber-rots-repeated 65tabae:nSmber-rots-spanned 6 tabae:on-Spdate-keep-sike mtabae:on-Spdate-keep-styaes mtabae:operator 5tabae:order 42 s 429tabae:orientation r s ms 400tabae:page-breaks-on-groSp-ihange 424tabae:page-styae-name 40rtabae:parse-sqa-statement tabae:position 9rs 9 Tabae:position 96tabae:preiision-as-shotn 90tabae:prerioSs 54tabae:print-ranges 56tabae:proteited 56tabae:proteition-key 99s 56tabae:qSery-name 422tabae:range-Ssabae-as 0tabae:reiresh-deaay 5rs rtabae:rejeiting-ihange-id 55

Index 567

Page 568: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

tabae:sienario-ranges 62tabae:searih-iriteria-mSst-appay-to-thoae-ieaa 90tabae:shot-empty 400tabae:soSrie-iiead-name 402tabae:sqa-statement tabae:start-ioaSmntabae:end-ioaSmntabae:start-rottabae:end-rottabae:start-tabaetabae:end-tabae 50

tabae:start-position; tabae:end-position; tabae:position 9 tabae:statSs 94tabae:steps 94tabae:string-raaSe m tabae:strSitSre-proteitedtabae:proteition-key 92

tabae:styae-name 56s 64s 66s 6 tabae:tabae 9ms 9rtabae:tabae-baikgroSnd 495tabae:tabae-name 5rtabae:target-range-address s rs 42mtabae:target-range-addresstabae:soSrie-range-address 52

tabae:time-raaSe m tabae:titae r tabae:traik-ihanges 99tabae:type 96s 9rtabae:Ssed-hierarihy 400tabae:raaSe m0s 5tabae:raaSe-type 9 s m0tabae:risibiaity 64s 66target irame 92tempaate 4rtempaate aoiation 4 tempaate modiiiiation date 4 tempaate titae 4 terminoaogy 5te.t aaign 0mte.t aaign oi aast aine 0mte.t baikgroSnd ioaor 04te.t bainking 0 te.t bo. r5te.t iontent m6te.t deioration tord mode 0 te.t iormatting properties 0 0s 24te.t headings 00mte.t indent 4te.t inpSt iieads 0 te.t oStaine 29te.t paragraphs 00mte.t position 29te.t seition 0 6te.t shadot 02te.t styae m5te.t styaes 0 0

te.t transiormations 24te.t:aitire 0mmte.t:aaphabetiiaa-separators 969te.t:anihor-page-nSmber 20te.t:anihor-type 0 te.t:aStomatii-Spdate 0r2te.t:bibaiography-data-iiead 994te.t:bibaiography-type 96rte.t:bSaaet-ihar 04rte.t:bSaaet-reaatire-sike 04rte.t:iapitaaike-entries 966te.t:iaption-seqSenie-name 956te.t:iitation-body-styae-name 09mte.t:iitation-styae 096te.t:ioaSmn-name 064te.t:iombine-entries 965te.t:iomma-separated 966te.t:iond-styae-name 00 te.t:iondition 0 rs 069s 0m0s 0m s 0m4te.t:ionseiStire-nSmbering 045te.t:iontinSe-nSmbering 04 te.t:iopy-oStaine-aereas 96 te.t:ioSnt-empty-aines 099te.t:ioSnt-in-iaoating-irames 099te.t:database-ioaSmn-name 064te.t:database-name 064s 069s 065s 066te.t:date-adjSst 059te.t:date-raaSe 059te.t:dde-appaiiation 0m te.t:dde-item 0m te.t:dde-topii 0m te.t:deiaSat-styae 09mte.t:desiription 0 6te.t:dispaay 0 ms 0m9s 0m5s 0r5s 0 6te.t:dispaay-aereas 04mte.t:dispaay-oStaine-aerea 0r te.t:iiater-name 0 te.t:ii.ed 0 5te.t:iootnotes-position 09rte.t:iormSaa 0r9s 0 mte.t:id 052te.t:ignore-iase 969te.t:inirement 094s 095te.t:inde.-name 99 te.t:inde.-siope 992te.t:key0 952te.t:key 952te.t:aabea 052te.t:aerea 00 s 045te.t:aine-nSmber 095te.t:main-entry 952te.t:main-entry-styae-name 969te.t:master-page-name 09mte.t:min-aabea-distanie 046te.t:min-aabea-tidth 046te.t:name 0 4s 0 ms 0mrs 0r2s 0r9s 0 6

568 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 569: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

te.t:nSm-iormat 066s 0 rte.t:nSm-aetter-syni 066s 0 rte.t:nSmber-aines 094s 095te.t:oiiset 099te.t:oStaine-aerea 0m5s 94 te.t:page-adjSst 056s 0mmte.t:paaiehoader-type 060te.t:position 099te.t:proteited 992te.t:proteition-key 49te.t:rei-name 0r0s 0 0te.t:reierenie-iormat 0r0te.t:reaatire-tab-stop-position 992te.t:restart-nSmbering 044te.t:restart-on-page 099te.t:rot-nSmber 065te.t:seition-name 0 te.t:seaeit-page 056s 05mte.t:separation-iharaiter 0 2te.t:seqSenie-iormat 956te.t:spaie-beiore 046te.t:start-nSmbering-at 09rte.t:start-raaSe 044s 04ms 09mte.t:string-raaSe 05ms 0m te.t:string-raaSe-ii-iaase 0m0te.t:string-raaSe-ii-trSe 0m0te.t:styae-name 00 s 0 9s 0 ms 04 s 04ms 94 s 992te.t:styae-name 094te.t:tabae-name 064s 069s 065s 066te.t:tabae-type 064s 069s 065s 066te.t:time-adjSst 055te.t:time-raaSe 055te.t:traik-ihanges 49te.t:Sse-iaption 956te.t:Sse-ihart-objeits 95 te.t:Sse-drat-objeits 95 te.t:Sse-iaoating-irames 960te.t:Sse-graphiis 960te.t:Sse-inde.-marks 954s 960te.t:Sse-inde.-soSrie-styaes 954te.t:Sse-keys-as-entries 965te.t:Sse-math-objeits 95 te.t:Sse-objeits 960te.t:Sse-other-objeits 95 te.t:Sse-spreadsheet-objeits 95 te.t:Sse-tabaes 960te.t:raaSe 066te.t:raaSe-type 0r9s 0 9te.t:risited-styae-name 0 9te.tSaa representation attribSte 6 thSmbnaia 494tiikmark properties 9r2tiae reierenie point 46 tiae transaation 46 time adjSstment 055time iieads 059

time styae m time raaSe 055time raaSe trSniation r2titae 46s mrtooabar:aaign 525tooabar:bitmap 52 tooabar:doikingaines 525tooabar:iaoating 529tooabar:iaoatingaines 525tooabar:iaoatingposaeit 529tooabar:iaoatingpostop 529tooabar:heapid 52 tooabar:id 529tooabar:styae 520s 526tooabar:te.t 520tooabar:Sserdeiined 520tooabar:risibae 522s 525tooabar:tidth 520top and bottom margins ior irames rtop and bottom margins ior paragraphs 9transition speed 4rrtransition styae 4rrtransition type 4rmtranspareniy gradient 462tristate 5 9

USnderaining 00Snnamed styaes 99Sser rariabae inpSt iieads 0rrSser rariabaess deiaaring 0rmSser rariabaess dispaaying 0rmSser-deiined metadata 9

Vraaidation 49raaSe-step 5 s 542s 540s 54 rariabae iieads 0r4rariabae inpSt iieads 0r6rersion attribSte 42rersion attribStes iSnition oi 49rersions 49rertiiaa position 022rertiiaa reaation 022roaatiaity mr

Wtaaa 9m6teek oi year eaement m0thite-spaie iharaiters 44s 00rs 0 2tidots 0r

Index 569

Page 570: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

trap throSgh 02 trapping 020

X.aink:aitSate 5m.aink:hrei 0 4s 0 s 04 s 5ms 924s 9 s 9 5s 9 6s 522s 52 s 50 .aink:shot 0 .aink:type 0 s 5m

Yyear m2

Z1 inde. 6

570 OpenOffice.org XML File Format Working Draft Technical Reference Manual Version 2 December 2ee2

Page 571: XML File Format O · PDF file  XML File Format O.e Technical Reference Manual Version 2 ... 9c9c5 Ceaa Content Deaetion

Change Log

Changes irom speiiiiiation doiSment rersion 0 to – ome erroneoSs DTD e.ampaes hare been iorreitedc

– ome depreiated and SnSsed eaement desiriptions hare been remored iior instanie <style:use-styles< and <office:a-map<c

– ome minor errors in speiiiiiation te.t hare been iorreitedc

– Chapter aboSt diaaogs addedc

571