force alignment of ‘Unnumbered High Level Step’ with section text

Calvert: force alignment of ‘Unnumbered High Level Step’ with section text
This commit is contained in:
2014-11-12 15:17:17 +00:00
parent 9eed40353e
commit bcc0ec5a3b
4 changed files with 13 additions and 2 deletions

View File

@@ -4039,8 +4039,11 @@ namespace Volian.Print.Library
else
{
XOffset += xoff;
// For Calvert, adjust from the left margin and current section's tab.
if (myTab == null && itemInfo.FormatStepData.AlignNullTabWSectHead && itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert)
// For Calvert, adjust from the left margin and current section's tab. This is used
// in BGEEOP (see EOP-0/Purpose ). However, it caused BGESTP's to print LossOfAC steps (unnumbered HLS) too
// far to the left. The ForceAlignNullTabWSectHead was introduced so that for that step type (LossOfAC) in STP/OI format,
// the SectData.SectionHeader.Pos was used rather than SectData.SectionNumber.Pos
if (myTab == null && !itemInfo.FormatStepData.ForceAlignNullTabWSectHead && itemInfo.FormatStepData.AlignNullTabWSectHead && itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert)
XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + (float)formatInfo.PlantFormat.FormatData.SectData.SectionNumber.Pos;
else if (myTab == null && itemInfo.FormatStepData.AlignNullTabWSectHead)
XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + (float)formatInfo.PlantFormat.FormatData.SectData.SectionHeader.Pos;