Turn on indent of sub-sections in Table of Contents. Count the pages of the Cover, List of Effective Pages, and Table of Contents when generating the Table of Contents.

Put a page number for the Valve List sections in the Table of Contents
Fix the bolded numbers problem in the Table of Contents
This commit is contained in:
John Jenko 2014-10-30 16:40:24 +00:00
parent 09c88e8948
commit 6f1d41879f
4 changed files with 8 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -512,8 +512,10 @@ namespace Volian.Print.Library
{
PageCount pc = MyPageHelper.MyTOCPageCounts[tocKey];
if (pc.Total == 0)
{
pc.Total = MyPageHelper.CurrentTOCPageNumber + 1;
pc.DrawTemplates();
pc.DrawTemplates();
}
}
}
}
@ -2421,9 +2423,11 @@ namespace Volian.Print.Library
float addExtraSpace = 0;
if (MyItemInfo.FormatStepData != null && MyItemInfo.ActiveFormat.MyStepSectionLayoutData.CustomSpacing)
addExtraSpace = MyItemInfo.FormatStepData.StepLayoutData.STExtraSpace ?? 0;
if (MyItemInfo.MyParent != null && MyItemInfo.MyParent.FormatStepData != null &&
MyItemInfo.MyParent.FormatStepData.Type != "TitleWithTextRight")
addExtraSpace = (MyItemInfo.FormatStepData == null) ? 0 : MyItemInfo.FormatStepData.StepLayoutData.STExtraSpace ?? 0;
//if (MyItemInfo.MyParent != null && MyItemInfo.MyParent.FormatStepData != null &&
// MyItemInfo.MyParent.FormatStepData.Type != "TitleWithTextRight")
// addExtraSpace = (MyItemInfo.FormatStepData == null) ? 0 : MyItemInfo.FormatStepData.StepLayoutData.STExtraSpace ?? 0;
if (MyItemInfo.MyParent != null && MyItemInfo.MyParent.FormatStepData != null)
addExtraSpace = (MyItemInfo.MyParent.FormatStepData.Type == "TitleWithTextRight" || MyItemInfo.FormatStepData == null) ? 0 : MyItemInfo.FormatStepData.StepLayoutData.STExtraSpace ?? 0;
// If a high level step, the 16bit code uses the value of the extra space
// from the high level step format regardless of what type of high level step it is:
// Added check for UseSTExtraRealValue, if set, we want to use what is set for the specific step type