diff --git a/PROMS/Formats/fmtall/vcb1all.xml b/PROMS/Formats/fmtall/vcb1all.xml index a83b1169..e7fd3d6f 100644 Binary files a/PROMS/Formats/fmtall/vcb1all.xml and b/PROMS/Formats/fmtall/vcb1all.xml differ diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index 5b341da4..90446767 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -2585,7 +2585,14 @@ namespace VEPROMS.CSLA.Library font = format.PlantFormat.FormatData.Font; break; case 1: // section - font = format.PlantFormat.FormatData.SectData.SectionHeader.Font; + if (format.PlantFormat.FormatData.SectData.SectionHeader.OnlyUnderlineTopSect && MyParent.IsSection) + { + VE_Font hdrFont = format.PlantFormat.FormatData.SectData.SectionHeader.Font; + E_Style es = (E_Style)(hdrFont.Style & E_Style.Bold); + font = new VE_Font(hdrFont.Family, (int)hdrFont.Size, es, (float)hdrFont.CPI); + } + else + font = format.PlantFormat.FormatData.SectData.SectionHeader.Font; break; case 2: // step types int typindx = type - 20000; // what to do for other types rather than steps diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index e9b098cd..776894d2 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -2033,6 +2033,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _Level0Big, "@Level0Big"); } } + private LazyLoad _OnlyUnderlineTopSect; + public bool OnlyUnderlineTopSect + { + get + { + return LazyLoad(ref _OnlyUnderlineTopSect, "@OnlyUnderlineTopSect"); + } + } private VE_Font _Font; public VE_Font Font { diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 49fcefe2..9b7eda93 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -5434,7 +5434,11 @@ namespace Volian.Print.Library private float AdjustMetaWidth(ItemInfo itemInfo, FormatInfo formatInfo, float adjwidth) { SectData sd = formatInfo.PlantFormat.FormatData.SectData; - if (sd.UseMetaSections) + if (((itemInfo.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_SameXOffSubsections) == E_DocStructStyle.DSS_SameXOffSubsections)) + { + adjwidth = MyTab != null ? -MyTab.Width : 0; + } + else if (sd.UseMetaSections) { if (sd.StepSectionData.StepSectionLayoutData.TieTabToLevel) {