xref: /trunk/main/officecfg/registry/schema/org/openoffice/Office/OptionsDialog.xcs (revision adf11df40006212c9bc6044f6c93ed03d30bd01b)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2d435a3beSAndrew Rist<!--***********************************************************
3cdf0e10cSrcweir *
4d435a3beSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
5d435a3beSAndrew Rist * or more contributor license agreements.  See the NOTICE file
6d435a3beSAndrew Rist * distributed with this work for additional information
7d435a3beSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
8d435a3beSAndrew Rist * to you under the Apache License, Version 2.0 (the
9d435a3beSAndrew Rist * "License"); you may not use this file except in compliance
10d435a3beSAndrew Rist * with the License.  You may obtain a copy of the License at
11cdf0e10cSrcweir *
12d435a3beSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
13cdf0e10cSrcweir *
14d435a3beSAndrew Rist * Unless required by applicable law or agreed to in writing,
15d435a3beSAndrew Rist * software distributed under the License is distributed on an
16d435a3beSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17d435a3beSAndrew Rist * KIND, either express or implied.  See the License for the
18d435a3beSAndrew Rist * specific language governing permissions and limitations
19d435a3beSAndrew Rist * under the License.
20cdf0e10cSrcweir *
21d435a3beSAndrew Rist ***********************************************************-->
22d435a3beSAndrew Rist
23d435a3beSAndrew Rist
24cdf0e10cSrcweir<!DOCTYPE oor:component-schema SYSTEM "../../../../component-schema.dtd">
25cdf0e10cSrcweir<oor:component-schema xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="OptionsDialog" oor:package="org.openoffice.Office" xml:lang="en-US">
26cdf0e10cSrcweir  <info>
27cdf0e10cSrcweir    <author>PB</author>
28cdf0e10cSrcweir    <desc >Contains general structures used to hide a single option or an option
29cdf0e10cSrcweir      tabpage or a whole option group.</desc>
30cdf0e10cSrcweir  </info>
31cdf0e10cSrcweir  <templates>
32cdf0e10cSrcweir    <group oor:name="SingleOption">
33cdf0e10cSrcweir      <info>
34cdf0e10cSrcweir    <desc>Describes one single option.</desc>
35cdf0e10cSrcweir      </info>
36cdf0e10cSrcweir      <prop oor:name="Hide" oor:type="xs:boolean">
37cdf0e10cSrcweir    <info>
38cdf0e10cSrcweir      <desc>Should this option be hidden?.</desc>
39cdf0e10cSrcweir    </info>
40cdf0e10cSrcweir      </prop>
41cdf0e10cSrcweir    </group>
42cdf0e10cSrcweir    <group oor:name="OptionsPage">
43cdf0e10cSrcweir      <info>
44cdf0e10cSrcweir    <desc>Describes one options tabpage.</desc>
45cdf0e10cSrcweir      </info>
46cdf0e10cSrcweir      <prop oor:name="Hide" oor:type="xs:boolean">
47cdf0e10cSrcweir    <info>
48cdf0e10cSrcweir      <desc>Should this page be hidden?</desc>
49cdf0e10cSrcweir    </info>
50cdf0e10cSrcweir      </prop>
51cdf0e10cSrcweir      <set oor:name="Options" oor:node-type="SingleOption">
52cdf0e10cSrcweir    <info>
53cdf0e10cSrcweir      <desc>An optional set to allow to hide single options of this page.</desc>
54cdf0e10cSrcweir    </info>
55cdf0e10cSrcweir      </set>
56cdf0e10cSrcweir    </group>
57cdf0e10cSrcweir    <group oor:name="OptionsGroup">
58cdf0e10cSrcweir      <info>
59cdf0e10cSrcweir    <desc>Describes a group of options tabpages.</desc>
60cdf0e10cSrcweir      </info>
61cdf0e10cSrcweir      <prop oor:name="Hide" oor:type="xs:boolean">
62cdf0e10cSrcweir    <info>
63cdf0e10cSrcweir      <desc>Should this whole group of options tabpages be hidden?</desc>
64cdf0e10cSrcweir    </info>
65cdf0e10cSrcweir      </prop>
66cdf0e10cSrcweir      <set oor:name="Pages" oor:node-type="OptionsPage">
67cdf0e10cSrcweir    <info>
68cdf0e10cSrcweir      <desc>An optional set to allow to hide single options tabpages of this
69cdf0e10cSrcweir        group.</desc>
70cdf0e10cSrcweir    </info>
71cdf0e10cSrcweir      </set>
72cdf0e10cSrcweir    </group>
73cdf0e10cSrcweir
74cdf0e10cSrcweir    <group oor:name="Module">
75cdf0e10cSrcweir      <info>
76cdf0e10cSrcweir    <desc>Defines a Module. The options dialog displays entries in its tree
77cdf0e10cSrcweir      view only if they are defined to belong to the Module for which the
78cdf0e10cSrcweir      options dialog is being displayed. The exception is the options dialog
79cdf0e10cSrcweir      which is invoked from the Extension Manager, where the Module is
80cdf0e10cSrcweir      irrelevant.</desc>
81cdf0e10cSrcweir      </info>
82cdf0e10cSrcweir      <set oor:name="Nodes" oor:node-type="OrderedNode">
83cdf0e10cSrcweir    <info>
84*a893be29SPedro Giffuni      <desc>A set member contains a Node (see type Node) which has been
85cdf0e10cSrcweir        assigned to this Module. Also entities which do not own the Module
86cdf0e10cSrcweir        may add members to the set. Please look at the specification for
87cdf0e10cSrcweir        applying restrictions
88cdf0e10cSrcweir        (http://specs.openoffice.org/appwide/packagemanager/options_dialog_for_extensions.odt)
89cdf0e10cSrcweir        The actual Node|s are kept in a separate set (OptionsDialog/Nodes),
90cdf0e10cSrcweir        to prevent redundancy, because a Node can be assigned to several
91cdf0e10cSrcweir        Module|s. The position of a node (the tree view element) within the
92cdf0e10cSrcweir        tree view of the options dialog is determined by the property Index
93cdf0e10cSrcweir        of each set member. The position can be different dependent on the
94cdf0e10cSrcweir        Module. Therefore the order is determined per Module. Only the owner
95cdf0e10cSrcweir        of the Module should set the position (property Index).
96cdf0e10cSrcweir        The order is undefined if two or more members have the same value for
97cdf0e10cSrcweir        the Index property.
98cdf0e10cSrcweir        See also the description for OrderedNode.
99cdf0e10cSrcweir      </desc>
100cdf0e10cSrcweir    </info>
101cdf0e10cSrcweir      </set>
102cdf0e10cSrcweir    </group>
103cdf0e10cSrcweir
104cdf0e10cSrcweir    <group oor:name="Node">
105cdf0e10cSrcweir      <info>
106cdf0e10cSrcweir    <desc>Defines a node (the tree view element) which can be displayed in
107cdf0e10cSrcweir      the tree view of the options dialog.</desc>
108cdf0e10cSrcweir      </info>
109cdf0e10cSrcweir      <prop oor:name="Label" oor:type="xs:string" oor:localized="true"
110cdf0e10cSrcweir        oor:nillable="false">
111cdf0e10cSrcweir    <info>
112cdf0e10cSrcweir      <desc>The localized name which is displayed next to the node in the
113cdf0e10cSrcweir        options dialog. If two different nodes (the tree view element) happen
114cdf0e10cSrcweir        to have the same localized name then both are displayed.</desc>
115cdf0e10cSrcweir    </info>
116cdf0e10cSrcweir      </prop>
117cdf0e10cSrcweir      <prop oor:name="OptionsPage" oor:type="xs:string">
118cdf0e10cSrcweir    <info>
119cdf0e10cSrcweir      <desc>URL which references the dialog editor resource. This options
120cdf0e10cSrcweir      page should only contain information for the user and should not
121cdf0e10cSrcweir      accept input.</desc>
122cdf0e10cSrcweir    </info>
123cdf0e10cSrcweir      </prop>
124cdf0e10cSrcweir      <prop oor:name="AllModules" oor:type="xs:boolean">
125cdf0e10cSrcweir    <info>
126cdf0e10cSrcweir      <desc>If true then this Node shall be displayed independent of the
127cdf0e10cSrcweir        Module for which the options dialog is displayed -  that is, always.
128cdf0e10cSrcweir        In this case it must not be assigned directly to one ore more
129cdf0e10cSrcweir        Module|s. That is, it must not exist as member in Module/Nodes of no
130cdf0e10cSrcweir        existing Module.
131cdf0e10cSrcweir        This is an optimization so that an extension need not provide
132cdf0e10cSrcweir        entries for all Module|s.
133cdf0e10cSrcweir        The default value is false.
134cdf0e10cSrcweir      </desc>
135cdf0e10cSrcweir    </info>
136cdf0e10cSrcweir    <value>false</value>
137cdf0e10cSrcweir      </prop>
138cdf0e10cSrcweir      <prop oor:name="GroupId" oor:type="xs:string">
139cdf0e10cSrcweir    <info>
140cdf0e10cSrcweir      <desc>Identifies a group of Node|s. All nodes (the tree view elements)
141cdf0e10cSrcweir        which refer to the same group are displayed next to each other. If
142cdf0e10cSrcweir        this property is set then GroupIndex must also have a value. The
143cdf0e10cSrcweir        group will be used by Node|s which have been added to existing
144cdf0e10cSrcweir        Module|s. If one defines a Module AND Node|s which are used in this
145cdf0e10cSrcweir        Module, then GroupId must not be set. In this case one uses
146cdf0e10cSrcweir        Module/Nodes/Index to determine the position of the nodes (the tree
147cdf0e10cSrcweir        view element).
148cdf0e10cSrcweir        The empty string is no valid identifier and represents nil.
149cdf0e10cSrcweir        See also GroupIndex.
150cdf0e10cSrcweir      </desc>
151cdf0e10cSrcweir    </info>
152cdf0e10cSrcweir    <value></value>
153cdf0e10cSrcweir      </prop>
154cdf0e10cSrcweir      <prop oor:name="GroupIndex" oor:type="xs:int">
155cdf0e10cSrcweir    <info>
156cdf0e10cSrcweir      <desc>The index of the Node within the group. The index starts with
157cdf0e10cSrcweir        null. If this property is set then property GroupId must also have
158cdf0e10cSrcweir        a value. If a Node of this group is displayed depends on the
159cdf0e10cSrcweir        respective Module to which it is assigned. For example, if there are
160cdf0e10cSrcweir        the Nodes A(index 0), B (index 1), and C (index 2) in a group,
161cdf0e10cSrcweir        and B is assigned to a different Module, then only A and
162cdf0e10cSrcweir        B are displayed together although there indices are 0 and 2 (B has 1).
163cdf0e10cSrcweir        The value -1 is regarded as nil.
164cdf0e10cSrcweir        Actually one could have allowed to define a group per Module, so that
165cdf0e10cSrcweir        the order could be different depending on the Module. But this would
166cdf0e10cSrcweir        have added more complexity to the data structures.
167cdf0e10cSrcweir      </desc>
168cdf0e10cSrcweir    </info>
169cdf0e10cSrcweir    <value>-1</value>
170cdf0e10cSrcweir      </prop>
171cdf0e10cSrcweir      <set oor:name="Leaves" oor:node-type="Leaf">
172cdf0e10cSrcweir    <info>
173cdf0e10cSrcweir      <desc>Leaves which are assigned to this node. Extensions can add to this
174cdf0e10cSrcweir        set new Leaf|s.</desc>
175cdf0e10cSrcweir    </info>
176cdf0e10cSrcweir      </set>
177cdf0e10cSrcweir    </group>
178cdf0e10cSrcweir
179cdf0e10cSrcweir    <group oor:name="Leaf">
180cdf0e10cSrcweir      <info>
181cdf0e10cSrcweir    <desc>Defines a leaf (the tree view element). A Leaf must be assigned to
182cdf0e10cSrcweir      exactly one Node. </desc>
183cdf0e10cSrcweir      </info>
184cdf0e10cSrcweir      <prop oor:name="Id" oor:type="xs:string">
185cdf0e10cSrcweir    <info>
186cdf0e10cSrcweir      <desc>The unique identifier of the Leaf. This must be the extension
187cdf0e10cSrcweir        identifier if this Leaf was defined by an extension.</desc>
188cdf0e10cSrcweir    </info>
189cdf0e10cSrcweir      </prop>
190cdf0e10cSrcweir      <prop oor:name="Label" oor:type="xs:string" oor:localized="true"
191cdf0e10cSrcweir        oor:nillable="false">
192cdf0e10cSrcweir    <info>
193cdf0e10cSrcweir      <desc>The localized name that is displayed for the leaf in the options
194cdf0e10cSrcweir        dialog.</desc>
195cdf0e10cSrcweir    </info>
196cdf0e10cSrcweir      </prop>
197cdf0e10cSrcweir      <prop oor:name="OptionsPage" oor:type="xs:string" oor:nillable="false">
198cdf0e10cSrcweir    <info>
199cdf0e10cSrcweir      <desc>A URL which references the window resource.</desc>
200cdf0e10cSrcweir    </info>
201cdf0e10cSrcweir      </prop>
202cdf0e10cSrcweir      <prop oor:name="EventHandlerService" oor:type="xs:string" oor:nillable="false">
203cdf0e10cSrcweir    <info>
204cdf0e10cSrcweir      <desc>Name of the event handler service which is used as argument in
205cdf0e10cSrcweir        com.sun.star.awt.XContainerWindowProvider.createContainerWindow. This
206cdf0e10cSrcweir        handler does not even process events from the options page but also
207cdf0e10cSrcweir        provides for saving and reading the respective values.</desc>
208cdf0e10cSrcweir    </info>
209cdf0e10cSrcweir      </prop>
210cdf0e10cSrcweir      <prop oor:name="GroupId" oor:type="xs:string">
211cdf0e10cSrcweir    <info>
212cdf0e10cSrcweir      <desc>Identifies a group of Leaf|s. All Leaf|s which have the same
213cdf0e10cSrcweir        GroupId form a group and the corresponding entries in the tree view
214cdf0e10cSrcweir        are displayed next to each other.
215cdf0e10cSrcweir        If this property is set then the property GroupIndex must
216cdf0e10cSrcweir        also be set.
217cdf0e10cSrcweir        The GroupIndex represents the position within the group. If one
218cdf0e10cSrcweir        owns the Node (e.g. defined it oneself) then one can set the GroupId
219cdf0e10cSrcweir        to the name of the Node to which this Leaf is assigned. The Leaf|s of
220cdf0e10cSrcweir        this particular group are displayed first under the node (the tree
221cdf0e10cSrcweir        view element) before any other groups.
222cdf0e10cSrcweir        If one does not own the Node then one should not use the Node name as
223cdf0e10cSrcweir        group id.
224cdf0e10cSrcweir        The empty string is regarded as nil.
225cdf0e10cSrcweir      </desc>
226cdf0e10cSrcweir    </info>
227cdf0e10cSrcweir    <value></value>
228cdf0e10cSrcweir      </prop>
229cdf0e10cSrcweir      <prop oor:name="GroupIndex" oor:type="xs:int">
230cdf0e10cSrcweir    <info>
231cdf0e10cSrcweir      <desc>The index of the Leaf within the group. The index starts with
232cdf0e10cSrcweir        null. If this property is set then GroupId must also have
233cdf0e10cSrcweir        a value. If there are two Leaf|s with the same index in the same
234cdf0e10cSrcweir        group then then their order is undefined.
235cdf0e10cSrcweir        The value -1 is regarded as nil.</desc>
236cdf0e10cSrcweir    </info>
237cdf0e10cSrcweir    <value>-1</value>
238cdf0e10cSrcweir      </prop>
239cdf0e10cSrcweir    </group>
240cdf0e10cSrcweir
241cdf0e10cSrcweir    <group oor:name="OrderedNode">
242cdf0e10cSrcweir      <info>
243cdf0e10cSrcweir    <desc>Represents a reference to a Node and an optional index.
244cdf0e10cSrcweir      Instances of this type are used in a set (see Module). The name of the
245cdf0e10cSrcweir      set member must be the same as the one of the respective Node. The
246cdf0e10cSrcweir      index determines the position of the node (the tree view element) in
247cdf0e10cSrcweir      the options dialog for a particular Module.</desc>
248cdf0e10cSrcweir      </info>
249cdf0e10cSrcweir      <prop oor:name="Index" oor:type="xs:int">
250cdf0e10cSrcweir    <info>
251cdf0e10cSrcweir      <desc>Determines the position of the node in the options dialog.
252cdf0e10cSrcweir        The index starts with null. That is, the corresponding node
253cdf0e10cSrcweir        appears at the first position in the tree view of the options dialog.
254cdf0e10cSrcweir        If the value is -1 then the index is undefined. If one adds
255cdf0e10cSrcweir        Node|s to a Module which one does not define oneself (e.g. the Module
256cdf0e10cSrcweir        is owned by someone else), then one must not set the Index. This
257cdf0e10cSrcweir        applies, for example, to extensions which add their Node|s to existing
258cdf0e10cSrcweir        Module|s.
259cdf0e10cSrcweir        The value -1 is regarded as nil.
260cdf0e10cSrcweir      </desc>
261cdf0e10cSrcweir    </info>
262cdf0e10cSrcweir    <value>-1</value>
263cdf0e10cSrcweir      </prop>
264cdf0e10cSrcweir    </group>
265cdf0e10cSrcweir  </templates>
266cdf0e10cSrcweir
267cdf0e10cSrcweir  <component>
268cdf0e10cSrcweir    <set oor:name="OptionsDialogGroups" oor:node-type="OptionsGroup">
269cdf0e10cSrcweir      <info>
270cdf0e10cSrcweir    <desc>Contains the set of single options, options tabpages and options
271cdf0e10cSrcweir      groups which should be hidden.</desc>
272cdf0e10cSrcweir    <label>Hidden options</label>
273cdf0e10cSrcweir      </info>
274cdf0e10cSrcweir    </set>
275cdf0e10cSrcweir
276cdf0e10cSrcweir    <set oor:name="Modules" oor:node-type="Module">
277cdf0e10cSrcweir      <info>
278*a893be29SPedro Giffuni    <desc>List of available application contexts</desc>
279cdf0e10cSrcweir      </info>
280cdf0e10cSrcweir    </set>
281cdf0e10cSrcweir    <set oor:name="Nodes" oor:node-type="Node">
282cdf0e10cSrcweir      <info>
283cdf0e10cSrcweir    <desc>List of available nodes.</desc>
284cdf0e10cSrcweir      </info>
285cdf0e10cSrcweir    </set>
286cdf0e10cSrcweir
287cdf0e10cSrcweir  </component>
288cdf0e10cSrcweir</oor:component-schema>
289