This commit is contained in:
Kathy Ruffing 2013-02-01 14:51:04 +00:00
parent ee57834d9d
commit 6c7f7c00fe

View File

@ -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