LinkLabel.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. //
  2. // System.Windows.Forms.LinkLabel.cs
  3. //
  4. // Author:
  5. // stubbed out by Daniel Carrera ([email protected])
  6. // stub ammended by Jaak Simm ([email protected])
  7. // Dennis Hayes ([email protected])
  8. // (C) 2002 Ximian, Inc
  9. //
  10. using System.Collections;
  11. using System.Drawing;
  12. using System.ComponentModel;
  13. namespace System.Windows.Forms {
  14. // <summary>
  15. // This is only a template. Nothing is implemented yet.
  16. //
  17. // </summary>
  18. public class LinkLabel : Label, IButtonControl {
  19. //
  20. // --- Constructor
  21. //
  22. [MonoTODO]
  23. public LinkLabel()
  24. {
  25. throw new NotImplementedException ();
  26. }
  27. //
  28. // --- Public Properties
  29. //
  30. [MonoTODO]
  31. public Color ActiveLinkcolor {
  32. get {
  33. throw new NotImplementedException ();
  34. }
  35. set {
  36. throw new NotImplementedException ();
  37. }
  38. }
  39. [MonoTODO]
  40. public Color DisabledLinkColor {
  41. get {
  42. throw new NotImplementedException ();
  43. }
  44. set {
  45. throw new NotImplementedException ();
  46. }
  47. }
  48. [MonoTODO]
  49. public LinkArea LinkArea {
  50. get {
  51. throw new NotImplementedException ();
  52. }
  53. set {
  54. throw new NotImplementedException ();
  55. }
  56. }
  57. [MonoTODO]
  58. public LinkBehavior LinkBehavior {
  59. get {
  60. throw new NotImplementedException ();
  61. }
  62. set {
  63. throw new NotImplementedException ();
  64. }
  65. }
  66. [MonoTODO]
  67. public Color LinkColor {
  68. get {
  69. throw new NotImplementedException ();
  70. }
  71. set {
  72. throw new NotImplementedException ();
  73. }
  74. }
  75. [MonoTODO]
  76. public LinkLabel.LinkCollection Links {
  77. get {
  78. throw new NotImplementedException ();
  79. }
  80. }
  81. [MonoTODO]
  82. public bool LinkVisited {
  83. get {
  84. throw new NotImplementedException ();
  85. }
  86. set {
  87. throw new NotImplementedException ();
  88. }
  89. }
  90. [MonoTODO]
  91. public override ISite Site {
  92. get {
  93. throw new NotImplementedException ();
  94. }
  95. set {
  96. throw new NotImplementedException ();
  97. }
  98. }
  99. [MonoTODO]
  100. public override string Text {
  101. get {
  102. throw new NotImplementedException ();
  103. }
  104. set {
  105. throw new NotImplementedException ();
  106. }
  107. }
  108. [MonoTODO]
  109. public Color VisitedLinkColor {
  110. get {
  111. throw new NotImplementedException ();
  112. }
  113. set {
  114. throw new NotImplementedException ();
  115. }
  116. }
  117. //
  118. // --- Public Methods
  119. //
  120. //public IAsyncResult BeginInvoke(Delegate del)
  121. //{
  122. // throw new NotImplementedException ();
  123. //}
  124. //public IAsyncResult BeginInvoke(Delegate del, object[] objs)
  125. //{
  126. // throw new NotImplementedException ();
  127. //}
  128. //public void Dispose()
  129. //{
  130. // throw new NotImplementedException ();
  131. //}
  132. [MonoTODO]
  133. public override bool Equals(object o)
  134. {
  135. throw new NotImplementedException ();
  136. }
  137. //public static bool Equals(object o1, object o2)
  138. //{
  139. // throw new NotImplementedException ();
  140. //}
  141. [MonoTODO]
  142. public override int GetHashCode() {
  143. //FIXME add our proprities
  144. return base.GetHashCode();
  145. }
  146. //public void Invalidate()
  147. //{
  148. // throw new NotImplementedException ();
  149. //}
  150. //public void Invalidate(bool val)
  151. //{
  152. // throw new NotImplementedException ();
  153. //}
  154. //public void Invalidate(Rectangle rect)
  155. //{
  156. // throw new NotImplementedException ();
  157. //}
  158. //public void Invalidate(Region reg)
  159. //{
  160. // throw new NotImplementedException ();
  161. //}
  162. //public object Invoke(Delegate del)
  163. //{
  164. // throw new NotImplementedException ();
  165. //}
  166. //public object Invoke(Delegate del, object[] objs)
  167. //{
  168. // throw new NotImplementedException ();
  169. //}
  170. //public void PerformLayout()
  171. //{
  172. // throw new NotImplementedException ();
  173. //}
  174. //public void PerformLayout(Control ctl, string str)
  175. //{
  176. // throw new NotImplementedException ();
  177. //}
  178. //public void ResumeLayout()
  179. //{
  180. // throw new NotImplementedException ();
  181. //}
  182. //public void ResumeLayout(bool val)
  183. //{
  184. // throw new NotImplementedException ();
  185. //}
  186. //public void Scale(float val)
  187. //{
  188. // throw new NotImplementedException ();
  189. //}
  190. //public void Scale(float val1, float val2)
  191. //{
  192. // throw new NotImplementedException ();
  193. //}
  194. //public override void Select()
  195. //{
  196. // throw new NotImplementedException ();
  197. //}
  198. //public override void Select(bool directed, bool forward)
  199. //{
  200. // throw new NotImplementedException ();
  201. //}
  202. //public void SetBounds(int b1, int b2, int b3, int b4)
  203. //{
  204. // throw new NotImplementedException ();
  205. //}
  206. //public void SetBounds(int b1, int b2, int b3, int b4, int b5, int b6)
  207. //{
  208. // throw new NotImplementedException ();
  209. //}
  210. // --- IButtonControl members:
  211. DialogResult IButtonControl.DialogResult {
  212. [MonoTODO] get { throw new NotImplementedException (); }
  213. [MonoTODO] set { throw new NotImplementedException (); }
  214. }
  215. [MonoTODO]
  216. void IButtonControl.NotifyDefault(bool value)
  217. {
  218. throw new NotImplementedException ();
  219. }
  220. [MonoTODO]
  221. void IButtonControl.PerformClick()
  222. {
  223. throw new NotImplementedException ();
  224. }
  225. // --- end of IButtonControl members
  226. // --- Public Events
  227. //
  228. [MonoTODO]
  229. public event LinkLabelLinkClickedEventHandler LinkClicked;
  230. //
  231. // --- Protected Properties
  232. //
  233. [MonoTODO]
  234. protected override ImeMode DefaultImeMode {
  235. get {
  236. throw new NotImplementedException ();
  237. }
  238. }
  239. //
  240. // --- Protected Methods
  241. //
  242. [MonoTODO]
  243. protected override AccessibleObject CreateAccessibilityInstance()
  244. {
  245. throw new NotImplementedException ();
  246. }
  247. [MonoTODO]
  248. protected override void CreateHandle()
  249. {
  250. throw new NotImplementedException ();
  251. }
  252. //inherited
  253. //protected override virtual void Dispose(bool val)
  254. //{
  255. // throw new NotImplementedException ();
  256. //}
  257. [MonoTODO]
  258. protected override void OnEnabledChanged(EventArgs e)
  259. {
  260. throw new NotImplementedException ();
  261. }
  262. [MonoTODO]
  263. protected override void OnFontChanged( EventArgs e)
  264. {
  265. throw new NotImplementedException ();
  266. }
  267. [MonoTODO]
  268. protected override void OnGotFocus( EventArgs e)
  269. {
  270. throw new NotImplementedException ();
  271. }
  272. [MonoTODO]
  273. protected override void OnKeyDown (KeyEventArgs e)
  274. {
  275. throw new NotImplementedException ();
  276. }
  277. [MonoTODO]
  278. protected override void OnLostFocus (EventArgs e)
  279. {
  280. throw new NotImplementedException ();
  281. }
  282. [MonoTODO]
  283. protected override void OnMouseDown (MouseEventArgs e)
  284. {
  285. throw new NotImplementedException ();
  286. }
  287. // I think that this should be 'MouseEventArgs'
  288. // but the documentation says EventArgs.
  289. [MonoTODO]
  290. protected override void OnMouseLeave(EventArgs e)
  291. {
  292. throw new NotImplementedException ();
  293. }
  294. [MonoTODO]
  295. protected override void OnMouseMove (MouseEventArgs e)
  296. {
  297. throw new NotImplementedException ();
  298. }
  299. [MonoTODO]
  300. protected override void OnMouseUp (MouseEventArgs e)
  301. {
  302. throw new NotImplementedException ();
  303. }
  304. [MonoTODO]
  305. protected override void OnPaint (PaintEventArgs e)
  306. {
  307. throw new NotImplementedException ();
  308. }
  309. [MonoTODO]
  310. protected override void OnPaintBackground(PaintEventArgs e)
  311. {
  312. throw new NotImplementedException ();
  313. }
  314. [MonoTODO]
  315. protected override void OnTextAlignChanged( EventArgs e)
  316. {
  317. throw new NotImplementedException ();
  318. }
  319. [MonoTODO]
  320. protected override void OnTextChanged( EventArgs e)
  321. {
  322. throw new NotImplementedException ();
  323. }
  324. [MonoTODO]
  325. protected override bool ProcessDialogKey(Keys keyData)
  326. {
  327. throw new NotImplementedException ();
  328. }
  329. //protected ContentAlignment RtlTranslateAlignment(ContentAlignment align)
  330. //{
  331. // throw new NotImplementedException ();
  332. //}
  333. //protected HorizontalAlignment RtlTranslateAlignment( HorizontalAlignment align)
  334. //{
  335. // throw new NotImplementedException ();
  336. //}
  337. //protected LeftRightAlignment RtlTranslateAlignment( LeftRightAlignment align)
  338. //{
  339. // throw new NotImplementedException ();
  340. //}
  341. [MonoTODO]
  342. protected override void Select(bool val1, bool val2)
  343. {
  344. throw new NotImplementedException ();
  345. }
  346. [MonoTODO]
  347. protected override void SetBoundsCore(
  348. int x,
  349. int y,
  350. int width,
  351. int height,
  352. BoundsSpecified specified) {
  353. throw new NotImplementedException ();
  354. }
  355. //protected void UpdateBounds()
  356. //{
  357. // throw new NotImplementedException ();
  358. //}
  359. //protected void UpdateBounds(int val1, int val2, int val3, int val4)
  360. //{
  361. // throw new NotImplementedException ();
  362. //}
  363. //protected void UpdateBounds(int val1, int val2, int val3, int val4, int val5, int val6)
  364. //{
  365. // throw new NotImplementedException ();
  366. //}
  367. [MonoTODO]
  368. protected override void WndProc(ref Message msg)
  369. {
  370. throw new NotImplementedException ();
  371. }
  372. /// System.Windows.Forms.LinkLabel.Link
  373. /// <summary>Represents a link within a LinkLabel control.</summary>
  374. ///
  375. /// stubbed out by Jaak Simm ([email protected])
  376. [MonoTODO]
  377. public class Link {
  378. bool enabled;
  379. int length;
  380. object linkData;
  381. int start;
  382. bool visited;
  383. public bool Enabled {
  384. get { return enabled; }
  385. set { enabled=value; }
  386. }
  387. public int Length {
  388. get { return length; }
  389. set { length=value; }
  390. }
  391. public object LinkData {
  392. get { return linkData; }
  393. set { linkData=value; }
  394. }
  395. public int Start {
  396. get { return start; }
  397. set { start=value; }
  398. }
  399. public bool Visited {
  400. get { return visited; }
  401. set { visited=value; }
  402. }
  403. }
  404. //
  405. // System.Windows.Forms.LinkLabel.LinkCollection.cs
  406. //
  407. // Author:
  408. // stubbed out by Daniel Carrera ([email protected])
  409. //
  410. // (C) 2002 Ximian, Inc
  411. //
  412. // <summary>
  413. // This is only a template. Nothing is implemented yet.
  414. //
  415. // </summary>
  416. public class LinkCollection : IList, ICollection, IEnumerable {
  417. //
  418. // --- Constructor
  419. //
  420. [MonoTODO]
  421. public LinkCollection(LinkLabel owner)
  422. {
  423. throw new NotImplementedException ();
  424. }
  425. //
  426. // --- Public Properties
  427. //
  428. [MonoTODO]
  429. public int Count {
  430. get {
  431. throw new NotImplementedException ();
  432. }
  433. }
  434. [MonoTODO]
  435. public bool IsReadOnly {
  436. get {
  437. throw new NotImplementedException ();
  438. }
  439. }
  440. [MonoTODO]
  441. public virtual LinkLabel.Link this[ int index] {
  442. get {
  443. throw new NotImplementedException ();
  444. }
  445. set {
  446. throw new NotImplementedException ();
  447. }
  448. }
  449. //
  450. // --- Public Methods
  451. //
  452. [MonoTODO]
  453. public Link Add(int val1, int val2)
  454. {
  455. throw new NotImplementedException ();
  456. }
  457. [MonoTODO]
  458. public Link Add(int val1, int val2, object o)
  459. {
  460. throw new NotImplementedException ();
  461. }
  462. [MonoTODO]
  463. public virtual void Clear()
  464. {
  465. throw new NotImplementedException ();
  466. }
  467. // Inherited
  468. //public override bool Contains(LinkLabel.Link link)
  469. //{
  470. // throw new NotImplementedException ();
  471. //}
  472. [MonoTODO]
  473. public override bool Equals(object o)
  474. {
  475. throw new NotImplementedException ();
  476. }
  477. //public static bool Equals(object o1, object o2)
  478. //{
  479. // throw new NotImplementedException ();
  480. //}
  481. [MonoTODO]
  482. public override int GetHashCode() {
  483. //FIXME add our proprities
  484. return base.GetHashCode();
  485. }
  486. [MonoTODO]
  487. public IEnumerator GetEnumerator()
  488. {
  489. throw new NotImplementedException ();
  490. }
  491. [MonoTODO]
  492. public int IndexOf(LinkLabel.Link link)
  493. {
  494. throw new NotImplementedException ();
  495. }
  496. [MonoTODO]
  497. public void Remove(LinkLabel.Link value)
  498. {
  499. throw new NotImplementedException ();
  500. }
  501. [MonoTODO]
  502. public void RemoveAt(int index)
  503. {
  504. throw new NotImplementedException ();
  505. }
  506. /// --- LinkLabel.IList properties ---
  507. bool IList.IsFixedSize {
  508. [MonoTODO] get { throw new NotImplementedException (); }
  509. }
  510. object IList.this[int index] {
  511. [MonoTODO] get { throw new NotImplementedException (); }
  512. [MonoTODO] set { throw new NotImplementedException (); }
  513. }
  514. object ICollection.SyncRoot {
  515. [MonoTODO] get { throw new NotImplementedException (); }
  516. }
  517. bool ICollection.IsSynchronized {
  518. [MonoTODO] get { throw new NotImplementedException (); }
  519. }
  520. [MonoTODO]
  521. void ICollection.CopyTo(Array dest,int index)
  522. {
  523. throw new NotImplementedException ();
  524. }
  525. /// --- LinkLabel.IList methods ---
  526. [MonoTODO]
  527. int IList.Add(object control)
  528. {
  529. throw new NotImplementedException ();
  530. }
  531. [MonoTODO]
  532. bool IList.Contains(object control)
  533. {
  534. throw new NotImplementedException ();
  535. }
  536. [MonoTODO]
  537. int IList.IndexOf(object control)
  538. {
  539. throw new NotImplementedException ();
  540. }
  541. [MonoTODO]
  542. void IList.Insert(int index,object value)
  543. {
  544. throw new NotImplementedException ();
  545. }
  546. [MonoTODO]
  547. void IList.Remove(object control)
  548. {
  549. throw new NotImplementedException ();
  550. }
  551. }//End of subclass
  552. }// End of Class
  553. }