C2021-015: High Level Steps in Table of Contents
C2021-015: Barakah High Level Steps in Table of Contents
This commit is contained in:
@@ -656,6 +656,26 @@ namespace Volian.Print.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (MyItemInfo.IsHigh && MyItemInfo.MyDocStyle != null && MyItemInfo.MyDocStyle.IncludeInTOC) // && (MyItemInfo.MyActiveSection.MyConfig as SectionConfig).Section_HLS_on_TOC == "Y")
|
||||
{
|
||||
// C2021-015: Barakah High Level Steps in Table of Contents
|
||||
SectionConfig sc = MyItemInfo.ActiveSection.MyConfig as SectionConfig;
|
||||
StepConfig stc = MyItemInfo.MyConfig as StepConfig;
|
||||
if ((sc != null && sc.Section_TOC != "Y") && (stc != null && stc.Step_IncludeInTOC))
|
||||
{
|
||||
string tocKey = string.Format("TOC{0}", MyItemInfo.ItemID);
|
||||
if (MyPageHelper.MyTOCPageCounts.ContainsKey(tocKey))
|
||||
{
|
||||
PageCount pc = MyPageHelper.MyTOCPageCounts[tocKey];
|
||||
if (pc.Total == 0)
|
||||
{
|
||||
pc.Total = MyPageHelper.CurrentTOCPageNumber + 1;
|
||||
pc.DrawTemplates();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!doprint) return yPageStart;
|
||||
if (_PartsLeft != null && _PartsLeft.Count > 0) yPageStart = PartsLeft.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin);
|
||||
if (_PartsRight != null && _PartsRight.Count > 0) yPageStart = PartsRight.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin);
|
||||
|
Reference in New Issue
Block a user