2 // System.ComponentModel.Design.MenuCommandService.cs
5 // Atsushi Enomoto <atsushi@ximian.com>
7 // Copyright (C) 2007 Novell, Inc
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 using System.Collections;
34 namespace System.ComponentModel.Design
36 public class MenuCommandService : IMenuCommandService, IDisposable
39 public MenuCommandService (IServiceProvider serviceProvider)
41 throw new NotImplementedException ();
44 public event MenuCommandsChangedEventHandler MenuCommandsChanged;
47 public virtual DesignerVerbCollection Verbs {
48 get { throw new NotImplementedException (); }
52 public virtual void AddCommand (MenuCommand command)
54 throw new NotImplementedException ();
58 public virtual void AddVerb (DesignerVerb verb)
60 throw new NotImplementedException ();
63 public void Dispose ()
69 protected virtual void Dispose (bool disposing)
74 protected void EnsureVerbs ()
76 throw new NotImplementedException ();
80 public MenuCommand FindCommand (CommandID commandID)
82 throw new NotImplementedException ();
86 protected MenuCommand FindCommand (Guid guid, int id)
88 throw new NotImplementedException ();
92 protected ICollection GetCommandList (Guid guid)
94 throw new NotImplementedException ();
98 protected object GetService (Type serviceType)
100 throw new NotImplementedException ();
104 public virtual bool GlobalInvoke (CommandID commandID)
106 throw new NotImplementedException ();
110 public virtual bool GlobalInvoke (CommandID commandID, object arg)
112 throw new NotImplementedException ();
115 protected virtual void OnCommandsChanged (MenuCommandsChangedEventArgs e)
117 if (MenuCommandsChanged != null)
118 MenuCommandsChanged (this, e);
122 public virtual void RemoveCommand (MenuCommand command)
124 throw new NotImplementedException ();
128 public virtual void RemoveVerb (DesignerVerb verb)
130 throw new NotImplementedException ();
134 public virtual void ShowContextMenu (CommandID menuID, int x, int y)
136 throw new NotImplementedException ();