vcb format: added a proctitle3 so top line wasn’t moved up

This commit is contained in:
Kathy Ruffing 2016-06-23 11:05:47 +00:00
parent 98671ac45c
commit 721cc36c8d

View File

@ -1519,6 +1519,8 @@ namespace Volian.Print.Library
case "[PROCTITLE1]": case "[PROCTITLE1]":
case "{PROCTITLE2}": case "{PROCTITLE2}":
case "[PROCTITLE2]": case "[PROCTITLE2]":
case "{PROCTITLE3}":
case "[PROCTITLE3]":
case "{COVERPROCTITLE}": case "{COVERPROCTITLE}":
case "[COVERPROCTITLE]": case "[COVERPROCTITLE]":
int tlen = (token.Contains("COVERPROCTITLE"))?(int)section.ActiveFormat.PlantFormat.FormatData.ProcData.CoverTitleLength : (int)section.ActiveFormat.PlantFormat.FormatData.ProcData.TitleLength; int tlen = (token.Contains("COVERPROCTITLE"))?(int)section.ActiveFormat.PlantFormat.FormatData.ProcData.CoverTitleLength : (int)section.ActiveFormat.PlantFormat.FormatData.ProcData.TitleLength;
@ -2122,6 +2124,10 @@ namespace Volian.Print.Library
// Adjust y location based on which pagelist token & how many lines. Proctitle1 is adjusted if // Adjust y location based on which pagelist token & how many lines. Proctitle1 is adjusted if
// there are more than 2 lines (proctitle1 should have it's own y location that is used if there are 1 or 2 lines.) // there are more than 2 lines (proctitle1 should have it's own y location that is used if there are 1 or 2 lines.)
float yOffset = (pageItem.Token.Contains("1") && titleLines.Count <= 2) ? 0 : (-6 * (titleLines.Count - 1)); float yOffset = (pageItem.Token.Contains("1") && titleLines.Count <= 2) ? 0 : (-6 * (titleLines.Count - 1));
// the following was added to support the vcb format proctitles that should always start on the line defined and
// move down the page for additional lines (this was added to handle a 3 line title printing abouve the border)
if (pageItem.Token.Contains("3")) yOffset = 0;
int cnt = 0; int cnt = 0;
// if the title broke into two lines & proctitle1 & proctitle2 are on the same line, handle that // if the title broke into two lines & proctitle1 & proctitle2 are on the same line, handle that