Added a box style for the Robinson EOP format.

This commit is contained in:
John Jenko 2013-09-10 15:41:27 +00:00
parent c56c78f1e0
commit 9434938ffc

View File

@ -54,6 +54,7 @@ namespace Volian.Print.Library
const string BoxAsteriskWithSides2 = " *. *.*.*. . . *.*. . *. . "; // ip3 const string BoxAsteriskWithSides2 = " *. *.*.*. . . *.*. . *. . "; // ip3
const string BoxAsteriskTopBottom = "*.*.*. . . .*.*. .*. . "; // fnp const string BoxAsteriskTopBottom = "*.*.*. . . .*.*. .*. . "; // fnp
const string BoxLineTopBottom = "\x2500.\x2500.\x2500. . . .\x2500.\x2500. .\x2500. . "; // fnp const string BoxLineTopBottom = "\x2500.\x2500.\x2500. . . .\x2500.\x2500. .\x2500. . "; // fnp
const string BoxAsteriskTopBotton2 = " .*. . . . . . . .*. . "; // Robinson (CPL)
public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin) public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin)
{ {
@ -116,6 +117,7 @@ namespace Volian.Print.Library
break; break;
case BoxAsterisk: case BoxAsterisk:
case BoxAsteriskTopBottom: case BoxAsteriskTopBottom:
case BoxAsteriskTopBotton2:
DrawAsteriskTopBottom(cb, yPageStart, yTopMargin, yBottomMargin, ref top, ref bottom, left); DrawAsteriskTopBottom(cb, yPageStart, yTopMargin, yBottomMargin, ref top, ref bottom, left);
break; break;
case BoxLineTopBottom: // fnp note box case BoxLineTopBottom: // fnp note box