This commit is contained in:
Kathy Ruffing 2010-12-07 12:56:17 +00:00
parent 9042c66a69
commit 7c77423283

View File

@ -16,18 +16,25 @@ namespace Volian.Print.Library
get { return _MyFont; }
set { _MyFont = value; }
}
private bool _ExtendChangeBar;
public bool ExtendChangeBar
{
get { return _ExtendChangeBar; }
set { _ExtendChangeBar = value; }
}
/* if flag set and separator defined then output separator */
/*if separator is a control-A use RNOSepLine*/
public vlnRNOSeparator(vlnParagraph parent, PdfContentByte cb, string sepStr, float xoffset, float yoffset, VE_Font vFont)
public vlnRNOSeparator(vlnParagraph parent, PdfContentByte cb, string sepStr, float xoffset, float yoffset, FormatInfo formatInfo, bool extendChangeBar)
{
ExtendChangeBar = formatInfo.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeBarToRNOSep ? extendChangeBar : false;
YOffset = yoffset;
XOffset = xoffset;
_MyParent = parent;
if (sepStr != null)
Rtf = GetRtf(sepStr, vFont);
Rtf = GetRtf(sepStr, formatInfo.PlantFormat.FormatData.Font);
else
Rtf = "--------------------------"; //TODO - What should this be: is this Ctrl-A?
MyFont = vFont;
MyFont = formatInfo.PlantFormat.FormatData.Font;
Width = sepStr.Length * _CharsToTwips + _WidthAdjust;
}
public override float ToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin)