forked from shichuyibushishiwu/Tuna.Revit.Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tuna.Revit.Ribbon.xsd
154 lines (140 loc) · 4.8 KB
/
Tuna.Revit.Ribbon.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/XMLSchema.xsd"
xmlns:tmp="http://tempuri.org"
xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:documentation>用于编写Ribbon界面的XML</xs:documentation>
</xs:annotation>
<xs:complexType name="RibbonItems">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element ref="mstns:RibbonPulldownButton"></xs:element>
<xs:element ref="mstns:RibbonSplitButton"></xs:element>
<xs:element ref="mstns:RibbonStackPanel"></xs:element>
<xs:element ref="mstns:RibbonPushButton"></xs:element>
<xs:element ref="mstns:RibbonTextBox"></xs:element>
<xs:element ref="mstns:RibbonSlideOut"></xs:element>
<xs:element ref="mstns:Separator"></xs:element>
</xs:choice>
<xs:attribute name="Title" type="xs:string" use="required"></xs:attribute>
</xs:complexType>
<xs:element name="Ribbon">
<xs:annotation>
<xs:documentation>Ribbon 根元素</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="16" minOccurs="1">
<xs:element ref="mstns:RibbonTab"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RibbonTab">
<xs:annotation>
<xs:documentation>功能选项卡</xs:documentation>
</xs:annotation>
<xs:complexType >
<xs:sequence maxOccurs="unbounded" minOccurs="1">
<xs:element ref="mstns:RibbonPanel"/>
</xs:sequence>
<xs:attribute id="tabTitle" name="Title" type="xs:string" use="required"></xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="RibbonPanel" type="mstns:RibbonItems">
<xs:annotation>
<xs:documentation>功能面板</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RibbonPushButton">
<xs:annotation>
<xs:documentation>命令按钮,可以绑定扩展的命令到面板中</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="Name" type="xs:string"></xs:attribute>
<xs:attribute name="Title" type="xs:string" use="required"></xs:attribute>
<xs:attribute name="LargeImage" type="xs:string"></xs:attribute>
<xs:attribute name="SamllImage" type="xs:string" ></xs:attribute>
<xs:attribute name="CommandClassFullName" type="xs:string" use="required"></xs:attribute>
<xs:attribute name="AvailabilityClassFullName" type="xs:string" ></xs:attribute>
<xs:attribute name="LongDescription" type="xs:string" ></xs:attribute>
<xs:attribute name="ToolTip" type="xs:string" ></xs:attribute>
<xs:attribute name="ToolTipImage" type="xs:string" ></xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Separator" >
<xs:annotation>
<xs:documentation>分隔符,用户分割面板</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RibbonStackPanel">
<xs:annotation>
<xs:documentation>堆叠式按钮</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="3" minOccurs="2">
<xs:element ref="mstns:RibbonPushButton"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RibbonSplitButton">
<xs:annotation>
<xs:documentation>下拉式按钮</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice >
<xs:element ref="mstns:RibbonPushButton"></xs:element>
<xs:element ref="mstns:Separator"></xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="RibbonPulldownButton">
<xs:annotation>
<xs:documentation>下拉式按钮</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice >
<xs:element ref="mstns:RibbonPushButton"></xs:element>
<xs:element ref="mstns:Separator"></xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="RibbonSlideOut">
<xs:annotation>
<xs:documentation>下滑式面板</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RibbonTextBox">
<xs:annotation>
<xs:documentation>文本输入框</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RibbonComboBox">
<xs:annotation>
<xs:documentation>下拉选择框</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="RibbonComboBoxMember">
<xs:annotation>
<xs:documentation>xx</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RibbonRadioButtonGroup">
<xs:annotation>
<xs:documentation>xx</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="RibbonToggleButton">
<xs:annotation>
<xs:documentation>xx</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>