office.mod 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <!--
  2. * This file is part of the LibreOffice project.
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. *
  8. * This file incorporates work covered by the following license notice:
  9. *
  10. * Licensed to the Apache Software Foundation (ASF) under one or more
  11. * contributor license agreements. See the NOTICE file distributed
  12. * with this work for additional information regarding copyright
  13. * ownership. The ASF licenses this file to you under the Apache
  14. * License, Version 2.0 (the "License"); you may not use this file
  15. * except in compliance with the License. You may obtain a copy of
  16. * the License at http://www.apache.org/licenses/LICENSE-2.0 .
  17. -->
  18. <!ELEMENT office:document ( office:meta?,
  19. office:settings?,
  20. office:script?,
  21. office:font-decls?,
  22. office:styles?,
  23. office:automatic-styles?,
  24. office:master-styles?,
  25. office:body ) >
  26. <!ATTLIST office:document xmlns:office CDATA #FIXED "&nOffice;">
  27. <!ATTLIST office:document xmlns:meta CDATA #FIXED "&nMeta;">
  28. <!ATTLIST office:document xmlns:script CDATA #FIXED "&nScript;">
  29. <!ATTLIST office:document xmlns:style CDATA #FIXED "&nStyle;">
  30. <!ATTLIST office:document xmlns:text CDATA #FIXED "&nText;">
  31. <!ATTLIST office:document xmlns:table CDATA #FIXED "&nTable;">
  32. <!ATTLIST office:document xmlns:draw CDATA #FIXED "&nDraw;">
  33. <!ATTLIST office:document xmlns:chart CDATA #FIXED "&nChart;">
  34. <!ATTLIST office:document xmlns:number CDATA #FIXED "&nNumber;">
  35. <!ATTLIST office:document xmlns:fo CDATA #FIXED "&nFO;">
  36. <!ATTLIST office:document xmlns:xlink CDATA #FIXED "&nXLink;">
  37. <!ATTLIST office:document xmlns:svg CDATA #FIXED "&nSVG;">
  38. <!ATTLIST office:document xmlns:dc CDATA #FIXED "&nDC;">
  39. <!ATTLIST office:document xmlns:dr3d CDATA #FIXED "&nDr3D;">
  40. <!ATTLIST office:document xmlns:math CDATA #FIXED "&nMath;">
  41. <!ATTLIST office:document xmlns:form CDATA #FIXED "&nForm;">
  42. <!ATTLIST office:document xmlns:config CDATA #FIXED "&nConfig;">
  43. <!ATTLIST office:document xmlns:presentation CDATA #FIXED "&nPresentation;">
  44. <!ATTLIST office:document office:class
  45. (text|text-global|
  46. drawing|presentation|
  47. spreadsheet|chart) #REQUIRED>
  48. <!ATTLIST office:document office:version %string; #IMPLIED>
  49. <!-- document-styles -->
  50. <!ELEMENT office:document-styles (
  51. office:font-decls?,
  52. office:styles?,
  53. office:automatic-styles?,
  54. office:master-styles? ) >
  55. <!ATTLIST office:document-styles xmlns:office CDATA #FIXED "&nOffice;">
  56. <!ATTLIST office:document-styles xmlns:meta CDATA #FIXED "&nMeta;">
  57. <!ATTLIST office:document-styles xmlns:script CDATA #FIXED "&nScript;">
  58. <!ATTLIST office:document-styles xmlns:style CDATA #FIXED "&nStyle;">
  59. <!ATTLIST office:document-styles xmlns:text CDATA #FIXED "&nText;">
  60. <!ATTLIST office:document-styles xmlns:table CDATA #FIXED "&nTable;">
  61. <!ATTLIST office:document-styles xmlns:draw CDATA #FIXED "&nDraw;">
  62. <!ATTLIST office:document-styles xmlns:chart CDATA #FIXED "&nChart;">
  63. <!ATTLIST office:document-styles xmlns:number CDATA #FIXED "&nNumber;">
  64. <!ATTLIST office:document-styles xmlns:fo CDATA #FIXED "&nFO;">
  65. <!ATTLIST office:document-styles xmlns:xlink CDATA #FIXED "&nXLink;">
  66. <!ATTLIST office:document-styles xmlns:svg CDATA #FIXED "&nSVG;">
  67. <!ATTLIST office:document-styles xmlns:dc CDATA #FIXED "&nDC;">
  68. <!ATTLIST office:document-styles xmlns:dr3d CDATA #FIXED "&nDr3D;">
  69. <!ATTLIST office:document-styles xmlns:math CDATA #FIXED "&nMath;">
  70. <!ATTLIST office:document-styles xmlns:form CDATA #FIXED "&nForm;">
  71. <!ATTLIST office:document-styles office:version %string; #IMPLIED>
  72. <!-- document-content -->
  73. <!ELEMENT office:document-content (
  74. office:script?,
  75. office:font-decls?,
  76. office:automatic-styles?,
  77. office:body ) >
  78. <!ATTLIST office:document-content xmlns:office CDATA #FIXED "&nOffice;">
  79. <!ATTLIST office:document-content xmlns:meta CDATA #FIXED "&nMeta;">
  80. <!ATTLIST office:document-content xmlns:script CDATA #FIXED "&nScript;">
  81. <!ATTLIST office:document-content xmlns:style CDATA #FIXED "&nStyle;">
  82. <!ATTLIST office:document-content xmlns:text CDATA #FIXED "&nText;">
  83. <!ATTLIST office:document-content xmlns:table CDATA #FIXED "&nTable;">
  84. <!ATTLIST office:document-content xmlns:draw CDATA #FIXED "&nDraw;">
  85. <!ATTLIST office:document-content xmlns:chart CDATA #FIXED "&nChart;">
  86. <!ATTLIST office:document-content xmlns:number CDATA #FIXED "&nNumber;">
  87. <!ATTLIST office:document-content xmlns:fo CDATA #FIXED "&nFO;">
  88. <!ATTLIST office:document-content xmlns:xlink CDATA #FIXED "&nXLink;">
  89. <!ATTLIST office:document-content xmlns:svg CDATA #FIXED "&nSVG;">
  90. <!ATTLIST office:document-content xmlns:dc CDATA #FIXED "&nDC;">
  91. <!ATTLIST office:document-content xmlns:dr3d CDATA #FIXED "&nDr3D;">
  92. <!ATTLIST office:document-content xmlns:math CDATA #FIXED "&nMath;">
  93. <!ATTLIST office:document-content xmlns:form CDATA #FIXED "&nForm;">
  94. <!ATTLIST office:document-content office:class
  95. (text|text-global|
  96. drawing|presentation|
  97. spreadsheet|chart) #REQUIRED>
  98. <!ATTLIST office:document-content office:version %string; #IMPLIED>
  99. <!-- document-content -->
  100. <!ELEMENT office:document-meta ( office:meta? ) >
  101. <!ATTLIST office:document-meta xmlns:office CDATA #FIXED "&nOffice;">
  102. <!ATTLIST office:document-meta xmlns:meta CDATA #FIXED "&nMeta;">
  103. <!ATTLIST office:document-meta xmlns:script CDATA #FIXED "&nScript;">
  104. <!ATTLIST office:document-meta xmlns:style CDATA #FIXED "&nStyle;">
  105. <!ATTLIST office:document-meta xmlns:text CDATA #FIXED "&nText;">
  106. <!ATTLIST office:document-meta xmlns:table CDATA #FIXED "&nTable;">
  107. <!ATTLIST office:document-meta xmlns:draw CDATA #FIXED "&nDraw;">
  108. <!ATTLIST office:document-meta xmlns:chart CDATA #FIXED "&nChart;">
  109. <!ATTLIST office:document-meta xmlns:number CDATA #FIXED "&nNumber;">
  110. <!ATTLIST office:document-meta xmlns:fo CDATA #FIXED "&nFO;">
  111. <!ATTLIST office:document-meta xmlns:xlink CDATA #FIXED "&nXLink;">
  112. <!ATTLIST office:document-meta xmlns:svg CDATA #FIXED "&nSVG;">
  113. <!ATTLIST office:document-meta xmlns:dc CDATA #FIXED "&nDC;">
  114. <!ATTLIST office:document-meta xmlns:dr3d CDATA #FIXED "&nDr3D;">
  115. <!ATTLIST office:document-meta xmlns:math CDATA #FIXED "&nMath;">
  116. <!ATTLIST office:document-meta xmlns:form CDATA #FIXED "&nForm;">
  117. <!ATTLIST office:document-meta office:version %string; #IMPLIED>
  118. <!ELEMENT office:document-settings (office:settings) >
  119. <!ATTLIST office:document-settings xmlns:office CDATA #FIXED "&nOffice;">
  120. <!ATTLIST office:document-settings xmlns:xlink CDATA #FIXED "&nXLink;">
  121. <!ATTLIST office:document-settings xmlns:config CDATA #FIXED "&nConfig;">
  122. <!ATTLIST office:document-settings office:version %string; #IMPLIED>
  123. <!ENTITY % meta "(meta:generator?,
  124. dc:title?,
  125. dc:description?,
  126. dc:subject?,
  127. meta:initial-creator?,
  128. meta:creation-date?,
  129. dc:creator?,
  130. dc:date?,
  131. meta:printed-by?,
  132. meta:print-date?,
  133. meta:keywords?,
  134. dc:language?,
  135. meta:editing-cycles?,
  136. meta:editing-duration?,
  137. meta:hyperlink-behaviour?,
  138. meta:auto-reload?,
  139. meta:template?,
  140. meta:user-defined*,
  141. meta:document-statistic?)">
  142. <!ELEMENT office:meta %meta;>
  143. <!ENTITY % script "office:script-data*,office:events?">
  144. <!ELEMENT office:script (%script;)>
  145. <!ELEMENT office:script-data (script:libraries*)>
  146. <!ATTLIST office:script-data script:language %string; #REQUIRED>
  147. <!ELEMENT office:font-decls (style:font-decl)*>
  148. <!ENTITY % styles "(style:default-style|style:style|text:list-style|
  149. number:number-style|number:currency-style|number:percentage-style|
  150. number:date-style|number:time-style|number:boolean-style|
  151. number:text-style|
  152. draw:gradient|draw:hatch|draw:fill-image|draw:marker|draw:stroke-dash|
  153. style:presentation-page-layout|draw:transparency)">
  154. <!-- Validity constraint: The elements
  155. text:outline-style,
  156. text:footnotes-configuration,
  157. text:endnotes-configuration,
  158. text:bibliography-configuration and
  159. text:linenumbering-configuration
  160. may appear only once!
  161. Unfortunately, this constraint cannot be easily specified in the DTD.
  162. -->
  163. <!ELEMENT office:styles (%styles;|text:outline-style|
  164. text:footnotes-configuration|text:endnotes-configuration|
  165. text:bibliography-configuration|text:linenumbering-configuration)*>
  166. <!ELEMENT office:automatic-styles (%styles;|style:page-master)*>
  167. <!ELEMENT office:master-styles (draw:layer-set?,style:handout-master?,style:master-page*) >
  168. <!ENTITY % body "(office:forms?,(text:tracked-changes|table:tracked-changes)?,%text-decls;,table:calculation-settings?,table:content-validations?,table:label-ranges?,
  169. (text:h|text:p|text:ordered-list|
  170. text:unordered-list|table:table|draw:page|
  171. draw:a|%shape;|text:section|text:table-of-content|
  172. text:illustration-index|text:table-index|text:object-index|
  173. text:user-index|text:alphabetical-index|text:bibliography|
  174. %change-marks;)*,
  175. table:named-expressions?,
  176. table:database-ranges?,table:data-pilot-tables?,
  177. table:consolidation?,
  178. table:dde-links?,
  179. presentation:settings?)">
  180. <!ELEMENT office:body %body;>
  181. <!ATTLIST office:body table:structure-protected %boolean; "false"
  182. table:protection-key CDATA #IMPLIED>
  183. <!ELEMENT office:events (script:event|presentation:event)*>
  184. <!-- DDE source: for text sections and tables -->
  185. <!ELEMENT office:dde-source EMPTY>
  186. <!ATTLIST office:dde-source office:dde-application CDATA #IMPLIED>
  187. <!ATTLIST office:dde-source office:dde-topic CDATA #IMPLIED>
  188. <!ATTLIST office:dde-source office:dde-item CDATA #IMPLIED>
  189. <!ATTLIST office:dde-source office:automatic-update %boolean; "false">
  190. <!ATTLIST office:dde-source office:name CDATA #IMPLIED>
  191. <!ATTLIST office:dde-source table:conversion-mode (into-default-style-data-style|into-english-number|let-text) "into-default-style-data-style" >
  192. <!-- annotations -->
  193. <!-- limitation: in the current implementation, only plain text inside of
  194. paragraphs is supported -->
  195. <!ELEMENT office:annotation (text:p)*>
  196. <!ATTLIST office:annotation office:author %string; #IMPLIED>
  197. <!ATTLIST office:annotation office:create-date %date; #IMPLIED>
  198. <!ATTLIST office:annotation office:create-date-string %string; #IMPLIED>
  199. <!ATTLIST office:annotation office:display %boolean; "false">
  200. <!ELEMENT office:change-info (text:p)*>
  201. <!ATTLIST office:change-info office:chg-author %string; #REQUIRED>
  202. <!ATTLIST office:change-info office:chg-date-time %timeInstance; #REQUIRED>
  203. <!ELEMENT office:binary-data (#PCDATA)>