Modified where RNOIdent value is obtained when it is blank for RNO type items

Added checks to Pagination FindPageBreak method
Modified vlnParagraph constructor to handle HLStpSeparatorString and HLRNOStpSeparatorString properties of plant format
This commit is contained in:
Rich
2014-01-23 04:46:19 +00:00
parent 429208fca5
commit a2e9b0b66a
3 changed files with 55 additions and 12 deletions

View File

@@ -461,7 +461,8 @@ namespace Volian.Print.Library
&& myParent.ChildrenRight[0].YSize <= fullPage && myParent.ChildrenRight[0].YSize > spaceOnPage)
{
//_MyLog.WarnFormat("\r\nMyParentBreak {0},{1},{2},{3},{4}", myParent, myParent.YSize, yUpperLimit, myParent.ChildrenRight[0].YSize, spaceOnPage);
return myParent;
if(myParent != lastBreak)
return myParent;
}
// The top of this step will fit onto page (-yLocation < yWithinMargins)
float wcnChkLstBorder = myPara.MyItemInfo.MyHLS != null && myPara.MyItemInfo.MyHLS.FormatStepData.UseSmartTemplate &&
@@ -478,11 +479,13 @@ namespace Volian.Print.Library
//if (myList[stepLevel][yLocation].MyItemInfo.ItemID == 4312) Console.WriteLine("rno");
// The top of this step is more than 1/2 way down the page
if ((-yLocation + yStart) >= yLowerLimit)
return myPara;
if (myPara != lastBreak)
return myPara;
// If this item will not fit on the current page, put a page break
if (myPara.YBottom - myPara.YTop > (yUpperLimit - (-yLocation + yStart)))
return myPara;
if (myPara != lastBreak)
return myPara;
// if is a caution or note & parent is a substep and entire substep doesn't fit, break.
if ((myPara.MyItemInfo.IsNote || myPara.MyItemInfo.IsCaution) &&
!myPara.MyParent.MyItemInfo.IsHigh &&