Added support for VCSDEV and SUM format files for VCSummer

This commit is contained in:
Rich 2013-06-11 18:41:32 +00:00
parent f03615dd7d
commit 924e5c024e
6 changed files with 133 additions and 2 deletions

View File

@ -75,6 +75,12 @@ namespace fmtxml
case "IP2.FMT":
AddIP2fmt(ref fmtdata);
break;
case "SUM.FMT":
AddSUMfmt(ref fmtdata);
break;
case "VCSDEV.FMT":
AddVCSDEVfmt(ref fmtdata);
break;
}
}
@ -1056,6 +1062,12 @@ namespace fmtxml
case "RGE.PAG":
AddRGEPage(ref pgstyles);
break;
case "VCSDEV.PAG":
AddVCSDEVfmt(ref pgstyles);
break;
case "SUM.PAG":
AddSUMfmt(ref pgstyles);
break;
/* Under Development
case "TP.PAG":
AddTPPage(ref pgstyles);
@ -1738,6 +1750,12 @@ namespace fmtxml
case "IP2.DOC":
AddIp2DOC(ref dcstyles);
break;
case "VCSDEV.DOC":
AddVCSDEVDOC(ref dcstyles);
break;
case "SUM.DOC":
AddSUMDOC(ref dcstyles);
break;
}
}

View File

@ -516,6 +516,9 @@ public struct CheckOffData
public int UseCheckOffsIn;
public float CheckOffAdjustment;
public float XLocation;
//for VCSummer by jcb
public float RelXLocation;
//end for VCSummer by jcb
/* Format flags ... */
public string DropCheckOff;
public string CheckOffOnHLSOnly;
@ -723,6 +726,10 @@ public struct StepSectionLayout
public string NonLinkedStepNumber;
public string NonLinkedCautNoteNumber;
public string NonLinkedRNONumber;
//for VCSummer by jcb
public float SingleColumnRNOIndent;
public bool RNOWidthSameAsHighParent;
//end for VCSummer by jcb
/* Format flags moved to here.... */
public string Dev_Format;
public string EnhancedShortFormDev;
@ -999,6 +1006,10 @@ public struct Layout
[Serializable]
public struct Tab
{
//for VCSummer by jcb
public bool RNOExcludeMacros;
public float MacroTabAdjust;
//end for VCSummer by jcb
public string IdentEdit;
public string Ident;
public string IdentAltPrint;

View File

@ -45,6 +45,12 @@ public struct DocStyles
[Serializable]
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 short Index;
public short pagestyle; // Index into page style array

View 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
{
}
}

View File

@ -26,7 +26,7 @@
<xsl:apply-templates select="SpecialStepsFoldout"/>
<xsl:apply-templates select="UndSpecialStepsFoldout"/>
<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>
</xsl:template>
<xsl:template match="numberingsequence">
@ -39,7 +39,35 @@
</xsl:attribute>
</xsl:if>
</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>
</xsl:template>

Binary file not shown.