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,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

View File

@ -2033,6 +2033,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _Level0Big, "@Level0Big");
}
}
private LazyLoad<bool> _OnlyUnderlineTopSect;
public bool OnlyUnderlineTopSect
{
get
{
return LazyLoad(ref _OnlyUnderlineTopSect, "@OnlyUnderlineTopSect");
}
}
private 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)
{
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)
{