XML Description of layouts for the HPS
======================================

If you want to create layout templates for the HPS, all you have to do is
to write down some XML. Layout previews will be rendered by the 
HPS itself, based on your XML definition.

This is how to do it:

Basically, you need a file, which contains a list of templates, 
embedded in a <templates> tag.

Each template is defined by a <template> tag. It includes the following 
attributes:
- type: "invisible"/"fotobook", invisible templates will not be avaliable
  in the template selection box
- name: some freetext which blesses the template by a certain name,
  which is displayed in the template selection box
- category: "titlepage"/"layout" Titlepages are cover pages, Layouts
  are normal layout templates
- autoThumb: "layout"/none. If this is autoThumb, the thumbnail in the
  template selection box is rendered automatically as a layout template
- default: "yes"/"no". The default template is chosen when a new page
  is created

Furthermore, <template> may have some children tags:
- <total> describes the total size of the layout page (in pixels).
 Size is given in "width" and "height" attributes.
- <imagearea> describes an area where an image can be placed
- <textarea> describes an area where a text can be placed

Areas are defined by the 4 integer values "top" "left" "bottom" and "right",
who define the borders of the widgets. You may also say ("top"/"left") 
defines the topleft point etc.

That's it.
Have fun, Ralf Wirth.



