Added new property to DocStyle named ShowSectionTitles
Format changes including Purpose/Symptom/Entry Conditions PageStyle and DocStyle Added xsl to match ShowSectionTitles
This commit is contained in:
parent
7bc0e8846e
commit
4080ac83a5
@ -50,6 +50,7 @@ public struct DocStyle
|
||||
public float CenterLineYTop;
|
||||
public float CenterLineYBottom;
|
||||
public bool LandscapePageList;
|
||||
public bool ShowSectionTitles;
|
||||
//end for VCSummer by jcb
|
||||
public string Name;
|
||||
public short Index;
|
||||
|
@ -24,11 +24,19 @@ namespace fmtxml
|
||||
fmtdata.StepData[3].TabData.RNOExcludeMacros = true;
|
||||
fmtdata.StepData[3].TabData.MacroTabAdjust = -6;
|
||||
fmtdata.StepData[8].StepLayoutData.STBoxindex = null;
|
||||
fmtdata.TransData.TransTypeData[6].Index = 6;
|
||||
fmtdata.TransData.TransTypeData[6].TransType = 6;
|
||||
fmtdata.TransData.TransTypeData[6].TransFormat = "Step {First Step} of this procedure";
|
||||
fmtdata.TransData.TransTypeData[6].TransMenu = "Step {First Step} of this procedure";
|
||||
fmtdata.TransData.TransTypeData[6].TransUI = "ProcCur, SectMenuAny, StepFirst";
|
||||
fmtdata.StepData[21].TabData.IsTransition = true;
|
||||
fmtdata.StepData[23].TabData.IsTransition = true;
|
||||
fmtdata.TransData.AdjustStepTransitionText = true;
|
||||
fmtdata.TransData.BoldTransitionExceptHLS = true;
|
||||
//fmtdata.TransData.TransTypeData[6].Index = 6;
|
||||
//fmtdata.TransData.TransTypeData[6].TransType = 6;
|
||||
//fmtdata.TransData.TransTypeData[6].TransFormat = "Step {First Step} of this procedure";
|
||||
//fmtdata.TransData.TransTypeData[6].TransMenu = "Step {First Step} of this procedure";
|
||||
//fmtdata.TransData.TransTypeData[6].TransUI = "ProcCur, SectMenuAny, StepFirst";
|
||||
fmtdata.StepData[3].StepLayoutData.STExtraSpace = "-12345"; //this will put in a null
|
||||
fmtdata.StepData[9].StepLayoutData.STExtraSpace = "-12345"; //this will put in a null
|
||||
fmtdata.StepData[18].StepLayoutData.STExtraSpace = "-12345"; //this will put in a null
|
||||
fmtdata.StepData[41].StepLayoutData.STExtraSpace = "-12345"; //this will put in a null
|
||||
}
|
||||
private void AddSUMOverridefmt(ref FormatData fmtdata)
|
||||
{
|
||||
@ -46,9 +54,88 @@ namespace fmtxml
|
||||
{
|
||||
pgstyles.PgStyles[4].Items[1].Style.FontSize = "14";
|
||||
pgstyles.PgStyles[4].Items[2].Style.FontSize = "14";
|
||||
Array.Resize<PageStyle>(ref pgstyles.PgStyles, pgstyles.PgStyles.Length + 1);
|
||||
pgstyles.PgStyles[12].Name = "Purpose/Symptom";
|
||||
pgstyles.PgStyles[12].Index = 12;
|
||||
if (pgstyles.PgStyles[12].Items == null)
|
||||
Array.Resize<PSItem>(ref pgstyles.PgStyles[12].Items, 7);
|
||||
pgstyles.PgStyles[12].Items[0].Col = 3F;
|
||||
pgstyles.PgStyles[12].Items[0].Justify = "PSCenter";
|
||||
pgstyles.PgStyles[12].Items[0].Row = 12F;
|
||||
pgstyles.PgStyles[12].Items[0].Style = new VE_Font();
|
||||
pgstyles.PgStyles[12].Items[0].Style.CPI = "12";
|
||||
pgstyles.PgStyles[12].Items[0].Style.FontFamily = "Prestige Elite Tall";
|
||||
pgstyles.PgStyles[12].Items[0].Style.FontSize = "10";
|
||||
pgstyles.PgStyles[12].Items[0].Style.FontStyle = "None";
|
||||
pgstyles.PgStyles[12].Items[0].Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}";
|
||||
|
||||
pgstyles.PgStyles[12].Items[1].Col = 426.24F;
|
||||
pgstyles.PgStyles[12].Items[1].Justify = "PSLeft";
|
||||
pgstyles.PgStyles[12].Items[1].Row = 12F;
|
||||
pgstyles.PgStyles[12].Items[1].Style = new VE_Font();
|
||||
pgstyles.PgStyles[12].Items[1].Style.CPI = "12.5";
|
||||
pgstyles.PgStyles[12].Items[1].Style.FontFamily = "Letter Gothic Tall";
|
||||
pgstyles.PgStyles[12].Items[1].Style.FontSize = "10";
|
||||
pgstyles.PgStyles[12].Items[1].Style.FontStyle = "None";
|
||||
pgstyles.PgStyles[12].Items[1].Token = "{EOPNUM}";
|
||||
|
||||
pgstyles.PgStyles[12].Items[2].Col = 426.24F;
|
||||
pgstyles.PgStyles[12].Items[2].Justify = "PSLeft";
|
||||
pgstyles.PgStyles[12].Items[2].Row = 24F;
|
||||
pgstyles.PgStyles[12].Items[2].Style = new VE_Font();
|
||||
pgstyles.PgStyles[12].Items[2].Style.CPI = "12.5";
|
||||
pgstyles.PgStyles[12].Items[2].Style.FontFamily = "Letter Gothic Tall";
|
||||
pgstyles.PgStyles[12].Items[2].Style.FontSize = "10";
|
||||
pgstyles.PgStyles[12].Items[2].Style.FontStyle = "None";
|
||||
pgstyles.PgStyles[12].Items[2].Token = "REVISION {REV}";
|
||||
|
||||
pgstyles.PgStyles[12].Items[3].Col = 426.24F;
|
||||
pgstyles.PgStyles[12].Items[3].Justify = "PSLeft";
|
||||
pgstyles.PgStyles[12].Items[3].Row = 36F;
|
||||
pgstyles.PgStyles[12].Items[3].Style = new VE_Font();
|
||||
pgstyles.PgStyles[12].Items[3].Style.CPI = "12.5";
|
||||
pgstyles.PgStyles[12].Items[3].Style.FontFamily = "Letter Gothic Tall";
|
||||
pgstyles.PgStyles[12].Items[3].Style.FontSize = "10";
|
||||
pgstyles.PgStyles[12].Items[3].Style.FontStyle = "None";
|
||||
pgstyles.PgStyles[12].Items[3].Token = "{PS-DRAFT}";
|
||||
|
||||
pgstyles.PgStyles[12].Items[4].Col = 250.56F;
|
||||
pgstyles.PgStyles[12].Items[4].Justify = "PSCenter";
|
||||
pgstyles.PgStyles[12].Items[4].Row = 48F;
|
||||
pgstyles.PgStyles[12].Items[4].Style = new VE_Font();
|
||||
pgstyles.PgStyles[12].Items[4].Style.CPI = "12.5";
|
||||
pgstyles.PgStyles[12].Items[4].Style.FontFamily = "Letter Gothic Tall";
|
||||
pgstyles.PgStyles[12].Items[4].Style.FontSize = "10";
|
||||
pgstyles.PgStyles[12].Items[4].Style.FontStyle = "None";
|
||||
pgstyles.PgStyles[12].Items[4].Token = "{PROCTITLE}";
|
||||
|
||||
pgstyles.PgStyles[12].Items[5].Col = -23.04F;
|
||||
pgstyles.PgStyles[12].Items[5].Justify = "PSLeft";
|
||||
pgstyles.PgStyles[12].Items[5].Row = 60F;
|
||||
pgstyles.PgStyles[12].Items[5].Style = new VE_Font();
|
||||
pgstyles.PgStyles[12].Items[5].Style.CPI = "12.5";
|
||||
pgstyles.PgStyles[12].Items[5].Style.FontFamily = "Letter Gothic Tall";
|
||||
pgstyles.PgStyles[12].Items[5].Style.FontSize = "10";
|
||||
pgstyles.PgStyles[12].Items[5].Style.FontStyle = "None";
|
||||
pgstyles.PgStyles[12].Items[5].Token = "{BOX3}";
|
||||
|
||||
pgstyles.PgStyles[12].Items[6].Col = 250.56F;
|
||||
pgstyles.PgStyles[12].Items[6].Justify = "PSCenter";
|
||||
pgstyles.PgStyles[12].Items[6].Row = 756F;
|
||||
pgstyles.PgStyles[12].Items[6].Style = new VE_Font();
|
||||
pgstyles.PgStyles[12].Items[6].Style.CPI = "12.5";
|
||||
pgstyles.PgStyles[12].Items[6].Style.FontFamily = "Letter Gothic Tall";
|
||||
pgstyles.PgStyles[12].Items[6].Style.FontSize = "10";
|
||||
pgstyles.PgStyles[12].Items[6].Style.FontStyle = "None";
|
||||
pgstyles.PgStyles[12].Items[6].Token = "PAGE {PAGE} OF {OF}";
|
||||
}
|
||||
private void AddVCSDEVDOC(ref DocStyles dcstyles)
|
||||
{
|
||||
/*
|
||||
<Item Token="{SECTIONLEVELNUMBER}" Row="36" Col="426.24" Justify="PSLeft">
|
||||
<Font Family="Letter Gothic Tall" Size="10" Style="None" CPI="12.5" />
|
||||
</Item>
|
||||
*/
|
||||
}
|
||||
private void AddSUMDOC(ref DocStyles dcstyles)
|
||||
{
|
||||
@ -68,6 +155,27 @@ namespace fmtxml
|
||||
dcstyles.DcStyles[4].PageWidth = 612.96F;
|
||||
dcstyles.DcStyles[5].PageWidth = 612.96F;
|
||||
dcstyles.DcStyles[7].LandscapePageList = true;
|
||||
//jcb adding new single column docstyle for purpose and symptoms
|
||||
Array.Resize<DocStyle>(ref dcstyles.DcStyles, dcstyles.DcStyles.Length + 1);
|
||||
dcstyles.DcStyles[12].Name = "Purpose/Symptom";
|
||||
dcstyles.DcStyles[12].Index = 12;
|
||||
dcstyles.DcStyles[12].pagestyle = 12;
|
||||
dcstyles.DcStyles[12].CancelSectTitle = false;
|
||||
dcstyles.DcStyles[12].FooterLen = 12F;
|
||||
dcstyles.DcStyles[12].IsStepSection = true;
|
||||
dcstyles.DcStyles[12].LeftMargin = 51.84F;
|
||||
dcstyles.DcStyles[12].numberingsequence = 1;
|
||||
dcstyles.DcStyles[12].PageLength = 636;
|
||||
dcstyles.DcStyles[12].PageWidth = 547.2F;
|
||||
dcstyles.DcStyles[12].ShowSectionTitles = true;
|
||||
dcstyles.DcStyles[12].SpecialStepsFoldout = false;
|
||||
dcstyles.DcStyles[12].TopMargin = 108F;
|
||||
dcstyles.DcStyles[12].UseCheckOffs = false;
|
||||
dcstyles.DcStyles[12].dstyle = new VE_Font();
|
||||
dcstyles.DcStyles[12].dstyle.FontFamily = "Letter Gothic Tall";
|
||||
dcstyles.DcStyles[12].dstyle.FontSize = "10";
|
||||
dcstyles.DcStyles[12].dstyle.FontStyle = "None";
|
||||
dcstyles.DcStyles[12].dstyle.CPI = "12.5";
|
||||
}
|
||||
}
|
||||
public partial class RtfToSvg
|
||||
|
@ -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|CenterLineX|CenterLineYTop|CenterLineYBottom|LandscapePageList"/>
|
||||
<xsl:apply-templates select="dstyle|DocStructStyle|TopMargin|ContStyle|EndStyle|FinalMsg|CenterLineX|CenterLineYTop|CenterLineYBottom|LandscapePageList|ShowSectionTitles"/>
|
||||
</DocStyle>
|
||||
</xsl:template>
|
||||
<xsl:template match="numberingsequence">
|
||||
@ -67,6 +67,13 @@
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<xsl:template match="ShowSectionTitles">
|
||||
<xsl:if test=".!='false'">
|
||||
<xsl:attribute name="ShowSectionTitles">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<xsl:template match="IsStepSection">
|
||||
<xsl:attribute name="IsStepSection"><xsl:value-of select="."/>
|
||||
</xsl:attribute>
|
||||
|
Loading…
x
Reference in New Issue
Block a user