This commit is contained in:
parent
ee57834d9d
commit
6c7f7c00fe
@ -538,6 +538,13 @@ namespace fmtxml
|
|||||||
case "SHE.DOC":
|
case "SHE.DOC":
|
||||||
AddSheDOC(ref dcstyles);
|
AddSheDOC(ref dcstyles);
|
||||||
break;
|
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
|
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
|
#endregion
|
||||||
}
|
}
|
||||||
public partial class RtfToSvg
|
public partial class RtfToSvg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user