MenuCommandService.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. //
  2. // System.ComponentModel.Design.MenuCommandService.cs
  3. //
  4. // Author:
  5. // Atsushi Enomoto <[email protected]>
  6. //
  7. // Copyright (C) 2007 Novell, Inc
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. #if NET_2_0
  30. using System;
  31. using System.Collections;
  32. namespace System.ComponentModel.Design
  33. {
  34. public class MenuCommandService : IMenuCommandService, IDisposable
  35. {
  36. [MonoTODO]
  37. public MenuCommandService (IServiceProvider serviceProvider)
  38. {
  39. throw new NotImplementedException ();
  40. }
  41. public event MenuCommandsChangedEventHandler MenuCommandsChanged;
  42. [MonoTODO]
  43. public virtual DesignerVerbCollection Verbs {
  44. get { throw new NotImplementedException (); }
  45. }
  46. [MonoTODO]
  47. public virtual void AddCommand (MenuCommand command)
  48. {
  49. throw new NotImplementedException ();
  50. }
  51. [MonoTODO]
  52. public virtual void AddVerb (DesignerVerb verb)
  53. {
  54. throw new NotImplementedException ();
  55. }
  56. public void Dispose ()
  57. {
  58. Dispose (true);
  59. }
  60. [MonoTODO]
  61. protected virtual void Dispose (bool disposing)
  62. {
  63. }
  64. [MonoTODO]
  65. protected void EnsureVerbs ()
  66. {
  67. throw new NotImplementedException ();
  68. }
  69. [MonoTODO]
  70. public MenuCommand FindCommand (CommandID commandID)
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. [MonoTODO]
  75. protected MenuCommand FindCommand (Guid guid, int id)
  76. {
  77. throw new NotImplementedException ();
  78. }
  79. [MonoTODO]
  80. protected ICollection GetCommandList (Guid guid)
  81. {
  82. throw new NotImplementedException ();
  83. }
  84. [MonoTODO]
  85. protected object GetService (Type serviceType)
  86. {
  87. throw new NotImplementedException ();
  88. }
  89. [MonoTODO]
  90. public virtual bool GlobalInvoke (CommandID commandID)
  91. {
  92. throw new NotImplementedException ();
  93. }
  94. [MonoTODO]
  95. public virtual bool GlobalInvoke (CommandID commandID, object arg)
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. protected virtual void OnCommandsChanged (MenuCommandsChangedEventArgs e)
  100. {
  101. if (MenuCommandsChanged != null)
  102. MenuCommandsChanged (this, e);
  103. }
  104. [MonoTODO]
  105. public virtual void RemoveCommand (MenuCommand command)
  106. {
  107. throw new NotImplementedException ();
  108. }
  109. [MonoTODO]
  110. public virtual void RemoveVerb (DesignerVerb verb)
  111. {
  112. throw new NotImplementedException ();
  113. }
  114. [MonoTODO]
  115. public virtual void ShowContextMenu (CommandID menuID, int x, int y)
  116. {
  117. throw new NotImplementedException ();
  118. }
  119. }
  120. }
  121. #endif