This commit is contained in:
Kathy Ruffing 2013-07-29 11:58:40 +00:00
parent f459efa513
commit 2f2eebd42d

View File

@ -105,9 +105,19 @@ namespace fmtxml
case "VCSDEV.FMT":
AddVCSDEVfmt(ref fmtdata);
break;
case "CAL2.FMT":
case "CALOTO.FMT":
AddCAL2fmt(ref fmtdata);
break;
}
}
private void AddCAL2fmt(ref FormatData fmtdata)
{
fmtdata.StepData[9].TabData.Ident = " {!C0}{Section Prefix}{numeric}. ";
fmtdata.StepData[9].TabData.RNOIdent = " {!C0}{Section Prefix}. ";
}
private void AddIP3fmt(ref FormatData fmtdata)
{
fmtdata.SectData.StepSectionData.StpSectPrtData.RNOSepLineLength = 186;
@ -3456,9 +3466,39 @@ namespace fmtxml
case "FNP":
AddFNP(myDoc);
break;
case "CAL2":
AddCAL2(myDoc);
break;
case "CALOTO":
AddCALOTO(myDoc);
break;
}
}
private void AddCALOTO(XmlDocument myDoc)
{
XmlDocument xdNew = new XmlDocument();
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C22\">" +
"<text x=\"-7.3\" y=\"-11.3\" font-family=\"Courier New\" font-size=\"12\">__</text>" +
"<text x=\"-7.3\" y=\"-0.25\" font-family=\"Courier New\" font-size=\"12\">__</text>" +
"<text x=\"-23.75\" y=\"-0.85\" font-family=\"Courier New\" font-size=\"12\">#</text>" +
"</g></svg>");
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[10]);
}
private void AddCAL2(XmlDocument myDoc)
{
XmlDocument xdNew = new XmlDocument();
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C22\">" +
"<text x=\"0\" y=\"-11.3\" font-family=\"Courier New\" font-size=\"12\">__</text>" +
"<text x=\"0\" y=\"-0.25\" font-family=\"Courier New\" font-size=\"12\">__</text>" +
"<text x=\"-5.95\" y=\"-0.85\" font-family=\"Courier New\" font-size=\"12\">#</text>" +
"</g></svg>");
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[10]);
}
private void AddFNP(XmlDocument myDoc)
{
XmlDocument xdNew = new XmlDocument();