This commit is contained in:
parent
9042c66a69
commit
7c77423283
@ -16,18 +16,25 @@ namespace Volian.Print.Library
|
|||||||
get { return _MyFont; }
|
get { return _MyFont; }
|
||||||
set { _MyFont = value; }
|
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 flag set and separator defined then output separator */
|
||||||
/*if separator is a control-A use RNOSepLine*/
|
/*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;
|
YOffset = yoffset;
|
||||||
XOffset = xoffset;
|
XOffset = xoffset;
|
||||||
_MyParent = parent;
|
_MyParent = parent;
|
||||||
if (sepStr != null)
|
if (sepStr != null)
|
||||||
Rtf = GetRtf(sepStr, vFont);
|
Rtf = GetRtf(sepStr, formatInfo.PlantFormat.FormatData.Font);
|
||||||
else
|
else
|
||||||
Rtf = "--------------------------"; //TODO - What should this be: is this Ctrl-A?
|
Rtf = "--------------------------"; //TODO - What should this be: is this Ctrl-A?
|
||||||
MyFont = vFont;
|
MyFont = formatInfo.PlantFormat.FormatData.Font;
|
||||||
Width = sepStr.Length * _CharsToTwips + _WidthAdjust;
|
Width = sepStr.Length * _CharsToTwips + _WidthAdjust;
|
||||||
}
|
}
|
||||||
public override float ToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin)
|
public override float ToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user