This commit is contained in:
parent
8602e12ea6
commit
92665a84e6
@ -109,9 +109,30 @@ namespace fmtxml
|
||||
case "CALOTO.FMT":
|
||||
AddCAL2fmt(ref fmtdata);
|
||||
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)
|
||||
{
|
||||
fmtdata.StepData[9].TabData.Ident = " {!C0}{Section Prefix}{numeric}. ";
|
||||
@ -3032,16 +3053,20 @@ namespace fmtxml
|
||||
case "IP3.Y15":
|
||||
AddIP315DOC(ref dcstyles);
|
||||
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)
|
||||
{
|
||||
dcstyles.DcStyles[0].ContBottom = "(STEP %0d CONTINUED ON NEXT PAGE)";
|
||||
}
|
||||
|
||||
private void AddIP202DOC(ref DocStyles dcstyles)
|
||||
{
|
||||
dcstyles.DcStyles[0].LeftMargin = 12;
|
||||
@ -3506,7 +3531,7 @@ namespace fmtxml
|
||||
{
|
||||
XmlDocument xdNew = new XmlDocument();
|
||||
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>");
|
||||
|
||||
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 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 AlignHLSTabWithSect; // added for FNP (was in WST)
|
||||
public short ContTopHLS; // Flag for including High Level step
|
||||
// as part of top continue message.
|
||||
public float CTMargin; // Margin for top message
|
||||
|
@ -25,6 +25,7 @@
|
||||
<xsl:apply-templates select="CancelSectTitle"/>
|
||||
<xsl:apply-templates select="SpecialStepsFoldout"/>
|
||||
<xsl:apply-templates select="UndSpecialStepsFoldout"/>
|
||||
<xsl:apply-templates select="AlignHLSTabWithSect"/>
|
||||
<xsl:apply-templates select="pagestyle"/>
|
||||
<xsl:apply-templates select="dstyle|DocStructStyle|TopMargin|ContStyle|EndStyle|FinalMsg|CenterLineX|CenterLineYTop|CenterLineYBottom|LandscapePageList|ShowSectionTitles"/>
|
||||
</DocStyle>
|
||||
@ -106,6 +107,11 @@
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:attribute>
|
||||
</xsl:template>
|
||||
<xsl:template match="AlignHLSTabWithSect">
|
||||
<xsl:attribute name="AlignHLSTabWithSect">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:attribute>
|
||||
</xsl:template>
|
||||
<xsl:template match="dstyle">
|
||||
<xsl:if test="string-length(./FontFamily)+string-length(./FontSize)+string-length(./FontStyle)>0">
|
||||
<Font>
|
||||
|
Loading…
x
Reference in New Issue
Block a user