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:
parent
324bc4aa30
commit
ecc9a866e3
Binary file not shown.
@ -2585,7 +2585,14 @@ namespace VEPROMS.CSLA.Library
|
|||||||
font = format.PlantFormat.FormatData.Font;
|
font = format.PlantFormat.FormatData.Font;
|
||||||
break;
|
break;
|
||||||
case 1: // section
|
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;
|
break;
|
||||||
case 2: // step types
|
case 2: // step types
|
||||||
int typindx = type - 20000; // what to do for other types rather than steps
|
int typindx = type - 20000; // what to do for other types rather than steps
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user