IP2 Background indenting in Step Description Table for non-template steps
This commit is contained in:
parent
2356fbadca
commit
7a25579663
@ -3622,6 +3622,18 @@ namespace Volian.Print.Library
|
|||||||
XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin;
|
XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin;
|
||||||
return;
|
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)))
|
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;
|
float childindent = itemInfo.MyParent.FormatStepData.ChildIndent ?? 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user