B2018-022: Added flag ‘SupInfoIncludeParTab’ to control whether parent tab is included as part of tab for supinfo

B2018-022: Use flag ‘SupInfoIncludeParTab’ to control whether parent tab is included as part of tab for supinfo
This commit is contained in:
2018-02-09 16:33:09 +00:00
parent e82b5f1adf
commit 3d37e6a61c
3 changed files with 15 additions and 1 deletions

View File

@@ -4304,7 +4304,13 @@ namespace Volian.Print.Library
else if (itemInfo.MyParent.IsNote)
strmytab = "Note";
else
strmytab = ItemInfo.GetCombinedTab(itemInfo.MyParent, itemInfo.MyParent.MyParent.CombinedTab);
{
// B2018-022: use flag to determine whether to pre-pend the parent's tab as part of the supplemental info tab
// (if the procedure tab is long, such as in Farley, the tab overwrites text in the supplemental info pages)
strmytab = itemInfo.ActiveSection.ActiveFormat.PlantFormat.FormatData.PrintData.SupInfoIncludeParTab
? ItemInfo.GetCombinedTab(itemInfo.MyParent, itemInfo.MyParent.MyParent.CombinedTab)
: itemInfo.MyTab.CleanText;
}
strmytab = strmytab.Trim();
mytab = new vlnTab(cb, this, strmytab, strmytab, localXOffset, yoff, itemInfo.MyTab.MyFont, doSectTab, StepRTB.MySymbolFontName, itemInfo.MyTab.RemovedStyleUnderline);
return mytab;