File: PkgCmd.vsct

package info (click to toggle)
mysql-connector-net 6.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,160 kB
  • ctags: 8,552
  • sloc: cs: 63,689; xml: 7,505; sql: 345; makefile: 50; ansic: 40
file content (315 lines) | stat: -rw-r--r-- 16,134 bytes parent folder | download | duplicates (3)
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<?xml version="1.0" encoding="utf-8"?>
<CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <!--  This is the file that defines the actual layout and type of the commands.
        It is divided in different sections (e.g. command definition, command
        placement, ...), with each defining a specific set of properties.
        See the comment before each section for more details about how to
        use it. -->

  <!--  The VSCT compiler (the tool that translates this file into the binary 
        format that VisualStudio will consume) has the ability to run a preprocessor 
        on the vsct file; this preprocessor is (usually) the C++ preprocessor, so 
        it is possible to define includes and macros with the same syntax used 
        in C++ files. Using this ability of the compiler here, we include some files 
        defining some of the constants that we will use inside the file. -->

  <!--This is the file that defines the IDs for all the commands exposed by VisualStudio. -->
  <!--<Extern href="stdidcmd.h"/>-->

  <!--This header contains the command ids for the menus provided by the shell. -->
  <!--<Extern href="vsshlids.h"/>-->

  <!--Definition of some VSCT specific constants. In this sample we use it for the IDs inside the guidOfficeIcon group. -->
  <!--<Extern href="msobtnid.h"/>-->




  <!--The Commands section is where we the commands, menus and menu groups are defined.
      This section uses a Guid to identify the package that provides the command defined inside it. -->
  <Commands package="guidMySqlProviderPkg">
    <!-- Inside this section we have different sub-sections: one for the menus, another  
    for the menu groups, one for the buttons (the actual commands), one for the combos 
    and the last one for the bitmaps used. Each element is identified by a command id that  
    is a unique pair of guid and numeric identifier; the guid part of the identifier is usually  
    called "command set" and is used to group different command inside a logically related  
    group; your package should define its own command set in order to avoid collisions  
    with command ids defined by other packages. -->

    <Menus>
      <Menu guid ="guidMySqlProviderCmdSet" id="menuGlobal" type="Menu" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_GLOBAL1" />
        <Strings>
          <ButtonText>&amp;Add New</ButtonText>
        </Strings>
      </Menu>
    </Menus>


    <!-- In this section you can define new menu groups. A menu group is a container for 
         other menus or buttons (commands); from a visual point of view you can see the 
         group as the part of a menu contained between two lines. The parent of a group 
         must be a menu. -->
    <Groups>
      <Group guid="guidMySqlProviderCmdSet" id="groupGlobal" priority ="0x100"/>
      <Group guid="guidMySqlProviderCmdSet" id="groupConfig" priority="0x0600">
        <Parent guid="guidSHLMainMenu" id="IDM_VS_TOOL_PROJWIN"/>
      </Group>
    </Groups>
    
    <!--Buttons section. -->
    <!--This section defines the elements the user can interact with, like a menu command or a button 
        or combo box in a toolbar. -->
    <!--To define a menu group you have to specify its ID, the parent menu and its display priority. 
          The command is visible and enabled by default. If you need to change the visibility, status, etc, you can use
          the CommandFlag node.
          You can add more than one CommandFlag node e.g.:
              <CommandFlag>DefaultInvisible</CommandFlag>
              <CommandFlag>DynamicVisibility</CommandFlag>
          If you do not want an image next to your command, remove the Icon node or set it to <Icon guid="guidOfficeIcon" id="msotcidNoIcon" /> -->
    <Buttons>
      <!-- these are our global create commands -->
      <Button guid="guidMySqlProviderCmdSet" id="cmdidGlobalCreateTable" type="Button" priority ="0x100">
        <Parent guid="guidMySqlProviderCmdSet" id="groupGlobal"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>&amp;Table</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidGlobalCreateView" type="Button" priority ="0x101">
        <Parent guid="guidMySqlProviderCmdSet" id="groupGlobal"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>&amp;View</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidGlobalCreateProcedure" type="Button" priority ="0x102">
        <Parent guid="guidMySqlProviderCmdSet" id="groupGlobal"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Stored &amp;Procedure</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidGlobalCreateFunction" type="Button" priority ="0x103">
        <Parent guid="guidMySqlProviderCmdSet" id="groupGlobal"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Stored &amp;Function</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidGlobalCreateUDF" type="Button" priority ="0x104">
        <Parent guid="guidMySqlProviderCmdSet" id="groupGlobal"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>&amp;UDF</ButtonText>
        </Strings>
      </Button>

      <!-- static create nodes -->
      <Button guid="guidMySqlProviderCmdSet" id="cmdidCreateTable" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_STATIC_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Create Table</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidCreateView" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_STATIC_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Create View</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidCreateProcedure" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_STATIC_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Create Stored Procedure</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidCreateFunction" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_STATIC_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Create Stored Function</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidCreateUDF" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_STATIC_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Create UDF</ButtonText>
        </Strings>
      </Button>

      <!-- non-static node commands -->
      <Button guid="guidMySqlProviderCmdSet" id="cmdidCreateTrigger" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_OBJECT_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Create Trigger</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidAlterView" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_OBJECT_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Alter View</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidAlterRoutine" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_OBJECT_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Alter Routine</ButtonText>
        </Strings>
      </Button>
      <Button guid="guidMySqlProviderCmdSet" id="cmdidAlterTrigger" type="Button" priority ="0x100">
        <Parent guid="guidVSData" id="IDG_DV_OBJECT_NODE"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidOfficeIcon" id="msotcidNoIcon" />
        <Strings>
          <ButtonText>Alter Trigger</ButtonText>
        </Strings>
      </Button>

      <Button guid="guidMySqlProviderCmdSet" id="cmdidConfig" priority="0x0100" type="Button">
        <Parent guid="guidMySqlProviderCmdSet" id="groupConfig"/>
        <CommandFlag>DynamicVisibility</CommandFlag>
        <CommandFlag>DefaultInvisible</CommandFlag>
        <Icon guid="guidImages" id="bmpConfig" />
        <Strings>
          <CommandName>cmdidConfig</CommandName>
          <ButtonText>MySQL Website Configuration</ButtonText>
        </Strings>
      </Button>
    </Buttons>
    <!--The bitmaps section is used to define the bitmaps that are used for the commands.-->
    <Bitmaps>
      <!--  The bitmap id is defined in a way that is a little bit different from the others: 
            the declaration starts with a guid for the bitmap strip, then there is the resource id of the 
            bitmap strip containing the bitmaps and then there are the numeric ids of the elements used 
            inside a button definition. An important aspect of this declaration is that the element id 
            must be the actual index (1-based) of the bitmap inside the bitmap strip. -->
      <Bitmap guid="guidImages" href="Resources\icon.bmp" usedList="bmpConfig"/>
    </Bitmaps>
  </Commands>


  <CommandPlacements>
    <!-- we have to place our group under each of our two menus -->
    <CommandPlacement guid="guidMySqlProviderCmdSet" id="groupGlobal" priority="0x0100">
      <Parent guid="guidMySqlProviderCmdSet" id="menuGlobal" />
    </CommandPlacement>
    <!--<CommandPlacement guid="guidMySqlProviderCmdSet" id="groupGlobal" priority="0x0100">
      <Parent guid="guidMySqlProviderCmdSet" id="menuGlobal2005" />
    </CommandPlacement>-->

    <!-- no real idea what is going on here.  We need to place this guid:id parent under
         the IDG_DV_GLOBAL1 object to make it work -->
    <!--<CommandPlacement guid="WhoKnows" id="WhoKnowsId" priority="0x1001">
      <Parent guid="guidVSData2005" id="IDG_DV_GLOBAL1" />
    </CommandPlacement>-->
    <CommandPlacement guid="WhoKnows" id="WhoKnowsId" priority="0x1001">
      <Parent guid="guidVSData" id="IDG_DV_GLOBAL1" />
    </CommandPlacement>
  </CommandPlacements>



  <Symbols>
    <!-- This is the package guid. -->
    <GuidSymbol name="guidMySqlProviderPkg" value="{79A115C9-B133-4891-9E7B-242509DAD272}" />
    
    <!-- This is the guid used to group the menu commands together -->
    <GuidSymbol name="guidMySqlProviderCmdSet" value="{B87CB51F-8A01-4c5e-BF3E-5D0565D5397D}">
      <IDSymbol name="menuGlobal" value="0x1000"/>
      <IDSymbol name="menuGlobal2005" value="0x1001"/>
      <IDSymbol name="groupGlobal" value="0x1002"/>
      <IDSymbol name="groupGlobal2005" value="0x1003"/>
      <IDSymbol name="groupConfig" value="0x1004"/>
      <IDSymbol name="cmdidGlobalCreateTable" value="500" />
      <IDSymbol name="cmdidGlobalCreateView" value="501" />
      <IDSymbol name="cmdidGlobalCreateProcedure" value="502" />
      <IDSymbol name="cmdidGlobalCreateFunction" value="503" />
      <IDSymbol name="cmdidGlobalCreateUDF" value="504" />
      <IDSymbol name="cmdidCreateTable" value="0x100" />
      <IDSymbol name="cmdidCreateView" value="0x110" />
      <IDSymbol name="cmdidCreateProcedure" value="0x120" />
      <IDSymbol name="cmdidCreateFunction" value="0x130" />
      <IDSymbol name="cmdidCreateTrigger" value="0x140" />
      <IDSymbol name="cmdidCreateUDF" value="0x150" />
      <IDSymbol name="cmdidAlterView" value="0x111" />
      <IDSymbol name="cmdidAlterRoutine" value="0x121" />
      <IDSymbol name="cmdidAlterTrigger" value="0x141" />
      <IDSymbol name="cmdidDelete" value="0x160"/>
      <IDSymbol name="cmdidConfig" value="0x800"/>
    </GuidSymbol>
    <GuidSymbol name="guidSharedMenuGroup" value="{234A7FC1-CFE9-4335-9E82-061F86E402C1}">
      <IDSymbol name="IDG_VS_PROJ_ADMIN"    value="0x014E"/>
      <IDSymbol name="IDG_VS_PROJ_TOOLBAR4" value="0x01D6"/>
      <IDSymbol name="IDG_VS_PROJ_TOOLBAR5" value="0x01D7"/>
    </GuidSymbol>
    <GuidSymbol name="guidVSStd97" value="{5efc7975-14bc-11cf-9b2b-00aa00573819}"/>
    <GuidSymbol name="guidSHLMainMenu" value="{d309f791-903f-11d0-9efc-00a0c911004f}">
      <IDSymbol name="IDM_VS_TOOL_PROJWIN"  value="0x0003" />
      <IDSymbol name="IDG_VS_PROJ_WEB1"     value="0x0148"/>
      <IDSymbol name="IDG_VS_PROJ_WEB2"     value="0x0149"/>
      <IDSymbol name="IDG_VS_PROJ_TOOLBAR5" value="0x01D7"/>
      <IDSymbol name="IDG_VS_PROJ_TOOLBAR1" value="0x014A"/>
      <IDSymbol name="IDG_VS_PROJ_TOOLBAR2" value="0x014B"/>
      <IDSymbol name="IDG_VS_PROJ_TOOLBAR3" value="0x01D5"/>
      <IDSymbol name="IDM_VS_MENU_PROJECT"  value="0x0083"/>
    </GuidSymbol>
    <GuidSymbol name="guidOfficeIcon" value="{d309f794-903f-11d0-9efc-00a0c911004f}">
      <IDSymbol name="msotcidGraph" value="0x0011" />
      <IDSymbol name="msotcidNoIcon" value="0x02EA" />
      <IDSymbol name="msotcidZoom" value="0x0019" />
      <IDSymbol name="msotcidGears" value="2144" />
    </GuidSymbol>
    <GuidSymbol name="guidVSData" value="{4614107f-217d-4bbf-9dfe-b9e165c65572}">
      <IDSymbol name="IDG_DV_GLOBAL1" value="0x4001"/>
      <IDSymbol name="IDG_DV_OBJECT_NODE" value="0x4301"/>
      <IDSymbol name="IDG_DV_STATIC_NODE" value="0x4401"/>
      <IDSymbol name="IDG_DV_STATIC_NODES" value="0x4701"/>
    </GuidSymbol>
    <GuidSymbol name="guidVSData2005" value="{501822e5-b5af-11d0-b4dc-00a0c91506ef}">
      <IDSymbol name="IDG_DV_GLOBAL1" value="0x2202"/>
    </GuidSymbol>
    <GuidSymbol name="WhoKnows" value="{501822e1-b5af-11d0-b4dc-00a0c91506ef}">
      <IDSymbol name="WhoKnowsId" value="0x3528"/>
    </GuidSymbol>
    <GuidSymbol name="guidImages" value="{db91e508-7dbc-49d4-a0b3-5e4920e43655}" >
      <IDSymbol name="bmpConfig" value="1" />
    </GuidSymbol>
  </Symbols>

</CommandTable>