📄 widget-menu.xsd
字号:
<?xml version="1.0" encoding="UTF-8"?><!-- * Copyright (c) 2003-2004 The Open For Business Project - www.ofbiz.org * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * $Id: widget-menu.xsd 6788 2006-02-20 21:01:00Z jonesde $--><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="menus"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="menu"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="menu"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" ref="actions"/> <xs:element minOccurs="0" maxOccurs="unbounded" ref="menu-item"/> </xs:sequence> <xs:attributeGroup ref="attlist.menu"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.menu"> <xs:attribute type="xs:string" name="name" use="required"/> <xs:attribute name="type" default="simple"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="simple"/> <xs:enumeration value="cascade"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="title"/> <xs:attribute type="xs:string" name="tooltip"/> <xs:attribute type="xs:string" name="default-entity-name"/> <xs:attribute type="xs:string" name="default-title-style" default="tabButton"/> <xs:attribute type="xs:string" name="default-widget-style"/> <xs:attribute type="xs:string" name="default-tooltip-style"/> <xs:attribute type="xs:string" name="default-selected-style" default="tabButtonSelected"/> <xs:attribute type="xs:string" name="default-align-style"/> <xs:attribute name="orientation" default="horizontal"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="vertical"/> <xs:enumeration value="horizontal"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="extends"/> <xs:attribute type="xs:string" name="extends-resource"/> <xs:attribute type="xs:string" name="default-menu-item-name"/> <xs:attribute type="xs:string" name="default-associated-content-id"/> <xs:attribute name="default-hide-if-selected" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="menu-width"/> <xs:attribute type="xs:string" name="default-cell-width"/> <xs:attribute type="xs:string" name="default-disabled-title-style"/> <xs:attribute type="xs:string" name="selected-menuitem-context-field-name" default="tabButtonItem"/> <xs:attribute type="xs:string" name="menu-container-style" default="tabContainer"/> <xs:attribute name="default-align" default="left"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="left"/> <xs:enumeration value="right"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="fill-style"/> <xs:attribute type="xs:string" name="default-permission-operation"/> <xs:attribute type="xs:string" name="default-permission-entity-action"/> </xs:attributeGroup> <xs:element name="menu-item"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" ref="condition"/> <xs:element minOccurs="0" ref="actions"/> <xs:element minOccurs="0" ref="link"/> <xs:element minOccurs="0" maxOccurs="unbounded" ref="menu-item"/> </xs:sequence> <xs:attributeGroup ref="attlist.menu-item"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.menu-item"> <xs:attribute type="xs:string" name="name" use="required"/> <xs:attribute type="xs:string" name="title"/> <xs:attribute type="xs:string" name="tooltip"/> <xs:attribute type="xs:string" name="title-style"/> <xs:attribute type="xs:string" name="widget-style"/> <xs:attribute type="xs:string" name="align-style"/> <xs:attribute type="xs:string" name="tooltip-style"/> <xs:attribute type="xs:string" name="selected-style"/> <xs:attribute type="xs:string" name="position" default="1"/> <xs:attribute type="xs:string" name="associated-content-id"/> <xs:attribute type="xs:string" name="hide-if-selected"/> <xs:attribute type="xs:string" name="cell-width"/> <xs:attribute type="xs:string" name="disable-if-empty"/> <xs:attribute type="xs:string" name="disabled-title-style"/> <xs:attribute type="xs:string" name="target-window"/> <xs:attribute type="xs:string" name="sub-menu"/> <xs:attribute name="align" > <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="left"/> <xs:enumeration value="right"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:attributeGroup> <xs:element name="image"> <xs:complexType mixed="true"> <xs:attributeGroup ref="attlist.image"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.image"> <xs:attribute type="xs:string" name="src"/> <xs:attribute type="xs:string" name="id"/> <xs:attribute type="xs:string" name="style"/> <xs:attribute type="xs:string" name="width"/> <xs:attribute type="xs:string" name="height"/> <xs:attribute type="xs:string" name="border"/> <xs:attribute name="url-mode" default="content"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="ofbiz"/> <xs:enumeration value="content"/> <xs:enumeration value="raw"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:attributeGroup> <xs:element name="link"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" ref="image"/> </xs:sequence> <xs:attributeGroup ref="attlist.link"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.link"> <xs:attribute type="xs:string" name="text"/> <xs:attribute type="xs:string" name="id"/> <xs:attribute type="xs:string" name="style"/> <xs:attribute type="xs:string" name="name"/> <xs:attribute type="xs:string" name="target"/> <xs:attribute type="xs:string" name="target-window"/> <xs:attribute type="xs:string" name="prefix"/> <xs:attribute name="url-mode" default="intra-app"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="intra-app"/> <xs:enumeration value="inter-app"/> <xs:enumeration value="content"/> <xs:enumeration value="plain"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="full-path" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="secure" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="encode" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:attributeGroup> <!-- ================ ACTIONS ================ --> <xs:element name="AllActions" abstract="true"/> <xs:element name="actions"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="AllActions"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="property-map" substitutionGroup="AllActions"> <xs:complexType> <xs:attributeGroup ref="attlist.property-map"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.property-map"> <xs:attribute type="xs:string" name="resource" use="required"/> <xs:attribute type="xs:string" name="map-name" use="required"/> <xs:attribute name="global" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:attributeGroup> <xs:element name="property-to-field" substitutionGroup="AllActions"> <xs:complexType> <xs:attributeGroup ref="attlist.property-to-field"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.property-to-field"> <xs:attribute type="xs:string" name="resource" use="required"/> <xs:attribute type="xs:string" name="property" use="required"/> <xs:attribute type="xs:string" name="field" use="required"/> <xs:attribute type="xs:string" name="default"/> <xs:attribute name="no-locale" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="arg-list-name"/> </xs:attributeGroup> <xs:element name="script" substitutionGroup="AllActions"> <xs:complexType> <xs:attributeGroup ref="attlist.script"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.script"> <xs:attribute type="xs:string" name="location" use="required"/> </xs:attributeGroup> <xs:element name="set" substitutionGroup="AllActions"> <xs:complexType> <xs:attributeGroup ref="attlist.set"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.set"> <xs:attribute type="xs:string" name="field" use="required"/> <xs:attribute type="xs:string" name="from-field"/> <xs:attribute type="xs:string" name="value"/> <xs:attribute type="xs:string" name="default-value"/> <xs:attribute name="global" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -