B2019-158 Added a format flag to turn off the bolding of the sub-section header. Used in the Barakah Single Column Format.

This commit is contained in:
John Jenko 2021-08-10 17:33:02 +00:00
parent 9e33d021eb
commit f21c448739

View File

@ -822,6 +822,27 @@ namespace VEPROMS.CSLA.Library
parentFormat = parentFormat.PlantFormat.FormatData.MyParentFormat;
}
}
// Handle inheritance (step data may not be in current format, may inherit from parents):
if (!foundInCur && doInherit)
{
IFormatOrFormatInfo parentFormat = MyParentFormat;
bool foundit = false;
while (parentFormat != null && !foundit)
{
vlnIndexedFormatList<StepData> InheritedList = parentFormat.PlantFormat.FormatData.StepDataList;
foreach (StepData sd1 in InheritedList)
{
if (sd1.ParentType == topType.Type)
{
int tmpindx = DoListChildStepTypes(alwaysAdd, ref sds, sd1, curType, _CurItemInfo, ref cntitm, true);
if (sd1.Type == curType) retval = tmpindx;
if (retval < 0 && tmpindx > 0) retval = tmpindx;
foundit = true;
}
}
parentFormat = parentFormat.PlantFormat.FormatData.MyParentFormat;
}
}
}
return retval;
}
@ -2580,6 +2601,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _OnlyUnderlineTopSect, "@OnlyUnderlineTopSect");
}
}
private LazyLoad<bool> _OnlyBoldTopSect;
public bool OnlyBoldTopSect
{
get
{
return LazyLoad(ref _OnlyBoldTopSect, "@OnlyBoldTopSect");
}
}
private VE_Font _Font;
public VE_Font Font
{