This commit is contained in:
parent
7fec1e61b4
commit
878eeb5013
@ -636,21 +636,18 @@ namespace VEPROMS.CSLA.Library
|
|||||||
//string tmp = DisplayRO.ConvertFortranFormatToScienctificNotation(roValue);
|
//string tmp = DisplayRO.ConvertFortranFormatToScienctificNotation(roValue);
|
||||||
string tmp = ROFSTLookup.ConvertFortranFormatToScienctificNotation(roValue);
|
string tmp = ROFSTLookup.ConvertFortranFormatToScienctificNotation(roValue);
|
||||||
// Look for superscript or subscript and insert the appropriate commands
|
// Look for superscript or subscript and insert the appropriate commands
|
||||||
//Match roMatch = Regex.Match(tmp, @"(.*?)\\(super|sub) (.*?)\\nosupersub ");
|
Match roMatch = Regex.Match(tmp, @"(.*?)\\(up2|dn2) (.*?)\\(up0|dn0) ");
|
||||||
Match roMatch = Regex.Match(tmp, @"(.*?)\\(up3|dn3) (.*?)\\(up0|dn0) ");
|
|
||||||
if (roMatch.Groups.Count == 5)// Superscript or subscript found
|
if (roMatch.Groups.Count == 5)// Superscript or subscript found
|
||||||
{
|
{
|
||||||
sel.Font.Color = LBWdColor.wdColorRed;
|
sel.Font.Color = LBWdColor.wdColorRed;
|
||||||
while (roMatch.Groups.Count == 5)
|
while (roMatch.Groups.Count == 5)
|
||||||
{
|
{
|
||||||
sel.TypeText(roMatch.Groups[1].Value); // output the text preceeding the super or sub command
|
sel.TypeText(roMatch.Groups[1].Value); // output the text preceeding the super or sub command
|
||||||
sel.Font.Position = roMatch.Groups[2].Value == "up3" ? 2 : -2; // Shift the vertical position for super or sub
|
sel.Font.Position = roMatch.Groups[2].Value == "up2" ? 2 : -2; // Shift the vertical position for super or sub
|
||||||
//sel.Font.Position = roMatch.Groups[2].Value == "super" ? 2 : -2; // Shift the vertical position for super or sub
|
|
||||||
sel.TypeText(roMatch.Groups[3].Value); // output the superscript or subscript
|
sel.TypeText(roMatch.Groups[3].Value); // output the superscript or subscript
|
||||||
sel.Font.Position = 0; // restore the vertical position
|
sel.Font.Position = 0; // restore the vertical position
|
||||||
tmp = tmp.Substring(roMatch.Length); // remove the processed text
|
tmp = tmp.Substring(roMatch.Length); // remove the processed text
|
||||||
//roMatch = Regex.Match(tmp, @"(.*?)\\(super|sub) (.*?)\\nosupersub "); // check to see if the text contain another super or sub
|
roMatch = Regex.Match(tmp, @"(.*?)\\(up2|dn2) (.*?)\\(up0|dn0) "); // check to see if the text contain another super or sub
|
||||||
roMatch = Regex.Match(tmp, @"(.*?)\\(up3|dn3) (.*?)\\(up0|dn0) "); // check to see if the text contain another super or sub
|
|
||||||
}
|
}
|
||||||
if (tmp != "")// Add any remaining text
|
if (tmp != "")// Add any remaining text
|
||||||
sel.TypeText(tmp);
|
sel.TypeText(tmp);
|
||||||
|
@ -89,6 +89,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
public bool ChildrenLoaded
|
public bool ChildrenLoaded
|
||||||
{
|
{
|
||||||
get { return _ChildrenLoaded; }
|
get { return _ChildrenLoaded; }
|
||||||
|
set { _ChildrenLoaded = value; }
|
||||||
}
|
}
|
||||||
// Reset Node
|
// Reset Node
|
||||||
//public void CloseNode()
|
//public void CloseNode()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user