enumerations which define the enumeration types which can used in menusfileTypes which define the types of Editor XML elements on which menus will apply, and which menus apply on each kind of element<enum name="alignment"> <enumValue value="left" /> <enumValue value="center" /> <enumValue value="right" /> </enum>For example:
fileTypes element define the types of Editor XML elements on which menus will apply, and which menus apply on each kind of element:fileTypes which define the types of Editor XML elements on which menus will apply, and whch menus apply on each kind of elementarticles which define the menus in articlescategories which define the menus in categories descriptionsimages which define the menus in Image definition filesresources which define the menus in Resource definition filesmenus which define the menus in menus filespackages which define the menus in Packages filesinfobox which define the menus in Infobox definition filesheader which define the menus in header filesfooter which define the menus in footer filesmenuGroup element defines a parent menu groupmenuGroupRef element defines a reference to a menu group defined previously in the filemenu element defines a menumenuRef element defines a reference to a menu defined previously in the filemenuGroup element defines a parent menu group. A menu group can contain menu groups and menus.name attribute specifies the name of the menu groupid attribute (optional) specifies the id of the menu group, which will be usable in menuGroupRef elements<menuGroup name="Lists" id="lists"> <menu name="ul" title="Unordered list" tooltip="Add an unordered list" mixed="true"> <property name="bullet" argumentType="enum" enumType="ulStyle" tooltip="The bullet style" defaultValue="default" /> </menu> <menu name="ol" title="Ordered list" tooltip="Add an ordered list" mixed="true"> <property name="bullet" argumentType="enum" enumType="olStyle" tooltip="The bullet style" defaultValue="default" /> <property name="start" argumentType="string" tooltip="The start value" defaultValue="" /> </menu> <menu name="li" title="List item" tooltip="Add an item in the list" mixed="true"> <contentProperty name="desc" title="Content" argumentType="string" editor="textarea" tooltip="The list item content" /> </menu> </menuGroup>Will show:
menuGroupRef element defines a reference to a menu group defined previously in the file. id attribute specifies the id of the menu group which is reused<menuGroupRef id="lists"/>
menu element defines a menu. A me nu contains a list of properties.name attribute specifies the name of the menu. By default the title of the menu will use the name attributeid attribute (optional) specifies the id of the menu, which will be usable in menuRef elementstitle attribute (optional) specifies the title of the menutooltip attribute (optional) specifies the tooltip of the menumixed attribute (optional) specifies the mixed type of the elementmultipleLines attribute (optional) specifies that here can be text lines under the elementhasBreak boolean attribute (optional) specifies that the element must be presented after a line breakincludedInReplace attribute (optional) specifies that the menu will be included when replacing contentgroup element specifies a group of properties in the menutitle element specifies a titled lineproperty element specifies a propertycompoundProperty element specifies a group of properties which can be enabled globallycontentProperty element specifies a poperty which specifies the text content of the elementpropertyAdapter element specifies a property which will change thee result of several other propertiescontentProperty element specifies a property which specifies the text content of the element. <menu name="b" title="Bold" tooltip="Set text in Bold" includedInReplace="true"> <contentProperty name="b" title="Content" argumentType="string" editor="textarea" tooltip="The Bold content" useInReplace="true"/> </menu>Will show:
group element specifies a group of properties in a menu.orientation attribute specifies if the group is horizontal or verticalborder attribute (optional) specifies if the group has a bordertitle attribute (optional) specifies the title of the groupenabler attribute (optional) specifies if there is a checkbox in the group which will enable or disable all elements under the group<menu name="title" tooltip="Add a Title"> <property name="title" argumentType="string" mandatory="true"/> <group orientation="horizontal"> <property name="level" argumentType="int" defaultValue="1" /> <property name="keepCase" argumentType="boolean" defaultValue="false" /> </group> </menu>Will show:
menuRef element defines a reference to a menu defined previously in the file. id attribute specifies the id of the menu which is reused<menuRef id="code" />
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.