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_attribute</id>
5    <param name="tab" type="notebook">
6        <page name="Options" gui-text="Options">
7            <param name="att" type="string" gui-text="Attribute to set:">fill stroke stroke-width</param>
8            <param name="when" type="optiongroup" appearance="combo" gui-text="When should the set be done:">
9                <option value="onclick">on click</option>
10                <option value="onfocusin">on focus</option>
11                <option value="onfocusout">on blur</option>
12                <option value="onactivate">on activate</option>
13                <option value="onmousedown">on mouse down</option>
14                <option value="onmouseup">on mouse up</option>
15                <option value="onmouseover">on mouse over</option>
16                <option value="onmousemove">on mouse move</option>
17                <option value="onmouseout">on mouse out</option>
18                <option value="onload">on element loaded</option>
19            </param>
20            <label>The list of values must have the same size as the attributes list.</label>
21            <param name="val" type="string" gui-text="Value to set:">red black 5px</param>
22            <param name="compatibility" type="optiongroup" appearance="combo" gui-text="Compatibility with previews code to this event:">
23                <option value="append">Run it after</option>
24                <option value="prepend">Run it before</option>
25                <option value="replace">Replace</option>
26            </param>
27            <label>The next parameter is useful when you select more than two elements</label>
28            <param name="from-and-to" type="optiongroup" appearance="combo" gui-text="Source and destination of setting:">
29                <option value="g-to-one">All selected ones set an attribute in the last one</option>
30                <option value="one-to-g">The first selected sets an attribute in all others</option>
31            </param>
32        </page>
33        <page name="Help" gui-text="Help">
34            <label>This effect adds a feature visible (or usable) only on a SVG enabled web browser (like Firefox).</label>
35            <label>This effect sets one or more attributes in the second selected element, when a defined event occurs on the first selected element.</label>
36            <label>If you want to set more than one attribute, you must separate this with a space, and only with a space.</label>
37        </page>
38    </param>
39    <effect>
40        <object-type>all</object-type>
41        <effects-menu>
42            <submenu name="Web">
43                <submenu name="JavaScript"/>
44            </submenu>
45        </effects-menu>
46    </effect>
47    <script>
48        <command location="inx" interpreter="python">web_set_att.py</command>
49    </script>
50</inkscape-extension>
51