B2019-011 Better align the First level sub step tab with the high level step tab
This commit is contained in:
parent
29f2e34fd8
commit
b874d9e92e
@ -4007,7 +4007,7 @@ namespace VEPROMS.CSLA.Library
|
||||
tbformat = (lv == 0) ? "{numeric}." : "{alpha}.";
|
||||
}
|
||||
bool trimTabStart = false;
|
||||
|
||||
bool dontTrimParentTabBeforeAppending = false; // B2019-011 for Barakah Alarm format
|
||||
if (useSubStepTabs || tbformat.IndexOf("{seq}") > -1)
|
||||
{
|
||||
// If the document style has the flag DSS_UnNumLikeRoman, don't do the normal tab, change to alpha
|
||||
@ -4037,10 +4037,12 @@ namespace VEPROMS.CSLA.Library
|
||||
itmp = (localPrintLevel + PrintBias + OffsetTab) % seqtabs.MaxIndex;
|
||||
}
|
||||
}
|
||||
if (!tbformat.Contains(@"{!C"))
|
||||
tbformat = seqtabs[itmp].PrintTabFormat; // seqtab in 16bit, i.e. '. or )' etc.
|
||||
else
|
||||
tbformat = tbformat.Replace("{seq}", seqtabs[itmp].PrintTabFormat);
|
||||
if (!tbformat.Contains(@"{!C"))
|
||||
tbformat = seqtabs[itmp].PrintTabFormat; // seqtab in 16bit, i.e. '. or )' etc.
|
||||
else
|
||||
tbformat = tbformat.Replace("{seq}", seqtabs[itmp].PrintTabFormat);
|
||||
dontTrimParentTabBeforeAppending = seqtabs[itmp].DontTrimParentTabBeforeAppending; // B2019-011 put in for Barakah Alarm format to better align the first level sub step with the high level step
|
||||
|
||||
string tbtoken = seqtabs[localPrintLevel % seqtabs.MaxIndex].TabToken; // seqstart in 16bit, number/letter
|
||||
|
||||
// if the tab has a character before the token, trim the front of tab:
|
||||
@ -4076,7 +4078,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
else if (myparent.IsSection || myparent.IsHigh || myparent.IsSequential || (myparent.IsRNOPart && myparent.FormatStepData.NumberHighLevel && tbformat.ToUpper().Contains("WPAR")))
|
||||
{
|
||||
parentTab = myparent.MyTab.CleanText.Trim();
|
||||
parentTab = (dontTrimParentTabBeforeAppending) ? myparent.MyTab.CleanText : myparent.MyTab.CleanText.Trim(); // B2019-011 for Barakah Alarm format adde the don't trim flag
|
||||
if ((((MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_AddDotZeroStdHLS) == E_DocStructStyle.DSS_AddDotZeroStdHLS) && myparent.MyContent.Type == 20002) ||
|
||||
(myparent.IsStepPart && myparent.FormatStepData.AppendDotZero)) // F2018-022 Added step type flag to append a ".0" to the end of the high level step - put in for Westinghouse single column format (wst1), B2018-119 only do this for steps
|
||||
parentTab = parentTab.Replace(".0", ""); // this was added in, remove for substeps.
|
||||
|
@ -4324,6 +4324,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _TabFormat, "@PrintTabFormat");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _DontTrimParentTabBeforeAppending; // B2019-011 for Barakah Alarm format
|
||||
public bool DontTrimParentTabBeforeAppending
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _DontTrimParentTabBeforeAppending, "@DontTrimParentTabBeforeAppending");
|
||||
}
|
||||
}
|
||||
public override string GetPDDisplayName()
|
||||
{ return string.Format("Index [{0}]",Index); }
|
||||
public override string GetPDDescription()
|
||||
|
Loading…
x
Reference in New Issue
Block a user