Equation Editor interface support

This commit is contained in:
2016-11-17 15:05:15 +00:00
parent 3e212834ea
commit 0b7371367c
26 changed files with 2129 additions and 855 deletions

View File

@@ -1792,6 +1792,13 @@ namespace VEPROMS.CSLA.Library
return parent.IsInRNO;
}
}
public bool IsRtfRaw
{
get
{
return (MyContent.Type > 20999);
}
}
public bool IsInCalvertConditionResponse
{
get
@@ -2224,6 +2231,7 @@ namespace VEPROMS.CSLA.Library
if (MyContent.ContentRoUsages == null || MyContent.ContentRoUsages.Count == 0)
return "Embedded Image";
}
if (IsRtfRaw) return "Equation";
if (cont.Type >= 20000) number = MyTab == null ? "" : MyTab.CleanText;
return string.Format("{0} {1}", number, DisplayText).Trim(); // Need TrimEnd(); for IP3
//return string.Format("{0} {1}", number, cont.Text).Trim();
@@ -2300,7 +2308,13 @@ namespace VEPROMS.CSLA.Library
}
public string ShortSearchPath
{
get { return ConvertToDisplayText(Regex.Replace(_SearchPath ?? "", "\x11.*?\x07", "\x07")); }
get
{
string dtext = ConvertToDisplayText(Regex.Replace(_SearchPath ?? "", "\x11.*?\x07", "\x07"));
if (IsFigure && dtext.EndsWith("Table.")) dtext = dtext.Substring(0, dtext.Length - "Table.".Length) + "Figure.";
else if (IsRtfRaw && dtext.EndsWith("Table.") && FormatStepData.Type.Contains("Equation")) dtext = dtext.Substring(0, dtext.Length - "Table.".Length) + "Equation.";
return dtext;
}
}
internal int _SearchAnnotationID;
public int SearchAnnotationID

View File

@@ -96,7 +96,12 @@ namespace VEPROMS.CSLA.Library
case E_FromType.Step:
break;
case E_FromType.Table:
partText = ".Table";
if (MyItem.IsRtfRaw)
partText = ".Equation";
else if (MyItem.IsFigure)
partText = ".Figure";
else
partText = ".Table";
break;
default:
break;
@@ -151,6 +156,7 @@ namespace VEPROMS.CSLA.Library
{
if (MyItems != null && MyItems[0].IsTable) return ("Table");
if (MyItems != null && MyItems[0].IsFigure) return ("Figure");
if (MyItems != null && MyItems[0].IsRtfRaw) return ("Equation");
}
return string.Format("{0}", PartTypes);
}