Added code to DoTopContinueMsg for UseStepTabs flag (Comanche Peak Step Headers)
This commit is contained in:
parent
2c0a9d9804
commit
5dc41a738b
@ -1734,6 +1734,33 @@ namespace Volian.Print.Library
|
||||
private bool DoTopContinueMsg(PdfContentByte cb, ref float yPageStart, float yTopMargin, DocStyle docstyle, string subTab)
|
||||
{
|
||||
bool addExtraLine = false;
|
||||
if ((bool)docstyle.Continue.Top.UseStepTabs)
|
||||
{
|
||||
// UseStepTabs is a format flag added for Comanche Peak to print out step tabs as
|
||||
// a top comtinue message. This code will go up through parents putting out
|
||||
// their tabs - at this y location, but at the tabs' x location
|
||||
vlnParagraph myPar = this;
|
||||
MyPageHelper.TopMessageRs = new List<vlnText>();
|
||||
while (!myPar.MyItemInfo.IsHigh)
|
||||
{
|
||||
myPar = myPar.MyParent;
|
||||
foreach (vlnPrintObject vpo in myPar.PartsLeft)
|
||||
{
|
||||
if (vpo is vlnTab)
|
||||
{
|
||||
vlnTab vt = vpo as vlnTab;
|
||||
string cltxt = vt.Text;
|
||||
cltxt = cltxt.Replace("*", " "); // the customer did not want the '*'
|
||||
// replace C# representation of unicode character "\u25CF" which is hex
|
||||
// with the rtf representation @"\u9679?"
|
||||
if (cltxt.Contains("\u25CF")) cltxt = cltxt.Replace("\u25CF", @"\u9679?"); // handle a bullet, if it isn't unicode yet
|
||||
MyPageHelper.TopMessageRs.Add(new vlnText(cb, this, cltxt, cltxt, vt.XOffset, yTopMargin, vt.MyFont));
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
string myMsg = docstyle.Continue.Top.Message;
|
||||
MyPageHelper.TopMessageRs = new List<vlnText>();
|
||||
if (myMsg != null && myMsg != "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user