This commit is contained in:
parent
8602e12ea6
commit
92665a84e6
@ -109,9 +109,30 @@ namespace fmtxml
|
|||||||
case "CALOTO.FMT":
|
case "CALOTO.FMT":
|
||||||
AddCAL2fmt(ref fmtdata);
|
AddCAL2fmt(ref fmtdata);
|
||||||
break;
|
break;
|
||||||
|
case "FNP.FMT":
|
||||||
|
AddFNPfmt(ref fmtdata);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddFNPfmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "445,186,120";
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "445,186,120";
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,198,138";
|
||||||
|
fmtdata.SectData.StepSectionData.SequentialTabFormat[2].TabFormat = "#2#{seq} ";
|
||||||
|
fmtdata.SectData.StepSectionData.SequentialTabFormat[2].PrintTabFormat = "#2#{seq} ";
|
||||||
|
fmtdata.SectData.StepSectionData.SequentialTabFormat[3].TabFormat = "#2#{seq} ";
|
||||||
|
fmtdata.SectData.StepSectionData.SequentialTabFormat[3].PrintTabFormat = "#2#{seq} ";
|
||||||
|
fmtdata.StepData[6].OneLineBeforeTab = "True";
|
||||||
|
fmtdata.StepData[7].OneLineBeforeTab = "True";
|
||||||
|
fmtdata.StepData[41].TabData.Ident = "{ROMAN}. ";
|
||||||
|
fmtdata.StepData[41].TabData.RNOIdent = "{ROMAN}. ";
|
||||||
|
fmtdata.BoxData[1].End = 500;
|
||||||
|
fmtdata.BoxData[2].Start = -15;
|
||||||
|
fmtdata.BoxData[2].End = 505;
|
||||||
|
}
|
||||||
|
|
||||||
private void AddCAL2fmt(ref FormatData fmtdata)
|
private void AddCAL2fmt(ref FormatData fmtdata)
|
||||||
{
|
{
|
||||||
fmtdata.StepData[9].TabData.Ident = " {!C0}{Section Prefix}{numeric}. ";
|
fmtdata.StepData[9].TabData.Ident = " {!C0}{Section Prefix}{numeric}. ";
|
||||||
@ -3032,16 +3053,20 @@ namespace fmtxml
|
|||||||
case "IP3.Y15":
|
case "IP3.Y15":
|
||||||
AddIP315DOC(ref dcstyles);
|
AddIP315DOC(ref dcstyles);
|
||||||
break;
|
break;
|
||||||
|
case "FNP.DOC":
|
||||||
|
AddFNPDOC(ref dcstyles);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddFNPDOC(ref DocStyles dcstyles)
|
||||||
|
{
|
||||||
|
dcstyles.DcStyles[2].AlignHLSTabWithSect = true;
|
||||||
|
}
|
||||||
private void AddIP315DOC(ref DocStyles dcstyles)
|
private void AddIP315DOC(ref DocStyles dcstyles)
|
||||||
{
|
{
|
||||||
dcstyles.DcStyles[0].ContBottom = "(STEP %0d CONTINUED ON NEXT PAGE)";
|
dcstyles.DcStyles[0].ContBottom = "(STEP %0d CONTINUED ON NEXT PAGE)";
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddIP202DOC(ref DocStyles dcstyles)
|
private void AddIP202DOC(ref DocStyles dcstyles)
|
||||||
{
|
{
|
||||||
dcstyles.DcStyles[0].LeftMargin = 12;
|
dcstyles.DcStyles[0].LeftMargin = 12;
|
||||||
@ -3506,7 +3531,7 @@ namespace fmtxml
|
|||||||
{
|
{
|
||||||
XmlDocument xdNew = new XmlDocument();
|
XmlDocument xdNew = new XmlDocument();
|
||||||
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C2\">" +
|
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C2\">" +
|
||||||
"<line x1=\"-60\" y1=\"1\" x2=\"-42\" y2=\"1\" stroke=\"black\" stroke-width=\"0.75\" />" +
|
"<line x1=\"-12\" y1=\"1\" x2=\"6\" y2=\"1\" stroke=\"black\" stroke-width=\"0.75\" />" +
|
||||||
"</g></svg>");
|
"</g></svg>");
|
||||||
|
|
||||||
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]);
|
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]);
|
||||||
|
@ -76,6 +76,7 @@ public struct DocStyle
|
|||||||
public bool CancelSectTitle; // Was format flags CancelSecTitlesOnS1 & CancelSecTitlesOnS2
|
public bool CancelSectTitle; // Was format flags CancelSecTitlesOnS1 & CancelSecTitlesOnS2
|
||||||
public bool SpecialStepsFoldout; // Was format flag SpecialStepsFoldout - but put on E2 (was in 16bit code)
|
public bool SpecialStepsFoldout; // Was format flag SpecialStepsFoldout - but put on E2 (was in 16bit code)
|
||||||
public bool UndSpecialStepsFoldout; // Was format flag UndSpecialStepsFoldout - but put here on E2 only.
|
public bool UndSpecialStepsFoldout; // Was format flag UndSpecialStepsFoldout - but put here on E2 only.
|
||||||
|
public bool AlignHLSTabWithSect; // added for FNP (was in WST)
|
||||||
public short ContTopHLS; // Flag for including High Level step
|
public short ContTopHLS; // Flag for including High Level step
|
||||||
// as part of top continue message.
|
// as part of top continue message.
|
||||||
public float CTMargin; // Margin for top message
|
public float CTMargin; // Margin for top message
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
<xsl:apply-templates select="CancelSectTitle"/>
|
<xsl:apply-templates select="CancelSectTitle"/>
|
||||||
<xsl:apply-templates select="SpecialStepsFoldout"/>
|
<xsl:apply-templates select="SpecialStepsFoldout"/>
|
||||||
<xsl:apply-templates select="UndSpecialStepsFoldout"/>
|
<xsl:apply-templates select="UndSpecialStepsFoldout"/>
|
||||||
|
<xsl:apply-templates select="AlignHLSTabWithSect"/>
|
||||||
<xsl:apply-templates select="pagestyle"/>
|
<xsl:apply-templates select="pagestyle"/>
|
||||||
<xsl:apply-templates select="dstyle|DocStructStyle|TopMargin|ContStyle|EndStyle|FinalMsg|CenterLineX|CenterLineYTop|CenterLineYBottom|LandscapePageList|ShowSectionTitles"/>
|
<xsl:apply-templates select="dstyle|DocStructStyle|TopMargin|ContStyle|EndStyle|FinalMsg|CenterLineX|CenterLineYTop|CenterLineYBottom|LandscapePageList|ShowSectionTitles"/>
|
||||||
</DocStyle>
|
</DocStyle>
|
||||||
@ -106,6 +107,11 @@
|
|||||||
<xsl:value-of select="."/>
|
<xsl:value-of select="."/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
<xsl:template match="AlignHLSTabWithSect">
|
||||||
|
<xsl:attribute name="AlignHLSTabWithSect">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:template>
|
||||||
<xsl:template match="dstyle">
|
<xsl:template match="dstyle">
|
||||||
<xsl:if test="string-length(./FontFamily)+string-length(./FontSize)+string-length(./FontStyle)>0">
|
<xsl:if test="string-length(./FontFamily)+string-length(./FontSize)+string-length(./FontStyle)>0">
|
||||||
<Font>
|
<Font>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user