From 7a2557966379d8ed1fbd6129be148db488f2b698 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 8 Oct 2014 14:14:05 +0000 Subject: [PATCH] IP2 Background indenting in Step Description Table for non-template steps --- PROMS/Volian.Print.Library/vlnParagraph.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 50e1611a..e2ecc8fe 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -3622,6 +3622,18 @@ namespace Volian.Print.Library XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin; return; } + else if (itemInfo.IsStep && ((itemInfo.MyActiveSection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PageListSpBckgrnd) == E_DocStructStyle.DSS_PageListSpBckgrnd) && + itemInfo.FormatStepData != null && itemInfo.MyPrevious != null && itemInfo.MyPrevious.FormatStepData.Type == "TitleWithTextBelow") + { + // This code was needed for IP2 backgrounds so that any 'paragraph's that were at the same + // level as the 'TitleWithTextBelow's would have same left margin (xoffset) as the 'TitleWithTextBelow'. + // an example of this can be found in IP2 Backgrounds, 2-E-0, Step Description Table, Step 22, PLANT-SPECIFIC INFORMATION. + if ((colOvrd ?? 0) != 0) + XOffset = (float)colOvrd; + else + XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin; + return; + } else if (itemInfo.MyParent.FormatStepData != null && itemInfo.MyParent.FormatStepData.Type == "TitleWithTextBelow" && (!itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm || (!itemInfo.IsCaution && !itemInfo.IsNote))) { float childindent = itemInfo.MyParent.FormatStepData.ChildIndent ?? 0;