This commit is contained in:
@@ -84,7 +84,8 @@ namespace Volian.Print.Library
|
||||
{
|
||||
get {return YChangeBarBottom - YExtendLine; }
|
||||
}
|
||||
public vlnChangeBar(PdfContentByte cb, vlnParagraph parent, float xoff, float yoff, int msgAlignment)
|
||||
private bool _IsRev;
|
||||
public vlnChangeBar(PdfContentByte cb, vlnParagraph parent, float xoff, float yoff, int msgAlignment, bool isRev)
|
||||
{
|
||||
// for grids, a y adjustment is made to match 16bit output, see the variable 'GridTopAdjust'. Take this
|
||||
// adjustment into account for the change bar. 6.5 positioned the change bar to match 16bit output.
|
||||
@@ -93,6 +94,7 @@ namespace Volian.Print.Library
|
||||
XOffset = xoff;
|
||||
YOffset = yoff;
|
||||
MyParent = parent;
|
||||
_IsRev = isRev;
|
||||
Messages = new SortedDictionary<float, vlnChangeBarMessage>();
|
||||
// if there is an RNO separator, add the separator's height in too.
|
||||
Height = parent.Height * MyPageHelper.YMultiplier + (parent.MyItemInfo.IsFigure?SixLinesPerInch:0);
|
||||
@@ -158,9 +160,10 @@ namespace Volian.Print.Library
|
||||
vlnChangeBarMessage vcbm = (vlnChangeBarMessage)kvp.Value;
|
||||
if (lastMsg != vcbm.Message)
|
||||
{
|
||||
//If change bar is on left side, subtract off size of text & some constant number
|
||||
// y is yoffset - size of paragraph
|
||||
iTextSharp.text.Font iFont = Volian.Svg.Library.VolianPdf.GetFont(new System.Drawing.Font("Letter Gothic", 5.5F));
|
||||
// use bigger font if revnum msg
|
||||
|
||||
iTextSharp.text.Font iFont = _IsRev? Volian.Svg.Library.VolianPdf.GetFont(new System.Drawing.Font("Letter Gothic", 10F)):
|
||||
Volian.Svg.Library.VolianPdf.GetFont(new System.Drawing.Font("Letter Gothic", 5.5F));
|
||||
|
||||
Chunk chk = new Chunk(vcbm.Message.IndexOf(@"\n") > -1 ? vcbm.Message.Substring(0, vcbm.Message.IndexOf(@"\n")) : vcbm.Message, iFont);
|
||||
Paragraph myparagraph = new Paragraph(chk);
|
||||
|
Reference in New Issue
Block a user