Added format variables for Wolf Creek Training format
Save the Y position for the placement of a line after the section title. Also adjust the width of the section title with respect to the section number. All for the Wolf Creek Training format Print a horizontal line after the section header (number and title) for the Wolf Creek Training format
This commit is contained in:
@@ -561,6 +561,9 @@ namespace Volian.Print.Library
|
||||
{
|
||||
int profileDepth = ProfileTimer.Push(">>>> vlnParagraph.DrawText");
|
||||
retval = DrawText(cb, ref yPageStart, yTopMargin, yBottomMargin, ref yLocation);
|
||||
// Wolf Creek Training format puts a separator line after printing the section number/title
|
||||
if (MyItemInfo.IsSection && MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.WCNTraining)
|
||||
MyPageHelper.SectionSepLineYoffStart = retval - (SixLinesPerInch / 2);
|
||||
SectionContinuePrinted = true;
|
||||
ProfileTimer.Pop(profileDepth);
|
||||
}
|
||||
@@ -5018,6 +5021,8 @@ namespace Volian.Print.Library
|
||||
float seclvlindent = colsbylevel - (float)formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ColS;
|
||||
adjwidth -= seclvlindent;
|
||||
if (itemInfo.IsStep) adjwidth -= AdjustForSectionLevelTab();
|
||||
if (itemInfo.IsSection && itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.WCNTraining)
|
||||
adjwidth -= (float)((itemInfo.MyTab.CleanText.Trim().Length * 72) / itemInfo.ActiveFormat.PlantFormat.FormatData.SectData.SectionHeader.Font.CPI);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user