This commit is contained in:
Kathy Ruffing 2012-03-30 10:51:48 +00:00
parent e14f62728e
commit f9484e05c0
2 changed files with 18 additions and 1 deletions

View File

@ -16,6 +16,12 @@ namespace fmtxml
case "TP":
AddTPFmt(ref fmtdata);
break;
case "RGE":
case "RGESAM1":
case "RGESAM2":
case "RGESMPE":
AddRGEFmt(ref fmtdata);
break;
}
}
@ -27,6 +33,17 @@ namespace fmtxml
// introduced to allow setting of the number of spaces before the tab.
fmtdata.StepData[1].CautionOrNoteSubstepIndent = "2";
}
private void AddRGEFmt(ref FormatData fmtdata)
{
// The RGE formats had a PrintPosAdjust in 16 bit on the High, Immediate, LossocAC & continuous step
// types with a value of -1 (move back one character). However, on the printed output, it printed
// as about a 1/4 of a character. This value will be set in the 32bit format file to a -2.4 in
// these step types.
fmtdata.StepData[2].StepPrintData.PosAdjust = "-2.4";
fmtdata.StepData[3].StepPrintData.PosAdjust = "-2.4";
fmtdata.StepData[9].StepPrintData.PosAdjust = "-2.4";
fmtdata.StepData[18].StepPrintData.PosAdjust = "-2.4";
}
}
public partial class RtfToSvg
{

View File

@ -2226,7 +2226,7 @@ namespace fmtxml
for (int i = 1; i < MAXSTEPS + 1; i++)
{
fmtdata.StepData[i].StepPrintData = new Print();
fmtdata.StepData[i].StepPrintData.PosAdjust = ((Int16)(RowToPoints(brFmt.ReadInt16()))).ToString();
fmtdata.StepData[i].StepPrintData.PosAdjust = ((Int16)(ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle))).ToString();
}
// NOTE a default is added for boxes for the default box for tables, if