Sophie

Sophie

distrib > Mandriva > 9.2 > i586 > by-pkgid > 0453bcaf7bb5ad036996f9b24ca9fa16 > files > 135

gaby-2.0.2-4mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>The XML file</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Gaby's documentation"
HREF="index.html"><LINK
REL="UP"
TITLE="Printing"
HREF="c898.html"><LINK
REL="PREVIOUS"
TITLE="Architecture"
HREF="x906.html"><LINK
REL="NEXT"
TITLE="The Python script"
HREF="x944.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Gaby's documentation</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x906.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 12. Printing</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x944.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN912"
>12.3. The XML file</A
></H1
><P
>The purpose of the XML file is to describe the contents of a notebook window,
giving each page a purpose and some widgets.</P
><P
>I'll try to talk about each aspect of the xml file but you should really read
current plug-ins.</P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN916"
>12.3.1. The tags</A
></H2
><P
>&lt;pages&gt; ... &lt;/pages&gt;: everything is enclosed in this tag</P
><P
>&lt;page label="XXXX" type="YYYY"&gt; ... &lt;/page&gt;: enclosed in &lt;pages&gt; &lt;/pages&gt;,
those tags describe one page with a label 'XXXX' of type 'YYYY'.</P
><P
>The following types are possible:</P
><P
></P
><UL
><LI
><P
>fields: a page with a list to select fields.
   It can enclose the following tags:
   <P
></P
><UL
><LI
><P
>     &lt;name&gt;xxxx&lt;/name&gt;: will identify the 'result' in the script
     </P
></LI
><LI
><P
>     &lt;selection&gt;nnn&lt;/selection&gt;: default selection for the list
     nnn should be a number or 'all' (meaning every fields selected)
     it is also possible to select a range of fields starting from
     the end of the list with &lt;selection type="last"&gt;nnn&lt;/selection&gt;
     </P
></LI
></UL
></P
></LI
><LI
><P
>records: a page to specify which records are to be printed.
    Enclosing: &lt;name&gt;xxxx&lt;/name&gt;: (same purpose)</P
></LI
><LI
><P
> order: a page to specify how to sort the records
    Enclosing: &lt;name&gt;xxxx&lt;/name&gt;: (same purpose)</P
></LI
><LI
><P
>misc: a page without a predefined purpose, enclosing different widgets.
    Enclosing:
    <P
CLASS="LITERALLAYOUT"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;widget&nbsp;label="xxxx"&nbsp;type="yyyy"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;name&gt;zzzz&lt;/name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/widget&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;</P
>
    with:
    <P
></P
><UL
><LI
><P
>    xxxx: label before the widget (or for the widget if == label)
    </P
></LI
><LI
><P
>     yyyy: filesel (File selection), label, checkbox, entry
    </P
></LI
><LI
><P
>     zzzz: (same purpose)
    </P
></LI
></UL
></P
></LI
></UL
><P
>Once again: refer to the existing plug-ins (and to gaby source code) for
examples and explanations. (or send me a mail)</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x906.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x944.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Architecture</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c898.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>The Python script</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>