Open Document Format for Office Applications (OpenDocument) 1€¦ · Open Document Format for...

723
Open Document Format for Office Applications (OpenDocument) 1.0 Committee Draft 2, 21 Dec 2004 Document identifier: office-spec-1.0-cd-2.sxw Location: http://www.oasis-open.org/committees/documents.php?wg_abbrev=office 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, SpeedLegal <[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 is a draft, and will be updated periodically on no particular schedule. Send comments to the editors. Committee members should send comments on this specification to the [email protected] list. Others should subscribe to and send comments to the [email protected] list. To subscribe, send an email message to office- office-spec-1.0-cd-2.sxw 21 December 2004 Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 1 of 723

Transcript of Open Document Format for Office Applications (OpenDocument) 1€¦ · Open Document Format for...

  • Open Document Format for OfficeApplications (OpenDocument) 1.0

    Committee Draft 2, 21 Dec 2004

    Document identifier:office-spec-1.0-cd-2.sxw

    Location:http://www.oasis-open.org/committees/documents.php?wg_abbrev=office

    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, SpeedLegal 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, based onOpenOffice.org XML [OOo].

    Status:This document is a draft, and will be updated periodically on no particular schedule. Sendcomments to the editors.

    Committee members should send comments on this specification to [email protected] list. Others should subscribe to and send comments to [email protected] list. To subscribe, send an email message to office-

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 1 of 723

  • [email protected] with the word "subscribe" as the body of themessage.

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 2 of 723

  • 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............................................................................................... ....................36

    2.1 Document Roots....................................................................................................... ..........36

    2.1.1 Document Root Element Content Models................................................................... .37

    2.1.2 Document Root Attributes................................................................................ ...........38

    2.2 Document Metadata................................................................................ ............................39

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

    2.2.2 Sample Metadata....................................................................................... ..................40

    2.3 Body Element and Document Types............................................................................... ....40

    2.3.1 Text Documents............................................................................... ............................41

    2.3.2 Drawing Documents............................................................................................... .....42

    2.3.3 Presentation Documents................................................................................... ..........43

    2.3.4 Spreadsheet Documents............................................................................... ..............44

    2.3.5 Chart Documents....................................................................................... ..................45

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

    2.4 Application Settings................................................................................................ ............46

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

    2.4.2 Base Settings.................................................................................. .............................47

    2.4.3 Index Access of Sequences............................................................................... ..........48

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

    2.4.5 Name Access of Sequences................................................................................ ........49

    2.4.6 Cursor Position Setting.................................................................... ............................49

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

    2.5.1 Script....................................................................................................................... ....50

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

    2.7 Styles..................................................................................................................... .............51

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

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 3 of 723

  • 2.8 Page Styles and Layout................................................................................................... ...54

    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........................................................................................... ......................69

    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........................................................................................................... .......73

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

    4.4 Text Sections................................................................................................................. .....74

    4.4.1 Section Attributes............................................................................................... .........75

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 4 of 723

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

    4.4.3 DDE Source............................................................................................... ..................78

    4.5 Page-bound graphical content..................................................................................... .......78

    4.6 Change Tracking................................................................................................................ 78

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

    4.6.2 Changed Regions......................................................................................... ...............79

    4.6.3 Insertion............................................................................................................... .......79

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

    4.6.5 Format Change................................................................................ ............................82

    4.6.6 Change Info................................................................................................... ..............82

    4.6.7 Change Marks........................................................................................................... ..82

    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

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 5 of 723

  • 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........................................................................... ................109

    6.3.3 Displaying Simple Variables..................................................................................... .110

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

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

    6.3.6 Displaying User Variables........................................................................... ..............112

    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................................................................................................... .116

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

    6.4 Metadata Fields........................................................................... ......................................117

    6.4.1 Initial Creator................................................................................................... ..........117

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

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

    6.4.4 Document Description............................................................................................... 118

    6.4.5 User-Defined Document Information..................................................... .....................118

    6.4.6 Print Time................................................................................................. .................119

    6.4.7 Print Date............................................................................... ....................................119

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

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

    6.4.10 Document Subject........................................................................................... ........120

    6.4.11 Document Keywords......................................................................... .......................120

    6.4.12 Document Revision Number......................................................................... ...........120

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

    6.4.14 Document Modification Time........................................................................... ........121

    6.4.15 Document Modification Date......................................................................... ...........121

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

    6.4.17 Document Statistics Fields........................................................................... ...........122

    6.5 Database Fields............................................................................................................. ...122

    6.5.1 Database Field Data Source................................................................................... ...123

    6.5.2 Displaying Database Content................................................................... .................124

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 6 of 723

  • 6.5.3 Selecting the Next Database Row...................................................................... ........125

    6.5.4 Selecting a Row Number....................................................................................... ....126

    6.5.5 Displaying the Row Number....................................................................... ...............127

    6.5.6 Display Current Database and Table....................................................................... ..127

    6.6 More Fields....................................................................................................... ................128

    6.6.1 Page Variable Fields..................................................................... .............................128

    6.6.2 Placeholders................................................................................. .............................129

    6.6.3 Conditional Text Fields......................................................................................... .....130

    6.6.4 Hidden Text Field............................................................................... ........................131

    6.6.5 Reference Fields..................................................................................... ...................132

    6.6.6 Script Fields................................................................................... ............................135

    6.6.7 Macro Fields............................................................................................. .................136

    6.6.8 Hidden Paragraph Fields........................................................................... ................136

    6.6.9 DDE Connection Fields............................................................................... ..............137

    6.6.10 Measure Fields................................................................................................. .......138

    6.6.11 Table Formula Field....................................................................... ..........................138

    6.7 Common Field Attributes................................................................................................. .139

    6.7.1 Variable Value Types and Values............................................................. .................139

    6.7.2 Fixed................................................................................................. .........................141

    6.7.3 Variable Name............................................................................................... ............141

    6.7.4 Description ............................................................................. ...................................142

    6.7.5 Display............................................................................................... ........................142

    6.7.6 Formula........................................................................................................... ..........143

    6.7.7 Formatting Style................................................................................................... .....143

    6.7.8 Number Formatting Style................................................................... ........................144

    7 Text Indices................................................................................................. .............................146

    7.1 Index Marks..................................................................................................................... .146

    7.1.1 Table of Content Index Marks................................................................................. ...146

    7.1.2 User-Defined Index Marks................................................................. .........................147

    7.1.3 Alphabetical Index Mark................................................................................... .........148

    7.1.4 Bibliography Index Mark....................................................................................... .....150

    7.2 Index Structure............................................................................. .....................................151

    7.2.1 Index Source..................................................................................... .........................151

    7.2.2 Index Body Section.................................................................................................. ..152

    7.2.3 Index Title Section.......................................................................................... ...........152

    7.3 Table Of Content............................................................................................... ................153

    7.3.1 Table of Content Source....................................................................................... .....153

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 7 of 723

  • 7.3.2 Table of Content Entry Template........................................................... ....................155

    7.4 Index of Illustrations......................................................................................... .................157

    7.4.1 Index of Illustration Source................................................................................... .....157

    7.4.2 Illustration Index Entry Template........................................................................... ....159

    7.5 Index of Tables......................................................................................... .........................159

    7.5.1 Table Index Source......................................................................................... ...........159

    7.5.2 Table Index Entry Template................................................................................... ....160

    7.6 Index of Objects..................................................................................................... ...........160

    7.6.1 Object Index Source............................................................................................... ...160

    7.6.2 Object Index Entry Template....................................................................... ..............162

    7.7 User-Defined Index................................................................................................... ........162

    7.7.1 User-Defined Index Source................................................................................. .......162

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

    7.8 Alphabetical Index................................................................................................... .........165

    7.8.1 Alphabetical Index Source................................................................................... ......165

    7.8.2 Auto Mark File.......................................................................................................... .169

    7.8.3 Alphabetical Index Entry Template....................................................................... .....170

    7.9 Bibliography............................................................................................. .........................171

    7.9.1 Bibliography Index Source....................................................................... ..................171

    7.9.2 Bibliography Entry Template......................................................... .............................171

    7.10 index source styles................................................................................................... ......172

    7.10.1 Index source style..................................................................................... ...............172

    7.11 Index title template............................................................................................. .............172

    7.12 Index Template Entries............................................................................................... ....173

    7.12.1 Chapter Information................................................................................... ..............173

    7.12.2 Entry Text............................................................................................................... .174

    7.12.3 Page Number....................................................................................... ....................174

    7.12.4 Fixed String......................................................................... .....................................174

    7.12.5 Bibliography Information.............................................................................. ............175

    7.12.6 Tab Stop......................................................................................................... .........176

    7.12.7 Hyperlink Start and End........................................................................... ................177

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

    8 Tables.......................................................................................................................... ............179

    8.1 Basic Table Model........................................................................... ..................................179

    8.1.1 Table Element............................................................................. ...............................179

    8.1.2 Table Row ............................................................................... ..................................182

    8.1.3 Table Cell ..................................................................................... .............................185

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 8 of 723

  • 8.2 Advanced Table Model........................................................................................... ..........190

    8.2.1 Column Description ............................................................................................. .....190

    8.2.2 Header Columns................................................................................. .......................191

    8.2.3 Column Groups....................................................................................................... ..192

    8.2.4 Header Rows................................................................................................... ..........192

    8.2.5 Row Groups............................................................................... ................................193

    8.2.6 Subtables ............................................................................. .....................................194

    8.3 Advanced Tables......................................................................................................... .....197

    8.3.1 Referencing Table Cells................................................................... ..........................197

    8.3.2 Linked Tables......................................................................................................... ...199

    8.3.3 Scenario Tables................................................................................... ......................201

    8.3.4 Shapes............................................................................... ........................................203

    8.4 Advanced Table Cells ................................................................................................... ...203

    8.4.1 Linked Table Cells............................................................................................... ......203

    8.4.2 Cell Annotation ................................................................................................... ......204

    8.4.3 Detective............................................................................................. .......................204

    8.4.4 Detective Operation................................................................................................... 205

    8.4.5 Highlighted Range............................................................................................... ......206

    8.5 Spreadsheet Document Content................................................................................... ....207

    8.5.1 Document Protection............................................................................................... ..207

    8.5.2 Calculation Settings........................................................................... ........................208

    8.5.3 Table Cell Content Validations........................................................... ........................211

    8.5.4 Label Ranges....................................................................................... ......................215

    8.5.5 Named Expressions............................................................................... ....................216

    8.6 Database Ranges........................................................................................................... ..218

    8.6.1 Database Range ....................................................................................... ................219

    8.6.2 Database Source SQL ............................................................................................. .222

    8.6.3 Database Source Table ................................................................................... .........222

    8.6.4 Database Source Query................................................................................... .........223

    8.6.5 Sort ....................................................................................................... ....................224

    8.6.6 Sort By ............................................................................................. .........................225

    8.6.7 Subtotal Rules ................................................................................................. .........226

    8.6.8 Subtotal Sort Groups ................................................................................. ...............227

    8.6.9 Subtotal Rule ..................................................................................... .......................228

    8.6.10 Subtotal Field ......................................................................... .................................229

    8.7 Filters..................................................................................................... ...........................230

    8.7.1 Table Filter................................................................................... ..............................230

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 9 of 723

  • 8.7.2 Filter And....................................................................................................... ............232

    8.7.3 Filter Or ............................................................................... ......................................232

    8.7.4 Filter Condition ....................................................................................................... ..232

    8.8 Data Pilot Tables............................................................................... ................................234

    8.8.1 Data Pilot Table....................................................................................................... ..234

    8.8.2 Source Cell Range....................................................................... ..............................239

    8.8.3 Source Service....................................................................................................... ...240

    8.8.4 Data Pilot Field....................................................................................................... ...241

    8.8.5 Data Pilot Level................................................................................. .........................243

    8.8.6 Data Pilot Subtotals....................................................................................... ............244

    8.8.7 Data Pilot Subtotal................................................................................... ..................244

    8.8.8 Data Pilot Members.............................................................................................. .....245

    8.8.9 Data Pilot Member............................................................................................... ......245

    8.8.10 Data Pilot Display Info................................................................................... ..........246

    8.8.11 Data Pilot Sort Info....................................................................... ............................247

    8.8.12 Data Pilot Layout Info....................................................................................... .......248

    8.8.13 Data Pilot Field Reference....................................................................................... 249

    8.8.14 Data Pilot Groups............................................................................................... .....251

    8.8.15 Data Pilot Group..................................................................................................... .253

    8.8.16 Data Pilot Group Member...................................................................................... ..254

    8.9 Consolidation............................................................................................. .......................254

    8.10 DDE Links....................................................................................................... ................256

    8.11 Change Tracking in Spreadsheets..................................................................... .............256

    8.11.1 Tracked Changes................................................................... ..................................256

    8.11.2 Insertion........................................................................................ ...........................257

    8.11.3 Dependencies............................................................................................. .............258

    8.11.4 Dependence............................................................................... ..............................259

    8.11.5 Deletions......................................................................................... .........................259

    8.11.6 Cell Content Deletion................................................................................... ............259

    8.11.7 Change Deletion............................................................................................. .........260

    8.11.8 Deletion................................................................................................................... 260

    8.11.9 Cut Offs............................................................................................................... ....261

    8.11.10 Insertion Cut Off....................................................................................... .............262

    8.11.11 Movement Cut Off................................................................................. .................262

    8.11.12 Movement............................................................................................. .................263

    8.11.13 Target Range Address, Source Range Address............................................... .....264

    8.11.14 Change Track Cell............................................................................................... ..265

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 10 of 723

  • 8.11.15 Cell Content Change..................................................................... .........................267

    8.11.16 Cell Address......................................................................................................... .267

    8.11.17 Previous....................................................................................................... .........267

    8.11.18 Common Change Tracking Attributes................................................... ................268

    9 Graphic Content.................................................................................... ...................................269

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

    9.1.1 Handout Master........................................................................................... ..............269

    9.1.2 Layer Sets................................................................................. .................................270

    9.1.3 Layer..................................................................................... .....................................271

    9.1.4 Drawing Pages................................................................................................... .......272

    9.1.5 Presentation Notes........................................................................................... .........275

    9.2 Drawing Shapes................................................................................. ...............................275

    9.2.1 Rectangle............................................................................................................... ...276

    9.2.2 Line......................................................................................... ...................................276

    9.2.3 Polyline................................................................................................. .....................277

    9.2.4 Polygon............................................................................................................... ......278

    9.2.5 Regular Polygon............................................................................................. ...........278

    9.2.6 Path....................................................................................................... ....................280

    9.2.7 Circle................................................................................................................... ......281

    9.2.8 Ellipse............................................................................................. ...........................283

    9.2.9 Connector......................................................................................... .........................284

    9.2.10 Caption......................................................................................................... ...........287

    9.2.11 Measure.............................................................................. .....................................288

    9.2.12 Control...................................................................................... ...............................289

    9.2.13 Page Thumbnail................................................................................................... ...289

    9.2.14 Grouping............................................................................. .....................................290

    9.2.15 Common Drawing Shape Attributes................................................... .....................291

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

    9.2.17 Common Drawing Shape Content................................................................... ........297

    9.2.18 Common Shape Attribute Groups....................................................... ....................297

    9.2.19 Glue Points..................................................................................... .........................298

    9.2.20 Event Listeners................................................................................. .......................299

    9.3 Frames........................................................................................................................... ..299

    9.3.1 Text Box................................................................................... ..................................302

    9.3.2 Image........................................................................................... ..............................304

    9.3.3 Objects..................................................................................................................... .306

    9.3.4 Applet....................................................................................................................... .307

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 11 of 723

  • 9.3.5 Plugins................................................................................... ....................................309

    9.3.6 Parameters................................................................................................. ...............310

    9.3.7 Floating Frame................................................................................................... .......310

    9.3.8 Contour................................................................................. .....................................311

    9.3.9 Alternative Text......................................................................... .................................312

    9.3.10 Hyperlinks..................................................................................... ...........................312

    9.3.11 Client Side Image Maps....................................................................................... ....314

    9.4 3D Shapes................................................................................................................. .......318

    9.4.1 Scene................................................................................................................... .....318

    9.4.2 Light....................................................................................... ....................................322

    9.4.3 Cube............................................................................................................. .............323

    9.4.4 Sphere........................................................................................................... ............324

    9.4.5 Extrude..................................................................................................................... .325

    9.4.6 Rotate......................................................................................................... ...............325

    9.5 Custom Shape............................................................................................................... ...325

    9.5.1 Enhanced Geometry..................................................................................... .............327

    9.5.2 Enhanced Geometry - Extrusion Attributes........................................... ....................329

    9.5.3 Enhanced Geometry - Path Attributes............................................................... ........336

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

    9.5.5 Enhanced Geometry – Equation......................................................................... .......341

    9.5.6 Enhanced Geometry - Handle Attributes................................................... ................343

    9.6 Presentation Shapes....................................................................... ..................................347

    9.6.1 Common Presentation Shape Attributes............................................... ....................347

    9.7 Presentation Animations................................................................... ................................349

    9.7.1 Sound......................................................................................................... ...............349

    9.7.2 Show Shape........................................................................... ....................................350

    9.7.3 Show Text.............................................................................................. ....................354

    9.7.4 Hide Shape............................................................................................................. ...354

    9.7.5 Hide Text........................................................................................ ............................355

    9.7.6 Dim..................................................................................................................... .......355

    9.7.7 Play............................................................................................. ...............................355

    9.7.8 Effect groups......................................................................... .....................................356

    9.8 SMIL Presentation Animations........................................................................... ..............356

    9.8.1 Recommended Usage Of SMIL............................................................. .....................356

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

    9.8.3 SMIL Presentation Animation Attributes..................................................... ...............360

    9.9 Presentation Events......................................................................... .................................362

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 12 of 723

  • 9.10 Presentation Text Fields........................................................................................... ......365

    9.10.1 Header Field....................................................................................................... .....365

    9.10.2 Footer Field........................................................................................................ .....366

    9.10.3 Date and Time Field.................................................................. ...............................366

    9.11 Presentation Document Content................................................................... ..................366

    9.11.1 Presentation Declarations............................................................................... ........366

    9.11.2 Header field declaration............................................................................... ............367

    9.11.3 Footer field declaration......................................................................................... ...367

    9.11.4 Date and Time field declaration....................................................................... ........367

    9.11.5 Presentation Settings.................................................................................... ..........368

    9.11.6 Show Definitions................................................................................. .....................372

    10 Chart Content............................................................................................ .............................374

    10.1 Introduction to Chart Documents................................................................................. ...374

    10.2 Chart........................................................................................................... ....................374

    10.3 Title, Subtitle and Footer............................................................................... ..................378

    10.3.1 Title............................................................................................. .............................378

    10.3.2 Subtitle............................................................................... ......................................379

    10.3.3 Footer................................................................................................................. .....379

    10.4 Legend......................................................................................................... ...................380

    10.5 Plot Area............................................................................................................... ..........382

    10.5.1 3D Plot Area........................................................................... ..................................383

    10.6 Wall........................................................................................... ......................................383

    10.7 Floor........................................................................................................................... ....384

    10.8 Axis....................................................................................................... ..........................385

    10.8.1 Grid..................................................................................... .....................................387

    10.9 Series......................................................................................... .....................................387

    10.9.1 Domain..................................................................................................... ...............389

    10.10 Categories............................................................................... ......................................389

    10.11 Data Point........................................................................................................... ..........390

    10.12 Mean Value........................................................................................... ........................391

    10.13 Error Indicator....................................................................................... ........................391

    10.14 Regression Curves............................................................................................... ........391

    10.14.1 Stock Chart Markers..................................................................................... .........392

    11 Form Content........................................................................................................... ..............393

    11.1 Form........................................................................................................................... ....394

    11.1.1 Action............................................................................... ........................................395

    11.1.2 Target Frame................................................................................................... ........395

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 13 of 723

  • 11.1.3 Method................................................................................... ..................................396

    11.1.4 Encoding Type.............................................................................. ...........................396

    11.1.5 Allow Deletes................................................................................................... ........396

    11.1.6 Allow Inserts................................................................................................. ...........397

    11.1.7 Allow Updates..................................................................................... .....................397

    11.1.8 Apply Filter....................................................................................................... .......397

    11.1.9 Command Type....................................................................................................... 397

    11.1.10 Command................................................................................................. .............398

    11.1.11 Data Source................................................................................... ........................398

    11.1.12 Master Fields.................................................................................................. .......398

    11.1.13 Detail Fields........................................................................................... ................399

    11.1.14 Escape Processing......................................................................................... .......399

    11.1.15 Filter............................................................................................................... .......399

    11.1.16 Ignore Result.................................................................................................. .......399

    11.1.17 Navigation Mode......................................................................................... ...........400

    11.1.18 Order................................................................................................................... ..400

    11.1.19 Tabbing Cycle..................................................................................... ...................401

    11.1.20 Connection Resource....................................................................................... .....401

    11.2 XForms Model....................................................................................... ..........................401

    11.2.1 XForms Model......................................................................... .................................402

    11.3 Controls......................................................................................................................... .402

    11.3.1 Text............................................................................................. .............................403

    11.3.2 Text Area............................................................................................................... ..404

    11.3.3 Password............................................................................................... ..................404

    11.3.4 File....................................................................................................... ....................405

    11.3.5 Formatted Text............................................................................... ..........................405

    11.3.6 Number............................................................................................. .......................407

    11.3.7 Date And Time........................................................................................... ..............408

    11.3.8 Fixed Text..................................................................................................... ...........410

    11.3.9 Combo Box..................................................................................................... .........410

    11.3.10 List Box................................................................................................. .................412

    11.3.11 Button............................................................................................................. .......413

    11.3.12 Image................................................................................................... ..................415

    11.3.13 Check Box................................................................................................... ..........416

    11.3.14 Radio Button......................................................................................... .................417

    11.3.15 Frame................................................................................................................... .418

    11.3.16 Image Frame............................................................................................... ..........418

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 14 of 723

  • 11.3.17 Hidden................................................................................................................... 419

    11.3.18 Grid..................................................................................... ...................................419

    11.3.19 Value Range............................................................................................. .............420

    11.3.20 Generic Control..................................................................... .................................422

    11.4 Common Form and Control Attributes....................................................................... .....423

    11.4.1 Name................................................................................................................... ....423

    11.4.2 Control Implementation............................................................. ...............................423

    11.4.3 Bind to XForms............................................................................................. ...........423

    11.5 Common Control Attributes............................................................... ..............................424

    11.5.1 Button Type......................................................................... .....................................424

    11.5.2 Control ID................................................................................... ..............................424

    11.5.3 Current Selected................................................................................................. .....425

    11.5.4 Value and Current Value............................................................. .............................425

    11.5.5 Disabled................................................................................................... ................427

    11.5.6 Dropdown............................................................................................................... .427

    11.5.7 For................................................................................................................... ........428

    11.5.8 Image Data........................................................................................................... ...428

    11.5.9 Label................................................................................................. .......................428

    11.5.10 Maximum Length............................................................................................... ....429

    11.5.11 Printable........................................................................................................... .....429

    11.5.12 Read only................................................................................... ............................430

    11.5.13 Selected....................................................................................................... ..........430

    11.5.14 Size................................................................................................. .......................431

    11.5.15 Tab Index....................................................................................................... ........431

    11.5.16 Tab Stop............................................................................................................... .432

    11.5.17 Target Frame....................................................................................................... ..433

    11.5.18 Target Location................................................................................. .....................433

    11.5.19 Title................................................................................................. .......................433

    11.5.20 Visual Effect........................................................................................... ................434

    11.5.21 Relative Image Position............................................................................... ..........434

    11.5.22 Database Binding Attributes................................................................... ...............435

    11.6 Events................................................................................................... ..........................437

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

    11.6.2 Event Types....................................................................................... ......................438

    11.7 Properties................................................................................. .......................................440

    11.7.1 Property Set........................................................................................... ..................440

    11.7.2 Property....................................................................................................... ............440

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 15 of 723

  • 11.7.3 List Property................................................................................................... .........441

    12 Common Content........................................................................................................ ...........444

    12.1 Annotation................................................................................................................... ...444

    12.1.1 Creator........................................................................................... ..........................445

    12.1.2 Creation Date and Time....................................................................................... ....445

    12.1.3 Creation Date and Time String........................................................... ......................445

    12.2 Number Format............................................................................................ ...................445

    12.2.1 Prefix and Suffix................................................................................... ....................445

    12.2.2 Format Specification................................................................................. ...............446

    12.2.3 Letter Synchronization in Number Formats........................................................... ..446

    12.3 Change Tracking Metadata............................................................................... ..............447

    12.4 Event Listener Tables........................................................................................... ..........447

    12.4.1 Event Listener................................................................................. .........................448

    12.5 Mathematical Content........................................................................................... ..........449

    12.6 DDE Connections............................................................................. ...............................450

    12.6.1 Container for DDE Connection Declarations............................................. ...............450

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

    12.6.3 Declaring DDE Connections for Tables ................................................... ................452

    13 SMIL Animations...................................................................................................... ..............454

    13.1 Basic Animation Elements........................................................................................... ...454

    13.1.1 Animate............................................................................. .......................................454

    13.1.2 Set....................................................................................................................... ....454

    13.1.3 Animate Motion................................................................................. .......................454

    13.1.4 Animate Color................................................................................................. .........455

    13.1.5 Animate Transform............................................................................................. .....456

    13.1.6 Transition Filter.......................................................................... ..............................457

    13.2 Animation Model Attributes........................................................................... ..................458

    13.3 Common Animation Attributes............................................................................. ...........458

    13.3.1 Animation Target Attributes........................................................................... ..........459

    13.3.2 Animation Function Attributes........................................................................... ......459

    13.4 Animation Timing................................................................................. ...........................462

    13.4.1 Animation Timing Attributes............................................................................... .....462

    13.4.2 Parallel Animations................................................................................... ..............466

    13.4.3 Sequential Animations................................................................... ..........................466

    13.4.4 Iterative Animations............................................................................... ..................466

    13.5 Media Elements....................................................................................................... .......467

    13.5.1 Audio....................................................................................................................... 467

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 16 of 723

  • 13.6 Special Elements.................................................................................................... ........468

    13.6.1 Command............................................................................................. ...................468

    14 Styles................................................................................................................................ .....470

    14.1 Style Element................................................................................................. .................470

    14.1.1 Style Mappings....................................................................................................... .474

    14.2 Default Styles............................................................................................. .....................476

    14.3 Page Layout............................................................................................. .......................476

    14.3.1 Header and Footer Styles............................................................................... .........477

    14.4 Master Pages................................................................................................. .................478

    14.4.1 Headers and Footers........................................................................................... ....480

    14.4.2 Presentation Notes............................................................................................... ...482

    14.5 Table Templates................................................................................................... ..........484

    14.5.1 Row and Column Styles................................................................... ........................485

    14.6 Font Face Declaration....................................................................... ..............................487

    14.6.1 CSS2/SVG Font Descriptors............................................................. .......................487

    14.6.2 Name........................................................................................................... ............491

    14.6.3 Adornments............................................................................................... ..............491

    14.6.4 Font Family Generic............................................................................................... .491

    14.6.5 Font Pitch............................................................................................................... .492

    14.6.6 Font Character Set............................................................................................... ...492

    14.7 Data Styles..................................................................................... .................................492

    14.7.1 Number Style............................................................................................... ............492

    14.7.2 Currency Style........................................................................................... ..............496

    14.7.3 Percentage Style..................................................................... .................................498

    14.7.4 Date Style............................................................................................................. ...499

    14.7.5 Time Style......................................................................................................... .......505

    14.7.6 Boolean Style............................................................................... ............................508

    14.7.7 Text Style............................................................................................... ..................509

    14.7.8 Common Data Style Elements............................................................................... ..510

    14.7.9 Common Data Style Attributes........................................................... ......................510

    14.7.10 Transliteration............................................................................. ...........................513

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

    14.8 Text Styles..................................................................................................................... .517

    14.8.1 Text Styles....................................................................................................... ........517

    14.8.2 Paragraph Styles................................................................................................... ..517

    14.8.3 Section Styles................................................................................................. .........517

    14.8.4 Ruby Style............................................................................................................... 518

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 17 of 723

  • 14.9 Enhanced Text Styles................................................................................................... ..518

    14.9.1 Line Numbering Configuration................................................................... ..............518

    14.9.2 Notes Configuration Element................................................................................ ...521

    14.9.3 Bibliography Configuration........................................................................... ...........525

    14.10 List Style.................................................................................................................. .....527

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

    14.10.2 Number Level Style............................................................................. ...................528

    14.10.3 Bullet Level Style..................................................................... ...............................530

    14.10.4 Image Level Style............................................................................... ....................532

    14.10.5 List Level Style Example................................................................................... .....532

    14.11 Outline Style................................................................................. .................................533

    14.11.1 Outline Level Style........................................................................................... ......533

    14.12 Table Styles.............................................................................. .....................................535

    14.12.1 Table Styles....................................................................................................... ....535

    14.12.2 Table Column Styles.................................................................................... ..........535

    14.12.3 Table Row Styles............................................................................................... ....535

    14.12.4 Table Cell Styles................................................................................................. ...536

    14.13 Graphic Styles........................................................................... ....................................536

    14.13.1 Graphic and Presentation Styles............................................................... ............536

    14.13.2 Drawing Page Style..................................................................... ...........................537

    14.14 Enhanced Graphic Style Elements..................................................... ...........................538

    14.14.1 Gradient........................................................................................... ......................538

    14.14.2 SVG Gradients................................................................................ .......................541

    14.14.3 Hatch................................................................................................................... ..544

    14.14.4 Fill Image........................................................................................................... ....546

    14.14.5 Opacity Gradient..................................................................................... ...............547

    14.14.6 Marker............................................................................................................... ....548

    14.14.7 Stroke Dash................................................................................................... ........548

    14.15 Presentation Page Layouts.................................................................................... .......550

    14.15.1 Presentation Placeholder............................................................................... ........551

    14.16 Chart Styles............................................................................................................ ......551

    15 Formatting Properties.................................................................................... .........................553

    15.1 Simple and Complex Formatting Properties............................................................ ........553

    15.1.1 Simple Formatting Properties............................................................... ...................553

    15.1.2 Complex Formatting Properties................................................................ ...............554

    15.1.3 Processing Rules for Formatting Properties....................................... .....................554

    15.2 Page Layout Formatting Properties.............................................................. ...................554

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 18 of 723

  • 15.2.1 Page Size................................................................................................... ..............555

    15.2.2 Page Number Format.............................................................................. .................555

    15.2.3 Paper Tray........................................................................................................... ....556

    15.2.4 Print Orientation....................................................................... ................................556

    15.2.5 Margins...................................................................................................... ..............556

    15.2.6 Border......................................................................................................... .............557

    15.2.7 Border Line Width................................................................................................... .557

    15.2.8 Padding..................................................................................... ...............................557

    15.2.9 Shadow................................................................................................. ...................557

    15.2.10 Background................................................................................ ............................557

    15.2.11 Columns................................................................................ .................................558

    15.2.12 Register-truth........................................................................................... ..............558

    15.2.13 Print................................................................................................................... ....558

    15.2.14 Print Page Order............................................................................................. .......559

    15.2.15 First Page Number........................................................................................... ......559

    15.2.16 Scale................................................................................................. .....................559

    15.2.17 Table Centering........................................................................................... ..........560

    15.2.18 Maximum Footnote Height....................................................................... ..............560

    15.2.19 Writing Mode......................................................................... .................................561

    15.2.20 Footnote Separator......................................................................................... .......561

    15.2.21 Layout Grid..................................................................................................... .......562

    15.2.22 Layout Grid Base Height................................................................................. .......563

    15.2.23 Layout Grid Ruby Height............................................................. ...........................563

    15.2.24 Layout Grid Lines....................................................................... ............................563

    15.2.25 Layout Grid Color........................................................................... ........................563

    15.2.26 Layout Grid Ruby Below....................................................................................... .563

    15.2.27 Layout Grid Print......................................................................... ...........................564

    15.2.28 Layout Grid Display....................................................................................... ........564

    15.3 Header Footer Formatting Properties............................................................. .................564

    15.3.1 Fixed and Minimum heights........................................................................... ..........565

    15.3.2 Margins................................................................................................. ...................565

    15.3.3 Border......................................................................................................... .............565

    15.3.4 Border Line Width......................................................................................... ...........566

    15.3.5 Padding................................................................................. ...................................566

    15.3.6 Background........................................................................................................... ..566

    15.3.7 Shadow......................................................................................... ...........................566

    15.3.8 Dynamic Spacing........................................................................... ..........................566

    office-spec-1.0-cd-2.sxw 21 December 2004Copyright © OASIS Open 2002 - 2004. All Rights Reserved. Page 19 of 723

  • 15.4 Text Formatting Properties................................................................. .............................567

    15.4.1 Font Variant............................................................................................... ..............567

    15.4.2 Text Transformations....................................................................... ............