ParentControlDesigner.cs 9.7 KB

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