Open Document Format for Office Applications...

706
Open Document Format for Office Applications (OpenDocument) v1.0 OASIS Standard, 1 May 2005 Document identifier: OpenDocument-v1.0-os.sxw Location: http://docs.oasis-open.org/office/v1.0 Editors: Michael Brauer, Sun Microsystems <[email protected]> Patrick Durusau, Society of Biblical Literature <[email protected]> Gary Edwards <[email protected]> David Faure, <[email protected]> Tom Magliery, Blast Radius <[email protected]> Daniel Vogelheim, Sun Microsystems <[email protected]> Contributors: Doug Alberg, Boeing <[email protected]> Simon Davis, National Archive of Australia <[email protected]> Paul Grosso, Arbortext <[email protected]> Phil Boutros, Stellent <[email protected]> John Chelsom, CSW Informatics <[email protected]> Jason Harrop <[email protected]> Mark Heller, New York State Office of the Attorney General <[email protected]> Paul Langille, Corel <[email protected]> Monica Martin, Drake Certivo <[email protected]> Uche Ogbuji <[email protected]> Lars Oppermann, Sun Microsystems <[email protected]> Lauren Wood <[email protected]> Abstract: This is the specification of the Open Document Format for Office Applications (OpenDocument) format, an open, XML-based file format for office applications, based on OpenOffice.org XML [OOo]. Status: This document was last revised or approved by the membership of OASIS on the above date. The level of approval is also listed above. Check the current location noted above for possible later revisions of this document. This document is updated periodically on no particular schedule. OpenDocument-v1.0-os.sxw 1 May 2005 Copyright © OASIS Open 2002 - 2005. All Rights Reserved. Page 1 of 706

Transcript of Open Document Format for Office Applications...

Open Document Format for OfficeApplications (OpenDocument) v1.0

OASIS Standard, 1 May 2005

Document identifier:OpenDocument-v1.0-os.sxw

Location:http://docs.oasis-open.org/office/v1.0

Editors:Michael Brauer, Sun Microsystems Patrick Durusau, Society of Biblical Literature Gary Edwards David Faure, Tom Magliery, Blast Radius Daniel Vogelheim, Sun Microsystems

Contributors:Doug Alberg, Boeing Simon Davis, National Archive of Australia Paul Grosso, Arbortext Phil Boutros, Stellent John Chelsom, CSW Informatics Jason Harrop Mark Heller, New York State Office of the Attorney General

Paul Langille, Corel Monica Martin, Drake Certivo Uche Ogbuji Lars Oppermann, Sun Microsystems Lauren Wood

Abstract:This is the specification of the Open Document Format for Office Applications(OpenDocument) format, an open, XML-based file format for office applications, basedon OpenOffice.org XML [OOo].

Status:This document was last revised or approved by the membership of OASIS on the abovedate. The level of approval is also listed above.Check the current location noted above for possible later revisions of this document.This document is updated periodically on no particular schedule.

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 1 of 706

Technical Committee members should send comments on this specification to theTechnical Committee's email list. Others should send comments to the TechnicalCommittee by using the "Send A Comment" button on the Technical Committee's webpage atwww.oasis-open.org/committees/office.For information on whether any patents have been disclosed that may be essential toimplementing this specification, and any offers of patent licensing terms, please refer tothe Intellectual Property Rights section of the Technical Committee web page(www.oasis-open.org/committees/office/ipr.php.The non-normative errata page for this specification is located at www.oasis-open.org/committees/office.

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 2 of 706

Table of Contents

1 Introduction..................................................................................................................................31

1.1 Introduction...........................................................................................................................31

1.2 Notation.................................................................................................................................31

1.3 Namespaces.........................................................................................................................31

1.4 Relax-NG Schema...............................................................................................................33

1.5 Document Processing and Conformance............................................................................34

1.6 White-Space Processing and EOL Handling.......................................................................35

1.7 MIME Types and File Name Extensions..............................................................................35

2 Document Structure.....................................................................................................................37

2.1 Document Roots...................................................................................................................37

2.1.1 Document Root Element Content Models....................................................................38

2.1.2 Document Root Attributes.............................................................................................39

2.2 Document Metadata.............................................................................................................40

2.2.1 Pre-Defined vs. Custom Metadata...............................................................................40

2.2.2 Sample Metadata..........................................................................................................41

2.3 Body Element and Document Types....................................................................................41

2.3.1 Text Documents............................................................................................................42

2.3.2 Drawing Documents......................................................................................................43

2.3.3 Presentation Documents...............................................................................................44

2.3.4 Spreadsheet Documents...............................................................................................45

2.3.5 Chart Documents..........................................................................................................46

2.3.6 Image Documents.........................................................................................................46

2.4 Application Settings..............................................................................................................47

2.4.1 Sequence of Settings....................................................................................................47

2.4.2 Base Settings................................................................................................................48

2.4.3 Index Access of Sequences..........................................................................................49

2.4.4 Map Entry......................................................................................................................49

2.4.5 Name Access of Sequences.........................................................................................50

2.4.6 Cursor Position Setting.................................................................................................50

2.5 Scripts...................................................................................................................................50

2.5.1 Script.............................................................................................................................51

2.6 Font Face Declarations........................................................................................................51

2.7 Styles....................................................................................................................................52

2.7.1 Location of Styles .........................................................................................................52

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 3 of 706

2.8 Page Styles and Layout........................................................................................................55

3 Meta Data Elements....................................................................................................................56

3.1 Pre-Defined Metadata Elements..........................................................................................56

3.1.1 Generator......................................................................................................................56

3.1.2 Title................................................................................................................................56

3.1.3 Description....................................................................................................................56

3.1.4 Subject..........................................................................................................................57

3.1.5 Keywords.......................................................................................................................57

3.1.6 Initial Creator ................................................................................................................57

3.1.7 Creator...........................................................................................................................57

3.1.8 Printed By......................................................................................................................57

3.1.9 Creation Date and Time................................................................................................58

3.1.10 Modification Date and Time........................................................................................58

3.1.11 Print Date and Time....................................................................................................58

3.1.12 Document Template....................................................................................................58

3.1.13 Automatic Reload........................................................................................................59

3.1.14 Hyperlink Behavior......................................................................................................60

3.1.15 Language.....................................................................................................................61

3.1.16 Editing Cycles.............................................................................................................61

3.1.17 Editing Duration...........................................................................................................62

3.1.18 Document Statistics....................................................................................................62

3.2 User-defined Metadata.........................................................................................................64

3.3 Custom Metadata.................................................................................................................65

4 Text Content.................................................................................................................................66

4.1 Headings, Paragraphs and Basic Text Structure.................................................................66

4.1.1 Headings.......................................................................................................................66

4.1.2 Paragraphs....................................................................................................................67

4.1.3 Common Paragraph Elements Attributes.....................................................................67

4.2 Page Sequences...................................................................................................................68

4.2.1 Page..............................................................................................................................69

4.3 Lists.......................................................................................................................................70

4.3.1 List Block.......................................................................................................................70

4.3.2 List Item.........................................................................................................................71

4.3.3 List Header....................................................................................................................72

4.3.4 Numbered Paragraphs..................................................................................................73

4.4 Text Sections........................................................................................................................73

4.4.1 Section Attributes..........................................................................................................74

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 4 of 706

4.4.2 Section Source..............................................................................................................76

4.4.3 DDE Source..................................................................................................................77

4.5 Page-bound graphical content..............................................................................................77

4.6 Change Tracking..................................................................................................................77

4.6.1 Tracked Changes..........................................................................................................78

4.6.2 Changed Regions..........................................................................................................78

4.6.3 Insertion.........................................................................................................................78

4.6.4 Deletion.........................................................................................................................79

4.6.5 Format Change.............................................................................................................81

4.6.6 Change Info...................................................................................................................81

4.6.7 Change Marks...............................................................................................................81

4.7 Text Declarations..................................................................................................................82

5 Paragraph Elements Content.......................................................................................................84

5.1 Basic Text Content...............................................................................................................84

5.1.1 White-space Characters................................................................................................84

5.1.2 Soft Hyphens, Hyphens, and Non-breaking Blanks......................................................86

5.1.3 Attributed Text...............................................................................................................86

5.1.4 Hyperlinks......................................................................................................................87

5.2 Bookmarks and References.................................................................................................89

5.2.1 Bookmarks....................................................................................................................89

5.2.2 References....................................................................................................................90

5.3 Notes.....................................................................................................................................91

5.3.1 Note Element................................................................................................................91

5.4 Ruby......................................................................................................................................93

5.5 Text Annotation....................................................................................................................94

5.6 Index Marks..........................................................................................................................94

5.7 Change Tracking and Change Marks...................................................................................94

5.8 Inline graphics and text-boxes..............................................................................................94

6 Text Fields...................................................................................................................................95

6.1 Common Characteristics of Field Elements........................................................................ 95

6.2 Document Fields...................................................................................................................96

6.2.1 Date Fields....................................................................................................................96

6.2.2 Time Fields....................................................................................................................97

6.2.3 Page Number Fields.....................................................................................................99

6.2.4 Page Continuation Text..............................................................................................100

6.2.5 Sender Fields..............................................................................................................101

6.2.6 Author Fields...............................................................................................................104

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 5 of 706

6.2.7 Chapter Fields.............................................................................................................104

6.2.8 File Name Fields.........................................................................................................105

6.2.9 Document Template Name Fields..............................................................................106

6.2.10 Sheet Name Fields....................................................................................................107

6.3 Variable Fields....................................................................................................................107

6.3.1 Declaring Simple Variables.........................................................................................108

6.3.2 Setting Simple Variables.............................................................................................108

6.3.3 Displaying Simple Variables.......................................................................................109

6.3.4 Simple Variable Input Fields.......................................................................................110

6.3.5 Declaring User Variables............................................................................................111

6.3.6 Displaying User Variables...........................................................................................111

6.3.7 User Variable Input Fields...........................................................................................112

6.3.8 Declaring Sequence Variables....................................................................................113

6.3.9 Using Sequence Fields...............................................................................................114

6.3.10 Expression Fields......................................................................................................115

6.3.11 Text Input Fields.......................................................................................................116

6.4 Metadata Fields..................................................................................................................116

6.4.1 Initial Creator...............................................................................................................116

6.4.2 Document Creation Date............................................................................................117

6.4.3 Document Creation Time............................................................................................117

6.4.4 Document Description.................................................................................................117

6.4.5 User-Defined Document Information..........................................................................117

6.4.6 Print Time....................................................................................................................118

6.4.7 Print Date....................................................................................................................118

6.4.8 Printed By....................................................................................................................119

6.4.9 Document Title............................................................................................................119

6.4.10 Document Subject.....................................................................................................119

6.4.11 Document Keywords.................................................................................................119

6.4.12 Document Revision Number.....................................................................................119

6.4.13 Document Edit Duration............................................................................................120

6.4.14 Document Modification Time....................................................................................120

6.4.15 Document Modification Date.....................................................................................120

6.4.16 Document Modified By..............................................................................................121

6.4.17 Document Statistics Fields........................................................................................121

6.5 Database Fields..................................................................................................................121

6.5.1 Database Field Data Source.......................................................................................122

6.5.2 Displaying Database Content......................................................................................123

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 6 of 706

6.5.3 Selecting the Next Database Row..............................................................................124

6.5.4 Selecting a Row Number............................................................................................125

6.5.5 Displaying the Row Number........................................................................................126

6.5.6 Display Current Database and Table..........................................................................126

6.6 More Fields.........................................................................................................................127

6.6.1 Page Variable Fields...................................................................................................127

6.6.2 Placeholders................................................................................................................128

6.6.3 Conditional Text Fields...............................................................................................129

6.6.4 Hidden Text Field........................................................................................................130

6.6.5 Reference Fields.........................................................................................................131

6.6.6 Script Fields................................................................................................................134

6.6.7 Macro Fields................................................................................................................135

6.6.8 Hidden Paragraph Fields............................................................................................135

6.6.9 DDE Connection Fields...............................................................................................136

6.6.10 Measure Fields..........................................................................................................137

6.6.11 Table Formula Field..................................................................................................137

6.7 Common Field Attributes....................................................................................................138

6.7.1 Variable Value Types and Values...............................................................................138

6.7.2 Fixed............................................................................................................................140

6.7.3 Variable Name............................................................................................................140

6.7.4 Description .................................................................................................................141

6.7.5 Display.........................................................................................................................141

6.7.6 Formula.......................................................................................................................142

6.7.7 Formatting Style..........................................................................................................142

6.7.8 Number Formatting Style............................................................................................143

7 Text Indices................................................................................................................................144

7.1 Index Marks........................................................................................................................144

7.1.1 Table of Content Index Marks.....................................................................................144

7.1.2 User-Defined Index Marks..........................................................................................145

7.1.3 Alphabetical Index Mark..............................................................................................146

7.1.4 Bibliography Index Mark.............................................................................................148

7.2 Index Structure...................................................................................................................149

7.2.1 Index Source...............................................................................................................149

7.2.2 Index Body Section.....................................................................................................150

7.2.3 Index Title Section......................................................................................................150

7.3 Table Of Content................................................................................................................150

7.3.1 Table of Content Source.............................................................................................151

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 7 of 706

7.3.2 Table of Content Entry Template................................................................................153

7.4 Index of Illustrations...........................................................................................................154

7.4.1 Index of Illustration Source.........................................................................................155

7.4.2 Illustration Index Entry Template................................................................................156

7.5 Index of Tables...................................................................................................................157

7.5.1 Table Index Source.....................................................................................................157

7.5.2 Table Index Entry Template........................................................................................157

7.6 Index of Objects..................................................................................................................158

7.6.1 Object Index Source...................................................................................................158

7.6.2 Object Index Entry Template......................................................................................159

7.7 User-Defined Index.............................................................................................................160

7.7.1 User-Defined Index Source.........................................................................................160

7.7.2 User-Defined Index Entry Template...........................................................................162

7.8 Alphabetical Index..............................................................................................................163

7.8.1 Alphabetical Index Source..........................................................................................163

7.8.2 Auto Mark File.............................................................................................................167

7.8.3 Alphabetical Index Entry Template.............................................................................167

7.9 Bibliography........................................................................................................................168

7.9.1 Bibliography Index Source..........................................................................................168

7.9.2 Bibliography Entry Template.......................................................................................168

7.10 index source styles...........................................................................................................169

7.10.1 Index source style.....................................................................................................169

7.11 Index title template...........................................................................................................170

7.12 Index Template Entries....................................................................................................170

7.12.1 Chapter Information..................................................................................................170

7.12.2 Entry Text..................................................................................................................171

7.12.3 Page Number............................................................................................................171

7.12.4 Fixed String...............................................................................................................171

7.12.5 Bibliography Information...........................................................................................172

7.12.6 Tab Stop....................................................................................................................173

7.12.7 Hyperlink Start and End............................................................................................174

7.12.8 Example of an Index Entry Configuration.................................................................174

8 Tables.........................................................................................................................................176

8.1 Basic Table Model..............................................................................................................176

8.1.1 Table Element.............................................................................................................176

8.1.2 Table Row ..................................................................................................................179

8.1.3 Table Cell ...................................................................................................................181

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 8 of 706

8.2 Advanced Table Model.......................................................................................................186

8.2.1 Column Description ....................................................................................................186

8.2.2 Header Columns.........................................................................................................188

8.2.3 Column Groups...........................................................................................................189

8.2.4 Header Rows...............................................................................................................189

8.2.5 Row Groups.................................................................................................................190

8.2.6 Subtables ....................................................................................................................190

8.3 Advanced Tables................................................................................................................193

8.3.1 Referencing Table Cells..............................................................................................193

8.3.2 Linked Tables..............................................................................................................195

8.3.3 Scenario Tables..........................................................................................................197

8.3.4 Shapes........................................................................................................................199

8.4 Advanced Table Cells .......................................................................................................200

8.4.1 Linked Table Cells.......................................................................................................200

8.4.2 Cell Annotation ...........................................................................................................201

8.4.3 Detective.....................................................................................................................201

8.4.4 Detective Operation....................................................................................................201

8.4.5 Highlighted Range.......................................................................................................202

8.5 Spreadsheet Document Content........................................................................................204

8.5.1 Document Protection..................................................................................................204

8.5.2 Calculation Settings....................................................................................................204

8.5.3 Table Cell Content Validations...................................................................................207

8.5.4 Label Ranges..............................................................................................................211

8.5.5 Named Expressions....................................................................................................212

8.6 Database Ranges...............................................................................................................214

8.6.1 Database Range .........................................................................................................215

8.6.2 Database Source SQL ...............................................................................................217

8.6.3 Database Source Table .............................................................................................218

8.6.4 Database Source Query..............................................................................................219

8.6.5 Sort .............................................................................................................................219

8.6.6 Sort By ........................................................................................................................221

8.6.7 Subtotal Rules ............................................................................................................222

8.6.8 Subtotal Sort Groups ..................................................................................................223

8.6.9 Subtotal Rule ..............................................................................................................224

8.6.10 Subtotal Field ...........................................................................................................224

8.7 Filters..................................................................................................................................225

8.7.1 Table Filter..................................................................................................................225

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 9 of 706

8.7.2 Filter And.....................................................................................................................227

8.7.3 Filter Or ......................................................................................................................227

8.7.4 Filter Condition ...........................................................................................................228

8.8 Data Pilot Tables................................................................................................................230

8.8.1 Data Pilot Table...........................................................................................................230

8.8.2 Source Cell Range......................................................................................................235

8.8.3 Source Service............................................................................................................235

8.8.4 Data Pilot Field............................................................................................................237

8.8.5 Data Pilot Level...........................................................................................................239

8.8.6 Data Pilot Subtotals.....................................................................................................240

8.8.7 Data Pilot Subtotal......................................................................................................240

8.8.8 Data Pilot Members.....................................................................................................241

8.8.9 Data Pilot Member......................................................................................................241

8.8.10 Data Pilot Display Info..............................................................................................242

8.8.11 Data Pilot Sort Info....................................................................................................243

8.8.12 Data Pilot Layout Info................................................................................................244

8.8.13 Data Pilot Field Reference........................................................................................245

8.8.14 Data Pilot Groups......................................................................................................246

8.8.15 Data Pilot Group........................................................................................................248

8.8.16 Data Pilot Group Member.........................................................................................249

8.9 Consolidation......................................................................................................................249

8.10 DDE Links.........................................................................................................................251

8.11 Change Tracking in Spreadsheets...................................................................................251

8.11.1 Tracked Changes......................................................................................................251

8.11.2 Insertion.....................................................................................................................252

8.11.3 Dependencies............................................................................................................253

8.11.4 Dependence..............................................................................................................254

8.11.5 Deletions....................................................................................................................254

8.11.6 Cell Content Deletion................................................................................................254

8.11.7 Change Deletion........................................................................................................254

8.11.8 Deletion.....................................................................................................................255

8.11.9 Cut Offs.....................................................................................................................256

8.11.10 Insertion Cut Off......................................................................................................257

8.11.11 Movement Cut Off..................................................................................................257

8.11.12 Movement...............................................................................................................258

8.11.13 Target Range Address, Source Range Address.....................................................259

8.11.14 Change Track Cell..................................................................................................260

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 10 of 706

8.11.15 Cell Content Change...............................................................................................261

8.11.16 Cell Address............................................................................................................262

8.11.17 Previous..................................................................................................................262

8.11.18 Common Change Tracking Attributes.................................................................... 262

9 Graphic Content.........................................................................................................................264

9.1 Enhanced Page Features for Graphical Applications........................................................264

9.1.1 Handout Master...........................................................................................................264

9.1.2 Layer Sets...................................................................................................................265

9.1.3 Layer............................................................................................................................266

9.1.4 Drawing Pages............................................................................................................266

9.1.5 Presentation Notes......................................................................................................269

9.2 Drawing Shapes..................................................................................................................270

9.2.1 Rectangle....................................................................................................................270

9.2.2 Line..............................................................................................................................271

9.2.3 Polyline........................................................................................................................272

9.2.4 Polygon........................................................................................................................273

9.2.5 Regular Polygon..........................................................................................................273

9.2.6 Path.............................................................................................................................275

9.2.7 Circle...........................................................................................................................276

9.2.8 Ellipse..........................................................................................................................277

9.2.9 Connector....................................................................................................................278

9.2.10 Caption......................................................................................................................281

9.2.11 Measure.....................................................................................................................282

9.2.12 Control.......................................................................................................................283

9.2.13 Page Thumbnail........................................................................................................284

9.2.14 Grouping....................................................................................................................285

9.2.15 Common Drawing Shape Attributes.........................................................................285

9.2.16 Common Shape Attributes for Text and Spreadsheet Documents..........................289

9.2.17 Common Drawing Shape Content............................................................................291

9.2.18 Common Shape Attribute Groups.............................................................................291

9.2.19 Glue Points................................................................................................................292

9.2.20 Event Listeners.........................................................................................................293

9.3 Frames................................................................................................................................294

9.3.1 Text Box......................................................................................................................296

9.3.2 Image..........................................................................................................................298

9.3.3 Objects........................................................................................................................300

9.3.4 Applet..........................................................................................................................301

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 11 of 706

9.3.5 Plugins.........................................................................................................................303

9.3.6 Parameters..................................................................................................................304

9.3.7 Floating Frame............................................................................................................304

9.3.8 Contour........................................................................................................................305

9.3.9 Alternative Text...........................................................................................................306

9.3.10 Hyperlinks..................................................................................................................306

9.3.11 Client Side Image Maps............................................................................................308

9.4 3D Shapes..........................................................................................................................312

9.4.1 Scene..........................................................................................................................312

9.4.2 Light.............................................................................................................................316

9.4.3 Cube............................................................................................................................317

9.4.4 Sphere.........................................................................................................................317

9.4.5 Extrude........................................................................................................................318

9.4.6 Rotate..........................................................................................................................319

9.5 Custom Shape....................................................................................................................319

9.5.1 Enhanced Geometry...................................................................................................320

9.5.2 Enhanced Geometry - Extrusion Attributes................................................................323

9.5.3 Enhanced Geometry - Path Attributes........................................................................329

9.5.4 Enhanced Geometry - Text Path Attributes................................................................333

9.5.5 Enhanced Geometry Equation.................................................................................334

9.5.6 Enhanced Geometry - Handle Attributes....................................................................336

9.6 Presentation Shapes..........................................................................................................340

9.6.1 Common Presentation Shape Attributes....................................................................340

9.7 Presentation Animations.....................................................................................................342

9.7.1 Sound..........................................................................................................................342

9.7.2 Show Shape................................................................................................................343

9.7.3 Show Text...................................................................................................................347

9.7.4 Hide Shape..................................................................................................................347

9.7.5 Hide Text.....................................................................................................................347

9.7.6 Dim..............................................................................................................................348

9.7.7 Play..............................................................................................................................348

9.7.8 Effect groups...............................................................................................................349

9.8 SMIL Presentation Animations...........................................................................................349

9.8.1 Recommended Usage Of SMIL..................................................................................349

9.8.2 Document Dependent SMIL Animation Attribute Values........................................... 350

9.8.3 SMIL Presentation Animation Attributes.....................................................................353

9.9 Presentation Events...........................................................................................................355

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 12 of 706

9.10 Presentation Text Fields...................................................................................................358

9.10.1 Header Field..............................................................................................................358

9.10.2 Footer Field...............................................................................................................358

9.10.3 Date and Time Field..................................................................................................359

9.11 Presentation Document Content......................................................................................359

9.11.1 Presentation Declarations.........................................................................................359

9.11.2 Header field declaration............................................................................................359

9.11.3 Footer field declaration.............................................................................................360

9.11.4 Date and Time field declaration................................................................................360

9.11.5 Presentation Settings................................................................................................361

9.11.6 Show Definitions.......................................................................................................365

10 Chart Content...........................................................................................................................366

10.1 Introduction to Chart Documents.....................................................................................366

10.2 Chart.................................................................................................................................366

10.3 Title, Subtitle and Footer..................................................................................................370

10.3.1 Title............................................................................................................................370

10.3.2 Subtitle......................................................................................................................371

10.3.3 Footer........................................................................................................................371

10.4 Legend..............................................................................................................................371

10.5 Plot Area...........................................................................................................................373

10.5.1 3D Plot Area..............................................................................................................375

10.6 Wall...................................................................................................................................375

10.7 Floor..................................................................................................................................376

10.8 Axis...................................................................................................................................376

10.8.1 Grid............................................................................................................................378

10.9 Series................................................................................................................................379

10.9.1 Domain......................................................................................................................380

10.10 Categories.......................................................................................................................381

10.11 Data Point.......................................................................................................................381

10.12 Mean Value.....................................................................................................................382

10.13 Error Indicator.................................................................................................................382

10.14 Regression Curves.........................................................................................................383

10.14.1 Stock Chart Markers...............................................................................................383

11 Form Content...........................................................................................................................385

11.1 Form.................................................................................................................................386

11.1.1 Action........................................................................................................................387

11.1.2 Target Frame............................................................................................................387

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 13 of 706

11.1.3 Method.......................................................................................................................388

11.1.4 Encoding Type..........................................................................................................388

11.1.5 Allow Deletes.............................................................................................................388

11.1.6 Allow Inserts..............................................................................................................389

11.1.7 Allow Updates...........................................................................................................389

11.1.8 Apply Filter................................................................................................................389

11.1.9 Command Type.........................................................................................................389

11.1.10 Command................................................................................................................390

11.1.11 Data Source............................................................................................................390

11.1.12 Master Fields...........................................................................................................390

11.1.13 Detail Fields............................................................................................................390

11.1.14 Escape Processing..................................................................................................391

11.1.15 Filter........................................................................................................................391

11.1.16 Ignore Result...........................................................................................................391

11.1.17 Navigation Mode.....................................................................................................392

11.1.18 Order.......................................................................................................................392

11.1.19 Tabbing Cycle.........................................................................................................392

11.1.20 Connection Resource..............................................................................................393

11.2 XForms Model..................................................................................................................393

11.2.1 XForms Model...........................................................................................................393

11.3 Controls.............................................................................................................................394

11.3.1 Text...........................................................................................................................394

11.3.2 Text Area...................................................................................................................395

11.3.3 Password...................................................................................................................396

11.3.4 File.............................................................................................................................397

11.3.5 Formatted Text..........................................................................................................397

11.3.6 Number......................................................................................................................398

11.3.7 Date And Time..........................................................................................................400

11.3.8 Fixed Text.................................................................................................................401

11.3.9 Combo Box................................................................................................................402

11.3.10 List Box....................................................................................................................403

11.3.11 Button......................................................................................................................405

11.3.12 Image......................................................................................................................406

11.3.13 Check Box...............................................................................................................407

11.3.14 Radio Button............................................................................................................408

11.3.15 Frame......................................................................................................................409

11.3.16 Image Frame...........................................................................................................409

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 14 of 706

11.3.17 Hidden.....................................................................................................................410

11.3.18 Grid..........................................................................................................................410

11.3.19 Value Range............................................................................................................412

11.3.20 Generic Control.......................................................................................................414

11.4 Common Form and Control Attributes.............................................................................414

11.4.1 Name.........................................................................................................................414

11.4.2 Control Implementation.............................................................................................414

11.4.3 Bind to XForms.........................................................................................................414

11.5 Common Control Attributes..............................................................................................415

11.5.1 Button Type...............................................................................................................415

11.5.2 Control ID..................................................................................................................415

11.5.3 Current Selected.......................................................................................................416

11.5.4 Value and Current Value...........................................................................................416

11.5.5 Disabled.....................................................................................................................418

11.5.6 Dropdown..................................................................................................................418

11.5.7 For.............................................................................................................................419

11.5.8 Image Data................................................................................................................419

11.5.9 Label..........................................................................................................................419

11.5.10 Maximum Length....................................................................................................420

11.5.11 Printable..................................................................................................................420

11.5.12 Read only................................................................................................................421

11.5.13 Selected..................................................................................................................421

11.5.14 Size..........................................................................................................................422

11.5.15 Tab Index................................................................................................................422

11.5.16 Tab Stop..................................................................................................................423

11.5.17 Target Frame..........................................................................................................424

11.5.18 Target Location.......................................................................................................424

11.5.19 Title..........................................................................................................................424

11.5.20 Visual Effect............................................................................................................425

11.5.21 Relative Image Position..........................................................................................425

11.5.22 Database Binding Attributes...................................................................................426

11.6 Events...............................................................................................................................428

11.6.1 Events with an Equivalent HTML Event Type..........................................................428

11.6.2 Event Types..............................................................................................................429

11.7 Properties..........................................................................................................................431

11.7.1 Property Set..............................................................................................................431

11.7.2 Property.....................................................................................................................431

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 15 of 706

11.7.3 List Property..............................................................................................................432

12 Common Content.....................................................................................................................435

12.1 Annotation.........................................................................................................................435

12.1.1 Creator.......................................................................................................................436

12.1.2 Creation Date and Time............................................................................................436

12.1.3 Creation Date and Time String.................................................................................436

12.2 Number Format................................................................................................................436

12.2.1 Prefix and Suffix.......................................................................................................436

12.2.2 Format Specification.................................................................................................437

12.2.3 Letter Synchronization in Number Formats..............................................................437

12.3 Change Tracking Metadata..............................................................................................438

12.4 Event Listener Tables.......................................................................................................438

12.4.1 Event Listener...........................................................................................................439

12.5 Mathematical Content......................................................................................................440

12.6 DDE Connections.............................................................................................................440

12.6.1 Container for DDE Connection Declarations............................................................441

12.6.2 Declaring DDE Connections for Text Fields.............................................................441

12.6.3 Declaring DDE Connections for Tables ...................................................................442

13 SMIL Animations......................................................................................................................445

13.1 Basic Animation Elements...............................................................................................445

13.1.1 Animate.....................................................................................................................445

13.1.2 Set.............................................................................................................................445

13.1.3 Animate Motion.........................................................................................................445

13.1.4 Animate Color...........................................................................................................446

13.1.5 Animate Transform...................................................................................................447

13.1.6 Transition Filter.........................................................................................................448

13.2 Animation Model Attributes..............................................................................................449

13.3 Common Animation Attributes.........................................................................................449

13.3.1 Animation Target Attributes......................................................................................450

13.3.2 Animation Function Attributes...................................................................................450

13.4 Animation Timing.............................................................................................................453

13.4.1 Animation Timing Attributes......................................................................................453

13.4.2 Parallel Animations...................................................................................................456

13.4.3 Sequential Animations..............................................................................................457

13.4.4 Iterative Animations..................................................................................................457

13.5 Media Elements................................................................................................................458

13.5.1 Audio.........................................................................................................................458

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 16 of 706

13.6 Special Elements..............................................................................................................459

13.6.1 Command..................................................................................................................459

14 Styles........................................................................................................................................460

14.1 Style Element...................................................................................................................460

14.1.1 Style Mappings..........................................................................................................464

14.2 Default Styles...................................................................................................................466

14.3 Page Layout......................................................................................................................466

14.3.1 Header and Footer Styles.........................................................................................467

14.4 Master Pages....................................................................................................................468

14.4.1 Headers and Footers.................................................................................................470

14.4.2 Presentation Notes....................................................................................................472

14.5 Table Templates...............................................................................................................473

14.5.1 Row and Column Styles............................................................................................475

14.6 Font Face Declaration......................................................................................................476

14.6.1 CSS2/SVG Font Descriptors.....................................................................................477

14.6.2 Name.........................................................................................................................480

14.6.3 Adornments...............................................................................................................481

14.6.4 Font Family Generic.................................................................................................481

14.6.5 Font Pitch..................................................................................................................481

14.6.6 Font Character Set....................................................................................................481

14.7 Data Styles.......................................................................................................................481

14.7.1 Number Style............................................................................................................482

14.7.2 Currency Style...........................................................................................................486

14.7.3 Percentage Style.......................................................................................................487

14.7.4 Date Style..................................................................................................................488

14.7.5 Time Style.................................................................................................................494

14.7.6 Boolean Style............................................................................................................497

14.7.7 Text Style..................................................................................................................498

14.7.8 Common Data Style Elements.................................................................................498

14.7.9 Common Data Style Attributes.................................................................................499

14.7.10 Transliteration.........................................................................................................502

14.7.11 Common Data Style Child Element Attributes.......................................................503

14.8 Text Styles........................................................................................................................505

14.8.1 Text Styles................................................................................................................505

14.8.2 Paragraph Styles.......................................................................................................505

14.8.3 Section Styles...........................................................................................................506

14.8.4 Ruby Style.................................................................................................................506

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 17 of 706

14.9 Enhanced Text Styles.......................................................................................................506

14.9.1 Line Numbering Configuration..................................................................................506

14.9.2 Notes Configuration Element....................................................................................510

14.9.3 Bibliography Configuration........................................................................................513

14.10 List Style.........................................................................................................................515

14.10.1 Common List-Level Style Attributes.......................................................................516

14.10.2 Number Level Style................................................................................................517

14.10.3 Bullet Level Style....................................................................................................518

14.10.4 Image Level Style...................................................................................................520

14.10.5 List Level Style Example........................................................................................520

14.11 Outline Style...................................................................................................................521

14.11.1 Outline Level Style..................................................................................................521

14.12 Table Styles....................................................................................................................523

14.12.1 Table Styles.............................................................................................................523

14.12.2 Table Column Styles...............................................................................................523

14.12.3 Table Row Styles....................................................................................................523

14.12.4 Table Cell Styles.....................................................................................................524

14.13 Graphic Styles................................................................................................................524

14.13.1 Graphic and Presentation Styles............................................................................524

14.13.2 Drawing Page Style.................................................................................................525

14.14 Enhanced Graphic Style Elements................................................................................526

14.14.1 Gradient...................................................................................................................526

14.14.2 SVG Gradients........................................................................................................529

14.14.3 Hatch.......................................................................................................................532

14.14.4 Fill Image.................................................................................................................533

14.14.5 Opacity Gradient.....................................................................................................535

14.14.6 Marker.....................................................................................................................535

14.14.7 Stroke Dash.............................................................................................................536

14.15 Presentation Page Layouts............................................................................................538

14.15.1 Presentation Placeholder........................................................................................538

14.16 Chart Styles....................................................................................................................539

15 Formatting Properties..............................................................................................................540

15.1 Simple and Complex Formatting Properties....................................................................540

15.1.1 Simple Formatting Properties...................................................................................540

15.1.2 Complex Formatting Properties................................................................................541

15.1.3 Processing Rules for Formatting Properties.............................................................541

15.2 Page Layout Formatting Properties.................................................................................541

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 18 of 706

15.2.1 Page Size..................................................................................................................542

15.2.2 Page Number Format...............................................................................................542

15.2.3 Paper Tray.................................................................................................................543

15.2.4 Print Orientation........................................................................................................543

15.2.5 Margins......................................................................................................................543

15.2.6 Border........................................................................................................................544

15.2.7 Border Line Width.....................................................................................................544

15.2.8 Padding.....................................................................................................................544

15.2.9 Shadow......................................................................................................................544

15.2.10 Background.............................................................................................................544

15.2.11 Columns..................................................................................................................545

15.2.12 Register-truth...........................................................................................................545

15.2.13 Print.........................................................................................................................545

15.2.14 Print Page Order.....................................................................................................546

15.2.15 First Page Number..................................................................................................546

15.2.16 Scale........................................................................................................................546

15.2.17 Table Centering.......................................................................................................547

15.2.18 Maximum Footnote Height.....................................................................................547

15.2.19 Writing Mode...........................................................................................................547

15.2.20 Footnote Separator.................................................................................................548

15.2.21 Layout Grid..............................................................................................................549

15.2.22 Layout Grid Base Height.........................................................................................549

15.2.23 Layout Grid Ruby Height.........................................................................................550

15.2.24 Layout Grid Lines....................................................................................................550

15.2.25 Layout Grid Color....................................................................................................550

15.2.26 Layout Grid Ruby Below.........................................................................................550

15.2.27 Layout Grid Print.....................................................................................................550

15.2.28 Layout Grid Display.................................................................................................551

15.3 Header Footer Formatting Properties..............................................................................551

15.3.1 Fixed and Minimum heights......................................................................................551

15.3.2 Margins......................................................................................................................552

15.3.3 Border........................................................................................................................552

15.3.4 Border Line Width.....................................................................................................552

15.3.5 Padding.....................................................................................................................552

15.3.6 Background...............................................................................................................553

15.3.7 Shadow......................................................................................................................553

15.3.8 Dynamic Spacing......................................................................................................553

OpenDocument-v1.0-os.sxw 1 May 2005Copyright OASIS Open 2002 - 2005. All Rights Reserved. Page 19 of 706

15.4 Text Formatting Properties................................................................................