Implement NumberWithLevel flag to create correct tabs in RNO column
add NumberWithLevel format flag Handle double spacing (flag) in Table of Contents Draw double lined box around High Level Steps (only HLS, not substep) Double Lined box; Caution & Notes xoffsets and widths for printing in column (not across page); NumberWithLevel support (xoffsets); Align1StLevSubWHLS (format flag support); XBlankW1stLevSub adds extra line after 1st substep procdesr pagelist include check for dashes in procedure number
This commit is contained in:
@@ -2597,11 +2597,24 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
try
|
||||
{
|
||||
// NumberWithLevel flag is used by BGE. It does tabbing in rno column by incrementing of rno and rno substeps
|
||||
if (FormatStepData.NumberWithLevel)
|
||||
{
|
||||
int ord = Ordinal - 1;
|
||||
string incSub = Ordinal.ToString();
|
||||
// get previous's tab & increment from it.
|
||||
if (MyParent != null && MyParent.IsRNOPart)
|
||||
ord = System.Convert.ToInt32(MyParent.MyTab.CleanText.Substring(MyParent.MyTab.CleanText.LastIndexOf(".") + 1));
|
||||
incSub = (ord + 1).ToString();
|
||||
_MyTab.CleanText = MyParent.MyTab.CleanText.Substring(0, MyParent.MyTab.CleanText.IndexOf(".") + 1) + incSub;
|
||||
_MyTab.Text = MyParent.MyTab.CleanText.Substring(0, MyParent.MyTab.Text.IndexOf(".") + 1) + incSub;
|
||||
return;
|
||||
}
|
||||
if ((((ItemInfo)ActiveParent).IsHigh && FormatStepData.NumberHighLevel) || ((!((ItemInfo)ActiveParent).IsHigh) && ((tbformat == null || tbformat == "") && (RNOLevel <= ColumnMode))))
|
||||
{
|
||||
_MyTab.CleanText = ((ItemInfo)ActiveParent).MyTab.CleanText;
|
||||
_MyTab.Text = ((ItemInfo)ActiveParent).MyTab.Text;
|
||||
_MyTab.RNOTabWidthAdjust = ((ItemInfo)ActiveParent).FormatStepData.TabData.RNOAdjustTabSize??0;
|
||||
_MyTab.RNOTabWidthAdjust = ((ItemInfo)ActiveParent).FormatStepData.TabData.RNOAdjustTabSize ?? 0;
|
||||
if (((ItemInfo)ActiveParent).MyTab.Offset != 0) _MyTab.Offset = ((ItemInfo)ActiveParent).MyTab.Offset;
|
||||
if (((ItemInfo)ActiveParent).FormatStepData.TabData.RNOExcludeMacros)
|
||||
_MyTab.Text = Regex.Replace(_MyTab.Text, "{!.+?}", " ");
|
||||
|
@@ -4125,6 +4125,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _NumberHighLevel, "@NumberHighLevel");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _NumberWithLevel;
|
||||
public bool NumberWithLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _NumberWithLevel, "@NumberWithLevel");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _OffsetTab;
|
||||
public bool OffsetTab
|
||||
{
|
||||
|
Reference in New Issue
Block a user