1.1.3. Types.xml

The configuration file types.xml defines three parameter and attribute types – units, fonts and colors.

Structure of types.xml

<types xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1
  <colors>2
    <color name="aqua">#00FFFF</color>3       
    <color name="black">#000000</color>  
  </colors>
  <units>4
    <unit>cm</unit>5
    <unit>mm</unit>
  </units> 
  <fonts>6
    <font>serif</font>7
    <font>sans-serif</font>
  </fonts>        
</types>
1

Tag types is a root element and can occur in the file only once. It contains a sequence of tags colors, units and fonts.

2

Tag colors contains a list of predefined colors used by editor.

3

Tag color defines a color by its hexadecimal value #rrggbb (rr is a hexadecimal value of red color component, gg is a hexadecimal value of green color component and bb is a hexadecimal value of blue color component). The argument name defines color name.

4

Tag units contains a list of predefined units used by editor.

5

Tag unit defines a unit by its name.

6

Tag fonts contains a list of predefined fonts used by editor.

7

Tag font defines a font by its name.