Added support for VCSDEV and SUM format files for VCSummer
This commit is contained in:
parent
f03615dd7d
commit
924e5c024e
@ -75,6 +75,12 @@ namespace fmtxml
|
|||||||
case "IP2.FMT":
|
case "IP2.FMT":
|
||||||
AddIP2fmt(ref fmtdata);
|
AddIP2fmt(ref fmtdata);
|
||||||
break;
|
break;
|
||||||
|
case "SUM.FMT":
|
||||||
|
AddSUMfmt(ref fmtdata);
|
||||||
|
break;
|
||||||
|
case "VCSDEV.FMT":
|
||||||
|
AddVCSDEVfmt(ref fmtdata);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1056,6 +1062,12 @@ namespace fmtxml
|
|||||||
case "RGE.PAG":
|
case "RGE.PAG":
|
||||||
AddRGEPage(ref pgstyles);
|
AddRGEPage(ref pgstyles);
|
||||||
break;
|
break;
|
||||||
|
case "VCSDEV.PAG":
|
||||||
|
AddVCSDEVfmt(ref pgstyles);
|
||||||
|
break;
|
||||||
|
case "SUM.PAG":
|
||||||
|
AddSUMfmt(ref pgstyles);
|
||||||
|
break;
|
||||||
/* Under Development
|
/* Under Development
|
||||||
case "TP.PAG":
|
case "TP.PAG":
|
||||||
AddTPPage(ref pgstyles);
|
AddTPPage(ref pgstyles);
|
||||||
@ -1738,6 +1750,12 @@ namespace fmtxml
|
|||||||
case "IP2.DOC":
|
case "IP2.DOC":
|
||||||
AddIp2DOC(ref dcstyles);
|
AddIp2DOC(ref dcstyles);
|
||||||
break;
|
break;
|
||||||
|
case "VCSDEV.DOC":
|
||||||
|
AddVCSDEVDOC(ref dcstyles);
|
||||||
|
break;
|
||||||
|
case "SUM.DOC":
|
||||||
|
AddSUMDOC(ref dcstyles);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -516,6 +516,9 @@ public struct CheckOffData
|
|||||||
public int UseCheckOffsIn;
|
public int UseCheckOffsIn;
|
||||||
public float CheckOffAdjustment;
|
public float CheckOffAdjustment;
|
||||||
public float XLocation;
|
public float XLocation;
|
||||||
|
//for VCSummer by jcb
|
||||||
|
public float RelXLocation;
|
||||||
|
//end for VCSummer by jcb
|
||||||
/* Format flags ... */
|
/* Format flags ... */
|
||||||
public string DropCheckOff;
|
public string DropCheckOff;
|
||||||
public string CheckOffOnHLSOnly;
|
public string CheckOffOnHLSOnly;
|
||||||
@ -723,6 +726,10 @@ public struct StepSectionLayout
|
|||||||
public string NonLinkedStepNumber;
|
public string NonLinkedStepNumber;
|
||||||
public string NonLinkedCautNoteNumber;
|
public string NonLinkedCautNoteNumber;
|
||||||
public string NonLinkedRNONumber;
|
public string NonLinkedRNONumber;
|
||||||
|
//for VCSummer by jcb
|
||||||
|
public float SingleColumnRNOIndent;
|
||||||
|
public bool RNOWidthSameAsHighParent;
|
||||||
|
//end for VCSummer by jcb
|
||||||
/* Format flags moved to here.... */
|
/* Format flags moved to here.... */
|
||||||
public string Dev_Format;
|
public string Dev_Format;
|
||||||
public string EnhancedShortFormDev;
|
public string EnhancedShortFormDev;
|
||||||
@ -999,6 +1006,10 @@ public struct Layout
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public struct Tab
|
public struct Tab
|
||||||
{
|
{
|
||||||
|
//for VCSummer by jcb
|
||||||
|
public bool RNOExcludeMacros;
|
||||||
|
public float MacroTabAdjust;
|
||||||
|
//end for VCSummer by jcb
|
||||||
public string IdentEdit;
|
public string IdentEdit;
|
||||||
public string Ident;
|
public string Ident;
|
||||||
public string IdentAltPrint;
|
public string IdentAltPrint;
|
||||||
|
@ -45,6 +45,12 @@ public struct DocStyles
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public struct DocStyle
|
public struct DocStyle
|
||||||
{
|
{
|
||||||
|
//for VCSummer by jcb
|
||||||
|
public float CenterLineX;
|
||||||
|
public float CenterLineYTop;
|
||||||
|
public float CenterLineYBottom;
|
||||||
|
public bool LandscapePageList;
|
||||||
|
//end for VCSummer by jcb
|
||||||
public string Name;
|
public string Name;
|
||||||
public short Index;
|
public short Index;
|
||||||
public short pagestyle; // Index into page style array
|
public short pagestyle; // Index into page style array
|
||||||
|
68
PROMS/fmtxml/PlantSpecific_Summer.cs
Normal file
68
PROMS/fmtxml/PlantSpecific_Summer.cs
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using System.Xml;
|
||||||
|
|
||||||
|
namespace fmtxml
|
||||||
|
{
|
||||||
|
public partial class FmtFileToXml
|
||||||
|
{
|
||||||
|
private void AddVCSDEVfmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddSUMfmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.ProcData.CheckOffData.RelXLocation = 5;
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.SingleColumnRNOIndent = 30;
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.DoSTExtraAtTop = "False";
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthSameAsHighParent = true;
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectEditData.ColRScreen = "0,0,0";
|
||||||
|
fmtdata.StepData[2].StepLayoutData.STExtraSpace = "12";
|
||||||
|
fmtdata.StepData[3].TabData.RNOIdent = " {numeric}";
|
||||||
|
fmtdata.StepData[3].TabData.RNOExcludeMacros = true;
|
||||||
|
fmtdata.StepData[3].TabData.MacroTabAdjust = -6;
|
||||||
|
fmtdata.StepData[8].StepLayoutData.STBoxindex = null;
|
||||||
|
fmtdata.StepData[40].SpaceDouble = "True";
|
||||||
|
fmtdata.StepData[40].StepLayoutData.STExtraSpace = "0";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public partial class FmtToXml
|
||||||
|
{
|
||||||
|
private void AddVCSDEVfmt(ref PageStyles pgstyles)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private void AddSUMfmt(ref PageStyles pgstyles)
|
||||||
|
{
|
||||||
|
pgstyles.PgStyles[4].Items[1].Style.FontSize = "14";
|
||||||
|
pgstyles.PgStyles[4].Items[2].Style.FontSize = "14";
|
||||||
|
}
|
||||||
|
private void AddVCSDEVDOC(ref DocStyles dcstyles)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private void AddSUMDOC(ref DocStyles dcstyles)
|
||||||
|
{
|
||||||
|
dcstyles.DcStyles[0].CenterLineX = 261.9F;
|
||||||
|
dcstyles.DcStyles[0].CenterLineYTop = 642.2F;
|
||||||
|
dcstyles.DcStyles[0].CenterLineYBottom = 49.2F;
|
||||||
|
dcstyles.DcStyles[0].EndString = " - - - - - - - - - - - - - - - - \n - - - - - - - - - - - - - - | End of %-8s | - - - - - - - - - - - - \n - - - - - - - - - - - - - - - -";
|
||||||
|
dcstyles.DcStyles[1].CenterLineX = 261.9F;
|
||||||
|
dcstyles.DcStyles[1].CenterLineYTop = 678.2F;
|
||||||
|
dcstyles.DcStyles[1].CenterLineYBottom = 49.2F;
|
||||||
|
dcstyles.DcStyles[1].EndString = " - - - - - - - - - - - - - - - - \n - - - - - - - - - - - - - - | End of %-8s | - - - - - - - - - - - - \n - - - - - - - - - - - - - - - -";
|
||||||
|
dcstyles.DcStyles[2].CenterLineX = 261.9F;
|
||||||
|
dcstyles.DcStyles[2].CenterLineYTop = 678.2F;
|
||||||
|
dcstyles.DcStyles[2].CenterLineYBottom = 49.2F;
|
||||||
|
dcstyles.DcStyles[2].FooterLen = 0;
|
||||||
|
dcstyles.DcStyles[3].PageWidth = 612.96F;
|
||||||
|
dcstyles.DcStyles[4].PageWidth = 612.96F;
|
||||||
|
dcstyles.DcStyles[5].PageWidth = 612.96F;
|
||||||
|
dcstyles.DcStyles[7].LandscapePageList = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public partial class RtfToSvg
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -26,7 +26,7 @@
|
|||||||
<xsl:apply-templates select="SpecialStepsFoldout"/>
|
<xsl:apply-templates select="SpecialStepsFoldout"/>
|
||||||
<xsl:apply-templates select="UndSpecialStepsFoldout"/>
|
<xsl:apply-templates select="UndSpecialStepsFoldout"/>
|
||||||
<xsl:apply-templates select="pagestyle"/>
|
<xsl:apply-templates select="pagestyle"/>
|
||||||
<xsl:apply-templates select="dstyle|DocStructStyle|TopMargin|ContStyle|EndStyle|FinalMsg"/>
|
<xsl:apply-templates select="dstyle|DocStructStyle|TopMargin|ContStyle|EndStyle|FinalMsg|CenterLineX|CenterLineYTop|CenterLineYBottom|LandscapePageList"/>
|
||||||
</DocStyle>
|
</DocStyle>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="numberingsequence">
|
<xsl:template match="numberingsequence">
|
||||||
@ -39,7 +39,35 @@
|
|||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="IsStepSection">
|
<xsl:template match="CenterLineX">
|
||||||
|
<xsl:if test=".!=0">
|
||||||
|
<xsl:attribute name="CenterLineX">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:template>
|
||||||
|
<xsl:template match="CenterLineYTop">
|
||||||
|
<xsl:if test=".!=0">
|
||||||
|
<xsl:attribute name="CenterLineYTop">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:template>
|
||||||
|
<xsl:template match="CenterLineYBottom">
|
||||||
|
<xsl:if test=".!=0">
|
||||||
|
<xsl:attribute name="CenterLineYBottom">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:template>
|
||||||
|
<xsl:template match="LandscapePageList">
|
||||||
|
<xsl:if test=".!='false'">
|
||||||
|
<xsl:attribute name="LandscapePageList">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:template>
|
||||||
|
<xsl:template match="IsStepSection">
|
||||||
<xsl:attribute name="IsStepSection"><xsl:value-of select="."/>
|
<xsl:attribute name="IsStepSection"><xsl:value-of select="."/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user