-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathribbon.xml
188 lines (185 loc) · 7.19 KB
/
ribbon.xml
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?xml version='1.0' encoding='utf-8'?>
<!--
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
-->
<Application xmlns='http://schemas.microsoft.com/windows/2009/Ribbon'>
<!-- Commands section -->
<Application.Commands>
<Command Name="cmdTab1"
Comment="These comments are optional and are inserted into the header file."
Symbol="IDC_CMD_TAB1"
Id="10000" >
<Command.LabelTitle>
<String Id ="200">Tab 1</String>
</Command.LabelTitle>
</Command>
<!-- Optional Symbol and Id properties are not defined for the following commands.
A Symbol same as the name of the command
and a valid Id for this command will be automatically generated. -->
<Command Name="cmdGroup1">
<!-- This image is used for when the group shrinks into a "pop-up". The other groups
in the markup don't display as pop-ups, so we don't specify an image for them. -->
<Command.SmallImages>
<Image Id="201">res/Button_Image.bmp</Image>
</Command.SmallImages>
</Command>
<Command Name="cmdGroup2"/>
<Command Name="cmdGroup3"/>
<Command Name="cmdGroup4"/>
<Command Name="cmdButton1">
<Command.LabelTitle>
<String Id ="210">Button 1</String>
</Command.LabelTitle>
<!-- Providing both large and small images isn't required, but it usually improves the look
of your application if the control size changes. -->
<Command.LargeImages>
<Image Id="211">res/AddTableL.bmp</Image>
</Command.LargeImages>
<Command.SmallImages>
<Image Id="212">res/AddTableS.bmp</Image>
</Command.SmallImages>
</Command>
<Command Name="cmdButton2">
<Command.LabelTitle>
<String Id ="220">Button 2</String>
</Command.LabelTitle>
<Command.LargeImages>
<Image Id="221">res/DeleteTableL.bmp</Image>
</Command.LargeImages>
<Command.SmallImages>
<Image Id="222">res/DeleteTableS.bmp</Image>
</Command.SmallImages>
</Command>
<Command Name="cmdButton3">
<Command.LabelTitle>
<String Id ="230">Button 3</String>
</Command.LabelTitle>
<Command.LargeImages>
<Image Id="231">res/PrintRelationshipsL.bmp</Image>
</Command.LargeImages>
<Command.SmallImages>
<Image Id="232">res/PrintRelationshipsS.bmp</Image>
</Command.SmallImages>
</Command>
<Command Name="cmdButton4">
<Command.LabelTitle>
<String Id ="240">Button 4</String>
</Command.LabelTitle>
<Command.LargeImages>
<Image Id="241">res/AddTableL.bmp</Image>
</Command.LargeImages>
<Command.SmallImages>
<Image Id="242">res/AddTableS.bmp</Image>
</Command.SmallImages>
</Command>
<Command Name="cmdButton5">
<Command.LabelTitle>
<String Id ="250">Button 5</String>
</Command.LabelTitle>
<Command.SmallImages>
<Image Id="251">res/Cut.bmp</Image>
</Command.SmallImages>
</Command>
<Command Name="cmdButton6"/>
<Command Name="cmdToggleButton1">
<Command.LabelTitle>
<String Id ="260">ToggleButton 1</String>
</Command.LabelTitle>
<Command.LargeImages>
<Image Id="261">res/AddTableL.bmp</Image>
</Command.LargeImages>
<Command.SmallImages>
<Image Id="262">res/AddTableS.bmp</Image>
</Command.SmallImages>
</Command>
<Command Name="cmdToggleButton2">
<Command.LabelTitle>
<String Id ="270">ToggleButton 2</String>
</Command.LabelTitle>
<Command.SmallImages>
<Image Id="271">res/Copy.bmp</Image>
</Command.SmallImages>
</Command>
<Command Name="cmdQat"/>
<Command Name="cmdFileMenu"/>
<Command Name="cmdMRUList">
<Command.LabelTitle>
<String Id ="280">MRU List</String>
</Command.LabelTitle>
</Command>
<Command Name="cmdExit" Symbol="IDC_CMD_EXIT">
<Command.LabelTitle>
<String Id ="290">Exit Button</String>
</Command.LabelTitle>
<Command.LargeImages>
<Image Id ="291">res/ExitL.bmp</Image>
</Command.LargeImages>
</Command>
</Application.Commands>
<Application.Views>
<Ribbon>
<Ribbon.ApplicationMenu>
<ApplicationMenu CommandName="cmdFileMenu">
<ApplicationMenu.RecentItems>
<RecentItems CommandName="cmdMRUList" MaxCount="1" />
</ApplicationMenu.RecentItems>
<MenuGroup Class="MajorItems">
<Button CommandName="cmdExit" />
</MenuGroup>
</ApplicationMenu>
</Ribbon.ApplicationMenu>
<Ribbon.Tabs>
<Tab CommandName="cmdTab1">
<Tab.ScalingPolicy>
<ScalingPolicy>
<ScalingPolicy.IdealSizes>
<!-- This describes the maximum size of each group in the tab. -->
<Scale Group="cmdGroup1" Size="Large" />
<Scale Group="cmdGroup2" Size="Large" />
<Scale Group="cmdGroup3" Size="Large" />
<Scale Group="cmdGroup4" Size="Large" />
</ScalingPolicy.IdealSizes>
<!-- This describes the order and how the groups shrink when the window is
resized. -->
<Scale Group="cmdGroup3" Size="Medium" />
<Scale Group="cmdGroup4" Size="Medium" />
<Scale Group="cmdGroup1" Size="Popup" />
<Scale Group="cmdGroup4" Size="Small" />
<Scale Group="cmdGroup2" Size="Medium" />
</ScalingPolicy>
</Tab.ScalingPolicy>
<Group CommandName="cmdGroup1" SizeDefinition="OneButton">
<Button CommandName="cmdButton1" />
</Group>
<Group CommandName="cmdGroup2" SizeDefinition="TwoButtons">
<Button CommandName="cmdButton2" />
<Button CommandName="cmdButton3" />
</Group>
<Group CommandName="cmdGroup3" SizeDefinition="ThreeButtons">
<!-- You can put the same commands into multiple groups. -->
<Button CommandName="cmdButton1" />
<Button CommandName="cmdButton2" />
<Button CommandName="cmdButton3" />
</Group>
<!-- The SizeDefinitions describe how many buttons are in the group and how the
individual elements inside the group shrink. -->
<Group CommandName="cmdGroup4" SizeDefinition="FiveOrSixButtons">
<Button CommandName="cmdButton3" />
<Button CommandName="cmdButton4" />
<ToggleButton CommandName="cmdToggleButton1" />
<Button CommandName="cmdButton5" />
<ToggleButton CommandName="cmdToggleButton2" />
</Group>
</Tab>
</Ribbon.Tabs>
<Ribbon.QuickAccessToolbar>
<QuickAccessToolbar CommandName="cmdQat" />
</Ribbon.QuickAccessToolbar>
</Ribbon>
</Application.Views>
</Application>