This commit is contained in:
parent
ebccc32e4e
commit
de7b7758c4
@ -69,9 +69,28 @@ namespace fmtxml
|
|||||||
case "IP3.X15":
|
case "IP3.X15":
|
||||||
AddIP3_15fmt(ref fmtdata);
|
AddIP3_15fmt(ref fmtdata);
|
||||||
break;
|
break;
|
||||||
|
case "IP3.FMT":
|
||||||
|
AddIP3fmt(ref fmtdata);
|
||||||
|
break;
|
||||||
|
case "IP2.FMT":
|
||||||
|
AddIP2fmt(ref fmtdata);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddIP3fmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectPrtData.RNOSepLineLength = 186;
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectPrtData.RNOSepString = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddIP2fmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.SectData.StepSectionData.IndentToken = 0;
|
||||||
|
fmtdata.StepData[9].TabData.Ident = "{!C0}{numeric}. ";
|
||||||
|
fmtdata.StepData[9].TabData.RNOIdent = "{!C0}. ";
|
||||||
|
}
|
||||||
|
|
||||||
private void AddWCNCKLFmt(ref FormatData fmtdata)
|
private void AddWCNCKLFmt(ref FormatData fmtdata)
|
||||||
{
|
{
|
||||||
fmtdata.BoxData[3].End = 518;
|
fmtdata.BoxData[3].End = 518;
|
||||||
@ -1657,8 +1676,16 @@ namespace fmtxml
|
|||||||
case "NSPBCK.DOC":
|
case "NSPBCK.DOC":
|
||||||
AddNSPBckDOC(ref dcstyles);
|
AddNSPBckDOC(ref dcstyles);
|
||||||
break;
|
break;
|
||||||
|
case "IP2.DOC":
|
||||||
|
AddIp2DOC(ref dcstyles);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddIp2DOC(ref DocStyles dcstyles)
|
||||||
|
{
|
||||||
|
dcstyles.DcStyles[0].ContTop = "";
|
||||||
|
}
|
||||||
private void AddCPLSSDDDoc(ref DocStyles dcstyles)
|
private void AddCPLSSDDDoc(ref DocStyles dcstyles)
|
||||||
{
|
{
|
||||||
dcstyles.DcStyles[2].PageWidth = 576;
|
dcstyles.DcStyles[2].PageWidth = 576;
|
||||||
@ -1806,14 +1833,28 @@ namespace fmtxml
|
|||||||
case "NSP":
|
case "NSP":
|
||||||
AddNSP(myDoc);
|
AddNSP(myDoc);
|
||||||
break;
|
break;
|
||||||
|
case "IP2":
|
||||||
|
AddIP2(myDoc);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddIP2(XmlDocument myDoc)
|
||||||
|
{
|
||||||
|
XmlDocument xdNew = new XmlDocument();
|
||||||
|
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C0\">" +
|
||||||
|
"<ellipse cx=\"-5.1\" cy=\"-4.8\" rx=\"4.25\" ry=\"4.25\" fill=\"none\" stroke=\"black\" stroke-width=\"0.55\" />\r\n" +
|
||||||
|
"<text x=\"-8.5\" y=\"0\" font-family=\"Courier New\" font-size=\"12\">*</text>\r\n" +
|
||||||
|
"</g></svg>");
|
||||||
|
|
||||||
|
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]);
|
||||||
|
}
|
||||||
|
|
||||||
private void AddWCN2(XmlDocument myDoc)
|
private void AddWCN2(XmlDocument myDoc)
|
||||||
{
|
{
|
||||||
XmlDocument xd = new XmlDocument();
|
XmlDocument xd = new XmlDocument();
|
||||||
// include the svg level so that the xmlns can be set to be the same as the generated document.
|
// include the svg level so that the xmlns can be set to be the same as the generated document.
|
||||||
xd.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"B9\">\r\n" +
|
xd.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"B9\">" +
|
||||||
"<rect x=\"4\" y=\"-3\" width=\"352.5\" height=\"120\" fill=\"none\" stroke=\"black\" stroke-width=\"1.2\" />\r\n" +
|
"<rect x=\"4\" y=\"-3\" width=\"352.5\" height=\"120\" fill=\"none\" stroke=\"black\" stroke-width=\"1.2\" />\r\n" +
|
||||||
"<line x1=\"4\" y1=\"21\" x2=\"355.5\" y2=\"21\" stroke-width=\"1.2\" />\r\n" +
|
"<line x1=\"4\" y1=\"21\" x2=\"355.5\" y2=\"21\" stroke-width=\"1.2\" />\r\n" +
|
||||||
"<line x1=\"4\" y1=\"45\" x2=\"355.5\" y2=\"45\" stroke-width=\"1.2\" />\r\n" +
|
"<line x1=\"4\" y1=\"45\" x2=\"355.5\" y2=\"45\" stroke-width=\"1.2\" />\r\n" +
|
||||||
|
@ -798,6 +798,7 @@ public struct StepSectionPrint
|
|||||||
public float ImmStepHdrCol;
|
public float ImmStepHdrCol;
|
||||||
public Int16 SecColHdrforActPMode;
|
public Int16 SecColHdrforActPMode;
|
||||||
public string RNOSepString;
|
public string RNOSepString;
|
||||||
|
public float RNOSepLineLength;
|
||||||
public string HLStpSeparatorString;
|
public string HLStpSeparatorString;
|
||||||
public string HLRNOStpSeparatorString;
|
public string HLRNOStpSeparatorString;
|
||||||
/* Format flags moved to here.... */
|
/* Format flags moved to here.... */
|
||||||
@ -5058,6 +5059,7 @@ namespace fmtxml
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
if (msctpr.RNOSepString == ssctpr.RNOSepString) subFmt.SectData.StepSectionData.StpSectPrtData.RNOSepString = null;
|
if (msctpr.RNOSepString == ssctpr.RNOSepString) subFmt.SectData.StepSectionData.StpSectPrtData.RNOSepString = null;
|
||||||
|
if (msctpr.RNOSepLineLength == ssctpr.RNOSepLineLength) subFmt.SectData.StepSectionData.StpSectPrtData.RNOSepLineLength = 0;
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++)
|
for (int i = 0; i < 10; i++)
|
||||||
if (msctstp.UnderlineTerminate[i] == ssctstp.UnderlineTerminate[i]) subFmt.SectData.StepSectionData.UnderlineTerminate[i] = null;
|
if (msctstp.UnderlineTerminate[i] == ssctstp.UnderlineTerminate[i]) subFmt.SectData.StepSectionData.UnderlineTerminate[i] = null;
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user