New test.
[mono.git] / mcs / class / System.Design / System.ComponentModel.Design / CollectionEditor.cs
1 //
2 // System.ComponentModel.Design.CollectionEditor
3 //
4 // Authors:
5 //      Martin Willemoes Hansen (mwh@sysrq.dk)
6 //
7 // (C) 2003 Martin Willemoes Hansen
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
31 using System.Windows.Forms;
32 using System.Windows.Forms.Design;
33 using System.Drawing.Design;
34
35 namespace System.ComponentModel.Design
36 {
37         public class CollectionEditor : UITypeEditor
38         {
39                 protected abstract class CollectionForm : Form
40                 {
41                         [MonoTODO]
42                         public CollectionForm (CollectionEditor editor)
43                         {
44                         }
45
46                         public object EditValue {
47                                 [MonoTODO]
48                                 get { throw new NotImplementedException(); } 
49
50                                 [MonoTODO]
51                                 set { throw new NotImplementedException(); }
52                         }
53
54                         public override ISite Site {
55                                 [MonoTODO]
56                                 get { throw new NotImplementedException(); } 
57
58                                 [MonoTODO]
59                                 set { throw new NotImplementedException(); }
60                         }
61
62                         protected Type CollectionItemType {
63                                 [MonoTODO]
64                                 get { throw new NotImplementedException(); }
65                         }
66                         
67                         protected Type CollectionType {
68                                 [MonoTODO]
69                                 get { throw new NotImplementedException(); }
70                         }
71
72                         protected ITypeDescriptorContext Context {
73                                 [MonoTODO]
74                                 get { throw new NotImplementedException(); }
75                         }
76
77                         protected override ImeMode DefaultImeMode {
78                                 [MonoTODO]
79                                 get { throw new NotImplementedException(); }
80                         }
81
82                         protected object[] Items {
83                                 [MonoTODO]
84                                 get { throw new NotImplementedException(); } 
85
86                                 [MonoTODO]
87                                 set { throw new NotImplementedException(); }
88                         }
89
90                         protected Type[] NewItemTypes {
91                                 [MonoTODO]
92                                 get { throw new NotImplementedException(); }
93                         }
94
95                         [MonoTODO]
96                         protected bool CanRemoveInstance (object value)
97                         {
98                                 throw new NotImplementedException();
99                         }
100
101                         [MonoTODO]
102                         protected virtual bool CanSelectMultipleInstances()
103                         {
104                                 throw new NotImplementedException();
105                         }
106
107                         [MonoTODO]
108                         protected object CreateInstance (Type itemType)
109                         {
110                                 throw new NotImplementedException();
111                         }
112
113                         [MonoTODO]
114                         protected void DestroyInstance (object instance)
115                         {
116                                 throw new NotImplementedException();
117                         }
118
119                         [MonoTODO]
120                         protected virtual void DisplayError (Exception e)
121                         {
122                                 throw new NotImplementedException();
123                         }
124
125                         [MonoTODO]
126                         protected override object GetService (Type serviceType)
127                         {
128                                 throw new NotImplementedException();
129                         }
130
131                         protected abstract void OnEditValueChanged();
132
133                         [MonoTODO]
134                         protected internal virtual DialogResult ShowEditorDialog (
135                                                    IWindowsFormsEditorService edSvc)
136                         {
137                                 throw new NotImplementedException();
138                         }
139
140                         [MonoTODO]
141                         ~CollectionForm ()
142                         {
143                         }
144                 }
145
146                 [MonoTODO]
147                 public CollectionEditor (Type type)
148                 {
149                 }
150
151                 [MonoTODO]
152                 public override object EditValue (ITypeDescriptorContext context,
153                                                   IServiceProvider provider,
154                                                   object value)
155                 {
156                         throw new NotImplementedException();
157                 }
158
159                 [MonoTODO]
160                 public override UITypeEditorEditStyle GetEditStyle (
161                                                       ITypeDescriptorContext context)
162                 {
163                         throw new NotImplementedException();
164                 }
165
166                 protected Type CollectionItemType {
167                         [MonoTODO]
168                         get { throw new NotImplementedException(); }
169                 }
170
171                 protected Type CollectionType {
172                         [MonoTODO]
173                         get { throw new NotImplementedException(); }
174                 }
175
176                 protected ITypeDescriptorContext Context {
177                         [MonoTODO]
178                         get { throw new NotImplementedException(); }
179                 }
180                 
181                 protected virtual string HelpTopic {
182                         [MonoTODO]
183                         get { throw new NotImplementedException(); }
184                 }
185
186                 protected Type[] NewItemTypes {
187                         [MonoTODO]
188                         get { throw new NotImplementedException(); }
189                 }
190
191                 [MonoTODO]
192                 protected virtual bool CanRemoveInstance (object value)
193                 {
194                         throw new NotImplementedException();
195                 }
196
197                 [MonoTODO]
198                 protected virtual bool CanSelectMultipleInstances()
199                 {
200                         throw new NotImplementedException();
201                 }
202
203                 [MonoTODO]
204                 protected virtual CollectionForm CreateCollectionForm()
205                 {
206                         throw new NotImplementedException();
207                 }
208
209                 [MonoTODO]
210                 protected virtual Type CreateCollectionItemType()
211                 {
212                         throw new NotImplementedException();
213                 }
214
215                 [MonoTODO]
216                 protected virtual object CreateInstance (Type itemType)
217                 {
218                         throw new NotImplementedException();
219                 }
220
221                 [MonoTODO]
222                 protected virtual Type[] CreateNewItemTypes()
223                 {
224                         throw new NotImplementedException();
225                 }
226
227                 [MonoTODO]
228                 protected virtual void DestroyInstance (object instance)
229                 {
230                         throw new NotImplementedException();
231                 }
232
233                 [MonoTODO]
234                 protected virtual object[] GetItems (object editValue)
235                 {
236                         throw new NotImplementedException();
237                 }
238
239                 [MonoTODO]
240                 protected object GetService (Type serviceType)
241                 {
242                         throw new NotImplementedException();
243                 }
244
245                 [MonoTODO]
246                 protected virtual object SetItems (object editValue,
247                                                    object[] value)
248                 {
249                         throw new NotImplementedException();
250                 }
251
252                 [MonoTODO]
253                 protected virtual void ShowHelp()
254                 {
255                         throw new NotImplementedException();
256                 }
257         }
258 }