B2022-129: Barakah - New section type for meta section support, tabbing (location & numbering) & INITIAL header location
This commit is contained in:
parent
29348661fb
commit
146b7dd053
@ -4057,7 +4057,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (eds != null && eds.Count == 1 && eds[0].Type == 0)
|
if (eds != null && eds.Count == 1 && eds[0].Type == 0)
|
||||||
{
|
{
|
||||||
ItemInfo srcItem = ItemInfo.Get(eds[0].ItemID);
|
ItemInfo srcItem = ItemInfo.Get(eds[0].ItemID);
|
||||||
if (srcItem != null) // B2018-097 handle a null reference
|
if (srcItem != null && ((srcItem.ActiveParent as ItemInfo) != null) && ((srcItem.ActiveParent) as ItemInfo).IsStep) // B2018-097 handle a null reference
|
||||||
return ((srcItem.ActiveParent as ItemInfo).FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}") && FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}"));
|
return ((srcItem.ActiveParent as ItemInfo).FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}") && FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}"));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -4878,6 +4878,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
level++;
|
level++;
|
||||||
if (MyDocStyle != null && (MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_SkipTwoStepLevels) == E_DocStructStyle.DSS_SkipTwoStepLevels && level == 0)
|
if (MyDocStyle != null && (MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_SkipTwoStepLevels) == E_DocStructStyle.DSS_SkipTwoStepLevels && level == 0)
|
||||||
level += 2;
|
level += 2;
|
||||||
|
// B2022-129: don't indent HLS when flag is on (Barakah - single column step attachment with meta sect)
|
||||||
|
if (MyDocStyle != null && (MyDocStyle.AdjSectTitleLoc)) level--;
|
||||||
if (level < 0) level = 0;
|
if (level < 0) level = 0;
|
||||||
ProfileTimer.Pop(profileDepth);
|
ProfileTimer.Pop(profileDepth);
|
||||||
return level;
|
return level;
|
||||||
|
@ -385,6 +385,18 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
#region AdjSectTitleLoc
|
||||||
|
[Category("Miscellaneous")]
|
||||||
|
[Description("Adjust Section Title Location")]
|
||||||
|
private LazyLoad<bool> _AdjSectTitleLoc;
|
||||||
|
public bool AdjSectTitleLoc // B2022-129: don't indent HLS when flag is on (Barakah - single column step attachment with meta sect)
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return LazyLoad(ref _AdjSectTitleLoc, "@AdjSectTitleLoc");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
#region ShowAlarmPointWindowInfo
|
#region ShowAlarmPointWindowInfo
|
||||||
[Category("Miscellaneous")]
|
[Category("Miscellaneous")]
|
||||||
[Description("Show Alarm Point Table Info in Step Editor")]
|
[Description("Show Alarm Point Table Info in Step Editor")]
|
||||||
|
@ -5158,9 +5158,11 @@ namespace Volian.Print.Library
|
|||||||
// otherwise, use pagelist logic.
|
// otherwise, use pagelist logic.
|
||||||
bool usePageListCOHdr = false;
|
bool usePageListCOHdr = false;
|
||||||
|
|
||||||
if (itemInfo.IsStep)
|
// B2022-129: Barakah - Adjust the INITIAL header location, i.e. make it a pagelist item
|
||||||
|
if (itemInfo.IsStep || itemInfo.MyDocStyle.AdjSectTitleLoc)
|
||||||
|
{
|
||||||
usePageListCOHdr = true;
|
usePageListCOHdr = true;
|
||||||
|
}
|
||||||
// This checks to see if the section is starting at the top of the page.
|
// This checks to see if the section is starting at the top of the page.
|
||||||
// If it is, then we want to use PageList to print the checkoff/sighoff header
|
// If it is, then we want to use PageList to print the checkoff/sighoff header
|
||||||
// else the checkoff/signoff header will be printed across from the section title where ever it is on the page (i.e. section pagination set to continuous)
|
// else the checkoff/signoff header will be printed across from the section title where ever it is on the page (i.e. section pagination set to continuous)
|
||||||
@ -6193,9 +6195,18 @@ namespace Volian.Print.Library
|
|||||||
if (myTab != null)
|
if (myTab != null)
|
||||||
{
|
{
|
||||||
myTab.Rtf = myTab.Rtf.Replace(myTab.Text, myTab.Text.TrimStart(" ".ToCharArray()));
|
myTab.Rtf = myTab.Rtf.Replace(myTab.Text, myTab.Text.TrimStart(" ".ToCharArray()));
|
||||||
|
// B2022-129: don't indent HLS when flag is on (Barakah - single column step attachment with meta sect)
|
||||||
|
if (itemInfo.MyDocStyle.AdjSectTitleLoc)
|
||||||
|
{
|
||||||
|
myTab.XOffset = MyParent.MyTab.XOffset;
|
||||||
|
XOffset = MyParent.XOffset;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
myTab.XOffset = MyParent.XOffset;
|
myTab.XOffset = MyParent.XOffset;
|
||||||
XOffset = myTab.XOffset + MyTab.Width;
|
XOffset = myTab.XOffset + MyTab.Width;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
XOffset = MyParent.XOffset; // unnumbered hls
|
XOffset = MyParent.XOffset; // unnumbered hls
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user