Added symbols for Trade Mark, Service Mark, Infinity, Proportional To, Ohm sign, Not Equal To, Copyright, Registered sign
Added logic to handle the Trade Mark symbol – RTF is automatically converting the Unicode to \’99 but PROMS StepRTB would not display it This function was moved to CSLA Extension. Commented out the code here, built without errors. Remove this file from the SVG Library project.
This commit is contained in:
@@ -1226,7 +1226,11 @@ namespace Volian.Controls.Library
|
||||
e.Style.BackColor = solid;
|
||||
|
||||
// check whether the cell contains RTF
|
||||
string rtfText = this.GetDataDisplay(e.Row, e.Col).Replace(@"\~", @"\u160?");
|
||||
// convert \'99 to \u8482? this is for the trade mark symbol. For some reason RTF is automatically
|
||||
// converting the unicode \u8482? to \'99, but once this is done, PROMS StepRTB (edit windows) do not show it
|
||||
// Also convert \~ to a hard spece. Again RTF is automatically converting \u160? to \~ but will then convert
|
||||
// the \~ to a regular space!
|
||||
string rtfText = this.GetDataDisplay(e.Row, e.Col).Replace(@"\~", @"\u160?").Replace(@"\'99", @"\u8482?");
|
||||
GridItem gi = Parent as GridItem;
|
||||
if (gi != null)
|
||||
{
|
||||
@@ -4625,8 +4629,12 @@ namespace Volian.Controls.Library
|
||||
else if (_owner[row, col] != null)
|
||||
{
|
||||
string tmp = _owner[row, col].ToString();
|
||||
// convert \'99 to \u8482? this is for the trade mark symbol. For some reason RTF is automatically
|
||||
// converting the unicode \u8482? to \'99, but once this is done, PROMS StepRTB (edit windows) do not show it
|
||||
// Also convert \~ to a hard spece. Again RTF is automatically converting \u160? to \~ but will then convert
|
||||
// the \~ to a regular space!
|
||||
if (tmp.StartsWith(@"{\rtf"))
|
||||
Rtf = tmp.Replace(@"\~",@"\u160?");
|
||||
Rtf = tmp.Replace(@"\~", @"\u160?").Replace(@"\'99", @"\u8482?");
|
||||
else
|
||||
Text = tmp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user