-
Notifications
You must be signed in to change notification settings - Fork 0
/
BatchTask.inx
175 lines (172 loc) · 7.22 KB
/
BatchTask.inx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>BatchTask</name>
<id>org.inkscape.batch_task</id>
<param name="tab_main" type="notebook">
<page name="Options" gui-text="Options">
<param name="target" type="optiongroup" appearance="radio" gui-text="XPath upon:">
<option value="root">Entire document</option>
<option value="selected">Only selected objects</option>
</param>
<param name="xpath" type="string" gui-text="XPath:"></param>
<param name="tab_effect" type="notebook">
<page name="Preset" gui-text="Presets">
<param name="effect_preset1" type="optiongroup" appearance="combo" gui-text="Preset effect 1:">
<option value="">Do nothing</option>
<option value="EditDuplicate">EditDuplicate</option>
<option value="EditDelete">EditDelete</option>
<option value="SelectionGroup">SelectionGroup</option>
<option value="SelectionUnGroup">SelectionUnGroup</option>
<option value="SelectionRaise">SelectionRaise</option>
<option value="SelectionLower">SelectionLower</option>
<option value="SelectionToFront">SelectionToFront</option>
<option value="SelectionToBack">SelectionToBack</option>
<option value="org.inkscape.color.brighter">Brighter</option>
<option value="org.inkscape.color.darker">Darker</option>
</param>
<param name="effect_preset2" type="optiongroup" appearance="combo" gui-text="Preset effect 2:">
<option value="">Do nothing</option>
<option value="EditDuplicate">EditDuplicate</option>
<option value="EditDelete">EditDelete</option>
<option value="SelectionGroup">SelectionGroup</option>
<option value="SelectionUnGroup">SelectionUnGroup</option>
<option value="SelectionRaise">SelectionRaise</option>
<option value="SelectionLower">SelectionLower</option>
<option value="SelectionToFront">SelectionToFront</option>
<option value="SelectionToBack">SelectionToBack</option>
<option value="org.inkscape.color.brighter">Brighter</option>
<option value="org.inkscape.color.darker">Darker</option>
</param>
<param name="effect_preset3" type="optiongroup" appearance="combo" gui-text="Preset effect 3:">
<option value="">Do nothing</option>
<option value="EditDuplicate">EditDuplicate</option>
<option value="EditDelete">EditDelete</option>
<option value="SelectionGroup">SelectionGroup</option>
<option value="SelectionUnGroup">SelectionUnGroup</option>
<option value="SelectionRaise">SelectionRaise</option>
<option value="SelectionLower">SelectionLower</option>
<option value="SelectionToFront">SelectionToFront</option>
<option value="SelectionToBack">SelectionToBack</option>
<option value="org.inkscape.color.brighter">Brighter</option>
<option value="org.inkscape.color.darker">Darker</option>
</param>
</page>
<page name="Simple" gui-text="Simple">
<param name="effect_simple1" type="string" gui-text="Effect 1:"></param>
<param name="effect_simple2" type="string" gui-text="Effect 2:"></param>
<param name="effect_simple3" type="string" gui-text="Effect 3:"></param>
</page>
<page name="Multi" gui-text="Multi">
<param name="effect_multi" type="string" gui-text="Effects:" max-length="200" appearance="multiline"></param>
</page>
</param>
<!-- <param type="string" name="varname" gui-text="label" indent="1" max-length="5" appearance="multiline">some text</param> -->
<!-- <param name="param_str2" type="string" gui-text="Effects:" [max-length="5" | appearance="multiline"]></param> -->
<!-- <param type="string" name="varname" gui-text="label" [indent="1"] [max-length="5" | appearance="multiline"]>some text</param> -->
<param name="mode" type="optiongroup" appearance="radio" gui-text="Apply effects to:">
<option value="all">Entire selection</option>
<option value="indiv">Each object in selection</option>
</param>
</page>
<page name="Help" gui-text="Help">
<label xml:space="preserve">
This template provides extension writers with a basis to write their python based Inkscape extensions quickly and properly.
This testing help text can be changed to help users of the extension.
</label>
</page>
<page name="null_Reference" gui-text="Reference"><!--REFERENCE START -->
<param name="null" type="notebook">
<page name="null" gui-text="Edit">
<label xml:space="preserve">
EditCut
EditCopy
EditPaste</label>
<separator />
<label xml:space="preserve">EditDuplicate
EditClone
SelectionCreateBitmap</label>
<separator />
<label xml:space="preserve">EditDelete</label>
</page>
<page name="null" gui-text="Layer">
<label xml:space="preserve">
LayerNew
LayerRename</label>
</page>
<page name="null" gui-text="Objects">
<label xml:space="preserve">
SelectionGroup
SelectionUnGroup</label>
<separator />
<label xml:space="preserve">ObjectSetClipPath
ObjectUnSetClipPath
ObjectSetMask
ObjectUnSetMask</label>
<separator />
<label xml:space="preserve">SelectionRaise
SelectionLower
SelectionToFront
SelectionToBack</label>
</page>
<page name="null" gui-text="Objects 2">
<label xml:space="preserve">
ObjectRotate90
ObjectRotate90CCW
ObjectFlipHorizontally
ObjectFlipVertically</label>
<separator />
<label xml:space="preserve">UnhideAll
UnhideAllInAllLayers
UnlockAll
UnlockAllInAllLayers</label>
</page>
<page name="null" gui-text="Path">
<label xml:space="preserve">
SelectionUnion
SelectionDiff
SelectionIntersect</label>
<separator />
<label xml:space="preserve">SelectionSymDiff
SelectionDivide
SelectionCutPath</label>
<separator />
<label xml:space="preserve">SelectionCombine
SelectionBreakApart</label>
<separator />
<label xml:space="preserve">SelectionInset
SelectionOffset
SelectionReverse</label>
</page>
<page name="null" gui-text="Text">
<label xml:space="preserve">
SelectionTextToPath
SelectionTextFromPath
SelectionTextRemoveKerns</label>
</page>
<page name="null" gui-text="Filters">
<label xml:space="preserve">
Color
org.inkscape.color.brighter
org.inkscape.color.darker
org.inkscape.color.grayscale
org.inkscape.color.black_and_white</label>
</page>
<page name="null" gui-text="Extensions">
<label xml:space="preserve">
EffectLast</label>
</page>
</param>
<!-- REFERENCE END -->
</page>
</param>
<param name="dry_run" type="bool" gui-text="Dry run">true</param>
<effect>
<!--object-type>path</object-type-->
<effects-menu>
<submenu name="Custom"/>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">BatchTask.py</command>
</script>
</inkscape-extension>