BGE_STP: Implement ‘CheckOffHeaderInPagelist’ and ‘CheckOffXtraLines’ format flags

This commit is contained in:
Kathy Ruffing 2014-10-16 12:51:07 +00:00
parent 995504ca06
commit ba6eff87f4

View File

@ -2597,7 +2597,10 @@ namespace Volian.Print.Library
xloc_co = XOffset + (relX > 0 ? Width : 0) + relX;
}
}
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff, co.Macro));
float xtraCheckOffLines = (co.CheckOffXtraLines ?? 0) * SixLinesPerInch;
xtraCheckOffLines -= ((xtraCheckOffLines>0)? SixLinesPerInch:0);
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff + xtraCheckOffLines, co.Macro));
yoff += (xtraCheckOffLines > 0) ? xtraCheckOffLines + SixLinesPerInch : 0;
}
}
float yOffRight = yoff;
@ -4245,6 +4248,7 @@ namespace Volian.Print.Library
SectionConfig sc = itemInfo.MyActiveSection.MyConfig as SectionConfig;
if (sc != null && sc.Section_CheckoffHeaderSelection > 0) return true;
}
if (formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.CheckOffHeaderInPagelist) return true;
return false;
}
// Currently not used.