This commit is contained in:
parent
a13b6a7745
commit
8632d6e7e8
@ -2128,17 +2128,24 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// a subsection. Index into the seqtabs array has to account for metasection level.
|
// a subsection. Index into the seqtabs array has to account for metasection level.
|
||||||
int localPrintLevel = PrintLevel;
|
int localPrintLevel = PrintLevel;
|
||||||
StepSectionData sd = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData;
|
StepSectionData sd = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData;
|
||||||
|
bool doMeta = false;
|
||||||
if (sd.StepSectionLayoutData.TieTabToLevel && ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)
|
if (sd.StepSectionLayoutData.TieTabToLevel && ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)
|
||||||
{
|
{
|
||||||
if (sd.StepSectionLayoutData.ShowSectionTitles
|
if (sd.StepSectionLayoutData.ShowSectionTitles
|
||||||
&& !MyDocStyle.CancelSectTitle
|
&& !MyDocStyle.CancelSectTitle
|
||||||
&& !(MyDocStyle.SpecialStepsFoldout && MyDocStyle.UseColSByLevel))
|
&& !(MyDocStyle.SpecialStepsFoldout && MyDocStyle.UseColSByLevel))
|
||||||
localPrintLevel = PrintLevel + CurrentSectionLevel();
|
localPrintLevel = PrintLevel + CurrentSectionLevel();
|
||||||
|
doMeta = true;
|
||||||
}
|
}
|
||||||
|
SeqTabFmtList seqtabs = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.SeqTabFmtList;
|
||||||
// Start with basic cases of alpha/numeric/seq:
|
// Start with basic cases of alpha/numeric/seq:
|
||||||
if (tbformat.IndexOf("{seq}") > -1)
|
// If we have metasections AND...
|
||||||
|
// If the seqtabs for this given level does not get a section number, use the seqtab rather than
|
||||||
|
// the ident of the step:
|
||||||
|
bool useSubStepTabs = false;
|
||||||
|
if (doMeta && IsHigh && !seqtabs[(localPrintLevel<0?0:localPrintLevel) % seqtabs.Count].TabToken.Contains("{numericWpar}")) useSubStepTabs = true;
|
||||||
|
if (useSubStepTabs || tbformat.IndexOf("{seq}") > -1)
|
||||||
{
|
{
|
||||||
SeqTabFmtList seqtabs = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.SeqTabFmtList;
|
|
||||||
int itmp = (localPrintLevel + PrintBias) % seqtabs.Count;
|
int itmp = (localPrintLevel + PrintBias) % seqtabs.Count;
|
||||||
tbformat = seqtabs[itmp].PrintTabFormat; // seqtab in 16bit, i.e. '. or )' etc.
|
tbformat = seqtabs[itmp].PrintTabFormat; // seqtab in 16bit, i.e. '. or )' etc.
|
||||||
string tbtoken = seqtabs[localPrintLevel % seqtabs.Count].TabToken; // seqstart in 16bit, number/letter
|
string tbtoken = seqtabs[localPrintLevel % seqtabs.Count].TabToken; // seqstart in 16bit, number/letter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user