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.ChangeBarData.FixedChangeColumn = 91; fmtdata.ProcData.TitleLength = 53; fmtdata.ProcData.CheckOffData.RelXLocation = 5; fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "460,204,126"; fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "460,204,126"; fmtdata.SectData.SectionNumber.Pos = 0; fmtdata.SectData.SectionNumber.Just = "PSCenter"; fmtdata.SectData.SectionNumber.Font.FontFamily = "Letter Gothic Tall"; fmtdata.SectData.SectionNumber.Font.FontStyle = "None"; fmtdata.SectData.SectionNumber.Font.CPI = "12.5"; fmtdata.SectData.SectionHeader.Pos = 0; fmtdata.SectData.SectionHeader.Just = "PSCenter"; fmtdata.SectData.SectionHeader.Font.FontFamily = "Letter Gothic Tall"; fmtdata.SectData.SectionHeader.Font.FontStyle = "Underline"; fmtdata.SectData.SectionHeader.Font.CPI = "12.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; // Caution fmtdata.StepData[6].TabData.Bullet.Separate = "True"; fmtdata.StepData[6].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[6].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[6].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[6].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[6].TabData.Bullet.Font.CPI = "12.5"; // Note fmtdata.StepData[7].TabData.Bullet.Separate = "True"; fmtdata.StepData[7].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[7].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[7].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[7].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[7].TabData.Bullet.Font.CPI = "12.5"; // Table fmtdata.StepData[8].StepLayoutData.STBoxindex = null; // LossOfAC fmtdata.StepData[18].StepEditData.TypeMenu.MenuItem = "Un-Numbered High Level Step"; fmtdata.StepData[18].TabData.IdentEdit = ""; fmtdata.StepData[18].TabData.Ident = ""; fmtdata.StepData[18].TabData.RNOIdentEdit = ""; fmtdata.StepData[18].TabData.RNOIdent = ""; fmtdata.StepData[18].TabData.Justify = "None"; // Caution 1 fmtdata.StepData[20].TabData.Bullet.Separate = "True"; fmtdata.StepData[20].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[20].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[20].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[20].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[20].TabData.Bullet.Font.CPI = "12.5"; // Caution 2 fmtdata.StepData[21].TabData.IsTransition = true; fmtdata.StepData[21].TabData.Bullet.Separate = "True"; fmtdata.StepData[21].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[21].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[21].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[21].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[21].TabData.Bullet.Font.CPI = "12.5"; // Note 1 fmtdata.StepData[22].TabData.Bullet.Separate = "True"; fmtdata.StepData[22].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[22].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[22].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[22].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[22].TabData.Bullet.Font.CPI = "12.5"; // Note 2 fmtdata.StepData[23].TabData.IsTransition = true; fmtdata.StepData[23].TabData.Bullet.Separate = "True"; fmtdata.StepData[23].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[23].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[23].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[23].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[23].TabData.Bullet.Font.CPI = "12.5"; // Note 3 fmtdata.StepData[26].TabData.Bullet.Separate = "True"; fmtdata.StepData[26].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[26].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[26].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[26].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[26].TabData.Bullet.Font.CPI = "12.5"; // Caution 3 fmtdata.StepData[27].TabData.Bullet.Separate = "True"; fmtdata.StepData[27].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[27].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[27].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[27].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[27].TabData.Bullet.Font.CPI = "12.5"; // Note 4 fmtdata.StepData[28].TabData.Bullet.Separate = "True"; fmtdata.StepData[28].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[28].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[28].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[28].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[28].TabData.Bullet.Font.CPI = "12.5"; // Caution 4 fmtdata.StepData[29].TabData.Bullet.Separate = "True"; fmtdata.StepData[29].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[29].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[29].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[29].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[29].TabData.Bullet.Font.CPI = "12.5"; // Note 5 fmtdata.StepData[32].TabData.Bullet.Separate = "True"; fmtdata.StepData[32].TabData.Bullet.Font = new VE_Font(); fmtdata.StepData[32].TabData.Bullet.Font.FontFamily = "Letter Gothic Tall"; fmtdata.StepData[32].TabData.Bullet.Font.FontSize = "10"; fmtdata.StepData[32].TabData.Bullet.Font.FontStyle = "none"; fmtdata.StepData[32].TabData.Bullet.Font.CPI = "12.5"; 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"; // add lower cased versions to replacewords Array.Resize(ref fmtdata.SectData.ReplaceStrData, fmtdata.SectData.ReplaceStrData.Length + 20); fmtdata.SectData.ReplaceStrData[42].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[42].ReplaceWord = "any"; fmtdata.SectData.ReplaceStrData[42].ReplaceWith=@"\ul any\ulnone "; fmtdata.SectData.ReplaceStrData[43].Flag="High, RNO, Caution, Note, Table, Substep, Attach, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[43].ReplaceWord="each"; fmtdata.SectData.ReplaceStrData[43].ReplaceWith=@"\ul each\ulnone "; fmtdata.SectData.ReplaceStrData[44].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[44].ReplaceWord="all"; fmtdata.SectData.ReplaceStrData[44].ReplaceWith=@"\ul all\ulnone "; fmtdata.SectData.ReplaceStrData[45].Flag="High, RNO, Caution, Note, Table, Substep, Attach, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[45].ReplaceWord="either"; fmtdata.SectData.ReplaceStrData[45].ReplaceWith=@"\ul either\ulnone "; fmtdata.SectData.ReplaceStrData[46].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[46].ReplaceWord="eleven"; fmtdata.SectData.ReplaceStrData[46].ReplaceWith=@"\ul eleven\ulnone "; fmtdata.SectData.ReplaceStrData[47].Flag="High, RNO, Caution, Note, Table, Substep, Attach, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[47]. ReplaceWord="no"; fmtdata.SectData.ReplaceStrData[47].ReplaceWith=@"\ul no\ulnone "; fmtdata.SectData.ReplaceStrData[48].Flag="High, RNO, Caution, Note, Table, Substep, Attach, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[48].ReplaceWord="both"; fmtdata.SectData.ReplaceStrData[48].ReplaceWith=@"\ul both\ulnone "; fmtdata.SectData.ReplaceStrData[49].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[49].ReplaceWord="one"; fmtdata.SectData.ReplaceStrData[49].ReplaceWith=@"\ul one\ulnone "; fmtdata.SectData.ReplaceStrData[50].Flag="High, RNO, Caution, Note, Table, Substep, Attach, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[50].ReplaceWord="neither"; fmtdata.SectData.ReplaceStrData[50].ReplaceWith=@"\ul neither\ulnone "; fmtdata.SectData.ReplaceStrData[51].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[51].ReplaceWord="three"; fmtdata.SectData.ReplaceStrData[51].ReplaceWith=@"\ul three\ulnone "; fmtdata.SectData.ReplaceStrData[52].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[52].ReplaceWord="two"; fmtdata.SectData.ReplaceStrData[52].ReplaceWith=@"\ul two\ulnone "; fmtdata.SectData.ReplaceStrData[53].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[53].ReplaceWord="four"; fmtdata.SectData.ReplaceStrData[53].ReplaceWith=@"\ul four\ulnone "; fmtdata.SectData.ReplaceStrData[55].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[55].ReplaceWord="five"; fmtdata.SectData.ReplaceStrData[55].ReplaceWith=@"\ul five\ulnone "; fmtdata.SectData.ReplaceStrData[56].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[56].ReplaceWord="six"; fmtdata.SectData.ReplaceStrData[56].ReplaceWith=@"\ul six\ulnone "; fmtdata.SectData.ReplaceStrData[57].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[57].ReplaceWord="seven"; fmtdata.SectData.ReplaceStrData[57].ReplaceWith=@"\ul seven\ulnone "; fmtdata.SectData.ReplaceStrData[58].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[58].ReplaceWord="eight"; fmtdata.SectData.ReplaceStrData[58].ReplaceWith=@"\ul eight\ulnone "; fmtdata.SectData.ReplaceStrData[59].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[59].ReplaceWord="nine"; fmtdata.SectData.ReplaceStrData[59].ReplaceWith=@"\ul nine\ulnone "; fmtdata.SectData.ReplaceStrData[60].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[60].ReplaceWord="ten"; fmtdata.SectData.ReplaceStrData[60].ReplaceWith=@"\ul ten\ulnone "; fmtdata.SectData.ReplaceStrData[61].Flag="High, RNO, Caution, Note, Table, Substep, Attach, Setpoint, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[61].ReplaceWord="zero"; fmtdata.SectData.ReplaceStrData[61].ReplaceWith=@"\ul zero\ulnone "; fmtdata.SectData.ReplaceStrData[62].Flag="High, RNO, Caution, Note, Table, Substep, Attach, CaseInsensFirst"; fmtdata.SectData.ReplaceStrData[62].ReplaceWord="none"; fmtdata.SectData.ReplaceStrData[62].ReplaceWith=@"\ul none\ulnone "; } } 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(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(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 = 0;//-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) { /* */ } private void AddSUMDOC(ref DocStyles dcstyles) { dcstyles.DcStyles[0].CenterLineX = 261.9F; dcstyles.DcStyles[0].CenterLineYTop = 652.2F; //dcstyles.DcStyles[0].CenterLineYBottom = 49.2F; dcstyles.DcStyles[0].CenterLineYBottom = 40.2F; //dcstyles.DcStyles[0].EndString = " - - - - - - - - - - - - - - - - \n - - - - - - - - - - - - - - | End of %-8s | - - - - - - - - - - - - \n - - - - - - - - - - - - - - - -"; dcstyles.DcStyles[0].EndString = " - - - - - - - - - - - - - - - - \n - - - - - - - - - - - - - - | End of %-12s | - - - - - - - - - - - - \n - - - - - - - - - - - - - - - -"; dcstyles.DcStyles[1].CenterLineX = 261.9F; dcstyles.DcStyles[1].CenterLineYTop = 678.2F; //dcstyles.DcStyles[1].CenterLineYBottom = 49.2F; dcstyles.DcStyles[1].CenterLineYBottom = 40.2F; //dcstyles.DcStyles[1].EndString = " - - - - - - - - - - - - - - - - \n - - - - - - - - - - - - - - | End of %-8s | - - - - - - - - - - - - \n - - - - - - - - - - - - - - - -"; dcstyles.DcStyles[1].EndString = " - - - - - - - - - - - - - - - - \n - - - - - - - - - - - - - - | End of %-12s | - - - - - - - - - - - - \n - - - - - - - - - - - - - - - -"; dcstyles.DcStyles[2].CenterLineX = 261.9F; dcstyles.DcStyles[2].CenterLineYTop = 678.2F; //dcstyles.DcStyles[2].CenterLineYBottom = 49.2F; dcstyles.DcStyles[2].CenterLineYBottom = 40.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; // foldout (Step Editor) dcstyles.DcStyles[11].TopMargin = 103; //adding new single column docstyle for purpose and symptoms and //single column procedure steps section and // single column step editor attachment section Array.Resize(ref dcstyles.DcStyles, dcstyles.DcStyles.Length + 3); //jcb single column docstyle for purpose and symptoms 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 = 572.2F; //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"; //jsj single column Procedure Steps section dcstyles.DcStyles[13].Name = "Single Column Procedure Steps"; dcstyles.DcStyles[13].Index = 13; dcstyles.DcStyles[13].pagestyle = 12; dcstyles.DcStyles[13].CancelSectTitle = false; dcstyles.DcStyles[13].FooterLen = 12F; dcstyles.DcStyles[13].IsStepSection = true; dcstyles.DcStyles[13].LeftMargin = 51.84F; dcstyles.DcStyles[13].numberingsequence = 1; dcstyles.DcStyles[13].PageLength = 636; dcstyles.DcStyles[13].PageWidth = 547.2F; dcstyles.DcStyles[13].SpecialStepsFoldout = false; dcstyles.DcStyles[13].TopMargin = 108F; dcstyles.DcStyles[13].UseCheckOffs = false; dcstyles.DcStyles[13].dstyle = new VE_Font(); dcstyles.DcStyles[13].dstyle.FontFamily = "Letter Gothic Tall"; dcstyles.DcStyles[13].dstyle.FontSize = "10"; dcstyles.DcStyles[13].dstyle.FontStyle = "None"; dcstyles.DcStyles[13].dstyle.CPI = "12.5"; //jsj Attachment Steps- one Column dcstyles.DcStyles[14].Name = "Attachment Steps- One Column"; dcstyles.DcStyles[14].Index = 14; dcstyles.DcStyles[14].pagestyle = 5; dcstyles.DcStyles[14].CancelSectTitle = false; dcstyles.DcStyles[14].FooterLen = 12F; dcstyles.DcStyles[14].IsStepSection = true; dcstyles.DcStyles[14].LeftMargin = 51.84F; dcstyles.DcStyles[14].numberingsequence = 1; dcstyles.DcStyles[14].PageLength = 636; dcstyles.DcStyles[14].PageWidth = 547.2F; dcstyles.DcStyles[14].SpecialStepsFoldout = false; dcstyles.DcStyles[14].TopMargin = 108F; dcstyles.DcStyles[14].UseCheckOffs = false; dcstyles.DcStyles[14].dstyle = new VE_Font(); dcstyles.DcStyles[14].dstyle.FontFamily = "Letter Gothic Tall"; dcstyles.DcStyles[14].dstyle.FontSize = "10"; dcstyles.DcStyles[14].dstyle.FontStyle = "None"; dcstyles.DcStyles[14].dstyle.CPI = "12.5"; } } public partial class RtfToSvg { private void AddSUM(XmlDocument myDoc) { XmlDocument xdNew = new XmlDocument(); // B2 xdNew.LoadXml(" " + "" + "" + "ACTION/EXPECTED{sp}RESPONSE" + "" + "ALTERNATIVE{sp}ACTION" + ""); myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[2]); //B3 xdNew.LoadXml(" " + "" + ""); myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[3]); } } }