(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / LinkLabel.cs
blob59e9cc64a437bbdd248929ee064bad8d47c7b5b3
1 //
2 // System.Windows.Forms.LinkLabel.cs
3 //
4 // Author:
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // stub ammended by Jaak Simm (jaaksimm@firm.ee)
7 // Dennis Hayes (dennish@raytek.com)
8 // (C) 2002/3 Ximian, Inc
9 //
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.
31 using System.Collections;
32 using System.Drawing;
33 using System.ComponentModel;
35 namespace System.Windows.Forms {
37 // <summary>
38 // </summary>
40 public class LinkLabel : Label, IButtonControl {
43 // --- Constructor
45 [MonoTODO]
46 public LinkLabel()
52 // --- Public Properties
54 [MonoTODO]
55 public Color ActiveLinkcolor {
56 get {
57 throw new NotImplementedException ();
59 set {
60 //FIXME:
63 [MonoTODO]
64 public Color DisabledLinkColor {
65 get {
66 throw new NotImplementedException ();
68 set {
69 //FIXME:
72 [MonoTODO]
73 public LinkArea LinkArea {
74 get {
75 throw new NotImplementedException ();
77 set {
78 //FIXME:
81 [MonoTODO]
82 public LinkBehavior LinkBehavior {
83 get {
84 throw new NotImplementedException ();
86 set {
87 //FIXME:
90 [MonoTODO]
91 public Color LinkColor {
92 get {
93 throw new NotImplementedException ();
95 set {
96 //FIXME:
99 [MonoTODO]
100 public LinkLabel.LinkCollection Links {
101 get {
102 throw new NotImplementedException ();
105 [MonoTODO]
106 public bool LinkVisited {
107 get {
108 throw new NotImplementedException ();
110 set {
111 //FIXME:
114 [MonoTODO]
115 public override ISite Site {
116 get {
117 throw new NotImplementedException ();
119 set {
120 //FIXME:
123 [MonoTODO]
124 public override string Text {
125 //FIXME: This is to get it to run
126 get {
127 return base.Text;
129 set {
130 base.Text = value;
133 [MonoTODO]
134 public Color VisitedLinkColor {
135 get {
136 throw new NotImplementedException ();
138 set {
139 //FIXME:
144 // --- IButtonControl members:
145 DialogResult IButtonControl.DialogResult {
146 [MonoTODO] get {
147 throw new NotImplementedException ();
149 [MonoTODO] set {
150 //FIXME:
154 [MonoTODO]
155 void IButtonControl.NotifyDefault(bool value)
157 //FIXME:
160 [MonoTODO]
161 void IButtonControl.PerformClick()
163 //FIXME:
165 // --- end of IButtonControl members
168 // --- Public Events
170 [MonoTODO]
171 public event LinkLabelLinkClickedEventHandler LinkClicked;
174 // --- Protected Properties
176 [MonoTODO]
177 protected override ImeMode DefaultImeMode {
178 get {
179 //FIXME:
180 return base.DefaultImeMode;
185 // --- Protected Methods
187 [MonoTODO]
188 protected override AccessibleObject CreateAccessibilityInstance()
190 //FIXME:
191 return base.CreateAccessibilityInstance();
193 [MonoTODO]
194 protected override void CreateHandle()
196 //FIXME: this is just to get it running
197 base.CreateHandle();
200 [MonoTODO]
201 protected override void OnEnabledChanged(EventArgs e)
203 //FIXME:
204 base.OnEnabledChanged(e);
206 [MonoTODO]
207 protected override void OnFontChanged( EventArgs e)
209 //FIXME:
210 base.OnFontChanged(e);
212 [MonoTODO]
213 protected override void OnGotFocus( EventArgs e)
215 //FIXME:
216 base.OnGotFocus(e);
218 [MonoTODO]
219 protected override void OnKeyDown (KeyEventArgs e)
221 //FIXME:
222 base.OnKeyDown(e);
224 [MonoTODO]
225 protected override void OnLostFocus (EventArgs e)
227 //FIXME:
228 base.OnLostFocus(e);
230 [MonoTODO]
231 protected override void OnMouseDown (MouseEventArgs e)
233 //FIXME:
234 base.OnMouseDown(e);
236 // I think that this should be 'MouseEventArgs'
237 // but the documentation says EventArgs.
238 [MonoTODO]
239 protected override void OnMouseLeave(EventArgs e)
241 //FIXME:
242 base.OnMouseLeave(e);
244 [MonoTODO]
245 protected override void OnMouseMove (MouseEventArgs e)
247 //FIXME:
248 base.OnMouseMove(e);
250 [MonoTODO]
251 protected override void OnMouseUp (MouseEventArgs e)
253 //FIXME:
254 base.OnMouseUp(e);
256 [MonoTODO]
257 protected override void OnPaint (PaintEventArgs e)
259 //FIXME:
260 base.OnPaint(e);
262 [MonoTODO]
263 protected override void OnPaintBackground(PaintEventArgs e)
265 //FIXME:
266 base.OnPaint(e);
268 [MonoTODO]
269 protected override void OnTextAlignChanged( EventArgs e)
271 //FIXME:
272 base.OnTabIndexChanged(e);
274 [MonoTODO]
275 protected override void OnTextChanged( EventArgs e)
277 //FIXME:
278 base.OnTabIndexChanged(e);
281 [MonoTODO]
282 protected override bool ProcessDialogKey(Keys keyData)
284 //FIXME:
285 return base.ProcessDialogKey(keyData);
288 [MonoTODO]
289 protected override void Select(bool directed, bool forward)
291 //FIXME:
292 base.Select(directed, forward);
294 [MonoTODO]
295 protected override void SetBoundsCore(
296 int x,
297 int y,
298 int width,
299 int height,
300 BoundsSpecified specified) {
302 //FIXME:
303 base.SetBoundsCore(x, y, width, height, specified);
305 [MonoTODO]
306 protected override void WndProc(ref Message msg)
308 //FIXME:
309 base.WndProc(ref msg);
312 /// System.Windows.Forms.LinkLabel.Link
313 /// <summary>Represents a link within a LinkLabel control.</summary>
315 /// stubbed out by Jaak Simm (jaaksimm@firm.ee)
316 [MonoTODO]
317 public class Link {
318 bool enabled;
319 int length;
320 object linkData;
321 int start;
322 bool visited;
324 public bool Enabled {
325 get { return enabled; }
326 set { enabled=value; }
329 public int Length {
330 get { return length; }
331 set { length=value; }
334 public object LinkData {
335 get { return linkData; }
336 set { linkData=value; }
339 public int Start {
340 get { return start; }
341 set { start=value; }
344 public bool Visited {
345 get { return visited; }
346 set { visited=value; }
351 // System.Windows.Forms.LinkLabel.LinkCollection.cs
353 // Author:
354 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
356 // (C) 2002 Ximian, Inc
359 // <summary>
360 // </summary>
362 public class LinkCollection : IList, ICollection, IEnumerable {
365 // --- Constructor
367 [MonoTODO]
368 public LinkCollection(LinkLabel owner)
370 //FIXME:
374 // --- Public Properties
376 [MonoTODO]
377 public int Count {
378 get {
379 throw new NotImplementedException ();
382 [MonoTODO]
383 public bool IsReadOnly {
384 get {
385 throw new NotImplementedException ();
388 [MonoTODO]
389 public virtual LinkLabel.Link this[ int index] {
390 get {
391 throw new NotImplementedException ();
393 set {
394 //FIXME:
399 // --- Public Methods
401 [MonoTODO]
402 public Link Add(int val1, int val2)
404 throw new NotImplementedException ();
406 [MonoTODO]
407 public Link Add(int val1, int val2, object o)
409 throw new NotImplementedException ();
411 [MonoTODO]
412 public virtual void Clear()
414 //FIXME:
417 [MonoTODO]
418 public IEnumerator GetEnumerator()
420 throw new NotImplementedException ();
422 [MonoTODO]
423 public int IndexOf(LinkLabel.Link link)
425 throw new NotImplementedException ();
427 [MonoTODO]
428 public void Remove(LinkLabel.Link value)
430 //FIXME:
432 [MonoTODO]
433 public void RemoveAt(int index)
435 //FIXME:
438 /// --- LinkLabel.IList properties ---
439 bool IList.IsFixedSize {
440 [MonoTODO] get { throw new NotImplementedException (); }
443 object IList.this[int index] {
444 [MonoTODO] get { throw new NotImplementedException (); }
445 [MonoTODO] set { throw new NotImplementedException (); }
449 object ICollection.SyncRoot {
450 [MonoTODO] get {
451 throw new NotImplementedException ();
455 bool ICollection.IsSynchronized {
456 [MonoTODO] get {
457 throw new NotImplementedException ();
461 [MonoTODO]
462 void ICollection.CopyTo(Array dest,int index)
464 throw new NotImplementedException ();
467 /// --- LinkLabel.IList methods ---
468 [MonoTODO]
469 int IList.Add(object control)
471 throw new NotImplementedException ();
474 [MonoTODO]
475 bool IList.Contains(object control)
477 throw new NotImplementedException ();
480 [MonoTODO]
481 int IList.IndexOf(object control)
483 throw new NotImplementedException ();
486 [MonoTODO]
487 void IList.Insert(int index,object value)
489 //FIXME:
492 [MonoTODO]
493 void IList.Remove(object control)
495 //FIXME:
497 }//End of subclass
498 }// End of Class