F2021-026: Double thick line box around Warning Message
F2021-025: Remove blank line between last Note/Caution/Warning & bottom box F2021-033: No blank line between HLS and its first sub-step and fix sub-step tabs Add format flags for Barakah (F2021-026, 025 & 033) F2021-026: Draw double thick line box (for Barakah) F2021-025: Remove blank line between last Note/Caution/Warning & bottom box (BNPP1)
This commit is contained in:
@@ -5280,6 +5280,17 @@ namespace Volian.Print.Library
|
||||
ItemInfo chld = MyItemInfo.FirstChild(E_FromType.Step);
|
||||
if (chld != null && chld.MyContent.Type == MyItemInfo.MyContent.Type) return 0;
|
||||
}
|
||||
// F2021-033: No blank line between hls and its first substep:
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.NoBlankHlsAndFirstSub && MyItemInfo.IsHigh)
|
||||
{
|
||||
if (MyItemInfo.Steps != null && MyItemInfo.Steps.Count > 0) return 0;
|
||||
}
|
||||
// F2021-025: Barakah single column no blank line between last Note/Caution/Warning text and bottom line of box
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.NoBlankLastNoteCautionWarn && (MyItemInfo.IsCaution || MyItemInfo.IsNote))
|
||||
{
|
||||
if ((MyItemInfo.NextItem == null) || (MyItemInfo.MyContent.Type != MyItemInfo.NextItem.MyContent.Type)) return 0;
|
||||
}
|
||||
|
||||
if (MyItemInfo.Ordinal % everyNLines == 0 || MyItemInfo.NextItem == null) return SixLinesPerInch;
|
||||
// If the next table child is a figure, equation or a visio drawing add a blank line
|
||||
if (MyItemInfo.Tables != null && MyItemInfo.Tables.Count > 0 && MyItemInfo.Tables[0].MyContent.MyGrid == null) return SixLinesPerInch;
|
||||
|
Reference in New Issue
Block a user