WebControlToolboxItem.cs 3.1 KB

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