/EditorExtensions/CommandConstants.cs

https://github.com/leemicw/WebEssentials2013 · C# · 149 lines · 134 code · 9 blank · 6 comment · 0 complexity · 7810d10272db5b1efc5319ab7ba2d80d MD5 · raw file

  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace MadsKristensen.EditorExtensions
  4. {
  5. static class CommandGuids
  6. {
  7. public const string guidEditorExtensionsPkgString = "5fb7364d-2e8c-44a4-95eb-2a382e30fec8";
  8. public const string guidEditorExtensionsCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e41";
  9. public const string guidCssCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e50";
  10. public const string guidCssIntellisensCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e51";
  11. public const string guidDiffCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e59";
  12. public const string guidMinifyCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e61";
  13. public const string guidBundleCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e63";
  14. public const string guidExtractCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e64";
  15. public const string guidBuildCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e65";
  16. public const string guidFormattingCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e66";
  17. public const string guidEditorLinesCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e67";
  18. public const string guidImageCmdSetString = "e396b698-e00e-444b-9f5f-3dcb1ef74e68";
  19. public const string guidUnusedCssCmdSetString = "47BA41E6-C7AB-49F1-984A-30E672AFF9FC";
  20. public const string guidPixelPushingCmdSetString = "EE755B3C-F6ED-414B-86BA-1AADB7DAE216";
  21. public const string guidTopMenuString = "{30947ebe-9147-45f9-96cf-401bfc671a01}";
  22. public const string guidTypeScriptTypingsCmdSetString = "{6147C315-9D10-45E8-B410-CE8F3C22E030}";
  23. public static readonly Guid guidEditorExtensionsCmdSet = new Guid(guidEditorExtensionsCmdSetString);
  24. public static readonly Guid guidCssCmdSet = new Guid(guidCssCmdSetString);
  25. public static readonly Guid guidCssIntellisenseCmdSet = new Guid(guidCssIntellisensCmdSetString);
  26. public static readonly Guid guidDiffCmdSet = new Guid(guidDiffCmdSetString);
  27. public static readonly Guid guidMinifyCmdSet = new Guid(guidMinifyCmdSetString);
  28. public static readonly Guid guidBundleCmdSet = new Guid(guidBundleCmdSetString);
  29. public static readonly Guid guidExtractCmdSet = new Guid(guidExtractCmdSetString);
  30. public static readonly Guid guidBuildCmdSet = new Guid(guidBuildCmdSetString);
  31. public static readonly Guid guidFormattingCmdSet = new Guid(guidFormattingCmdSetString);
  32. public static readonly Guid guidEditorLinesCmdSet = new Guid(guidEditorLinesCmdSetString);
  33. public static readonly Guid guidImageCmdSet = new Guid(guidImageCmdSetString);
  34. public static readonly Guid guidUnusedCssCmdSet = new Guid(guidUnusedCssCmdSetString);
  35. public static readonly Guid guidPixelPushingCmdSet = new Guid(guidPixelPushingCmdSetString);
  36. public static readonly Guid guidTopMenu = new Guid(guidTopMenuString);
  37. public static readonly Guid guidTypeScriptTypingsCmdSet = new Guid(guidTypeScriptTypingsCmdSetString);
  38. }
  39. [Guid(CommandGuids.guidMinifyCmdSetString)]
  40. enum MinifyCommandId
  41. {
  42. MinifyCss = 0x1051,
  43. MinifyJs = 0x1052,
  44. MinifyHtml = 0x1058,
  45. MinifySelection = 0x1053,
  46. SelectBrowsers = 0x1055,
  47. }
  48. [Guid(CommandGuids.guidEditorLinesCmdSetString)]
  49. enum LinesCommandId
  50. {
  51. SortAsc = 0x0003,
  52. SortDesc = 0x0004,
  53. RemoveDuplicateLines = 0x0005,
  54. RemoveEmptyLines = 0x0007,
  55. }
  56. [Guid(CommandGuids.guidCssCmdSetString)]
  57. enum CssCommandId
  58. {
  59. RemoveDuplicates = 0x129,
  60. HideUnsupported = 0x1033,
  61. HideInheritInitial = 0x1035,
  62. SortProperties = 0x125,
  63. AddMissingVendor = 0x127,
  64. AddMissingStandard = 0x128,
  65. }
  66. [Guid(CommandGuids.guidFormattingCmdSetString)]
  67. enum FormattingCommandId
  68. {
  69. SurroundWith = 0x334,
  70. ExpandSelection = 0x335,
  71. ContractSelection = 0x336,
  72. }
  73. [Guid(CommandGuids.guidExtractCmdSetString)]
  74. enum ExtractCommandId
  75. {
  76. ExtractSelection = 0x1054,
  77. ExtractVariable = 0x1056,
  78. ExtractMixin = 0x1057,
  79. }
  80. [Guid(CommandGuids.guidEditorExtensionsCmdSetString)]
  81. enum CommandId
  82. {
  83. TopMenu = 0x3001,
  84. HtmlEncode = 0x102,
  85. HtmlDecode = 0x103,
  86. UrlEncode = 0x106,
  87. UrlDecode = 0x107,
  88. JsEncode = 0x108,
  89. AttrEncode = 0x109,
  90. TitleCaseTransform = 0x115,
  91. ReverseTransform = 0x116,
  92. NormalizeTransform = 0x118,
  93. MD5Transform = 0x120,
  94. SHA1Transform = 0x121,
  95. SHA256Transform = 0x122,
  96. SHA384Transform = 0x123,
  97. SHA512Transform = 0x124,
  98. RunDiff = 0x1041,
  99. RunJsHint = 0x1042,
  100. RunTsLint = 0x1092,
  101. RunCoffeeLint = 0x1096,
  102. RunJsCodeStyle = 0x1095,
  103. CreateSolutionSettings = 0x1044,
  104. CreateSolutionColorPalete = 0x1045,
  105. CreateMarkdownStylesheet = 0x1046,
  106. CreateJavaScriptIntellisenseFile = 0x1047,
  107. CreateTypeScriptIntellisenseFile = 0x1048,
  108. MarkdownCompile = 0x1039,
  109. EditGlobalJsHint = 0x1038,
  110. EditGlobalTsLint = 0x1098,
  111. EditGlobalCoffeeLint = 0x1100,
  112. EditGlobalJsCodeStyle = 0x1099,
  113. CssIntellisenseSubMenu = 0x1031,
  114. BundleCss = 0x1071,
  115. BundleJs = 0x1072,
  116. BundleHtml = 0x1074,
  117. ReferenceJs = 0x333,
  118. //ChainCompile = 0x337,
  119. // Build
  120. BuildBundles = 0x1083,
  121. BuildSprites = 0x1094,
  122. BuildLess = 0x1084,
  123. BuildSass = 0x1085,
  124. BuildMinify = 0x1086,
  125. BuildCoffeeScript = 0x1087,
  126. BuildSweetJs = 0x1088,
  127. // Images
  128. CompressImage = 0x1091,
  129. SpriteImage = 0x1093,
  130. //Unused CSS
  131. UnusedCssSnapshot = 0x2100,
  132. UnusedCssReset = 0x2101,
  133. UnusedCssRecordAll = 0x2102,
  134. UnusedCssStopRecordAll = 0x2103,
  135. //Pixel Pushing
  136. PixelPushingToggle = 0x2200,
  137. //T4 Template / TypeScript / SignalR
  138. AddHubT4 = 0x4001
  139. }
  140. }