ControlDesigner.cs 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. //
  2. // System.Windows.Forms.Design.ComponentEditorForm.cs
  3. //
  4. // Authors:
  5. // Dennis Hayes ([email protected])
  6. // Miguel de Icaza ([email protected])
  7. //
  8. // (C) 2002 Ximian, Inc. http://www.ximian.com
  9. // Copyright (c) 2006 Novell, Inc.
  10. //
  11. //
  12. // Permission is hereby granted, free of charge, to any person obtaining
  13. // a copy of this software and associated documentation files (the
  14. // "Software"), to deal in the Software without restriction, including
  15. // without limitation the rights to use, copy, modify, merge, publish,
  16. // distribute, sublicense, and/or sell copies of the Software, and to
  17. // permit persons to whom the Software is furnished to do so, subject to
  18. // the following conditions:
  19. //
  20. // The above copyright notice and this permission notice shall be
  21. // included in all copies or substantial portions of the Software.
  22. //
  23. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  24. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  26. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  27. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  28. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  29. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  30. //
  31. using System;
  32. using System.Collections;
  33. using System.ComponentModel;
  34. using System.ComponentModel.Design;
  35. using System.Drawing;
  36. using System.Runtime.InteropServices;
  37. namespace System.Windows.Forms.Design {
  38. public class ControlDesigner : ComponentDesigner
  39. {
  40. #region Public Instance Constructors
  41. public ControlDesigner () : base ()
  42. {
  43. }
  44. #endregion Public Instance Constructors
  45. #region Static Constructor
  46. static ControlDesigner ()
  47. {
  48. ControlDesigner.InvalidPoint = new Point (int.MinValue, int.MinValue);
  49. }
  50. #endregion Static Constructor
  51. #region Public Instance Methods
  52. [MonoTODO]
  53. public virtual bool CanBeParentedTo (IDesigner parentDesigner)
  54. {
  55. throw new NotImplementedException ();
  56. }
  57. [MonoTODO]
  58. public override void OnSetComponentDefaults ()
  59. {
  60. throw new NotImplementedException ();
  61. }
  62. #endregion Public Instance Methods
  63. #region Protected Instance Methods
  64. [MonoTODO]
  65. protected void BaseWndProc (ref Message m)
  66. {
  67. throw new NotImplementedException ();
  68. }
  69. [MonoTODO]
  70. protected void DefWndProc (ref Message m)
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. [MonoTODO]
  75. protected void DisplayError (Exception e)
  76. {
  77. throw new NotImplementedException ();
  78. }
  79. [MonoTODO]
  80. protected void EnableDragDrop (bool value)
  81. {
  82. throw new NotImplementedException ();
  83. }
  84. [MonoTODO]
  85. protected virtual bool GetHitTest (Point point)
  86. {
  87. throw new NotImplementedException ();
  88. }
  89. [MonoTODO]
  90. protected void HookChildControls (Control firstChild)
  91. {
  92. throw new NotImplementedException ();
  93. }
  94. [MonoTODO]
  95. protected virtual void OnContextMenu (int x, int y)
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. [MonoTODO]
  100. protected virtual void OnCreateHandle ()
  101. {
  102. throw new NotImplementedException ();
  103. }
  104. [MonoTODO]
  105. protected virtual void OnDragDrop (DragEventArgs de)
  106. {
  107. throw new NotImplementedException ();
  108. }
  109. [MonoTODO]
  110. protected virtual void OnDragEnter (DragEventArgs de)
  111. {
  112. throw new NotImplementedException ();
  113. }
  114. [MonoTODO]
  115. protected virtual void OnDragLeave (EventArgs e)
  116. {
  117. throw new NotImplementedException ();
  118. }
  119. [MonoTODO]
  120. protected virtual void OnDragOver (DragEventArgs de)
  121. {
  122. throw new NotImplementedException ();
  123. }
  124. [MonoTODO]
  125. protected virtual void OnGiveFeedback (GiveFeedbackEventArgs e)
  126. {
  127. throw new NotImplementedException ();
  128. }
  129. [MonoTODO]
  130. protected virtual void OnMouseDragBegin (int x, int y)
  131. {
  132. throw new NotImplementedException ();
  133. }
  134. [MonoTODO]
  135. protected virtual void OnMouseDragEnd (bool cancel)
  136. {
  137. throw new NotImplementedException ();
  138. }
  139. [MonoTODO]
  140. protected virtual void OnMouseDragMove (int x, int y)
  141. {
  142. throw new NotImplementedException ();
  143. }
  144. [MonoTODO]
  145. protected virtual void OnMouseEnter ()
  146. {
  147. throw new NotImplementedException ();
  148. }
  149. [MonoTODO]
  150. protected virtual void OnMouseHover ()
  151. {
  152. throw new NotImplementedException ();
  153. }
  154. [MonoTODO]
  155. protected virtual void OnMouseLeave ()
  156. {
  157. throw new NotImplementedException ();
  158. }
  159. [MonoTODO]
  160. protected virtual void OnPaintAdornments (PaintEventArgs pe)
  161. {
  162. throw new NotImplementedException ();
  163. }
  164. [MonoTODO]
  165. protected virtual void OnSetCursor ()
  166. {
  167. throw new NotImplementedException ();
  168. }
  169. [MonoTODO]
  170. protected void UnhookChildControls (Control firstChild)
  171. {
  172. throw new NotImplementedException ();
  173. }
  174. [MonoTODO]
  175. protected virtual void WndProc (ref Message m)
  176. {
  177. throw new NotImplementedException ();
  178. }
  179. #endregion Protected Instance Methods
  180. #region Override implementation of ComponentDesigner
  181. [MonoTODO]
  182. protected override void Dispose (bool disposing)
  183. {
  184. throw new NotImplementedException ();
  185. }
  186. public override void Initialize (IComponent component)
  187. {
  188. if (component == null)
  189. throw new ArgumentNullException ("component");
  190. designed_control = component as Control;
  191. if (designed_control == null)
  192. throw new ArgumentException ("component", "Must derive from Control class");
  193. }
  194. [MonoTODO]
  195. public override void InitializeNonDefault ()
  196. {
  197. throw new NotImplementedException ();
  198. }
  199. [MonoTODO]
  200. protected override void PreFilterProperties (IDictionary properties)
  201. {
  202. throw new NotImplementedException ();
  203. }
  204. [MonoTODO]
  205. public override ICollection AssociatedComponents {
  206. get { throw new NotImplementedException (); }
  207. }
  208. #endregion Override implementation of ComponentDesigner
  209. #region Public Instance Properties
  210. [MonoTODO]
  211. public virtual AccessibleObject AccessibilityObject {
  212. get {
  213. if (accessibilityObj == null)
  214. accessibilityObj = new ControlDesignerAccessibleObject (this, Control);
  215. return accessibilityObj;
  216. }
  217. }
  218. [MonoTODO]
  219. public virtual SelectionRules SelectionRules {
  220. get { throw new NotImplementedException (); }
  221. }
  222. public virtual Control Control {
  223. get { return designed_control; }
  224. }
  225. #endregion Public Instance Properties
  226. #region Protected Instance Properties
  227. [MonoTODO]
  228. protected virtual bool EnableDragRect {
  229. get { throw new NotImplementedException (); }
  230. }
  231. #endregion Protected Instance Properties
  232. #region Protected Static Fields
  233. protected static readonly Point InvalidPoint;
  234. protected AccessibleObject accessibilityObj;
  235. #endregion Protected Static Fields
  236. #region Private Instance Fields
  237. Control designed_control;
  238. #endregion Private Instance Fields
  239. [ComVisibleAttribute(true)]
  240. public class ControlDesignerAccessibleObject : AccessibleObject
  241. {
  242. [MonoTODO]
  243. public ControlDesignerAccessibleObject (ControlDesigner designer, Control control)
  244. {
  245. throw new NotImplementedException ();
  246. }
  247. #region Override implementation of AccessibleObject
  248. [MonoTODO]
  249. public override AccessibleObject GetChild (int index)
  250. {
  251. throw new NotImplementedException ();
  252. }
  253. [MonoTODO]
  254. public override int GetChildCount ()
  255. {
  256. throw new NotImplementedException ();
  257. }
  258. [MonoTODO]
  259. public override AccessibleObject GetFocused ()
  260. {
  261. throw new NotImplementedException ();
  262. }
  263. [MonoTODO]
  264. public override AccessibleObject GetSelected ()
  265. {
  266. throw new NotImplementedException ();
  267. }
  268. [MonoTODO]
  269. public override AccessibleObject HitTest (int x, int y)
  270. {
  271. throw new NotImplementedException ();
  272. }
  273. [MonoTODO]
  274. public override Rectangle Bounds {
  275. get { throw new NotImplementedException (); }
  276. }
  277. [MonoTODO]
  278. public override string DefaultAction {
  279. get { throw new NotImplementedException (); }
  280. }
  281. [MonoTODO]
  282. public override string Description {
  283. get { throw new NotImplementedException (); }
  284. }
  285. [MonoTODO]
  286. public override string Name {
  287. get { throw new NotImplementedException (); }
  288. }
  289. [MonoTODO]
  290. public override AccessibleObject Parent {
  291. get { throw new NotImplementedException (); }
  292. }
  293. [MonoTODO]
  294. public override AccessibleRole Role {
  295. get { throw new NotImplementedException (); }
  296. }
  297. [MonoTODO]
  298. public override AccessibleStates State {
  299. get { throw new NotImplementedException (); }
  300. }
  301. [MonoTODO]
  302. public override string Value {
  303. get { throw new NotImplementedException (); }
  304. }
  305. #endregion Override implementation of AccessibleObject
  306. }
  307. }
  308. }