Fixed logic to handle Fortran Formatted Numbers in word documents

Added StepLevel property to ItemInfo
Added StepLevel debug
This commit is contained in:
Rich
2010-07-26 13:39:28 +00:00
parent 0963dbb79c
commit ef26bcbdc4
3 changed files with 188 additions and 16 deletions

View File

@@ -614,10 +614,10 @@ namespace VEPROMS.CSLA.Library
// Look for superscript or subscript and insert the appropriate commands
//Match roMatch = Regex.Match(tmp, @"(.*?)\\(super|sub) (.*?)\\nosupersub ");
Match roMatch = Regex.Match(tmp, @"(.*?)\\(up3|dn3) (.*?)\\(up0|dn0) ");
if (roMatch.Groups.Count == 4)// Superscript or subscript found
if (roMatch.Groups.Count == 5)// Superscript or subscript found
{
sel.Font.Color = LBWdColor.wdColorRed;
while (roMatch.Groups.Count == 4)
while (roMatch.Groups.Count == 5)
{
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