Difference between revisions of "SwNodesBNF"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (SwNodes)
m (SwNodes)
Line 18: Line 18:
 
  FooterNd = SwFooterStartNode
 
  FooterNd = SwFooterStartNode
  
<Document> ::= StartNd EndNd StartNd <Footnote content> EndNd StartNd <Special content> EndNd StartNd <Change tracking> EndNd StartNd <Body content> EndNd
+
<Document> ::= StartNd EndNd StartNd <Footnote content> EndNd StartNd <Special content> EndNd StartNd <Change tracking> EndNd StartNd <Content> EndNd
  
<Body content> ::= TextNd | <'Table> | <Section> | <Body content> <Body content>
+
<Content> ::= TextNd | <'Table> | <Section> | <Content> <Content>
 +
 
 +
<'Table> ::= TableNd <Cells> EndNd
 +
 
 +
<Cells> ::= <Cell> | <Cell> <Cells>
 +
 
 +
<Cell> ::= CellNd <Content> EndNd
 +
 
 +
<Section> ::= SectionNd <Content> EndNd
 +
 
 +
<Special content> ::= ....
 +
 
 +
<Footnote content> ::= ....
 +
 
 +
<Change tracking> ::= ....

Revision as of 15:14, 16 November 2007

SwNodes

Let us describe a "well-formed" SwNodes array of a Writer document in Backus-Naur form.

There are the following node types used as "terminal" symbols:

StartNd = SwNormalStartNode
EndNd = SwEndNode
TextNd = SwTxtNode
GrafikNd = SwGrfNode
OLENd = SwOLENode
TableNd = SwTableNode
SectionNd = SwSectionNode
CellNd = SwTableBoxStartNode
FlyNd = SwFlyStartNode
FootnoteNd = SwFootnoteStartNode
HeaderNd = SwHeaderStartNode
FooterNd = SwFooterStartNode

<Document> ::= StartNd EndNd StartNd <Footnote content> EndNd StartNd <Special content> EndNd StartNd <Change tracking> EndNd StartNd <Content> EndNd

<Content> ::= TextNd | <'Table> |

Personal tools