diff --git a/PROMS/fmtxml/AppendPlantSpecific.cs b/PROMS/fmtxml/AppendPlantSpecific.cs index d4a6b746..d47cb9f6 100644 --- a/PROMS/fmtxml/AppendPlantSpecific.cs +++ b/PROMS/fmtxml/AppendPlantSpecific.cs @@ -490,9 +490,29 @@ namespace fmtxml case "RGESAM2.DOC": AddREGSam2DOC(ref dcstyles); break; + // in shearon harris format, the fonts were set to 0 in the 16bit docstyle. + // we want them to inherit from plant format, not use the Prestige Elite (font 0) + // from 16bit, so delete those nodes: + case "SHE.DOC": + AddSheDOC(ref dcstyles); + break; } } + private void AddSheDOC(ref DocStyles dcstyles) + { + // fonts (dstyle) in DocStyles that had a '0' in the 16bit format file (she.doc), should + // inherit from the plant level in 32 bit rather than use Prestige Elite (0 -> Prestige Elite) + dcstyles.DcStyles[1].dstyle = null; + dcstyles.DcStyles[2].dstyle = null; + dcstyles.DcStyles[3].dstyle = null; + dcstyles.DcStyles[4].dstyle = null; + dcstyles.DcStyles[5].dstyle = null; + dcstyles.DcStyles[6].dstyle = null; + dcstyles.DcStyles[7].dstyle = null; + dcstyles.DcStyles[8].dstyle = null; + } + public void AddREGSam1DOC(ref DocStyles dcstyles) { dcstyles.DcStyles[4].numberingsequence = 1; // count this section with total document page count