Continue development

VCB1 format:  Only underline top section (if subsections)
VCB1 format:  Format flag to only underline top section (if subsections)
VCB1: step widths
This commit is contained in:
Kathy Ruffing 2016-06-17 14:45:51 +00:00
parent 324bc4aa30
commit ecc9a866e3
4 changed files with 21 additions and 2 deletions

Binary file not shown.

View File

@ -2585,6 +2585,13 @@ namespace VEPROMS.CSLA.Library
font = format.PlantFormat.FormatData.Font; font = format.PlantFormat.FormatData.Font;
break; break;
case 1: // section case 1: // section
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; font = format.PlantFormat.FormatData.SectData.SectionHeader.Font;
break; break;
case 2: // step types case 2: // step types

View File

@ -2033,6 +2033,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _Level0Big, "@Level0Big"); return LazyLoad(ref _Level0Big, "@Level0Big");
} }
} }
private LazyLoad<bool> _OnlyUnderlineTopSect;
public bool OnlyUnderlineTopSect
{
get
{
return LazyLoad(ref _OnlyUnderlineTopSect, "@OnlyUnderlineTopSect");
}
}
private VE_Font _Font; private VE_Font _Font;
public VE_Font Font public VE_Font Font
{ {

View File

@ -5434,7 +5434,11 @@ namespace Volian.Print.Library
private float AdjustMetaWidth(ItemInfo itemInfo, FormatInfo formatInfo, float adjwidth) private float AdjustMetaWidth(ItemInfo itemInfo, FormatInfo formatInfo, float adjwidth)
{ {
SectData sd = formatInfo.PlantFormat.FormatData.SectData; 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) if (sd.StepSectionData.StepSectionLayoutData.TieTabToLevel)
{ {