1 <?xml version="1.0" encoding="UTF-8"?>
2 <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
3 <_name>Set Attributes</_name>
4 <id>org.inkscape.web.set-att</id>
5 <dependency type="executable" location="extensions">web-set-att.py</dependency>
6 <dependency type="executable" location="extensions">inkex.py</dependency>
7 <_param name="intro" type="description">This effect adds a feature visible (or usable) only on a SVG enabled web browser (like Firefox).</_param>
8 <_param name="sep1" type="description">••••••••••••••••••••••••••••••••••••••••••••••••</_param>
9 <_param name="help" type="description">This effect sets one or more attributes in the second selected element, when a defined event occurs on the first selected element.</_param>
10 <_param name="sep2" type="description">••••••••••••••••••••••••••••••••••••••••••••••••</_param>
11 <_param name="help" type="description">If you want to set more than one attribute, you must separate this with a space, and only with a space.</_param>
12 <param name="att" type="string" _gui-text="Attribute to set">fill stroke stroke-width</param>
13 <param name="when" type="enum" _gui-text="When should the set be done?">
14 <_item value="onclick">on click</_item>
15 <_item value="onfocusin">on focus</_item>
16 <_item value="onfocusout">on blur</_item>
17 <_item value="onactivate">on activate</_item>
18 <_item value="onmousedown">on mouse down</_item>
19 <_item value="onmouseup">on mouse up</_item>
20 <_item value="onmouseover">on mouse over</_item>
21 <_item value="onmousemove">on mouse move</_item>
22 <_item value="onmouseout">on mouse out</_item>
23 <_item value="onload">on element loaded</_item>
24 </param>
25 <_param name="help" type="description">The list of values must have the same size as the attributes list.</_param>
26 <param name="val" type="string" _gui-text="Value to set">red black 5px</param>
27 <param name="compatibility" type="enum" _gui-text="Compatibility with previews code to this event">
28 <_item value="append">Run it after</_item>
29 <_item value="prepend">Run it before</_item>
30 <_item value="replace">Replace</_item>
31 </param>
32 <_param name="help" type="description">The next parameter is useful when you select more than two elements</_param>
33 <param name="from-and-to" type="enum" _gui-text="Source and destination of setting">
34 <_item value="g-to-one">All selected ones set an attribute in the last one</_item>
35 <_item value="one-to-g">The first selected sets an attribute in all others</_item>
36 </param>
37 <effect>
38 <object-type>all</object-type>
39 <effects-menu>
40 <submenu _name="Web">
41 <submenu name="JavaScript"/>
42 </submenu>
43 </effects-menu>
44 </effect>
45 <script>
46 <command reldir="extensions" interpreter="python">web-set-att.py</command>
47 </script>
48 </inkscape-extension>