implemented the UsesSTExtraRealValue flag
B2012-188 - added logic for the PREDELIMEOPNUM pagelist token.
This commit is contained in:
parent
d7d1b7194d
commit
3534b9bca0
@ -729,10 +729,20 @@ namespace Volian.Print.Library
|
||||
//SplitTitle(svgGroup, pageItem, section.MyProcedure.MyContent.Text, (int)section.ActiveFormat.PlantFormat.FormatData.ProcData.TitleLength, token);
|
||||
break;
|
||||
case "{EOPNUM}":
|
||||
case "{PREDELIMEOPNUM}":
|
||||
string eopnum = section.MyProcedure.MyContent.Number;
|
||||
string unitnum = MySection.MyDocVersion.DocVersionConfig.Unit_ProcedureNumber;
|
||||
if (unitnum.Length > 0)
|
||||
eopnum = unitnum.Replace("#", eopnum);
|
||||
if (match.Value.Equals("{PREDELIMEOPNUM}"))
|
||||
{
|
||||
// only use up to the first non-alphanumeric character of the procedur number
|
||||
// Prairie Island (NSP) Alarms use this token
|
||||
int idx = 0;
|
||||
while (idx < eopnum.Length && char.IsLetterOrDigit(eopnum[idx])) idx++;
|
||||
if (idx < eopnum.Length)
|
||||
eopnum = eopnum.Substring(0, idx);
|
||||
}
|
||||
plstr = plstr.Replace(token, eopnum);
|
||||
//svgGroup.Add(PageItemToSvgText(pageItem, pageItem.Token.Replace(token, eopnum)));
|
||||
//svgGroup.Add(PageItemToSvgText(pageItem, pageItem.Token.Replace(token, section.MyProcedure.MyContent.Number)));
|
||||
|
@ -962,7 +962,8 @@ namespace Volian.Print.Library
|
||||
float addExtraSpace = (MyItemInfo.FormatStepData == null) ? 0 : MyItemInfo.FormatStepData.StepLayoutData.STExtraSpace ?? 0;
|
||||
// If a high level step, the 16bit code uses the value of the extra space
|
||||
// from the high level step format regardless of what type of high level step it is:
|
||||
if (MyItemInfo.IsHigh)
|
||||
// Added check for UseSTExtraRealValue, if set, we want to use what is set for the specific step type
|
||||
if (!MyItemInfo.ActiveFormat.MyStepSectionLayoutData.UseSTExtraRealValue && MyItemInfo.IsHigh)
|
||||
addExtraSpace = MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[2].StepLayoutData.STExtraSpace ?? 0;
|
||||
if (addExtraSpace > 0) this.PartsAbove.Add(new vlnText(cb, this, " ", " ", 0, yoff, MyItemInfo.FormatStepData.Font));
|
||||
yoff += addExtraSpace;
|
||||
|
Loading…
x
Reference in New Issue
Block a user