Difference between revisions of "SwNodesBNF"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Writer document nodes array in Backus-Naur form)
 
m (SwNodes)
Line 5: Line 5:
 
There are the following node types used as "terminal" symbols:
 
There are the following node types used as "terminal" symbols:
  
  SwNormalStartNode
+
  StartNd = SwNormalStartNode
  SwEndNode
+
  EndNd = SwEndNode
  SwTxtNode
+
  TextNd = SwTxtNode
  SwGrfNode
+
  GrafikNd = SwGrfNode
  SwOLENode
+
  OLENd = SwOLENode
  SwTableNode
+
  TableNd = SwTableNode
  SwSectionNode
+
  SectionNd = SwSectionNode
  SwTableBoxStartNode
+
  CellNd = SwTableBoxStartNode
  SwFlyStartNode
+
  FlyNd = SwFlyStartNode
  SwFootnoteStartNode
+
  FootnoteNd = SwFootnoteStartNode
  SwHeaderStartNode
+
  HeaderNd = SwHeaderStartNode
  SwFooterStartNode
+
  FooterNd = SwFooterStartNode
 +
 
 +
<Document> ::= StartNd EndNd StartNd <Footnote content> EndNd StartNd <Special content> EndNd StartNd <Change tracking> EndNd StartNd <Body content> EndNd
 +
 
 +
<Body content> ::= TextNd | <'Table> | <Section> | <Body content> <Body content>

Revision as of 15:09, 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 <Body content> EndNd

<Body content> ::= TextNd | <'Table> |

Personal tools