diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index a28b968f..e860c23a 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -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 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 _OnlyBoldTopSect; + public bool OnlyBoldTopSect + { + get + { + return LazyLoad(ref _OnlyBoldTopSect, "@OnlyBoldTopSect"); + } + } private VE_Font _Font; public VE_Font Font {