xref: /trunk/main/odk/examples/cpp/complextoolbarcontrols/Addons.xcu (revision 54befb6bcc47df7a34762ec9cc562856b04262b6)
1<?xml version='1.0' encoding='UTF-8'?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
23    <node oor:name="AddonUI">
24        <node oor:name="OfficeToolBar">
25            <node oor:name="com.sun.star.comp.framework.addon.complextoolbarcontrols" oor:op="replace">
26                <node oor:name="m1" oor:op="replace">
27                    <prop oor:name="URL" oor:type="xs:string">
28                        <value>vnd.demo.complextoolbarcontrols.demoaddon:ImageButtonCmd</value>
29                    </prop>
30                    <prop oor:name="Title" oor:type="xs:string">
31                        <value xml:lang="en-US">Image Button</value>
32                    </prop>
33                    <prop oor:name="Target" oor:type="xs:string">
34                        <value>_self</value>
35                    </prop>
36                    <prop oor:name="Context" oor:type="xs:string">
37                        <value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
38                    </prop>
39                    <prop oor:name="ControlType" oor:type="xs:string">
40                        <value>ImageButton</value>
41                    </prop>
42                </node>
43                <node oor:name="m2" oor:op="replace">
44                    <prop oor:name="URL" oor:type="xs:string">
45                        <value>vnd.demo.complextoolbarcontrols.demoaddon:ComboboxCmd</value>
46                    </prop>
47                    <prop oor:name="Title" oor:type="xs:string">
48                        <value xml:lang="en-US">ComboBox</value>
49                    </prop>
50                    <prop oor:name="Target" oor:type="xs:string">
51                        <value>_self</value>
52                    </prop>
53                    <prop oor:name="Context" oor:type="xs:string">
54                        <value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
55                    </prop>
56                    <prop oor:name="ControlType" oor:type="xs:string">
57                        <value>Combobox</value>
58                    </prop>
59                    <prop oor:name="Width" oor:type="xs:long">
60                        <value>200</value>
61                    </prop>
62                </node>
63                <node oor:name="m3" oor:op="replace">
64                    <prop oor:name="URL" oor:type="xs:string">
65                        <value>private:separator</value>
66                    </prop>
67                </node>
68                <node oor:name="m4" oor:op="replace">
69                    <prop oor:name="URL" oor:type="xs:string">
70                        <value>vnd.demo.complextoolbarcontrols.demoaddon:SpinfieldCmd</value>
71                    </prop>
72                    <prop oor:name="Title" oor:type="xs:string">
73                        <value xml:lang="en-US">Spinfield</value>
74                    </prop>
75                    <prop oor:name="Target" oor:type="xs:string">
76                        <value>_self</value>
77                    </prop>
78                    <prop oor:name="Context" oor:type="xs:string">
79                        <value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
80                    </prop>
81                    <prop oor:name="ControlType" oor:type="xs:string">
82                        <value>Spinfield</value>
83                    </prop>
84                    <prop oor:name="Width" oor:type="xs:long">
85                        <value>70</value>
86                    </prop>
87                </node>
88                <node oor:name="m5" oor:op="replace">
89                    <prop oor:name="URL" oor:type="xs:string">
90                        <value>private:separator</value>
91                    </prop>
92                </node>
93                <node oor:name="m6" oor:op="replace">
94                    <prop oor:name="URL" oor:type="xs:string">
95                        <value>vnd.demo.complextoolbarcontrols.demoaddon:EditfieldCmd</value>
96                    </prop>
97                    <prop oor:name="Title" oor:type="xs:string">
98                        <value xml:lang="en-US">Editfield</value>
99                    </prop>
100                    <prop oor:name="Target" oor:type="xs:string">
101                        <value>_self</value>
102                    </prop>
103                    <prop oor:name="Context" oor:type="xs:string">
104                        <value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
105                    </prop>
106                    <prop oor:name="ControlType" oor:type="xs:string">
107                        <value>Editfield</value>
108                    </prop>
109                    <prop oor:name="Width" oor:type="xs:long">
110                        <value>130</value>
111                    </prop>
112                </node>
113                <node oor:name="m7" oor:op="replace">
114                    <prop oor:name="URL" oor:type="xs:string">
115                        <value>private:separator</value>
116                    </prop>
117                </node>
118                <node oor:name="m8" oor:op="replace">
119                    <prop oor:name="URL" oor:type="xs:string">
120                        <value>vnd.demo.complextoolbarcontrols.demoaddon:DropdownboxCmd</value>
121                    </prop>
122                    <prop oor:name="Title" oor:type="xs:string">
123                        <value xml:lang="en-US">Dropdownbox</value>
124                    </prop>
125                    <prop oor:name="Target" oor:type="xs:string">
126                        <value>_self</value>
127                    </prop>
128                    <prop oor:name="Context" oor:type="xs:string">
129                        <value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
130                    </prop>
131                    <prop oor:name="ControlType" oor:type="xs:string">
132                        <value>Dropdownbox</value>
133                    </prop>
134                    <prop oor:name="Width" oor:type="xs:long">
135                        <value>80</value>
136                    </prop>
137                </node>
138                <node oor:name="m9" oor:op="replace">
139                    <prop oor:name="URL" oor:type="xs:string">
140                        <value>vnd.demo.complextoolbarcontrols.demoaddon:ToggleDropdownButtonCmd</value>
141                    </prop>
142                    <prop oor:name="Title" oor:type="xs:string">
143                        <value xml:lang="en-US">Toggle Dropdown Button</value>
144                    </prop>
145                    <prop oor:name="Target" oor:type="xs:string">
146                        <value>_self</value>
147                    </prop>
148                    <prop oor:name="Context" oor:type="xs:string">
149                        <value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
150                    </prop>
151                    <prop oor:name="ControlType" oor:type="xs:string">
152                        <value>ToggleDropdownButton</value>
153                    </prop>
154                </node>
155                <node oor:name="m10" oor:op="replace">
156                    <prop oor:name="URL" oor:type="xs:string">
157                        <value>vnd.demo.complextoolbarcontrols.demoaddon:DropdownButtonCmd</value>
158                    </prop>
159                    <prop oor:name="Title" oor:type="xs:string">
160                        <value xml:lang="en-US">Dropdown Button</value>
161                    </prop>
162                    <prop oor:name="Target" oor:type="xs:string">
163                        <value>_self</value>
164                    </prop>
165                    <prop oor:name="Context" oor:type="xs:string">
166                        <value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
167                    </prop>
168                    <prop oor:name="ControlType" oor:type="xs:string">
169                        <value>DropdownButton</value>
170                    </prop>
171                </node>
172            </node>
173        </node>
174        <node oor:name="Images">
175            <node oor:name="vnd.demo.complextoolbarcontrols.image1" oor:op="replace">
176                <prop oor:name="URL">
177                    <value>vnd.demo.complextoolbarcontrols.demoaddon:ImageButtonCmd</value>
178                </prop>
179                <node oor:name="UserDefinedImages">
180                    <prop oor:name="ImageSmallURL" oor:type="xs:string">
181                        <value>%origin%/logo_small.png</value>
182                    </prop>
183                    <prop oor:name="ImageBigURL" oor:type="xs:string">
184                        <value>%origin%/logo_big.png</value>
185                    </prop>
186                </node>
187            </node>
188        </node>
189    </node>
190</oor:component-data>
191