2007-09-28 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Design / System.ComponentModel.Design / MenuCommandService.cs
1 //
2 // System.ComponentModel.Design.MenuCommandService.cs
3 //
4 // Author:
5 //      Atsushi Enomoto  <atsushi@ximian.com>
6 //
7 // Copyright (C) 2007 Novell, Inc
8 //
9
10 //
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:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
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.
29 //
30 #if NET_2_0
31 using System;
32 using System.Collections;
33
34 namespace System.ComponentModel.Design
35 {
36         public class MenuCommandService : IMenuCommandService, IDisposable
37         {
38                 [MonoTODO]
39                 public MenuCommandService (IServiceProvider serviceProvider)
40                 {
41                         throw new NotImplementedException ();
42                 }
43
44                 public event MenuCommandsChangedEventHandler MenuCommandsChanged;
45
46                 [MonoTODO]
47                 public virtual DesignerVerbCollection Verbs {
48                         get { throw new NotImplementedException (); }
49                 }
50
51                 [MonoTODO]
52                 public virtual void AddCommand (MenuCommand command)
53                 {
54                         throw new NotImplementedException ();
55                 }
56
57                 [MonoTODO]
58                 public virtual void AddVerb (DesignerVerb verb)
59                 {
60                         throw new NotImplementedException ();
61                 }
62
63                 public void Dispose ()
64                 {
65                         Dispose (true);
66                 }
67
68                 [MonoTODO]
69                 protected virtual void Dispose (bool disposing)
70                 {
71                 }
72
73                 [MonoTODO]
74                 protected void EnsureVerbs ()
75                 {
76                         throw new NotImplementedException ();
77                 }
78
79                 [MonoTODO]
80                 public MenuCommand FindCommand (CommandID commandID)
81                 {
82                         throw new NotImplementedException ();
83                 }
84
85                 [MonoTODO]
86                 protected MenuCommand FindCommand (Guid guid, int id)
87                 {
88                         throw new NotImplementedException ();
89                 }
90
91                 [MonoTODO]
92                 protected ICollection GetCommandList (Guid guid)
93                 {
94                         throw new NotImplementedException ();
95                 }
96
97                 [MonoTODO]
98                 protected object GetService (Type serviceType)
99                 {
100                         throw new NotImplementedException ();
101                 }
102
103                 [MonoTODO]
104                 public virtual bool GlobalInvoke (CommandID commandID)
105                 {
106                         throw new NotImplementedException ();
107                 }
108
109                 [MonoTODO]
110                 public virtual bool GlobalInvoke (CommandID commandID, object arg)
111                 {
112                         throw new NotImplementedException ();
113                 }
114
115                 protected virtual void OnCommandsChanged (MenuCommandsChangedEventArgs e)
116                 {
117                         if (MenuCommandsChanged != null)
118                                 MenuCommandsChanged (this, e);
119                 }
120
121                 [MonoTODO]
122                 public virtual void RemoveCommand (MenuCommand command)
123                 {
124                         throw new NotImplementedException ();
125                 }
126
127                 [MonoTODO]
128                 public virtual void RemoveVerb (DesignerVerb verb)
129                 {
130                         throw new NotImplementedException ();
131                 }
132
133                 [MonoTODO]
134                 public virtual void ShowContextMenu (CommandID menuID, int x, int y)
135                 {
136                         throw new NotImplementedException ();
137                 }
138         }
139 }
140 #endif