Author: jackson
Date: 2006-10-20 03:57:44 -0400 (Fri, 20 Oct 2006)
New Revision: 66827
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RichTextBox.cs
Log:
* RichTextBox.cs: Handle some special chars better, and don't
* skip
the entire group when we encounter a special char that we don't
handle correctly.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-20 07:26:49 UTC (rev 66826)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-20 07:57:44 UTC (rev 66827)
@@ -1,3 +1,9 @@
+2006-10-20 Jackson Harper <[EMAIL PROTECTED]>
+
+ * RichTextBox.cs: Handle some special chars better, and don't skip
+ the entire group when we encounter a special char that we don't
+ handle correctly.
+
2006-10-18 Chris Toshok <[EMAIL PROTECTED]>
* XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RichTextBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RichTextBox.cs
2006-10-20 07:26:49 UTC (rev 66826)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RichTextBox.cs
2006-10-20 07:57:44 UTC (rev 66827)
@@ -1164,6 +1164,7 @@
#region Private Methods
private void HandleControl(RTF.RTF rtf) {
+// Console.WriteLine ("HANDLING MAJOR: {0} MINOR:
{1}", rtf.Major, rtf.Minor);
switch(rtf.Major) {
case RTF.Major.Unicode: {
switch(rtf.Minor) {
@@ -1182,7 +1183,7 @@
}
case RTF.Major.Destination: {
- Console.Write("[Got Destination control
{0}]", rtf.Minor);
+// Console.Write("[Got Destination control
{0}]", rtf.Minor);
rtf.SkipGroup();
break;
}
@@ -1306,30 +1307,36 @@
}
case Minor.Tab: {
- Console.Write("\t");
+ rtf_line.Append ("\t");
+// FlushText (rtf, false);
break;
}
+ case Minor.NoReqHyphen:
case Minor.NoBrkHyphen: {
- Console.Write("-");
+ rtf_line.Append ("-");
+// FlushText (rtf, false);
break;
}
case Minor.Bullet: {
- Console.Write("*");
+ Console.WriteLine("*");
break;
}
+ case Minor.WidowCtrl:
+ break;
+
case Minor.EmDash: {
- Console.Write("\u2014");
+ rtf_line.Append ("\u2014");
break;
}
case Minor.EnDash: {
- Console.Write("\u2013");
+ rtf_line.Append ("\u2013");
break;
}
-
+/*
case Minor.LQuote: {
Console.Write("\u2018");
break;
@@ -1349,9 +1356,10 @@
Console.Write("\u201D");
break;
}
-
+*/
default: {
- rtf.SkipGroup();
+// Console.WriteLine ("skipped special
char: {0}", rtf.Minor);
+// rtf.SkipGroup();
break;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches