WCNCKL: Improve pagination of checklists, i.e. don’t break if 1st substep doesn’t fit on page
WCNCLK: ‘SplitText’ moved out of file & use it from RtfTools
This commit is contained in:
@@ -500,6 +500,17 @@ namespace Volian.Print.Library
|
||||
, MyItemInfo.ItemID, MyItemInfo.MyDocVersion.MyFolder.Name, MyItemInfo.ShortPath);
|
||||
break;
|
||||
}
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.WolfcreekCKLFormat)
|
||||
{
|
||||
if (!paraBreak.MyItemInfo.IsHigh // not a high level step
|
||||
&& paraBreak.MyParent.MyItemInfo.IsHigh // my parent is a hls
|
||||
&& paraBreak.MyItemInfo.MyPrevious == null // first substep
|
||||
&& paraBreak.MyParent.MyItemInfo.FormatStepData.UseSmartTemplate) // my parent has the checklist header
|
||||
{
|
||||
if (DebugPagination.IsOpen) DebugPagination.WriteLine("Breaking at parent of {0}", paraBreak.MyItemInfo.DisplayText);
|
||||
paraBreak = paraBreak.MyParent;
|
||||
}
|
||||
}
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm) // only do the following for Calvert Alarms
|
||||
{
|
||||
//if (lastBreak != null && lastBreak.MyItemInfo.InList(42656,42923)) Console.WriteLine("here");
|
||||
|
Reference in New Issue
Block a user