(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / RichTextBox.cs
blob41f86e99ff388d001f4809de9b21939369c60276
1 //
2 // System.Windows.Forms.RichTextBox.cs
3 //
4 // Author:
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Dennis Hayes (dennish@Raytek.com)
7 //
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.Drawing;
32 using System.IO;
34 namespace System.Windows.Forms {
36 // <summary>
38 // </summary>
40 public class RichTextBox : TextBoxBase
42 private IntPtr handleCommCtrlLib;
45 // --- Constructor
47 [MonoTODO]
48 public RichTextBox()
50 handleCommCtrlLib = Win32.LoadLibraryA("riched20.dll");
53 #region Properties
55 // --- Public Properties
57 [MonoTODO]
58 public override bool AllowDrop {
59 get {
60 //FIXME:
61 return base.AllowDrop;
63 set {
64 //FIXME:
65 base.AllowDrop = value;
68 [MonoTODO]
69 public override bool AutoSize {
70 get {
71 //FIXME:
72 return base.AutoSize;;
74 set {
75 //FIXME:
76 base.AutoSize = value;
79 [MonoTODO]
80 public bool AutoWordSelection {
81 get {
82 throw new NotImplementedException ();
84 set {
85 throw new NotImplementedException ();
88 [MonoTODO]
89 public override Image BackgroundImage {
90 get {
91 //FIXME:
92 return base.BackgroundImage;
94 set {
95 //FIXME:
96 base.BackgroundImage = value;
99 [MonoTODO]
100 public int BulletIndent {
101 get {
102 throw new NotImplementedException ();
104 set {
105 throw new NotImplementedException ();
108 [MonoTODO]
109 public bool CanRedo {
110 get {
111 throw new NotImplementedException ();
114 [MonoTODO]
115 public bool DetectUrls {
116 get {
117 throw new NotImplementedException ();
119 set {
120 throw new NotImplementedException ();
123 [MonoTODO]
124 public override Font Font {
125 get {
126 //FIXME:
127 return base.Font;
129 set {
130 //FIXME:
131 base.Font = value;
134 [MonoTODO]
135 public override Color ForeColor {
136 get {
137 //FIXME:
138 return base.ForeColor;
140 set {
141 //FIXME:
142 base.ForeColor = value;
145 [MonoTODO]
146 public override int MaxLength {
147 get {
148 throw new NotImplementedException ();
150 set {
151 throw new NotImplementedException ();
154 [MonoTODO]
155 public override bool Multiline {
156 get {
157 throw new NotImplementedException ();
159 set {
160 throw new NotImplementedException ();
163 [MonoTODO]
164 public string RedoActionName {
165 get {
166 throw new NotImplementedException ();
169 [MonoTODO]
170 public int RightMargin {
171 get {
172 throw new NotImplementedException ();
174 set {
175 throw new NotImplementedException ();
178 [MonoTODO]
179 public string Rtf {
180 get {
181 throw new NotImplementedException ();
183 set {
184 throw new NotImplementedException ();
187 [MonoTODO]
188 public RichTextBoxScrollBars ScrollBars {
189 get {
190 throw new NotImplementedException ();
192 set {
193 throw new NotImplementedException ();
196 [MonoTODO]
197 public string SelectedRtf {
198 get {
199 throw new NotImplementedException ();
201 set {
202 throw new NotImplementedException ();
205 [MonoTODO]
206 public override string SelectedText {
207 get {
208 throw new NotImplementedException ();
210 set {
211 throw new NotImplementedException ();
214 [MonoTODO]
215 public HorizontalAlignment SelectionAlignment {
216 get {
217 throw new NotImplementedException ();
219 set {
220 throw new NotImplementedException ();
223 [MonoTODO]
224 public bool SelectionBullet {
225 get {
226 throw new NotImplementedException ();
228 set {
229 throw new NotImplementedException ();
232 [MonoTODO]
233 public int SelectionCharOffset {
234 get {
235 throw new NotImplementedException ();
237 set {
238 throw new NotImplementedException ();
241 [MonoTODO]
242 public Color SelectionColor {
243 get {
244 throw new NotImplementedException ();
246 set {
247 throw new NotImplementedException ();
250 [MonoTODO]
251 public Font SelectionFont {
252 get {
253 throw new NotImplementedException ();
255 set {
256 throw new NotImplementedException ();
259 [MonoTODO]
260 public int SelectionHangingIndent {
261 get {
262 throw new NotImplementedException ();
264 set {
265 throw new NotImplementedException ();
268 [MonoTODO]
269 public int SelectionIndent {
270 get {
271 throw new NotImplementedException ();
273 set {
274 throw new NotImplementedException ();
277 [MonoTODO]
278 public override int SelectionLength {
279 get {
280 throw new NotImplementedException ();
282 set {
283 throw new NotImplementedException ();
286 [MonoTODO]
287 public bool SelectionProtected {
288 get {
289 throw new NotImplementedException ();
291 set {
292 throw new NotImplementedException ();
295 [MonoTODO]
296 public int SelectionRightIndent {
297 get {
298 throw new NotImplementedException ();
300 set {
301 throw new NotImplementedException ();
304 [MonoTODO]
305 public int[] SelectionTabs {
306 get {
307 throw new NotImplementedException ();
309 set {
310 throw new NotImplementedException ();
313 [MonoTODO]
314 public RichTextBoxSelectionTypes SelectionType {
315 get {
316 throw new NotImplementedException ();
319 [MonoTODO]
320 public bool ShowSelectionMargin {
321 get {
322 throw new NotImplementedException ();
324 set {
325 throw new NotImplementedException ();
328 [MonoTODO]
329 public override string Text {
330 get {
331 return base.Text;
333 set {
334 base.Text = value;
337 [MonoTODO]
338 public override int TextLength {
339 get {
340 throw new NotImplementedException ();
343 [MonoTODO]
344 public string UndoActionName {
345 get {
346 throw new NotImplementedException ();
349 [MonoTODO]
350 public float ZoomFactor {
351 get {
352 throw new NotImplementedException ();
354 set {
355 throw new NotImplementedException ();
358 #endregion
360 #region Public Methods
362 // --- Public Methods
365 protected override void Dispose(bool disposing)
367 base.Dispose(disposing);
368 Win32.FreeLibrary(handleCommCtrlLib);
372 [MonoTODO]
373 public bool CanPaste(DataFormats.Format clipFormat)
375 throw new NotImplementedException ();
378 [MonoTODO]
379 public int Find(char[] characterSet)
381 throw new NotImplementedException ();
383 [MonoTODO]
384 public int Find(string str)
386 throw new NotImplementedException ();
388 [MonoTODO]
389 public int Find(char[] characterSet, int start)
391 throw new NotImplementedException ();
393 [MonoTODO]
394 public int Find(string str, RichTextBoxFinds options)
396 throw new NotImplementedException ();
398 [MonoTODO]
399 public int Find(char[] characterSet, int start, int end)
401 throw new NotImplementedException ();
403 [MonoTODO]
404 public int Find(string str, int start, RichTextBoxFinds options)
406 throw new NotImplementedException ();
408 [MonoTODO]
409 public int Find(string str, int val1, int val2, RichTextBoxFinds finds)
411 throw new NotImplementedException ();
413 [MonoTODO]
414 public char GetCharFromPosition(Point pt)
416 throw new NotImplementedException ();
418 [MonoTODO]
419 public int GetLineFromCharIndex(int index)
421 throw new NotImplementedException ();
423 [MonoTODO]
424 public Point GetPositionFromCharIndex(int index)
426 throw new NotImplementedException ();
429 [MonoTODO]
430 public void LoadFile(string path)
432 throw new NotImplementedException ();
434 [MonoTODO]
435 public void LoadFile(Stream path, RichTextBoxStreamType fileType)
437 throw new NotImplementedException ();
441 [MonoTODO]
442 public void Paste(DataFormats.Format clipFormat)
444 throw new NotImplementedException ();
447 [MonoTODO]
448 public void Redo()
450 throw new NotImplementedException ();
453 [MonoTODO]
454 public void SaveFile(string path)
456 throw new NotImplementedException ();
458 [MonoTODO]
459 public void SaveFile(Stream path, RichTextBoxStreamType fileType)
461 throw new NotImplementedException ();
463 [MonoTODO]
464 public void SaveFile(string path, RichTextBoxStreamType fileType)
466 throw new NotImplementedException ();
468 #endregion
470 #region Public Events
472 // --- Public Events
474 public event ContentsResizedEventHandler ContentsResized;
475 public event EventHandler HScroll;
476 public event EventHandler ImeChange;
477 public event LinkClickedEventHandler LinkClicked;
478 public event EventHandler Protected;
479 public event EventHandler SelectionChanged;
480 public event EventHandler VScroll;
481 #endregion
483 #region Protected Properties
485 // --- Protected Properties
487 [MonoTODO]
488 protected override CreateParams CreateParams
490 get {
491 CreateParams createParams = base.CreateParams;
493 createParams.ClassName = "RichEdit20A";
494 createParams.Style = (int) ( WindowStyles.WS_CHILD | WindowStyles.WS_VISIBLE);
495 return createParams;
499 [MonoTODO]
500 protected override Size DefaultSize {
501 get {
502 return new System.Drawing.Size(300,300);
505 #endregion
507 #region Protected Methods
509 // --- Protected Methods
512 [MonoTODO]
513 protected virtual object CreateRichEditOleCallback()
515 throw new NotImplementedException ();
518 [MonoTODO]
519 protected override void OnBackColorChanged(EventArgs e)
521 throw new NotImplementedException ();
524 [MonoTODO]
525 protected virtual void OnContentsResized(ContentsResizedEventArgs e)
527 throw new NotImplementedException ();
530 [MonoTODO]
531 protected override void OnContextMenuChanged(EventArgs e)
533 throw new NotImplementedException ();
536 [MonoTODO]
537 protected override void OnHandleCreated(EventArgs e)
541 [MonoTODO]
542 protected override void OnHandleDestroyed(EventArgs e)
544 throw new NotImplementedException ();
547 [MonoTODO]
548 protected virtual void OnHScroll(EventArgs e)
550 throw new NotImplementedException ();
553 [MonoTODO]
554 protected virtual void OnImeChange(EventArgs e)
556 throw new NotImplementedException ();
559 [MonoTODO]
560 protected virtual void OnLinkClicked(LinkClickedEventArgs e)
562 throw new NotImplementedException ();
565 [MonoTODO]
566 protected virtual void OnProtected(EventArgs e)
568 throw new NotImplementedException ();
571 [MonoTODO]
572 protected override void OnRightToLeftChanged(EventArgs e)
574 throw new NotImplementedException ();
577 [MonoTODO]
578 protected virtual void OnSelectionChanged(EventArgs e)
580 throw new NotImplementedException ();
583 [MonoTODO]
584 protected override void OnSystemColorsChanged(EventArgs e)
586 throw new NotImplementedException ();
589 [MonoTODO]
590 protected override void OnTextChanged(EventArgs e)
592 throw new NotImplementedException ();
595 [MonoTODO]
596 protected virtual void OnVScroll(EventArgs e)
598 throw new NotImplementedException ();
601 [MonoTODO]
602 protected override void WndProc(ref Message m)
604 throw new NotImplementedException ();
606 #endregion