Difference between revisions of "Documentation/DevGuide/WritingUNO/AddOns/Configuration"
From Apache OpenOffice Wiki
< Documentation | DevGuide
m |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
|PrevPage=Documentation/DevGuide/WritingUNO/AddOns/Guidelines | |PrevPage=Documentation/DevGuide/WritingUNO/AddOns/Guidelines | ||
|NextPage=Documentation/DevGuide/WritingUNO/AddOns/Menus | |NextPage=Documentation/DevGuide/WritingUNO/AddOns/Menus | ||
− | }} | + | }} {{Documentation/DevGuideLanguages|Documentation/DevGuide/WritingUNO/AddOns/{{SUBPAGENAME}}}} {{DISPLAYTITLE:Configuration}} |
− | {{DISPLAYTITLE:Configuration}} | + | The user interface definitions of all add-ons are stored in the special configuration branch ''org.openoffice.Office.Addons''. |
− | The user interface definitions of all add-ons are stored in the special configuration branch ''org.openoffice.Office.Addons'' . | + | |
− | The schema of the configuration branch ''org.openoffice.Office.Addons'' specifies how to define a user interface extension. | + | The schema of the configuration branch ''org.openoffice.Office.Addons'' specifies how to define a user interface extension. |
− | < | + | <syntaxhighlight lang="xml"> |
<?xml version='1.0' encoding='UTF-8'?> | <?xml version='1.0' encoding='UTF-8'?> | ||
− | <oor:component-schema oor:name="Addons" oor:package="org.openoffice.Office" xml:lang="en-US" 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:component-schema oor:name="Addons" |
+ | oor:package="org.openoffice.Office" | ||
+ | xml:lang="en-US" | ||
+ | xmlns:oor="http://openoffice.org/2001/registry" | ||
+ | xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
+ | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<templates> | <templates> | ||
<group oor:name="MenuItem"> | <group oor:name="MenuItem"> | ||
Line 61: | Line 65: | ||
</component> | </component> | ||
</oor:component-schema> | </oor:component-schema> | ||
− | </ | + | </syntaxhighlight> |
− | {{PDL1}} | + | |
− | [[Category: | + | {{PDL1}} |
+ | |||
+ | [[Category:Documentation/Developer's_Guide/Writing_UNO_Components]] |
Latest revision as of 15:06, 24 December 2020
The user interface definitions of all add-ons are stored in the special configuration branch org.openoffice.Office.Addons.
The schema of the configuration branch org.openoffice.Office.Addons specifies how to define a user interface extension.
<?xml version='1.0' encoding='UTF-8'?> <oor:component-schema oor:name="Addons" oor:package="org.openoffice.Office" xml:lang="en-US" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <templates> <group oor:name="MenuItem"> <prop oor:name="URL" oor:type="xs:string"/> <prop oor:name="Title" oor:type="xs:string" oor:localized="true"/> <prop oor:name="ImageIdentifier" oor:type="xs:string"/> <prop oor:name="Target" oor:type="xs:string"/> <prop oor:name="Context" oor:type="xs:string"/> <set oor:name="Submenu" oor:node-type="MenuItem"/> </group> <group oor:name="PopupMenu"> <prop oor:name="Title" oor:type="xs:string" oor:localized="true"/> <prop oor:name="Context" oor:type="xs:string"/> <set oor:name="Submenu" oor:node-type="MenuItem"/> </group> <group oor:name="ToolBarItem"> <prop oor:name="URL" oor:type="xs:string"/> <prop oor:name="Title" oor:type="xs:string" oor:localized="true"/> <prop oor:name="ImageIdentifier" oor:type="xs:string"/> <prop oor:name="Target" oor:type="xs:string"/> <prop oor:name="Context" oor:type="xs:string"/> </group> <group oor:name="UserDefinedImages"> <prop oor:name="ImageSmall" oor:type="xs:hexBinary"/> <prop oor:name="ImageBig" oor:type="xs:hexBinary"/> <prop oor:name="ImageSmallHC" oor:type="xs:hexBinary"/> <prop oor:name="ImageBigHC" oor:type="xs:hexBinary"/> <prop oor:name="ImageSmallURL" oor:type="xs:string"/> <prop oor:name="ImageBigURL" oor:type="xs:string"/> <prop oor:name="ImageSmallHCURL" oor:type="xs:string"/> <prop oor:name="ImageBigHCURL" oor:type="xs:string"/> </group> <group oor:name="Images"> <prop oor:name="URL" oor:type="xs:string"/> <node-ref oor:name="UserDefinedImages" oor:node-type="UserDefinedImages"/> </group> <set oor:name="ToolBarItems" oor:node-type="ToolBarItem"/> </templates> <component> <group oor:name="AddonUI"> <set oor:name="AddonMenu" oor:node-type="MenuItem"/> <set oor:name="Images" oor:node-type="Images"/> <set oor:name="OfficeMenuBar" oor:node-type="PopupMenu"/> <set oor:name="OfficeToolBar" oor:node-type="ToolBarItems"/> <set oor:name="OfficeHelp" oor:node-type="MenuItem"/> </group> </component> </oor:component-schema>
Content on this page is licensed under the Public Documentation License (PDL). |