This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / class / System.Design / System.Web.UI.Design / WebControlToolboxItem.cs
1
2 //
3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
10 // 
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
13 // 
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 //
22 using System;
23 using System.Collections;
24 using System.ComponentModel.Design;
25 using System.ComponentModel;
26 using System.Drawing.Design;
27 using System.Runtime.Serialization;
28 using System.Web.UI.WebControls;
29
30 namespace System.Web.UI.Design
31 {
32         [MonoTODO]
33         public class WebControlToolboxItem : ToolboxItem
34         {
35                 #region Public Instance Constructors
36
37                 public WebControlToolboxItem ()
38                 {
39                         toolData = null;
40                         persistChildren = -1;
41                 }
42
43                 [MonoTODO]
44                 public WebControlToolboxItem (Type type)
45                 {
46                         toolData = null;
47                         persistChildren = -1;
48                 }
49
50                 #endregion Public Instance Constructors
51
52                 #region Override implementation of ToolboxItem
53
54                 [MonoTODO]
55                 protected override IComponent[] CreateComponentsCore (IDesignerHost host)
56                 {
57                         throw new NotImplementedException ();
58                 }
59
60                 [MonoTODO]
61                 protected override void Serialize (SerializationInfo info, StreamingContext context)
62                 {
63                         base.Serialize (info, context);
64                         if (this.toolData != null)
65                         {
66                                 info.AddValue ("ToolData", this.toolData);
67                         }
68                         if (this.persistChildren != -1)
69                         {
70                                 info.AddValue ("PersistChildren", this.persistChildren);
71                         }
72                 }
73
74                 [MonoTODO]
75                 protected override void Deserialize (SerializationInfo info, StreamingContext context)
76                 {
77                         base.Deserialize (info, context);
78                         toolData = info.GetString ("ToolData");
79                         persistChildren = info.GetInt32 ("PersistChildren");
80                 }
81
82                 [MonoTODO]
83                 public override void Initialize (Type type)
84                 {
85                         throw new NotImplementedException ();
86                 }
87
88                 #endregion Override implementation of ToolboxItem
89
90                 #region Public Instance Methods
91
92                 [MonoTODO]
93                 public object GetToolAttributeValue (IDesignerHost host, Type attributeType)
94                 {
95                         throw new NotImplementedException ();
96                 }
97
98                 [MonoTODO]
99                 public string GetToolHtml (IDesignerHost host)
100                 {
101                         throw new NotImplementedException ();
102                 }
103
104                 [MonoTODO]
105                 public Type GetToolType (IDesignerHost host)
106                 {
107                         throw new NotImplementedException ();
108                 }
109
110                 #endregion Public Instance Methods
111
112                 #region Private Instance Fields
113
114                 private int persistChildren;
115                 private string toolData;
116
117                 #endregion Private Instance Fields
118         }
119
120 }