B2020-116: Pagination of WCN single column
This commit is contained in:
parent
377788c314
commit
1136071e14
@ -1254,8 +1254,10 @@ namespace Volian.Print.Library
|
|||||||
//float yTopNew = paraBreak.YTopMost - YTopMost;
|
//float yTopNew = paraBreak.YTopMost - YTopMost;
|
||||||
if (JustATableThatWillFit(paraBreak, yPageSize - (myTopMsgSpace + yEndMsg)))
|
if (JustATableThatWillFit(paraBreak, yPageSize - (myTopMsgSpace + yEndMsg)))
|
||||||
paraBreak = paraBreak.ChildrenBelow[0];
|
paraBreak = paraBreak.ChildrenBelow[0];
|
||||||
// B2020-112: complicated AER/RNO. yEndMsg was accounted for twice
|
// B2020-112: complicated AER/RNO. yEndMsg was accounted for twice -> put endmsg part back in, it broke wcn and didn't affect bge
|
||||||
float ySpaceOnNextPage1 = yPageSize - (myTopMsgSpace); // + (yEndMsg == 0 ? SixLinesPerInch : 0)); // Allow for continue message and blank line.
|
// B2020-116: the 112 change broke a WCN print of single column. The end message adjustment was added back in and retested for 112 also
|
||||||
|
// and had no negative impact.
|
||||||
|
float ySpaceOnNextPage1 = yPageSize - (myTopMsgSpace + (yEndMsg == 0 ? SixLinesPerInch : 0)); // Allow for continue message and blank line.
|
||||||
ySpaceOnNextPage1 -= accountForSmartTemplateHeader;
|
ySpaceOnNextPage1 -= accountForSmartTemplateHeader;
|
||||||
// This fixes B2016-174:
|
// This fixes B2016-174:
|
||||||
// Added the check to not go into this code if on a step that needs to break. If the conditions were met, this
|
// Added the check to not go into this code if on a step that needs to break. If the conditions were met, this
|
||||||
|
@ -6646,7 +6646,9 @@ namespace Volian.Print.Library
|
|||||||
this.Add(stepLevel, new SortedDictionary<float, vlnParagraph>());
|
this.Add(stepLevel, new SortedDictionary<float, vlnParagraph>());
|
||||||
// using a negative for yLocation so that its in descending order:
|
// using a negative for yLocation so that its in descending order:
|
||||||
// B2020-112: Make various adjustments to location if there are format flags used
|
// B2020-112: Make various adjustments to location if there are format flags used
|
||||||
float adjust = para.YVeryTop - para.YTop;
|
// B2020-116: Only make the 112 change for Calvert
|
||||||
|
float adjust = 0;
|
||||||
|
if (para.MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert) adjust = para.YVeryTop - para.YTop;
|
||||||
//if (para.MyItemInfo.MyParent.IsHigh && (para.ChildrenAbove == null || para.ChildrenAbove.Count == 0))
|
//if (para.MyItemInfo.MyParent.IsHigh && (para.ChildrenAbove == null || para.ChildrenAbove.Count == 0))
|
||||||
//{
|
//{
|
||||||
// //Console.WriteLine("Adjust Add extra Line (flag) = '{0}'", para);
|
// //Console.WriteLine("Adjust Add extra Line (flag) = '{0}'", para);
|
||||||
@ -6712,7 +6714,11 @@ namespace Volian.Print.Library
|
|||||||
foreach (ParagraphLocation paraLoc in this)
|
foreach (ParagraphLocation paraLoc in this)
|
||||||
{
|
{
|
||||||
int level = paraLoc.StepLevel;
|
int level = paraLoc.StepLevel;
|
||||||
if (KeepStepsOnPage && paraLoc.MyParagraph.MyItemInfo.MyContent.Type == 20001)
|
if (KeepStepsOnPage)
|
||||||
|
{
|
||||||
|
// B2020-116: change from checking for type 20001 to looking for a non-high sequential since some
|
||||||
|
// step types were sequential but not 20001
|
||||||
|
if (!paraLoc.MyParagraph.MyItemInfo.IsHigh && paraLoc.MyParagraph.MyItemInfo.IsSequential)
|
||||||
{
|
{
|
||||||
if (DontBreakHere(paraLoc))
|
if (DontBreakHere(paraLoc))
|
||||||
//if (paraLoc.MyParagraph.MyItemInfo.MyPrevious == null) // First substep
|
//if (paraLoc.MyParagraph.MyItemInfo.MyPrevious == null) // First substep
|
||||||
@ -6720,6 +6726,7 @@ namespace Volian.Print.Library
|
|||||||
else
|
else
|
||||||
level = 1;
|
level = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// For B2015-014, some migrated data for background documents had the TitleWithTextBelow with associated paragraphs
|
// For B2015-014, some migrated data for background documents had the TitleWithTextBelow with associated paragraphs
|
||||||
// as siblings rather than children. Pagination was sometimes putting the TitleWithTextBelow on one page and the
|
// as siblings rather than children. Pagination was sometimes putting the TitleWithTextBelow on one page and the
|
||||||
// paragraphs on next. The following code checks thse types, if in enhanced documents but not the Short Form Deviations.
|
// paragraphs on next. The following code checks thse types, if in enhanced documents but not the Short Form Deviations.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user