1<!DOCTYPE okularAnnotatingTools>
2<!--
3Tool
4  [id]              {int = unique id identifying the built-in tool}
5  [name]            {string = name of the tool displayed when configuring it}
6  [type]            {highlight, underline, squiggly, strikeout, typewriter, note-inline, note-linked, ink, straight-line, rectangle, ellipse, polygon, stamp}
7
8Engine
9  TextSelector
10    [color]         {RGB HEX}
11  PickPoint
12    [color]         {RGB HEX}
13    [block]         {true=allow click and drag, false=click only}
14    [hoverIcon]     {string or path}
15    [size]          {int = hoover icon size}
16  PolyLine
17    [color]         {RGB HEX}
18    [points]        {-1=arbitrary number of vertex, n=number of vertices}
19
20Annotation
21  Highlight, Underline, Squiggly, StrikeOut
22    [color]         {RGB HEX}
23    [opacity]       {decimal in range [0, 1]}
24  Typewriter
25    [textColor]     {RGB HEX}
26    [opacity]       {decimal in range [0, 1]}
27    [font]          {string as returned by QFont::toString()}
28  FreeText
29    [textColor]     {RGB HEX}
30    [color]         {RGB HEX}
31    [opacity]       {decimal in range [0, 1]}
32    [font]          {string as returned by QFont::toString()}
33  Text
34    [color]         {RGB HEX}
35    [opacity]       {decimal in range [0, 1]}
36    [icon]          {string}
37    [align]         {0=left, 1=center, 2=right}
38  Ink
39    [color]         {RGB HEX}
40    [opacity]       {decimal in range [0, 1]}
41    [width]         {decimal > 0}
42  Line
43    [color]         {RGB HEX}
44    [innerColor]    {RGB HEX}
45    [opacity]       {decimal in range [0, 1]}
46    [width]         {decimal > 0}
47    [startStyle]    {0=Square, 1=Circle, 2=Diamond, 3=Open Arrow, 4=Closed Arrow,
48                     5=None, 6=Butt, 7=Right Open Arrow, 8=Right Closed Arrow, 9=Slash}
49    [endStyle]      {same of [startStyle]}
50    [leadFwd]       {decimal > 0}
51    [leadBack]      {decimal > 0}
52  GeomSquare, GeomCircle
53    [color]         {RGB HEX}
54    [innerColor]    {RGB HEX}
55    [opacity]       {decimal in range [0, 1]}
56    [width]         {decimal > 0}
57  Stamp
58    [icon]          {string or path}
59-->
60<annotatingTools>
61    <tool id="1" type="highlight">
62        <engine type="TextSelector" color="#ffff00">
63            <annotation type="Highlight" color="#ffffff00" />
64        </engine>
65    </tool>
66    <tool id="2" type="underline">
67        <engine type="TextSelector" color="#ff0000">
68            <annotation type="Underline" color="#ffff0000" />
69        </engine>
70    </tool>
71    <tool id="3" type="squiggly">
72        <engine type="TextSelector" color="#ff0000">
73            <annotation type="Squiggly" color="#ffff0000" />
74        </engine>
75    </tool>
76    <tool id="4" type="strikeout">
77        <engine type="TextSelector" color="#ff0000">
78            <annotation type="StrikeOut" color="#ffff0000" />
79        </engine>
80    </tool>
81    <tool id="5" type="typewriter">
82        <engine type="PickPoint" block="true">
83            <annotation type="Typewriter" color="#00ffffff" textColor="#000000" width="0"
84                        font="Noto Sans,10,-1,5,50,0,0,0,0,0,Regular"/>
85        </engine>
86    </tool>
87    <tool id="6" type="note-inline">
88        <engine type="PickPoint" color="#ffff00" hoverIcon="tool-note-inline" block="true">
89            <annotation type="FreeText" color="#ffffff00"
90                        font="Noto Sans,10,-1,5,50,0,0,0,0,0,Regular"/>
91        </engine>
92    </tool>
93    <tool id="7" type="note-linked">
94        <engine type="PickPoint" color="#ffff00" hoverIcon="tool-note">
95            <annotation type="Text" color="#ffffff00" icon="Note" />
96        </engine>
97    </tool>
98    <tool id="8" type="ink">
99        <engine type="SmoothLine" color="#00ff00">
100            <annotation type="Ink" color="#ff00ff00" width="2" />
101        </engine>
102    </tool>
103    <tool id="9" type="straight-line" name="Arrow">
104        <engine type="PolyLine" color="#000000" points="2">
105            <annotation type="Line" width="2" endStyle="3" color="#ff000000" />
106        </engine>
107    </tool>
108    <tool id="10" type="straight-line">
109        <engine type="PolyLine" color="#000000" points="2">
110            <annotation type="Line" width="2" color="#ff000000" />
111        </engine>
112    </tool>
113    <tool id="11" type="rectangle">
114        <engine type="PickPoint" color="#ff0000" block="true">
115            <annotation type="GeomSquare" width="3" color="#ffff0000" />
116        </engine>
117    </tool>
118    <tool id="12" type="ellipse">
119        <engine type="PickPoint" color="#00ffff" block="true">
120            <annotation type="GeomCircle" width="3" color="#ff00ffff" />
121        </engine>
122    </tool>
123    <tool id="13" type="polygon">
124        <engine type="PolyLine" color="#007eee" points="-1">
125            <annotation type="Line" width="2" color="#ff007eee" />
126        </engine>
127    </tool>
128    <tool id="14" type="stamp">
129        <engine type="PickPoint" size="64" block="true">
130            <annotation type="Stamp"/>
131        </engine>
132    </tool>
133</annotatingTools>
134