Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Workflow.ComponentModel / AuthoringOM / Design / MenuCommands.cs
blobc8701dd8fdcf1e36cc469c8bb6eb892598f1c84a
1 namespace System.Workflow.ComponentModel.Design
3 using System;
4 using System.ComponentModel.Design;
6 [Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
7 public sealed class WorkflowMenuCommands : StandardCommands
9 //Debugger commmands in \\cpvsbuild\drops\whidbey\pd6\raw\current\sources\debugger\vsdebug\resource\VSDbgCmdBase.ctc
11 public static readonly Guid WorkflowCommandSetId = new Guid("9aeb9524-82c6-40b9-9285-8d85d3dbd4c4");
12 public static readonly Guid DebugCommandSetId = new Guid("C9DD4A59-47FB-11d2-83E7-00C04F9902C1");
13 public static readonly Guid DebugWorkflowGroupId = new Guid("{e186451b-2313-42bd-84b9-815f1c923aef}");
15 //standard vs command set ids
16 internal static readonly Guid StandardCommandSet97Id = new Guid("{5efc7975-14bc-11cf-9b2b-00aa00573819}");
17 internal static readonly Guid StandardCommandSet2kId = new Guid("{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}");
19 //toolbar
20 public const int WorkflowToolBar = 0x050C;
22 // command ids
23 //Debug menu ids
24 private const int cmdidInsertBreakpoint = 0x00000177;
25 private const int cmdidInsertTracepoint = 0x00000041;
26 private const int cmdidEnableBreakpoint = 0x00000178;
27 private const int cmdidToggleBreakpoint = 0x000000FF;
28 private const int cmdidShowNextStatement = 0x00000103;
29 private const int cmdidRunToCursor = 0x000000FB;
30 private const int cmdidSetNextStatement = 0x00000102;
31 private const int cmdidGoToDisassembly = 0x00000107;
32 private const int cmdidNewFileTracepoint = 0x00000140;
33 private const int cmdidNewDataBreakpoint = 0x00000139;
35 private const int cmdidClearBreakpoints = 0x00000100;
36 private const int cmdidBreakpointLocation = 0x00000142;
37 private const int cmdidBreakpointCondition = 0x00000143;
38 private const int cmdidBreakpointHitCount = 0x00000144;
39 private const int cmdidBreakpointConstraints = 0x00000145;
40 private const int cmdidBreakpointAction = 0x00000146;
41 private const int cmdidShowExecutionState = 0x00001002;
44 //standard print command ids
45 private const int cmdidPrint = 0x001b; //27
46 private const int cmdidPageSetup = 0x00e3; //227
47 private const int cmdidPrintPreview = 0x00e4; //228
49 //Properties command id
50 private const int cmdidProperties = 0x1001;
52 // zoom
53 private const int cmdidWOEZoom400 = 0x3100;
54 private const int cmdidWOEZoom300 = 0x3101;
55 private const int cmdidWOEZoom200 = 0x3102;
56 private const int cmdidWOEZoom150 = 0x3103;
57 private const int cmdidWOEZoom100 = 0x3104;
58 private const int cmdidWOEZoom75 = 0x3105;
59 private const int cmdidWOEZoom50 = 0x3106;
60 private const int cmdidWOEShowAll = 0x3107;
62 public const int FirstZoomCommand = cmdidWOEZoom400; //the first and last zoom commands
63 public const int LastZoomCommand = cmdidWOEShowAll; //should be in sync with the \private\Core\Tools\OrchestrationDesignerUI\PkgCmdID.h
65 // page layout
66 private const int cmdidDefaultPage = 0x3110;
67 private const int cmdidAutoWidthPage = 0x3111;
68 private const int cmdidAutoHeightPage = 0x3112;
70 // Common commands
71 private const int cmdidExpand = 0x3113;
72 private const int cmdidCollapse = 0x3114;
74 // pan / zoom in/out
75 private const int cmdidZoomIn = 0x3119;
76 private const int cmdidZoomOut = 0x311A;
77 private const int cmdidPan = 0x311B;
78 private const int cmdidDefaultFilter = 0x311C;
80 private const int cmdidDisable = 0x3115;
81 private const int cmdidEnable = 0x3116;
82 private const int cmdidChangeTheme = 0x3117;
83 private const int cmdidCreateTheme = 0x3118;
85 private const int cmdidZoomLevelCombo = 0x311F;
86 private const int cmdidZoomLevelListHandler = 0x3120;
88 //non-toggling print preview (for the layout menu in the right bottom corner)
89 private const int cmdidPrintPreviewPage = 0x3121;
91 private const int cmdidSaveWorkflowAsImage = 0x3124;
92 private const int cmdidCopyWorkflowToClipboard = 0x3125;
94 private const int cmdidDebugWorkflowSteppingInstance = 0x3201;
95 private const int cmdidDebugWorkflowSteppingBranch = 0x3202;
97 private const int cmdidPageUp = 0x001B;
98 private const int cmdidPageDn = 0x001D;
100 // menu ids
101 private const int mnuidSelection = 0x0500;
102 private const int mnuidZoom = 0x0507;
103 private const int mnuidPageLayout = 0x0508;
104 private const int mnuidDesignerActions = 0x0509;
105 private const int mnuidPan = 0x050B;
107 public WorkflowMenuCommands()
111 //verbids
112 public static readonly int VerbGroupGeneral = StandardCommands.VerbFirst.ID;
113 public static readonly int VerbGroupView = StandardCommands.VerbFirst.ID + 25;
114 public static readonly int VerbGroupEdit = StandardCommands.VerbFirst.ID + 50;
115 public static readonly int VerbGroupOptions = StandardCommands.VerbFirst.ID + 75;
116 public static readonly int VerbGroupActions = StandardCommands.VerbFirst.ID + 100;
117 public static readonly int VerbGroupMisc = StandardCommands.VerbFirst.ID + 125;
118 public static readonly int VerbGroupDesignerActions = StandardCommands.VerbFirst.ID + 150;
120 //Menuids
121 public static readonly Guid MenuGuid = WorkflowCommandSetId;
122 public static readonly CommandID SelectionMenu = new CommandID(WorkflowCommandSetId, mnuidSelection);
123 public static readonly CommandID DesignerActionsMenu = new CommandID(WorkflowCommandSetId, mnuidDesignerActions);
125 //debug
126 public static readonly CommandID InsertBreakpointMenu = new CommandID(StandardCommandSet97Id, cmdidInsertBreakpoint);
127 public static readonly CommandID EnableBreakpointMenu = new CommandID(StandardCommandSet97Id, cmdidEnableBreakpoint);
128 public static readonly CommandID ToggleBreakpointMenu = new CommandID(StandardCommandSet97Id, cmdidToggleBreakpoint);
129 public static readonly CommandID ClearBreakpointsMenu = new CommandID(StandardCommandSet97Id, cmdidClearBreakpoints);
130 public static readonly CommandID ShowNextStatementMenu = new CommandID(StandardCommandSet97Id, cmdidShowNextStatement);
131 public static readonly CommandID RunToCursorMenu = new CommandID(StandardCommandSet97Id, cmdidRunToCursor);
132 public static readonly CommandID SetNextStatementMenu = new CommandID(StandardCommandSet97Id, cmdidSetNextStatement);
133 public static readonly CommandID GotoDisassemblyMenu = new CommandID(DebugCommandSetId, cmdidGoToDisassembly);
134 public static readonly CommandID NewFileTracePointMenu = new CommandID(DebugCommandSetId, cmdidNewFileTracepoint);
135 public static readonly CommandID NewDataBreakpointMenu = new CommandID(DebugCommandSetId, cmdidNewDataBreakpoint);
137 public static readonly CommandID InsertTracePointMenu = new CommandID(DebugCommandSetId, cmdidInsertTracepoint);
138 public static readonly CommandID BreakpointLocationMenu = new CommandID(DebugCommandSetId, cmdidBreakpointLocation);
139 public static readonly CommandID BreakpointConditionMenu = new CommandID(DebugCommandSetId, cmdidBreakpointCondition);
140 public static readonly CommandID BreakpointHitCountMenu = new CommandID(DebugCommandSetId, cmdidBreakpointHitCount);
141 public static readonly CommandID BreakpointConstraintsMenu = new CommandID(DebugCommandSetId, cmdidBreakpointConstraints);
142 public static readonly CommandID BreakpointActionMenu = new CommandID(DebugCommandSetId, cmdidBreakpointAction);
143 public static readonly CommandID ExecutionStateMenu = new CommandID(WorkflowCommandSetId, cmdidShowExecutionState);
145 public static readonly CommandID DebugStepInstanceMenu = new CommandID(WorkflowCommandSetId, cmdidDebugWorkflowSteppingInstance);
146 public static readonly CommandID DebugStepBranchMenu = new CommandID(WorkflowCommandSetId, cmdidDebugWorkflowSteppingBranch);
148 //print
149 public static readonly CommandID Print = new CommandID(StandardCommandSet97Id, cmdidPrint);
150 public static readonly CommandID PageSetup = new CommandID(StandardCommandSet97Id, cmdidPageSetup);
151 public static readonly CommandID PrintPreview = new CommandID(StandardCommandSet97Id, cmdidPrintPreview);
153 public static readonly CommandID PageUp = new CommandID(StandardCommandSet2kId, cmdidPageUp);
154 public static readonly CommandID PageDown = new CommandID(StandardCommandSet2kId, cmdidPageDn);
156 //Properties
157 public static readonly CommandID DesignerProperties = new CommandID(WorkflowCommandSetId, cmdidProperties);
159 // zoom menu
160 public static readonly CommandID ZoomMenu = new CommandID(WorkflowCommandSetId, mnuidZoom);
161 public static readonly CommandID PageLayoutMenu = new CommandID(WorkflowCommandSetId, mnuidPageLayout);
162 public static readonly CommandID PanMenu = new CommandID(WorkflowCommandSetId, mnuidPan);
164 // zoom commands
165 public static readonly CommandID Zoom400Mode = new CommandID(WorkflowCommandSetId, cmdidWOEZoom400);
166 public static readonly CommandID Zoom300Mode = new CommandID(WorkflowCommandSetId, cmdidWOEZoom300);
167 public static readonly CommandID Zoom200Mode = new CommandID(WorkflowCommandSetId, cmdidWOEZoom200);
168 public static readonly CommandID Zoom150Mode = new CommandID(WorkflowCommandSetId, cmdidWOEZoom150);
169 public static readonly CommandID Zoom100Mode = new CommandID(WorkflowCommandSetId, cmdidWOEZoom100);
170 public static readonly CommandID Zoom75Mode = new CommandID(WorkflowCommandSetId, cmdidWOEZoom75);
171 public static readonly CommandID Zoom50Mode = new CommandID(WorkflowCommandSetId, cmdidWOEZoom50);
172 public static readonly CommandID ShowAll = new CommandID(WorkflowCommandSetId, cmdidWOEShowAll);
174 // page layout
175 public static readonly CommandID DefaultPage = new CommandID(WorkflowCommandSetId, cmdidDefaultPage);
176 public static readonly CommandID PrintPreviewPage = new CommandID(WorkflowCommandSetId, cmdidPrintPreviewPage);
178 //Common commands
179 public static readonly CommandID Expand = new CommandID(WorkflowCommandSetId, cmdidExpand);
180 public static readonly CommandID Collapse = new CommandID(WorkflowCommandSetId, cmdidCollapse);
181 public static readonly CommandID Disable = new CommandID(WorkflowCommandSetId, cmdidDisable);
182 public static readonly CommandID Enable = new CommandID(WorkflowCommandSetId, cmdidEnable);
184 public static readonly CommandID ChangeTheme = new CommandID(WorkflowCommandSetId, cmdidChangeTheme);
185 public static readonly CommandID CreateTheme = new CommandID(WorkflowCommandSetId, cmdidCreateTheme);
187 // zoom In/Out and panning
188 public static readonly CommandID ZoomIn = new CommandID(WorkflowCommandSetId, cmdidZoomIn);
189 public static readonly CommandID ZoomOut = new CommandID(WorkflowCommandSetId, cmdidZoomOut);
190 public static readonly CommandID Pan = new CommandID(WorkflowCommandSetId, cmdidPan);
191 public static readonly CommandID DefaultFilter = new CommandID(WorkflowCommandSetId, cmdidDefaultFilter);
193 //zoom level combo
194 public static readonly CommandID ZoomLevelCombo = new CommandID(WorkflowCommandSetId, cmdidZoomLevelCombo);
195 public static readonly CommandID ZoomLevelListHandler = new CommandID(WorkflowCommandSetId, cmdidZoomLevelListHandler);
197 //Save workflow commands
198 public static readonly CommandID SaveAsImage = new CommandID(WorkflowCommandSetId, cmdidSaveWorkflowAsImage);
199 public static readonly CommandID CopyToClipboard = new CommandID(WorkflowCommandSetId, cmdidCopyWorkflowToClipboard);