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

List:       kde-commits
Subject:    extragear/office/doc/tellico
From:       Robby Stephenson <robby () periapsis ! org>
Date:       2010-11-14 23:56:25
Message-ID: 20101114235625.6054AAC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1197135 by rstephenson:

update information on field enum values and properties in the xml

 M  +22 -5     hacking.docbook  


--- trunk/extragear/office/doc/tellico/hacking.docbook #1197134:1197135
@@ -23,8 +23,8 @@
 <programlisting>
 <![CDATA[
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE tellico PUBLIC "-//Robby Stephenson/DTD Tellico V9.0//EN" \
                "http://periapsis.org/tellico/dtd/v9/tellico.dtd">
-<tellico xmlns="http://periapsis.org/tellico/" syntaxVersion="9">
+<!DOCTYPE tellico PUBLIC "-//Robby Stephenson/DTD Tellico V11.0//EN" \
"http://periapsis.org/tellico/dtd/v11/tellico.dtd"> +<tellico \
xmlns="http://periapsis.org/tellico/" syntaxVersion="11">  <collection title="My \
Books" type="2">  </collection>
 </tellico>
@@ -52,7 +52,9 @@
   <fields>
    <field flags="8" title="Title" category="General" format="1" type="1" \
name="title" />  <field flags="7" title="Author" category="General" format="2" \
                type="1" name="author" />
-   <field flags="2" title="Binding" category="General" \
allowed="Hardback;Paperback;Trade Paperback;E-Book;Magazine;Journal" format="4" \
type="3" name="binding" /> +   <field flags="2" title="Binding" category="General" \
allowed="Hardback;Paperback;Trade Paperback;E-Book;Magazine;Journal" format="4" \
type="3" name="binding" > +    <prop name="default">Paperback</prop>
+   </field>
    <field flags="6" title="Publisher" category="Publishing" format="0" type="1" \
name="publisher" />  <field flags="4" title="Edition" category="Publishing" \
format="0" type="1" name="edition" />  <field flags="3" title="Copyright Year" \
category="Publishing" format="4" type="6" name="cr_year" /> @@ -62,6 +64,14 @@
    <field flags="7" title="Keywords" category="Classification" format="0" type="1" \
name="keyword" />  <field flags="0" title="Front Cover" category="Front Cover" \
format="4" type="10" name="cover" />  <field flags="0" title="Comments" \
category="Personal" format="4" type="1" name="comments" /> +   <field title="Rating" \
flags="2" category="Personal" format="4" type="14" name="rating"> +    <prop \
name="maximum">5</prop> +    <prop name="minimum">1</prop>
+   </field>
+   <field title="ID" flags="32" category="Personal" format="4" type="6" name="id">
+    <prop name="template">%{@id}</prop>
+   </field>
+
   </fields>
 ]]>
 </programlisting>
@@ -71,8 +81,13 @@
 </para>
 
 <para>
-A <markup>&lt;field&gt;</markup> element with a name attribute equal to \
<emphasis>_default</emphasis> tells &appname; to include all the default fields for \
that collection type. +Field properties are used for setting default field values, \
rating value ranges, derived value templates, etc. The examples above include a \
default value, a maximum rating value, and a template for a derived ID field.  \
</para> +
+<para>
+
+</para>
+
 </sect3>
 
 <sect3 id="entries-xml-data">
@@ -219,12 +234,14 @@
 <row><entry>Allow Grouping</entry><entry><constant>0x02</constant></entry></row>
 <row><entry>Allow Completion</entry><entry><constant>0x04</constant></entry></row>
 <row><entry><emphasis>Disallow \
Deleting</emphasis></entry><entry><constant>0x08</constant></entry></row> \
+<row><entry><emphasis>Disallow \
Editing</emphasis></entry><entry><constant>0x10</constant></entry></row> \
+<row><entry>Derived Value</entry><entry><constant>0x20</constant></entry></row>  \
</tbody>  </tgroup>
 </table>
 
 <para>
-The format of the field is given in the format attribute on the field element. \
<emphasis>Date Formatting</emphasis> is not currently used. Grouping by \
<emphasis>People</emphasis> uses all the fields which use <emphasis>Name \
Formatting</emphasis>. +The format of the field is given in the format attribute on \
the field element. <emphasis>Date Formatting</emphasis> is not currently used. \
Grouping by <emphasis>People</emphasis> uses all the fields which use <emphasis>Name \
Formatting</emphasis>. Setting the <emphasis>Derived Value</emphasis> flag implies \
the value for the field is generated from the template property from other field \
values.  </para>
 
 <table>


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

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