This commit is contained in:
Kathy Ruffing 2012-01-10 14:40:28 +00:00
parent f94a646632
commit feafe5958f

View File

@ -2541,11 +2541,16 @@ namespace fmtxml
AccSection accsec = new AccSection();
TOC toc = new TOC();
toc.TofCSecNumPos = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle);
toc.TofCSecTitlePos = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle);
// the toc position values are all 12 CPI regardless of font used (according to a comment in
// the wcn1 format files.
float tmpfloat1 = Convert.ToInt16(brFmt.ReadSByte());
toc.TofCSecNumPos = 72 * (tmpfloat1 / 12); // 12cpi
tmpfloat1 = Convert.ToInt16(brFmt.ReadSByte());
toc.TofCSecTitlePos = 72 * (tmpfloat1 / 12); // 12cpi
tmpbyte = brFmt.ReadByte(); // TofCSecTitlePos2
toc.TofCSecTitleLen = brFmt.ReadByte();
toc.TofCPageNumPos = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle);
tmpfloat1 = Convert.ToInt16(brFmt.ReadSByte());
toc.TofCPageNumPos = 72 * (tmpfloat1 / 12);
toc.TofCSpaceChar = brFmt.ReadByte();
toc.TofCLineSpacing = brFmt.ReadByte();
toc.Font = LoadVE_FontByte(); ;