Support for ‘PaginateOnLowerStepLevel’ pagination flag (for IP2BCK)

IP2BCK: Step Description table’s title (Cont) support and various xoffset & margin fixes
IP2BCK: Support Step Descriptions table’s title (Cont) message
IP2BCK: Implement ‘NoTabAlign’ flag so that tab aligning won’t occur for EquipmentOpt step types
This commit is contained in:
2014-10-03 13:44:46 +00:00
parent 270d5e37d8
commit f9d0c363f7
4 changed files with 59 additions and 4 deletions

View File

@@ -219,7 +219,7 @@ namespace Volian.Print.Library
if (mySize < Height) mySize = Height * MyPageHelper.YMultiplier;
}
float yExtra2 = (SixLinesPerInch - MyItemInfo.MyDocStyle.Layout.FooterLength) ?? 0;
if (KeepStepsOnPage && ySizeIncludingFirst > yWithinMargins)
if (KeepStepsOnPage && !MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.PaginateOnLowerStepLevel && ySizeIncludingFirst > yWithinMargins)
KeepStepsOnPage = false;
bool KeepWithHeader = isFirstChild && nearTheTop;
if (!ManualPageBreak && mySize + yEndMsg <= yWithinMargins + yExtra) // Don't Paginate if there is enough room, will fit on page