summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/model.xml
diff options
context:
space:
mode:
authorHenning Brinkmann <hbrinkm@openoffice.org>2007-06-27 07:19:41 +0000
committerHenning Brinkmann <hbrinkm@openoffice.org>2007-06-27 07:19:41 +0000
commit573b41486e5b5e31b7ac1189dd72ede67c8e351a (patch)
tree664d332f457259319ea260a78165442a6319fcf9 /writerfilter/source/ooxml/model.xml
parent9285771d96c8dd74e32e26e33e09fabb3f90d89d (diff)
documentation, table grid
Diffstat (limited to 'writerfilter/source/ooxml/model.xml')
-rw-r--r--writerfilter/source/ooxml/model.xml190
1 files changed, 11 insertions, 179 deletions
diff --git a/writerfilter/source/ooxml/model.xml b/writerfilter/source/ooxml/model.xml
index 872dd0970de2..1dc72a5479fd 100644
--- a/writerfilter/source/ooxml/model.xml
+++ b/writerfilter/source/ooxml/model.xml
@@ -1,182 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
- <!--
-= Format of <resource> elements =
-
-A <resource> element A always refers to exactly one <define>
-element inside the parent <namespace> element of A.
-
-In the following XPath expressions are used to denote class
-names etc. <resource> is denoted as the current resource node
-<resource name="name">. <define> is denoted as the current
-define node <define name="name">.
-
-For each <define> whose name starts with 'CT_' or 'EG_' a
-class OOXMLContext.<define>/@name is generated. This class is
-directly or indirectly derived from OOXMLContext. If there is
-a <resource> for a certain <define> the according class
-OOXMLContext.<define>/@name is derived from
-OOXMLContext.<resource>/@resource. The latter in turn is then
-derived from OOXMLContext. If there is no <resource> for
-<define> the generated class is derived directly from
-OOXMLContext (see OOXMLContext.hxx).
-
-For each <define> whose name starts with 'ST_' a class
-OOXML.<define>/@name.Value is generated. This class is
-directly or indirectly derived from OOXMLValue. If there is a
-<resource> for a certain <define> the according class
-OOXML.<define>/@named.Value is derived from
-OOXML.<resource>/@resource.Value. The latter is in turn
-derived from OOXMLValue. If there is no <resource> for
-<define> the generated class is derived directly from
-OOXMLValue (see OOXMLContext.hxx).
-
-Attribute Meaning
-====================================================================
-name the name of the <define> the <resource> references to.
-
-resource the resource for the <define>
-
- A class OOXMLContext.<define>/@name will be
- generated that is derived from
- OOXMLContext.<resource>/@resource
-
-generated denotes, that this <resource> is automatically generated.
-
-
-== Elements with special semantics ==
-
-=== Elements of <resource>[@resource = 'Properties'] ====
-
-The <define> represents a property set (aka a Properties
-resource in the WW8ResourceModel). The according class
-OOXMLContext.<define>/@name gathers the properties. The
-function OOXMLContextProperties::newProperty inserts a
-property to the set. When being resolved the class
-OOXMLContext.<define>/@name sends the properties to handler.
-
-Element Attribute
- Meaning
-====================================================================
-sprm name
-
- associates <define>/rng:element[@name=name] to this entry
-
- tokenid
-
- When being resolved OOXMLContext.<define>/@name
- sends an event sprm(@tokenid, value) to the
- handler.
-
-attribute name
-
- associates <define>/rng:attribute[@name=name] to this entry
-
- tokenid
-
- When being resolved OOXMLContext.<define>/@name
- sends an event attribute(@tokenid, value) to the
- handler.
-
-=== Elemets of <resource>[@name='Table'] ===
-
-The <define> represents a table in the sense of the
-WW8ResourceModel, e.g. the style sheet, the font table. A
-class OOXMLContext.<define>/@name will be created that is
-derived from OOXMLContextTable. When being resolved the class
-OOXMLContext.<define>/@name sends an entry event to the
-according handler.
-
-Attribute Meaning
-====================================================================
-tokenid When being resolved the class will send an
- entry(@tokenid, ...) to the handler
-
-
-=== Elements of <resource>[@name='List'] ===
-
-The <define> represents a value in the sense of the resource
-model. The <value> elements of the <define> define possible
-instances of this value. A class OOXML.<define>/@name.Value is
-generated. The constructor of this class takes the instance of
-the value and sets the mnValue member of the class to the
-token id defined by the <value> elements of the <resource>.
-
-Element Attribute/content
- Meaning
-====================================================================
-value tokenid
-
- the token id to use for this value
-
- content
-
- the value from the according <define>//<value>
-
-=== Elements of <resource>[@resource='XNote'] ===
-
-These elements are a special case kind of
-<resource>[@resource='Stream']>. They represent
-footnotes/endnotes and comments. The resulting class has a
-property set for the attributes that is resolved when reading
-the start tag is finished.
-
-Element Attribute/content
- Meaning
-====================================================================
-attribute name
-
- links to the <rng:attribute> in <define> with the same @name.
-
- tokenid
-
- an attribute @name in the start tag for <define>
- is sent by attribute(@tokenid, value) to the
- according handler.
-
- action="checkId"
-
- when the attribute @name is read checkId(value)
- is called on the context for <define>.
-
-
-== Actions ==
-
-If there are <action> elements present in a <resource> the follwing actions
-will be carried out:
-
-
-Element Attribute/content
- Meaning
-====================================================================
-name the name of the action:
-
- - start The action is carried out in the startAction method of
- the context
- - end The action is carried out in the endAction method of
- the context.
- - characters The action is carried out in the characters method
- of the context.
-
-action the action to carry out
-
- - handleHdrFtr handle headers and footers
- - setLastParagraphInSection set lastParagraphInSection flag in
- parser state
- - text send text of current run to handler
- - ftnednref send footnote/endnote reference character
- - ftnednsep send footnote/endnote separation character
- - ftmedncont send footnote/endnote continuation character
- - pgNum send page number character
- - endOfParagraph send end of paragraph
- - tab send tab character
- - startCharacterGroup call startCharacterGroup on context
- - endCharacterGroup call endCharacterGroup on context
- - startParagraphGroup call startParagraphGroup on context
- - endParagraphGroup call endParagraphGroup on context
- - startSectionGroup call startSectionGroup on context
- - endSectionGroup call endSectionGroup on context
-
- -->
<model xmlns:rng="http://relaxng.org/ns/structure/1.0">
<namespace-alias name="http://schemas.openxmlformats.org/drawingml/2006/main" alias="drawingml"/>
<namespace-alias name="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" alias="wordprocessingDrawing"/>
@@ -15179,6 +15001,13 @@ action the action to carry out
<attribute name="w" tokenid="ooxml:CT_TblWidth_w"/>
<attribute name="type" tokenid="ooxml:CT_TblWidth_type"/>
</resource>
+ <resource name="CT_TblGridCol" resource="IntegerValue"/>
+ <resource name="CT_TblGridBase" resource="Properties">
+ <sprm name="gridCol" tokenid="ooxml:CT_TblGridBase_gridCol"/>
+ </resource>
+ <resource name="CT_TblGrid" resource="Properties">
+ <sprm name="tblGridChange" tokenid="ooxml:CT_TblGrid_tblGridChange"/>
+ </resource>
<resource name="CT_TcBorders" resource="Properties">
<kind name="table"/>
<sprm name="top" tokenid="ooxml:CT_TcBorders_top"/>
@@ -15281,7 +15110,10 @@ action the action to carry out
<kind name="table"/>
<sprm name="tblPrChange" tokenid="ooxml:CT_TblPr_tblPrChange"/>
</resource>
- <resource name="CT_Tbl" resource="TextTable"/>
+ <resource name="CT_Tbl" resource="TextTable">
+ <action name="start" action="endParagraphGroup"/>
+ <action name="start" action="sendTableDepth"/>
+ </resource>
<resource name="ST_FtnPos" resource="List">
<value tokenid="ooxml:Value_ST_FtnPos_pageBottom">pageBottom</value>
<value tokenid="ooxml:Value_ST_FtnPos_beneathText">beneathText</value>