B2020-121: pagination/location of BGE Alarms, Condition Response Caution/Notes

This commit is contained in:
2020-09-14 13:14:54 +00:00
parent a4395852b6
commit 377788c314
3 changed files with 32 additions and 22 deletions

View File

@@ -10,6 +10,9 @@ namespace Volian.Print.Library
{
public partial class vlnMacro : vlnPrintObject
{
private bool _UseInternalY = false;
// B2020-121: Account for Header on Caution or Note
public bool UseInternalY { get => _UseInternalY; set => _UseInternalY = value; }
private string _MacroDef;
public string MacroDef
{
@@ -27,6 +30,7 @@ namespace Volian.Print.Library
cb.SaveState();
MyContentByte = cb;
float yLocation = CalculateYOffset(yPageStart, yTopMargin);
if (UseInternalY) yLocation = YOffset; // B2020-121: Account for Header on Caution or Note
// Adjust the starting point for the Macro if the LPI is 7
if (MyPageHelper.YMultiplier != 1) yLocation += SixLinesPerInch - _SevenLinesPerInch;
VlnSvgPageHelper _MyPageHelper = cb.PdfWriter.PageEvent as VlnSvgPageHelper;