From 6c7f7c00fee2f6c4baa684403dcda19bf4e59e1c Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 1 Feb 2013 14:51:04 +0000 Subject: [PATCH] --- PROMS/fmtxml/AppendPlantSpecific.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/PROMS/fmtxml/AppendPlantSpecific.cs b/PROMS/fmtxml/AppendPlantSpecific.cs index 57397671..26674cc3 100644 --- a/PROMS/fmtxml/AppendPlantSpecific.cs +++ b/PROMS/fmtxml/AppendPlantSpecific.cs @@ -538,6 +538,13 @@ namespace fmtxml case "SHE.DOC": AddSheDOC(ref dcstyles); break; + // in Wolf Creek single column, the Table Of Contents document style was not included in the + // count of pages for the automatic Table Of Contents. This page should be counted in the + // page count when doing the automatic ToC so that page numbers in Toc Match page numbers + // in the document: + case "WCN1.DOC": + AddWCN1Doc(ref dcstyles); + break; } } @@ -565,6 +572,12 @@ namespace fmtxml dcstyles.DcStyles[2].numberingsequence = 1; // count this section with total document page count } + public void AddWCN1Doc(ref DocStyles dcstyles) + { + // remove the 'DontCountInTabOfCont' flag on the cover page so that page counts in the + // auto table of contents will be correct. + dcstyles.DcStyles[3].DocStructStyle.DocStyle = dcstyles.DcStyles[3].DocStructStyle.DocStyle.Replace(", DontCountInTabOfCont",""); + } #endregion } public partial class RtfToSvg