ComponentDocumentDesigner.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. //
  2. // System.Windows.Forms.Design.ComponentDocumentDesigner.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. // (C) 2002 Ximian, Inc. http://www.ximian.com
  7. //
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. using System;
  29. using System.Collections;
  30. using System.ComponentModel;
  31. using System.ComponentModel.Design;
  32. using System.Drawing.Design;
  33. using System.Windows.Forms;
  34. namespace System.Windows.Forms.Design
  35. {
  36. public class ComponentDocumentDesigner : ComponentDesigner, IRootDesigner, IToolboxUser, ITypeDescriptorFilterService, IOleDragClient
  37. {
  38. #region Public Instance Constructors
  39. [MonoTODO]
  40. public ComponentDocumentDesigner ()
  41. {
  42. }
  43. #endregion Public Instance Constructors
  44. #region Implementation of IRootDesigner
  45. ViewTechnology[] IRootDesigner.SupportedTechnologies
  46. {
  47. get
  48. {
  49. ViewTechnology[] array1 = new ViewTechnology[1];
  50. array1[0] = ViewTechnology.WindowsForms;
  51. return array1;
  52. }
  53. }
  54. [MonoTODO]
  55. object IRootDesigner.GetView (ViewTechnology technology)
  56. {
  57. throw new NotImplementedException ();
  58. }
  59. #endregion Implementation of IRootDesigner
  60. #region Implementation of IToolboxUser
  61. bool IToolboxUser.GetToolSupported (ToolboxItem tool)
  62. {
  63. return true;
  64. }
  65. [MonoTODO]
  66. void IToolboxUser.ToolPicked (ToolboxItem tool)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. #endregion Implementation of IToolboxUser
  71. #region Implementation of ITypeDescriptorFilterService
  72. [MonoTODO]
  73. bool ITypeDescriptorFilterService.FilterAttributes (IComponent component, IDictionary attributes)
  74. {
  75. throw new NotImplementedException ();
  76. }
  77. [MonoTODO]
  78. bool ITypeDescriptorFilterService.FilterEvents (IComponent component, IDictionary events)
  79. {
  80. throw new NotImplementedException ();
  81. }
  82. [MonoTODO]
  83. bool ITypeDescriptorFilterService.FilterProperties (IComponent component, IDictionary properties)
  84. {
  85. throw new NotImplementedException ();
  86. }
  87. #endregion Implementation of ITypeDescriptorFilterService
  88. #region Implementation of IOleDragClient
  89. [MonoTODO]
  90. bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)
  91. {
  92. throw new NotImplementedException ();
  93. }
  94. bool IOleDragClient.CanModifyComponents
  95. {
  96. get
  97. {
  98. return true;
  99. }
  100. }
  101. [MonoTODO]
  102. Control IOleDragClient.GetControlForComponent (object component)
  103. {
  104. throw new NotImplementedException ();
  105. }
  106. [MonoTODO]
  107. Control IOleDragClient.GetDesignerControl ()
  108. {
  109. throw new NotImplementedException ();
  110. }
  111. [MonoTODO]
  112. bool IOleDragClient.IsDropOk (IComponent component)
  113. {
  114. return true;
  115. }
  116. [MonoTODO]
  117. IComponent IOleDragClient.Component
  118. {
  119. get
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. }
  124. #endregion Implementation of IOleDragClient
  125. #region Public Instance Properties
  126. [MonoTODO]
  127. public Control Control
  128. {
  129. get
  130. {
  131. throw new NotImplementedException ();
  132. }
  133. }
  134. public bool TrayAutoArrange
  135. {
  136. get
  137. {
  138. throw new NotImplementedException ();
  139. }
  140. set
  141. {
  142. throw new NotImplementedException ();
  143. }
  144. }
  145. public bool TrayLargeIcon
  146. {
  147. get
  148. {
  149. throw new NotImplementedException ();
  150. }
  151. set
  152. {
  153. throw new NotImplementedException ();
  154. }
  155. }
  156. #endregion Public Instance Properties
  157. [MonoTODO]
  158. public override void Initialize (IComponent component)
  159. {
  160. throw new NotImplementedException ();
  161. }
  162. [MonoTODO]
  163. protected override void Dispose (bool disposing)
  164. {
  165. throw new NotImplementedException ();
  166. }
  167. protected virtual bool GetToolSupported (ToolboxItem tool)
  168. {
  169. return true;
  170. }
  171. #region Override implementation of ComponentDesigner
  172. [MonoTODO]
  173. protected override void PreFilterProperties (IDictionary properties)
  174. {
  175. throw new NotImplementedException ();
  176. }
  177. #endregion Override implementation of ComponentDesigner
  178. }
  179. }