In .:
[mono.git] / mcs / class / System.Design / System.Windows.Forms.Design / ComponentDocumentDesigner.cs
1 //
2 // System.Windows.Forms.Design.ComponentDocumentDesigner.cs
3 //
4 // Author:
5 //   Dennis Hayes (dennish@raytek.com)
6 // (C) 2002 Ximian, Inc.  http://www.ximian.com
7 //
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
30 using System;
31 using System.Collections;
32 using System.ComponentModel;
33 using System.ComponentModel.Design;
34 using System.Drawing.Design;
35 using System.Windows.Forms;
36
37 namespace System.Windows.Forms.Design
38 {
39         public class ComponentDocumentDesigner : ComponentDesigner, IRootDesigner, IToolboxUser, ITypeDescriptorFilterService, IOleDragClient
40         {
41                 #region Public Instance Constructors
42
43                 [MonoTODO]
44                 public ComponentDocumentDesigner ()
45                 {
46                 }
47
48                 #endregion Public Instance Constructors
49
50                 #region Implementation of IRootDesigner
51
52                 ViewTechnology[] IRootDesigner.SupportedTechnologies
53                 {
54                         get
55                         {
56                                 ViewTechnology[] array1 = new ViewTechnology[1];
57                                 array1[0] = ViewTechnology.WindowsForms;
58                                 return array1;
59                         }
60                 }
61
62                 [MonoTODO]
63                 object IRootDesigner.GetView (ViewTechnology technology)
64                 {
65                         throw new NotImplementedException ();
66                 }
67
68                 #endregion Implementation of IRootDesigner
69
70                 #region Implementation of IToolboxUser
71
72                 bool IToolboxUser.GetToolSupported (ToolboxItem tool)
73                 {
74                         return true;
75                 }
76
77                 [MonoTODO]
78                 void IToolboxUser.ToolPicked (ToolboxItem tool)
79                 {
80                         throw new NotImplementedException ();
81                 }
82
83                 #endregion Implementation of IToolboxUser
84
85                 #region Implementation of ITypeDescriptorFilterService
86
87                 [MonoTODO]
88                 bool ITypeDescriptorFilterService.FilterAttributes (IComponent component, IDictionary attributes)
89                 {
90                         throw new NotImplementedException ();
91                 }
92
93                 [MonoTODO]
94                 bool ITypeDescriptorFilterService.FilterEvents (IComponent component, IDictionary events)
95                 {
96                         throw new NotImplementedException ();
97                 }
98
99                 [MonoTODO]
100                 bool ITypeDescriptorFilterService.FilterProperties (IComponent component, IDictionary properties)
101                 {
102                         throw new NotImplementedException ();
103                 }
104
105                 #endregion Implementation of ITypeDescriptorFilterService
106
107                 #region Implementation of IOleDragClient
108
109                 [MonoTODO]
110                 bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)
111                 {
112                         throw new NotImplementedException ();
113                 }
114
115                 bool IOleDragClient.CanModifyComponents
116                 {
117                         get
118                         {
119                                 return true;
120                         }
121                 }
122
123                 [MonoTODO]
124                 Control IOleDragClient.GetControlForComponent (object component)
125                 {
126                         throw new NotImplementedException ();
127                 }
128
129                 [MonoTODO]
130                 Control IOleDragClient.GetDesignerControl ()
131                 {
132                         throw new NotImplementedException ();
133                 }
134
135                 [MonoTODO]
136                 bool IOleDragClient.IsDropOk (IComponent component)
137                 {
138                         return true;
139                 }
140
141                 [MonoTODO]
142                 IComponent IOleDragClient.Component
143                 {
144                         get
145                         {
146                                 throw new NotImplementedException ();
147                         }
148                 }
149
150                 #endregion Implementation of IOleDragClient
151
152                 #region Public Instance Properties
153
154                 [MonoTODO]
155                 public Control Control
156                 {
157                         get
158                         {
159                                 throw new NotImplementedException ();
160                         }
161                 }
162
163                 public bool TrayAutoArrange
164                 {
165                         get
166                         {
167                                 throw new NotImplementedException ();
168                         }
169                         set
170                         {
171                                 throw new NotImplementedException ();
172                         }
173                 }
174                 public bool TrayLargeIcon
175                 {
176                         get
177                         {
178                                 throw new NotImplementedException ();
179                         }
180                         set
181                         {
182                                 throw new NotImplementedException ();
183                         }
184                 }
185
186                 #endregion Public Instance Properties
187
188                 [MonoTODO]
189                 public override void Initialize (IComponent component)
190                 {
191                         throw new NotImplementedException ();
192                 }
193
194                 [MonoTODO]
195                 protected override void Dispose (bool disposing)
196                 {
197                         throw new NotImplementedException ();
198                 }
199
200                 protected virtual bool GetToolSupported (ToolboxItem tool)
201                 {
202                         return true;
203                 }
204
205                 #region Override implementation of ComponentDesigner
206
207                 [MonoTODO]
208                 protected override void PreFilterProperties (IDictionary properties)
209                 {
210                         throw new NotImplementedException ();
211                 }
212
213                 #endregion Override implementation of ComponentDesigner
214         }
215 }