C2022-003-Change-Textboxes-to-RTF-3
This commit is contained in:
@@ -2016,36 +2016,7 @@ namespace ctlXMLEditLib
|
||||
return curTZ.GetDaylightChanges(year);
|
||||
}
|
||||
}
|
||||
//private static void AddFontTable(StringBuilder selectedRtfSB, Font myFont, bool isFixed)
|
||||
//{
|
||||
// StringBuilder sbbeg = new StringBuilder();
|
||||
// StringBuilder sbend = new StringBuilder();
|
||||
// if (myFont.Bold)
|
||||
// {
|
||||
// sbbeg.Append(@"\b");
|
||||
// sbend.Append(@"\b0");
|
||||
// }
|
||||
// if (myFont.Underline)
|
||||
// {
|
||||
// sbbeg.Append(@"\ul");
|
||||
// sbend.Insert(0, @"\ulnone");
|
||||
// }
|
||||
// if (myFont.Italic)
|
||||
// {
|
||||
// sbbeg.Append(@"\i");
|
||||
// sbend.Insert(0, @"\i0");
|
||||
// }
|
||||
// selectedRtfSB.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 " + myFont.FontFamily.Name + @";}"); //}\f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}}";
|
||||
// if (!isFixed)
|
||||
// selectedRtfSB.Append(@"{\f1\fnil\fcharset0 " + Volian.Base.Library.vlnFont.ProportionalSymbolFont + @";}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // C2017-036 get best available proportional font for symbols - B2025-039 add Blue for Colored Replace Words
|
||||
// else
|
||||
// selectedRtfSB.Append(@"{\f1\fnil\fcharset0 FreeMono;}}{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}"); // FreeMono is now used for the edit screen only. VESymbFix and Consolas are used for printing
|
||||
// selectedRtfSB.Append("\r\n");
|
||||
// // use styles to construct rtf commands to insert into next line (where \b, etc is)
|
||||
// // B2015-134 Hanging Indent with Hard Returns was not being saved- removed \sl-240\slmult0
|
||||
// selectedRtfSB.Append(@"\viewkind4\uc1\pard" + sbbeg.ToString() + @"\fs" + Convert.ToInt32(myFont.SizeInPoints * 2).ToString() + @" "); // \f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}";
|
||||
// //selectedRtfSB.Append(@"\viewkind4\uc1\pard\sl-240\slmult0" + sbbeg.ToString() + @"\fs" + Convert.ToInt32(myFont.SizeInPoints * 2).ToString() + @" "); // \f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}";
|
||||
//}
|
||||
|
||||
public class ctlXMLEditEventArgs : EventArgs // RO Editor add symbols C2022 - 003 for turning off symbols btn for RO ID.
|
||||
{
|
||||
public ctlXMLEditEventArgs() {; }
|
||||
|
||||
Reference in New Issue
Block a user