Revised code to assure setpoint ro's were underlined and non-setpoint ro's were not underlined during printing

Revised code to assure ro's in grids are not colored red during printing
Added code to override Height property of vlnPrintObject class in vlnBox class
Added code to utilize BoxLeftAdj property
Removed blank lines and previous debug code
Added code to assure spaces between note and caution boxes are added when separate box format flag is used
Added code to implement %c token in continue message of Byron/Braidwood formats
Added code to utilize BoxLeftAdj property
Added code to correct underline termination issue involving reference objects and transitions
Changed Height property to virtual to allow overriding in inherited classes
This commit is contained in:
Rich
2014-01-17 16:12:20 +00:00
parent 7793bd2397
commit 750c8df895
5 changed files with 38 additions and 15 deletions

View File

@@ -28,6 +28,16 @@ namespace Volian.Print.Library
}
// the following two fields are used if 'boxed' step, thus
// no 'Box' was defined in format file.
public override float Height
{
get
{
if (_Height == 0)
_Height = GetParagraphHeight(MyContentByte, IParagraph, Width);
return _Height;
}
set { _Height = value; }
}
public string DefBox = null;
public float DefEnd = 0;
@@ -69,7 +79,12 @@ namespace Volian.Print.Library
float top = CalculateYOffset(yPageStart, yTopMargin) - (7*MyPageHelper.YMultiplier);
float bottom = top - (Height * MyPageHelper.YMultiplier);
float left = (float)((MyBox.Start ?? 0) + MyParent.MyItemInfo.MyDocStyle.Layout.LeftMargin);
float myBoxLeftAdj = 0;
if (MyParent.MyItemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj != null)
myBoxLeftAdj = float.Parse(MyParent.MyItemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj);
left += myBoxLeftAdj;
float right = (float)MyParent.MyItemInfo.MyDocStyle.Layout.LeftMargin + (float)(MyBox.End ?? DefEnd);
right += myBoxLeftAdj;
iTextSharp.text.Color boxColor = new iTextSharp.text.Color(PrintOverride.OverrideBoxColor(System.Drawing.Color.Black));
cb.SetColorStroke(boxColor);
_MyPageHelper.MyGaps.Add(top, top - Height);