Added Print/HorizontalSubstep flag (default to false). Was in 16bit to flag footnotes for BGEVL (in addition to NotesToFootnotes
Set HorizontalSubstep flag to true (for Note type as footnote) Added property ‘IsFootnote’; for Calvert formats: don’t bullet a single note/caution Added HorizontalSubstep flag Use ‘IsFootnote’ property to determine if a note is a footnote.
This commit is contained in:
@@ -1226,6 +1226,18 @@ namespace VEPROMS.CSLA.Library
|
||||
return IsType("Note");
|
||||
}
|
||||
}
|
||||
public bool IsFootnote
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!ActiveFormat.PlantFormat.FormatData.ProcData.NotesToFootnotes) return false;
|
||||
if (!IsStep) return false;
|
||||
// BGEVL had notes as footnotes, and also had HorizontalSubsteps flag
|
||||
if (ActiveFormat.PlantFormat.FormatData.PrintData.HorizontalSubsteps && IsType("Note")) return true;
|
||||
if (IsType("Note2")) return true; // BGEEOP had note2's as footnotes
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public bool IsTable
|
||||
{
|
||||
get
|
||||
@@ -3396,7 +3408,9 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
if (!this.FormatStepData.SeparateBox)
|
||||
{
|
||||
if (tbformat == nextTbFormat || tbformat == prevTbFormat)
|
||||
// For calvert formats, if all tabs are null or empty, then don't add a bullet in.
|
||||
bool allnull = ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert && (tbformat == null || tbformat == "") && (nextTbFormat == null || tbformat == "") && (prevTbFormat == null || prevTbFormat == "");
|
||||
if (!allnull && (tbformat == nextTbFormat || tbformat == prevTbFormat))
|
||||
{
|
||||
tbformat = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB;
|
||||
TabToIdentBAdjustFont();
|
||||
|
@@ -729,6 +729,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _SpecialCaseCalvertAlarm, "@SpecialCaseCalvertAlarm");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _HorizontalSubsteps;
|
||||
public bool HorizontalSubsteps
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _HorizontalSubsteps, "@HorizontalSubsteps");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _SpecialStepsFoldout;
|
||||
public bool SpecialStepsFoldout
|
||||
{
|
||||
|
Reference in New Issue
Block a user