Logic to adjust the position of the End message when the page is compressed.
Logic to properly handle whether a procedure title should be uppercased
This commit is contained in:
parent
abd9d8ec3d
commit
0a71a28480
@ -1051,7 +1051,9 @@ namespace Volian.Print.Library
|
||||
int tlen = (token.Contains("COVERPROCTITLE"))?(int)section.ActiveFormat.PlantFormat.FormatData.ProcData.CoverTitleLength : (int)section.ActiveFormat.PlantFormat.FormatData.ProcData.TitleLength;
|
||||
//float linelen = (int)section.ActiveFormat.PlantFormat.FormatData.ProcData.TitleLength * (float)pageItem.Font.CPI / 12;
|
||||
float linelen = tlen * (float)pageItem.Font.CPI / 12;
|
||||
plstr = SplitTitle(svgGroup, pageItem, section.MyProcedure.MyContent.Text.ToUpper(), (int)linelen, token, plstr); //,rowAdj);
|
||||
string title = section.MyProcedure.MyContent.Text;
|
||||
if (section.ActiveFormat.PlantFormat.FormatData.ProcData.CapitalizeTitle) title = title.ToUpper();
|
||||
plstr = SplitTitle(svgGroup, pageItem, title, (int)linelen, token, plstr); //,rowAdj);
|
||||
break;
|
||||
case "{COVERTITLE1}":
|
||||
case "[COVERTITLE1]":
|
||||
@ -1059,7 +1061,9 @@ namespace Volian.Print.Library
|
||||
case "[COVERTITLE2]":
|
||||
int ctlen = section.ActiveFormat.PlantFormat.FormatData.ProcData.CoverTitleLength ?? 0;
|
||||
float coverlinelen = ((ctlen == 0) ? (int)section.ActiveFormat.PlantFormat.FormatData.ProcData.TitleLength : ctlen) * (float)pageItem.Font.CPI / 12;
|
||||
plstr = SplitCoverTitle(svgGroup, pageItem, section.MyProcedure.MyContent.Text, (int)coverlinelen, token, plstr);//, rowAdj);
|
||||
string title1 = section.MyProcedure.MyContent.Text;
|
||||
if (section.ActiveFormat.PlantFormat.FormatData.ProcData.CapitalizeTitle) title1 = title1.ToUpper();
|
||||
plstr = SplitCoverTitle(svgGroup, pageItem, title1, (int)coverlinelen, token, plstr);//, rowAdj);
|
||||
break;
|
||||
case "{TITLE&UNIT}":
|
||||
case "[TITLE&UNIT]":
|
||||
|
@ -990,6 +990,8 @@ namespace Volian.Print.Library
|
||||
{
|
||||
// If the flag is 0 or 1, just put the end message out right below this vlnParagraph:
|
||||
float msg_yLocation = CalculateYLocation(yPageStart - YBottomMost, yTopMargin);
|
||||
if (MyPageHelper.YMultiplier < 1)
|
||||
msg_yLocation += 4;// Robinson - if the page is compressed, we need this adjustment.
|
||||
|
||||
// the following is for IP3 - it was commented out so that an update could be put on
|
||||
// before this was tested.
|
||||
|
Loading…
x
Reference in New Issue
Block a user