ParentControlDesigner.cs 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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. using System;
  9. using System.Collections;
  10. using System.ComponentModel;
  11. using System.ComponentModel.Design;
  12. using System.Diagnostics;
  13. using System.Drawing;
  14. using System.Drawing.Design;
  15. namespace System.Windows.Forms.Design
  16. {
  17. public class ParentControlDesigner : ControlDesigner, ISelectionUIHandler, IOleDragClient
  18. {
  19. #region Public Instance Constructors
  20. [MonoTODO]
  21. public ParentControlDesigner ()
  22. {
  23. throw new NotImplementedException ();
  24. }
  25. #endregion Public Instance Constructors
  26. #region Static Constructor
  27. static ParentControlDesigner ()
  28. {
  29. ParentControlDesigner.StepControls = new BooleanSwitch ("StepControls", "ParentControlDesigner: step added controls");
  30. }
  31. #endregion Static Constructor
  32. #region Internal Instance Properties
  33. [MonoTODO]
  34. internal Size ParentGridSize
  35. {
  36. get
  37. {
  38. throw new NotImplementedException ();
  39. }
  40. }
  41. #endregion Internal Instance Properties
  42. #region Protected Instance Properties
  43. [MonoTODO]
  44. protected virtual Point DefaultControlLocation
  45. {
  46. get
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. }
  51. [MonoTODO]
  52. protected virtual bool DrawGrid
  53. {
  54. get
  55. {
  56. throw new NotImplementedException ();
  57. }
  58. set
  59. {
  60. throw new NotImplementedException ();
  61. }
  62. }
  63. [MonoTODO]
  64. protected Size GridSize
  65. {
  66. get
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. set
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. }
  75. #endregion Protected Instance Properties
  76. #region Override implementation of ControlDesigner
  77. [MonoTODO]
  78. protected override void Dispose (bool disposing)
  79. {
  80. throw new NotImplementedException ();
  81. }
  82. [MonoTODO]
  83. public override void Initialize (IComponent component)
  84. {
  85. throw new NotImplementedException ();
  86. }
  87. [MonoTODO]
  88. protected override void OnDragDrop (DragEventArgs de)
  89. {
  90. throw new NotImplementedException ();
  91. }
  92. [MonoTODO]
  93. protected override void OnDragEnter (DragEventArgs de)
  94. {
  95. throw new NotImplementedException ();
  96. }
  97. [MonoTODO]
  98. protected override void OnDragLeave (EventArgs e)
  99. {
  100. throw new NotImplementedException ();
  101. }
  102. [MonoTODO]
  103. protected override void OnDragOver (DragEventArgs de)
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. [MonoTODO]
  108. protected override void OnGiveFeedback (GiveFeedbackEventArgs e)
  109. {
  110. throw new NotImplementedException ();
  111. }
  112. [MonoTODO]
  113. protected override void OnMouseDragBegin (int x, int y)
  114. {
  115. throw new NotImplementedException ();
  116. }
  117. [MonoTODO]
  118. protected override void OnMouseDragEnd (bool cancel)
  119. {
  120. throw new NotImplementedException ();
  121. }
  122. [MonoTODO]
  123. protected override void OnMouseDragMove (int x, int y)
  124. {
  125. throw new NotImplementedException ();
  126. }
  127. [MonoTODO]
  128. protected override void OnMouseEnter ()
  129. {
  130. throw new NotImplementedException ();
  131. }
  132. [MonoTODO]
  133. protected override void OnMouseHover ()
  134. {
  135. throw new NotImplementedException ();
  136. }
  137. [MonoTODO]
  138. protected override void OnMouseLeave ()
  139. {
  140. throw new NotImplementedException ();
  141. }
  142. [MonoTODO]
  143. protected override void OnPaintAdornments (PaintEventArgs pe)
  144. {
  145. throw new NotImplementedException ();
  146. }
  147. [MonoTODO]
  148. protected override void OnSetCursor ()
  149. {
  150. throw new NotImplementedException ();
  151. }
  152. [MonoTODO]
  153. protected override void PreFilterProperties (IDictionary properties)
  154. {
  155. throw new NotImplementedException ();
  156. }
  157. [MonoTODO]
  158. protected override void WndProc (ref Message m)
  159. {
  160. throw new NotImplementedException ();
  161. }
  162. [MonoTODO]
  163. protected override bool EnableDragRect
  164. {
  165. get
  166. {
  167. throw new NotImplementedException ();
  168. }
  169. }
  170. #endregion Override implementation of ControlDesigner
  171. #region Private Static Methods
  172. [MonoTODO]
  173. protected static void InvokeCreateTool (ParentControlDesigner toInvoke, ToolboxItem tool)
  174. {
  175. throw new NotImplementedException ();
  176. }
  177. #endregion Private Static Methods
  178. #region Implementation of IOleDragClient
  179. [MonoTODO]
  180. bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)
  181. {
  182. throw new NotImplementedException ();
  183. }
  184. [MonoTODO]
  185. bool IOleDragClient.CanModifyComponents
  186. {
  187. get
  188. {
  189. throw new NotImplementedException ();
  190. }
  191. }
  192. [MonoTODO]
  193. IComponent IOleDragClient.Component
  194. {
  195. get
  196. {
  197. throw new NotImplementedException ();
  198. }
  199. }
  200. [MonoTODO]
  201. Control IOleDragClient.GetControlForComponent (object component)
  202. {
  203. throw new NotImplementedException ();
  204. }
  205. [MonoTODO]
  206. Control IOleDragClient.GetDesignerControl ()
  207. {
  208. throw new NotImplementedException ();
  209. }
  210. [MonoTODO]
  211. bool IOleDragClient.IsDropOk (IComponent component)
  212. {
  213. throw new NotImplementedException ();
  214. }
  215. #endregion Implementation of IOleDragClient
  216. #region Implementation of ISelectionUIHandler
  217. [MonoTODO]
  218. bool ISelectionUIHandler.BeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
  219. {
  220. throw new NotImplementedException ();
  221. }
  222. [MonoTODO]
  223. void ISelectionUIHandler.DragMoved (object[] components, Rectangle offset)
  224. {
  225. throw new NotImplementedException ();
  226. }
  227. [MonoTODO]
  228. void ISelectionUIHandler.EndDrag (object[] components, bool cancel)
  229. {
  230. throw new NotImplementedException ();
  231. }
  232. [MonoTODO]
  233. Rectangle ISelectionUIHandler.GetComponentBounds (object component)
  234. {
  235. throw new NotImplementedException ();
  236. }
  237. [MonoTODO]
  238. SelectionRules ISelectionUIHandler.GetComponentRules (object component)
  239. {
  240. throw new NotImplementedException ();
  241. }
  242. [MonoTODO]
  243. Rectangle ISelectionUIHandler.GetSelectionClipRect (object component)
  244. {
  245. throw new NotImplementedException ();
  246. }
  247. [MonoTODO]
  248. void ISelectionUIHandler.OleDragDrop (DragEventArgs de)
  249. {
  250. throw new NotImplementedException ();
  251. }
  252. [MonoTODO]
  253. void ISelectionUIHandler.OleDragEnter (DragEventArgs de)
  254. {
  255. throw new NotImplementedException ();
  256. }
  257. [MonoTODO]
  258. void ISelectionUIHandler.OleDragLeave ()
  259. {
  260. throw new NotImplementedException ();
  261. }
  262. [MonoTODO]
  263. void ISelectionUIHandler.OleDragOver (DragEventArgs de)
  264. {
  265. throw new NotImplementedException ();
  266. }
  267. [MonoTODO]
  268. void ISelectionUIHandler.OnSelectionDoubleClick (IComponent component)
  269. {
  270. throw new NotImplementedException ();
  271. }
  272. [MonoTODO]
  273. bool ISelectionUIHandler.QueryBeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
  274. {
  275. throw new NotImplementedException ();
  276. }
  277. [MonoTODO]
  278. void ISelectionUIHandler.ShowContextMenu (IComponent component)
  279. {
  280. throw new NotImplementedException ();
  281. }
  282. #endregion Implementation of ISelectionUIHandler
  283. #region Public Instance Methods
  284. [MonoTODO]
  285. public virtual bool CanParent (Control control)
  286. {
  287. throw new NotImplementedException ();
  288. }
  289. [MonoTODO]
  290. public virtual bool CanParent (ControlDesigner controlDesigner)
  291. {
  292. throw new NotImplementedException ();
  293. }
  294. #endregion Public Instance Methods
  295. #region Internal Instance Methods
  296. [MonoTODO]
  297. internal Point GetSnappedPoint (Point pt)
  298. {
  299. throw new NotImplementedException ();
  300. }
  301. [MonoTODO]
  302. internal void SetCursor ()
  303. {
  304. throw new NotImplementedException ();
  305. }
  306. #endregion Internal Instance Methods
  307. #region Protected Instance Methods
  308. [MonoTODO]
  309. protected void CreateTool (ToolboxItem tool)
  310. {
  311. throw new NotImplementedException ();
  312. }
  313. [MonoTODO]
  314. protected void CreateTool (ToolboxItem tool, Point location)
  315. {
  316. throw new NotImplementedException ();
  317. }
  318. [MonoTODO]
  319. protected void CreateTool (ToolboxItem tool, Rectangle bounds)
  320. {
  321. throw new NotImplementedException ();
  322. }
  323. [MonoTODO]
  324. protected virtual IComponent[] CreateToolCore (ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)
  325. {
  326. throw new NotImplementedException ();
  327. }
  328. [MonoTODO]
  329. protected Control GetControl (object component)
  330. {
  331. throw new NotImplementedException ();
  332. }
  333. [MonoTODO]
  334. protected Rectangle GetUpdatedRect (Rectangle originalRect, Rectangle dragRect, bool updateSize)
  335. {
  336. throw new NotImplementedException ();
  337. }
  338. #endregion Protected Instance Methods
  339. #region Private Static Fields
  340. private static BooleanSwitch StepControls;
  341. #endregion Private Static Fields
  342. }
  343. }