23
The "export" collection provides scripts to export content from KWord.
25
<collection name="export" text="Export" comment="Export content">
26
<script text="Text or HTML File" comment="Python script to export content to a text or html file"
29
file="extensions/exportfile.py" />
30
<script text="ReportLab.org PDF" comment="Python script to export content to a PDF file using ReportLab.org"
33
file="extensions/kwreportlab.py" />
19
37
The "tools" collection provides misc example scripts to demonstrate
20
38
parts of the KWord scripting functionality.
30
48
file="extensions/doctree.rb" />
49
<script text="Online Help" comment="Python script that uses the KHTML Part to display the KWord Scripting online help"
52
file="extensions/onlinehelp.py" />
56
The "variables" collection provides scripting variables to KWord. Those
57
scripting variables are displayed in the Insert=>Variable menu and
58
they are able to map functions like to get the variable content or to
59
create an options widget for a variable from within scripts.
60
<collection name="variables" text="Variables" comment="Scripting variables for KWord" enabled="false">
61
This script reads the value of a variable from an external file.
62
<script text="Read From File..." comment="Python script to read a variable from a file"
63
name="pyvariablereadfile"
65
file="variables/variable_readfile.py">
66
This is the default value the variable has.
67
<property name="value">The Value</property>
68
Map a getValue-request to a scripting function.
69
<property name="getValue">callbackGetValue</property>
70
Map a createOptionsWidget-request to a scripting function.
71
<property name="createOptionsWidget">callbackCreateOptionsWidget</property>
34
77
The "samples" collection provides misc example scripts to demonstrate
35
78
parts of the KWord scripting functionality.
37
80
<collection name="samples" text="Samples" comment="Samples to demonstrate scripting with KWord" enabled="false">
81
<script text="Insert Shape..." comment="Python script to insert a shape"
82
name="pysampleinsertshape"
84
file="samples/sample_insertshape.py" />
85
<script text="Control Cursor..." comment="Ruby script that demonstrates how to control the cursor"
88
file="samples/sample_cursor.rb" />
89
<script text="Execute Action..." comment="Python script that demonstrates usage of actions"
90
name="pysampleactions"
92
file="samples/sample_actions.py" />
93
<script text="Tool Actions..." comment="Python script that demonstrates usage of tool actions"
94
name="pysampletoolactions"
96
file="samples/sample_toolactions.py" />
38
97
<script text="Progressbar" comment="Python script that demonstrates how to use the progressbar"
39
98
name="pysampleprogressbar"
40
99
interpreter="python"
41
100
file="samples/sample_progressbar.py" />
101
<script text="Text" comment="Python script that demonstrates usage of the text engine"
104
file="samples/sample_text.py" />
105
<script text="Lists with HTML" comment="Python script that demonstrates how to create lists with HTML"
106
name="pysamplelisthtml"
107
text="Lists with HTML"
109
file="samples/sample_lists_html.py" />
110
<script text="Lists with Cursor" comment="Python script that demonstrates how to create lists with a cursor"
111
name="pysamplelistcursor"
113
file="samples/sample_lists_cursor.py" />
114
<script text="Tables" comment="Python script that demonstrates how to deal with tables"
115
name="pysampletables"
117
file="samples/sample_tables.py" />
118
<script text="Variables" comment="Python script that demonstrates how to handle variables"
119
name="pysamplevariables"
121
file="samples/sample_variables.py" />
122
<script text="All Shapes" comment="Python script adds all shapes"
123
name="pysampleallshapes"
125
file="samples/sample_allshapes.py" />