ControlDesigner.cs 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. //
  2. // System.Windows.Forms.Design.ComponentEditorForm.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;
  33. using System.Runtime.InteropServices;
  34. namespace System.Windows.Forms.Design {
  35. public class ControlDesigner : ComponentDesigner
  36. {
  37. #region Public Instance Constructors
  38. [MonoTODO]
  39. public ControlDesigner()
  40. {
  41. throw new NotImplementedException ();
  42. }
  43. #endregion Public Instance Constructors
  44. #region Static Constructor
  45. static ControlDesigner()
  46. {
  47. ControlDesigner.InvalidPoint = new Point(int.MinValue, int.MinValue);
  48. }
  49. #endregion Static Constructor
  50. #region Public Instance Methods
  51. [MonoTODO]
  52. public virtual bool CanBeParentedTo(IDesigner parentDesigner)
  53. {
  54. throw new NotImplementedException ();
  55. }
  56. [MonoTODO]
  57. public override void OnSetComponentDefaults()
  58. {
  59. throw new NotImplementedException ();
  60. }
  61. #endregion Public Instance Methods
  62. #region Protected Instance Methods
  63. [MonoTODO]
  64. protected void BaseWndProc(ref Message m)
  65. {
  66. throw new NotImplementedException ();
  67. }
  68. [MonoTODO]
  69. protected void DefWndProc(ref Message m)
  70. {
  71. throw new NotImplementedException ();
  72. }
  73. [MonoTODO]
  74. protected void DisplayError(Exception e)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. [MonoTODO]
  79. protected void EnableDragDrop(bool value)
  80. {
  81. throw new NotImplementedException ();
  82. }
  83. [MonoTODO]
  84. protected virtual bool GetHitTest (Point point)
  85. {
  86. throw new NotImplementedException ();
  87. }
  88. [MonoTODO]
  89. protected void HookChildControls (Control firstChild)
  90. {
  91. throw new NotImplementedException ();
  92. }
  93. [MonoTODO]
  94. protected virtual void OnContextMenu (int x, int y)
  95. {
  96. throw new NotImplementedException ();
  97. }
  98. [MonoTODO]
  99. protected virtual void OnCreateHandle ()
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. [MonoTODO]
  104. protected virtual void OnDragDrop (DragEventArgs de)
  105. {
  106. throw new NotImplementedException ();
  107. }
  108. [MonoTODO]
  109. protected virtual void OnDragEnter (DragEventArgs de)
  110. {
  111. throw new NotImplementedException ();
  112. }
  113. [MonoTODO]
  114. protected virtual void OnDragLeave (EventArgs e)
  115. {
  116. throw new NotImplementedException ();
  117. }
  118. [MonoTODO]
  119. protected virtual void OnDragOver(DragEventArgs de)
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. [MonoTODO]
  124. protected virtual void OnGiveFeedback (GiveFeedbackEventArgs e)
  125. {
  126. throw new NotImplementedException ();
  127. }
  128. [MonoTODO]
  129. protected virtual void OnMouseDragBegin (int x, int y)
  130. {
  131. throw new NotImplementedException ();
  132. }
  133. [MonoTODO]
  134. protected virtual void OnMouseDragEnd (bool cancel)
  135. {
  136. throw new NotImplementedException ();
  137. }
  138. [MonoTODO]
  139. protected virtual void OnMouseDragMove (int x, int y)
  140. {
  141. throw new NotImplementedException ();
  142. }
  143. [MonoTODO]
  144. protected virtual void OnMouseEnter ()
  145. {
  146. throw new NotImplementedException ();
  147. }
  148. [MonoTODO]
  149. protected virtual void OnMouseHover ()
  150. {
  151. throw new NotImplementedException ();
  152. }
  153. [MonoTODO]
  154. protected virtual void OnMouseLeave ()
  155. {
  156. throw new NotImplementedException ();
  157. }
  158. [MonoTODO]
  159. protected virtual void OnPaintAdornments (PaintEventArgs pe)
  160. {
  161. throw new NotImplementedException ();
  162. }
  163. [MonoTODO]
  164. protected virtual void OnSetCursor ()
  165. {
  166. throw new NotImplementedException ();
  167. }
  168. [MonoTODO]
  169. protected void UnhookChildControls (Control firstChild)
  170. {
  171. throw new NotImplementedException ();
  172. }
  173. [MonoTODO]
  174. protected virtual void WndProc (ref Message m)
  175. {
  176. throw new NotImplementedException ();
  177. }
  178. #endregion Protected Instance Methods
  179. #region Override implementation of ComponentDesigner
  180. [MonoTODO]
  181. protected override void Dispose (bool disposing)
  182. {
  183. throw new NotImplementedException ();
  184. }
  185. [MonoTODO]
  186. public override void Initialize (IComponent component)
  187. {
  188. throw new NotImplementedException ();
  189. }
  190. [MonoTODO]
  191. public override void InitializeNonDefault ()
  192. {
  193. throw new NotImplementedException ();
  194. }
  195. [MonoTODO]
  196. protected override void PreFilterProperties (IDictionary properties)
  197. {
  198. throw new NotImplementedException ();
  199. }
  200. [MonoTODO]
  201. public override ICollection AssociatedComponents
  202. {
  203. get
  204. {
  205. throw new NotImplementedException ();
  206. }
  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. {
  221. get
  222. {
  223. throw new NotImplementedException ();
  224. }
  225. }
  226. [MonoTODO]
  227. public virtual Control Control
  228. {
  229. get
  230. {
  231. throw new NotImplementedException ();
  232. }
  233. }
  234. #endregion Public Instance Properties
  235. #region Protected Instance Properties
  236. [MonoTODO]
  237. protected virtual bool EnableDragRect
  238. {
  239. get
  240. {
  241. throw new NotImplementedException ();
  242. }
  243. }
  244. #endregion Protected Instance Properties
  245. #region Protected Static Fields
  246. protected static readonly Point InvalidPoint;
  247. protected AccessibleObject accessibilityObj;
  248. #endregion Protected Static Fields
  249. [ComVisibleAttribute(true)]
  250. public class ControlDesignerAccessibleObject : AccessibleObject
  251. {
  252. [MonoTODO]
  253. public ControlDesignerAccessibleObject (ControlDesigner designer, Control control)
  254. {
  255. throw new NotImplementedException ();
  256. }
  257. #region Override implementation of AccessibleObject
  258. [MonoTODO]
  259. public override AccessibleObject GetChild (int index)
  260. {
  261. throw new NotImplementedException ();
  262. }
  263. [MonoTODO]
  264. public override int GetChildCount ()
  265. {
  266. throw new NotImplementedException ();
  267. }
  268. [MonoTODO]
  269. public override AccessibleObject GetFocused ()
  270. {
  271. throw new NotImplementedException ();
  272. }
  273. [MonoTODO]
  274. public override AccessibleObject GetSelected ()
  275. {
  276. throw new NotImplementedException ();
  277. }
  278. [MonoTODO]
  279. public override AccessibleObject HitTest (int x, int y)
  280. {
  281. throw new NotImplementedException ();
  282. }
  283. [MonoTODO]
  284. public override Rectangle Bounds
  285. {
  286. get
  287. {
  288. throw new NotImplementedException ();
  289. }
  290. }
  291. [MonoTODO]
  292. public override string DefaultAction
  293. {
  294. get
  295. {
  296. throw new NotImplementedException ();
  297. }
  298. }
  299. [MonoTODO]
  300. public override string Description
  301. {
  302. get
  303. {
  304. throw new NotImplementedException ();
  305. }
  306. }
  307. [MonoTODO]
  308. public override string Name
  309. {
  310. get
  311. {
  312. throw new NotImplementedException ();
  313. }
  314. }
  315. [MonoTODO]
  316. public override AccessibleObject Parent
  317. {
  318. get
  319. {
  320. throw new NotImplementedException ();
  321. }
  322. }
  323. [MonoTODO]
  324. public override AccessibleRole Role
  325. {
  326. get
  327. {
  328. throw new NotImplementedException ();
  329. }
  330. }
  331. [MonoTODO]
  332. public override AccessibleStates State
  333. {
  334. get
  335. {
  336. throw new NotImplementedException ();
  337. }
  338. }
  339. [MonoTODO]
  340. public override string Value
  341. {
  342. get
  343. {
  344. throw new NotImplementedException ();
  345. }
  346. }
  347. #endregion Override implementation of AccessibleObject
  348. }
  349. }
  350. }