
Added properties AdjustStepTransitionText and BoldTransitionExceptHLS to Trans structure for VCSummer data Added and modified formatting data for VCSummer data Added XSL processing for IsTransition, AdjustStepTransitionText and BoldTransitionExceptHLS properties for VCSummer data
187 lines
8.7 KiB
C#
187 lines
8.7 KiB
C#
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.StpSectLayData.ColRTable = "0,258,138";
|
|
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[21].TabData.IsTransition = true;
|
|
fmtdata.StepData[23].TabData.IsTransition = true;
|
|
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
|
|
fmtdata.BoxData[1].TxtWidth = 420;
|
|
fmtdata.BoxData[2].TxtWidth = 420;
|
|
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";
|
|
}
|
|
private void AddSUMOverridefmt(ref FormatData fmtdata)
|
|
{
|
|
fmtdata.StepData[2].StepLayoutData.STExtraSpace = "12";
|
|
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";
|
|
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)
|
|
{
|
|
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;
|
|
//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
|
|
{
|
|
}
|
|
}
|