[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kpresenter/dtd
From:       David Faure <faure () kde ! org>
Date:       2003-04-02 15:38:56
[Download RAW message or body]

CVS commit by faure: 

STYLES were not documented at all!
Added STYLES, STYLE, FORMAT (help needed for that one, I'd like to avoid duplicating
all the attributes of the TEXT element - can an entity be used for that?).


  M +33 -2     kpresenter.dtd   1.65


--- koffice/kpresenter/dtd/kpresenter.dtd  #1.64:1.65
@@ -31,5 +31,5 @@
                 mime:           The MIME type (must always have the value \
                application/x-kpresenter)
 -->
-<!ELEMENT DOC (PAPER | BACKGROUND | VARIABLESETTINGS | HEADER | FOOTER | PAGETITLES \
| PAGENOTES | OBJECTS | INFINITLOOP | MANUALSWITCH | PRESSPEED | PIXMAPS | SELSLIDES \
| PICTURES | PIXMAPS | CLIPARTS | SHOWPRESENTATIONDURATION | HELPLINES | \
SPELLCHECKIGNORELIST)* > +<!ELEMENT DOC (PAPER | BACKGROUND | VARIABLESETTINGS | \
HEADER | FOOTER | PAGETITLES | PAGENOTES | OBJECTS | INFINITLOOP | MANUALSWITCH | \
PRESSPEED | PIXMAPS | SELSLIDES | STYLES | PICTURES | PIXMAPS | CLIPARTS | \
SHOWPRESENTATIONDURATION | HELPLINES | SPELLCHECKIGNORELIST)* >  <!ATTLIST DOC   \
author CDATA #IMPLIED  email CDATA #IMPLIED
@@ -298,4 +298,6 @@
                         chr             CDATA #REQUIRED>
 
+<!ENTITY % layout "TEXT|COUNTER|INDENTS|OFFSETS|LINESPACING|LEFTBORDER|RIGHTBORDER|TOPBORDER|BOTTOMBORDER|TABULATOR*|SHADOW|NAME">
 +
 <!--    Describes a paragraph in a text object
 
@@ -306,5 +308,5 @@
                 depth   list depth
 -->
-<!ELEMENT P  (TEXT|COUNTER|INDENTS|OFFSETS|LINESPACING|LEFTBORDER|RIGHTBORDER|TOPBORDER|BOTTOMBORDER|TABULATOR|SHADOW|NAME)*>
 +<!ELEMENT P (%layout;)*>
 <!ATTLIST P
                 align   NMTOKEN #REQUIRED
@@ -664,4 +666,33 @@
 <!ELEMENT LINETYPE EMPTY >
 <!ATTLIST LINETYPE value NMTOKEN #REQUIRED >
+
+<!--
+        A style is a global setting that is used for all paragraphs which use that
+        style. As the markup is stored in one place (the style) changing the markup
+        throughout the document is simply a task of changing one or two styles.
+        Highly recommended for structured documents.
+
+        A style element contains the same child elements as the P tag
+        (all the paragraph properties), as well as a text format in the FORMAT tag.
+        It also contains the name of the following style, i.e. the one used when
+        the user presses Enter in a paragraph using this style.
+
+        Attributes:
+          outline   if "true", this style is part of the Table Of Contents.
+                    (by default it is not).
+-->
+<!ELEMENT STYLES
+    (STYLE*)>
+<!ELEMENT STYLE
+    (%layout;|FORMAT|FOLLOWING)*>
+<!ATTLIST STYLE
+    outline CDATA #IMPLIED>
+
+<!-- Description of text format inside a style -->
+<!ELEMENT FORMAT EMPTY>
+<!ATTLIST FORMAT
+    <!-- The exact same attributes as TEXT can have.
+         Is it possible to define an entity for a list of attributes? -->
+>
 
 <!ELEMENT PICTURES ( KEY* ) >


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic