diff --git a/PROMS/fmtxml/App.ico b/PROMS/fmtxml/App.ico deleted file mode 100644 index 3a5525fd..00000000 Binary files a/PROMS/fmtxml/App.ico and /dev/null differ diff --git a/PROMS/fmtxml/AppendPlantSpecific.cs b/PROMS/fmtxml/AppendPlantSpecific.cs deleted file mode 100644 index 4adc4966..00000000 --- a/PROMS/fmtxml/AppendPlantSpecific.cs +++ /dev/null @@ -1,1525 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - public void AddPlantSpecificOverrideInheritance(string genFileName, ref FormatData fmtdata) - { - string genName = genFileName.Substring(genFileName.LastIndexOf('\\') + 1); - //genName = genName.Substring(0, genName.IndexOf('.')); - switch (genName.ToUpper()) - { - case "SUM.FMT": - AddSUMOverridefmt(ref fmtdata); - break; - case "NSPAB.X01": - AddNSPAB_X01(ref fmtdata); - break; - case "TUEC.FMT": - AddTuecfmtOVR(ref fmtdata); - break; - } - } - - public void AddPlantSpecific(string genFileName, ref FormatData fmtdata) - { - string genName = genFileName.Substring(genFileName.LastIndexOf('\\') + 1); - //genName = genName.Substring(0, genName.IndexOf('.')); - switch (genName.ToUpper()) - { - case "TP.FMT": - AddTPFmt(ref fmtdata); - break; - case "TPBCK2.FMT": - AddTPBCK2Fmt(ref fmtdata); - break; - case "RGE.FMT": - AddRGEFmt(ref fmtdata); - break; - case "RGESAM1.FMT": - case "RGESAM2.FMT": - case "RGESMPE.FMT": - AddRGESAMGFmt(ref fmtdata); - break; - case "RGEBCK.FMT": - AddRGEBCKFmt(ref fmtdata); - break; - case "RGEBCK.X00": - AddRGEBCKX00(ref fmtdata); - break; - case "RGEDEV.FMT": - AddRGEDEVFmt(ref fmtdata); - break; - case "WCN1.FMT": - AddWCN1Fmt(ref fmtdata); - break; - case "WCN2.FMT": - AddWCN2Fmt(ref fmtdata); - break; - case "WCNCKL.FMT": - AddWCNCKLFmt(ref fmtdata); - break; - case "WCNBCK.FMT": - AddWCNBCKFmt(ref fmtdata); - break; - case "WCNOFB.FMT": - AddWCNOFBFmt(ref fmtdata); - break; - case "NSP.FMT": - AddNSPFMT(ref fmtdata); - break; - case "NSPAB.FMT": - case "NSPAB.X00": - case "NSPAB.X01": - case "NSPAB.X02": - AddNSPABFMT(ref fmtdata); - break; - case "NSP.X00": - AddNSP00FMT(ref fmtdata); - break; - case "NSPBCK.FMT": - AddNSPBCKFMT(ref fmtdata); - break; - case "NSPARP.FMT": - case "NSPARP.X00": - AddNSPARPfmt(ref fmtdata); - break; - case "NSPDEV.FMT": - AddNSPDEVFMT(ref fmtdata); - break; - case "NSPIFG.FMT": - case "NSPIFG2.FMT": - case "NSPIFG.X00": - AddNSPIFGFMT(ref fmtdata); - break; - case "NSPSAM.FMT": - AddNSPSAMFMT(ref fmtdata); - break; - case "SHE.FMT": - AddSHEfmt(ref fmtdata); - break; - case "SHESSD.FMT": - AddSHESSDfmt(ref fmtdata); - break; - case "CPLSSDD.FMT": - AddCPLSSDDfmt(ref fmtdata); - break; - case "IP3.X15": - AddIP3_15fmt(ref fmtdata); - break; - case "IP3.FMT": - AddIP3fmt(ref fmtdata); - break; - case "IP2.FMT": - AddIP2fmt(ref fmtdata); - break; - case "IP2BCK.FMT": - AddIP2BCKFmt(ref fmtdata); - break; - case "SUM.FMT": - AddSUMfmt(ref fmtdata); - break; - case "VCSDEV.FMT": - AddVCSDEVfmt(ref fmtdata); - break; - case "CAL2.FMT": - case "CALOTO.FMT": - AddCAL2fmt(ref fmtdata); - break; - case "CALBCK.FMT": - AddCALBCKfmt(ref fmtdata); - break; - case "FNP.FMT": - AddFNPfmt(ref fmtdata); - break; - case "FNP.X00": - case "FNP.X01": - AddFNP_X0x(ref fmtdata); - break; - case "FNPCAS.FMT": - AddFNPCASfmt(ref fmtdata); - break; - case "CPL.FMT": - AddCPLfmt(ref fmtdata); - break; - case "CPL.X00": - AddCPL_X00(ref fmtdata); - break; - case "CPL.X01": - AddCPL_X01(ref fmtdata); - break; - case "CPL.X02": - AddCPL_X02(ref fmtdata); - break; - case "CPL.X03": - AddCPL_X03(ref fmtdata); - break; - case "CPLRDEV.FMT": - AddCPLRDev(ref fmtdata); - break; - case "CPLA.FMT": - AddCPLA(ref fmtdata); - break; - case "CPBCK.FMT": - AddCPBCK(ref fmtdata); - break; - case "CPBCK.X00": - AddCPBCK_X00(ref fmtdata); - break; - case "CPBCK.X01": - AddCPBCK_X01(ref fmtdata); - break; - case "CPBCK2.FMT": - AddCPBCK2(ref fmtdata); - break; - case "TUEC.FMT": - AddTuecfmt(ref fmtdata); - break; - case "TUECDEV.FMT": - AddTuecDevfmt(ref fmtdata); - break; - case "MCG.FMT": - case "MCGBOX.FMT": - AddMCGfmt(ref fmtdata); - break; - case "MCGDEV.FMT": - AddCATDEVfmt(ref fmtdata); - break; - case "CAT.FMT": - case "CATBOX.FMT": - AddCATfmt(ref fmtdata); - break; - case "CATADEV.FMT": - AddCATADEVfmt(ref fmtdata); - break; - case "CATDEV.FMT": - AddCATDEVfmt(ref fmtdata); - break; - case "GEN.FMT": - AddGENfmt(ref fmtdata); - break; - case "CWE.FMT": - AddCWEfmt(ref fmtdata); - break; - case "CWE.X00": - AddCWE00fmt(ref fmtdata); - break; - case "EXCLN.FMT": - AddEXCLNfmt(ref fmtdata); - break; - case "EXCLN.X00": - AddEXCLN00fmt(ref fmtdata); - break; - case "EXCLN.X01": - AddEXCLN01fmt(ref fmtdata); - break; - case "EXEDEV.FMT": - AddEXEDEVfmt(ref fmtdata); - break; - case "WEP2.FMT": - AddWEP2fmt(ref fmtdata); - break; - case "WPB.X20": - AddWPB20fmt(ref fmtdata); - break; - case "WPB.X22": - AddWPB22fmt(ref fmtdata); - break; - case "WEPENB.FMT": - AddWEPENBFmt(ref fmtdata); - break; - case "BGEEOP.FMT": - AddBGEEOPfmt(ref fmtdata); - break; - case "BGEALN.FMT": - AddBGEALNfmt(ref fmtdata); - break; - case "OHLP.FMT": - AddOHLPfmt(ref fmtdata); - break; - } - } - - private void AddCALBCKfmt(ref FormatData fmtdata) - { - fmtdata.StepData[42].ReadOnly = "True"; - fmtdata.StepData[43].ReadOnly = "True"; - fmtdata.StepData[43].ChildIndent = "14.4"; // 2 characters at 10 cpi - fmtdata.StepData[2].TabData.IdentAltPrint = @"\ul EOP STEP:\ulnone \STEP: "; - fmtdata.StepData[2].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[6].TabData.IdentAltPrint = @"\ul EOP STEP:\ulnone \STEP: "; - fmtdata.StepData[6].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[7].TabData.IdentAltPrint = @"\ul EOP STEP:\ulnone \STEP: "; - fmtdata.StepData[7].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[6].WidthOverride = "490"; - fmtdata.StepData[7].WidthOverride = "490"; - fmtdata.StepData[24].WidthOverride = "490"; - fmtdata.StepData[2].UseOldTemplate = "True"; - fmtdata.StepData[6].UseOldTemplate = "True"; - fmtdata.StepData[7].UseOldTemplate = "True"; - fmtdata.StepData[9].UseOldTemplate = "True"; - fmtdata.StepData[40].StepLayoutData.AlignWithParentTab = "True"; - } - private void AddFNPfmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "445,186,120"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "420,186,120"; - fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = "0,186"; - fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,198,138"; - fmtdata.SectData.StepSectionData.SequentialTabFormat[2].TabFormat = "#1#{seq} "; - fmtdata.SectData.StepSectionData.SequentialTabFormat[2].PrintTabFormat = "#1#{seq} "; - fmtdata.SectData.StepSectionData.SequentialTabFormat[3].TabFormat = "#1#{seq} "; - fmtdata.SectData.StepSectionData.SequentialTabFormat[3].PrintTabFormat = "#1#{seq} "; - fmtdata.StepData[6].OneLineBeforeTab = "True"; - fmtdata.StepData[7].OneLineBeforeTab = "True"; - fmtdata.StepData[41].TabData.Ident = "{ROMAN}. "; - fmtdata.StepData[41].TabData.RNOIdent = "{ROMAN}. "; - fmtdata.BoxData[1].End = 500; - fmtdata.BoxData[2].Start = -15; - fmtdata.BoxData[2].End = 505; - fmtdata.StepData[40].AdjHighLevelTab = "60"; - fmtdata.StepData[41].AlignHLSTabWithSectOvride = "True"; - fmtdata.StepData[42].ReadOnly = "True"; - fmtdata.StepData[43].ReadOnly = "True"; - fmtdata.StepData[9].UseOldTemplate = "True"; - } - private void AddFNP_X0x(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.SequentialTabFormat[2].TabFormat = "#1#{seq} "; - fmtdata.SectData.StepSectionData.SequentialTabFormat[2].PrintTabFormat = "#1#{seq} "; - fmtdata.SectData.StepSectionData.SequentialTabFormat[3].TabFormat = "#1#{seq} "; - fmtdata.SectData.StepSectionData.SequentialTabFormat[3].PrintTabFormat = "#1#{seq} "; - - fmtdata.PrintData.DoRevDate = "True"; - fmtdata.PrintData.RevDateWithForwardSlash = "False"; - } - private void AddFNPCASfmt(ref FormatData fmtdata) - { - fmtdata.PrintData.DoRevDate = "True"; - fmtdata.PrintData.RevDateWithForwardSlash = "False"; - } - private void AddCAL2fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.SeparatorLocation = 10; - fmtdata.StepData[9].TabData.Ident = " {!C0}{Section Prefix}{numeric}. "; - fmtdata.StepData[9].TabData.RNOIdent = " {!C0}{Section Prefix}. "; - fmtdata.StepData[9].TabData.MacroList[0].LocWithXOff = "True"; - fmtdata.TransData.TransTypeData[5].TransFormat = "{Sect Num}, {Sect Title}, Step {First Step}"; - fmtdata.TransData.TransTypeData[5].TransMenu = "{Sect Num}, {Sect Title}, Step {First Step}"; - } - - private void AddIP3fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectPrtData.RNOSepLineLength = 186; - fmtdata.SectData.StepSectionData.StpSectPrtData.RNOSepString = null; - fmtdata.StepData[9].Suffix = "{ulnone} *"; - } - - private void AddIP2fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.IndentToken = 0; - fmtdata.StepData[9].TabData.Ident = "{!C0}{numeric}. "; - fmtdata.StepData[9].TabData.RNOIdent = "{!C0}. "; - } - - private void AddIP2BCKFmt(ref FormatData fmtdata) - { - /* Under development - * Turn this on when we start working on Indian Point Backgrounds - * */ - //fmtdata.TransData.TransTypeData[7].TransUI = "ProcMenu, SectDefault, StepFirst"; - } - - private void AddTPFmt(ref FormatData fmtdata) - { - /* Under development - fmtdata.SectData.StepSectionData.StpSectLayData.TableCenterPos = "146,0,0"; - * */ - // When a plant does not have the TextSubFollowsTextStyle, the 16bit code was adding two characters - // before the tab if the parent of this step is a Caution or Note. But the two characters was related - // to the spaces on the parents tab. The code was very hard to follow. This format variable was - // introduced to allow setting of the number of spaces before the tab. - fmtdata.StepData[1].CautionOrNoteSubstepIndent = "2"; - } - private void AddTPBCK2Fmt(ref FormatData fmtdata) - { - /* Under development - * Turn this on when we start working on Turkey Point Backgrounds - * */ - //fmtdata.TransData.TransTypeData[7].TransUI = "ProcMenu, SectDefault, StepFirst"; - } - private void AddRGEFmt(ref FormatData fmtdata) - { - // RGE is now call CEG - fmtdata.Name = "CEG Ginna EOP/AOP Format"; - RGEcommonAdjustments(ref fmtdata); - } - private void AddRGESAMGFmt(ref FormatData fmtdata) - { - RGEcommonAdjustments(ref fmtdata); - } - private void RGEcommonAdjustments(ref FormatData fmtdata) - { - // The RGE formats had a PrintPosAdjust in 16 bit on the High, Immediate, LossocAC & continuous step - // types with a value of -1 (move back one character). However, on the printed output, it printed - // as about a 1/4 of a character. This value will be set in the 32bit format file to a -2.4 in - // these step types. - fmtdata.StepData[2].StepPrintData.PosAdjust = "-2.4"; - fmtdata.StepData[3].StepPrintData.PosAdjust = "-2.4"; - fmtdata.StepData[9].StepPrintData.PosAdjust = "-2.4"; - fmtdata.StepData[18].StepPrintData.PosAdjust = "-2.4"; - // The RGE formats tabs for HLS were printing one character over to the left in 32 bit, except for - // immediate (index = 3). Adjust format tab data to make it match 16bit. - fmtdata.StepData[2].TabData.Ident = " {numeric} "; - fmtdata.StepData[2].TabData.IdentEdit = " {numeric} "; - fmtdata.StepData[2].TabData.RNOIdentEdit = ""; - fmtdata.StepData[2].TabData.RNOIdent = ""; - //fmtdata.StepData[2].TabData.IdentEditWid=""; - //fmtdata.StepData[2].TabData.IdentWid="18"; - //fmtdata.StepData[2].TabData.RNOIdentEditWid="18"; - //fmtdata.StepData[2].TabData.RNOIdentWid = "18"; - fmtdata.StepData[9].TabData.IdentEdit = "*{numeric} "; - fmtdata.StepData[9].TabData.Ident = "*{numeric} "; - fmtdata.StepData[9].TabData.RNOIdentEdit = "* "; - fmtdata.StepData[9].TabData.RNOIdent = "* "; - - // the following change was made because the code that supports the TStepNoFlag was not - // written when Ginna was delivered and the difference in the transition text for ranges - // did not match the 16bit but was not caught in compares. As per Paul Linn on 6/18/13 - // keep the transition text the same as for the delivery, which means that TStepNoFlag - // should be = true (the default). - fmtdata.TransData.TStepNoFlag = "True"; - - // adjust the width of the Caution and Notes - fmtdata.SectData.StepSectionData.StpSectLayData.WidT = 457; - } - private void AddRGEDEVFmt(ref FormatData fmtdata) - { - // RGE is now call CEG - fmtdata.Name = "CEG Ginna Deviation Format"; - fmtdata.TransData.TStepNoFlag = "True"; // see comment in RgeCommonAdjustments - } - private void AddRGEBCKFmt(ref FormatData fmtdata) - { - // RGE is now call CEG //\u160? - fmtdata.Name = "CEG Ginna Background Format"; - fmtdata.TPL = "0 0 title\r\n1 1 \r\n2 41 PURPOSE: \r\n2 42 BASIS:\r\n2 42 SUPPLEMENTAL INFORMATION:\r\n2 42 DEVIATION/JUSTIFICATION:\r\n2 42 REFERENCES:\r\n1 39 \xA0\r\n0 0 title\r\n1 5 \r\n2 41 PURPOSE: \r\n2 42 BASIS:\r\n2 42 SUPPLEMENTAL INFORMATION:\r\n2 42 DEVIATION/JUSTIFICATION:\r\n2 42 REFERENCES:\r\n1 39 \xA0\r\n0 0 title\r\n1 6 \r\n2 41 PURPOSE: \r\n2 42 BASIS:\r\n2 42 SUPPLEMENTAL INFORMATION:\r\n2 42 DEVIATION/JUSTIFICATION:\r\n2 42 REFERENCES:\r\n1 39 \xA0\r\n"; - // High - fmtdata.StepData[2].ColOverride = "66"; - fmtdata.StepData[2].UseOldTemplate = "True"; - // Imediate - fmtdata.StepData[3].ColOverride = "66"; - // Continuous - fmtdata.StepData[9].ColOverride = "66"; - // Loss of AC - fmtdata.StepData[18].ColOverride = "66"; - // High 5 - fmtdata.StepData[41].ColOverride = "66"; - // And - fmtdata.StepData[4].StepLayoutData.STExtraSpace = "0"; - // Explicate And - fmtdata.StepData[45].StepLayoutData.STExtraSpace = "0"; - // ContAcAnd - fmtdata.StepData[19].StepLayoutData.STExtraSpace = "0"; - // OR - fmtdata.StepData[5].StepLayoutData.STExtraSpace = "0"; - // Implicate OR - fmtdata.StepData[35].StepLayoutData.STExtraSpace = "0"; - // ContAcOR - fmtdata.StepData[46].StepLayoutData.STExtraSpace = "0"; - // Caution - fmtdata.StepData[6].UseOldTemplate = "True"; - //Note - fmtdata.StepData[7].UseOldTemplate = "True"; - // Paragraph - fmtdata.StepData[24].StepLayoutData.STExtraSpace = "0"; - // RNO - fmtdata.StepData[40].StepLayoutData.AlignWithParentTab = "True"; - fmtdata.StepData[40].ColOverride = "66"; - // TitleWithTextRight - fmtdata.StepData[42].ReadOnly = "True"; - fmtdata.StepData[42].ColOverride = "66"; - fmtdata.StepData[42].StepLayoutData.STExtraSpace = "0"; - // TitleWithTextBelow - fmtdata.StepData[43].ReadOnly = "True"; - fmtdata.StepData[43].ColOverride = "66"; - fmtdata.StepData[43].WidthOverride = "468"; - fmtdata.StepData[43].StepLayoutData.STExtraSpace = "0"; - } - private void AddRGEBCKX00(ref FormatData fmtdata) - { - // RGE is now call CEG - fmtdata.Name = "CEG Ginna Background Subformat"; - fmtdata.TransData.TStepNoFlag = "True"; // see comment in RgeCommonAdjustments - } - - private void AddSHEfmt(ref FormatData fmtdata) - { - fmtdata.ProcData.CoverTitleLength = 42; - fmtdata.ProcData.CheckOffData.CheckOffList[0].NotOnEmpty = "True"; - fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,216,144"; //"0,204,144"; - fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = "0,193,0"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "396,190,114"; //"396,192,114" - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "396,190,114"; //"396,192,114" - fmtdata.StepData[2].TabData.Ident = " {numeric}."; - fmtdata.StepData[2].TabData.RNOIdent = " ."; - fmtdata.StepData[4].TabData.RNOAdjustTabSize = 12; - fmtdata.StepData[7].TabData.Ident = @" \ul NOTE\ulnone"; - fmtdata.StepData[26].TabData.Ident = @" \ul NOTE\ulnone"; - fmtdata.StepData[6].MatchUpRNO = "False"; - fmtdata.StepData[6].MixCautionsAndNotes = "True"; - fmtdata.StepData[7].MatchUpRNO = "False"; - fmtdata.StepData[7].MixCautionsAndNotes = "True"; - fmtdata.StepData[7].TabData.NoTrim = "True"; // need this field in stepdata/tabdata. - fmtdata.StepData[9].TabData.Ident = "{asterisk} {numeric}."; - fmtdata.StepData[18].TabData.Ident = null; - fmtdata.StepData[18].TabData.RNOIdent = null; - fmtdata.StepData[23].MatchUpRNO = "True"; - fmtdata.BoxData[2].TxtWidth = 432; - fmtdata.TransData.TransTypeData[6].TransFormat = ""; // not used and not supported in code - fmtdata.TransData.TransTypeData[7].TransFormat = ""; - // tables - fmtdata.StepData[8].Font.FontFamily = "Consolas"; - fmtdata.StepData[10].Font.FontFamily = "Consolas"; - } - private void AddSHESSDfmt(ref FormatData fmtdata) - { - fmtdata.StepData[24].StepLayoutData.STExtraSpace = null; - } - private void AddCPLSSDDfmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.PMode = 0; - fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = "0,90,0"; - } - private void AddIP3_15fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.ShowSectionTitles = "False"; - fmtdata.BoxData[4].TxtStart = 36; - fmtdata.BoxData[4].TxtWidth = 426; - fmtdata.BoxData[4].BXURC = " *"; - fmtdata.BoxData[4].BXLRC = " *"; - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.Font.FontStyle = "Underline"; - fmtdata.StepData[9].Suffix = "{ulnone} *"; - fmtdata.StepData[6].TabData.IdentEdit = "CAUTION"; - fmtdata.StepData[6].TabData.Ident = "CAUTION"; - fmtdata.StepData[6].TabData.RNOIdentEdit = "CAUTION"; - fmtdata.StepData[6].TabData.RNOIdent = "CAUTION"; - fmtdata.StepData[7].TabData.IdentEdit = "NOTE"; - fmtdata.StepData[7].TabData.Ident = "NOTE"; - fmtdata.StepData[7].TabData.RNOIdentEdit = "NOTE"; - fmtdata.StepData[7].TabData.RNOIdent = "NOTE"; - fmtdata.StepData[20].TabData.IdentEdit = "CAUTION"; - fmtdata.StepData[20].TabData.Ident = "CAUTION"; - fmtdata.StepData[20].TabData.RNOIdentEdit = "CAUTION"; - fmtdata.StepData[20].TabData.RNOIdent = "CAUTION"; - fmtdata.StepData[21].TabData.IdentEdit = "CAUTION"; - fmtdata.StepData[21].TabData.Ident = "CAUTION"; - fmtdata.StepData[21].TabData.RNOIdentEdit = "CAUTION"; - fmtdata.StepData[21].TabData.RNOIdent = "CAUTION"; - fmtdata.StepData[22].TabData.IdentEdit = "NOTE"; - fmtdata.StepData[22].TabData.Ident = "NOTE"; - fmtdata.StepData[22].TabData.RNOIdentEdit = "NOTE"; - fmtdata.StepData[22].TabData.RNOIdent = "NOTE"; - fmtdata.StepData[23].TabData.IdentEdit = "NOTE"; - fmtdata.StepData[23].TabData.Ident = "NOTE"; - fmtdata.StepData[23].TabData.RNOIdentEdit = "NOTE"; - fmtdata.StepData[23].TabData.RNOIdent = "NOTE"; - fmtdata.StepData[26].TabData.IdentEdit = "NOTE"; - fmtdata.StepData[26].TabData.Ident = "NOTE"; - fmtdata.StepData[26].TabData.RNOIdentEdit = "NOTE"; - fmtdata.StepData[26].TabData.RNOIdent = "NOTE"; - fmtdata.StepData[27].TabData.IdentEdit = "CAUTION"; - fmtdata.StepData[27].TabData.Ident = "CAUTION"; - fmtdata.StepData[27].TabData.RNOIdentEdit = "CAUTION"; - fmtdata.StepData[27].TabData.RNOIdent = "CAUTION"; - fmtdata.StepData[28].TabData.IdentEdit = "NOTE"; - fmtdata.StepData[28].TabData.Ident = "NOTE"; - fmtdata.StepData[28].TabData.RNOIdentEdit = "NOTE"; - fmtdata.StepData[28].TabData.RNOIdent = "NOTE"; - fmtdata.StepData[32].TabData.IdentEdit = "NOTE"; - fmtdata.StepData[32].TabData.Ident = "NOTE"; - fmtdata.StepData[32].TabData.RNOIdentEdit = "NOTE"; - fmtdata.StepData[32].TabData.RNOIdent = "NOTE"; - } - } - public partial class FmtToXml - { - public void AddPlantSpecific(string genFileName, ref PageStyles pgstyles) - { - //string genName = genFileName.Substring(genFileName.LastIndexOf('\\') + 1); - //genName = genName.Substring(0, genName.IndexOf('.')); - //switch (genName.ToUpper()) - switch (genFileName.ToUpper()) - { - case "NSP.PAG": - AddNSPPage(ref pgstyles); - break; - case "NSP.Z00": - AddNSP00Page(ref pgstyles); - break; - case "NSPBCK.PAG": - AddNSPBckPage(ref pgstyles); - break; - case "NSPAB.PAG": - AddNSPABPage(ref pgstyles); - break; - case "NSPAB.Z00": - AddNSPABPage_Z00(ref pgstyles); - break; - case "NSPAB.Z01": - AddNSPABPage_Z01(ref pgstyles); - break; - case "NSPAB.Z02": - AddNSPABPage_Z02(ref pgstyles); - break; - case "NSPDEV.PAG": - AddNSPDEVPage(ref pgstyles); - break; - case "NSPIFG.PAG": - case "NSPIFG2.PAG": - AddNSPIFGPage(ref pgstyles); - break; - case "NSPIFG.Z00": - AddNSPIFG_00Page(ref pgstyles); - break; - case "NSPARP.PAG": - AddNSPARPPage(ref pgstyles); - break; - case "NSPARP.Z00": - AddNSPARP_00Page(ref pgstyles); - break; - case "NSPSAM.PAG": - AddNSPSAMPage(ref pgstyles); - break; - case "SHE.PAG": - AddSHEPage(ref pgstyles); - break; - case "RGESAM1.PAG": - AddRGESam1Page(ref pgstyles); - break; - case "RGE.PAG": - AddRGEPage(ref pgstyles); - break; - case "RGEBCK.PAG": - AddRGEBCKPage(ref pgstyles); - break; - case "VCSDEV.PAG": - AddVCSDEVfmt(ref pgstyles); - break; - case "SUM.PAG": - AddSUMfmt(ref pgstyles); - break; - case "CWE.PAG": - AddCWEfmt(ref pgstyles); - break; - case "CAL2.PAG": - case "CALOTO.PAG": - AddCAL2Page(ref pgstyles); - break; - case "CALBCK.PAG": - AddCALBCKPage(ref pgstyles); - break; - case "CPLRDEV.PAG": - AddCPLRDevPage(ref pgstyles); - break; - case "CPL.PAG": - AddCPLPage(ref pgstyles); - break; - case "CPLA.PAG": - AddCPLAPage(ref pgstyles); - break; - case "CPL.Z00": - case "CPL.Z01": - case "CPL.Z02": - SetRobinsonPageListFont(ref pgstyles); - break; - case "CPL.Z03": - AddCPL_Z03(ref pgstyles); - break; - case "CPBCK.PAG": - AddCPBCK(ref pgstyles); - break; - case "CPBCK.Z00": - AddCPBCK_Z00(ref pgstyles); - break; - case "CPBCK.Z01": - AddCPBCK_Z01(ref pgstyles); - break; - case "CPBCK2.PAG": - AddCPBCK2(ref pgstyles); - break; - case "TUEC.PAG": - AddTUECPage(ref pgstyles); - break; - /* Under Development - case "TP.PAG": - AddTPPage(ref pgstyles); - break; - case "TP.Z00": - AddTP00Page(ref pgstyles); - break; - * */ - case "FNP.PAG": - AddFNPPage(ref pgstyles); - break; - case "FNP.Z00": - AddFNP_00Page(ref pgstyles); - break; - case "FNP.Z01": - AddFNP_01Page(ref pgstyles); - break; - case "FNPCAS.PAG": - AddFNPCASPage(ref pgstyles); - break; - case "MCG.PAG": - case "MCGBOX.PAG": - AddMCGPage(ref pgstyles); - break; - case "CAT.PAG": - case "CATBOX.PAG": - AddCATPage(ref pgstyles); - break; - case "EXCLN.Z00": - AddEXCLN00fmt(ref pgstyles); - break; - case "WCN1.PAG": - AddWCN1Page(ref pgstyles); - break; - case "WCNBCK.PAG": - AddWCNBCKPage(ref pgstyles); - break; - case "WEPENB.PAG": - AddWEPENBPage(ref pgstyles); - break; - case "BGEEOP.PAG": - AddBGEEOPPage(ref pgstyles); - break; - case "BGEEOP.Z00": - AddBGEEOPPage_Z00(ref pgstyles); - break; - case "BGEALN.PAG": - AddBGEALNPage(ref pgstyles); - break; - } - } - - private void AddFNPCASPage(ref PageStyles pgstyles) - { - // adjust location of procedure title slightly to the right. Long section titles - // were touching left line of header box - pgstyles.PgStyles[0].Items[3].Col = 234; - } - private void AddFNP_00Page(ref PageStyles pgstyles) - { - pgstyles.PgStyles[0].Items[2].Col = 30; - pgstyles.PgStyles[1].Items[2].Col = 30; - pgstyles.PgStyles[2].Items[2].Col = 30; - pgstyles.PgStyles[3].Items[2].Col = 30; - - // adjust location of procedure title slightly to the right. Long section titles - // were touching left line of header box - pgstyles.PgStyles[0].Items[3].Col = 234; - pgstyles.PgStyles[1].Items[3].Col = 234; - pgstyles.PgStyles[2].Items[3].Col = 234; - pgstyles.PgStyles[3].Items[3].Col = 234; - } - private void AddFNP_01Page(ref PageStyles pgstyles) - { - pgstyles.PgStyles[0].Items[2].Col = 30; - pgstyles.PgStyles[1].Items[2].Col = 30; - pgstyles.PgStyles[2].Items[2].Col = 30; - - // adjust location of procedure title slightly to the right. Long section titles - // were touching left line of header box - pgstyles.PgStyles[0].Items[3].Col = 234; - pgstyles.PgStyles[1].Items[3].Col = 234; - pgstyles.PgStyles[2].Items[3].Col = 234; - } - - private void AddFNPPage(ref PageStyles pgstyles) - { - pgstyles.PgStyles[0].Items[2].Col = 30; - pgstyles.PgStyles[1].Items[2].Col = 30; - pgstyles.PgStyles[2].Items[2].Col = 30; - pgstyles.PgStyles[3].Items[2].Col = 30; - pgstyles.PgStyles[4].Items[3].Col = 30; // foldout - pgstyles.PgStyles[7].Items[2].Col = 30; // component list - pgstyles.PgStyles[8].Items[2].Col = 30; - pgstyles.PgStyles[9].Items[2].Col = 30; - pgstyles.PgStyles[10].Items[2].Col = 30; - pgstyles.PgStyles[11].Items[2].Col = 30; - - // adjust location of procedure title slightly to the right. Long section titles - // were touching left line of header box - pgstyles.PgStyles[0].Items[3].Col = 234; - pgstyles.PgStyles[1].Items[3].Col = 234; - pgstyles.PgStyles[2].Items[3].Col = 234; - pgstyles.PgStyles[3].Items[3].Col = 234; - pgstyles.PgStyles[4].Items[2].Col = 234; // foldout page - pgstyles.PgStyles[4].Items[4].Col = 234; - pgstyles.PgStyles[7].Items[3].Col = 234; - pgstyles.PgStyles[8].Items[3].Col = 234; - pgstyles.PgStyles[10].Items[3].Col = 234; - pgstyles.PgStyles[11].Items[3].Col = 234; - - pgstyles.PgStyles[4].Items[2].Row = 32; // foldout page's 'FOLDOUT PAGE' - } - - private void AddCALBCKPage(ref PageStyles pgstyles) - { - pgstyles.PgStyles[1].Items[3].Style.FontSize = "14"; - pgstyles.PgStyles[1].Items[4].Style.FontSize = "14"; - pgstyles.PgStyles[0].Items[7].Col = 518; - } - private void AddCAL2Page(ref PageStyles pgstyles) - { - pgstyles.PgStyles[6].Items[2].Col = 240; - pgstyles.PgStyles[6].Items[3].Col = 240; - pgstyles.PgStyles[6].Items[4].Col = 240; - pgstyles.PgStyles[6].Items[3].Row = 295; - pgstyles.PgStyles[6].Items[4].Row = 317; - pgstyles.PgStyles[6].Items[3].Justify = pgstyles.PgStyles[6].Items[4].Justify; - pgstyles.PgStyles[6].Items[3].Style.FontSize = "14"; - pgstyles.PgStyles[6].Items[4].Style.FontSize = "14"; - pgstyles.PgStyles[6].Items[5].Col = 240; - pgstyles.PgStyles[6].Items[6].Col = 522; - pgstyles.PgStyles[6].Items[6].Style.FontSize = "14"; - } - - private void AddSHEPage(ref PageStyles pgstyles) - { - // Procedure Steps - pgstyles.PgStyles[0].Items[1].Col = 78; // Column for BOX5 needed adjusted to match 16bit - pgstyles.PgStyles[1].Items[9].Col = 396; - pgstyles.PgStyles[2].Items[2].Col = 315; // Adjust columns on PSI items for cover page. - pgstyles.PgStyles[2].Items[3].Col = 315; - pgstyles.PgStyles[2].Items[4].Col = 315; - pgstyles.PgStyles[2].Items[5].Col = 315; - pgstyles.PgStyles[2].Items[6].Col = 315; - pgstyles.PgStyles[2].Items[7].Col = 315; - pgstyles.PgStyles[2].Items[8].Col = 315; - pgstyles.PgStyles[2].Items[9].Col = 315; - pgstyles.PgStyles[3].Items[4].Col = 477; // Adjust columns on some PSI for cover page. - pgstyles.PgStyles[3].Items[5].Col = 477; - pgstyles.PgStyles[3].Items[6].Col = 477; - pgstyles.PgStyles[3].Items[7].Col = 477; - pgstyles.PgStyles[3].Items[8].Col = 477; - pgstyles.PgStyles[3].Items[9].Col = 477; - pgstyles.PgStyles[3].Items[10].Col = 477; - pgstyles.PgStyles[3].Items[11].Col = 477; - pgstyles.PgStyles[3].Items[12].Col = 477; - pgstyles.PgStyles[3].Items[23].Col = 272; - pgstyles.PgStyles[3].Items[23].Style.CPI = "12"; - pgstyles.PgStyles[3].Items[24].Row = 426; - pgstyles.PgStyles[3].Items[24].Col = 272; - pgstyles.PgStyles[3].Items[24].Justify = "PSCenter, PSTop"; - pgstyles.PgStyles[3].Items[24].Style.CPI = "12"; - pgstyles.PgStyles[4].Items[5].Col = 414; - - // added Purpose/Symptom page/doc style - Array.Resize(ref pgstyles.PgStyles, pgstyles.PgStyles.Length + 1); - pgstyles.PgStyles[9].Name = "Purpose/Symptom"; - pgstyles.PgStyles[9].Index = 9; - if (pgstyles.PgStyles[9].Items == null) - Array.Resize(ref pgstyles.PgStyles[9].Items, 6); - pgstyles.PgStyles[9].Items[0].Col = 3F; - pgstyles.PgStyles[9].Items[0].Justify = "PSCenter"; - pgstyles.PgStyles[9].Items[0].Row = 12F; - pgstyles.PgStyles[9].Items[0].Style = new VE_Font(); - pgstyles.PgStyles[9].Items[0].Style.CPI = "12"; - pgstyles.PgStyles[9].Items[0].Style.FontFamily = "Prestige Elite Tall"; - pgstyles.PgStyles[9].Items[0].Style.FontSize = "10"; - pgstyles.PgStyles[9].Items[0].Style.FontStyle = "None"; - pgstyles.PgStyles[9].Items[0].Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - - pgstyles.PgStyles[9].Items[1].Col = 78; - pgstyles.PgStyles[9].Items[1].Justify = "PSNoHalfLine"; - pgstyles.PgStyles[9].Items[1].Row = 24; - pgstyles.PgStyles[9].Items[1].Style = new VE_Font(); - pgstyles.PgStyles[9].Items[1].Style.CPI = "12"; - pgstyles.PgStyles[9].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[9].Items[1].Style.FontSize = "11"; - pgstyles.PgStyles[9].Items[1].Style.FontStyle = "None"; - pgstyles.PgStyles[9].Items[1].Token = "{PMODEBOX}"; - - pgstyles.PgStyles[9].Items[2].Col = 237; - pgstyles.PgStyles[9].Items[2].Justify = "PSCenter"; - pgstyles.PgStyles[9].Items[2].Row = 42; - pgstyles.PgStyles[9].Items[2].Style = new VE_Font(); - pgstyles.PgStyles[9].Items[2].Style.CPI = "12"; - pgstyles.PgStyles[9].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[9].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[9].Items[2].Style.FontStyle = "Bold"; - pgstyles.PgStyles[9].Items[2].Token = "{PROCTITLE}"; - - pgstyles.PgStyles[9].Items[3].Col = -12; - pgstyles.PgStyles[9].Items[3].Justify = "PSLeft"; - pgstyles.PgStyles[9].Items[3].Row = 754; - pgstyles.PgStyles[9].Items[3].Style = new VE_Font(); - pgstyles.PgStyles[9].Items[3].Style.CPI = "12"; - pgstyles.PgStyles[9].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[9].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[9].Items[3].Style.FontStyle = "None"; - pgstyles.PgStyles[9].Items[3].Token = "EOP-{EOPNUM}"; - - pgstyles.PgStyles[9].Items[4].Col = 225; - pgstyles.PgStyles[9].Items[4].Justify = "PSCenter"; - pgstyles.PgStyles[9].Items[4].Row = 754; - pgstyles.PgStyles[9].Items[4].Style = new VE_Font(); - pgstyles.PgStyles[9].Items[4].Style.CPI = "12"; - pgstyles.PgStyles[9].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[9].Items[4].Style.FontSize = "11"; - pgstyles.PgStyles[9].Items[4].Style.FontStyle = "None"; - pgstyles.PgStyles[9].Items[4].Token = "Rev. {REV}"; - - pgstyles.PgStyles[9].Items[5].Col = 396; - pgstyles.PgStyles[9].Items[5].Justify = "PSLeft"; - pgstyles.PgStyles[9].Items[5].Row = 754; - pgstyles.PgStyles[9].Items[5].Style = new VE_Font(); - pgstyles.PgStyles[9].Items[5].Style.CPI = "12"; - pgstyles.PgStyles[9].Items[5].Style.FontFamily = "Arial"; - pgstyles.PgStyles[9].Items[5].Style.FontSize = "11"; - pgstyles.PgStyles[9].Items[5].Style.FontStyle = "None"; - pgstyles.PgStyles[9].Items[5].Token = "Page {PAGE} of {OF}"; - } - private void AddRGEPage(ref PageStyles pgstyles) - { - // Procedure Steps - pgstyles.PgStyles[0].Items[4].Col = 30; // EOPNUM - } - private void AddRGEBCKPage(ref PageStyles pgstyles) - { - // Procedure Steps - pgstyles.PgStyles[0].Items[1].Token = @"\ul STEP DESCRIPTION TABLE FOR {EOPNUM}\ulnone {CM:(Cont)}"; - // Cover page - pgstyles.PgStyles[1].Items[8].Col = 432; // REV - // Revision Page / Table of Contents - pgstyles.PgStyles[2].Items[1].Row = 738; // EOPNUM - pgstyles.PgStyles[2].Items[2].Row = 738; // REV - //Revision Page / Table of Contents (After first page) - pgstyles.PgStyles[5].Items[1].Row = 738; // EOPNUM - pgstyles.PgStyles[5].Items[2].Row = 738; // ROMANPAGE - pgstyles.PgStyles[5].Items[3].Row = 738; // REV - } - - private void AddRGESam1Page(ref PageStyles pgstyles) - { - // CoverPage - add the Revision to the pagelist - int cnt = pgstyles.PgStyles.Length + 1; - PSItem[] Fpsitms = null; - PSItem pi = new PSItem(); - pi.Style = new VE_Font(); - - pi.Token = "REVISION {REV}"; - pi.Row = 382; - pi.Col = 242; - pi.Justify = "PSCenter"; - pi.Style.FontFamily = "Courier New"; - pi.Style.FontSize = "12"; - pi.Style.CPI = "10"; - Fpsitms = new PSItem[cnt]; - pgstyles.PgStyles[3].Items.CopyTo(Fpsitms, 0); - Fpsitms[cnt - 1] = pi; - pgstyles.PgStyles[3].Items = Fpsitms; - } - - /* Under Development - // TP_ALL - private void AddTPPage(ref PageStyles pgstyles) - { - // Procedure Steps - pgstyles.PgStyles[0].Items[0].Col = -3; // {DRAFT}{MASTER}.... - pgstyles.PgStyles[0].Items[1].Col = -54; // {HEADER1} - pgstyles.PgStyles[0].Items[1].Row = -13; //{HEADER1} - pgstyles.PgStyles[0].Items[2].Col = 465; //{PAGE} - pgstyles.PgStyles[0].Items[3].Col = 45; //{EOPNUM} - pgstyles.PgStyles[0].Items[4].Col = 249; //{PROCTITLE} - pgstyles.PgStyles[0].Items[5].Col = 471; //{REV} - pgstyles.PgStyles[0].Items[6].Col = -54; //{BOX1} - pgstyles.PgStyles[0].Items[6].Row = -13; //{BOX1} - pgstyles.PgStyles[0].Items[7].Col = 255; //{FINALPAGE} - - // cover page - pgstyles.PgStyles[1].Items[2].Row = 186; //{UnitText} - pgstyles.PgStyles[1].Items[3].Row = 330; //{EOPNUM} - pgstyles.PgStyles[1].Items[3].Col = 309; //{EOPNUM} - pgstyles.PgStyles[1].Items[4].Row = 576; //{COVERTITLE1} - pgstyles.PgStyles[1].Items[4].Col = 309; //{COVERTITEL1} - pgstyles.PgStyles[1].Items[5].Row = 594; //{COVERTITLE2} - pgstyles.PgStyles[1].Items[5].Col = 309; //{COVERTITEL2} - pgstyles.PgStyles[1].Items[6].Row = 636; //"Continuous Use" - pgstyles.PgStyles[1].Items[6].Col = 309; //"Continuous Use" - pgstyles.PgStyles[1].Items[7].Row = 660; //{Box6} - pgstyles.PgStyles[1].Items[7].Col = 57; //{Box6} - pgstyles.PgStyles[1].Items[8].Row = 672; //{PS-PROCTYPE} - pgstyles.PgStyles[1].Items[8].Col = 291; //{PS-PROCTYPE} - pgstyles.PgStyles[1].Items[9].Row = 696; //{PS-RESPDEPT} - pgstyles.PgStyles[1].Items[10].Row = 708; //{PS-RESPAPP} - - //unused - Purpose, Symptoms, Reference - pgstyles.PgStyles[2].Items[0].Col = -3; // {DRAFT}{MASTER}.... - pgstyles.PgStyles[2].Items[1].Col = -54; // {HEADER1} - pgstyles.PgStyles[2].Items[1].Row = -13; //{HEADER1} - pgstyles.PgStyles[2].Items[2].Col = 447; //{PAGE} - pgstyles.PgStyles[2].Items[3].Col = 33; //{EOPNUM} - pgstyles.PgStyles[2].Items[4].Col = 249; //{PROCTITLE} - pgstyles.PgStyles[2].Items[5].Col = 459; //{REV} - pgstyles.PgStyles[2].Items[6].Col = -54; //{BOX3} - pgstyles.PgStyles[2].Items[6].Row = -13; //{BOX3} - pgstyles.PgStyles[2].Items[7].Col = 243; //{FINALPAGE} - - // Single Column Attachments - pgstyles.PgStyles[3].Items[0].Col = -3; // {DRAFT}{MASTER}.... - pgstyles.PgStyles[3].Items[1].Col = -54; // {HEADER1} - pgstyles.PgStyles[3].Items[1].Row = -13; //{HEADER1} - pgstyles.PgStyles[3].Items[2].Col = 459; //{PAGE} - pgstyles.PgStyles[3].Items[3].Col = 39; //{EOPNUM} - pgstyles.PgStyles[3].Items[4].Col = 249; //{PROCTITLE} - pgstyles.PgStyles[3].Items[5].Col = 459; //{REV} - pgstyles.PgStyles[3].Items[6].Col = -54; //{BOX3} - pgstyles.PgStyles[3].Items[6].Row = -13; //{BOX3} - pgstyles.PgStyles[3].Items[7].Col = 255; //{SECTIONLEVELNUMBER} - pgstyles.PgStyles[3].Items[8].Col = 255; //{DOCCURPAGE} - pgstyles.PgStyles[3].Items[10].Col = 243; //{FINALPAGE} - - //Two Column Attachments - pgstyles.PgStyles[4].Items[0].Col = -3; // {DRAFT}{MASTER}.... - pgstyles.PgStyles[4].Items[1].Col = -54; // {HEADER1} - pgstyles.PgStyles[4].Items[1].Row = -13; //{HEADER1} - pgstyles.PgStyles[4].Items[2].Col = 459; //{PAGE} - pgstyles.PgStyles[4].Items[3].Col = 39; //{EOPNUM} - pgstyles.PgStyles[4].Items[4].Col = 249; //{PROCTITLE} - pgstyles.PgStyles[4].Items[5].Col = 459; //{REV} - pgstyles.PgStyles[4].Items[6].Col = -54; //{BOX1} - pgstyles.PgStyles[4].Items[6].Row = -13; //{BOX1} - pgstyles.PgStyles[4].Items[7].Col = 255; //{SECTIONLEVELNUMBER} - pgstyles.PgStyles[4].Items[8].Col = 255; //{DOCCURPAGE} - pgstyles.PgStyles[4].Items[10].Col = 243; //{FINALPAGE} - - //Ter Editor Attachments - pgstyles.PgStyles[5].Items[0].Col = -3; // {DRAFT}{MASTER}.... - pgstyles.PgStyles[5].Items[1].Col = -54; // {HEADER1} - pgstyles.PgStyles[5].Items[1].Row = -13; //{HEADER1} - pgstyles.PgStyles[5].Items[2].Col = 447; //{PAGE} - pgstyles.PgStyles[5].Items[3].Col = 33; //{EOPNUM} - pgstyles.PgStyles[5].Items[4].Col = 237; //{PROCTITLE} - pgstyles.PgStyles[5].Items[5].Col = 459; //{REV} - pgstyles.PgStyles[5].Items[6].Col = -54; //{BOX3} - pgstyles.PgStyles[5].Items[6].Row = -13; //{BOX3} - pgstyles.PgStyles[5].Items[7].Col = 237; //{SECTIONLEVELNUMBER} - pgstyles.PgStyles[5].Items[8].Col = 237; //{DOCCURPAGE} - pgstyles.PgStyles[5].Items[10].Col = 243; //{FINALPAGE} - - //Duplex Foldout Page - pgstyles.PgStyles[6].Items[0].Col = -3; // {DRAFT}{MASTER}.... - pgstyles.PgStyles[6].Items[1].Col = -54; // {HEADER1} - pgstyles.PgStyles[6].Items[1].Row = -13; //{HEADER1} - pgstyles.PgStyles[6].Items[2].Col = 465; //{PAGE} - pgstyles.PgStyles[6].Items[4].Col = 39; //{EOPNUM} - pgstyles.PgStyles[6].Items[5].Col = 471; //{REV} - pgstyles.PgStyles[6].Items[6].Col = -54; //{BOX3} - pgstyles.PgStyles[6].Items[6].Row = -13; //{BOX3} - - //Figures (Ter Editor) - pgstyles.PgStyles[7].Items[0].Col = -3; // {DRAFT}{MASTER}.... - pgstyles.PgStyles[7].Items[1].Col = -54; // {HEADER1} - pgstyles.PgStyles[7].Items[1].Row = -13; //{HEADER1} - pgstyles.PgStyles[7].Items[2].Col = 447; //{PAGE} - pgstyles.PgStyles[7].Items[3].Col = 27; //{EOPNUM} - pgstyles.PgStyles[7].Items[4].Col = 237; //{PROCTITLE} - pgstyles.PgStyles[7].Items[5].Col = 453; //{REV} - pgstyles.PgStyles[7].Items[6].Col = -54; //{BOX3} - pgstyles.PgStyles[7].Items[6].Row = -13; //{BOX3} - pgstyles.PgStyles[7].Items[7].Col = 243; //{SECTIONLEVELNUMBER} - pgstyles.PgStyles[7].Items[8].Col = 243; //{DOCCURPAGE} - pgstyles.PgStyles[7].Items[10].Col = 243; //{FINALPAGE} - } - - private void AddTP00Page(ref PageStyles pgstyles) - { - //Purpose, Symptoms, Reference - pgstyles.PgStyles[0].Items[0].Col = -3; // {DRAFT}{MASTER}.... - pgstyles.PgStyles[0].Items[1].Col = -66; // {HEADER1} - pgstyles.PgStyles[0].Items[1].Row = -13; //{HEADER1} - pgstyles.PgStyles[0].Items[2].Col = 447; //{PAGE} - pgstyles.PgStyles[0].Items[3].Col = 33; //{EOPNUM} - pgstyles.PgStyles[0].Items[4].Col = 249; //{PROCTITLE} - pgstyles.PgStyles[0].Items[5].Col = 459; //{REV} - pgstyles.PgStyles[0].Items[6].Col = -66; //{BOX3} - pgstyles.PgStyles[0].Items[6].Row = -13; //{BOX3} - - } - * */ - #region DocStyles - public void AddPlantSpecific(string genFileName, ref DocStyles dcstyles) - { - switch (genFileName.ToUpper()) - { - case "RGESAM1.DOC": - AddRGESam1DOC(ref dcstyles); - break; - case "RGESAM2.DOC": - AddRGESam2DOC(ref dcstyles); - break; - case "RGE.DOC": - AddRGEDOC(ref dcstyles); - break; - case "RGEBCK.DOC": - AddRGEBCKDOC(ref dcstyles); - break; - // in shearon harris format, the fonts were set to 0 in the 16bit docstyle. - // we want them to inherit from plant format, not use the Prestige Elite (font 0) - // from 16bit, so delete those nodes: - case "SHE.DOC": - AddSheDOC(ref dcstyles); - break; - case "SHESSD.DOC": - AddSHESSDDOC(ref dcstyles); - break; - case "CPLSSDD.DOC": - AddCPLSSDDDoc(ref dcstyles); - break; - // in Wolf Creek single column, the Table Of Contents document style was not included in the - // count of pages for the automatic Table Of Contents. This page should be counted in the - // page count when doing the automatic ToC so that page numbers in Toc Match page numbers - // in the document: - case "WCN1.DOC": - AddWCN1Doc(ref dcstyles); - break; - case "WCN2.DOC": - AddWCN2Doc(ref dcstyles); - break; - case "WCNBCK.DOC": - AddWCNBCKDoc(ref dcstyles); - break; - // Adjusted the left margin to better align the procedure text - case "NSP.DOC": - AddNSPDOC(ref dcstyles); - break; - case "NSP.Y00": - AddNSP00DOC(ref dcstyles); - break; - // Adjusted the left margin to better align the procedure text - case "NSPBCK.DOC": - AddNSPBckDOC(ref dcstyles); - break; - case "NSPAB.DOC": - AddNSPABDOC(ref dcstyles); - break; - case "NSPAB.Y00": - AddNSPAB_00DOC(ref dcstyles); - break; - case "NSPAB.Y01": - AddNSPAB_01DOC(ref dcstyles); - break; - case "NSPAB.Y02": - AddNSPAB_02DOC(ref dcstyles); - break; - case "NSPDEV.DOC": - AddNSPDEVDOC(ref dcstyles); - break; - case "NSPIFG.DOC": - case "NSPIFG2.DOC": - AddNSPIFGDOC(ref dcstyles); - break; - case "NSPIFG.Y00": - AddNSPARP_00DOC(ref dcstyles); - break; - case "NSPARP.DOC": - AddNSPARPDOC(ref dcstyles); - break; - case "NSPARP.Y00": - AddNSPARP_00DOC(ref dcstyles); - break; - case "NSPSAM.DOC": - AddNSPSAMDOC(ref dcstyles); - break; - case "IP2.DOC": - AddIp2DOC(ref dcstyles); - break; - case "VCSDEV.DOC": - AddVCSDEVDOC(ref dcstyles); - break; - case "SUM.DOC": - AddSUMDOC(ref dcstyles); - break; - case "IP2.Y02": - AddIP202DOC(ref dcstyles); - break; - case "IP3.Y15": - AddIP315DOC(ref dcstyles); - break; - case "CAL2.DOC": - AddCAL2DOC(ref dcstyles); - break; - case "CALOTO.DOC": - case "CAL2.Y00": - AddCAL2RestDOC(ref dcstyles); - break; - case "CALBCK.DOC": - AddCALBCKDOC(ref dcstyles); - break; - case "CPL.DOC": - AddCPLDOC(ref dcstyles); - break; - case "CPL.Y00": - AddCPL_Y00(ref dcstyles); - break; - case "CPL.Y01": - AddCPL_Y01(ref dcstyles); - break; - case "CPL.Y02": - AddCPL_Y02(ref dcstyles); - break; - case "CPL.Y03": - AddCPL_Y03(ref dcstyles); - break; - case "CPLA.DOC": - AddCPLA(ref dcstyles); - break; - case "CPLRDEV.DOC": - AddCPLRDEV(ref dcstyles); - break; - case "CPBCK.DOC": - AddCPBCK(ref dcstyles); - break; - case "CPBCK.Y00": - AddCPBCK_Y00(ref dcstyles); - break; - case "CPBCK.Y01": - AddCPBCK_Y01(ref dcstyles); - break; - case "CPBCK2.DOC": - AddCPBCK2(ref dcstyles); - break; - case "TUEC.DOC": - AddTUCEDOC(ref dcstyles); - break; - case "FNP.DOC": - AddFNPDOC(ref dcstyles); - break; - case "FNP.Y00": - case "FNP.Y01": - AddFNP_Y0x(ref dcstyles); - break; - case "FNPCAS.DOC": - AddFNPCASDOC(ref dcstyles); - break; - case "CAT.DOC": - case "CATBOX.DOC": - AddCATDOC(ref dcstyles); - break; - case "MCG.DOC": - case "MCGBOX.DOC": - AddMCGDOC(ref dcstyles); - break; - case "EXCLN.Y00": - AddEXCLN00Doc(ref dcstyles); - CWEDocFixCB(ref dcstyles); - break; - case "EXCLN.Y01": - CWEDocFixCB(ref dcstyles); - break; - case "EXCLN.DOC": - CWEDocFixCB(ref dcstyles); - break; - case "CWE.DOC": - AddCWEDoc(ref dcstyles); - CWEDocFixCB(ref dcstyles); - break; - case "CWE.Y00": - CWEDocFixCB(ref dcstyles); - break; - case "EXEDEV.DOC": - AddEXEDEVDoc(ref dcstyles); - break; - case "WEP2.DOC": - AddWEP2DOC(ref dcstyles); - break; - case "WPB.Y20": - AddWPB20DOC(ref dcstyles); - break; - case "WPB.Y22": - AddWPB20DOC(ref dcstyles); // subformat 22 change is same as 20 - break; - case "WEPENB.DOC": - AddWEPENBDOC(ref dcstyles); - break; - case "WEPENB.Y00": - AddWEPENB_00DOC(ref dcstyles); - break; - case "BGEEOP.DOC": - AddBGEEOPDOC(ref dcstyles); - break; - case "BGEEOP.Y00": - AddBGEEOPDOC_Y00(ref dcstyles); - break; - case "BGEALN.DOC": - AddBGEALNDOC(ref dcstyles); - break; - } - } - private void AddFNPCASDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].TopMargin = 78; - dcstyles.DcStyles[0].PageLength = 672; - dcstyles.DcStyles[0].PageWidth = 560; - } - private void AddFNPDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[5].ComponentList = true; - dcstyles.DcStyles[5].TopMargin = 144; - dcstyles.DcStyles[0].CBNoOverrideSpace = true; - dcstyles.DcStyles[1].CBNoOverrideSpace = true; - dcstyles.DcStyles[3].CBNoOverrideSpace = true; - dcstyles.DcStyles[4].CBNoOverrideSpace = true; - dcstyles.DcStyles[7].CBNoOverrideSpace = true; - } - private void AddFNP_Y0x(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].CBNoOverrideSpace = true; - dcstyles.DcStyles[1].ComponentList = true; - dcstyles.DcStyles[1].TopMargin = 144; - } - private void AddCALBCKDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].PageWidth = 560; - dcstyles.DcStyles[0].ContTop = ""; - } - private void AddCAL2RestDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[1].PageLength = 672; - } - private void AddCAL2DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[1].PageLength = 672; - dcstyles.DcStyles[5].ExtraLineHeader = true; - } - private void AddIP315DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].ContBottom = "(STEP %0d CONTINUED ON NEXT PAGE)"; - } - private void AddIP202DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].LeftMargin = 12; - dcstyles.DcStyles[1].LeftMargin = 12; - } - - private void AddIp2DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].ContTop = ""; - } - private void AddCPLSSDDDoc(ref DocStyles dcstyles) - { - dcstyles.DcStyles[2].PageWidth = 576; - } - private void AddSHESSDDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].CTMargin = 0; - dcstyles.DcStyles[0].ContTop = ""; - dcstyles.DcStyles[0].PageLength = 618; - dcstyles.DcStyles[5].CTMargin = 0; - dcstyles.DcStyles[5].ContTop = ""; - } - - private void AddSheDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].ContTopHLS = 0; - dcstyles.DcStyles[0].CTMargin = 24; - dcstyles.DcStyles[0].ContTop = "Step %d (Continued)"; - dcstyles.DcStyles[0].UseCheckOffs = false; - dcstyles.DcStyles[1].UseCheckOffs = false; - // fonts (dstyle) in DocStyles that had a '0' in the 16bit format file (she.doc), should - // inherit from the plant level in 32 bit rather than use Prestige Elite (0 -> Prestige Elite) - dcstyles.DcStyles[1].dstyle = null; - dcstyles.DcStyles[2].dstyle = null; - dcstyles.DcStyles[3].dstyle = null; - dcstyles.DcStyles[4].dstyle = null; - dcstyles.DcStyles[5].dstyle = null; - dcstyles.DcStyles[6].dstyle = null; - dcstyles.DcStyles[7].dstyle = null; - dcstyles.DcStyles[8].dstyle = null; - dcstyles.DcStyles[1].PageLength = 592; - - //adding new single column docstyle for purpose and symptoms - Array.Resize(ref dcstyles.DcStyles, dcstyles.DcStyles.Length + 1); - dcstyles.DcStyles[9].Name = "Purpose/Symptom"; - dcstyles.DcStyles[9].Index = 9; - dcstyles.DcStyles[9].pagestyle = 9; - dcstyles.DcStyles[9].CancelSectTitle = false; - dcstyles.DcStyles[9].FooterLen = 12F; - dcstyles.DcStyles[9].IsStepSection = true; - dcstyles.DcStyles[9].LeftMargin = 102; - dcstyles.DcStyles[9].numberingsequence = 1; - dcstyles.DcStyles[9].PageLength = 636; - dcstyles.DcStyles[9].PageWidth = 547.2F; - dcstyles.DcStyles[9].ShowSectionTitles = true; - dcstyles.DcStyles[9].SpecialStepsFoldout = false; - dcstyles.DcStyles[9].TopMargin = 108F; - dcstyles.DcStyles[9].UseCheckOffs = false; - dcstyles.DcStyles[9].dstyle = new VE_Font(); - dcstyles.DcStyles[9].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[9].dstyle.FontSize = "11"; - dcstyles.DcStyles[9].dstyle.FontStyle = "None"; - dcstyles.DcStyles[9].dstyle.CPI = "12"; - } - - public void AddRGESam1DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[4].numberingsequence = 1; // count this section with total document page count - } - - public void AddRGESam2DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[2].numberingsequence = 1; // count this section with total document page count - } - public void AddRGEDOC(ref DocStyles dcstyles) - { - // Introduction pages - dcstyles.DcStyles[1].PageWidth = 591; // needed to increase to match 16-bit word wrapping - // Attachment Pages - dcstyles.DcStyles[2].PageWidth = 601; // needed to increase to match 16-bit word wrapping - } - public void AddRGEBCKDOC(ref DocStyles dcstyles) - { - // Revision Page / Table of Contents - dcstyles.DcStyles[2].TopMargin = 55; - // Revision Page / Table of Contents (after first page) - dcstyles.DcStyles[3].TopMargin = 91; - // Introduction Pages - dcstyles.DcStyles[4].PageWidth = 578; - } - - #endregion - } - public partial class RtfToSvg - { - public void AppendPlantSpecific(string genFileName, XmlDocument myDoc) - { - string genName = genFileName.Substring(genFileName.LastIndexOf('\\') + 1); - genName = genName.Substring(0, genName.IndexOf('.')); - switch (genName.ToUpper()) - { - case "WCN2": - case "WCN1": // same cover page box as wcn2 - case "WCNBCK": // same cover page box as wcn2 - case "WCNOFB": // same cover page box as wcn2 - AddWCN2(myDoc); - break; - case "NSP": - AddNSP(myDoc); - break; - case "NSPDEV": - AddNSPDEV(myDoc); - break; - case "NSPARP": - AddNSPARP(myDoc); - break; - case "NSPAB": - AddNSPAB(myDoc); - break; - case "NSPIFG": - AddNSPIFG(myDoc); - break; - case "NSPSAM": - AddNSPSAM(myDoc); - break; - case "IP2": - AddIP2(myDoc); - break; - case "FNP": - AddFNP(myDoc); - break; - case "CAL2": - AddCAL2(myDoc); - break; - case "CALOTO": - AddCALOTO(myDoc); - break; - case "TUEC": - AddTUEC(myDoc); - break; - case "CPL": - AddCPL(myDoc); - break; - case "CPLA": - AddCPLA(myDoc); - break; - case "CPLRDEV": - AddCPLRDEV(myDoc); - break; - case "CWE": - AddCWE(myDoc); - break; - case "EXCLN": - AddEXCLN(myDoc); - break; - case "SUM": - AddSUM(myDoc); - break; - case "WEP2": - AddWEP2(myDoc); - break; - case "WEPENB": - AddWEPENB(myDoc); - break; - } - } - - private void AddCALOTO(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "__" + - "__" + - "#" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[10]); - } - - private void AddCAL2(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "__" + - "__" + - "#" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[10]); - - xdNew.LoadXml(" " + - "" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[1]); - } - - private void AddFNP(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]); - } - - private void AddIP2(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "\r\n" + - "*\r\n" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]); - } - - } -} diff --git a/PROMS/fmtxml/AssemblyInfo.cs b/PROMS/fmtxml/AssemblyInfo.cs deleted file mode 100644 index 9f89a328..00000000 --- a/PROMS/fmtxml/AssemblyInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// -[assembly: AssemblyTitle("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.0.*")] - -// -// In order to sign your assembly you must specify a key to use. Refer to the -// Microsoft .NET Framework documentation for more information on assembly signing. -// -// Use the attributes below to control which key is used for signing. -// -// Notes: -// (*) If no key is specified, the assembly is not signed. -// (*) KeyName refers to a key that has been installed in the Crypto Service -// Provider (CSP) on your machine. KeyFile refers to a file which contains -// a key. -// (*) If the KeyFile and the KeyName values are both specified, the -// following processing occurs: -// (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key -// in the KeyFile is installed into the CSP and used. -// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. -// When specifying the KeyFile, the location of the KeyFile should be -// relative to the project output directory which is -// %Project Directory%\obj\. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile -// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] -// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework -// documentation for more information on this. -// -[assembly: AssemblyDelaySign(false)] -[assembly: AssemblyKeyFile("")] -[assembly: AssemblyKeyName("")] diff --git a/PROMS/fmtxml/ComPeakFlex.svg b/PROMS/fmtxml/ComPeakFlex.svg deleted file mode 100644 index 9e8c0c16..00000000 Binary files a/PROMS/fmtxml/ComPeakFlex.svg and /dev/null differ diff --git a/PROMS/fmtxml/ComPeakFlexall.xml b/PROMS/fmtxml/ComPeakFlexall.xml deleted file mode 100644 index c5f7071d..00000000 Binary files a/PROMS/fmtxml/ComPeakFlexall.xml and /dev/null differ diff --git a/PROMS/fmtxml/EntireFormat.cs b/PROMS/fmtxml/EntireFormat.cs deleted file mode 100644 index 1ead88b1..00000000 --- a/PROMS/fmtxml/EntireFormat.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.IO; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - class EntireFormat - { - private string MyPath; - public EntireFormat(string mxml, string path) - { - MyPath = path; - XmlDocument xmldoc = new XmlDocument(); - XmlComment copyright = xmldoc.CreateComment("Proprietary Information - Copyright 2012 - Volian Enterprises, Inc. All rights reserved."); - XmlElement top = xmldoc.CreateElement("PlantFormat"); - xmldoc.AppendChild(copyright); - xmldoc.AppendChild(top); - try - { - XmlReaderSettings settings = new XmlReaderSettings(); - settings.IgnoreWhitespace = true; - StreamReader strrdr = new StreamReader(mxml); - XmlTextReader rdr = new XmlTextReader(strrdr); - using (rdr) - { - rdr.MoveToContent(); - XmlNode fmt = xmldoc.ReadNode(rdr); - top.AppendChild(fmt); - } - rdr.Close(); - // load page xml - string pagename = mxml.Substring(0, mxml.Length - 5) + "p.xml"; - using (XmlReader reader = XmlReader.Create(pagename, settings)) - { - reader.MoveToContent(); - XmlNode pag = xmldoc.ReadNode(reader); - top.AppendChild(pag); - } - - string docname = mxml.Substring(0, mxml.Length - 5) + "d.xml"; - using (XmlReader reader = XmlReader.Create(docname, settings)) - { - reader.MoveToContent(); - XmlNode doc = xmldoc.ReadNode(reader); - top.AppendChild(doc); - } - string outname = MyPath + @"\fmtall\" + mxml.Substring(mxml.IndexOf("\\")+1,mxml.Length - 13) + "all.xml"; - XmlWriterSettings settingsout = new XmlWriterSettings(); - settingsout.Encoding = Encoding.Unicode; - settingsout.Indent = true; - settingsout.IndentChars = "\t"; - XmlWriter xmlwrite = XmlWriter.Create(outname,settingsout); - xmldoc.WriteContentTo(xmlwrite); - xmlwrite.Close(); - XmlDocument newDoc = new XmlDocument(); - newDoc.Load(outname); - XmlNodeReader xtr = new XmlNodeReader(newDoc); - XmlTextWriter xtw = new XmlTextWriter(outname, Encoding.Unicode); - xtw.Formatting = Formatting.Indented; - xtw.Indentation = 1; - xtw.IndentChar = '\t'; - xtw.WriteNode(xtr, true); - xtr.Close(); - xtw.Close(); - } - catch (Exception ex) - { - Console.WriteLine("Error on merge, format = {0}, msg = {1}", mxml, ex.Message); - } - } - - - } -} diff --git a/PROMS/fmtxml/FNPNMPall.xml b/PROMS/fmtxml/FNPNMPall.xml deleted file mode 100644 index be5c850b..00000000 Binary files a/PROMS/fmtxml/FNPNMPall.xml and /dev/null differ diff --git a/PROMS/fmtxml/FmtFileToXml.cs b/PROMS/fmtxml/FmtFileToXml.cs deleted file mode 100644 index 1fcadd43..00000000 --- a/PROMS/fmtxml/FmtFileToXml.cs +++ /dev/null @@ -1,5869 +0,0 @@ -using System; -using System.Windows.Forms; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Text.RegularExpressions; -using System.Runtime.Serialization.Formatters.Binary; -using System.Xml.Xsl; -using System.Xml; -using System.Xml.Serialization; -using System.ComponentModel; - -#region StructDefinitions -// top of the format. - -// convert ALL rows & columns to points, i.e. a point = 1/72 inch -// the row is set based on 6 rows per inch, i.e. row = input * 72/6, row = input * 12 -// the column is 12 char/inch, i.e. col = input * 72/12, col = input * 6 -[Serializable] -public struct FormatData -{ - public string Name; - public string PurchaseOptions; - public string TPL; - //public XtraFlgs XtraFlags; - public VE_Font FontData; - public Symbol[] Symbols; - public GeneralEditor EditData; - public GeneralPrint PrintData; - public Procedure ProcData; - public Section SectData; - public Step[] StepData; - public Box[] BoxData; - public Trans TransData; - public RO ROData; -} -[Flags] -public enum E_PurchaseOptions : uint -{ - ApproveOne = 0x0001, - AccPagination = 0x0002, - LibMaint = 0x0004, - Transfer = 0x0008, - STrees = 0x0010, - DateChgSumRpt = 0x0020, - SetpointUsage = 0x0040, - Replace = 0x0080, - FloppyTransfer = 0x0100, - ApproveGenericBack = 0x0200, - DistributeApproved = 0x0400, - OutsideTransitions = 0x0800, - EnhancedBackgrounds = 0x1000, - EnhancedDeviations = 0x2000, - AutoTableOfContents = 0x4000, - AutoPlacekeeper = 0x8000 -} -[Serializable] -public struct XtraFlgs -{ -#region xtraflags0 - public string DoubleRNOSpace; // from xtra_flag array 0 - public string MixCautionsAndNotes; - // public string MULTILEVELCAUTION; // not migrated used by: ano/bge/sum - public string AlwaysUseExtralines; - public string AlwaysTabNote; - public string AlwaysTabCaution; - // public string CHECKOFFEQUIPMENT; // not used by any format - public string SpecialPageBreakFlag; - // public string INSYNC; // not migraged used by: genplan & scedev - public string DontPaginateOnFirstSubStep; - // public string PRINTONESTEPPERPAGE; // not migrated used by: anos & genplan - public string ImperfectStructure; - public string DontUseHalfLines; - public string FortranFormatNumbers; - public string AllUnits; - public string CapsTransitions; -#endregion -#region xtraflags1 - public string CapTranStep; // from xtra_flag array 1 - // public string BOLDTRANSITIONS; // not migraged used by: ano1 & sum - public string TSTepNoFlag; - public string LowerCaseTranNumber; - //public string UNDERLINESTEPNUMBER // not migraged used by: cpla - public string CondensedChangeBar; - public string DoRevDate; - public string SeparateBox; - public string NumberHighLevelRNO; - // public string STUPIDBLANKRNONUMBERING; //not migrated used by: lpl - // public string BULLETINSTEADOFNUMBERRNO //not migrated used by: sce - // public string BIZZAREINDENTSAVE //not migrated used by: sce - public string AlternateFoldoutPages; - // public string ONLYEXTERNALBOLD; // not migrated pac & sce - //public string DONTSPLITTHESTEPATIF // not migrated used by: sce, vnp, vpe - public string DontTryToFillHalfOfPage; -#endregion -#region xtraflags2 - public string DontCapitalizeTitle; // from xtra_flag array 2 - // public string MOVEPARENSTOTOKEN // not migrated used by: scedev - public string NoSpaceDoubleRNO; - //public string SECTIONTITLES; // not used - public string DontOffsetTab; - public string UpSetpntAftrDash; - public string LowerCaseRevnum; - public string DoNotCompressSteps; - public string ReduceLineAfterNoteAndCaut; - public string RNOSameLevel; - //public string USENOTECAUTIONSEPARATOR; // not migrated: used in genplan - //public string TRUNCATEPROCNMAFTER1STSPACE // not migrated: used in paca & sce - //public string EXTRALINEBEFOREANDAFTERCAUT1 // not migrated: used in mya - public string BoldHighLevelRNO; - public string OneLineBeforeNoteCautionTab; - public string ContinuousChangeBars; -#endregion -#region xtraflags3 // from xtra_flag array 3 - // public string DONTDOLINEAFTERENDMESS // not migrated: used in ano1 - // public string ENDAFTERBOXEDSTEP // not migrated: used in ano1 - // public string CheckOffOnAllSteps; // not migrated - NOT USED - // public string SPECIALCHANGEBARID // not migrated: used in sce - // public string STEPTABBEFORENOTEANDSTEP // not migrated: used in ano1 - public string DontBoxAC; - //public string OKTOSEPARATESTEPANDTABLE; // no supporting code - public string UseTopContinueMessageAtEnd; - // public string ONLYUSEONELINEFORTOPOFPAGE; // not used - // public string ARROWONTRANS; // not migrated: used in mya - // public string PROCEEDMESS; // not migrated: used in mya - // public string UP1INDENTFOROPTEQUIPLIST; // not migrated: used in mya - // public string UPCASETHETRANSITIONSUBSTEPONLY; // not migrated: used in ano1, ano2 - public string UpcaseTranAnd; - public string UpcaseAllSetpointUnits; - // public string OBSERVENOTECAUTIONTRAN; // not used -#endregion -#region xtraflags4 - public string Dev_Format; // from xtra_flag array 4 - // public string UPURS; // not migrated: used in yae - public string DontDoSTExtraAtTop; - public string Xlines_StepFix; - public string ReBoxCautNote; - public string IMMStepSpcHdr; - // public string GENLESSONPLAN; // not migrated: used in genplan - public string FloatingContinueMessage; - // public string STATREESONACCPAGE; // not migrated: used in status tress (lots of formats) - public string AbsoluteFixedChangeColumn; - // public string QUESTIONTRANSSTEP; // not migrated: used in sce - public string LJBorderlessTable; - public string SuppressAndInTran; - public string CapHighSetpnt; - public string CapFirstLetterInHighSP; // used in fpl - public string CapsPIFLastLower; -#endregion -#region xtraflags5 - public string AlternateFloatingFoldout; // from xtra_flag array 5 - public string WrapSameAsEdit; - public string KeepStepsOnPage; - public string SpecifiedSubstepsOnly; - public string ThreeBlanksAboveNotesCautions; - // public string DONTADDUNITTOREV // not migrated: used in paca - public string ImperfectSubstep; - public string DontBreakOnSections; - public string NoStepNumIfOnlyOneStep; - public string ShowSectionTitles; - public string LJTabs; - public string DontNumberRNOSubs; - // public string ALIGNNOTECAUTWTAB // not used - // public string RNOCONTINUESTEP // not migrated: used in sum - public string DropCheckOff; - public string NoCheckOffsInRNO; -#endregion -#region xtraflags6 - // from xtra_flag array 6 - public string ChgBarMessageFromEdit; - public string ChangeBarToRNOSep; - // public string SMALLACBOX // not migrated: used in lpl - public string ChangeStyleForEverySection; - public string SectionLevelFoldouts; - public string BoxContinousActions; - public string DoSectionTrans; - // public string DONTUSESECNUMBERS // not used - public string UpSpIfPrevUpper; - public string ContinueSectionHeader; - public string GlobalProcInfo; - public string CompressHPSub; - public string BulletOnContinuous; - public string CancelSecTitlesOnS2; - public string NoEndForSingle; - public string UseMetaSections; -#endregion -#region xtraflags7 - public string RNOContinueOnly; // from xtra_flag array 7 - public string Cap1stCharTrans; - public string DontPaginateOnFirstSubstep3X; - public string RNOSepAfterAER; - public string RevDateWithForwardSlash; - // public string UPSETPNTAFTRCAPS // not migrated: used in sum - public string UseAlternateStepBox; - public string CancelSecTitlesOnS1; - public string SpecialStepsFoldout; - public string UnderlineAfterDashSpace; - public string NoSpaceInNoteOrCaution; - public string UseXtraRevNumber; - public string UnderlineSetpoints; - public string DoSectionTransTypeB; - public string PaginateOnLowerStepLevel; - public string UseTransitionModifier; -#endregion -#region xtraflags8 - public string CustomSpacing; // from xtra_flag array 8 - public string EnhancedShortFormDev; - // public string NOHIGHLEVELREADONLY; // no supporting code - // public string NORNOREADONLY // not used - public string PageBreakOnHighLevelStep; - // public string CHANGEONLYGROUPEDTYPES // not used - public string PageBreakOnCautions; - public string PageBreakOnNotes; - public string AlignNullTabWSectHead; - public string DontUseSecTitles; - public string TextSubFollowsTextStyle; - public string TranProcTitleInParen; - public string HardSpTranProcNumb; - public string TreatAndOrAsSequential; - public string DontSplitStepInPrntStep; - public string LineAboveUnderSection; -#endregion -#region xtraflags9 - // public string REMOVEREDUNDANTSEPERATORS // from xtra_flag array 9 // not used - // public string UNINDENTTABSANDSEPERATORS // not migrated: used in bgeal bgealn bgevl - public string PicaIgnoreFiveSixths; - public string SpaceFoRNOSecNumb; - public string NonEditableSteps; - public string BoxedSubsteps; - public string DontNumberHighLevelSteps; - // public string ASTERISKONIMMEDIATE // not migrated: used in a number of bge fmts - // public string CONTINUEAFTERSTEPTEXT // not used - // public string FIXPAGELISTSPECIALCHARS // not migrated: used in a number of bge fmts - public string NoStepNumberForHighLevelRNO; - public string PromptForCautinType; - public string Caution1SameRowAsParent; - //public string DONTPAGINATEONCAUTION1; // no supporting code - public string WolfCreekBackgroundFormat; - public string EnhancedStepNumFromPrev; -#endregion -#region xtraflags10 - public string ControlUnderlineStyle; // from xtra_flag array 10 - // public string LANDSCAPEMODE // not used - // public string HORIZONTALSUBSTEPS // not migrated: used in ano2vlv & bgevl - public string MultipleChangeIds; - public string UseMultiLineSectionTitle; - // public string SECTIONNOTESCAUTIONS // not migrated: used in anono & various bge - public string PageBreakOnFirstBlankLine; - public string DontPrintNoTitle; - // public string PRINTCAUTION1CONTINUED // not migrated: used in bgeal - // public string USECHECKOFFSINS2 // not used - public string NotesToFootnotes; // used in ano2vlv, some bge, many rbnd, NSPF00.in - public string UndSpecialStepsFoldout; - // public string DONTAUTOENDFORMATTING // not migrated: used in various bge - // public string REMOVEBASISFROMTRANS // not migrated: used in various bge - public string PutOnPageByItself; - public string PrintPhoneList; // used in bge AOP data (UsePhoneList in 16-bit) -#endregion -#region xtraflags11 - public string SecTitleContinue; // from xtra_flag array 11 - public string CancelSecTitlesOnE0; - public string MetaSectEndMessage; - public string RNONumberWithLevel; // not migrated: used in bgeeop - // public string FORCELETTEREDHLS // not migrated: used in bgestp - // public string CANCELSECTITLESONE1 // not migrated: used in bgeoid - public string CancelSecTitlesOnE2; - // public string USESECTITLECONTASIS // not used - // public string SMARTLETTEREDHLS // not migrated: used in various bge - // public string DOTWOMESSAGES // not migrated: used in bgeeop - // public string DONTBOLDINTABLES // not migrated: used in bgestp - // public string EXTRALINEAFTERSECTION // not migrated: used in bgestp - // public string BGESTPSPECIALFEAT // not migrated: used in bgestp - public string CompressHPSuper; - // public string PRETENDNOTPROPORTIONAL // not used - // public string DOINGPLACEKEEPERS // not used -#endregion -#region xtraflags12 - public string MatchUpRNOCautNote; // from xtra_flag array 12 - // public string NEWHLSTEPONENTER // not migrated: used in bgevl - // public string DONTSEPARATEMULTITEXT // not migrated: used in bgeop - public string PaginateAtHighestPaginLevel; - // public string DONTRESETINDENTONNEWLINE // not migrated: used in anonop & various bge - // public string CONTINUEMESSONNEXTLINE // not migrated: used in anoann - // public string CAP1STSECTIONTITLE // not migrated: used in anono - // public string DOUBLESPACEHLS // not migrated: used in anoann - public string UseLongProcTitles; - // public string INCLUDENOTEINPLACKEEP // not migrated: used in bgeeop - // public string OUTTRANTOSECTIONSTEP // not used - // public string ANOANNUNCIATORS // not migrated: used in anoann - public string SpecialLandscapeMode; - public string RNOInPagelist; - public string StpCautNoteTabInPagelist; - public string ReadOnlyTypeInContMsg; -#endregion -#region xtraflags13 - public string CenterOneLineOnly; // from xtra_flag array 13 - public string TieTabToLevel; - // public string LEFTJUSTIMMEDIATE // not migrated: used in anoann - public string AccessoryDocsInDuplex; - public string FoldoutsInDuplex; - // public string ABPAGE // not migrated: used in various ano - public string UseSTExtraRealValue; - public string SubTableGetSup1Level; - // public string DONTNUMBERNOTECAUT1 // not migrated: used in anonop - public string DontCountFoldoutPages; - // public string ANONOPHACKS // not migrated: used in anonop - // public string FLOATSECNUMPOS // not migrated: used in bgeoi bgestp - public string SearchAllReplaceWords; - // public string CALVERTCLIFFSFORMATS // not migrated: used in various bge - // public string NOSTUPIDSUBLOGIC // not migrated: used in anonop - // public string REMEMBERRNOSTEP // not migrated: used in bgeeop, rbndan, rbnd -#endregion -#region xtraflags14 - public string RememberCautionsAndNotes; // from xtra_flag array 14 - // public string PUTONPAGEAFTERHALFPAGE // not migrated: used in anonop - // public string FLOATINGSTEPS // not migrated: used in anonop - public string RtfAdjustments; - public string CenterOneLineAdjust; - public string CountAllSubLevels; - // public string AERCHGBARMSGRNOCHGBARNOMSG // not migrated: used in nae - public string DontReplaceWordsInROs; - public string HighLevelRNOBeforeAERSubStps; - public string UnderlineAllMetaTitles; - public string DontBreakCautionsOrNotes; - public string BoldOnlySectionZero; - public string DontBreakOnRNO; - public string RNOCheckOffSameAsParent; - public string UseStepTypeWidthOverride; - public string WolfcreekCKLFormat; -#endregion -#region xtraflags15 - public string DontPaginateOnFirstSubStep2X; // from xtra_flag array 15 - public string UseStepTypeWidthOverrideEditPrint; - public string PartialStepCompression; - public string UseSmartTemplate; - public string CheckoffOnHLSOnly; - // public string KEEPCHANGEIDFORCOPYSTEP // not migrated: used in various ANO - // public string RNOBELOWCHECKOFF // not migrated: used in various RBND - public string Caution2SameRowAsParent; - // public string DONTUNDERLINEMETATITLES // not migrated: used in various RBND - public string CenterTextWithinWidth; - public string DontBreakEquipmentList; - // public string USELOCALTEMPLATEFILE // not migrated: used in various RBND - public string AlwaysTabCaution2; - public string VirtualDotInHLSTab; - public string ImperfectStructurePlus4; - // public string RIVERBENDVALVESHEETS // not migrated: used in various RBND -#endregion -#region xtraflags16 - // public string RIVERBENDPUMPDATASHEET // from xtra_flag array 16 -not migrated: used in various RBND - public string UseRNOTypeInActable; - public string AbsoluteTransitionUpdate; - public string SeparateBoxCautions; - // public string RIVERBENDALARMFORMAT // not migrated: used in RBNDAN - public string HLSTextInPagelist; - // public string HLSCAUT2INPAGELIST // not migrated: used in RBNDAN - public string LowerCaseStepInTran; - // public string DONTCHANGELOWERLIMIT // not migrated: used in BGEALN PAC - // public string UPPERCASESECTIONTITLE // not migrated: used in various RBND - //public string ALGNCOMPRESSSUPERTABLE; // not migrated: no supporting code. - // public string RIVERBENDLINEUPFORMAT // not migrated: used in various RBND - public string ChangeBarsOnLinkedText; - public string QuotedSubsteps; - // public string PROPOVERFLOWLETITHANG // not migrated: used in BGEEOP - // public string TURKEYPOINTBACKGNDFORMAT // not migrated: used in FPLBCK -#endregion -#region xtraflags17 - // public string DRAWCENTERLINE // from xtra_flag array 17 -not migrated: used in BGEEOP - // public string DOVALVEDIVIDER // not migrated: used in ANO2VLV - // public string DOSECTIONOVERUNDERSTRING // not migrated: used in bgeeop, bgevl - public string OverrideEnhancedTabs; - // public string USEREALCOMPRESSED7LPI // not used - public string NoNewlineAfterRNO; - public string DoSectionSeparatorLine; - public string ParensOnExtPagenumTrans; - public string AtLeastTwoDigitsForHLS; - public string DontBreakOptEquipmentList; - public string PagelistChangeIDsWithCommas; - public string DontStartLineWithDash; - public string NoBlankLineBeforeSubstep; - public string DontBreakCautionsNotesOnSubstps; - public string DontConvertCaretToDelta; // handled in data migration -#endregion -#region xtraflags18 - // this was original veairflag, but an extra array element was added to the xtraflags, - // xtraflags[18], since some of the flags were used in other formats. - // public string NOTEAFTERAPPLIEDTEXT // from xtra_flag array 18 -not migrated: used in ata - public string NoRNO; - // public string ALTWFORWARNINGS // not migrated: used in ata, some bge & some rbnd - public string OnlySingleColumn; - public string NullBox; // used in bgeeop and NSP - public string XChngTranSpForHard; - public string WolfcreekCKLBackgndFormat; -#endregion -} -[Serializable] -public struct Symbol -{ - public string Unicode; - public string Desc; -} -[Serializable] -public struct GeneralEditor -{ - public string EMode; - /* Format Flags */ - public string PromptForCautionType; - /* End of format flags */ -} -[Serializable] -public struct GeneralPrint -{ - public Int16 DoPrnDrvrAdjusts; - public string TopOfPageThing; - /* Format flags moved to here.... */ - public string DoRevDate; - public string AlternateFoldoutPages; - public string AlternateFloatingFoldout; - public string SectionLevelFoldouts; - public string RevDateWithForwardSlash; - // Added for BGE: - // Used to flag that a the user interface should display a Unit Number text box for Docverion properties. - // this piece of data is stored in the config for a docversion & is used for pagelist items. - public string UnitNumber; - // Added for BGE: didn't want to name it for them, but that's what it is - public string SpecialCaseCalvert; - public string SpecialCaseCalvertAlarm; - // added for Comanche Peak to print "COMMON" in place of "Unit 0" (from pagelist) - public string PrintCommonForZeroUnit; // added for Comanche Peak to print "COMMON" in place of "Unit 0" (from pagelist) - //public string SpecialStepsFoldout; - // Added AllowDuplex to eliminate hardcoded check for WEP2 and WPB formats - // for the Disable Automatic Duplexing - public string AllowDuplex; - public string AccessoryDocsInDuplex; - public string FoldoutsInDuplex; - public string PagelistChangeIDsWithCommas; - /* end Format flags */ - public ProcDescr [] ProcDescrList; - public string[] VersionIdText; - public string DuplexBGDirectory; // this may go away?? - public string DuplexDDDirectory; // " " -} -[Serializable] -public struct ProcDescr -{ - public string MatchProcNumber; - public string ProcDescr1; - public string ProcDescr2; -} -//[Serializable] -//public struct GeneralLayout // no data in this category. Comment out -//{ // in case later some data moves to here. - -//} -[Serializable] -public struct Procedure -{ - public Int16 TitleLength; - public Int16 CoverTitleLength; - public string ProcForeColor; - public string ProcBackColor; - public string ProcedureSuffixFlags; - /* Format flags moved to here.... */ - public string CapitalizeTitle; - public string ChangeStyleForEverySection; - public string PrintNoTitle; - public string NotesToFootnotes; - public string CountFoldoutPages; - /* End of Format flags */ - public string[] ProcedureSuffix; - public PSI Psi; - public ChangeBar ChangeBarData; - public CheckOffData CheckOffData; -} -[Serializable] -public struct PSI -{ - public int x; - public int y; - public string Caption; - public string ButtonsOnBottom; - public string font; - public PsiBox[] Boxes; - public PsiLabel[] Labels; - public PsiField[] Fields; -} -[Serializable] -public struct PsiBox -{ - public string style; - public int x; - public int y; - public int width; - public int height; -} -[Serializable] -public struct PsiLabel -{ - public string text; - public string Justify; - public int x; - public int y; - public int width; - public int height; -} -[Serializable] -public struct PsiField -{ - public string name; - public string type; - public string text; - public int Length; - public int x; - public int y; - public int width; - public int height; -} -[Serializable] -public struct CheckOffData -{ - public string Menu; - public string AllowSectEdit; - public string AllowStepEdit; - 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; - public string SkipSpaces; - /* end of format flags */ - // for Byron and Braidwood - public string CheckoffOnSubStepsOnly; - //public RightCheckOffBx [] RightCheckOffBoxList; - public Absolute [] LayoutList; - public CheckOffHeader[] CheckOffHeaderList; - public CheckOff [] CheckOffList; -} -//[Serializable] -//public struct RightCheckOffBx -//{ -// public int Index; -// public int RightCheckOffBox; -//} -[Serializable] -public struct Absolute -{ - public string RnoLevel; - public int Column; -} -[Serializable] -public struct CheckOffHeader -{ - public int Index; - public string CheckOffHeading; - public VE_Font Font; -} -[Serializable] -public struct CheckOff -{ - public int Index; - public byte UIMark; - public string MenuItem; - public string ExcludeInSectMenu; - public string NotOnEmpty; - public string Macro; - public float CheckOffWidAdjust; - public int CheckOffXtraLines; -} -[Serializable] -public struct ChangeBar -{ - public string DefaultCBLoc; - public string ChangeBarMessage; - public Int16 FixedChangeColumn; // really flags not columns (don't convert to points - public Int16 FixedAERChangeColumn; - public long ChangeSummaryStyle; // not really change bar - put here for now. - public long ChangeBarStyle; - public string SpecialChangeBar; - /* Format flags moved to here.... */ - public string CondensedChangeBar; - public string AbsoluteFixedChangeColumn; - public string ContinuousChangeBars; - public string ChgBarMessageFromEdit; - public string ChangeIds; - public string ChangeBarToRNOSep; - public string ChangeBarsOnLinkedText; - /* End of Format flags */ -} -[Flags] -public enum E_ChangeBarMessage : uint -{ - DateChgID = 0, - RevNum = 1, - ChgID = 2, - None = 3 -} -[Flags] -public enum E_EMode : uint -{ - Insert = 0, - Override = 1 -} -[Serializable] -public struct Section -{ - public Int16 SectionTitleLength; - public string SectForeColor; - public string SectBackColor; - /* Format Flags moved here... */ - //public string CancelSecTitlesOnS1; // moved to docstyle - //public string CancelSecTitlesOnS2; - //public string CancelSecTitlesOnE0; - //public string CancelSecTitlesOnE2; - public string MetaSectEndMessage; - public string ReadOnlyTypeInContMsg; - public string ReplaceWordsInROs; - public string UseMetaSections; - public string NonEditableSteps; - public string SearchAllReplaceWords; - public string SecTitleContinue; - public string ConvertCaretToDelta; - public string TurnOffReplaceWords; - public string PrintPhoneList; - /* end of Format flags */ - public SectionNum SectionNumber; - public SectionHead SectionHeader; - public StepSection StepSectionData; - public AccSection AccSectionData; - public MetaSection [] MetaSectionData; - public ReplaceStr[] ReplaceStrData; - -} -[Serializable] -public struct SectionNum -{ - public float Pos; - public string Level0Big; // Added for BGE was in their format. - public string Just; - public VE_Font Font; -} -[Serializable] -public struct SectionHead -{ - public float Pos; - public string Level0Big; // Added for BGE was in their format. - public string Just; - public VE_Font Font; -} -[Serializable] -public struct StepSection -{ - public Int16 TopRow; - public byte IndentToken; - public Int16 NumberOfHighLevelSteps; - public Int16 NumberOfSubStepTypes; - //public Int16[] TextTypeValue; - //public string[] TextType; - public string IdentB; - public string[] UnderlineTerminate; - public string [] ObserveNCString1; - public string[] ObserveNCString2; - /* Format flags moved to here.... */ - public string WolfCreekBackgroundFormat; - public string WolfcreekCKLFormat; - public string WolfcreekCKLBackgndFormat; - public string FortranFormatNumbers; - public string UseTopContinueMessageAtEnd; - public string FloatingContinueMessage; - public string WrapSameAsEdit; - public string ContinueSectionHeader; - public string CompressHPSub; - public string CompressHPSuper; - public string CompressPropSubSup; - //public string UndSpecialStepsFoldout; - public string UnderlineAllMetaTitles; - public string BoldOnlySectionZero; - public string ImperfectStructure; - public string ImperfectSubstep; - public string ImperfectStructurePlus4; - public string CountAllSubLevels; - public string UseMultiLineSectionTitle; // Need for data migration only - public string AdjustRNOCautionNoteWidth; // added to Catawba and McGuire - /* end of Format flags */ - public StepSectionLayout StpSectLayData; - public StepSectionEdit StpSectEditData; - public StepSectionPrint StpSectPrtData; - public SeqTabFmt[] SequentialTabFormat; -} -[Serializable] -public struct AccSection -{ - public int AutoContActSumSection; - public TOC TableOfContentsData; - public PlaceKeeper PlaceKeeperData; -} -[Serializable] -public struct TOC -{ - public float TofCSecNumPos; - public float TofCSecTitlePos; - public byte TofCSecTitleLen; - public float TofCPageNumPos; - public string TofCSpaceChar; - public byte TofCLineSpacing; - public VE_Font Font; -} -[Serializable] -public struct PlaceKeeper -{ - public string PKTopContinueMessage; - public string PKBottomNote; - public VE_Font Font; - public PKColumn[] PKColumns; -} -[Serializable] -public struct PKColumn -{ - public float PKColPos; - public float PKColWidth; - public string PKColHeaderText; - public VE_Font PKColHeaderFont; -} -[Serializable] -public struct MetaSection -{ - public int Index; // do I need this to order them or will SecNumPositionAdj work? - public float SecNumPositionAdj; - public float SecTitlePositionAdj; - public float ColSByLevel; - public float TofCPositionAdj; - public float WidSAdjByLevel; -} -[Serializable] -public struct StepSectionLayout -{ - public float LastLineToStartStep; - public Int16 LineDrawingOption; - public float ColS; - public float ColT; - public float ColAbs; - public float WidT; - public Int16 PMode; - public Int16 MaxRNO; - public string MaxRNOTable; - public string ColRTable; - public string WidSTableEdit; - public string WidSTablePrint; - public float AdjRNOCol; - public Int16 EndMessagePos; - public string RNOWidthAlt; - public Int16 HLSWidthOVRD; - public Int16 SubPaginationWght; - public Int16 TextTitleAdjustment; - public float? TabPtsPerChar; // added for BGE - public string TableCenterPos; // string array with floats. - public string LowerLimitDivisor; // pagination - should it be in print? - 16bit: quoted float - public string NonLinkedStepNumber; - public string NonLinkedCautNoteNumber; - public string NonLinkedRNONumber; - //for VCSummer by jcb - public float SingleColumnRNOIndent; - public bool RNOWidthSameAsHighParent; - //end for VCSummer by jcb - //for Braidwood by jcb - public string RNOWidthAdj; - public string BoxLeftAdj; - public string UseRNOParentIdent; - public string DevNoteOrCautionTabOffset; - //end for Braidwood by jcb - //for Calvert Cliffs (bge) to force the order of Warnings, Cautions, Notes, and Messages - public string CautionNoteOrder; - - /* Format flags moved to here.... */ - public string Dev_Format; - public string EnhancedShortFormDev; - public string SpecialPageBreakFlag; - public string PaginateOnFirstSubstep; - public string PaginateOnFirstSubstep2X; - public string UseHalfLines; - public string TryToFillHalfOfPage; - public string CompressSteps; - public string DoSTExtraAtTop; - public string KeepStepsOnPage; - public string BreakOnSections; - public string ShowSectionTitles; - public string EndForSingle; - public string PaginateOnFirstSubstep3X; - public string PaginateOnLowerStepLevel; - public string CustomSpacing; - public string SplitStepInPrntStep; - public string LineAboveUnderSection; - public string PicaIgnoreFiveSixths; - public string SpaceForNoSecNumb; - public string PageBreakOnFirstBlankLine; - public string PutOnPageByItself; - public string PaginateAtHighestPaginLevel; - public string UseSTExtraRealValue; - public string DoSectionSeparatorLine; - public string TieTabToLevel; - public string HighLevelRNOBeforeAERSubsteps; - public string UseStepTypeWidthOverride; - public string UseStepTypeWidthOverrideEditPrint; - public string PartialStepCompression; - public string VirtualDotInHLSTab; - public string OverrideEnhancedTabs; - public string RNO; - public string OnlySingleColumn; - public string NullBox; - /* End of format flags */ - public VE_Font VertStyle; - public TopOfPg TopOfPage; - public Separtr Separator; -} -[Serializable] -public struct TopOfPg -{ - public float Row; - public float Col; - public VE_Font Font; -} -[Serializable] -public struct Separtr -{ - public Int16 SeparatorLocation; - public VE_Font Font; -} -[Serializable] -public struct StepSectionEdit -{ - public float ColSScreenAdj; - public float ScrnAdjRNOText; - public string ColRScreen; -} -[Serializable] -public struct SeqTabFmt -{ - public int Index; - public string TabToken; - public string TabFormat; - public string PrintTabFormat; -} -[Serializable] -public struct StepSectionPrint -{ - public float ImmStepHdrCol; - public string DiffContActBox; // introduced to flag different processing for wep2 asterisk (continuous) boxes. - public string ContActBoxOnSubSteps; // added for Point Beach (wep2) to use tab & text position on boxed substeps (cont. Action steps) - public Int16 SecColHdrforActPMode; - public string RNOSepString; - public float RNOSepLineLength; - public string HLStpSeparatorString; - public string HLRNOStpSeparatorString; - /* Format flags moved to here.... */ - public string LowerCaseRevNum; - public string UseXtraRevNumber; - public string SpecialLandscapeMode; - public string LimitWidToPageWid; - /* End of format flags */ - public VE_Font ModifiedTextStyle; - public VE_Font ImmStepHdrStyle; - public LeftJustify[] LeftJustifyList; - public string[] ImmStepHdr; -} -[Serializable] -public struct LeftJustify -{ - public int Index; - public float Size; -} -[Serializable] -public struct ReplaceStr -{ - public string Flag; - public string ReplaceWord; - public string ReplaceWith; -} -[Flags] -public enum E_ReplaceStr : uint -{ - High =0x0001, // Do ReplaceWords in HIGH LEVEL STEPS - RNO =0x0002, // Do ReplaceWords in RNOS - Caution =0x0004, // Do ReplaceWords in CAUTIONS - Note =0x0008, // Do ReplaceWords in NOTES - Table =0x0010, // Do ReplaceWords in TABLES - Substep =0x0020, // Do ReplaceWords in SUBSTEPS - Attach =0x0040, // Do ReplaceWords in ATTACHMENTS - Bkgd =0x0080, // Do ReplaceWords in BACKGROUNDS - DiffUnit =0x0100, // Do ReplaceWords ONLY for different UNIT # - TOC =0x0200, // Do in auto table-of-contents - StatTree =0x0400, - HLSSetpnt =0x0800, // Do ReplaceWords in HighLevelStep SETPoiNTs - Trans =0x1000, // Do ReplaceWords in TRANSITIONS - Setpoint =0x2000, // Do ReplaceWords in SETPOINTS - - // Case Sensitivity Flags - default is off (Case Sensitive Replace) - CaseInsens =0x0000C000, // Do ReplaceWords for all words thatmatch, regardless of case, - // and replace with the ReplaceWith string as is - CaseInsensFirst = 0x4000, // Do ReplaceWords for all words thatexactly match the ReplaceWord, - // except the case of the first character may be different - CaseInsensAll = 0x8000, // Do ReplaceWords for all words that match the ReplaceWord, regardless of case - - Partials =0x10000, // Do replace even on partial matches - Plackeep =0x20000, // Do replace in PlaceKeepers - InSecTitle =0x40000 // replace words in section titles -} -// all Step variables are strings here so that inheritance check for step variables can be done. -// Some will have float/integer values and should be treated as such in format code in Proms code. -[Serializable] -public struct Step -{ - public int Index; - public string Type; - public string ParentType; - public string ReadOnly; - public string Inactive; - public string ColOverride; - public string ColOverrideEdit; - public string WidthOverride; - public string WidthOverrideEdit; - public string Sep; - public string Prefix; - public string Suffix; - public string UnderlineTheseChar; - public string VertPos; - /* the following are xtraflags that have been moved, string is set to true if plant has flag */ - /* Flag name is listed as comment after each if different than name (change is made if generically used. */ - public string DoubleSpace; //DoubleRNOSpace - public string EnhancedStepNumFromPrev; - public string UseSmartTemplate; - public string AlwaysUseExtraLines; - public string SeparateBox; - public string SeparateBoxCautions; - public string SpaceDouble; // NoSpaceDoubleRNO - public string ReduceLineAfter; // ReduceLineAfterNoteAndCaut - public string SameLevel; // RNOSameLevel - public string BoldHighLevel; // BoldHighLevelRNO - public string OneLineBeforeTab; // OneLineBeforeNoteCautionTab - public string BoxIt; // DontBoxAC - public string Boxed; // BoxContinuousActions, BoxedSubsteps - public string XLines_StepFix; - public string Rebox; // ReboxCautNote - public string SpcHdr; // ImmStepSpcHdr - public string ContinueOnly; // RNOContinueOnly - public string SepAfterAER; // RNOSepAfterAER - public string UseAlternateStepBox; - public string UnderlineAfterDashSpace; - public string SpaceIn; // NoSpaceInNoteOrCaution - public string PageBreakOnStep; // PageBreakOnHighLevelStep, PageBreakOnCautions, PageBreakOnNotes - public string UseOldTemplate; - public string AlignNullTabWSectHead; - public string AlignHLSTabWithSectOvride; - public string TextSubFollowsTextStyle; - public string CautionOrNoteSubstepIndent; - public string TreatAsSequential; // TreatAND_ORasSequential - public string MatchUpRNO; // MatchUpRNOCautNote - public string InPageList; // RNOInPageList, StpCautNoteTabInPageList, HLSTextInPageList - public string CenterOneLineOnly; - public string SubTableGetsUp1Level; - public string Remember; // RememberCautionsAndNotes - public string CenterOneLineAdjust; - public string Break; // DontBreakCautionsOrNotes, DontBreakOnRNO, DontBreakOptEquiptmentList - public string BreakEquipmentList; // Need this one as separate from above because differentiate between DontBreakOptEquiptmentList - public string BreakCautionsNotesOnSubstps; - public string CenterTextWithinWidth; - public string NewlineAfter; // NoNewlineAfterRNO - public string StartLineWithDash; - public string BlankLineBeforeSubStep; - public string AlwaysTab; // AlwaysTabNote, AlwaysTabCaution, AlwaysTabCaution2 - //for Comanche Peak by jcb - public bool NoSpaceMultipleRNOs; - //end for Comanche Peak by jcb - public string MixCautionsAndNotes; - public string NumberHighLevel; // NumberHighLevelRNO - public string NumberWithLevel; // RNONumberWithLevel; - public string OffsetTab; - public string AdjHighLevelTab; // Added for FNP - high level RNO - public string ChildIndent; // Added for Callaway Backgrounds - public string LeftJustifyBorderless; // LJBorderlessTable - public string StepNumIfOnlyOne; // NoStepNumIfOnlyOneStep - public string LJTabs; - public string NumberSubs; // DontNumberRNOSubs - public string BulletOnContinuous; // BulletOnContinuous - public string StepNumberForHighLevel; // NoStepNumberForHighLevelRNO - public string SameRowAsParent; // Caution1SameRowAsParent, Caution2SameRowAsParent - public string CheckoffSameAsParent; // RNOCheckoffSameAsParent - public string AtLeastTwoDigits; // AtLeastTwoDigitsForHLS - public string UseInAcTable; // UseRNOTypeInAcTable - public string Number; // DontNumberHighLevelSteps - public string ThreeBlanksAbove; // ThreeBlanksAboveNotesCautions - public string CheckOffs; // NoCheckOffsInRNO - public string Quoted; // QuotedSubSteps - /* end of xtraflags */ - public VE_Font Font; - public Layout StepLayoutData; - public Edit StepEditData; - public Print StepPrintData; - public Tab TabData; -} -[Serializable] -public struct Edit -{ - public string ForeColor; // Doesn't exist in old format - See StepLayoutData - public string BackColor; // Doesn't exist in old format - See StepLayoutData - public string AcTable; - public string Searchable; - public TypeMenu TypeMenu; -} -[Flags] - // acceptence list for adding Tables, Cautions, Notes, Substeps, Next, Previous and RNO -public enum E_AccStep : uint -{ - AddingCaution = 1, - AddingNote = 2, - AddingRNO = 4, - AddingSub = 8, - AddingTable = 16, - AddingNext = 32, - AddingPrev = 64 -} -[Serializable] -public struct TypeMenu -{ - public string InMenu; // bool - list in menu if step is in Normal (Left-side) column - public string RnoInMenu; // bool - list in menu if step is in RNO (right-side) column - public string MenuItem; // for migration, if alternatename or rnoalternate name, use it, otherwise it's type - public string RnoMenuItem; // for migration, if alternatename or rnoalternate name, use it, otherwise it's type - public string NoChgReason; // if not in any menu, list reason for User Interface - public string AlternateNameList; // put indices of alternate types in a list (string) - //public AlternateName[] AlternateNames; // during migration from 16-bit, this is textype values -} -//[Serializable] -//public struct AlternateName -//{ -// public string Type; // Step Types that can be included/mixed in the menu (caution/notes) -//} -[Serializable] -public struct Print -{ - public string ForeColor; // Doesn't exist in old format - See StepLayoutData - public string BackColor; // Doesn't exist in old format - See StepLayoutData - public string PosAdjust; - public string HLSLength; // added for wolf creek checklist to define max string len of HLS (checklist steps) - public string Justify; // added for wolf creek checklist procedures. -} -[Serializable] -public struct Layout -{ - public string ForeColor; - public string BackColor; - public string STExtraSpace; - public string STBoxindex; - public string EveryNLines; - public string SpaceBefore; // = 0 - public string SpaceAfter; // 1 line (in points) - public string AlwaysUpperCase; - public string PageBreakAtTypeChange; - public string AlignWithParentTab; -} -[Serializable] -public struct Tab -{ - //for VCSummer by jcb - public bool RNOExcludeMacros; - public bool IsTransition; - public float MacroTabAdjust; - //end for VCSummer by jcb - public float RNOAdjustTabSize; // added for SHE to align rno whose parent is AND - public string IdentEdit; - public string Ident; - public string IdentAltPrint; - public string RNOIdentEdit; - public string RNOIdent; - //public string IdentEditWid; - public string IdentWid; - //public string RNOIdentEditWid; - //public string RNOIdentWid; - public string Justify; // from tbstyle - None, CENTER, LEFT, RIGHT - public string UsePreviousStyle; - public string NoTrim; - public COMacro[] MacroList; - public VE_Font Font; - public TabBullet Bullet; -} -[Serializable] -public struct COMacro -{ - public string Name; - public string Macro; - public string Grouping; - public string NotInRNO; - public string LocWithXOff; -} -[Serializable] -public struct Box -{ - public int Index; - public float Start; - public float End; - public float TxtStart; - public float TxtWidth; - public float Height; - public float TabPos; - public sbyte TxtRowAdj; - public string BXURC; // Upper Right Corner, etc. - public string BXHorz; - public string BXULC; - public string BXVert; - public string BXMLS; - public string BXMRS; - public string BXLRC; - public string BXLLC; - public string BXMID; - public string BXLHorz; - public string BXUMID; - public string BXLMID; - public VE_Font Font; -} -[Serializable] -public struct Trans -{ - public string DelimiterForTransitionTitle; - public string StepSubstepDelimeter; - public string ThroughString; - /* Format flags moved to here.... */ - public string SpecifiedSubstepsOnly; - public string CapsTransitions; - public string CapTranStep; - public string Underline; - public string TStepNoFlag; - public string LowerCaseTranNumber; - public string UpcaseTranAnd; - public string SuppressAndInTran; - public string Cap1stCharTrans; - public string UseTransitionModifier; - public string UseSpecificTransitionModifier; // added for BGE. Modifier, i.e. page num, is within the specific format string that defines the transition - public string UseSpecificPageNo; // added for BGE. Use specific page number instead of 'Next Page' or 'Previous Page' - public string UseSecTitles; - public string HardSpTranProcNumb; - public string XchngTranSpForHard; - public string AbsoluteTransitionUpdate; - public string LowerCaseStepInTran; - public string DoSectionTransitions; - public bool AdjustStepTransitionText; - public bool BoldTransitionExceptHLS; - /* End of Format flags */ - public TransTypes[] TransTypeData; -} -[Serializable] -public struct TransTypes -{ - public int Index; - public byte TransType; - public string TransFormat; - public string TransMenu; - public string TransUI; -} -[Serializable] -public struct RO -{ - /* Format flags moved to here.... */ - public string AllUnits; - public string UpRoAftrDash; //UpSetpntAftrDash; - public string UpRoImmAftrDashSpace; //New - used this to differentiate from already (incorrect) existing UpRoAftrDash - public string UpcaseAllRoUnits; //UpcaseAllSetpointUnits; - public string CapHighRo; //CapHighSetpnt; - public string CapRoIfLastLower; //Old CapsPIFLastLower; - public string CapSPIfLastLower; //Adding in CapSPIFLastLower; - public string UpRoIfPrevUpper; //UpSpIfPrevUpper - public string UnderlineRo; //UnderlineSetpoints - public string CapFirstLetterInHighRO; //CAPFIRSTLETTERINHIGHSP - /* End of Format flags */ -} -[Serializable] -public struct TabBullet -{ - public string Separate; - public VE_Font Font; -} - -[Flags] -public enum E_TransitionMenus : uint -{ - None = 0, - ProcCur = 0x0001, - ProcMenu = 0x0002, - SectCur = 0x0004, - SectDefault = 0x0008, - SectMenuAny = 0x0010, - SectMenuStep = 0x0020, - StepAllowNone = 0x0040, - StepFirst = 0x0080, - StepLast = 0x0100 -} -[Flags] -public enum E_TransFormatXlate : uint -{ - None = 0, - Step = 1, - Range = 2, - Section = 4, - Procedure = 8, - Page = 16 -} - -#endregion - -/////////////////////////// -namespace fmtxml -{ - public partial class FmtFileToXml - { - #region localdata - public XtraFlgs BaseXtraFlags; // used to set up all flags for the Base format. - public XtraFlgs SubXtraFlags; - public static int MAXSTEPS = 47; - public static int MAXBOXES = 12; - public static int MAXTABS = 20; - public static int MAXTRANS = 15; - public static int MAXCHECKOFFS = 18; - public static int MAXCHKHEADINGS = 5; - public static int MAXSEQ = 9; - public static int MAXREPLACE = 60; - #region XtraFlagBits - // XtraFlag translation fields... - // - // XtraFlag[0] from 16-bit... - public static int DOUBLERNOSPACE = 0x0001; - public static int MIXCAUTIONSANDNOTES = 0x0002; - public static int ALWAYSUSEEXTRALINES = 0x0008; - public static int ALWAYSTABNOTE = 0x0010; - public static int ALWAYSTABCAUTION = 0x0020; - public static int SPECIALPAGEBREAKFLAG = 0x0080; - public static int DONTPAGINATEONFIRSTSUBSTEP = 0x0200; - public static int IMPERFECTSTRUCTURE = 0x0800; - public static int DONTUSEHALFLINES = 0x1000; - public static int FORTRANFORMATNUMBERS = 0x2000; - public static int ALLUNITS = 0x4000; - public static int CAPSTRANSITIONS = 0x8000; - - // XtraFlag[1] from 16-bit... - public static int CAPTRANSTEP = 0x0001; - public static int TSTEPNOFLAG = 0x0004; - public static int LOWERCASETRANNUMBER = 0x0008; - public static int CONDENSEDCHANGEBAR = 0x0020; - public static int DOREVDATE = 0x0040; - public static int SEPARATEBOX = 0x0080; - public static int NUMBERHIGHLEVELRNO = 0x0100; - public static int ALTERNATEFOLDOUTPAGES = 0x1000; - public static int DONTTRYTOFILLHALFOFPAGE = 0x8000; - - // XtraFlag[2] from 16-bit... - public static int DONTCAPITALIZETITLE = 0x0001; - public static int NOSPACEDOUBLERNO = 0x0004; - public static int DONTOFFSETTAB = 0x0010; - public static int UPSETPNTAFTRDASH = 0x0020; - public static int LOWERCASEREVNUM = 0x0040; - public static int DONOTCOMPRESSSTEPS = 0x0080; - public static int REDUCELINEAFTERNOTEANDCAUT = 0x0100; - public static int RNOSAMELEVEL = 0x0200; - public static int BOLDHIGHLEVELRNO = 0x2000; - public static int ONELINEBEFORENOTECAUTIONTAB = 0x4000; - public static int CONTINUOUSCHANGEBARS = 0x8000; - - // XtraFlag[3] from 16-bit... - //public static int CHECKOFFONALLSTEPS = 0x0004; - public static int DONTBOXAC = 0x0020; - public static int USETOPCONTINUEMESSAGEATEND = 0x0080; - public static int UPCASETRANAND = 0x2000; - public static int UPCASEALLSETPOINTUNITS = 0x4000; - - // XtraFlag[4] from 16-bit... - public static int DEV_FORMAT = 0x0001; - public static int DONTDOSTEXTRAATTOP = 0x0004; - public static int XLINES_STEPFIX = 0x0008; - public static int REBOXCAUTNOTE = 0x0010; - public static int IMMSTEPSPCHDR = 0x0020; - public static int FLOATINGCONTINUEMESSAGE = 0x0080; - public static int ABSOLUTEFIXEDCHANGECOLUMN = 0x0200; - public static int LJBORDERLESSTABLE = 0x0800; - public static int SUPPRESSANDINTRAN = 0x1000; - public static int CAPHIGHSETPNT = 0x2000; - public static int CAPFIRSTLETTERINHIGHSP = 0x4000; - public static int CAPSPIFLASTLOWER = 0x8000; - - // XtraFlag[5] from 16-bit... - public static int ALTERNATEFLOATINGFOLDOUT = 0x0001; - public static int WRAPSAMEASEDIT = 0x0002; - public static int KEEPSTEPSONPAGE = 0x0004; - public static int SPECIFIEDSUBSTEPSONLY = 0x0008; - public static int THREEBLANKSABOVENOTESCAUTIONS = 0x0010; - public static int IMPERFECTSUBSTEP = 0x0040; - public static int DONTBREAKONSECTIONS = 0x0080; - public static int NOSTEPNUMIFONLYONESTEP = 0x0100; - public static int SHOWSECTIONTITLES = 0x0200; - public static int LJTABS = 0x0400; - public static int DONTNUMBERRNOSUBS = 0x0800; - public static int DROPCHECKOFF = 0x4000; - public static int NOCHECKOFFSINRNO = 0x8000; - - // XtraFlag[6] from 16-bit... - - public static int CHGBARMESSAGEFROMEDIT = 0x0001; - public static int CHANGEBARTORNOSEP = 0X0002; - public static int CHGSTYLEPERSECTION = 0x0008; - public static int SECTIONLEVELFOLDOUTS = 0x0010; - public static int BOXCONTACTIONS = 0x0020; - public static int DOSECTIONTRANS = 0x0040; - public static int UPSPIFPREVUPPER = 0x0100; - public static int CONTINUESECTIONHEADER = 0x0200; - public static int GLOBALPROCINFO = 0x0400; - public static int COMPRESSHPSUB = 0x0800; - public static int BULLETONCONTINUOUS = 0x1000; - public static int CANCELSECTITLESONS2 = 0x2000; - public static int NOENDFORSINGLE = 0x4000; - public static int USEMETASECTIONS = 0x8000; - - // XtraFlag[7] from 16-bit... - - public static int RNOCONTINUEONLY = 0x0001; - public static int CAP1STCHARTRANS = 0x0002; - public static int DONTPAGINATEONFIRSTSUBSTEP3X = 0x0004; - public static int RNOSEPAFTERAER = 0x0008; - public static int REVDATEWITHFORWARDSLASH = 0x0010; - public static int USEALTERNATESTEPBOX = 0x0040; - public static int CANCELSECTITLESONS1 = 0x0080; - public static int SPECIALSTEPSFOLDOUT = 0x0100; - public static int UNDERLINEAFTERDASHSPACE = 0x0200; - public static int NOSPACEINNOTEORCAUTION = 0x0400; - public static int USEXTRAREVNUMBER = 0x0800; - public static int UNDERLINESETPOINTS = 0x1000; - public static int DOSECTIONTRANSTYPEB = 0x2000; - public static int PAGINATEONLOWERSTEPLEVEL = 0x4000; - public static int USETRANSITIONMODIFIER = 0x8000; - - // XtraFlag[8] from 16-bit... - - public static int CUSTOMSPACING = 0x0001; - public static int ENHANCEDSHORTFORMDEV = 0x0002; - public static int PAGEBREAKONHIGHLEVELSTEP = 0x0010; - public static int PAGEBREAKONCAUTIONS = 0X0040; - public static int PAGEBREAKONNOTES = 0X0080; - public static int ALIGNNULLTABWSECTHEAD = 0X0100; - public static int DONTUSESECTITLES = 0x0200; - public static int TEXTSUBFOLLOWSTEXTSTYLE = 0x0400; - public static int TRANSPROCTITLEINPAREN = 0x0800; - public static int HARDSPTRANPROCNUMB = 0x1000; - public static int TREATANDORASSEQUENTIAL = 0x2000; - public static int DONTSPLITSTEPINPRNTSTEP = 0x4000; - public static int LINEABOVEUNDERSECTION = 0x8000; - - // XtraFlag[9] from 16-bit... - - public static int PICAIGNOREFIVESIXTHS = 0x0004; - public static int SPACEFORNOSECNUMB = 0x0008; - public static int NONEDITABLESTEPS = 0x0010; - public static int BOXEDSUBSTEPS = 0x0020; - public static int DONTNUMBERHIGHLEVELSTEPS = 0x0040; - public static int NOSTEPNUMBERFORHIGHLEVELRNO = 0x0400; - public static int PROMPTFORCAUTINTYPE = 0x0800; - public static int CAUTION1SAMEROWASPARENT = 0x1000; - public static int WOLFCREEKBACKGROUNDFORMAT = 0x4000; - public static int ENHANCEDSTEPNUMFROMPREV = 0x8000; - - // XtraFlag[10] from 16-bit... - - public static int CONTROLUNDERLINESTYLE = 0x0001; - public static int MULTIPLECHANGEIDS = 0x0008; - public static int USEMULTILINESECTIONTITLE = 0x0010; - public static int PAGEBREAKONFIRSTBLANKLINE = 0x0040; - public static int DONTPRINTNOTITLE = 0x0080; - public static int NOTESTOFOOTNOTES = 0x0400; - public static int UNDSPECIALSTEPSFOLDOUT = 0x0800; - public static int PUTONPAGEBYITSELF = 0x4000; - public static int PRINTPHONELIST = 0x8000; // USEPHONELIST in 16-bit code - - // XtraFlag[11] from 16-bit... - - public static int SECTITLECONTINUE = 0x0001; - public static int CANCELSECTITLESONE0 = 0x0002; - public static int METASECTENDMESSAGE = 0x0004; - public static int RNONUMBERWITHLEVEL = 0x0008; - public static int CANCELSECTITLESONE2 = 0x0040; - public static int COMPRESSHPSUPER = 0x2000; - - // XtraFlag[12] from 16-bit... - - public static int MATCHUPRNOCAUTNOTE = 0x0001; - public static int PAGINATEATHIGHESTPAGINLEVEL = 0x0008; - public static int USELONGPROCTITLES = 0x0100; - public static int SPECIALLANDSCAPEMODE = 0x1000; - public static int RNOINPAGELIST = 0x2000; - public static int STPCAUTNOTETABINPAGELIST = 0x4000; - public static int READONLYTYPEINCONTMSG = 0x8000; - - // XtraFlag[13] from 16-bit... - - public static int CENTERONELINEONLY = 0X0001; - public static int TIETABTOLEVEL = 0x0002; - public static int ACCESSORYDOCSINDUPLEX = 0x0008; - public static int FOLDOUTSINDUPLEX = 0x0010; - public static int USESTEXTRAREALVALUE = 0x0040; - public static int SUBTABLEGETSUP1LEVEL = 0x0080; - public static int DONTCOUNTFOLDOUTPAGES = 0x0200; - public static int SEARCHALLREPLACEWORDS = 0x1000; - - // XtraFlag[14] from 16-bit... - - public static int REMEMBERCAUTIONSANDNOTES = 0x0001; - public static int RTFADJUSTMENTS = 0x0008; - public static int CENTERONELINEADJUST = 0x0010; - public static int COUNTALLSUBLEVELS = 0x0020; - public static int DONTREPLACEWORDSINROS = 0x0080; - public static int HIGHLEVELRNOBEFOREAERSUBSTPS = 0x0100; - public static int UNDERLINEALLMETATITLES = 0x0200; - public static int DONTBREAKCAUTIONSORNOTES = 0x0400; - public static int BOLDONLYSECTIONZERO = 0x0800; - public static int DONTBREAKONRNO = 0x1000; - public static int RNOCHECKOFFSAMEASPARENT = 0x2000; - public static int USESTEPTYPEWIDTHOVERRRIDE = 0x4000; - public static int WOLFCREEKCKLFORMAT = 0x8000; - - // XtraFlag[15] from 16-bit... - - public static int DONTPAGINATEONFIRSTSUBSTEP2X = 0x0001; - public static int USESTEPTYPEWIDTHOVERRRIDEEDITPRINT = 0x0002; - public static int PARTIALSTEPCOMPRESSION = 0x0004; - public static int USESMARTTEMPLATE = 0x0008; - public static int CHECKOFFONHLSONLY = 0x0010; - public static int CAUTION2SAMEROWASPARENT = 0x0080; - public static int CENTERTEXTWITHINWIDTH = 0x0200; - public static int DONTBREAKEQUIPMENTLIST = 0x0400; - public static int ALWAYSTABCAUTION2 = 0x1000; - public static int VIRTUALDOTINHLSTAB = 0x2000; - public static int IMPERFECTSTRUCTUREPLUS4 = 0x4000; - - // XtraFlag[16] from 16-bit... - - public static int USERNOTYPEINACTABLE = 0x0002; - public static int ABSOLUTETRANSITIONUPDATE = 0x0004; - public static int SEPARATEBOXCAUTIONS = 0x0008; - public static int HLSTEXTINPAGELIST = 0x0020; - public static int LOWERCASESTEPINTRAN = 0x0080; - public static int CHANGEBARSONLINKEDTEXT = 0X1000; - public static int QUOTEDSUBSTEPS = 0x2000; - - // XtraFlag[17] from 16-bit... - - public static int OVERRIDEENHANCEDTABS = 0x0008; - public static int NONEWLINEAFTERRNO = 0x0020; - public static int DOSECTIONSEPARATORLINE = 0x0040; - public static int PARENSONEXTPAGENUMTRANS = 0x0080; - public static int ATLEASTTWODIGITSFORHLS = 0x0100; - public static int DONTBREAKOPTEQUIPMENTLIST = 0x0200; - public static int PAGELISTCHANGEIDSWITHCOMMAS = 0x0400; - public static int DONTSTARTLINEWITHDASH = 0x0800; - public static int NOBLANKLINEBEFORESUBSTEP = 0x1000; - public static int DONTBREAKCAUTIONSNOTESONSUBSTPS = 0x2000; - public static int DONTCONVERTCARETTODELTA = 0x4000; - - // XtraFlag[18] (was VEAIRFLAG) from 16-bit... - public static int NORNO = 0x0002; - public static int ONLYSINGLECOLUMN = 0x0008; - public static int NULLBOX = 0x0010; - public static int XCHNGTRANSPFORHARD = 0x0020; - public static int WOLFCREEKCKLBACKGNDFORMAT = 0x0040; - #endregion - // use the following to define which step the AlternateStepType data is associated with. - // i.e. look in new.def to determine the #defines for the original step type associated - // with the name of the define. Note that all have been incremented by 1 since these are - // indices into the step list and we introduced 'Base' at index 0. - // (ALT_HIGH, ALT_CONTINUOUS, ALT_IMMEDIATE, ALT_LOSSOFAC, ALT_HIGH5) - private int[] altsteps = { 2, 9, 3, 18, 41 }; // before increment of 1: { 1, 8, 2, 17, 40 }; - - // use the following to define which step the AlternateSubType data is associated with. - // (see above) (ALT_STANDARD, ALT_AND, ALT_OR, ALT_EQUIPMENTLIST, ALT_EQUIPMENTWBLANK, ALT_EXPLICITAND - private int[] altsubsteps = {1, 4, 5, 11, 14, 19, // before increment of 1: {0, 3, 4, 10, 13, 18, - // ALT_IMPLICITOR, ALT_PARAGRAPH, ALT_EQUIPMENTOPT, ALT_EQUIPMENTOPTWBLANK, ALT_TITLEWITHTEXTRIGHT - 35, 24, 30, 31, 42, // before increment of 1: 34, 23, 29, 30, 41, - // ALT_TITLEWITHTEXTBELOW, ALT_CONTACSEQUENTIAL, ALT_CONTACAND, ALT_CONTACOR, ALT_CONTACPARAGRAPH - 43, 44, 45, 46, 47}; // before increment of 1: 42, 43, 44, 45, 46}; - - private string[] StepTypes = { - "Base", "Substep","High","Immediate","And","Or","Caution","Note","Table","Continuous", - "AERTable","EquipmentList","Title","PageNumber","EquipmentWBlank","ProcNumber", - "RevNumber","AccPages","LossOfAC","ExplicitAnd","Caution1","Caution2", - "Note1","Note2","Paragraph","Default","Note3","Caution3","Note4","Caution4", - "EquipmentOpt","EquipmentOptWBlank","Note5","BorderlessAERTable","BorderlessTable", - "ImplicitOr","Figure","AERFigure","BorderlessFigure","BorderlessAERFigure", - "RNOType","High5","TitleWithTextRight","TitleWithTextBelow", - "ContAcSequential","ContAcAnd","ContAcOr","ContAcParagraph" - }; - private string[] ParentTypes = { - "", "Base","Base","High","Substep","Substep","Base","Base","Base","High", - "Table","Substep","Base","Title","EquipmentList","Title", - "Title","Base","High","And","Caution","Caution", - "Note","Note","Substep","Substep","Note","Caution","Note","Caution", - "EquipmentList","EquipmentWBlank","Note","AERTable","Table", - "Or","Base","Figure","Figure","AERFigure", - "High","High","Title","Title", - "Substep","And","Or","Paragraph" - }; - private string[] Inactive = { - "False", "False","False","False","False","False","False","False","False","False", - "False","False","False","True","False","True","True","True","False","False","False","False", - "False","False","False","True","False","False","False","False","False","False","False","False","False", - "False","False","False","False","False","False","False","False","False","False","False","False","False" - }; - private string[] Searchable = { - "False", "True", "True","True","True", "True", "True","True","True","True", - "True", "True", "False","False","True", "False","False","True","True","True","True","True", - "True","True","True","False","True","True","True","True","True","True","True","True","True", - "True","True","True","True","True","True","True","False","False","True","True","True","False" - }; - private string[] TypeMenuItem = { - "Base", "Sequential Substep", "Standard High Level Step","Immediate Action Step","AND", "OR", "Caution","Note","Centered Table","Continuous Action Step", - "AER Table", "Equipment List", "Title","Page Number","Equipment Preceded by Blank Line", "Procedure Number", - "Rev Number","Acc Pages","Boxed High Level Step","Explicit AND","Caution 1","Caution 2", - "Note 1","Note 2","Paragraph","Default","Note 3","Caution 3","Note 4","Caution 4", - "Optional Equipment List","Optional Equipment with Blank Line","Note 5","AER Table Without Border","Centered Table Without Border", - "Implicit OR","Centered Figure","AER Figure","Centered Figure Without Border","AER Figure Without Border", - "RNO Type","Alternate High Level Step","Title With Text Right","Title With Text Below", - "Continuous Action Sequential","Continuous Action AND","Continuous Action OR","Continuous Action Paragraph" - }; - private string[] NoChangeTypeReason = { - "Base Type - No change at this level", null, null,null,null, null, null,null,null,null, - null, null, null,null,null, null,null,null,null,null,null,null,null,null,null,null,null,null,null,null, - null,null,null,null,null,null,null,null,null,null,"RNO - No change allowed",null,null,null, - null,null,null,null - }; - private string[] RnoInMenu = { - null, "True",null,null,"True","True",null,null,"True",null,"False","True",null,null,"True",null, - null,null,null,"True",null,null,null,null,"True",null,null,null,null,null,"True","True",null,"False","True", - "True","True","False","True","False","False",null,null,null,"True","True","True","True" - }; - - /* - * from the 16-bit code, the following step type attributes/strings were defined. This was found in \promnt\lib\edit\slectyp.c - * High level types: - * "High Level Step","Continuous Action Step","Immediate Action Step","Boxed High Level Step","Alternate High Level Step" - * int far HighTypeValue[]={HIGH,CONTINUOUS,IMMEDIATE,LOSSOFAC,HIGH5}; - * Substep types: - * char *SubType[NBRSUB]={ - * "Sequential", - * "AND", - * "OR", - * "Equipment List", - * "Equipment Preceded by Blank Line", - * "Explicit AND", - * "Implicit OR", - * "Paragraph", - * "Optional Equipment List", - * "Optional Equipment with Blank Line", - * "Continuous Action Sequential", - * "Continuous Action AND", - * "Continuous Action OR", - * "Continuous Action Paragraph", - * "Title With Text To The Right", - * "Title With Text Placed Below" - * int SubTypeValue[NBRSUB]={STANDARD,AND,OR,EQUIPMENTLIST,EQUIPMENTWBLANK,EXPLICITAND,IMPLICITOR,PARAGRAPH, - * EQUIPMENTOPT,EQUIPMENTOPTWBLANK,CONTACSEQUENTIAL,CONTACAND,CONTACOR,CONTACPARAGRAPH,TITLEWITHTEXTRIGHT,TITLEWITHTEXTBELOW - * - */ - - private string[] WinColors = - { - "black","blue","green","cyan","red","magenta", - "brown","lightgray","darkgray","ligthblue", - "lightgreen","lightcyan","lightred","lightmagenta", - "yellow","white" - }; - /* - * The ?. characters have been added to the DefaultTransStr. This string is used in the - * code to determine the text that gets resolved for a transition. - * - * ?. means the following (for !section transitions) - * for proc - if current, don't put out text, if !current, put out text - * for sect - if curproc: if cursect, don't put out text; if !cursect, put out text - * if !curproc: if default sect, don't put out text; if !default sect, put out text - */ - private string[] DefaultTransStr = - { - "{Proc Num}, {Proc Title}, Step {First Step}", - "{First Step}", - "{First Step}, {.}, {.}, {.} and {Last Step}", - "{First Step} thru {Last Step} of {?.Proc Num}, {?.Proc Title}, {?.Sect Hdr}", - // The section transition had
for the following, but the 16-bit code - // put in the number & title, so 32-bit uses '{?.Sect Hdr}'. This will need to be - // tested for formats that actually use
: AEP, BGE, FNP, NSP. OHLP did not. - "{?.Sect Hdr}, Step {First Step}", - "{Proc Num}, {Proc Title}, {?.Sect Hdr}, Step {First Step}" - }; - - #region SectionTransitionVariables - private string DefaultSectionTransStrTypeB = "{Sect Num}, {Sect Title}, {First Step}"; - private string DefaultSectionTransStrTypeBNone = "{Sect Hdr}, Step {SectNum}{First Step}"; //original - private string[] DefaultSectionTransFormatStr = - { - "{Proc Num}, {Proc Title}, Step {Sect Num}{First Step}", - "{Sect Num}{First Step}", - "{Sect Num}{First Step}, {.}, {.}, {.} and {Sect Num}{Last Step}", - "{Sect Num}{First Step} thru {Sect Num}{Last Step}", - "{Sect Num}, Step {?.Sect Num}{First Step}", - "{Sect Hdr}, Step {SectNum}{First Step}" - }; - // made up the following strings so that the token processing for setting - // up the menu enums would work as expected. These are only used in this migration - // code to set up the enums. The above (DefaultSectionTransFormatStr) is used for - // the actual formatting of the strings in the new code. - private string[] DefaultSectionTransTokenStr = - { - "{Proc Num}, {Proc Title}, Step {First Step}", - "{First Step} ( Within the current section )", - "{First Step}, {.}, {.}, {.} and {Last Step}", - "{Sect Num}{First Step} thru {Sect Num}.{Last Step}", - "{Sect Num}{First Step} ( To a different section )", - "{Sect Num}{First Step}, {Sect Title} ( To a different section )" - }; - - #endregion - - private Int16[] Tabindx; - private BinaryReader brFmt; - private string fmtName; - - private static Dictionary dicChar; - #endregion - public FormatData BaseFormat; - public static List> StepParentList = new List>(); - public static List> StepList = new List>(); - public bool HasBase; - public FormatData MyFormat; - public string MyPath; - public FmtFileToXml(FmtFileToXml gendata, string alias, string nm, string path) - { - //DateTime tStart = DateTime.Now; - MyPath = path; - if (gendata == null) - HasBase = false; - else - { - HasBase = true; - BaseFormat = gendata.MyFormat; - - } - BuildDictionaryText(); - fmtName = alias; - //if (fmtName.ToUpper() != "BGEALN" && fmtName.ToUpper() != "BASE") return; - //if (fmtName.ToUpper() != "OHLP" && fmtName.ToUpper() != "BASE" && fmtName.ToUpper() != "WCN2") return; - //if (fmtName.ToUpper() != "WCNCKL" && fmtName.ToUpper() != "BASE") return; - //if (fmtName.ToUpper() != "NSPARP" && fmtName.ToUpper() != "BASE") return; - //if (!fmtName.ToUpper().StartsWith("FNP") && fmtName.ToUpper() != "BASE") return; - try - { - LoadFormatFile(nm + ".fmt", ref SubXtraFlags); - } - catch (Exception ex) - { - MessageBox.Show("Format name FAILED = " + nm, ex.Message); - } - //Console.WriteLine(" {0:0.000} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds); - } - #region GetBinaryReaderData - private byte[] GetByteArray(BinaryReader br, int len) - { - byte[] input; // = new byte[len + 1]; - input = br.ReadBytes(len); - return input; - } - - public static Regex Reg2; - public static void BuildDictionaryText() - { - #region ExtraUnicodeConvert - dicChar = new Dictionary(); - // note that the following characters needed adjusted, i.e. the - // default conversion to unicode did not result in the desired letter, - // so an extra conversion was needed. - dicChar[966] = 216; // dist zero - dicChar[201] = 274; // capital E with macron (line above) - dicChar[127] = 916; // delta - dicChar[964] = 947; // little gamma - dicChar[920] = 952; // little theta - dicChar[915] = 961; // little rho - dicChar[191] = 964; // little tau - dicChar[8801] = 8773; // approx. equal - dicChar[8734] = 8857; // circle w/ dot - dicChar[7] = 9679; // bullet - dicChar[8976] = 9830; // diamond - // dicChar[15] = 167; // grave 15=F; 167=xA7 - #endregion - #region DefinedLineDrawChars - // do all of the box/line draw characters to unicode. These were part - // of the Volian Line Draw font. - dicChar[179] = 9474; // b3 - dicChar[180] = 9508; // b4 - dicChar[181] = 9569; - dicChar[182] = 9570; - dicChar[183] = 9558; - dicChar[184] = 9557; - dicChar[185] = 9571; // b9 - dicChar[186] = 9553; // ba - dicChar[187] = 9559; - dicChar[188] = 9565; - dicChar[189] = 9564; - dicChar[190] = 9563; - dicChar[191] = 9488; - dicChar[192] = 9492; // c0 - dicChar[193] = 9524; - dicChar[194] = 9516; - dicChar[195] = 9500; - dicChar[196] = 9472; - dicChar[197] = 9532; // C5 - dicChar[198] = 9566; - dicChar[199] = 9567; - dicChar[200] = 9562; - dicChar[201] = 9556; - dicChar[202] = 9577; // ca - dicChar[203] = 9574; - dicChar[204] = 9568; - dicChar[205] = 9552; - dicChar[206] = 9580; - dicChar[207] = 9575; - dicChar[208] = 9576; // d0 - dicChar[209] = 9572; - dicChar[210] = 9573; - dicChar[211] = 9561; - dicChar[212] = 9560; - dicChar[213] = 9554; // d5 - dicChar[214] = 9555; - dicChar[215] = 9579; - dicChar[216] = 9578; - dicChar[217] = 9496; - dicChar[218] = 9484; // da - dicChar[219] = 9608; - dicChar[220] = 9604; - dicChar[221] = 9612; - dicChar[222] = 9616; - dicChar[223] = 9600; - #endregion - #region StyleTokens - - /* - * char AttrOnList[7] = {0xd3,0xd5,0xae,0xb2,SUBSCRIPT_ON,SUPERSCRIPT_ON,0}; - char AttrOffList[7] = {0xd4,0xd6,0xaf,0xdd,SUBSCRIPT_OFF,SUPERSCRIPT_OFF,0}; - int AttrList[7] = {BUNDERLINE_WORD, BOLD_WORD, UNDERLINE_WORD, - ITALICS_WORD, SUBSCRIPT_WORD, SUPERSCRIPT_WORD,0}; - - dicChar[13] = 213; //bold on 13=D -> 213=xD5 - //bold off ?? -> 214=xD6 - dicChar[16] = 244; //underline on 16=x10 -> 244=xF4 - //underline off ?? -> 246=xF6 - //bold&uline on ?? -> 211=xD3 - //bold/uline off ?? -> 212=xD4 - dicChar[18] = 198; //superscript on 18=x12 -> 108=xC6 - //superscript off ?? -> 109=xc7 - dicChar[19] = 209; //subscript on 19=x13 -> 209=D9 - //subscript off ?? -> 166->xA6 - - - // see exe\edit\vestdstp.c for some of these.... - dicChar[1] = 161; //Bold word or toggle - dicChar[2] = 162; //Underline word - // not used except in TRANSITIONS dicChar[3] = 164; //Bold/Uline word - // not used except in TRANSITIONS dicChar[4] = 165; //Italics word - dicChar[5] = 111; //Bold/Italics word - dicChar[6] = 111; //Bold/Uline word - //dicChar[7] = 111; //Bold/Uline/Italics word - dicChar[8] = 111; //super word - dicChar[9] = 111; - dicChar[10] = 111; - dicChar[11] = 111; - dicChar[12] = 111; - dicChar[14] = 111; - // ... 9-15 - dicChar[16] = 111; //subscript word - dicChar[17] = 111; - // ... 17-31 - dicChar[20] = 162; - dicChar[21] = 162; - dicChar[22] = 162; // toggle underline - dicChar[25] = 163; //subscript on 25=x19; 163=xA3 - dicChar[24] = 122; //subscript off (0x18) - dicChar[23] = 123; // underline next word - dicChar[31] = 163; - dicChar[26] = 163; - dicChar[27] = 163; - dicChar[28] = 163; - dicChar[29] = 163; - dicChar[30] = 163; - * */ - #endregion - - char[] creg = new char[dicChar.Count]; - int i = 0; - foreach (int ic in dicChar.Keys) - { - creg[i] = (char)ic; - i++; - } - Reg2 = new Regex("[" + new string(creg) + "]"); - } - public static string ReplaceChars(Match m) - { - char[] cs = m.Value.ToCharArray(); - for (int i = 0; i < cs.Length; i++) - { - if (dicChar.ContainsKey((int)(cs[i]))) - { - int iKey = (int)cs[i]; - int iValue = dicChar[iKey]; - //if(iKey<32 && iKey!=7)Console.WriteLine(" {0} {1} {2} {3}", iKey, (char)iKey, iValue, (char)iValue); - cs[i] = (char)iValue; - } - } - return new string(cs); - } - public static string ConvertText(string s1) - { - string s2 = Reg2.Replace(s1, new MatchEvaluator(ReplaceChars)); - return s2; - } - private string GetStringFromByteNoConvert(Byte[] barray, int offset) - { - offset--; - StringBuilder inpstr = new StringBuilder(); - byte input = 0; - int cnt = 0; - bool stillread = true; - do - { - input = barray[offset++]; - if (input == 0) stillread = false; - inpstr.Append(Convert.ToChar(input)); - cnt++; - } while (stillread); - - string retstr = inpstr.ToString(); - retstr = retstr.Replace('<', '{'); - retstr = retstr.Replace('>', '}'); - //retstr = ConvertText(retstr); - if (retstr.Substring(retstr.Length - 1, 1) == "\0") return retstr.Substring(0, retstr.Length - 1); - return retstr; - } - private string GetStringFromByte(Byte[] barray, int offset) - { - offset--; - StringBuilder inpstr = new StringBuilder(); - byte input = 0; - int cnt = 0; - bool stillread = true; - do - { - input = barray[offset++]; - if (input == 0) stillread = false; - inpstr.Append(Convert.ToChar(input)); - cnt++; - } while (stillread); - - string retstr = inpstr.ToString(); - retstr = retstr.Replace('<', '{'); - retstr = retstr.Replace('>', '}'); - retstr = ConvertText(retstr); - if (retstr.Substring(retstr.Length - 1, 1) == "\0") return retstr.Substring(0, retstr.Length - 1); - return retstr; - } - static public string GetStringUntilNull(BinaryReader br) - { - StringBuilder inpstr = new StringBuilder(); - byte input = 0; - int cnt = 0; - bool stillread = true; - do - { - try - { - input = br.ReadByte(); - if (input == 0) stillread = false; - inpstr.Append(Convert.ToChar(input)); - } - catch (System.IO.EndOfStreamException) - { - stillread = false; - } - cnt++; - } while (stillread); - - string retstr = inpstr.ToString(); - retstr = retstr.Replace('<', '{'); - retstr = retstr.Replace('>', '}'); - if (retstr.Substring(retstr.Length - 1, 1) == "\0") return retstr.Substring(0, retstr.Length - 1); - return retstr; - } - private string GetString(BinaryReader br, int len) - { - StringBuilder inpstr = new StringBuilder(); - byte input = 0; - int cnt = 0; - do - { - try - { - input = br.ReadByte(); - inpstr.Append(Convert.ToChar(input)); - } - catch (System.IO.EndOfStreamException) - { - input = 0; - while (cnt < len) - { - inpstr.Append(Convert.ToChar(input)); - cnt++; - } - } - cnt++; - } while (cnt < len); - - string retstr = inpstr.ToString(); - retstr = retstr.Replace('<', '{'); - retstr = retstr.Replace('>', '}'); - if (retstr.Substring(retstr.Length - 1, 1) == "\0") return retstr.Substring(0, retstr.Length - 1); - return retstr; - } - #endregion - private VE_Font LoadVE_Font() - { - UInt32 ui = brFmt.ReadUInt32(); - //if (ui > 0) - Always set the font, even if it is 0 (default) - //{ - VE_Font retval = new VE_Font(ui); - return retval; - //} - //return null; - } - private VE_Font LoadVE_FontByte() - { - byte bt = brFmt.ReadByte(); - if (bt > 0) - { - VE_Font retval = new VE_Font(Convert.ToUInt32(bt)); - return retval; - } - return null; - } - #region XtraFlags - private void AddFlags(ref XtraFlgs XtraFlags, int i, Int16 flg) - { - if (i == 0) - { - if ((flg & DOUBLERNOSPACE) > 0) XtraFlags.DoubleRNOSpace = true.ToString(); - if ((flg & MIXCAUTIONSANDNOTES) > 0) XtraFlags.MixCautionsAndNotes = true.ToString(); - if ((flg & ALWAYSUSEEXTRALINES) > 0) XtraFlags.AlwaysUseExtralines = true.ToString(); - if ((flg & ALWAYSTABNOTE) > 0) XtraFlags.AlwaysTabNote = true.ToString(); - if ((flg & ALWAYSTABCAUTION) > 0) XtraFlags.AlwaysTabCaution = true.ToString(); - if ((flg & SPECIALPAGEBREAKFLAG) > 0) XtraFlags.SpecialPageBreakFlag = true.ToString(); - if ((flg & DONTPAGINATEONFIRSTSUBSTEP) > 0) XtraFlags.DontPaginateOnFirstSubStep = true.ToString(); - if ((flg & IMPERFECTSTRUCTURE) > 0) XtraFlags.ImperfectStructure = true.ToString(); - if ((flg & DONTUSEHALFLINES) > 0) XtraFlags.DontUseHalfLines = true.ToString(); - if ((flg & FORTRANFORMATNUMBERS) > 0) XtraFlags.FortranFormatNumbers = true.ToString(); - if ((flg & ALLUNITS) > 0) XtraFlags.AllUnits = true.ToString(); - if ((flg & CAPSTRANSITIONS) > 0) XtraFlags.CapsTransitions = true.ToString(); - } - else if (i == 1) - { - if ((flg & CAPTRANSTEP) > 0) XtraFlags.CapTranStep = true.ToString(); - if ((flg & TSTEPNOFLAG) > 0) XtraFlags.TSTepNoFlag = true.ToString(); - if ((flg & LOWERCASETRANNUMBER) > 0) XtraFlags.LowerCaseTranNumber = true.ToString(); - if ((flg & CONDENSEDCHANGEBAR) > 0) XtraFlags.CondensedChangeBar = true.ToString(); - if ((flg & DOREVDATE) > 0) XtraFlags.DoRevDate = true.ToString(); - if ((flg & SEPARATEBOX) > 0) XtraFlags.SeparateBox = true.ToString(); - if ((flg & NUMBERHIGHLEVELRNO) > 0) XtraFlags.NumberHighLevelRNO = true.ToString(); - if ((flg & ALTERNATEFOLDOUTPAGES) > 0) XtraFlags.AlternateFoldoutPages = true.ToString(); - if ((flg & DONTTRYTOFILLHALFOFPAGE) > 0) XtraFlags.DontTryToFillHalfOfPage = true.ToString(); - } - else if (i == 2) - { - if ((flg & DONTCAPITALIZETITLE) > 0) XtraFlags.DontCapitalizeTitle = true.ToString(); - if ((flg & NOSPACEDOUBLERNO) > 0) XtraFlags.NoSpaceDoubleRNO = true.ToString(); - if ((flg & DONTOFFSETTAB) > 0) XtraFlags.DontOffsetTab = true.ToString(); - if ((flg & UPSETPNTAFTRDASH) > 0) XtraFlags.UpSetpntAftrDash = true.ToString(); - if ((flg & LOWERCASEREVNUM) > 0) XtraFlags.LowerCaseRevnum = true.ToString(); - if ((flg & DONOTCOMPRESSSTEPS) > 0) XtraFlags.DoNotCompressSteps = true.ToString(); - if ((flg & REDUCELINEAFTERNOTEANDCAUT) > 0) XtraFlags.ReduceLineAfterNoteAndCaut = true.ToString(); - if ((flg & RNOSAMELEVEL) > 0) XtraFlags.RNOSameLevel = true.ToString(); - if ((flg & BOLDHIGHLEVELRNO) > 0) XtraFlags.BoldHighLevelRNO = true.ToString(); - if ((flg & ONELINEBEFORENOTECAUTIONTAB) > 0) XtraFlags.OneLineBeforeNoteCautionTab = true.ToString(); - if ((flg & CONTINUOUSCHANGEBARS) > 0) XtraFlags.ContinuousChangeBars = true.ToString(); - } - else if (i == 3) - { - if ((flg & DONTBOXAC) > 0) XtraFlags.DontBoxAC = true.ToString(); - if ((flg & USETOPCONTINUEMESSAGEATEND) > 0) XtraFlags.UseTopContinueMessageAtEnd = true.ToString(); - if ((flg & UPCASETRANAND) > 0) XtraFlags.UpcaseTranAnd = true.ToString(); - if ((flg & UPCASEALLSETPOINTUNITS) > 0) XtraFlags.UpcaseAllSetpointUnits = true.ToString(); - } - else if (i == 4) - { - if ((flg & DEV_FORMAT) > 0) XtraFlags.Dev_Format = true.ToString(); - if ((flg & DONTDOSTEXTRAATTOP) > 0) XtraFlags.DontDoSTExtraAtTop = true.ToString(); - if ((flg & XLINES_STEPFIX) > 0) XtraFlags.Xlines_StepFix = true.ToString(); - if ((flg & REBOXCAUTNOTE) > 0) XtraFlags.ReBoxCautNote = true.ToString(); - if ((flg & IMMSTEPSPCHDR) > 0) XtraFlags.IMMStepSpcHdr = true.ToString(); - if ((flg & FLOATINGCONTINUEMESSAGE) > 0) XtraFlags.FloatingContinueMessage = true.ToString(); - if ((flg & ABSOLUTEFIXEDCHANGECOLUMN) > 0) XtraFlags.AbsoluteFixedChangeColumn = true.ToString(); - if ((flg & LJBORDERLESSTABLE) > 0) XtraFlags.LJBorderlessTable = true.ToString(); - if ((flg & SUPPRESSANDINTRAN) > 0) XtraFlags.SuppressAndInTran = true.ToString(); - if ((flg & CAPHIGHSETPNT) > 0) XtraFlags.CapHighSetpnt = true.ToString(); - if ((flg & CAPSPIFLASTLOWER) > 0) XtraFlags.CapsPIFLastLower = true.ToString(); - if ((flg & CAPFIRSTLETTERINHIGHSP) > 0) XtraFlags.CapFirstLetterInHighSP = true.ToString(); - } - else if (i == 5) - { - if ((flg & ALTERNATEFLOATINGFOLDOUT) > 0) XtraFlags.AlternateFloatingFoldout = true.ToString(); - if ((flg & WRAPSAMEASEDIT) > 0) XtraFlags.WrapSameAsEdit = true.ToString(); - if ((flg & KEEPSTEPSONPAGE) > 0) XtraFlags.KeepStepsOnPage = true.ToString(); - if ((flg & SPECIFIEDSUBSTEPSONLY) > 0) XtraFlags.SpecifiedSubstepsOnly = true.ToString(); - if ((flg & THREEBLANKSABOVENOTESCAUTIONS) > 0) XtraFlags.ThreeBlanksAboveNotesCautions = true.ToString(); - if ((flg & IMPERFECTSUBSTEP) > 0) XtraFlags.ImperfectSubstep = true.ToString(); - if ((flg & DONTBREAKONSECTIONS) > 0) XtraFlags.DontBreakOnSections = true.ToString(); - if ((flg & NOSTEPNUMIFONLYONESTEP) > 0) XtraFlags.NoStepNumIfOnlyOneStep = true.ToString(); - if ((flg & SHOWSECTIONTITLES) > 0) XtraFlags.ShowSectionTitles = true.ToString(); - if ((flg & LJTABS) > 0) XtraFlags.LJTabs = true.ToString(); - if ((flg & DONTNUMBERRNOSUBS) > 0) XtraFlags.DontNumberRNOSubs = true.ToString(); - if ((flg & DROPCHECKOFF) > 0) XtraFlags.DropCheckOff = true.ToString(); - if ((flg & NOCHECKOFFSINRNO) > 0) XtraFlags.NoCheckOffsInRNO = true.ToString(); - } - else if (i == 6) - { - if ((flg & CHGBARMESSAGEFROMEDIT) > 0) XtraFlags.ChgBarMessageFromEdit = true.ToString(); - if ((flg & CHANGEBARTORNOSEP) > 0) XtraFlags.ChangeBarToRNOSep = true.ToString(); - if ((flg & CHGSTYLEPERSECTION) > 0) XtraFlags.ChangeStyleForEverySection = true.ToString(); - if ((flg & SECTIONLEVELFOLDOUTS) > 0) XtraFlags.SectionLevelFoldouts = true.ToString(); - if ((flg & BOXCONTACTIONS) > 0) XtraFlags.BoxContinousActions = true.ToString(); - if ((flg & DOSECTIONTRANS) > 0) XtraFlags.DoSectionTrans = true.ToString(); - if ((flg & UPSPIFPREVUPPER) > 0) XtraFlags.UpSpIfPrevUpper = true.ToString(); - if ((flg & CONTINUESECTIONHEADER) > 0) XtraFlags.ContinueSectionHeader = true.ToString(); - if ((flg & GLOBALPROCINFO) > 0) XtraFlags.GlobalProcInfo = true.ToString(); - if ((flg & COMPRESSHPSUB) > 0) XtraFlags.CompressHPSub = true.ToString(); - if ((flg & BULLETONCONTINUOUS) > 0) XtraFlags.BulletOnContinuous = true.ToString(); - if ((flg & CANCELSECTITLESONS2) > 0) XtraFlags.CancelSecTitlesOnS2 = true.ToString(); - if ((flg & NOENDFORSINGLE) > 0) XtraFlags.NoEndForSingle = true.ToString(); - if ((flg & USEMETASECTIONS) > 0) XtraFlags.UseMetaSections = true.ToString(); - } - else if (i == 7) - { - if ((flg & RNOCONTINUEONLY) > 0) XtraFlags.RNOContinueOnly = true.ToString(); - if ((flg & CAP1STCHARTRANS) > 0) XtraFlags.Cap1stCharTrans = true.ToString(); - if ((flg & DONTPAGINATEONFIRSTSUBSTEP3X) > 0) XtraFlags.DontPaginateOnFirstSubstep3X = true.ToString(); - if ((flg & RNOSEPAFTERAER) > 0) XtraFlags.RNOSepAfterAER = true.ToString(); - if ((flg & REVDATEWITHFORWARDSLASH) > 0) XtraFlags.RevDateWithForwardSlash = true.ToString(); - if ((flg & USEALTERNATESTEPBOX) > 0) XtraFlags.UseAlternateStepBox = true.ToString(); - if ((flg & CANCELSECTITLESONS1) > 0) XtraFlags.CancelSecTitlesOnS1 = true.ToString(); - if ((flg & SPECIALSTEPSFOLDOUT) > 0) XtraFlags.SpecialStepsFoldout = true.ToString(); - if ((flg & UNDERLINEAFTERDASHSPACE) > 0) XtraFlags.UnderlineAfterDashSpace = true.ToString(); - if ((flg & NOSPACEINNOTEORCAUTION) > 0) XtraFlags.NoSpaceInNoteOrCaution = true.ToString(); - if ((flg & USEXTRAREVNUMBER) > 0) XtraFlags.UseXtraRevNumber = true.ToString(); - if ((flg & UNDERLINESETPOINTS) > 0) XtraFlags.UnderlineSetpoints = true.ToString(); - if ((flg & DOSECTIONTRANSTYPEB) > 0) XtraFlags.DoSectionTransTypeB = true.ToString(); - if ((flg & PAGINATEONLOWERSTEPLEVEL) > 0) XtraFlags.PaginateOnLowerStepLevel = true.ToString(); - if ((flg & USETRANSITIONMODIFIER) > 0) XtraFlags.UseTransitionModifier = true.ToString(); - } - else if (i == 8) - { - if ((flg & CUSTOMSPACING) > 0) XtraFlags.CustomSpacing = true.ToString(); - if ((flg & ENHANCEDSHORTFORMDEV) > 0) XtraFlags.EnhancedShortFormDev = true.ToString(); - if ((flg & PAGEBREAKONHIGHLEVELSTEP) > 0) XtraFlags.PageBreakOnHighLevelStep = true.ToString(); - if ((flg & PAGEBREAKONCAUTIONS) > 0) XtraFlags.PageBreakOnCautions = true.ToString(); - if ((flg & PAGEBREAKONNOTES) > 0) XtraFlags.PageBreakOnNotes = true.ToString(); - if ((flg & ALIGNNULLTABWSECTHEAD) > 0) XtraFlags.AlignNullTabWSectHead = true.ToString(); - if ((flg & DONTUSESECTITLES) > 0) XtraFlags.DontUseSecTitles = true.ToString(); - if ((flg & TEXTSUBFOLLOWSTEXTSTYLE) > 0) XtraFlags.TextSubFollowsTextStyle = true.ToString(); - if ((flg & TRANSPROCTITLEINPAREN) > 0) XtraFlags.TranProcTitleInParen = true.ToString(); - if ((flg & HARDSPTRANPROCNUMB) > 0) XtraFlags.HardSpTranProcNumb = true.ToString(); - if ((flg & TREATANDORASSEQUENTIAL) > 0) XtraFlags.TreatAndOrAsSequential = true.ToString(); - if ((flg & DONTSPLITSTEPINPRNTSTEP) > 0) XtraFlags.DontSplitStepInPrntStep = true.ToString(); - if ((flg & LINEABOVEUNDERSECTION) > 0) XtraFlags.LineAboveUnderSection = true.ToString(); - } - else if (i == 9) - { - if ((flg & PICAIGNOREFIVESIXTHS) > 0) XtraFlags.PicaIgnoreFiveSixths = true.ToString(); - if ((flg & SPACEFORNOSECNUMB) > 0) XtraFlags.SpaceFoRNOSecNumb = true.ToString(); - if ((flg & NONEDITABLESTEPS) > 0) XtraFlags.NonEditableSteps = true.ToString(); - if ((flg & BOXEDSUBSTEPS) > 0) XtraFlags.BoxedSubsteps = true.ToString(); - if ((flg & DONTNUMBERHIGHLEVELSTEPS) > 0) XtraFlags.DontNumberHighLevelSteps = true.ToString(); - if ((flg & NOSTEPNUMBERFORHIGHLEVELRNO) > 0) XtraFlags.NoStepNumberForHighLevelRNO = true.ToString(); - if ((flg & PROMPTFORCAUTINTYPE) > 0) XtraFlags.PromptForCautinType = true.ToString(); - if ((flg & CAUTION1SAMEROWASPARENT) > 0) XtraFlags.Caution1SameRowAsParent = true.ToString(); - if ((flg & WOLFCREEKBACKGROUNDFORMAT) > 0) XtraFlags.WolfCreekBackgroundFormat = true.ToString(); - if ((flg & ENHANCEDSTEPNUMFROMPREV) > 0) XtraFlags.EnhancedStepNumFromPrev = true.ToString(); - } - else if (i == 10) - { - if ((flg & CONTROLUNDERLINESTYLE) > 0) XtraFlags.ControlUnderlineStyle = true.ToString(); - if ((flg & MULTIPLECHANGEIDS) > 0) XtraFlags.MultipleChangeIds = true.ToString(); - if ((flg & USEMULTILINESECTIONTITLE) > 0) XtraFlags.UseMultiLineSectionTitle = true.ToString(); - if ((flg & PAGEBREAKONFIRSTBLANKLINE) > 0) XtraFlags.PageBreakOnFirstBlankLine = true.ToString(); - if ((flg & DONTPRINTNOTITLE) > 0) XtraFlags.DontPrintNoTitle = true.ToString(); - if ((flg & NOTESTOFOOTNOTES) > 0) XtraFlags.NotesToFootnotes = true.ToString(); - if ((flg & UNDSPECIALSTEPSFOLDOUT) > 0) XtraFlags.UndSpecialStepsFoldout = true.ToString(); - if ((flg & PUTONPAGEBYITSELF) > 0) XtraFlags.PutOnPageByItself = true.ToString(); - if ((flg & PRINTPHONELIST) > 0) XtraFlags.PrintPhoneList = true.ToString(); - } - else if (i == 11) - { - if ((flg & SECTITLECONTINUE) > 0) XtraFlags.SecTitleContinue = true.ToString(); - if ((flg & CANCELSECTITLESONE0) > 0) XtraFlags.CancelSecTitlesOnE0 = true.ToString(); - if ((flg & METASECTENDMESSAGE) > 0) XtraFlags.MetaSectEndMessage = true.ToString(); - if ((flg & RNONUMBERWITHLEVEL) > 0) XtraFlags.RNONumberWithLevel = true.ToString(); - if ((flg & CANCELSECTITLESONE2) > 0) XtraFlags.CancelSecTitlesOnE2 = true.ToString(); - if ((flg & COMPRESSHPSUPER) > 0) XtraFlags.CompressHPSuper = true.ToString(); - } - else if (i == 12) - { - if ((flg & MATCHUPRNOCAUTNOTE) > 0) XtraFlags.MatchUpRNOCautNote = true.ToString(); - if ((flg & PAGINATEATHIGHESTPAGINLEVEL) > 0) XtraFlags.PaginateAtHighestPaginLevel = true.ToString(); - if ((flg & USELONGPROCTITLES) > 0) XtraFlags.UseLongProcTitles = true.ToString(); - if ((flg & SPECIALLANDSCAPEMODE) > 0) XtraFlags.SpecialLandscapeMode = true.ToString(); - if ((flg & RNOINPAGELIST) > 0) XtraFlags.RNOInPagelist = true.ToString(); - if ((flg & STPCAUTNOTETABINPAGELIST) > 0) XtraFlags.StpCautNoteTabInPagelist = true.ToString(); - if ((flg & READONLYTYPEINCONTMSG) > 0) XtraFlags.ReadOnlyTypeInContMsg = true.ToString(); - } - else if (i == 13) - { - if ((flg & CENTERONELINEONLY) > 0) XtraFlags.CenterOneLineOnly = true.ToString(); - if ((flg & TIETABTOLEVEL) > 0) XtraFlags.TieTabToLevel = true.ToString(); - if ((flg & ACCESSORYDOCSINDUPLEX) > 0) XtraFlags.AccessoryDocsInDuplex = true.ToString(); - if ((flg & FOLDOUTSINDUPLEX) > 0) XtraFlags.FoldoutsInDuplex = true.ToString(); - if ((flg & USESTEXTRAREALVALUE) > 0) XtraFlags.UseSTExtraRealValue = true.ToString(); - if ((flg & SUBTABLEGETSUP1LEVEL) > 0) XtraFlags.SubTableGetSup1Level = true.ToString(); - if ((flg & DONTCOUNTFOLDOUTPAGES) > 0) XtraFlags.DontCountFoldoutPages = true.ToString(); - if ((flg & SEARCHALLREPLACEWORDS) > 0) XtraFlags.SearchAllReplaceWords = true.ToString(); - } - else if (i == 14) - { - if ((flg & REMEMBERCAUTIONSANDNOTES) > 0) XtraFlags.RememberCautionsAndNotes = true.ToString(); - if ((flg & RTFADJUSTMENTS) > 0) XtraFlags.RtfAdjustments = true.ToString(); - if ((flg & CENTERONELINEADJUST) > 0) XtraFlags.CenterOneLineAdjust = true.ToString(); - if ((flg & COUNTALLSUBLEVELS) > 0) XtraFlags.CountAllSubLevels = true.ToString(); - if ((flg & DONTREPLACEWORDSINROS) > 0) XtraFlags.DontReplaceWordsInROs = true.ToString(); - if ((flg & HIGHLEVELRNOBEFOREAERSUBSTPS) > 0) XtraFlags.HighLevelRNOBeforeAERSubStps = true.ToString(); - if ((flg & UNDERLINEALLMETATITLES) > 0) XtraFlags.UnderlineAllMetaTitles = true.ToString(); - if ((flg & DONTBREAKCAUTIONSORNOTES) > 0) XtraFlags.DontBreakCautionsOrNotes = true.ToString(); - if ((flg & BOLDONLYSECTIONZERO) > 0) XtraFlags.BoldOnlySectionZero = true.ToString(); - if ((flg & DONTBREAKONRNO) > 0) XtraFlags.DontBreakOnRNO = true.ToString(); - if ((flg & RNOCHECKOFFSAMEASPARENT) > 0) XtraFlags.RNOCheckOffSameAsParent = true.ToString(); - if ((flg & USESTEPTYPEWIDTHOVERRRIDE) > 0) XtraFlags.UseStepTypeWidthOverride = true.ToString(); - if ((flg & WOLFCREEKCKLFORMAT) > 0) XtraFlags.WolfcreekCKLFormat = true.ToString(); - } - else if (i == 15) - { - if ((flg & DONTPAGINATEONFIRSTSUBSTEP2X) > 0) XtraFlags.DontPaginateOnFirstSubStep2X = true.ToString(); - if ((flg & USESTEPTYPEWIDTHOVERRRIDEEDITPRINT) > 0) XtraFlags.UseStepTypeWidthOverrideEditPrint = true.ToString(); - if ((flg & PARTIALSTEPCOMPRESSION) > 0) XtraFlags.PartialStepCompression = true.ToString(); - if ((flg & USESMARTTEMPLATE) > 0) XtraFlags.UseSmartTemplate = true.ToString(); - if ((flg & CHECKOFFONHLSONLY) > 0) XtraFlags.CheckoffOnHLSOnly = true.ToString(); - if ((flg & CAUTION2SAMEROWASPARENT) > 0) XtraFlags.Caution2SameRowAsParent = true.ToString(); - if ((flg & CENTERTEXTWITHINWIDTH) > 0) XtraFlags.CenterTextWithinWidth = true.ToString(); - if ((flg & DONTBREAKEQUIPMENTLIST) > 0) XtraFlags.DontBreakEquipmentList = true.ToString(); - if ((flg & ALWAYSTABCAUTION2) > 0) XtraFlags.AlwaysTabCaution2 = true.ToString(); - if ((flg & VIRTUALDOTINHLSTAB) > 0) XtraFlags.VirtualDotInHLSTab = true.ToString(); - if ((flg & IMPERFECTSTRUCTUREPLUS4) > 0) XtraFlags.ImperfectStructurePlus4 = true.ToString(); - } - else if (i == 16) - { - if ((flg & USERNOTYPEINACTABLE) > 0) XtraFlags.UseRNOTypeInActable = true.ToString(); - if ((flg & ABSOLUTETRANSITIONUPDATE) > 0) XtraFlags.AbsoluteTransitionUpdate = true.ToString(); - if ((flg & SEPARATEBOXCAUTIONS) > 0) XtraFlags.SeparateBoxCautions = true.ToString(); - if ((flg & HLSTEXTINPAGELIST) > 0) XtraFlags.HLSTextInPagelist = true.ToString(); - if ((flg & LOWERCASESTEPINTRAN) > 0) XtraFlags.LowerCaseStepInTran = true.ToString(); - if ((flg & CHANGEBARSONLINKEDTEXT) > 0) XtraFlags.ChangeBarsOnLinkedText = true.ToString(); - if ((flg & QUOTEDSUBSTEPS) > 0) XtraFlags.QuotedSubsteps = true.ToString(); - } - else if (i == 17) - { - if ((flg & OVERRIDEENHANCEDTABS) > 0) XtraFlags.OverrideEnhancedTabs = true.ToString(); - if ((flg & NONEWLINEAFTERRNO) > 0) XtraFlags.NoNewlineAfterRNO = true.ToString(); - if ((flg & DOSECTIONSEPARATORLINE) > 0) XtraFlags.DoSectionSeparatorLine = true.ToString(); - if ((flg & PARENSONEXTPAGENUMTRANS) > 0) XtraFlags.ParensOnExtPagenumTrans = true.ToString(); - if ((flg & ATLEASTTWODIGITSFORHLS) > 0) XtraFlags.AtLeastTwoDigitsForHLS = true.ToString(); - if ((flg & DONTBREAKOPTEQUIPMENTLIST) > 0) - XtraFlags.DontBreakOptEquipmentList = true.ToString(); - if ((flg & PAGELISTCHANGEIDSWITHCOMMAS) > 0) XtraFlags.PagelistChangeIDsWithCommas = true.ToString(); - if ((flg & DONTSTARTLINEWITHDASH) > 0) XtraFlags.DontStartLineWithDash = true.ToString(); - if ((flg & NOBLANKLINEBEFORESUBSTEP) > 0) XtraFlags.NoBlankLineBeforeSubstep = true.ToString(); - if ((flg & DONTBREAKCAUTIONSNOTESONSUBSTPS) > 0) XtraFlags.DontBreakCautionsNotesOnSubstps = true.ToString(); - if ((flg & DONTCONVERTCARETTODELTA) > 0) XtraFlags.DontConvertCaretToDelta = true.ToString(); - } - else if (i == 18) - { - if ((flg & NORNO) > 0) XtraFlags.NoRNO = true.ToString(); - if ((flg & ONLYSINGLECOLUMN) > 0) XtraFlags.OnlySingleColumn = true.ToString(); - if ((flg & NULLBOX) > 0) XtraFlags.NullBox = true.ToString(); - if ((flg & XCHNGTRANSPFORHARD) > 0) XtraFlags.XChngTranSpForHard = true.ToString(); - if ((flg & WOLFCREEKCKLBACKGNDFORMAT) > 0) XtraFlags.WolfcreekCKLBackgndFormat = true.ToString(); - } - } - #endregion - #region ReadInFile - private float RowToPoints(int i) - { - return (i * 12); // row_in_points = input * 72/6, row = input * 12 - } - private float ColToPoints(float f, uint style) - { - return 72 * (f / CvtFont.CvtFont.GetPrintPitch(style)); - } - string _AlternateIndex = null; - int[] rtCheckOffGroups = new int[MAXSTEPS + 1]; - private string _fmtFileName; - private uint _PlantDefaultFontStyle; - public bool ReadInFmtFile(ref FormatData fmtdata, ref XtraFlgs XtraFlags, string fname) - { - _fmtFileName = fname; - int[] tmpshort3 = new int[3]; - ArrayList stringoffsets = new ArrayList(); - byte tmpbyte; - Int16 tmpshort; - string tmpstr; - try - { - tmpshort = brFmt.ReadInt16(); - fmtdata.Name = GetStringUntilNull(brFmt); - for (int i = 0; i < 3; i++) - { - tmpshort = brFmt.ReadInt16(); - tmpstr = GetStringUntilNull(brFmt); - } - - short vnum = brFmt.ReadInt16(); // number of ints, etc. - long posatints = brFmt.BaseStream.Position; - long tstloc = vnum + posatints; - fmtdata.FontData = new VE_Font(0); - #region LoadInts - tmpbyte = brFmt.ReadByte(); // FirstChar - - // NOTE 16bit had xtraflag as 18 & had a VEAIRFlag. VEAIRFlag actually - // had some flags used in other formats besides it, so these were rolled - // into the xtraflag array just to make conversion easier. - Int16[] xtraflag = new Int16[19]; - for (int i = 0; i < 19; i++) - { - xtraflag[i] = brFmt.ReadInt16(); - AddFlags(ref XtraFlags, i, xtraflag[i]); - } - // if this format has an associated PSI or TPL file, just read in the string & save - // it. - string otherfile = MyPath + @"\" + fname.Substring(0, fname.LastIndexOf(".")) + @".tpl"; - // if this is subformat, the tpl file will be name FNP00.TPL for fnp.x00, using 'fnp' as - // an example. check for this too. - bool issub = (fname.ToUpper().Substring(fname.LastIndexOf(".") + 1, 1) == "X"); - if (File.Exists(otherfile) && !issub) - fmtdata.TPL = FixXmlString(File.ReadAllText(otherfile)); - else - { - if (issub) - { - string subtpl = fname.Substring(0, fname.LastIndexOf(".")) + fname.Substring(fname.Length - 2, 2); - otherfile = MyPath + @"\" + subtpl + @".tpl"; - if (File.Exists(otherfile)) - fmtdata.TPL = FixXmlString(File.ReadAllText(otherfile)); - } - } - // http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char - otherfile = MyPath + @"\" + fname.Substring(0, fname.LastIndexOf(".")) + @".ini"; - if (File.Exists(otherfile)) PsiIniToXml(ref fmtdata, otherfile); - fmtdata.PurchaseOptions = ((E_PurchaseOptions)brFmt.ReadInt16()).ToString(); - fmtdata.ProcData.ProcForeColor = "Black"; - fmtdata.ProcData.ProcBackColor = "White"; - fmtdata.EditData = new GeneralEditor(); - fmtdata.EditData.EMode = ((E_EMode)brFmt.ReadInt16()).ToString(); - fmtdata.SectData = new Section(); - fmtdata.SectData.SectForeColor = "Black"; - fmtdata.SectData.SectBackColor = "White"; - fmtdata.SectData.StepSectionData = new StepSection(); - fmtdata.SectData.StepSectionData.TopRow = (Int16)(RowToPoints(brFmt.ReadInt16())); - tmpshort = brFmt.ReadInt16(); // Appendlines - not used. - fmtdata.PrintData = new GeneralPrint(); - fmtdata.PrintData.DoPrnDrvrAdjusts = brFmt.ReadInt16(); - fmtdata.StepData = new Step[MAXSTEPS + 1]; // add 1 for the 'BASE' - for (int i = 0; i < MAXSTEPS + 1; i++) - { - fmtdata.StepData[i].Type = StepTypes[i]; - fmtdata.StepData[i].ParentType = ParentTypes[i]; - if (i == 1) - { - _PlantDefaultFontStyle = brFmt.ReadUInt32(); - fmtdata.StepData[0].Font = new VE_Font(_PlantDefaultFontStyle); - fmtdata.FontData = fmtdata.StepData[0].Font.Copy(); - //fmtdata.StepData[1].Font will inherit the Base Font - } - if (i > 1) - { - uint tmpuint = brFmt.ReadUInt32(); - if (i == 40 && tmpuint == 0) // check if RNOtype's font = 0, if so use the plant default - { - fmtdata.StepData[i].Font = new VE_Font(_PlantDefaultFontStyle); - } - else - fmtdata.StepData[i].Font = new VE_Font(tmpuint); - } - } - for (int i = 1; i < MAXSTEPS + 1; i++) - { - Int16 tmpcoli = brFmt.ReadInt16(); - int tmpcol = (tmpcoli & 0x0F00) >> 8; - if (tmpcol > 0 && tmpcol < WinColors.Length) - fmtdata.StepData[i].StepLayoutData.ForeColor = WinColors[tmpcol]; - else - fmtdata.StepData[i].StepLayoutData.ForeColor = "Black"; - tmpcol = (tmpcoli & 0xF); - if (tmpcol > 0 && tmpcol < WinColors.Length) - fmtdata.StepData[i].StepLayoutData.BackColor = WinColors[tmpcol]; - else - fmtdata.StepData[i].StepLayoutData.BackColor = "White"; - } - fmtdata.StepData[0].StepLayoutData.ForeColor = "Black"; - fmtdata.StepData[0].StepLayoutData.BackColor = "White"; - for (int i = 1; i < MAXSTEPS + 1; i++) fmtdata.StepData[i].StepLayoutData.STExtraSpace = (RowToPoints(brFmt.ReadInt16())).ToString(); - fmtdata.StepData[0].StepLayoutData.STExtraSpace = fmtdata.StepData[1].StepLayoutData.STExtraSpace; - for (int i = 1; i < MAXSTEPS + 1; i++) - { - Int16 itmp = brFmt.ReadInt16(); - if (fmtdata.StepData[i].Font != null && fmtdata.StepData[i].Font.IsBoxed) fmtdata.StepData[i].StepLayoutData.STBoxindex = (itmp + 1).ToString(); - } - - // Read the tab indexes into a temporary array. Once the tab strings are read - // in the structure's data will be added. - Tabindx = new Int16[MAXSTEPS]; - for (int i = 0; i < MAXSTEPS; i++) Tabindx[i] = brFmt.ReadInt16(); - - for (int i = 1; i < MAXSTEPS + 1; i++) - { - fmtdata.StepData[i].StepPrintData = new Print(); - fmtdata.StepData[i].StepPrintData.PosAdjust = ((Int16)(ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle))).ToString(); - } - - // NOTE a default is added for boxes for the default box for tables, if - // they are boxed. - fmtdata.BoxData = new Box[MAXBOXES + 1]; - // convert these to points. Also, each set of data had 24, not 12 box fields, the - // second twelve for RTF. For now, I'm going to just skip these. They can be added in - // later - // Note that the box start (we think) and the box end locations used ELITE, at 12 characters per inch, - // for locating the line draw/box drawing. - for (int i = 1; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].Start = ColToPoints(brFmt.ReadInt16(), CvtFont.CvtFont.ELITE); - for (int i = 1; i < MAXBOXES + 1; i++) tmpshort = brFmt.ReadInt16(); - for (int i = 1; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].End = ColToPoints(brFmt.ReadInt16(), CvtFont.CvtFont.ELITE); - for (int i = 1; i < MAXBOXES + 1; i++) tmpshort = brFmt.ReadInt16(); - for (int i = 1; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].TxtStart = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - for (int i = 1; i < MAXBOXES + 1; i++) tmpshort = brFmt.ReadInt16(); - for (int i = 1; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].TxtWidth = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - for (int i = 1; i < MAXBOXES + 1; i++) tmpshort = brFmt.ReadInt16(); - for (int i = 1; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].Height = RowToPoints(brFmt.ReadInt16()); - for (int i = 1; i < MAXBOXES + 1; i++) tmpshort = brFmt.ReadInt16(); - for (int i = 1; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].TabPos = RowToPoints(brFmt.ReadInt16()); - for (int i = 1; i < MAXBOXES + 1; i++) tmpshort = brFmt.ReadInt16(); - tmpshort = brFmt.ReadInt16(); // TransitionCautionOffset - for (int i = 1; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].Font = LoadVE_Font(); - int tmpint; - for (int i = 1; i < MAXBOXES + 1; i++) tmpint = brFmt.ReadInt32(); - for (int i = 0; i < MAXTABS; i++) - { - VE_Font st = LoadVE_Font(); - if (i == 0) - { - fmtdata.StepData[0].TabData.Font = st == null ? null : st.Copy(); - fmtdata.StepData[0].TabData.Justify = st == null ? "None" : st.FontJustify; - if (st != null && st.FontCheckOff != "None") - { - if (fmtdata.StepData[0].TabData.MacroList == null) fmtdata.StepData[0].TabData.MacroList = new COMacro[1]; - fmtdata.StepData[0].TabData.MacroList[0].Name = "CHECKOFF"; - fmtdata.StepData[0].TabData.MacroList[0].Macro = "C22"; - if (rtCheckOffGroups[0] != 0) fmtdata.StepData[0].TabData.MacroList[0].Grouping = rtCheckOffGroups[0].ToString(); - } - for (int j = 0; j < MAXSTEPS; j++) - { - if (Tabindx[j] == -1) - { - fmtdata.StepData[j + 1].TabData.UsePreviousStyle = "True"; - fmtdata.StepData[j + 1].TabData.Font = st == null ? null : st.Copy(); - fmtdata.StepData[j + 1].TabData.Justify = st == null ? "None" : st.FontJustify; - - if (st != null && st.FontCheckOff != "None") - { - fmtdata.StepData[j + 1].TabData.MacroList = new COMacro[1]; - fmtdata.StepData[j + 1].TabData.MacroList[0].Name = "CHECKOFF"; - fmtdata.StepData[j + 1].TabData.MacroList[0].Macro = st.FontCheckOff == "Right" ? "C22" : "M20"; - if (rtCheckOffGroups[j + 1] != 0) fmtdata.StepData[j + 1].TabData.MacroList[0].Grouping = rtCheckOffGroups[j + 1].ToString(); - } - } - } - } - for (int j = 0; j < MAXSTEPS; j++) - { - if (Tabindx[j] == i) - { - fmtdata.StepData[j + 1].TabData.Font = st == null ? null : st.Copy(); - fmtdata.StepData[j + 1].TabData.Justify = st == null ? "None" : st.FontJustify; - if (st != null && st.FontCheckOff != "None") - { - fmtdata.StepData[j + 1].TabData.MacroList = new COMacro[1]; - fmtdata.StepData[j + 1].TabData.MacroList[0].Name = "CHECKOFF"; - fmtdata.StepData[j + 1].TabData.MacroList[0].Macro = st.FontCheckOff == "Right" ? "C22" : "M20"; - } - } - } - } - for (int i = 1; i < MAXSTEPS + 1; i++) - { - fmtdata.StepData[i].StepEditData.AcTable = ((E_AccStep)brFmt.ReadInt16()).ToString(); - if (fmtdata.StepData[i].StepEditData.AcTable == "0") - fmtdata.StepData[i].StepEditData.AcTable = null; - } - for (int i = 1; i < MAXSTEPS + 1; i++) - { - tmpint = brFmt.ReadInt16(); - if (tmpint == 0) tmpint = 1; // everynlines default value should be 1. - fmtdata.StepData[i].StepLayoutData.EveryNLines = tmpint.ToString(); - } - for (int i = 1; i < MAXSTEPS + 1; i++) fmtdata.StepData[i].StepLayoutData.SpaceBefore = "0"; - for (int i = 1; i < MAXSTEPS + 1; i++) fmtdata.StepData[i].StepLayoutData.SpaceAfter = RowToPoints(1).ToString(); - for (int i = 1; i < MAXSTEPS + 1; i++) - { - tmpint = brFmt.ReadInt16(); - fmtdata.StepData[i].StepLayoutData.AlwaysUpperCase = tmpint==1?true.ToString():false.ToString(); - } - - fmtdata.SectData.StepSectionData.StpSectLayData = new StepSectionLayout(); - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage = new TopOfPg(); - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Font = LoadVE_Font(); - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Row = RowToPoints(brFmt.ReadInt16()); - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Col = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - - fmtdata.SectData.StepSectionData.StpSectPrtData = new StepSectionPrint(); - fmtdata.SectData.StepSectionData.StpSectPrtData.ModifiedTextStyle = LoadVE_Font(); - fmtdata.SectData.StepSectionData.StpSectLayData.Separator = new Separtr(); - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.Font = LoadVE_Font(); - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.SeparatorLocation = brFmt.ReadInt16(); - - for (int i = 1; i < MAXSTEPS + 1; i++) fmtdata.StepData[i].StepLayoutData.PageBreakAtTypeChange = (brFmt.ReadInt16()).ToString(); - fmtdata.SectData.StepSectionData.StpSectLayData.LastLineToStartStep = RowToPoints(brFmt.ReadInt16()); - - /* To do TextTypeValue - not sure how this is used & where to store it, so temporarily read it in */ - //fmtdata.SectData.StepSectionData.TextTypeValue = new Int16[10]; - //for (int i = 0; i < 10; i++) fmtdata.SectData.StepSectionData.TextTypeValue[i] = brFmt.ReadInt16(); - - Int16[] TextTypeValue = new Int16[10]; - for (int i = 0; i < 10; i++) TextTypeValue[i] = brFmt.ReadInt16(); - - for (int i = 0; i < 10; i++) tmpint = brFmt.ReadInt32(); // DontPrintInSection - not used. - - tmpshort = brFmt.ReadInt16(); // LeftMarginReset - not used. - tmpshort = brFmt.ReadInt16(); // OmitErgEopUsage - not used. - - fmtdata.SectData.StepSectionData.StpSectLayData.LineDrawingOption = brFmt.ReadInt16(); - fmtdata.SectData.StepSectionData.StpSectLayData.ColS = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - - fmtdata.SectData.StepSectionData.StpSectEditData = new StepSectionEdit(); - fmtdata.SectData.StepSectionData.StpSectEditData.ColSScreenAdj = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - fmtdata.SectData.StepSectionData.StpSectEditData.ScrnAdjRNOText = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - fmtdata.SectData.StepSectionData.StpSectLayData.ColT = ColToPoints(brFmt.ReadInt16(), 0); - tmpshort = brFmt.ReadInt16(); // Coltincr - not used - tmpshort = brFmt.ReadInt16(); // ColTab - not used - fmtdata.SectData.StepSectionData.StpSectLayData.ColAbs = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - fmtdata.SectData.StepSectionData.StpSectLayData.WidT = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - tmpshort = brFmt.ReadInt16(); // WidTab - not used. - fmtdata.SectData.StepSectionData.StpSectLayData.PMode = brFmt.ReadInt16(); - - fmtdata.SectData.StepSectionData.StpSectLayData.MaxRNO = brFmt.ReadInt16(); - - // maxrnotable, colrtable, widstable, and colrscreen all have three values. - for (int i = 0; i < 3; i++) tmpshort3[i] = brFmt.ReadInt16(); - tmpstr = string.Format("{0},{1},{2}", tmpshort3[0], tmpshort3[1], tmpshort3[2]); - fmtdata.SectData.StepSectionData.StpSectLayData.MaxRNOTable = tmpstr; - - float[] tmpfloat = new float[3]; - for (int i = 0; i < 3; i++) tmpfloat[i] = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - tmpstr = string.Format("{0},{1},{2}", tmpfloat[0], tmpfloat[1], tmpfloat[2]); - fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = tmpstr; - - float[] tmpfloata = new float[3]; - for (int i = 0; i < 3; i++) - { - tmpfloat[i] = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - tmpfloata[i] = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - } - tmpstr = string.Format("{0},{1},{2}", tmpfloat[0], tmpfloat[1], tmpfloat[2]); - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = tmpstr; - tmpstr = string.Format("{0},{1},{2}", tmpfloata[0], tmpfloata[1], tmpfloata[2]); - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = tmpstr; - - for (int i = 0; i < 3; i++) tmpfloat[i] = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - tmpstr = string.Format("{0},{1},{2}", tmpfloat[0], tmpfloat[1], tmpfloat[2]); - fmtdata.SectData.StepSectionData.StpSectEditData.ColRScreen = tmpstr; - - fmtdata.SectData.StepSectionData.StpSectLayData.AdjRNOCol = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - - ChangeBar cb = new ChangeBar(); - - cb.ChangeBarMessage = ((E_ChangeBarMessage)brFmt.ReadUInt16()).ToString(); - - cb.FixedChangeColumn = brFmt.ReadInt16(); - cb.FixedAERChangeColumn = brFmt.ReadByte(); - - //read in a number of format items that are not supported... - for (int i = 0; i < 3; i++) tmpshort3[i] = brFmt.ReadInt16(); // BD_PageNumOnCover - not used. - - tmpshort = brFmt.ReadInt16(); // VESearchLeftMargin - not used (same for rest that list varname. - tmpshort = brFmt.ReadInt16(); // VEStdPrtLeftMarE - tmpshort = brFmt.ReadInt16(); // VEStdPrtLeftMarP - - int tmplong = brFmt.ReadInt32(); // ImperfectSTructureSepStyle - tmpshort = brFmt.ReadInt16(); // FormsLPI - tmplong = brFmt.ReadInt32(); // FormsStyle - tmplong = brFmt.ReadInt32(); // FormsBoxStyle - tmpshort = brFmt.ReadInt16(); // FormsMargin - tmpshort = brFmt.ReadInt16(); // ChangeSummaryLPI - - cb.ChangeSummaryStyle = brFmt.ReadInt32(); // this may be moved into a different struct - cb.ChangeBarStyle = brFmt.ReadInt32(); - fmtdata.ProcData.ChangeBarData = cb; - - for (int i = 0; i < 30; i++) tmpshort = brFmt.ReadInt16(); // XPosition - - fmtdata.ProcData.TitleLength = brFmt.ReadInt16(); - fmtdata.ProcData.CoverTitleLength = brFmt.ReadInt16(); - - fmtdata.ProcData.CheckOffData = new CheckOffData(); - // for the Base format, set the Default Change bar locations from hardcoded - // data in the 16-bit program: (ovrchgbr.c) - if (!HasBase) fmtdata.ProcData.ChangeBarData.DefaultCBLoc = "0,85,-85,-3"; - int[] rightCheckOffBox = new int[4]; - for (int i = 0; i < 4; i++) - { - rightCheckOffBox[i] = brFmt.ReadInt16(); - } - int DefaultCheckOffType = (rightCheckOffBox[2] > 0) ? rightCheckOffBox[2] : rightCheckOffBox[3] >> 8; - fmtdata.ProcData.CheckOffData.AllowSectEdit = DefaultCheckOffType == 1 || (rightCheckOffBox[0] > 0 || rightCheckOffBox[1] > 0) ? "True" : "False"; - fmtdata.ProcData.CheckOffData.AllowStepEdit = DefaultCheckOffType >= 1 ? "True" : "False"; - fmtdata.ProcData.CheckOffData.CheckoffOnSubStepsOnly = "False"; - tmpshort = brFmt.ReadInt16(); // TwoCheckOffs - fmtdata.ProcData.CheckOffData.CheckOffList = new CheckOff[MAXCHECKOFFS]; - for (int i = 0; i < MAXCHECKOFFS; i++) fmtdata.ProcData.CheckOffData.CheckOffList[i].Index = i; - for (int i = 0; i < MAXCHECKOFFS; i++) fmtdata.ProcData.CheckOffData.CheckOffList[i].UIMark = brFmt.ReadByte(); - for (int i = 0; i < MAXCHECKOFFS; i++) fmtdata.ProcData.CheckOffData.CheckOffList[i].CheckOffXtraLines = brFmt.ReadByte(); // CheckOffXtraLines - for (int i = 0; i < MAXCHECKOFFS; i++) fmtdata.ProcData.CheckOffData.CheckOffList[i].CheckOffWidAdjust = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle); - for (int i = 0; i < MAXCHECKOFFS; i++) tmpbyte = brFmt.ReadByte(); // CheckOffFeatures - fmtdata.ProcData.CheckOffData.CheckOffHeaderList = new CheckOffHeader[MAXCHKHEADINGS]; - for (int i = 0; i < MAXCHKHEADINGS; i++) fmtdata.ProcData.CheckOffData.CheckOffHeaderList[i].Index = i; - for (int i = 0; i < MAXCHKHEADINGS; i++) fmtdata.ProcData.CheckOffData.CheckOffHeaderList[i].Font = LoadVE_Font(); - fmtdata.ProcData.CheckOffData.UseCheckOffsIn = brFmt.ReadInt32(); - // 16 bit code was defaulting to Elite when calculating the starting location of the check off line. - // so use elite: 72 points per inch, 12 chars per inch - int tmpcolco = (rightCheckOffBox[3] & 0xFF) * 72/12; - if (tmpcolco > 0) fmtdata.ProcData.CheckOffData.XLocation = (float)tmpcolco; // ColToPoints((float)tmpcolco, _PlantDefaultFontStyle); - tmplong = (int)brFmt.ReadUInt32(); - fmtdata.SectData.StepSectionData.StpSectLayData.EndMessagePos = brFmt.ReadInt16(); - tmpshort = brFmt.ReadInt16(); // CenterTableAdjustment - tmpshort = brFmt.ReadInt16(); // NumberOfLinesForNoteOrCaution - - //for (int i = 0; i < MAXSEQ; i++) fmtdata.SectData.StepSectionData.SeqStart[i] = brFmt.ReadByte(); - fmtdata.SectData.StepSectionData.SequentialTabFormat = new SeqTabFmt[MAXSEQ]; - for (int i = 0; i < MAXSEQ; i++) - { - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken = ConvertSeqStart(brFmt.ReadByte()); - } - - //fmtdata.SectData.StepSectionData.HighSeqStart = brFmt.ReadByte(); - tmpbyte = brFmt.ReadByte(); // HighSeqStart - fmtdata.SectData.StepSectionData.IndentToken = brFmt.ReadByte(); - - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdrCol = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdrStyle = LoadVE_Font(); - - ReplaceStr[] repstr = new ReplaceStr[MAXREPLACE]; - fmtdata.SectData.ReplaceStrData = repstr; - for (int i = 0; i < 60; i++) repstr[i].Flag = ((E_ReplaceStr)brFmt.ReadUInt32()).ToString(); - - //for (int i = 0; i < 2; i++) tmpshort3[i] = brFmt.ReadInt16(); - //tmpstr = string.Format("{0},{1}", tmpshort3[0], tmpshort3[1]); - tmpstr = ""; - for (int i = 0; i < 2; i++) - { - tmpstr += ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle).ToString(); - //tmpstr += ((float)(brFmt.ReadInt16() * 7.2)).ToString(); - if (i == 0) tmpstr += ","; - } - fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = tmpstr; - fmtdata.SectData.StepSectionData.StpSectLayData.HLSWidthOVRD = brFmt.ReadInt16(); - fmtdata.SectData.StepSectionData.StpSectPrtData.SecColHdrforActPMode = brFmt.ReadInt16(); - - for (int i = 0; i < MAXSTEPS + 1; i++) fmtdata.StepData[i].Index = i; - for (int i = 1; i < MAXSTEPS + 1; i++) - { - tmpbyte = brFmt.ReadByte(); - fmtdata.StepData[i].StepLayoutData.AlignWithParentTab = tmpbyte == 1 ? true.ToString() : false.ToString(); - } - - fmtdata.SectData.SectionNumber = new SectionNum(); - fmtdata.SectData.SectionHeader = new SectionHead(); - fmtdata.SectData.SectionNumber.Font = LoadVE_Font(); - fmtdata.SectData.SectionHeader.Font = LoadVE_Font(); - fmtdata.SectData.SectionNumber.Pos = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - fmtdata.SectData.SectionNumber.Just = ((E_PageStructMod)brFmt.ReadByte()).ToString(); - fmtdata.SectData.SectionHeader.Pos = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); - fmtdata.SectData.SectionHeader.Just = ((E_PageStructMod)brFmt.ReadByte()).ToString(); - - for (int i = 0; i < 10; i++) tmpbyte = brFmt.ReadByte(); // SecLevelDelta - fmtdata.SectData.SectionTitleLength = brFmt.ReadInt16(); - tmpshort = brFmt.ReadInt16(); - - rtCheckOffGroups[0] = 0; - for (int i = 1; i < MAXSTEPS + 1; i++) rtCheckOffGroups[i] = (brFmt.ReadInt16()); - for (int i = 1; i < MAXSTEPS + 1; i++) - { - // if the grouping is > 0, then use the 'right check off' macro WHEN there - // are more than rtCheckOffGroups[i] of the step type. - if (rtCheckOffGroups[i] != 0) - { - if (fmtdata.StepData[i].TabData.MacroList == null) - { - fmtdata.StepData[i].TabData.MacroList = new COMacro[1]; - fmtdata.StepData[i].TabData.MacroList[0].Name = "CHECKOFF"; - fmtdata.StepData[i].TabData.MacroList[0].Macro = "C22"; - } - fmtdata.StepData[i].TabData.MacroList[0].Grouping = rtCheckOffGroups[i].ToString(); - } - } - for (int i = 0; i < 100; i++) tmpshort = brFmt.ReadInt16(); // TypeGroups - for (int i = 0; i < 20; i++) tmpshort = brFmt.ReadInt16(); // EnhancedSubTypes; - - fmtdata.SectData.StepSectionData.StpSectLayData.SubPaginationWght = brFmt.ReadInt16(); - fmtdata.SectData.StepSectionData.StpSectLayData.TextTitleAdjustment = brFmt.ReadInt16(); - - for (int i = 1; i < MAXSTEPS + 1; i++) tmpshort = brFmt.ReadInt16(); // STAfterLines - - fmtdata.TransData.TransTypeData = new TransTypes[MAXTRANS]; - for (int i = 0; i < MAXTRANS; i++) - { - fmtdata.TransData.TransTypeData[i].TransType = brFmt.ReadByte(); - if (i < 6 && fmtdata.TransData.TransTypeData[i].TransType == 0) fmtdata.TransData.TransTypeData[i].TransType = (byte)i; - } - for (int i = 0; i < MAXTRANS; i++) tmpbyte = brFmt.ReadByte(); // TransMode - for (int i = 0; i < MAXTRANS; i++) tmpbyte = brFmt.ReadByte(); // OutsideTransType - - for (int i = 1; i < MAXSTEPS+1; i++) - { - tmpshort = brFmt.ReadInt16(); - fmtdata.StepData[i].WidthOverride = (ColToPoints((tmpshort & 0x00FF), _PlantDefaultFontStyle)).ToString(); - fmtdata.StepData[i].WidthOverrideEdit = (ColToPoints(((tmpshort & 0xFF00) >> 8), _PlantDefaultFontStyle)).ToString(); - } - - // auto table of contents data - AccSection accsec = new AccSection(); - - TOC toc = new TOC(); - // the toc position values are all 12 CPI regardless of font used (according to a comment in - // the wcn1 format files. - float tmpfloat1 = Convert.ToInt16(brFmt.ReadSByte()); - toc.TofCSecNumPos = 72 * (tmpfloat1 / 12); // 12cpi - tmpfloat1 = Convert.ToInt16(brFmt.ReadSByte()); - toc.TofCSecTitlePos = 72 * (tmpfloat1 / 12); // 12cpi - tmpbyte = brFmt.ReadByte(); // TofCSecTitlePos2 - toc.TofCSecTitleLen = brFmt.ReadByte(); - tmpfloat1 = Convert.ToInt16(brFmt.ReadSByte()); - toc.TofCPageNumPos = 72 * (tmpfloat1 / 12); - byte tofCSpaceChar = brFmt.ReadByte(); - toc.TofCSpaceChar = tofCSpaceChar == 0 ? null : Convert.ToString(Convert.ToChar(tofCSpaceChar)); - toc.TofCLineSpacing = brFmt.ReadByte(); - toc.Font = LoadVE_FontByte(); ; - accsec.TableOfContentsData = toc; - for (int i = 0; i < MAXSTEPS; i++) tmpbyte = brFmt.ReadByte(); - - fmtdata.ProcData.CheckOffData.CheckOffAdjustment = ColToPoints(Convert.ToInt16(brFmt.ReadSByte()), _PlantDefaultFontStyle); - - tmpshort = brFmt.ReadInt16(); // ColsAdjustInS2 - tmpbyte = brFmt.ReadByte(); // SeriesTitleLength; - - for (int i = 1; i < MAXSTEPS + 1; i++) - { - sbyte[] vp = new sbyte[15]; - for (int j = 0; j < 15; j++) vp[j] = brFmt.ReadSByte(); - bool hasdata = false; - for (int j = 0; j < 15; j++) - { - if (vp[j] != '\0') - { - hasdata = true; - break; - } - } - if (!hasdata) - fmtdata.StepData[i].VertPos = null; - else - { - fmtdata.StepData[i].VertPos = null; - for (int j = 0; j < 15; j++) - fmtdata.StepData[i].VertPos = fmtdata.StepData[i].VertPos + string.Format("{0},", ColToPoints(vp[j], _PlantDefaultFontStyle)); - fmtdata.StepData[i].VertPos = fmtdata.StepData[i].VertPos.Substring(0, fmtdata.StepData[i].VertPos.Length - 1); // remove last "," - } - } - fmtdata.SectData.StepSectionData.StpSectLayData.VertStyle = LoadVE_Font(); - - for (int i = 0; i < 3; i++) - { - tmpfloat[i] = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle); - } - tmpstr = string.Format("{0},{1},{2}", tmpfloat[0], tmpfloat[1], tmpfloat[2]); - fmtdata.SectData.StepSectionData.StpSectLayData.TableCenterPos = tmpstr; - for (int i = 0; i < MAXSEQ; i++) fmtdata.SectData.StepSectionData.SequentialTabFormat[i].Index = i; - LeftJustify[] lftjust = new LeftJustify[MAXSEQ]; - fmtdata.SectData.StepSectionData.StpSectPrtData.LeftJustifyList = lftjust; - for (int i = 0; i < MAXSEQ; i++) - { - lftjust[i].Index = i; - lftjust[i].Size = ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle); //brFmt.ReadInt16(); - } - MetaSection[] metsects = new MetaSection[10]; - fmtdata.SectData.MetaSectionData = metsects; - for (int i = 0; i < 10; i++) metsects[i].Index = i; - for (int i = 0; i < 10; i++) metsects[i].SecNumPositionAdj = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle); - for (int i = 0; i < 10; i++) metsects[i].SecTitlePositionAdj = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle); - for (int i = 0; i < 10; i++) metsects[i].ColSByLevel = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle); - for (int i = 0; i < 10; i++) metsects[i].TofCPositionAdj = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle); - for (int i = 0; i < 10; i++) metsects[i].WidSAdjByLevel = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle); - - fmtdata.SectData.StepSectionData.NumberOfHighLevelSteps = brFmt.ReadByte(); - - for (int i = 0; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].Index = i; - for (int i = 1; i < MAXBOXES + 1; i++) fmtdata.BoxData[i].TxtRowAdj = brFmt.ReadSByte(); - for (int i = 1; i < MAXBOXES + 1; i++) tmpshort = brFmt.ReadByte(); - - for (int i = 1; i < MAXSTEPS+1; i++) - { - tmpshort = brFmt.ReadInt16(); - fmtdata.StepData[i].ColOverride = (ColToPoints((tmpshort & 0x00FF), _PlantDefaultFontStyle)).ToString(); - fmtdata.StepData[i].ColOverrideEdit = (ColToPoints(((tmpshort & 0xFF00)>>8), _PlantDefaultFontStyle)).ToString(); - } - - fmtdata.SectData.StepSectionData.NumberOfSubStepTypes = brFmt.ReadByte(); - - accsec.AutoContActSumSection = brFmt.ReadInt32(); - fmtdata.SectData.AccSectionData = accsec; - #endregion - #region LoadStrings - long floc = brFmt.BaseStream.Position; - ////////////////// - // STRINGS NOW - ///////////////// - - brFmt.BaseStream.Seek(tstloc, SeekOrigin.Begin); - short numstr = brFmt.ReadInt16(); - short len = brFmt.ReadInt16(); - byte[] input = GetByteArray(brFmt, len); - - // now load in the offset info for data. - // read in the offsets from the begining of tmpstr - // this allows us to conserve on memory because duplicate strings - // will only be held once - // - Int16[] offset = new Int16[numstr]; - int indx; - for (int i = 0; i < numstr; i++) offset[i] = brFmt.ReadInt16(); - - // Add the default box characters to be used. - fmtdata.BoxData[0].BXULC = ConvertText("\x0DA"); - fmtdata.BoxData[0].BXHorz = ConvertText("\x0C4"); - fmtdata.BoxData[0].BXURC = ConvertText("\x0BF"); - fmtdata.BoxData[0].BXVert = ConvertText("\x0B3"); - fmtdata.BoxData[0].BXMLS = ConvertText("\x0C3"); - fmtdata.BoxData[0].BXMRS = ConvertText("\x0B4"); - fmtdata.BoxData[0].BXLLC = ConvertText("\x0C0"); - fmtdata.BoxData[0].BXLRC = ConvertText("\x0D9"); - fmtdata.BoxData[0].BXMID = ConvertText("\x0C5"); - fmtdata.BoxData[0].BXUMID = ConvertText("\x0C2"); - fmtdata.BoxData[0].BXLMID = ConvertText("\x0C1"); - - // using offsets, get data & put into fields. - int arcnt = 1; // use this to count into offset array for data. - for (int i = 1; i < MAXBOXES + 1; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXURC = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXHorz = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXULC = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXVert = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXMLS = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXMRS = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXLRC = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXLLC = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXMID = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXLHorz = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXUMID = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.BoxData[i].BXLMID = GetStringFromByte(input, indx); - } - - // increment arcnt by 144 because there were 24 box possibilities in the - // 16bit the second 12 were rtf - arcnt = arcnt + 144; - - //tabs - string[,] tabstrings = new string[MAXTABS, 2]; - for (int i = 0; i < MAXTABS; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) tabstrings[i, 0] = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) tabstrings[i, 1] = GetStringFromByte(input, indx); - } - NBRSub = fmtdata.SectData.StepSectionData.NumberOfSubStepTypes != 0 ? fmtdata.SectData.StepSectionData.NumberOfSubStepTypes : NBRSub; - for (int i = 0; i < MAXSTEPS; i++) - { - for (int j = 0; j < MAXTABS; j++) - { - if (Tabindx[i] == j) - { - fmtdata.StepData[i + 1].TabData.IdentEdit = DoTabs(fmtdata.StepData[i].TabData.Font, fmtdata.PurchaseOptions, i, tabstrings[j, 0], true); - //fmtdata.StepData[i + 1].TabData.IdentEditWid = CalculateTabWid(tabstrings[j, 0]).ToString(); - fmtdata.StepData[i + 1].TabData.Ident = DoTabs(fmtdata.StepData[i].TabData.Font, fmtdata.PurchaseOptions, i, tabstrings[j, 1], true); - //fmtdata.StepData[i + 1].TabData.IdentWid = CalculateTabWid(tabstrings[j, 1]).ToString(); - break; - } - } - } - - // separators - for (int i = 1; i < MAXSTEPS + 1; i++) - { - indx = offset[arcnt]; - arcnt++; - // differentiate between an empty string and null. An empty string is used to put out - // blank lines. A null string means there is not any separator, thus use the string "{Null}" - // so that inheritance tests can show a difference between having a separator and not having one. - if (indx > 0) fmtdata.StepData[i].Sep = DoReplaceTokens(GetStringFromByte(input, indx)); - else fmtdata.StepData[i].Sep = "{Null}"; - } - - // Step prefix & suffix - for (int i = 1; i < MAXSTEPS + 1; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.StepData[i].Prefix = DoReplaceTokens(GetStringFromByte(input, indx)); - } - for (int i = 1; i < MAXSTEPS + 1; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.StepData[i].Suffix = DoReplaceTokens(GetStringFromByte(input, indx)); - } - - // IdentB & SeqTab - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.IdentB = GetStringFromByte(input, indx); - for (int i = 0; i < MAXSEQ; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) - { - string p = GetStringFromByte(input, indx); // seqtab. - if (p != null) - { - if (p[0] == '+') - { - string tmp = null; - if (fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken.IndexOf("{numeric}") > -1) - { - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken = fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken.Replace("{numeric}", "{numericWpar}"); - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat = p.Replace("+", "{seq}"); - } - else if (fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken.IndexOf("{alpha}") > -1) - { - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken = fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken.Replace("{alpha}", "{alphaWpar}"); - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat = p.Replace("+", "{seq}"); - } - else if (fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken.IndexOf("{ALPHA}") > -1) - { - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken = fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabToken.Replace("{ALPHA}", "{ALPHAWpar}"); - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat = p.Replace("+", "{seq}"); - } - else - tmp = p.Replace("+", "{UNKNOWNWpar}"); - } - else - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat = "{seq}" + p; - } - else - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat = null; - } - else - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat = null; - //if (indx > 0) fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat = fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat + GetStringFromByte(input, indx); - } - // replace word strings - for (int i = 0; i < MAXREPLACE; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) repstr[i].ReplaceWord = DoReplaceTokens(GetStringFromByteNoConvert(input, indx)); - } - for (int i = 0; i < MAXREPLACE; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) repstr[i].ReplaceWith = DoReplaceTokens(GetStringFromByte(input, indx)); - } - - // various proc matching/data - ProcDescr[] pd = new ProcDescr[10]; - for (int i = 0; i < 10; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) pd[i].MatchProcNumber = GetStringFromByte(input, indx); - } - - for (int i = 0; i < 10; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) pd[i].ProcDescr1 = GetStringFromByte(input, indx); - } - - for (int i = 0; i < 10; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) pd[i].ProcDescr2 = GetStringFromByte(input, indx); - } - fmtdata.PrintData.ProcDescrList = pd; - - string[] Versid = new string[5]; - for (int i = 0; i < 5; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) Versid[i] = GetStringFromByte(input, indx); - } - fmtdata.PrintData.VersionIdText = Versid; - - // a few transition strings - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.TransData.DelimiterForTransitionTitle = GetStringFromByte(input, indx); - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.TransData.StepSubstepDelimeter = GetStringFromByte(input, indx); - - indx = offset[arcnt]; - arcnt++; - // Replace the with a blank, one of the formats (cpla - robinson) used this to flag - // an underline for step numbers in transitions, but this format is no longer used. - if (indx > 0) fmtdata.TransData.ThroughString = GetStringFromByte(input, indx).Replace('', ' '); - - // procedure suffix data - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.ProcData.ProcedureSuffixFlags = GetStringFromByte(input, indx); - - fmtdata.ProcData.ProcedureSuffix = new string[10]; - for (int i = 0; i < 10; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.ProcData.ProcedureSuffix[i] = GetStringFromByte(input, indx); - } - - // PlantDnLoad not used - skip it. - arcnt++; - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.PrintData.TopOfPageThing = DoReplaceTokens(GetStringFromByte(input, indx)); - - // not used: xtitle[3][10] - skip 30 - arcnt = arcnt + 30; - - for (int i = 0; i < MAXSTEPS + 1; i++) - { - fmtdata.StepData[i].Inactive = Inactive[i]; - fmtdata.StepData[i].StepEditData.Searchable = Searchable[i]; - fmtdata.StepData[i].StepEditData.TypeMenu.MenuItem = TypeMenuItem[i]; - fmtdata.StepData[i].StepEditData.TypeMenu.InMenu = (fmtdata.StepData[i].Type == "RNOType" || fmtdata.StepData[i].Type == "Base") ? false.ToString() : true.ToString(); - - // Set all caution/note 'InMenu' to false except basic caution/note, types 6 & 7. Use the AlternateNameList to set them to true. - if (i == 20 || i == 21 || i == 22 || i == 23 || i == 26 || i == 27 || i == 28 || i == 29 || i == 32) fmtdata.StepData[i].StepEditData.TypeMenu.InMenu = false.ToString(); - - fmtdata.StepData[i].StepEditData.TypeMenu.NoChgReason = NoChangeTypeReason[i]; - fmtdata.StepData[i].StepEditData.TypeMenu.RnoInMenu = RnoInMenu[i]; - if (fmtdata.StepData[i].Type == "Figure") - //{ - //fmtdata.StepData[i].StepEditData.TypeMenu.RnoInMenu = true.ToString(); - fmtdata.StepData[i].StepEditData.TypeMenu.RnoMenuItem = "With Border"; - //} - else if (fmtdata.StepData[i].Type == "Table") - fmtdata.StepData[i].StepEditData.TypeMenu.RnoMenuItem = "Table"; - else if (fmtdata.StepData[i].Type == "BorderlessTable" || fmtdata.StepData[i].Type == "BorderlessFigure") - //{ - //fmtdata.StepData[i].StepEditData.TypeMenu.RnoInMenu = true.ToString(); - fmtdata.StepData[i].StepEditData.TypeMenu.RnoMenuItem = "Without Border"; - - //} - //else if (fmtdata.StepData[i].Type == "AERTable" || fmtdata.StepData[i].Type == "BorderlessAERTable" || fmtdata.StepData[i].Type == "AERFigure" || fmtdata.StepData[i].Type == "BorderlessAERFigure") - // fmtdata.StepData[i].StepEditData.TypeMenu.RnoInMenu = false.ToString(); - if (fmtdata.StepData[i].Type.Contains("Borderless") && fmtdata.StepData[i].Type.Contains("Table")) fmtdata.StepData[i].Inactive = true.ToString(); - } - // fmtdata.SectData.StepSectionData.TextType = new string[10]; - // Set up the text type fields - these are used to define what types of steps the current step - // can be changed to.. - _AlternateIndex = null; - int[] tmparray ={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; - for (int i = 0; i < 10; i++) - { - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) - { - string tmpstring = GetStringFromByte(input, indx); - // put this in the step data alternatename field. If there already is one. stop - // here for now to see this!. - //if (fmtdata.StepData[TextTypeValue[i] + 1].StepEditData.TypeMenu.MenuItem != null && fmtdata.StepData[TextTypeValue[i] + 1].StepEditData.TypeMenu.MenuItem != tmpstring) - // Console.WriteLine("different name, " + fmtdata.StepData[TextTypeValue[i] + 1].StepEditData.TypeMenu.MenuItem + ", " + tmpstring); - fmtdata.StepData[TextTypeValue[i] + 1].StepEditData.TypeMenu.MenuItem = tmpstring; - - _AlternateIndex = (_AlternateIndex == null) ? fmtdata.StepData[TextTypeValue[i] + 1].Type : _AlternateIndex + "," + fmtdata.StepData[TextTypeValue[i] + 1].Type; - //fmtdata.SectData.StepSectionData.TextType[i] = GetStringFromByte(input, indx); - } - - } - if (_AlternateIndex != null) - { - // For any step types in the texttypevalue list, add the alternatename list: - for (int i = 0; i < 10; i++) - { - // this was only used for cautions/notes - so only add if texttypevalue isn't 0, 0 was substep and it - // was getting set for substeps, that can never have an alternate type - at least from - // format->xml migration. - if (TextTypeValue[i] != 0) - { - fmtdata.StepData[TextTypeValue[i] + 1].StepEditData.TypeMenu.AlternateNameList = _AlternateIndex; - fmtdata.StepData[TextTypeValue[i] + 1].StepEditData.TypeMenu.InMenu = true.ToString(); - } - } - } - // not used, SectionsToPrint - 10; SectionNumberMask - 10; SectionsToPrintTitle - 10; - // DocumentTitleExtensions - 10; DocumentFixFileExtensions - 10; - - arcnt = arcnt + 50; - - // some seqtab data. - string[] tmpSeqStrings = new string[MAXSEQ]; - for (int i = 0; i < MAXSEQ; i++) - { - tmpSeqStrings[i] = fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat; - indx = offset[arcnt]; - arcnt++; - if (indx > 0) // PreSeqTab - Edit - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat = GetStringFromByte(input, indx) + tmpSeqStrings[i]; - indx = offset[arcnt]; - arcnt++; - if (indx > 0) // PreSeqTab - Print - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].PrintTabFormat = GetStringFromByte(input, indx).Replace("\x08", "{0x08}") + tmpSeqStrings[i]; - else - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].PrintTabFormat = tmpSeqStrings[i]; - //tmpstr = GetStringFromByte(input, indx).Replace("\x08", ""); - } - for (int i = 0; i < MAXSEQ; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) // PostSeqTab - Edit - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].TabFormat += GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) // PostSeqTab - Print - fmtdata.SectData.StepSectionData.SequentialTabFormat[i].PrintTabFormat += GetStringFromByte(input, indx); - } - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.StpSectPrtData.RNOSepString = DoReplaceTokens(GetStringFromByte(input, indx)); - - fmtdata.SectData.StepSectionData.UnderlineTerminate = new string[10]; - for (int i = 0; i < 10; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.UnderlineTerminate[i] = GetStringFromByte(input, indx); - } - - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdr = new string[2]; - for (int i = 0; i < 2; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdr[i] = GetStringFromByte(input, indx); - } - for (int i = 0; i < 5; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.StepData[this.altsteps[i]].StepEditData.TypeMenu.MenuItem = GetStringFromByte(input, indx); - //if (indx > 0) fmtdata.StepData[TextTypeValue[i]].StepEditData.TypeMenu.MenuItem = GetStringFromByte(input, indx); - } - string mytmp = null; - for (int i = 0; i < 16; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.StepData[this.altsubsteps[i]].StepEditData.TypeMenu.MenuItem = GetStringFromByte(input, indx); - } - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.ProcData.ChangeBarData.SpecialChangeBar = DoReplaceTokens(GetStringFromByte(input, indx)); - - // not used - ImperfectStructureSeparator - arcnt++; - - fmtdata.SectData.StepSectionData.ObserveNCString1 = new string[4]; - fmtdata.SectData.StepSectionData.ObserveNCString2 = new string[4]; - for (int i = 0; i < 4; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.ObserveNCString1[i] = DoReplaceTokens(GetStringFromByteNoConvert(input, indx)); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.ObserveNCString2[i] = DoReplaceTokens(GetStringFromByteNoConvert(input, indx)); - } - - for (int i = 1; i < MAXSTEPS + 1; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) - fmtdata.StepData[i].UnderlineTheseChar = GetStringFromByte(input, indx); - } - - // not used - SubScriptTheseChar - arcnt++; - - bool hasMenuItem = false; - for (int i = 0; i < MAXCHECKOFFS; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) - { - fmtdata.ProcData.CheckOffData.CheckOffList[i].MenuItem = GetStringFromByte(input, indx); - hasMenuItem = true; - } - } - - if (hasMenuItem) - { - fmtdata.ProcData.CheckOffData.Menu = "Checkoff"; - for (int i = 0; i < MAXCHECKOFFS; i++) - if (i > 1) fmtdata.ProcData.CheckOffData.CheckOffList[i].Macro = "C" + i.ToString(); - } - // add signoff menuitems which are Endabled/Disabled & also Menu - if (rightCheckOffBox[0] != 0 && rightCheckOffBox[1] != 0) - { - fmtdata.ProcData.CheckOffData.Menu = "Signoff"; - fmtdata.ProcData.CheckOffData.CheckOffList[0].Index = 0; - fmtdata.ProcData.CheckOffData.CheckOffList[0].MenuItem = "Enabled"; - fmtdata.ProcData.CheckOffData.CheckOffList[0].Macro = "C1"; - fmtdata.ProcData.CheckOffData.CheckOffList[1].Index = 1; - fmtdata.ProcData.CheckOffData.CheckOffList[1].MenuItem = "Disabled"; - if (rightCheckOffBox[0] == -2 && rightCheckOffBox[1] == -2) fmtdata.ProcData.CheckOffData.SkipSpaces = "true"; - else - { - if (fmtdata.ProcData.CheckOffData.LayoutList == null) - fmtdata.ProcData.CheckOffData.LayoutList = new Absolute [2]; - fmtdata.ProcData.CheckOffData.LayoutList[0].RnoLevel = "0"; - fmtdata.ProcData.CheckOffData.LayoutList[0].Column = rightCheckOffBox[0]; - fmtdata.ProcData.CheckOffData.LayoutList[1].RnoLevel = "1"; - fmtdata.ProcData.CheckOffData.LayoutList[1].Column = rightCheckOffBox[1]; - } - } - for (int i = 0; i < MAXCHKHEADINGS; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.ProcData.CheckOffData.CheckOffHeaderList[i].CheckOffHeading = DoReplaceTokens(GetStringFromByte(input, indx)); - } - - // not used - WindEditFile - arcnt++; - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) tmpstr = GetStringFromByte(input, indx); - - // not used - RNOPreSeqTab[9][2] - arcnt = arcnt + 18; - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.StpSectPrtData.HLStpSeparatorString = GetStringFromByte(input, indx); - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.StpSectPrtData.HLRNOStpSeparatorString = GetStringFromByte(input, indx); - - for (int i = 0; i < MAXTABS; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) tabstrings[i, 0] = GetStringFromByte(input, indx); - indx = offset[arcnt]; - arcnt++; - if (indx > 0) tabstrings[i, 1] = GetStringFromByte(input, indx); - } - for (int i = 0; i < MAXSTEPS; i++) - { - for (int j = 0; j < MAXTABS; j++) - { - if (Tabindx[i] == j) - { - fmtdata.StepData[i + 1].TabData.RNOIdentEdit = DoTabs(fmtdata.StepData[i].TabData.Font, fmtdata.PurchaseOptions, i, tabstrings[j, 0], fmtdata.StepData[i].StepNumberForHighLevel == "True"); - //fmtdata.StepData[i + 1].TabData.RNOIdentEditWid = CalculateTabWid(tabstrings[j, 0]).ToString(); - fmtdata.StepData[i + 1].TabData.RNOIdent = DoTabs(fmtdata.StepData[i].TabData.Font, fmtdata.PurchaseOptions, i, tabstrings[j, 1], fmtdata.StepData[i].StepNumberForHighLevel == "True"); - //fmtdata.StepData[i + 1].TabData.RNOIdentWid = CalculateTabWid(tabstrings[j, 1]).ToString(); - break; - } - } - } - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.StpSectLayData.LowerLimitDivisor = GetStringFromByte(input, indx); - - // If the DoSectionTrans flag is set, use DefaultSectionTransStr for defaults, - // otherwise use the DefaultTransStr. The DoSectionTransTypeB flags just - // replaces the [5] item in the DefaultSectionTransStr array. I'll reset - // if this flag isn't used since formats are processed in a loop and only want - // the change to the default for the current format if the flag is set in it. - if (XtraFlags.DoSectionTransTypeB == "True") - { - DefaultSectionTransTokenStr[5] = DefaultSectionTransStrTypeB; - DefaultSectionTransFormatStr[5] = DefaultSectionTransStrTypeB; - } - else // if flag not set, just reset default in case used in one of next formats. - { - DefaultSectionTransTokenStr[5] = DefaultSectionTransStrTypeBNone; - DefaultSectionTransFormatStr[5] = DefaultSectionTransStrTypeBNone; - } - - // If the plant uses the TransProcTitleInParen flag, then place parens - // around the proc & section titles. - if (XtraFlags.TranProcTitleInParen == "True") - { - DefaultTransStr[0] = "{Proc Num} ({Proc Title}) Step {First Step}"; - DefaultTransStr[3] = "{First Step} thru {Last Step} of {Proc Num} ({Proc Title}) ({Sect Hdr})"; - DefaultTransStr[4] = "({Sect Title}), Step {First Step}"; - DefaultTransStr[5] = "{Proc Num}, ({Proc Title}) ({Sect Hdr}), Step {First Step}"; - } - if (fmtdata.TransData.ThroughString != null && fmtdata.TransData.ThroughString != "") - { - DefaultTransStr[3] = DefaultTransStr[3].Replace(" thru ", fmtdata.TransData.ThroughString); - DefaultSectionTransTokenStr[3] = DefaultSectionTransTokenStr[3].Replace(" thru ", fmtdata.TransData.ThroughString); - DefaultSectionTransFormatStr[3] = DefaultSectionTransFormatStr[3].Replace(" thru ", fmtdata.TransData.ThroughString); - } - for (int i = 0; i < MAXTRANS; i++) - { - fmtdata.TransData.TransTypeData[i].Index = i; - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.TransData.TransTypeData[i].TransFormat = ConvertTransFormat(GetStringFromByteNoConvert(input, indx)); - else if (i < 6) - { - fmtdata.TransData.TransTypeData[i].TransFormat = XtraFlags.DoSectionTrans == "True" ? DefaultSectionTransFormatStr[i] : DefaultTransStr[i]; - fmtdata.TransData.TransTypeData[i].TransType = (byte)i; // reset type - } - } - - for (int i = 0; i < MAXTRANS; i++) - { - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.TransData.TransTypeData[i].TransMenu = ConvertTransFormat(GetStringFromByteNoConvert(input, indx)); - else if (i < 6) - { - fmtdata.TransData.TransTypeData[i].TransMenu = XtraFlags.DoSectionTrans == "True" ? DefaultSectionTransTokenStr[i] : DefaultTransStr[i]; - fmtdata.TransData.TransTypeData[i].TransType = (byte)i; // reset type - } - } - for (int i = 0; i < MAXTRANS; i++) - { - if (fmtdata.TransData.TransTypeData[i].TransFormat != null && fmtdata.TransData.TransTypeData[i].TransMenu != null) fmtdata.TransData.TransTypeData[i].TransUI = GetTransUIEnum(fmtdata.TransData.TransTypeData[i].TransFormat, fmtdata.TransData.TransTypeData[i].TransMenu); - } - // if in dosectiontransitions, put the format/menu strings back to original - //if (XtraFlags.DoSectionTrans == "True") - //{ - // for (int i = 0; i < MAXTRANS; i++) - // { - // if (i < 6 && fmtdata.TransData.TransTypeData[i].TransMenu != null) - // { - // fmtdata.TransData.TransTypeData[i].TransFormat = DefaultSectionTransFormatStr[i]; - // fmtdata.TransData.TransTypeData[i].TransMenu = DefaultSectionTransFormatStr[i]; - - // } - // } - //} - //arcnt = arcnt + MAXTRANS; - - // not used OutsideTransFmt & OutsideTransMenu - arcnt = arcnt + (MAXTRANS * 2); - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.StpSectLayData.NonLinkedStepNumber = GetStringFromByte(input, indx); - - //not used BldLstFile - arcnt++; - // AltPrintTBIdent (20 items) - //arcnt += MAXTABS; - for (int j = 0; j < MAXTABS; j++) - { - indx = offset[arcnt]; - arcnt++; - if (indx != 0) - { - string ts = GetStringFromByte(input, indx); - for (int i = 0; i < MAXSTEPS; i++) - { - if (Tabindx[i] == j) - { - fmtdata.StepData[i + 1].TabData.IdentAltPrint = ts; - break; - } - } - } - } - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.StpSectLayData.NonLinkedCautNoteNumber = GetStringFromByte(input, indx); - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.PrintData.DuplexBGDirectory = GetStringFromByte(input, indx); - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.PrintData.DuplexDDDirectory = GetStringFromByte(input, indx); - - indx = offset[arcnt]; - arcnt++; - if (indx > 0) fmtdata.SectData.StepSectionData.StpSectLayData.NonLinkedRNONumber = GetStringFromByte(input, indx); - - #endregion - } - catch (Exception ex) - { - Console.WriteLine("Error on read - format = {0}", fmtdata.Name); - Console.WriteLine(ex.Message); - Console.WriteLine(); - return false; - } - return AdjustFlags(ref fmtdata, ref XtraFlags); - } - - /// - /// Replace invalid characters with a special sequence - /// - /// - /// - private string FixXmlString(string str) - { - // http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char - // http://cse-mjmcl.cse.bris.ac.uk/blog/2007/02/14/1171465494443.html - // The regular expression below find any invalid characters - // by looking for characters that are not valid - MatchCollection matches = Regex.Matches(str, @"[^\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD]"); - int lastIndex = 0; - StringBuilder sb = new StringBuilder(); - int len = str.Length; - foreach (Match match in matches) - { - sb.Append(str.Substring(lastIndex, match.Index - lastIndex)); - foreach (char c in match.Value) - sb.Append(string.Format("[({0:X04}])", (int)c)); - lastIndex = match.Index + match.Length; - } - sb.Append(str.Substring(lastIndex)); - if (!str.Substring(lastIndex).EndsWith("\n")) - sb.Append("\n"); - return sb.ToString(); - } - - private bool AdjustFlags(ref FormatData fmtdata, ref XtraFlgs XtraFlags) - { - // do format flags here - this will get yucky!!! - #region StepFlags - int step = 0; - try - { - for (int i = 0; i < MAXSTEPS + 1; i++) - { - step = i; - // Do base here - if (i == 0) - { - // All types get this thru inheritance - if (XtraFlags.SeparateBox == "True") fmtdata.StepData[i].SeparateBox = "True"; - else fmtdata.StepData[i].SeparateBox = "False"; - // All types get this thru inheritance - if (XtraFlags.LJTabs == "True") fmtdata.StepData[i].LJTabs = "True"; - else fmtdata.StepData[i].LJTabs = "False"; - } - if (i == 1) // Sequential flags - new name will be substeps - { - if (XtraFlags.BoxedSubsteps == "True") fmtdata.StepData[i].Boxed = "True"; - else fmtdata.StepData[i].Boxed = "False"; - - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - - if (XtraFlags.TextSubFollowsTextStyle == "True") fmtdata.StepData[i].TextSubFollowsTextStyle = "True"; - else fmtdata.StepData[i].TextSubFollowsTextStyle = "False"; - - if (XtraFlags.DontStartLineWithDash == "True") fmtdata.StepData[i].StartLineWithDash = "False"; - else fmtdata.StepData[i].StartLineWithDash = "True"; - - if (XtraFlags.NoBlankLineBeforeSubstep == "True") fmtdata.StepData[i].BlankLineBeforeSubStep = "False"; - else fmtdata.StepData[i].BlankLineBeforeSubStep = "True"; - } - else if (i == 2) // High - { - // All High get this thru inheritance - if (XtraFlags.EnhancedStepNumFromPrev == "True") fmtdata.StepData[i].EnhancedStepNumFromPrev = "True"; - else fmtdata.StepData[i].EnhancedStepNumFromPrev = "False"; - - // All High get this thru inheritance - if (XtraFlags.UseSmartTemplate == "True") fmtdata.StepData[i].UseSmartTemplate = "True"; - else fmtdata.StepData[i].UseSmartTemplate = "False"; - - // All High get this thru inheritance - if (XtraFlags.BoxContinousActions == "True") fmtdata.StepData[i].Boxed = "True"; - else fmtdata.StepData[i].Boxed = "False"; - - // All High get this thru inheritance - if (XtraFlags.Xlines_StepFix == "True") fmtdata.StepData[i].XLines_StepFix = "True"; - else fmtdata.StepData[i].XLines_StepFix = "False"; - - // All High get this thru inheritance - if (XtraFlags.UseAlternateStepBox == "True") fmtdata.StepData[i].UseAlternateStepBox = "True"; - else fmtdata.StepData[i].UseAlternateStepBox = "False"; - - // All High get this thru inheritance - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - - // All High get this thru inheritance - if (XtraFlags.PageBreakOnHighLevelStep == "True") fmtdata.StepData[i].PageBreakOnStep = "True"; - else fmtdata.StepData[i].PageBreakOnStep = "False"; - - // All High get this thru inheritance - if (XtraFlags.AlignNullTabWSectHead == "True") fmtdata.StepData[i].AlignNullTabWSectHead = "True"; - else fmtdata.StepData[i].AlignNullTabWSectHead = "False"; - - // All High get this thru inheritance - if (XtraFlags.HLSTextInPagelist == "True") fmtdata.StepData[i].InPageList = "True"; - else fmtdata.StepData[i].InPageList = "False"; - - // All High get this thru inheritance - if (XtraFlags.NoStepNumIfOnlyOneStep == "True") fmtdata.StepData[i].StepNumIfOnlyOne = "False"; - else fmtdata.StepData[i].StepNumIfOnlyOne = "True"; - - // All High get this thru inheritance - if (XtraFlags.AtLeastTwoDigitsForHLS == "True") fmtdata.StepData[i].AtLeastTwoDigits = "True"; - else fmtdata.StepData[i].AtLeastTwoDigits = "False"; - - // All High get this thru inheritance - if (XtraFlags.DontNumberHighLevelSteps == "True") fmtdata.StepData[i].Number = "False"; - else fmtdata.StepData[i].Number = "True"; - } - else if (i == 3) // Immediate - { - if (XtraFlags.IMMStepSpcHdr == "True") fmtdata.StepData[i].SpcHdr = "True"; - else fmtdata.StepData[i].SpcHdr = "False"; - } - else if (i == 4) // And - { - // All And get this thru inheritance - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - - // All And get this thru inheritance - if (XtraFlags.TreatAndOrAsSequential == "True") fmtdata.StepData[i].TreatAsSequential = "True"; - else fmtdata.StepData[i].TreatAsSequential = "False"; - } - else if (i == 5) // Or - { - // All Or get this thru inheritance - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - - // All Or get this thru inheritance - if (XtraFlags.TreatAndOrAsSequential == "True") fmtdata.StepData[i].TreatAsSequential = "True"; - else fmtdata.StepData[i].TreatAsSequential = "False"; - - } - else if (i == 6) // Caution - { - // All Cautions get this thru inheritance - if (XtraFlags.EnhancedStepNumFromPrev == "True") fmtdata.StepData[i].EnhancedStepNumFromPrev = "True"; - else fmtdata.StepData[i].EnhancedStepNumFromPrev = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.AlwaysUseExtralines == "True") fmtdata.StepData[i].AlwaysUseExtraLines = "True"; - else fmtdata.StepData[i].AlwaysUseExtraLines = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.SeparateBoxCautions == "True") fmtdata.StepData[i].SeparateBoxCautions = "True"; - else fmtdata.StepData[i].SeparateBoxCautions = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.ReduceLineAfterNoteAndCaut == "True") fmtdata.StepData[i].ReduceLineAfter = "True"; - else fmtdata.StepData[i].ReduceLineAfter = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.OneLineBeforeNoteCautionTab == "True") fmtdata.StepData[i].OneLineBeforeTab = "True"; - else fmtdata.StepData[i].OneLineBeforeTab = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.ReBoxCautNote == "True") fmtdata.StepData[i].Rebox = "True"; - else fmtdata.StepData[i].Rebox = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.NoSpaceInNoteOrCaution == "True") fmtdata.StepData[i].SpaceIn = "False"; - else fmtdata.StepData[i].SpaceIn = "True"; - - // All Cautions get this thru inheritance - if (XtraFlags.PageBreakOnCautions == "True") fmtdata.StepData[i].PageBreakOnStep = "True"; - else fmtdata.StepData[i].PageBreakOnStep = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.MatchUpRNOCautNote == "True") fmtdata.StepData[i].MatchUpRNO = "True"; - else fmtdata.StepData[i].MatchUpRNO = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.StpCautNoteTabInPagelist == "True") fmtdata.StepData[i].InPageList = "True"; - else fmtdata.StepData[i].InPageList = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.CenterOneLineOnly == "True") fmtdata.StepData[i].CenterOneLineOnly = "True"; - else fmtdata.StepData[i].CenterOneLineOnly = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.RememberCautionsAndNotes == "True") fmtdata.StepData[i].Remember = "True"; - else fmtdata.StepData[i].Remember = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.CenterOneLineAdjust == "True") fmtdata.StepData[i].CenterOneLineAdjust = "True"; - else fmtdata.StepData[i].CenterOneLineAdjust = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.DontBreakCautionsOrNotes == "True") fmtdata.StepData[i].Break = "False"; - else fmtdata.StepData[i].Break = "True"; - - // All Cautions get this thru inheritance - if (XtraFlags.CenterTextWithinWidth == "True") fmtdata.StepData[i].CenterTextWithinWidth = "True"; - else fmtdata.StepData[i].CenterTextWithinWidth = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.DontBreakCautionsNotesOnSubstps == "True") fmtdata.StepData[i].BreakCautionsNotesOnSubstps = "False"; - else fmtdata.StepData[i].BreakCautionsNotesOnSubstps = "True"; - - // All Cautions get this thru inheritance - if (XtraFlags.AlwaysTabCaution == "True") fmtdata.StepData[i].AlwaysTab = "True"; - else fmtdata.StepData[i].AlwaysTab = "False"; - - // All Cautions get this thru inheritance - if (XtraFlags.ThreeBlanksAboveNotesCautions == "True") fmtdata.StepData[i].ThreeBlanksAbove = "True"; - else fmtdata.StepData[i].ThreeBlanksAbove = "False"; - } - else if (i == 7) // Note - { - // All Notes get this thru inheritance - if (XtraFlags.EnhancedStepNumFromPrev == "True") fmtdata.StepData[i].EnhancedStepNumFromPrev = "True"; - else fmtdata.StepData[i].EnhancedStepNumFromPrev = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.AlwaysUseExtralines == "True") fmtdata.StepData[i].AlwaysUseExtraLines = "True"; - else fmtdata.StepData[i].AlwaysUseExtraLines = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.ReduceLineAfterNoteAndCaut == "True") fmtdata.StepData[i].ReduceLineAfter = "True"; - else fmtdata.StepData[i].ReduceLineAfter = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.OneLineBeforeNoteCautionTab == "True") fmtdata.StepData[i].OneLineBeforeTab = "True"; - else fmtdata.StepData[i].OneLineBeforeTab = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.ReBoxCautNote == "True") fmtdata.StepData[i].Rebox = "True"; - else fmtdata.StepData[i].Rebox = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.NoSpaceInNoteOrCaution == "True") fmtdata.StepData[i].SpaceIn = "False"; - else fmtdata.StepData[i].SpaceIn = "True"; - - // All Notes get this thru inheritance - if (XtraFlags.PageBreakOnNotes == "True") fmtdata.StepData[i].PageBreakOnStep = "True"; - else fmtdata.StepData[i].PageBreakOnStep = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.MatchUpRNOCautNote == "True") fmtdata.StepData[i].MatchUpRNO = "True"; - else fmtdata.StepData[i].MatchUpRNO = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.StpCautNoteTabInPagelist == "True") fmtdata.StepData[i].InPageList = "True"; - else fmtdata.StepData[i].InPageList = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.CenterOneLineOnly == "True") fmtdata.StepData[i].CenterOneLineOnly = "True"; - else fmtdata.StepData[i].CenterOneLineOnly = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.RememberCautionsAndNotes == "True") fmtdata.StepData[i].Remember = "True"; - else fmtdata.StepData[i].Remember = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.CenterOneLineAdjust == "True") fmtdata.StepData[i].CenterOneLineAdjust = "True"; - else fmtdata.StepData[i].CenterOneLineAdjust = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.DontBreakCautionsOrNotes == "True") fmtdata.StepData[i].Break = "False"; - else fmtdata.StepData[i].Break = "True"; - - // All Notes get this thru inheritance - if (XtraFlags.DontBreakCautionsNotesOnSubstps == "True") fmtdata.StepData[i].BreakCautionsNotesOnSubstps = "False"; - else fmtdata.StepData[i].BreakCautionsNotesOnSubstps = "True"; - - // All Notes get this thru inheritance - if (XtraFlags.CenterTextWithinWidth == "True") fmtdata.StepData[i].CenterTextWithinWidth = "True"; - else fmtdata.StepData[i].CenterTextWithinWidth = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.AlwaysTabNote == "True") fmtdata.StepData[i].AlwaysTab = "True"; - else fmtdata.StepData[i].AlwaysTab = "False"; - - // All Notes get this thru inheritance - if (XtraFlags.ThreeBlanksAboveNotesCautions == "True") fmtdata.StepData[i].ThreeBlanksAbove = "True"; - else fmtdata.StepData[i].ThreeBlanksAbove = "False"; - } - else if (i == 8) // Table - { - // All Table get this thru inheritance - if (XtraFlags.SubTableGetSup1Level == "True") fmtdata.StepData[i].SubTableGetsUp1Level = "True"; - else fmtdata.StepData[i].SubTableGetsUp1Level = "False"; - } - else if (i == 9) // Continuous - { - if (XtraFlags.BulletOnContinuous == "True") fmtdata.StepData[i].BulletOnContinuous = "True"; - else fmtdata.StepData[i].BulletOnContinuous = "False"; - } - else if (i == 10) // AERTable - { - } - else if (i == 11) // EquipmentList - { - // All EquipmentList get this thru inheritance - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - - // Note that only equipment lists (and wblank) get this - no inherit - must be done in code! - if (XtraFlags.DontBreakEquipmentList == "True") fmtdata.StepData[i].BreakEquipmentList = "False"; - else fmtdata.StepData[i].BreakEquipmentList = "True"; - } - else if (i == 12) // Title - { - // All Title get this thru inheritance - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - } - else if (i == 13) // PageNumber - { - } - else if (i == 14) // EquipmentWBlank - { - } - else if (i == 15) // ProcNumber - { - } - else if (i == 16) // RevNumber - { - } - else if (i == 17) // AccPages - { - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - } - else if (i == 18) // LossOfAC - { - if (XtraFlags.DontBoxAC == "True") fmtdata.StepData[i].BoxIt = "False"; - else fmtdata.StepData[i].BoxIt = "True"; - } - else if (i == 19) // ExplicitAnd - { - } - else if (i == 20) // Caution1 - { - if (XtraFlags.MixCautionsAndNotes == "True") fmtdata.StepData[i].MixCautionsAndNotes = "True"; - else fmtdata.StepData[i].MixCautionsAndNotes = "False"; - - if (XtraFlags.Caution1SameRowAsParent == "True") fmtdata.StepData[i].SameRowAsParent = "True"; - else fmtdata.StepData[i].SameRowAsParent = "False"; - } - else if (i == 21) // Caution2 - { - if (XtraFlags.AlwaysTabCaution2 == "True") fmtdata.StepData[i].AlwaysTab = "True"; - else fmtdata.StepData[i].AlwaysTab = "False"; - - if (XtraFlags.Caution2SameRowAsParent == "True") fmtdata.StepData[i].SameRowAsParent = "True"; - else fmtdata.StepData[i].SameRowAsParent = "False"; - } - else if (i == 22) // Note1 - { - if (XtraFlags.MixCautionsAndNotes == "True") fmtdata.StepData[i].MixCautionsAndNotes = "True"; - else fmtdata.StepData[i].MixCautionsAndNotes = "False"; - } - else if (i == 23) // Note2 - { - } - else if (i == 24) // Paragraph - { - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - } - else if (i == 25) // Default - { - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - } - else if (i == 26) // Note3 - { - } - else if (i == 27) // Caution3 - { - } - else if (i == 28) // Note4 - { - } - else if (i == 29) // Caution4 - { - } - else if (i == 30) // EquipmentOpt - { - // All EquipmentOpt get this thru inheritance - if (XtraFlags.QuotedSubsteps == "True") fmtdata.StepData[i].Quoted = "True"; - else fmtdata.StepData[i].Quoted = "False"; - - // Note that only opt equipment lists (and wblank) get this - no inherit - must be done in code! - if (XtraFlags.DontBreakOptEquipmentList == "True") - fmtdata.StepData[i].BreakEquipmentList = "False"; - else - fmtdata.StepData[i].BreakEquipmentList = "True"; - } - else if (i == 31) // EquipmentOptWBlank - { - // All EquipmentOptWBlank get this thru inheritance - if (XtraFlags.QuotedSubsteps == "True") fmtdata.StepData[i].Quoted = "True"; - else fmtdata.StepData[i].Quoted = "False"; - } - else if (i == 32) // Note5 - { - } - else if (i == 33) // BorderlessAERTable - { - if (XtraFlags.LJBorderlessTable == "True") fmtdata.StepData[i].LeftJustifyBorderless = "True"; - else fmtdata.StepData[i].LeftJustifyBorderless = "False"; - } - else if (i == 34) // BorderlessTable - { - if (XtraFlags.LJBorderlessTable == "True") fmtdata.StepData[i].LeftJustifyBorderless = "True"; - else fmtdata.StepData[i].LeftJustifyBorderless = "False"; - } - else if (i == 35) // ImplicitOr - { - } - else if (i == 36) // Figure - { - } - else if (i == 37) // AERFigure - { - } - else if (i == 38) // BorderlessFigure - { - if (XtraFlags.LJBorderlessTable == "True") fmtdata.StepData[i].LeftJustifyBorderless = "True"; - else fmtdata.StepData[i].LeftJustifyBorderless = "False"; - } - else if (i == 39) // BorderlessAERFigure - { - if (XtraFlags.LJBorderlessTable == "True") fmtdata.StepData[i].LeftJustifyBorderless = "True"; - else fmtdata.StepData[i].LeftJustifyBorderless = "False"; - } - else if (i == 40) // RNOType - { - if (XtraFlags.DoubleRNOSpace == "True") fmtdata.StepData[i].DoubleSpace = "True"; - else fmtdata.StepData[i].DoubleSpace = "False"; - - if (XtraFlags.EnhancedStepNumFromPrev == "True") fmtdata.StepData[i].EnhancedStepNumFromPrev = "True"; - else fmtdata.StepData[i].EnhancedStepNumFromPrev = "False"; - - if (XtraFlags.NoSpaceDoubleRNO == "True") fmtdata.StepData[i].SpaceDouble = "False"; - else fmtdata.StepData[i].SpaceDouble = "True"; - - if (XtraFlags.RNOSameLevel == "True") fmtdata.StepData[i].SameLevel = "True"; - else fmtdata.StepData[i].SameLevel = "False"; - - if (XtraFlags.BoldHighLevelRNO == "True") fmtdata.StepData[i].BoldHighLevel = "True"; - else fmtdata.StepData[i].BoldHighLevel = "False"; - - if (XtraFlags.RNOContinueOnly == "True") fmtdata.StepData[i].ContinueOnly = "True"; - else fmtdata.StepData[i].ContinueOnly = "False"; - - if (XtraFlags.RNOSepAfterAER == "True") fmtdata.StepData[i].SepAfterAER = "True"; - else fmtdata.StepData[i].SepAfterAER = "False"; - - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - - if (XtraFlags.RNOInPagelist == "True") fmtdata.StepData[i].InPageList = "True"; - else fmtdata.StepData[i].InPageList = "False"; - - if (XtraFlags.DontBreakOnRNO == "True") fmtdata.StepData[i].Break = "False"; - else fmtdata.StepData[i].Break = "True"; - - if (XtraFlags.NoNewlineAfterRNO == "True") fmtdata.StepData[i].NewlineAfter = "False"; - else fmtdata.StepData[i].NewlineAfter = "True"; - - if (XtraFlags.NumberHighLevelRNO == "True") fmtdata.StepData[i].NumberHighLevel = "True"; - else fmtdata.StepData[i].NumberHighLevel = "False"; - - if (XtraFlags.RNONumberWithLevel == "True") fmtdata.StepData[i].NumberWithLevel = "True"; - else fmtdata.StepData[i].NumberWithLevel = "False"; - - if (XtraFlags.DontOffsetTab == "True") fmtdata.StepData[i].OffsetTab = "False"; - else fmtdata.StepData[i].OffsetTab = "True"; - - if (XtraFlags.DontNumberRNOSubs == "True") fmtdata.StepData[i].NumberSubs = "False"; - else fmtdata.StepData[i].NumberSubs = "True"; - - if (XtraFlags.NoStepNumberForHighLevelRNO == "True") fmtdata.StepData[i].StepNumberForHighLevel = "False"; - else fmtdata.StepData[i].StepNumberForHighLevel = "True"; - - if (XtraFlags.RNOCheckOffSameAsParent == "True") fmtdata.StepData[i].CheckoffSameAsParent = "True"; - else fmtdata.StepData[i].CheckoffSameAsParent = "False"; - - if (XtraFlags.UseRNOTypeInActable == "True") fmtdata.StepData[i].UseInAcTable = "True"; - else fmtdata.StepData[i].UseInAcTable = "False"; - } - else if (i == 41) // High5 - { - } - else if (i == 42) // TitleWithTextRight - { - } - else if (i == 43) // TitleWithTextBelow - { - } - else if (i == 44) // ContAcSequential - { - if (XtraFlags.UnderlineAfterDashSpace == "True") fmtdata.StepData[i].UnderlineAfterDashSpace = "True"; - else fmtdata.StepData[i].UnderlineAfterDashSpace = "False"; - } - else if (i == 45) // ContAcAnd - { - } - else if (i == 46) // ContAcOr - { - } - else if (i == 47) // ContAcParagraph - { - } - if (fmtdata.StepData[i].TabData.MacroList != null) - { - if (XtraFlags.NoCheckOffsInRNO == "True") fmtdata.StepData[i].TabData.MacroList[0].NotInRNO = "True"; - else fmtdata.StepData[i].TabData.MacroList[0].NotInRNO = "False"; - } - } - } - catch (Exception ex) - { - Console.WriteLine("Error on step data"); - } - #endregion - #region StepStructLayout - if (XtraFlags.Dev_Format == "True") fmtdata.SectData.StepSectionData.StpSectLayData.Dev_Format = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.Dev_Format = "False"; - if (XtraFlags.EnhancedShortFormDev == "True") fmtdata.SectData.StepSectionData.StpSectLayData.EnhancedShortFormDev = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.EnhancedShortFormDev = "False"; - if (XtraFlags.SpecialPageBreakFlag == "True") fmtdata.SectData.StepSectionData.StpSectLayData.SpecialPageBreakFlag = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.SpecialPageBreakFlag = "False"; - if (XtraFlags.DontPaginateOnFirstSubStep == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PaginateOnFirstSubstep = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PaginateOnFirstSubstep = "True"; - if (XtraFlags.DontPaginateOnFirstSubStep2X == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PaginateOnFirstSubstep2X = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PaginateOnFirstSubstep2X = "True"; - if (XtraFlags.DontUseHalfLines == "True") fmtdata.SectData.StepSectionData.StpSectLayData.UseHalfLines = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.UseHalfLines = "True"; - if (XtraFlags.DontTryToFillHalfOfPage == "True") fmtdata.SectData.StepSectionData.StpSectLayData.TryToFillHalfOfPage = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.TryToFillHalfOfPage = "True"; - if (XtraFlags.DoNotCompressSteps == "True") fmtdata.SectData.StepSectionData.StpSectLayData.CompressSteps = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.CompressSteps = "True"; - if (XtraFlags.DontDoSTExtraAtTop == "True") fmtdata.SectData.StepSectionData.StpSectLayData.DoSTExtraAtTop = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.DoSTExtraAtTop = "True"; - if (XtraFlags.KeepStepsOnPage == "True") fmtdata.SectData.StepSectionData.StpSectLayData.KeepStepsOnPage = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.KeepStepsOnPage = "False"; - if (XtraFlags.DontBreakOnSections == "True") fmtdata.SectData.StepSectionData.StpSectLayData.BreakOnSections = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.BreakOnSections = "True"; - if (XtraFlags.ShowSectionTitles == "True") fmtdata.SectData.StepSectionData.StpSectLayData.ShowSectionTitles = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.ShowSectionTitles = "False"; - if (XtraFlags.NoEndForSingle == "True") fmtdata.SectData.StepSectionData.StpSectLayData.EndForSingle = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.EndForSingle = "True"; - if (XtraFlags.DontPaginateOnFirstSubstep3X == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PaginateOnFirstSubstep3X = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PaginateOnFirstSubstep3X = "True"; - if (XtraFlags.PaginateOnLowerStepLevel == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PaginateOnLowerStepLevel = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PaginateOnLowerStepLevel = "False"; - if (XtraFlags.CustomSpacing == "True") fmtdata.SectData.StepSectionData.StpSectLayData.CustomSpacing = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.CustomSpacing = "False"; - if (XtraFlags.DontSplitStepInPrntStep == "True") fmtdata.SectData.StepSectionData.StpSectLayData.SplitStepInPrntStep = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.SplitStepInPrntStep = "True"; - if (XtraFlags.LineAboveUnderSection == "True") fmtdata.SectData.StepSectionData.StpSectLayData.LineAboveUnderSection = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.LineAboveUnderSection = "False"; - if (XtraFlags.PicaIgnoreFiveSixths == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PicaIgnoreFiveSixths = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PicaIgnoreFiveSixths = "False"; - if (XtraFlags.SpaceFoRNOSecNumb == "True") fmtdata.SectData.StepSectionData.StpSectLayData.SpaceForNoSecNumb = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.SpaceForNoSecNumb = "False"; - if (XtraFlags.PageBreakOnFirstBlankLine == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PageBreakOnFirstBlankLine = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PageBreakOnFirstBlankLine = "False"; - if (XtraFlags.PutOnPageByItself == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PutOnPageByItself = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PutOnPageByItself = "False"; - if (XtraFlags.PaginateAtHighestPaginLevel == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PaginateAtHighestPaginLevel = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PaginateAtHighestPaginLevel = "False"; - if (XtraFlags.UseSTExtraRealValue == "True") fmtdata.SectData.StepSectionData.StpSectLayData.UseSTExtraRealValue = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.UseSTExtraRealValue = "False"; - if (XtraFlags.DoSectionSeparatorLine == "True") fmtdata.SectData.StepSectionData.StpSectLayData.DoSectionSeparatorLine = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.DoSectionSeparatorLine = "False"; - if (XtraFlags.TieTabToLevel == "True") fmtdata.SectData.StepSectionData.StpSectLayData.TieTabToLevel = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.TieTabToLevel = "False"; - if (XtraFlags.HighLevelRNOBeforeAERSubStps == "True") fmtdata.SectData.StepSectionData.StpSectLayData.HighLevelRNOBeforeAERSubsteps = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.HighLevelRNOBeforeAERSubsteps = "False"; - if (XtraFlags.UseStepTypeWidthOverride == "True") fmtdata.SectData.StepSectionData.StpSectLayData.UseStepTypeWidthOverride = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.UseStepTypeWidthOverride = "False"; - if (XtraFlags.UseStepTypeWidthOverrideEditPrint == "True") fmtdata.SectData.StepSectionData.StpSectLayData.UseStepTypeWidthOverrideEditPrint = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.UseStepTypeWidthOverrideEditPrint = "False"; - if (XtraFlags.PartialStepCompression == "True") fmtdata.SectData.StepSectionData.StpSectLayData.PartialStepCompression = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.PartialStepCompression = "False"; - if (XtraFlags.VirtualDotInHLSTab == "True") fmtdata.SectData.StepSectionData.StpSectLayData.VirtualDotInHLSTab = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.VirtualDotInHLSTab = "False"; - if (XtraFlags.OverrideEnhancedTabs == "True") fmtdata.SectData.StepSectionData.StpSectLayData.OverrideEnhancedTabs = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.OverrideEnhancedTabs = "False"; - if (XtraFlags.NoRNO == "True") fmtdata.SectData.StepSectionData.StpSectLayData.RNO = "False"; - else fmtdata.SectData.StepSectionData.StpSectLayData.RNO = "True"; - if (XtraFlags.OnlySingleColumn == "True") fmtdata.SectData.StepSectionData.StpSectLayData.OnlySingleColumn = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.OnlySingleColumn = "False"; - if (XtraFlags.NullBox == "True") fmtdata.SectData.StepSectionData.StpSectLayData.NullBox = "True"; - else fmtdata.SectData.StepSectionData.StpSectLayData.NullBox = "False"; - #endregion - #region StepSection - if (XtraFlags.WolfCreekBackgroundFormat == "True") fmtdata.SectData.StepSectionData.WolfCreekBackgroundFormat = "True"; - else fmtdata.SectData.StepSectionData.WolfCreekBackgroundFormat = "False"; - if (XtraFlags.WolfcreekCKLFormat == "True") fmtdata.SectData.StepSectionData.WolfcreekCKLFormat = "True"; - else fmtdata.SectData.StepSectionData.WolfcreekCKLFormat = "False"; - if (XtraFlags.WolfcreekCKLBackgndFormat == "True") fmtdata.SectData.StepSectionData.WolfcreekCKLBackgndFormat = "True"; - else fmtdata.SectData.StepSectionData.WolfcreekCKLBackgndFormat = "False"; - if (XtraFlags.FortranFormatNumbers == "True") fmtdata.SectData.StepSectionData.FortranFormatNumbers = "True"; - else fmtdata.SectData.StepSectionData.FortranFormatNumbers = "False"; - if (XtraFlags.UseTopContinueMessageAtEnd == "True") fmtdata.SectData.StepSectionData.UseTopContinueMessageAtEnd = "True"; - else fmtdata.SectData.StepSectionData.UseTopContinueMessageAtEnd = "False"; - if (XtraFlags.FloatingContinueMessage == "True") fmtdata.SectData.StepSectionData.FloatingContinueMessage = "True"; - else fmtdata.SectData.StepSectionData.FloatingContinueMessage = "False"; - if (XtraFlags.WrapSameAsEdit == "True") fmtdata.SectData.StepSectionData.WrapSameAsEdit = "True"; - else fmtdata.SectData.StepSectionData.WrapSameAsEdit = "False"; - if (XtraFlags.ContinueSectionHeader == "True") fmtdata.SectData.StepSectionData.ContinueSectionHeader = "True"; - else fmtdata.SectData.StepSectionData.ContinueSectionHeader = "False"; - if (XtraFlags.CompressHPSub == "True") fmtdata.SectData.StepSectionData.CompressHPSub = "True"; - else fmtdata.SectData.StepSectionData.CompressHPSub = "False"; - if (XtraFlags.CompressHPSuper == "True") fmtdata.SectData.StepSectionData.CompressHPSuper = "True"; - else fmtdata.SectData.StepSectionData.CompressHPSuper = "False"; - fmtdata.SectData.StepSectionData.CompressPropSubSup = "False"; - //if (XtraFlags.UndSpecialStepsFoldout == "True") fmtdata.SectData.StepSectionData.UndSpecialStepsFoldout = "True"; - //else fmtdata.SectData.StepSectionData.UndSpecialStepsFoldout = "False"; - if (XtraFlags.UnderlineAllMetaTitles == "True") fmtdata.SectData.StepSectionData.UnderlineAllMetaTitles = "True"; - else fmtdata.SectData.StepSectionData.UnderlineAllMetaTitles = "False"; - if (XtraFlags.BoldOnlySectionZero == "True") fmtdata.SectData.StepSectionData.BoldOnlySectionZero = "True"; - else fmtdata.SectData.StepSectionData.BoldOnlySectionZero = "False"; - if (XtraFlags.ImperfectStructure == "True") fmtdata.SectData.StepSectionData.ImperfectStructure = "True"; - else fmtdata.SectData.StepSectionData.ImperfectStructure = "False"; - if (XtraFlags.ImperfectSubstep == "True") fmtdata.SectData.StepSectionData.ImperfectSubstep = "True"; - else fmtdata.SectData.StepSectionData.ImperfectSubstep = "False"; - if (XtraFlags.ImperfectStructurePlus4 == "True") fmtdata.SectData.StepSectionData.ImperfectStructurePlus4 = "True"; - else fmtdata.SectData.StepSectionData.ImperfectStructurePlus4 = "False"; - if (XtraFlags.CountAllSubLevels == "True") fmtdata.SectData.StepSectionData.CountAllSubLevels = "True"; - else fmtdata.SectData.StepSectionData.CountAllSubLevels = "False"; - if (XtraFlags.UseMultiLineSectionTitle == "True") fmtdata.SectData.StepSectionData.UseMultiLineSectionTitle = "True"; - else fmtdata.SectData.StepSectionData.UseMultiLineSectionTitle = "False"; - #endregion - #region ChangeBars - if (XtraFlags.CondensedChangeBar == "True") fmtdata.ProcData.ChangeBarData.CondensedChangeBar = "True"; - else fmtdata.ProcData.ChangeBarData.CondensedChangeBar = "False"; - if (XtraFlags.AbsoluteFixedChangeColumn == "True") fmtdata.ProcData.ChangeBarData.AbsoluteFixedChangeColumn = "True"; - else fmtdata.ProcData.ChangeBarData.AbsoluteFixedChangeColumn = "False"; - if (XtraFlags.ContinuousChangeBars == "True") fmtdata.ProcData.ChangeBarData.ContinuousChangeBars = "True"; - else fmtdata.ProcData.ChangeBarData.ContinuousChangeBars = "False"; - if (XtraFlags.ChgBarMessageFromEdit == "True") fmtdata.ProcData.ChangeBarData.ChgBarMessageFromEdit = "True"; - else fmtdata.ProcData.ChangeBarData.ChgBarMessageFromEdit = "False"; - if (XtraFlags.MultipleChangeIds == "True") fmtdata.ProcData.ChangeBarData.ChangeIds = "True"; - else fmtdata.ProcData.ChangeBarData.ChangeIds = "False"; - if (XtraFlags.ChangeBarToRNOSep == "True") fmtdata.ProcData.ChangeBarData.ChangeBarToRNOSep = "True"; - else fmtdata.ProcData.ChangeBarData.ChangeBarToRNOSep = "False"; - if (XtraFlags.ChangeBarsOnLinkedText == "True") fmtdata.ProcData.ChangeBarData.ChangeBarsOnLinkedText = "True"; - else fmtdata.ProcData.ChangeBarData.ChangeBarsOnLinkedText = "False"; - #endregion - #region GeneralPrint & GeneralEdit - if (XtraFlags.DoRevDate == "True") fmtdata.PrintData.DoRevDate = "True"; - else fmtdata.PrintData.DoRevDate = "False"; - if (XtraFlags.AlternateFoldoutPages == "True") fmtdata.PrintData.AlternateFoldoutPages = "True"; - else fmtdata.PrintData.AlternateFoldoutPages = "False"; - if (XtraFlags.AlternateFloatingFoldout == "True") fmtdata.PrintData.AlternateFloatingFoldout = "True"; - else fmtdata.PrintData.AlternateFloatingFoldout = "False"; - if (XtraFlags.SectionLevelFoldouts == "True") fmtdata.PrintData.SectionLevelFoldouts = "True"; - else fmtdata.PrintData.SectionLevelFoldouts = "False"; - if (XtraFlags.RevDateWithForwardSlash == "True") fmtdata.PrintData.RevDateWithForwardSlash = "True"; - else fmtdata.PrintData.RevDateWithForwardSlash = "False"; - //if (XtraFlags.SpecialStepsFoldout == "True") fmtdata.PrintData.SpecialStepsFoldout = "True"; - //else fmtdata.PrintData.SpecialStepsFoldout = "False"; - if (XtraFlags.AccessoryDocsInDuplex == "True") fmtdata.PrintData.AccessoryDocsInDuplex = "True"; - else fmtdata.PrintData.AccessoryDocsInDuplex = "False"; - if (XtraFlags.FoldoutsInDuplex == "True") fmtdata.PrintData.FoldoutsInDuplex = "True"; - else fmtdata.PrintData.FoldoutsInDuplex = "False"; - if (XtraFlags.PagelistChangeIDsWithCommas == "True") fmtdata.PrintData.PagelistChangeIDsWithCommas = "True"; - else fmtdata.PrintData.PagelistChangeIDsWithCommas = "False"; - if (XtraFlags.PromptForCautinType == "True") fmtdata.EditData.PromptForCautionType = "True"; - else fmtdata.EditData.PromptForCautionType = "False"; - fmtdata.PrintData.AllowDuplex = _fmtFileName.StartsWith("WPB") || _fmtFileName.StartsWith("WEP2") ? "True" : "False"; - #endregion - #region Procedure - if (XtraFlags.DontCapitalizeTitle == "True") fmtdata.ProcData.CapitalizeTitle = "False"; - else fmtdata.ProcData.CapitalizeTitle = "True"; - if (XtraFlags.ChangeStyleForEverySection == "True") fmtdata.ProcData.ChangeStyleForEverySection = "True"; - else fmtdata.ProcData.ChangeStyleForEverySection = "False"; - if (XtraFlags.DontPrintNoTitle == "True") fmtdata.ProcData.PrintNoTitle = "False"; - else fmtdata.ProcData.PrintNoTitle = "True"; - if (XtraFlags.NotesToFootnotes == "True") fmtdata.ProcData.NotesToFootnotes = "True"; - else fmtdata.ProcData.NotesToFootnotes = "False"; - if (XtraFlags.DontCountFoldoutPages == "True") fmtdata.ProcData.CountFoldoutPages = "False"; - else fmtdata.ProcData.CountFoldoutPages = "True"; - #endregion - #region Section - //if (XtraFlags.CancelSecTitlesOnS1 == "True") fmtdata.SectData.CancelSecTitlesOnS1 = "True"; - //else fmtdata.SectData.CancelSecTitlesOnS1 = "False"; - //if (XtraFlags.CancelSecTitlesOnS2 == "True") fmtdata.SectData.CancelSecTitlesOnS2 = "True"; - //else fmtdata.SectData.CancelSecTitlesOnS2 = "False"; - //if (XtraFlags.CancelSecTitlesOnE0 == "True") fmtdata.SectData.CancelSecTitlesOnE0 = "True"; - //else fmtdata.SectData.CancelSecTitlesOnE0 = "False"; - //if (XtraFlags.CancelSecTitlesOnE2 == "True") fmtdata.SectData.CancelSecTitlesOnE2 = "True"; - //else fmtdata.SectData.CancelSecTitlesOnE2 = "False"; - if (XtraFlags.MetaSectEndMessage == "True") fmtdata.SectData.MetaSectEndMessage = "True"; - else fmtdata.SectData.MetaSectEndMessage = "False"; - if (XtraFlags.ReadOnlyTypeInContMsg == "True") fmtdata.SectData.ReadOnlyTypeInContMsg = "True"; - else fmtdata.SectData.ReadOnlyTypeInContMsg = "False"; - if (XtraFlags.DontReplaceWordsInROs == "True") fmtdata.SectData.ReplaceWordsInROs = "False"; - else fmtdata.SectData.ReplaceWordsInROs = "True"; - if (XtraFlags.UseMetaSections == "True") fmtdata.SectData.UseMetaSections = "True"; - else fmtdata.SectData.UseMetaSections = "False"; - if (XtraFlags.NonEditableSteps == "True") fmtdata.SectData.NonEditableSteps = "True"; - else fmtdata.SectData.NonEditableSteps = "False"; - if (XtraFlags.SearchAllReplaceWords == "True") fmtdata.SectData.SearchAllReplaceWords = "True"; - else fmtdata.SectData.SearchAllReplaceWords = "False"; - if (XtraFlags.SecTitleContinue == "True") fmtdata.SectData.SecTitleContinue = "True"; - else fmtdata.SectData.SecTitleContinue = "False"; - if (XtraFlags.DontConvertCaretToDelta == "True") fmtdata.SectData.ConvertCaretToDelta = "False"; - else fmtdata.SectData.ConvertCaretToDelta = "True"; - if (XtraFlags.PrintPhoneList == "True") fmtdata.SectData.PrintPhoneList = "True"; - else fmtdata.SectData.PrintPhoneList = "False"; - #endregion - #region StepSectionPrint - if (XtraFlags.LowerCaseRevnum == "True") fmtdata.SectData.StepSectionData.StpSectPrtData.LowerCaseRevNum = "True"; - else fmtdata.SectData.StepSectionData.StpSectPrtData.LowerCaseRevNum = "False"; - if (XtraFlags.UseXtraRevNumber == "True") fmtdata.SectData.StepSectionData.StpSectPrtData.UseXtraRevNumber = "True"; - else fmtdata.SectData.StepSectionData.StpSectPrtData.UseXtraRevNumber = "False"; - if (XtraFlags.SpecialLandscapeMode == "True") fmtdata.SectData.StepSectionData.StpSectPrtData.SpecialLandscapeMode = "True"; - else fmtdata.SectData.StepSectionData.StpSectPrtData.SpecialLandscapeMode = "False"; - #endregion - #region CheckOff - if (XtraFlags.DropCheckOff == "True") fmtdata.ProcData.CheckOffData.DropCheckOff = "True"; - else fmtdata.ProcData.CheckOffData.DropCheckOff = "False"; - if (XtraFlags.CheckoffOnHLSOnly == "True") fmtdata.ProcData.CheckOffData.CheckOffOnHLSOnly = "True"; - else fmtdata.ProcData.CheckOffData.CheckOffOnHLSOnly = "False"; - #endregion - #region Trans - if (XtraFlags.SpecifiedSubstepsOnly == "True") fmtdata.TransData.SpecifiedSubstepsOnly = "True"; - else fmtdata.TransData.SpecifiedSubstepsOnly = "False"; - if (XtraFlags.CapsTransitions == "True") fmtdata.TransData.CapsTransitions = "True"; - else fmtdata.TransData.CapsTransitions = "False"; - if (XtraFlags.CapTranStep == "True") fmtdata.TransData.CapTranStep = "True"; - else fmtdata.TransData.CapTranStep = "False"; - if (XtraFlags.TSTepNoFlag == "True") fmtdata.TransData.TStepNoFlag = "True"; - else fmtdata.TransData.TStepNoFlag = "False"; - if (XtraFlags.LowerCaseTranNumber == "True") fmtdata.TransData.LowerCaseTranNumber = "True"; - else fmtdata.TransData.LowerCaseTranNumber = "False"; - if (XtraFlags.UpcaseTranAnd == "True") fmtdata.TransData.UpcaseTranAnd = "True"; - else fmtdata.TransData.UpcaseTranAnd = "False"; - if (XtraFlags.SuppressAndInTran == "True") fmtdata.TransData.SuppressAndInTran = "True"; - else fmtdata.TransData.SuppressAndInTran = "False"; - if (XtraFlags.Cap1stCharTrans == "True") fmtdata.TransData.Cap1stCharTrans = "True"; - else fmtdata.TransData.Cap1stCharTrans = "False"; - if (XtraFlags.UseTransitionModifier == "True") fmtdata.TransData.UseTransitionModifier = "True"; - else fmtdata.TransData.UseTransitionModifier = "False"; - if (XtraFlags.DontUseSecTitles == "True") fmtdata.TransData.UseSecTitles = "False"; - else fmtdata.TransData.UseSecTitles = "True"; - if (XtraFlags.HardSpTranProcNumb == "True") fmtdata.TransData.HardSpTranProcNumb = "True"; - else fmtdata.TransData.HardSpTranProcNumb = "False"; - if (XtraFlags.XChngTranSpForHard == "True") fmtdata.TransData.XchngTranSpForHard = "True"; - else fmtdata.TransData.XchngTranSpForHard = "False"; - if (XtraFlags.AbsoluteTransitionUpdate == "True") fmtdata.TransData.AbsoluteTransitionUpdate = "True"; - else fmtdata.TransData.AbsoluteTransitionUpdate = "False"; - if (XtraFlags.LowerCaseStepInTran == "True") fmtdata.TransData.LowerCaseStepInTran = "True"; - else fmtdata.TransData.LowerCaseStepInTran = "False"; - if (XtraFlags.DoSectionTrans == "True") fmtdata.TransData.DoSectionTransitions = "True"; - else fmtdata.TransData.DoSectionTransitions = "False"; - #endregion - #region RO - fmtdata.ROData.UpRoImmAftrDashSpace = "False"; - if (XtraFlags.AllUnits == "True") fmtdata.ROData.AllUnits = "True"; - else fmtdata.ROData.AllUnits = "False"; - if (XtraFlags.UpSetpntAftrDash == "True") fmtdata.ROData.UpRoAftrDash = "True"; - else fmtdata.ROData.UpRoAftrDash = "False"; - if (XtraFlags.UpcaseAllSetpointUnits == "True") fmtdata.ROData.UpcaseAllRoUnits = "True"; - else fmtdata.ROData.UpcaseAllRoUnits = "False"; - if (XtraFlags.CapHighSetpnt == "True") fmtdata.ROData.CapHighRo = "True"; - else fmtdata.ROData.CapHighRo = "False"; - if (XtraFlags.CapsPIFLastLower == "True") fmtdata.ROData.CapRoIfLastLower = "True"; - else fmtdata.ROData.CapRoIfLastLower = "False"; - fmtdata.ROData.CapSPIfLastLower = "null"; - if (XtraFlags.UpSpIfPrevUpper == "True") fmtdata.ROData.UpRoIfPrevUpper = "True"; - else fmtdata.ROData.UpRoIfPrevUpper = "False"; - if (XtraFlags.UnderlineSetpoints == "True") fmtdata.ROData.UnderlineRo = "True"; - else fmtdata.ROData.UnderlineRo = "False"; - if (XtraFlags.CapFirstLetterInHighSP == "True") fmtdata.ROData.CapFirstLetterInHighRO = "True"; - else fmtdata.ROData.CapFirstLetterInHighRO = "False"; - #endregion - #region New Format Flags - // by default TurnOffReplaceWords should be False. - // this will be overrided as needed (ex. NSP (Prairie Island) Deviations - fmtdata.SectData.TurnOffReplaceWords = "False"; - // by default AdjustRNOCautionNoteWidth should be False - // this will be set to True for Catawba and McGuire formats - fmtdata.SectData.StepSectionData.AdjustRNOCautionNoteWidth = "False"; - #endregion - return true; - } - - private string GetTransUIEnum(string format, string menu) - { - string transtrtmp = (menu == null || menu == "") ? format : menu; - E_TransFormatXlate xlt = TransFormat(transtrtmp); - // xlt has flags that say what is included in the transition menu - // string. Use this to set the enum that the 32-bit code will use - // to display menuing... - E_TransitionMenus transmenuflag = TransToMenuFlags(xlt); - return ((E_TransitionMenus)transmenuflag).ToString(); - } - private E_TransitionMenus TransToMenuFlags(E_TransFormatXlate xlt) - { - E_TransitionMenus result = E_TransitionMenus.None; - - // for procedures, if the menu string contains a 'procedure', then the - // selection will come from a menu, otherwise, it defaults to current procedure - // and the menu will be disabled. - result |= (xlt & E_TransFormatXlate.Procedure) == E_TransFormatXlate.Procedure ? E_TransitionMenus.ProcMenu : E_TransitionMenus.ProcCur; - - // for sections... - if ((xlt & E_TransFormatXlate.Section) == E_TransFormatXlate.Section) - { - if ((xlt & E_TransFormatXlate.Range) == E_TransFormatXlate.Range) - result |= E_TransitionMenus.SectMenuStep; - else - result |= E_TransitionMenus.SectMenuAny; - - } - else - { - if ((xlt & E_TransFormatXlate.Procedure) == E_TransFormatXlate.Procedure) - result |= E_TransitionMenus.SectDefault; - else - result |= E_TransitionMenus.SectCur; - } - - // now do steps... - if ((xlt & E_TransFormatXlate.Range) == E_TransFormatXlate.Range) - { - result |= E_TransitionMenus.StepFirst; - result |= E_TransitionMenus.StepLast; - } - else - result |= E_TransitionMenus.StepFirst; - if (((result & E_TransitionMenus.SectDefault) == E_TransitionMenus.SectDefault) || ((result & E_TransitionMenus.SectMenuAny) == E_TransitionMenus.SectMenuAny)) - result |= E_TransitionMenus.StepAllowNone; - - return result; - } - private static E_TransFormatXlate TransFormat(string str) - { - E_TransFormatXlate retval = E_TransFormatXlate.None; - if (HasRange(str)) retval |= E_TransFormatXlate.Range; - else if (HasStep(str)) retval |= E_TransFormatXlate.Step; - if (HasSection(str)) retval |= E_TransFormatXlate.Section; - if (HasProc(str)) retval |= E_TransFormatXlate.Procedure; - if (HasPage(str)) retval |= E_TransFormatXlate.Page; - return retval; - } - private static bool HasProc(string str) - { - return str.Contains("{Proc") || str.Contains("{?.Proc"); - } - private static bool HasPage(string str) - { - return str.Contains("{Page"); - } - private static bool HasSection(string str) - { - return str.Contains("{Sect") || str.Contains("{?.Sect"); - } - private static bool HasRange(string str) - { - return str.Contains("{Last"); - } - private static bool HasStep(string str) - { - if (str.Contains("{Step")) return true; - return str.Contains("{First Step"); - } - private string ConvertSeqStart(byte p) - { - if (p == 0 || p == 0x30) return "{numeric}"; - else if (p == 0x60) return "{alpha}"; - else if (p == 0x40) return "{ALPHA}"; - else return "{UNKNOWN}"; - } - #endregion - private static Dictionary _TransForms = new Dictionary(); - public static XslCompiledTransform getTransform(string path) - { - if (!_TransForms.ContainsKey(path)) - { - XslCompiledTransform xsl = new XslCompiledTransform(); - xsl.Load(path); - _TransForms.Add(path, xsl); - } - return _TransForms[path]; - } - public bool WriteOutXmlTmp(FormatData fmtdata, string suffix) - { - try - { - XmlSerializer serializer = new XmlSerializer(typeof(FormatData)); - string lfmtname = fmtName; - int findx = fmtName.IndexOf('.'); - // for subformats, make the name FMT_00 where FMT is format name & 00 is number - // from original name. This will allow the data load to know it's a sub. - if (findx > 0) - lfmtname = fmtName.Substring(0, fmtName.Length - 4) + "_" + fmtName.Substring(fmtName.Length - 2, 2); - string destfile = "tmp_fmt_xml\\" + lfmtname + "_" + suffix + ".xml"; - if (File.Exists(destfile)) File.Delete(destfile); - TextWriter writer = new StreamWriter(destfile); - _MyFormatSerializer.Serialize(writer, fmtdata); - writer.Close(); - return true; - } - catch (Exception e) - { - Console.WriteLine("Error writing out xml or xsl - format = {0}", fmtdata.Name); - Console.WriteLine(e.Message); - Console.WriteLine(); - return false; - } - } - #region WriteOutXml - static private XmlSerializer _MyFormatSerializer = new XmlSerializer(typeof(FormatData)); - public bool WriteOutXml(FormatData fmtdata) - { - // First serialize files based on the above - then use xsl to transform - // into prefered xml. - if (!Directory.Exists("fmt_xml")) Directory.CreateDirectory("fmt_xml"); - if (!Directory.Exists("tmp_fmt_xml")) Directory.CreateDirectory("tmp_fmt_xml"); - //XmlSerializer serializer = new XmlSerializer(typeof(FormatData)); - - string lfmtname = fmtName; - int findx = fmtName.IndexOf('.'); - // for subformats, make the name FMT_00 where FMT is format name & 00 is number - // from original name. This will allow the data load to know it's a sub. - if (findx > 0) - lfmtname = fmtName.Substring(0, fmtName.Length - 4) + "_" + fmtName.Substring(fmtName.Length - 2, 2); - string destfile = "tmp_fmt_xml\\" + lfmtname + "f.xml"; - if (File.Exists(destfile)) File.Delete(destfile); - TextWriter writer = new StreamWriter(destfile); - try - { - _MyFormatSerializer.Serialize(writer, fmtdata); - writer.Close(); - //XslCompiledTransform xsl = new XslCompiledTransform(); - //xsl.Load(Application.StartupPath + "\\TranslateFmt.XSL"); - string sResults = "fmt_xml\\" + lfmtname + "f.xml"; - //xsl.Transform(destfile, sResults); // Perform Transform - XslCompiledTransform xsl = getTransform(Application.StartupPath + "\\TranslateFmt.XSL"); - xsl.Transform(destfile, sResults); // Perform Transform - xsl = getTransform(Application.StartupPath + "\\removeempty.XSL"); - //xsl.Load(Application.StartupPath + "\\removeempty.XSL"); - string sResults2 = "fmt_xml\\" + lfmtname + "xf.xml"; - xsl.Transform(sResults, sResults2); - File.Delete(sResults); - xsl.Transform(sResults2, sResults); - File.Delete(sResults2); - } - - catch (Exception e) - { - Console.WriteLine("Error writing out xml or xsl - format = {0}", fmtdata.Name); - Console.WriteLine(e.Message); - Console.WriteLine(); - return false; - } - return true; - } - #endregion - #region OriginalNoBase - //public void LoadFormatFileOrig(string fname) - //{ - // FormatData fmtdata = new FormatData(); - - // // read in data & put into correct place of structures. - // // for test string fnm = "E:\\proms.net\\exe\\fmtxml\\" + fname; - // string fnm = "E:\\ve-proms\\format\\" + fname; - // brFmt = new BinaryReader(File.Open(fnm, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, FileShare.ReadWrite)); - // bool success = ReadInFmtFile(ref fmtdata); - // #region FinishMainConvert - // if (success) - // { - // DoStepInheritance(ref fmtdata.StepData); - // success = WriteOutXml(fmtdata); - // } - // #endregion - // brFmt.Close(); - - // #region ProcessSubFormats - // // For each sub-format, load the entire file & compare to parent contents - // DirectoryInfo di = new DirectoryInfo("E:\\ve-proms\\format"); - // string substr = fname.Substring(0, fname.IndexOf('.')) + ".x*"; - // FileInfo [] fis = di.GetFiles(substr); - // foreach (FileInfo fi in fis) - // { - // //this.listBox1.Items.Add(fi.Name); - // fmtName = fi.Name; - // fnm = "E:\\ve-proms\\format\\" + fi.Name; - // brFmt = new BinaryReader(File.Open(fnm, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, FileShare.ReadWrite)); - // FormatData subdata = new FormatData(); - // success = ReadInFmtFile(ref subdata); - // if (success) - // { - // DoStepInheritance(ref subdata.StepData); - // } - // // Now do entire format inheritance - then write out. - // success = CompareParentSub(fmtdata, ref subdata); - // success = WriteOutXml(subdata); - - // } - // #endregion - //} - #endregion - #region InheritBase - public void LoadFormatFile(string fname, ref XtraFlgs XtraFlags) - { - FormatData fmtdata = new FormatData(); - - // read in data & put into correct place of structures. - // for test string fnm = "E:\\proms.net\\exe\\fmtxml\\" + fname; - string fnm = MyPath + @"\" + fname; - brFmt = new BinaryReader(File.Open(fnm, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, FileShare.ReadWrite)); - bool success = ReadInFmtFile(ref fmtdata, ref BaseXtraFlags, fname); - AddPlantSpecific(fname, ref fmtdata); - if (!HasBase) SetBaseStepNumericValues(ref fmtdata); - FixInactiveForHigh(ref fmtdata); - FixInactiveForSubStep(ref fmtdata); - FixInactiveForText(ref fmtdata); - if (!HasBase) InitSymbols(ref fmtdata); - else fmtdata.Symbols = null; - if (success) - { - PushStepLists(fmtdata.StepData); - DoStepInheritance(ref fmtdata.StepData, fname); - AddPlantSpecificOverrideInheritance(fname, ref fmtdata); - } - brFmt.Close(); - - // Now compare with gen (if !gen). - if (HasBase == false) - success = WriteOutXml(fmtdata); - else - { - //success = WriteOutXmlTmp(fmtdata, "beforeParent"); - success = CompareParentSub(BaseFormat, ref fmtdata); - AddPlantSpecificOverrideAfterInheritance(fname, ref fmtdata); - success = WriteOutXml(fmtdata); - - // For each sub-format, load the entire file & compare to parent contents - DirectoryInfo di = new DirectoryInfo(MyPath); - string substr = fname.Substring(0, fname.IndexOf('.')) + ".x*"; - FileInfo[] fis = di.GetFiles(substr); - foreach (FileInfo fi in fis) - { - if (!Form1.Excluded(fi)) - { - //this.listBox1.Items.Add(fi.Name); - fmtName = fi.Name; - fnm = MyPath + @"\" + fi.Name; - brFmt = new BinaryReader(File.Open(fnm, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, FileShare.ReadWrite)); - FormatData subdata = new FormatData(); - success = ReadInFmtFile(ref subdata, ref SubXtraFlags, fi.Name); - AddPlantSpecific(fi.Name, ref subdata); - //OutputStepFonts(fi.Name, subdata); - if (success) - { - PushStepLists(subdata.StepData); - DoStepInheritance(ref subdata.StepData, fname); - AddPlantSpecificOverrideInheritance(fmtName, ref subdata); - PopStepLists(); - } - // Now do entire format inheritance - then write out. - success = CompareParentSub(fmtdata, ref subdata); - success = CompareParentSub(BaseFormat, ref subdata); - AddPlantSpecificOverrideAfterInheritance(fmtName, ref subdata); - success = WriteOutXml(subdata); - } - } - } - MyFormat = fmtdata; - if (HasBase) PopStepLists(); // leave the base format on 'stack', i.e. only pop if !base. - } - - private void AddPlantSpecificOverrideAfterInheritance(string genFileName, ref FormatData fmtdata) - { - string genName = genFileName.Substring(genFileName.LastIndexOf('\\') + 1); - switch (genName.ToUpper()) - { - case "CPL.X03": - OverrideCPL_X03(ref fmtdata); - break; - case "CPBCK.FMT": - case "CPBCK2.FMT": - OverrideAddCPBCK(ref fmtdata); - break; - case "MCG.FMT": - case "MCGBOX.FMT": - AddMCGfmtOVR(ref fmtdata); - break; - case "CAT.FMT": - case "CATBOX.FMT": - AddCATfmtOVR(ref fmtdata); - break; - case "WEP2.FMT": - AddWEP2Overridefmt(ref fmtdata); - break; - case "EXCLN.X00": - AddEXCLN00_OVRfmt(ref fmtdata); - break; - case "NSPAB.X00": - AddNSPAB_X00_OVRfmt(ref fmtdata); - break; - case "BGEEOP.FMT": - AddBGEEOPOverridefmt(ref fmtdata); - break; - } - } - - private void SetBaseStepNumericValues(ref FormatData fmtdata) - { - Step stp = fmtdata.StepData[0]; - stp.ColOverride = "0"; - stp.ColOverrideEdit = "0"; - stp.WidthOverride = "0"; - stp.WidthOverrideEdit = "0"; - stp.StepLayoutData.STExtraSpace = "0"; - stp.StepLayoutData.EveryNLines = "1"; //default for this is 1 - stp.StepLayoutData.SpaceAfter = "0"; - stp.StepLayoutData.SpaceBefore = "0"; - } - - private void PushStepLists(Step[] stpdata) - { - Dictionary dicSteps = BuildStepDic(stpdata); - StepList.Insert(0, dicSteps); - Dictionary dicParents = BuildParentDic(stpdata, dicSteps); - StepParentList.Insert(0, dicParents); - } - private void PopStepLists() - { - StepList.RemoveAt(0); - StepParentList.RemoveAt(0); - } - private static void OutputStepFonts1(string fname, FormatData fmtdata) - { - if (fname == "BASE.fmt") - { - Console.Write("'Name','Description'"); - for (int i = 0; i < MAXSTEPS + 1; i++) - { - Console.Write(",'{0}'", fmtdata.StepData[i].Type); - } - Console.Write("\r\n"); - Console.Write("'base','Default'"); - } - else - Console.Write("'{0}','{1}'", FixName(fname), fmtdata.Name); - for (int i = 0; i < MAXSTEPS + 1; i++) - { - if (fmtdata.StepData[i].Font != null) - Console.Write(",'{0} [{1}] - {2}'", fmtdata.StepData[i].Font.FontFamily, fmtdata.StepData[i].Font.FontSize, fmtdata.StepData[i].Font.FontStyle); - else if (i == 1 && fmtdata.StepData[0].Font != null) - Console.Write(",'{0} [{1}] - {2}'", fmtdata.StepData[0].Font.FontFamily, fmtdata.StepData[0].Font.FontSize, fmtdata.StepData[0].Font.FontStyle); - else - Console.Write(",'Prestige Elite Tall [10] - None'"); - } - Console.Write("\r\n"); - } - private static void OutputStepFonts(string fname, FormatData fmtdata) - { - if (fname == "BASE.fmt") - { - Console.Write("'Name','Description'"); - for (int i = 0; i < MAXSTEPS + 1; i++) - { - Console.Write(",'{0}'", fmtdata.StepData[i].Type); - } - Console.Write("\r\n"); - Console.Write("'base','Default'"); - } - else - Console.Write("'{0}','{1}'", FixName(fname), fmtdata.Name); - for (int i = 0; i < MAXSTEPS + 1; i++) - { - if (fmtdata.StepData[i].TabData.Font != null) - Console.Write(",'{0} [{1}] - {2}'", fmtdata.StepData[i].TabData.Font.FontFamily, fmtdata.StepData[i].TabData.Font.FontSize, fmtdata.StepData[i].TabData.Font.FontStyle); - else if (i == 1 && fmtdata.StepData[0].TabData.Font != null) - Console.Write(",'{0} [{1}] - {2}'", fmtdata.StepData[0].TabData.Font.FontFamily, fmtdata.StepData[0].TabData.Font.FontSize, fmtdata.StepData[0].TabData.Font.FontStyle); - else - Console.Write(",'*'"); - } - Console.Write("\r\n"); - } - private static string FixName(string fname) - { - string lfmtname = fname; - int findx = fname.IndexOf('.'); - // for subformats, make the name FMT_00 where FMT is format name & 00 is number - // from original name. This will allow the data load to know it's a sub. - if (findx > 0) - { - if (fname.ToUpper().EndsWith(".FMT")) - lfmtname = fname.Substring(0, fname.Length - 4); - else - lfmtname = fname.Substring(0, fname.Length - 4) + fname.Substring(fname.Length - 2, 2); - } - return lfmtname; - } - private void InitSymbols(ref FormatData fmtdata) - { - fmtdata.Symbols = new Symbol[37]; - fmtdata.Symbols[0].Unicode = "176"; - fmtdata.Symbols[0].Desc = "degree"; - fmtdata.Symbols[1].Unicode = "916"; - fmtdata.Symbols[1].Desc = "delta"; - fmtdata.Symbols[2].Unicode = "8805"; - fmtdata.Symbols[2].Desc = "greater than or equal"; - fmtdata.Symbols[3].Unicode = "8804"; - fmtdata.Symbols[3].Desc = "less than or equal"; - fmtdata.Symbols[4].Unicode = "177"; - fmtdata.Symbols[4].Desc = "plus minus"; - fmtdata.Symbols[5].Unicode = "931"; - fmtdata.Symbols[5].Desc = "sigma"; - fmtdata.Symbols[6].Unicode = "947"; - fmtdata.Symbols[6].Desc = "gamma"; - fmtdata.Symbols[7].Unicode = "189"; - fmtdata.Symbols[7].Desc = "half"; - fmtdata.Symbols[8].Unicode = "9604"; - fmtdata.Symbols[8].Desc = "accum"; - fmtdata.Symbols[9].Unicode = "9679"; - fmtdata.Symbols[9].Desc = "bullet"; - fmtdata.Symbols[10].Unicode = "8776"; - fmtdata.Symbols[10].Desc = "approx eq"; - fmtdata.Symbols[11].Unicode = "8773"; - fmtdata.Symbols[11].Desc = "similar eq"; - fmtdata.Symbols[12].Unicode = "247"; - fmtdata.Symbols[12].Desc = "division"; - fmtdata.Symbols[13].Unicode = "8730"; - fmtdata.Symbols[13].Desc = "square root"; - fmtdata.Symbols[14].Unicode = "961"; - fmtdata.Symbols[14].Desc = "rho"; - fmtdata.Symbols[15].Unicode = "960"; - fmtdata.Symbols[15].Desc = "pi"; - fmtdata.Symbols[16].Unicode = "956"; - fmtdata.Symbols[16].Desc = "micro"; - fmtdata.Symbols[17].Unicode = "948"; - fmtdata.Symbols[17].Desc = "lower case delta"; - fmtdata.Symbols[18].Unicode = "963"; - fmtdata.Symbols[18].Desc = "lower case sigma"; - fmtdata.Symbols[19].Unicode = "188"; - fmtdata.Symbols[19].Desc = "quarter"; - fmtdata.Symbols[20].Unicode = "216"; - fmtdata.Symbols[20].Desc = "dist zero"; - fmtdata.Symbols[21].Unicode = "274"; - fmtdata.Symbols[21].Desc = "energy"; - fmtdata.Symbols[22].Unicode = "236"; - fmtdata.Symbols[22].Desc = "grave"; - fmtdata.Symbols[23].Unicode = "9474"; - fmtdata.Symbols[23].Desc = "bar"; - fmtdata.Symbols[24].Unicode = "949"; - fmtdata.Symbols[24].Desc = "epsilon"; - fmtdata.Symbols[25].Unicode = "952"; - fmtdata.Symbols[25].Desc = "theta"; - fmtdata.Symbols[26].Unicode = "8857"; - fmtdata.Symbols[26].Desc = "dot in oval"; - fmtdata.Symbols[27].Unicode = "964"; - fmtdata.Symbols[27].Desc = "tau"; - fmtdata.Symbols[28].Unicode = "9830"; - fmtdata.Symbols[28].Desc = "diamond"; - fmtdata.Symbols[29].Unicode = "8594"; - fmtdata.Symbols[29].Desc = "right arrow"; - fmtdata.Symbols[30].Unicode = "8592"; - fmtdata.Symbols[30].Desc = "left arrow"; - fmtdata.Symbols[31].Unicode = "8593"; - fmtdata.Symbols[31].Desc = "up arrow"; - fmtdata.Symbols[32].Unicode = "8595"; - fmtdata.Symbols[32].Desc = "down arrow"; - fmtdata.Symbols[33].Unicode = "8711"; - fmtdata.Symbols[33].Desc = "unknown5"; - fmtdata.Symbols[34].Unicode = "945"; - fmtdata.Symbols[34].Desc = "alpha"; - fmtdata.Symbols[35].Unicode = "946"; - fmtdata.Symbols[35].Desc = "beta"; - } - #endregion - #region TokenConvert - private string ConvertTransFormat(string p) - { - // parenflag puts paren around proc title AND sectitle. - p = p.Replace("\xff", "\xA0"); - p = p.Replace("\x07", "{First Step}"); - p = p.Replace("\x08", "{Last Step}"); - p = p.Replace("\x04", "{Sect Title}"); - p = p.Replace("\x06", "{Sect Title}"); - p = p.Replace("\x03", "{Sect Num}"); - p = p.Replace("\x17", "{Sect Num}"); - p = p.Replace("\x02", "{Proc Title}"); - p = p.Replace("\x01", "{Proc Num}"); - p = p.Replace("\xF", "{Page Num}"); - p = p.Replace("\x1E", "{Page Num}"); - p = p.Replace("\x1D", "{Step Text}"); - p = p.Replace("\x0D", "Step {First Step}"); - - // the following are in cpl & she format Not sure what to do so just - // flag them - //if (p.Length==1 && (p.IndexOfAny("\x19\x1A".ToCharArray())>-1)) - //{ - p = p.Replace("\x19", "{TransFmt hex 19}"); - p = p.Replace("\x1A", "{TransFmt hex 1a}"); - //} - - p = ConvertText(p); - p = DoReplaceTokens(p); - return p; - } - private string DoReplaceTokens(string p) - { - if (p == null || p == "") return p; - string wkstr = p; - // use regular expressions to do the following... - - try - { - // replace newline with {par} - wkstr = wkstr.Replace("\n", @"{\par}"); - - // special change bar token (various cpl formats) - wkstr = wkstr.Replace("\x08\x08\x08\x08\x08\x05", "{CHG_BAR with Backspace Token}"); - - // special change bar token (various gpc formats) - wkstr = wkstr.Replace("\x05", "{CHG_BAR Token}"); - - // backspage - just flag for positioning if needed. - wkstr = wkstr.Replace("\x08", "{Backspace}"); - - //sub on/off - //sub on/off - stop at EOL, another token or a space. - wkstr = wkstr.Replace("\x19\x19", "\x19"); // replace double sub on with single - wkstr = wkstr.Replace("~~", "\x19"); - wkstr = Regex.Replace(wkstr, @"\x19([^\x19\x18 ]*?)(?:[\x19\x18]|(?= )|\Z)(.*?)", @"\dn2 $1\up0 $2"); - - //super on/off - //super on/off - stop at EOL, another token or a space. - wkstr = Regex.Replace(wkstr, @"\x18([^\x19\x18 ]*?)(?:[\x19\x18]|(?= )|\Z)(.*?)", @"\up2 $1\up0 $2"); - - //bold on/off - stop at end of line or another token. - wkstr = Regex.Replace(wkstr, @"\x01([^\x01]*?)(?:\x01|\Z)", @"\b $1\b0 "); - //OLD CODE (pre-10/2007): wkstr = Regex.Replace(wkstr, @"\x01([^\x01 ]*?)(?:[\x01]|(?= )|\Z)(.*?)", @"\b$1\b0$2"); - //bold on/off - stop at EOL, another token or a space - wkstr = Regex.Replace(wkstr, @"\x13([^\x13\xd6 ]*?)(?:[\x13\xd6]|(?= )|\Z)(.*?)", @"\b $1\b0 $2"); - - //underline on/off - look for 16 followed by non-sixteen (as many as there are) and followed by 16 or endofline - //OLD CODE (pre-10/2007): wkstr = Regex.Replace(wkstr, @"\x16([^\x16 ]*?)(?:[\x16]|(?= )|\Z)(.*?)", @"\ul$1\ul0$2"); - //underline on/off - stop at end of line or another token. - //wkstr = Regex.Replace(wkstr, @"\x16([^\x16]*?)(?:\x16|\Z)", @"\ul $1\ul0 "); - wkstr = Regex.Replace(wkstr, @"\x16([^\x16]*?)(?:\x16|\Z)", @"\ul $1\ulnone "); - - //narrator - //wkstr = Regex.Replace(wkstr, @"\x86([^\x86 ]*?)(?:[\x86]|(?= )|\Z)(.*?)", @"\f{Narrator}$1\f0$2"); - wkstr = Regex.Replace(wkstr, @"\x86([^\x86 ]*?)(?:[\x86]|(?= )|\Z)(.*?)", @"$1$2"); - - // remove hanging indent, vertical tab - wkstr = Regex.Replace(wkstr, @"\x02", @"\NonSupported Hanging Indent (Hex x02)"); - //wkstr = Regex.Replace(wkstr, @"\x0B", @"\NonSupported Vertical Tab (Hex x0b"); - wkstr = Regex.Replace(wkstr, @"\x0B", @""); - - // remove some unknown chars for ano & fpl - these plants are not supported - // as of conversion date. - wkstr = Regex.Replace(wkstr, @"\x95", @"\NonSupported Unknown (Hex x95)"); //ano2vlv - wkstr = Regex.Replace(wkstr, @"\x1bf1", @"\NonSupported Unknown (hex 1b f1)"); //fpl - wkstr = Regex.Replace(wkstr, @"\x1bf0", @"\NonSupported Unknown (hex 1b f0)"); //fpl - wkstr = Regex.Replace(wkstr, @"\x1bM1", @"\NonSupported Unknown (hex 1b M1)"); //fpl - wkstr = Regex.Replace(wkstr, @"\x1bM0", @"\NonSupported Unknown (hex 1b M0)"); //fpl - - // replace \xff with \xA0, i.e. hardspace - wkstr = Regex.Replace(wkstr, @"\xFF", @"\xA0"); - - // replace x10 & x11 in various ano tabs - not this needs fixed if ANO comes - // back into the program - wkstr = wkstr.Replace("\x10", ""); - wkstr = wkstr.Replace("\x11", ""); - - // replace x15 with {RO} for now. - wkstr = wkstr.Replace("\x15", "{RO}"); - } - catch (Exception ex) - { - Console.WriteLine("error replacing token (regex) = {0}", ex.Message); - } - - return wkstr; - } - private float CalculateTabWid(string p) - { - if (p == null || p.Length == 0) return 0; - int tablen = p.Length; - // don't count if macro.... - int tokb = p.IndexOf("{"); - if (tokb > -1) - { - if ((tokb = p.IndexOf("{!")) > -1) - { - int toke = p.IndexOf("}", tokb + 2); - tablen -= (toke - tokb + 1); - } - else - tablen -= 2; // "{}" - } - if ((tokb = p.IndexOf("\xA1")) > -1) tablen--; // flags circle macro - if ((tokb = p.IndexOf("##-3#")) > -1) tablen -= 5; // positioning - if ((tokb = p.IndexOf("\xAF")) > -1) tablen--; // indent - if ((tokb = p.IndexOf("\n")) > -1) tablen--; // newline - not sure what to do here - if ((tokb = p.IndexOf("")) > -1) tablen--; // box step flag - for (int i = 0; i < p.Length; i++) if (p[i] == 0x08) tablen--; // discount backspaces. - for (int i = 0; i < p.Length; i++) if (p[i] == 0x16) tablen--; // underline toggle tokens - if (tablen < 0) tablen = 0; - return ColToPoints(tablen, _PlantDefaultFontStyle); - } - private int NBRSub = 16; - // STANDARD,AND,OR,EQUIPMENTLIST,EQUIPMENTWBLANK,EXPLICITAND,IMPLICITOR,PARAGRAPH, - // EQUIPMENTOPT,EQUIPMENTOPTWBLANK,CONTACSEQUENTIAL,CONTACAND,CONTACOR,CONTACPARAGRAPH,TITLEWITHTEXTRIGHT,TITLEWITHTEXTBELOW - private int[] SubTypeValue ={0,3,4,10,13,18,34,23,29,30,43,44,45,46,41,42}; - private string DoTabs(VE_Font vefont, string po, int i, string p, bool doNumeric) - { - // subtypes were defined as the list of types in the comment above from 16bit. These types, if a tab - // string is not defined, should get a {seq} - if ((p == null || p == "") && !IsSubType(i)) return p ?? ""; - - string wkstr = p; - if (p == null) - return "{seq}"; - //Number Formatting - // $ - Uppercase Alphabetical (IP2, GEN, CAL2, VLNCAS) - // & - Roman Numeral - UpperCase - // @ - Uppercase Alphabetical (AEP, CAL2, GEN, IP2, NSP, RGE, VLNCAS) - wkstr = Regex.Replace(wkstr, @"\$", @"{ALPHA}"); - wkstr = Regex.Replace(wkstr, @"&", @"{ROMAN}"); - wkstr = Regex.Replace(wkstr, @"@", @"{ALPHA}"); - - // Position offset - do this one here, so don't get background substitution below.. - // ##-3# - Offset of -3 from Parent (FNP) - wkstr = Regex.Replace(wkstr, @"##-3#", @"{Pos-3}"); - - // Background/Deviation Documents - check for E_PurchaseOptions.(ENHANCEDBACKGROUNDS or ENHANCEDDEVIATIONS) - // # - Related Caution or Note number - // ~ - Linked Step Number - - if ((po.ToUpper().IndexOf("ENHANCEDBACKGROUNDS") > -1) || (po.ToUpper().IndexOf("ENHANCEDDEVIATIONS") > -1)) - { - wkstr = wkstr.Replace("#", "{LNK C/N Num}"); - wkstr = wkstr.Replace("~", "{LNK Step Num}"); - } - - // Insert seq & numeric for sequential & any high type if there are not other - // commands. - int indx = 0; - // if sequential or high, add the seq or numeric token - if (i == 0 && ((indx = wkstr.IndexOf("{")) < 0)) // sequential - put in "{seq}" - wkstr = wkstr.Insert(0, "{seq}"); - // high, immediate, continuous, lossofac, high5 - put in " {numeric} " - else if ((i == 1 || i == 2 || i == 8 || i == 17 || i == 40) && ((indx = wkstr.IndexOf("{")) < 0) && doNumeric) - { - int indxColon = wkstr.IndexOf(":"); - int indxPercent = wkstr.IndexOf("%"); - if (indxColon > 0) - wkstr = wkstr.Insert(indxColon, "{numeric}"); - else if (indxPercent > 0) - wkstr = wkstr.Insert(indxPercent + 1, "{numeric}"); // put numeric after section prefix - else - wkstr = wkstr.Insert(1, "{numeric}"); - } - - //Section Numbers - // % - Prefix with section number (works string in 16 bit, ie.e For 4.3 the prefix becomes 4. - // wid that would be stored. - wkstr = Regex.Replace(wkstr, @"%", @"{Section Prefix}"); - - // Position offset - // \257 - Indent (CALLOWAY BACKGROUNDS) - // Newline within a tab (calbck) - wkstr = wkstr.Replace("\xAF", @"{indent}"); - wkstr = wkstr.Replace("\n", @"{par}"); - - //Macros - // - draws a diamond around the stepnumber - // - A macro - // for SHE (Shearon Harris) format. Convert to just a tab with asterisk. - // <> - ignored - // \241 - circle macro around step, same as - // Also note, the format files had "<>", these get converted during input in this - // format converter code. - if (wkstr.Contains("!asterisk")) wkstr = "{asterisk} {numeric}. "; - wkstr = Regex.Replace(wkstr, @"{![.*?]}", @"{!$1}"); - wkstr = wkstr.Replace("{}", ""); - wkstr = wkstr.Replace("", "{!C0}"); - if (vefont != null && vefont.HasCircleString2()) wkstr.Insert(0, "{!C0}"); - - // Symbols - // * - simply an asterisk (do nothing here) - // - - simlply a dash (do nothing here) - // \007 - bullet (gets translated - wkstr = wkstr.Replace("\007", "\x9679"); - wkstr = wkstr.Replace("", @"{Box Step}"); - wkstr = DoReplaceTokens(wkstr); - wkstr = ConvertText(wkstr); - return wkstr; - } - private bool IsSubType(int indx) - { - for (int i = 0; i < NBRSub; i++) if (indx == SubTypeValue[i]) return true; - return false; - } - #endregion - #region DoEntireInherit - private bool CompareParentSub(FormatData mainFmt, ref FormatData subFmt) - { - // just compare all fields - clear the subformat if equal. - #region COMPAREACTIVE - subFmt.FontData = FixInheritedFont(subFmt.FontData, mainFmt.FontData); // Phase 10 - if (mainFmt.PurchaseOptions == subFmt.PurchaseOptions) subFmt.PurchaseOptions = null; - if (mainFmt.TPL == subFmt.TPL) subFmt.TPL = null; - if (mainFmt.EditData.EMode == subFmt.EditData.EMode) subFmt.EditData.EMode = null; - if (mainFmt.EditData.PromptForCautionType != null && mainFmt.EditData.PromptForCautionType == subFmt.EditData.PromptForCautionType) subFmt.EditData.PromptForCautionType = "null"; - if (mainFmt.SectData.StepSectionData.TopRow == subFmt.SectData.StepSectionData.TopRow) subFmt.SectData.StepSectionData.TopRow = NullInt; - if (mainFmt.PrintData.DoPrnDrvrAdjusts == subFmt.PrintData.DoPrnDrvrAdjusts) subFmt.PrintData.DoPrnDrvrAdjusts = NullInt; - if (mainFmt.PrintData.DoRevDate != null && mainFmt.PrintData.DoRevDate == subFmt.PrintData.DoRevDate) subFmt.PrintData.DoRevDate = "null"; - if (mainFmt.PrintData.AlternateFoldoutPages != null && mainFmt.PrintData.AlternateFoldoutPages == subFmt.PrintData.AlternateFoldoutPages) subFmt.PrintData.AlternateFoldoutPages = "null"; - if (mainFmt.PrintData.AlternateFloatingFoldout != null && mainFmt.PrintData.AlternateFloatingFoldout == subFmt.PrintData.AlternateFloatingFoldout) subFmt.PrintData.AlternateFloatingFoldout = "null"; - if (mainFmt.PrintData.SectionLevelFoldouts != null && mainFmt.PrintData.SectionLevelFoldouts == subFmt.PrintData.SectionLevelFoldouts) subFmt.PrintData.SectionLevelFoldouts = "null"; - if (mainFmt.PrintData.RevDateWithForwardSlash != null && mainFmt.PrintData.RevDateWithForwardSlash == subFmt.PrintData.RevDateWithForwardSlash) subFmt.PrintData.RevDateWithForwardSlash = "null"; - if (mainFmt.PrintData.UnitNumber != null && mainFmt.PrintData.UnitNumber == subFmt.PrintData.UnitNumber) subFmt.PrintData.UnitNumber = "null"; if (mainFmt.PrintData.UnitNumber != null && mainFmt.PrintData.UnitNumber == subFmt.PrintData.UnitNumber) subFmt.PrintData.UnitNumber = "null"; - if (mainFmt.PrintData.SpecialCaseCalvert != null && mainFmt.PrintData.SpecialCaseCalvert == subFmt.PrintData.SpecialCaseCalvert) subFmt.PrintData.SpecialCaseCalvert = "null"; - if (mainFmt.PrintData.SpecialCaseCalvertAlarm != null && mainFmt.PrintData.SpecialCaseCalvertAlarm == subFmt.PrintData.SpecialCaseCalvertAlarm) subFmt.PrintData.SpecialCaseCalvertAlarm = "null"; - if (mainFmt.PrintData.PrintCommonForZeroUnit != null && mainFmt.PrintData.PrintCommonForZeroUnit == subFmt.PrintData.PrintCommonForZeroUnit) subFmt.PrintData.PrintCommonForZeroUnit = "null"; - //if (mainFmt.PrintData.SpecialStepsFoldout != null && mainFmt.PrintData.SpecialStepsFoldout == subFmt.PrintData.SpecialStepsFoldout) subFmt.PrintData.SpecialStepsFoldout = "null"; - if (mainFmt.PrintData.AccessoryDocsInDuplex != null && mainFmt.PrintData.AccessoryDocsInDuplex == subFmt.PrintData.AccessoryDocsInDuplex) subFmt.PrintData.AccessoryDocsInDuplex = "null"; - if (mainFmt.PrintData.AllowDuplex != null && mainFmt.PrintData.AllowDuplex == subFmt.PrintData.AllowDuplex) subFmt.PrintData.AllowDuplex = "null"; - if (mainFmt.PrintData.FoldoutsInDuplex != null && mainFmt.PrintData.FoldoutsInDuplex == subFmt.PrintData.FoldoutsInDuplex) subFmt.PrintData.FoldoutsInDuplex = "null"; - if (mainFmt.PrintData.PagelistChangeIDsWithCommas != null && mainFmt.PrintData.PagelistChangeIDsWithCommas == subFmt.PrintData.PagelistChangeIDsWithCommas) subFmt.PrintData.PagelistChangeIDsWithCommas = "null"; - - // box data... - for (int i = 0; i < MAXBOXES + 1; i++) - { - Box mbox = mainFmt.BoxData[i]; - Box sbox = subFmt.BoxData[i]; - if (mbox.Start == sbox.Start) sbox.Start = NullInt; - if (mbox.End == sbox.End) sbox.End = NullInt; - if (mbox.TxtStart == sbox.TxtStart) sbox.TxtStart = NullInt; - if (mbox.TxtWidth == sbox.TxtWidth) sbox.TxtWidth = NullInt; - if (mbox.Height == sbox.Height) sbox.Height = NullInt; - if (mbox.TabPos == sbox.TabPos) sbox.TabPos = NullInt; - subFmt.BoxData[i].Font = FixInheritedFont(sbox.Font, mbox.Font); // Phase 3 - } - string subName = subFmt.Name; - bool inheritShowSectionTitles = true; - if (fmtName.Contains("NSPIFG.X00")) inheritShowSectionTitles = false; - StepSectionLayout msctlay = mainFmt.SectData.StepSectionData.StpSectLayData; - StepSectionLayout ssctlay = subFmt.SectData.StepSectionData.StpSectLayData; - if (msctlay.TableCenterPos == ssctlay.TableCenterPos) subFmt.SectData.StepSectionData.StpSectLayData.TableCenterPos = null; - subFmt.SectData.StepSectionData.StpSectLayData.TopOfPage.Font = FixInheritedFont(ssctlay.TopOfPage.Font, msctlay.TopOfPage.Font);// Phase 4 - if (msctlay.TopOfPage.Row == ssctlay.TopOfPage.Row) subFmt.SectData.StepSectionData.StpSectLayData.TopOfPage.Row = NullInt; - if (msctlay.TopOfPage.Col == ssctlay.TopOfPage.Col) subFmt.SectData.StepSectionData.StpSectLayData.TopOfPage.Col = NullInt; - - StepSectionPrint msctpr = mainFmt.SectData.StepSectionData.StpSectPrtData; - StepSectionPrint ssctpr = subFmt.SectData.StepSectionData.StpSectPrtData; - subFmt.SectData.StepSectionData.StpSectPrtData.ModifiedTextStyle = FixInheritedFont(msctpr.ModifiedTextStyle, msctpr.ModifiedTextStyle); // Phase 11 - if (!subFmt.Name.Contains("IP3"))subFmt.SectData.StepSectionData.StpSectLayData.Separator.Font = FixInheritedFont(ssctlay.Separator.Font, msctlay.Separator.Font); // Phase 5 - if (msctlay.Separator.SeparatorLocation == ssctlay.Separator.SeparatorLocation) subFmt.SectData.StepSectionData.StpSectLayData.Separator.SeparatorLocation = NullInt; - if (msctlay.LastLineToStartStep == ssctlay.LastLineToStartStep) subFmt.SectData.StepSectionData.StpSectLayData.LastLineToStartStep = NullInt; - - //for (int i=0; i<10; i++) - // if (mainFmt.SectData.StepSectionData.TextTypeValue[i] == subFmt.SectData.StepSectionData.TextTypeValue[i]) mainFmt.SectData.StepSectionData.TextTypeValue[i] = 0; - - if (msctlay.LineDrawingOption == ssctlay.LineDrawingOption) subFmt.SectData.StepSectionData.StpSectLayData.LineDrawingOption = NullInt; - if (msctlay.ColS == ssctlay.ColS) subFmt.SectData.StepSectionData.StpSectLayData.ColS = NullInt; - - StepSectionEdit mscted = mainFmt.SectData.StepSectionData.StpSectEditData; - StepSectionEdit sscted = subFmt.SectData.StepSectionData.StpSectEditData; - if (mscted.ColSScreenAdj == sscted.ColSScreenAdj) subFmt.SectData.StepSectionData.StpSectEditData.ColSScreenAdj = NullInt; - if (mscted.ScrnAdjRNOText == sscted.ScrnAdjRNOText) subFmt.SectData.StepSectionData.StpSectEditData.ScrnAdjRNOText = NullInt; - - if (msctlay.ColT == ssctlay.ColT) subFmt.SectData.StepSectionData.StpSectLayData.ColT = NullInt; - if (msctlay.ColAbs == ssctlay.ColAbs) subFmt.SectData.StepSectionData.StpSectLayData.ColAbs = NullInt; - if (msctlay.WidT == ssctlay.WidT) subFmt.SectData.StepSectionData.StpSectLayData.WidT = NullInt; - if (msctlay.TabPtsPerChar == ssctlay.TabPtsPerChar) subFmt.SectData.StepSectionData.StpSectLayData.TabPtsPerChar = NullInt; - if (msctlay.PMode == ssctlay.PMode) subFmt.SectData.StepSectionData.StpSectLayData.PMode = NullInt; - if (msctlay.MaxRNO == ssctlay.MaxRNO) subFmt.SectData.StepSectionData.StpSectLayData.MaxRNO = NullInt; - if (msctlay.MaxRNOTable == ssctlay.MaxRNOTable) subFmt.SectData.StepSectionData.StpSectLayData.MaxRNOTable = null; - if (msctlay.ColRTable == ssctlay.ColRTable) subFmt.SectData.StepSectionData.StpSectLayData.ColRTable = null; - if (msctlay.WidSTablePrint == ssctlay.WidSTablePrint) subFmt.SectData.StepSectionData.StpSectLayData.WidSTablePrint = null; - if (mscted.ColRScreen == sscted.ColRScreen) subFmt.SectData.StepSectionData.StpSectEditData.ColRScreen = null; - if (msctlay.AdjRNOCol == ssctlay.AdjRNOCol) subFmt.SectData.StepSectionData.StpSectLayData.AdjRNOCol = NullInt; - if (msctlay.CautionNoteOrder == ssctlay.CautionNoteOrder) subFmt.SectData.StepSectionData.StpSectLayData.CautionNoteOrder = null; - - // change bar - ChangeBar mcb = mainFmt.ProcData.ChangeBarData; - ChangeBar scb = subFmt.ProcData.ChangeBarData; - if (mcb.ChangeBarMessage == scb.ChangeBarMessage) subFmt.ProcData.ChangeBarData.ChangeBarMessage = null; - if (mcb.FixedChangeColumn == scb.FixedChangeColumn) subFmt.ProcData.ChangeBarData.FixedChangeColumn = NullInt; - if (mcb.FixedAERChangeColumn == scb.FixedAERChangeColumn) subFmt.ProcData.ChangeBarData.FixedAERChangeColumn = NullInt; - if (mcb.ChangeSummaryStyle == scb.ChangeSummaryStyle) subFmt.ProcData.ChangeBarData.ChangeSummaryStyle = NullInt; - if (mcb.ChangeBarStyle == scb.ChangeBarStyle) subFmt.ProcData.ChangeBarData.ChangeBarStyle = NullInt; - if (mcb.CondensedChangeBar != null && mcb.CondensedChangeBar == scb.CondensedChangeBar) subFmt.ProcData.ChangeBarData.CondensedChangeBar = "null"; - if (mcb.AbsoluteFixedChangeColumn != null && mcb.AbsoluteFixedChangeColumn == scb.AbsoluteFixedChangeColumn) subFmt.ProcData.ChangeBarData.AbsoluteFixedChangeColumn = "null"; - if (mcb.ContinuousChangeBars != null && mcb.ContinuousChangeBars == scb.ContinuousChangeBars) subFmt.ProcData.ChangeBarData.ContinuousChangeBars = "null"; - if (mcb.ChgBarMessageFromEdit != null && mcb.ChgBarMessageFromEdit == scb.ChgBarMessageFromEdit) subFmt.ProcData.ChangeBarData.ChgBarMessageFromEdit = "null"; - if (mcb.ChangeIds != null && mcb.ChangeIds == scb.ChangeIds) subFmt.ProcData.ChangeBarData.ChangeIds = "null"; - if (mcb.ChangeBarToRNOSep != null && mcb.ChangeBarToRNOSep == scb.ChangeBarToRNOSep) subFmt.ProcData.ChangeBarData.ChangeBarToRNOSep = "null"; - if (mcb.ChangeBarsOnLinkedText != null && mcb.ChangeBarsOnLinkedText == scb.ChangeBarsOnLinkedText) subFmt.ProcData.ChangeBarData.ChangeBarsOnLinkedText = "null"; - - if (mainFmt.ProcData.TitleLength == subFmt.ProcData.TitleLength) subFmt.ProcData.TitleLength = NullInt; - if (mainFmt.ProcData.CoverTitleLength == subFmt.ProcData.CoverTitleLength) subFmt.ProcData.CoverTitleLength = NullInt; - if (mainFmt.ProcData.ProcForeColor == subFmt.ProcData.ProcForeColor) subFmt.ProcData.ProcForeColor = null; - if (mainFmt.ProcData.ProcBackColor == subFmt.ProcData.ProcBackColor) subFmt.ProcData.ProcBackColor = null; - if (mainFmt.ProcData.CapitalizeTitle != null && mainFmt.ProcData.CapitalizeTitle == subFmt.ProcData.CapitalizeTitle) subFmt.ProcData.CapitalizeTitle = "null"; - if (mainFmt.ProcData.ChangeStyleForEverySection != null && mainFmt.ProcData.ChangeStyleForEverySection == subFmt.ProcData.ChangeStyleForEverySection) subFmt.ProcData.ChangeStyleForEverySection = "null"; - if (mainFmt.ProcData.PrintNoTitle != null && mainFmt.ProcData.PrintNoTitle == subFmt.ProcData.PrintNoTitle) subFmt.ProcData.PrintNoTitle = "null"; - if (mainFmt.ProcData.CountFoldoutPages != null && mainFmt.ProcData.CountFoldoutPages == subFmt.ProcData.CountFoldoutPages) subFmt.ProcData.CountFoldoutPages = "null"; - - // checkoff - CheckOffData mco = mainFmt.ProcData.CheckOffData; - CheckOffData sco = subFmt.ProcData.CheckOffData; - for (int i = 0; i < MAXCHKHEADINGS; i++) - { - if (mco.CheckOffHeaderList[i].CheckOffHeading == sco.CheckOffHeaderList[i].CheckOffHeading) subFmt.ProcData.CheckOffData.CheckOffHeaderList[i].CheckOffHeading = null; - sco.CheckOffHeaderList[i].Font = FixInheritedFont(sco.CheckOffHeaderList[i].Font, mco.CheckOffHeaderList[i].Font); // Phase 6 - } - if (mco.Menu == sco.Menu) subFmt.ProcData.CheckOffData.Menu = "null"; - if (mco.AllowSectEdit == sco.AllowSectEdit) subFmt.ProcData.CheckOffData.AllowSectEdit = "null"; - if (mco.AllowStepEdit == sco.AllowStepEdit) subFmt.ProcData.CheckOffData.AllowStepEdit = "null"; - if (mco.CheckoffOnSubStepsOnly == sco.CheckoffOnSubStepsOnly) subFmt.ProcData.CheckOffData.CheckoffOnSubStepsOnly = "null"; - if (mco.UseCheckOffsIn == sco.UseCheckOffsIn) subFmt.ProcData.CheckOffData.UseCheckOffsIn = NullInt; - if (mco.XLocation == sco.XLocation) subFmt.ProcData.CheckOffData.XLocation = NullInt; - if (mco.CheckOffAdjustment == sco.CheckOffAdjustment) subFmt.ProcData.CheckOffData.CheckOffAdjustment = NullInt; - if (mco.DropCheckOff != null && mco.DropCheckOff == sco.DropCheckOff) subFmt.ProcData.CheckOffData.DropCheckOff = "null"; - if (mco.CheckOffOnHLSOnly != null && mco.CheckOffOnHLSOnly == sco.CheckOffOnHLSOnly) subFmt.ProcData.CheckOffData.CheckOffOnHLSOnly = "null"; - if (mco.SkipSpaces != null && mco.SkipSpaces == sco.SkipSpaces) subFmt.ProcData.CheckOffData.SkipSpaces = "null"; - - if (mco.LayoutList != null && sco.LayoutList != null) - { - int mLayoutCount = mco.LayoutList.Length; - int sLayoutCount = sco.LayoutList.Length; - if (sLayoutCount == mLayoutCount) - { - for (int i = 0; i < sLayoutCount; i++) - { - if (mco.LayoutList[i].RnoLevel == sco.LayoutList[i].RnoLevel) subFmt.ProcData.CheckOffData.LayoutList[i].RnoLevel = "null"; - if (mco.LayoutList[i].Column == sco.LayoutList[i].Column) subFmt.ProcData.CheckOffData.LayoutList[i].Column = NullInt; - } - } - } - - if (msctlay.EndMessagePos == ssctlay.EndMessagePos) subFmt.SectData.StepSectionData.StpSectLayData.EndMessagePos = NullInt; - - StepSection msctstp = mainFmt.SectData.StepSectionData; - StepSection ssctstp = subFmt.SectData.StepSectionData; - if (msctstp.IndentToken == ssctstp.IndentToken) subFmt.SectData.StepSectionData.IndentToken = NullByte; - if (msctpr.ImmStepHdrCol == ssctpr.ImmStepHdrCol) subFmt.SectData.StepSectionData.StpSectPrtData.ImmStepHdrCol = NullInt; - subFmt.SectData.StepSectionData.StpSectPrtData.ImmStepHdrStyle = FixInheritedFont(ssctpr.ImmStepHdrStyle, msctpr.ImmStepHdrStyle); - if (msctstp.WolfCreekBackgroundFormat != null && msctstp.WolfCreekBackgroundFormat == ssctstp.WolfCreekBackgroundFormat) subFmt.SectData.StepSectionData.WolfCreekBackgroundFormat = "null"; - if (msctstp.WolfcreekCKLFormat != null && msctstp.WolfcreekCKLFormat == ssctstp.WolfcreekCKLFormat) subFmt.SectData.StepSectionData.WolfcreekCKLFormat = "null"; - if (msctstp.WolfcreekCKLBackgndFormat != null && msctstp.WolfcreekCKLBackgndFormat == ssctstp.WolfcreekCKLBackgndFormat) subFmt.SectData.StepSectionData.WolfcreekCKLBackgndFormat = "null"; - if (msctstp.FortranFormatNumbers != null && msctstp.FortranFormatNumbers == ssctstp.FortranFormatNumbers) subFmt.SectData.StepSectionData.FortranFormatNumbers = "null"; - if (msctstp.UseTopContinueMessageAtEnd != null && msctstp.UseTopContinueMessageAtEnd == ssctstp.UseTopContinueMessageAtEnd) subFmt.SectData.StepSectionData.UseTopContinueMessageAtEnd = "null"; - if (msctstp.FloatingContinueMessage != null && msctstp.FloatingContinueMessage == ssctstp.FloatingContinueMessage) subFmt.SectData.StepSectionData.FloatingContinueMessage = "null"; - if (msctstp.WrapSameAsEdit != null && msctstp.WrapSameAsEdit == ssctstp.WrapSameAsEdit) subFmt.SectData.StepSectionData.WrapSameAsEdit = "null"; - if (msctstp.ContinueSectionHeader != null && msctstp.ContinueSectionHeader == ssctstp.ContinueSectionHeader) subFmt.SectData.StepSectionData.ContinueSectionHeader = "null"; - if (msctstp.CompressHPSub != null && msctstp.CompressHPSub == ssctstp.CompressHPSub) subFmt.SectData.StepSectionData.CompressHPSub = "null"; - if (msctstp.CompressHPSuper != null && msctstp.CompressHPSuper == ssctstp.CompressHPSuper) subFmt.SectData.StepSectionData.CompressHPSuper = "null"; - if (msctstp.CompressPropSubSup != null && msctstp.CompressPropSubSup == ssctstp.CompressPropSubSup) subFmt.SectData.StepSectionData.CompressPropSubSup = "null"; - //if (msctstp.UndSpecialStepsFoldout != null && msctstp.UndSpecialStepsFoldout == ssctstp.UndSpecialStepsFoldout) subFmt.SectData.StepSectionData.UndSpecialStepsFoldout = "null"; - if (msctstp.UnderlineAllMetaTitles != null && msctstp.UnderlineAllMetaTitles == ssctstp.UnderlineAllMetaTitles) subFmt.SectData.StepSectionData.UnderlineAllMetaTitles = "null"; - if (msctstp.BoldOnlySectionZero != null && msctstp.BoldOnlySectionZero == ssctstp.BoldOnlySectionZero) subFmt.SectData.StepSectionData.BoldOnlySectionZero = "null"; - if (msctstp.ImperfectStructure != null && msctstp.ImperfectStructure == ssctstp.ImperfectStructure) subFmt.SectData.StepSectionData.ImperfectStructure = "null"; - if (msctstp.ImperfectSubstep != null && msctstp.ImperfectSubstep == ssctstp.ImperfectSubstep) subFmt.SectData.StepSectionData.ImperfectSubstep = "null"; - if (msctstp.ImperfectStructurePlus4 != null && msctstp.ImperfectStructurePlus4 == ssctstp.ImperfectStructurePlus4) subFmt.SectData.StepSectionData.ImperfectStructurePlus4 = "null"; - if (msctstp.CountAllSubLevels != null && msctstp.CountAllSubLevels == ssctstp.CountAllSubLevels) subFmt.SectData.StepSectionData.CountAllSubLevels = "null"; - if (msctstp.UseMultiLineSectionTitle != null && msctstp.UseMultiLineSectionTitle == ssctstp.UseMultiLineSectionTitle) subFmt.SectData.StepSectionData.UseMultiLineSectionTitle = "null"; - if (msctstp.AdjustRNOCautionNoteWidth != null && msctstp.AdjustRNOCautionNoteWidth == ssctstp.AdjustRNOCautionNoteWidth) subFmt.SectData.StepSectionData.AdjustRNOCautionNoteWidth = "null"; - - if (msctlay.RNOWidthAlt == ssctlay.RNOWidthAlt) subFmt.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = null; - if (msctlay.HLSWidthOVRD == ssctlay.HLSWidthOVRD) subFmt.SectData.StepSectionData.StpSectLayData.HLSWidthOVRD = NullInt; - if (msctpr.SecColHdrforActPMode == ssctpr.SecColHdrforActPMode) subFmt.SectData.StepSectionData.StpSectPrtData.SecColHdrforActPMode = NullInt; - SectionNum msctn = mainFmt.SectData.SectionNumber; - SectionNum ssctn = subFmt.SectData.SectionNumber; - SectionHead mscth = mainFmt.SectData.SectionHeader; - SectionHead sscth = subFmt.SectData.SectionHeader; - subFmt.SectData.SectionNumber.Font = FixInheritedFont(ssctn.Font, msctn.Font); // Phase 7 - if (msctn.Pos == ssctn.Pos) subFmt.SectData.SectionNumber.Pos = NullInt; - if (msctn.Level0Big == ssctn.Level0Big) subFmt.SectData.SectionNumber.Level0Big = null; - if (msctn.Just == ssctn.Just) subFmt.SectData.SectionNumber.Just = null; - subFmt.SectData.SectionHeader.Font = FixInheritedFont(sscth.Font, mscth.Font); // Phase 8 - if (mscth.Pos == sscth.Pos) subFmt.SectData.SectionHeader.Pos = NullInt; - if (mscth.Level0Big == sscth.Level0Big) subFmt.SectData.SectionHeader.Level0Big = null; - if (mscth.Just == sscth.Just) subFmt.SectData.SectionHeader.Just = null; - - if (mainFmt.SectData.SectionTitleLength == subFmt.SectData.SectionTitleLength) subFmt.SectData.SectionTitleLength = NullInt; - if (mainFmt.SectData.SectForeColor == subFmt.SectData.SectForeColor) subFmt.SectData.SectForeColor = null; - if (mainFmt.SectData.SectBackColor == subFmt.SectData.SectBackColor) subFmt.SectData.SectBackColor = null; - if (mainFmt.SectData.MetaSectEndMessage != null && mainFmt.SectData.MetaSectEndMessage == subFmt.SectData.MetaSectEndMessage) subFmt.SectData.MetaSectEndMessage = "null"; - if (mainFmt.SectData.ReadOnlyTypeInContMsg != null && mainFmt.SectData.ReadOnlyTypeInContMsg == subFmt.SectData.ReadOnlyTypeInContMsg) subFmt.SectData.ReadOnlyTypeInContMsg = "null"; - if (mainFmt.SectData.ReplaceWordsInROs != null && mainFmt.SectData.ReplaceWordsInROs == subFmt.SectData.ReplaceWordsInROs) subFmt.SectData.ReplaceWordsInROs = "null"; - if (mainFmt.SectData.UseMetaSections != null && mainFmt.SectData.UseMetaSections == subFmt.SectData.UseMetaSections) subFmt.SectData.UseMetaSections = "null"; - if (mainFmt.SectData.NonEditableSteps != null && mainFmt.SectData.NonEditableSteps == subFmt.SectData.NonEditableSteps) subFmt.SectData.NonEditableSteps = "null"; - if (mainFmt.SectData.SearchAllReplaceWords != null && mainFmt.SectData.SearchAllReplaceWords == subFmt.SectData.SearchAllReplaceWords) subFmt.SectData.SearchAllReplaceWords = "null"; - if (mainFmt.SectData.SecTitleContinue != null && mainFmt.SectData.SecTitleContinue == subFmt.SectData.SecTitleContinue) subFmt.SectData.SecTitleContinue = "null"; - if (mainFmt.SectData.ConvertCaretToDelta != null && mainFmt.SectData.ConvertCaretToDelta == subFmt.SectData.ConvertCaretToDelta) subFmt.SectData.ConvertCaretToDelta = "null"; - if (mainFmt.SectData.TurnOffReplaceWords != null && mainFmt.SectData.TurnOffReplaceWords == subFmt.SectData.TurnOffReplaceWords) subFmt.SectData.TurnOffReplaceWords = "null"; - if (mainFmt.SectData.PrintPhoneList != null && mainFmt.SectData.PrintPhoneList == subFmt.SectData.PrintPhoneList) subFmt.SectData.PrintPhoneList = "null"; - - if (msctlay.SubPaginationWght == ssctlay.SubPaginationWght) subFmt.SectData.StepSectionData.StpSectLayData.SubPaginationWght = NullInt; - if (msctlay.TextTitleAdjustment == ssctlay.TextTitleAdjustment) subFmt.SectData.StepSectionData.StpSectLayData.TextTitleAdjustment = NullInt; - - AccSection maccsec = mainFmt.SectData.AccSectionData; - AccSection saccsec = subFmt.SectData.AccSectionData; - - if (maccsec.TableOfContentsData.TofCSecNumPos == saccsec.TableOfContentsData.TofCSecNumPos) subFmt.SectData.AccSectionData.TableOfContentsData.TofCSecNumPos = NullInt; - if (maccsec.TableOfContentsData.TofCSecTitlePos == saccsec.TableOfContentsData.TofCSecTitlePos) subFmt.SectData.AccSectionData.TableOfContentsData.TofCSecTitlePos = NullInt; - if (maccsec.TableOfContentsData.TofCSecTitleLen == saccsec.TableOfContentsData.TofCSecTitleLen) subFmt.SectData.AccSectionData.TableOfContentsData.TofCSecTitleLen = NullByte; - if (maccsec.TableOfContentsData.TofCPageNumPos == saccsec.TableOfContentsData.TofCPageNumPos) subFmt.SectData.AccSectionData.TableOfContentsData.TofCPageNumPos = NullInt; - if (maccsec.TableOfContentsData.TofCSpaceChar == saccsec.TableOfContentsData.TofCSpaceChar) subFmt.SectData.AccSectionData.TableOfContentsData.TofCSpaceChar = null; - if (maccsec.TableOfContentsData.TofCLineSpacing == saccsec.TableOfContentsData.TofCLineSpacing) subFmt.SectData.AccSectionData.TableOfContentsData.TofCLineSpacing = NullByte; - subFmt.SectData.AccSectionData.TableOfContentsData.Font = FixInheritedFont(saccsec.TableOfContentsData.Font, maccsec.TableOfContentsData.Font); // Phase 9 - subFmt.SectData.StepSectionData.StpSectLayData.VertStyle = FixInheritedFont(ssctlay.VertStyle, msctlay.VertStyle);// Phase 13 - - for (int i = 0; i < 10; i++) - { - if (mainFmt.SectData.MetaSectionData[i].SecNumPositionAdj == subFmt.SectData.MetaSectionData[i].SecNumPositionAdj) subFmt.SectData.MetaSectionData[i].SecNumPositionAdj = NullInt; - if (mainFmt.SectData.MetaSectionData[i].SecTitlePositionAdj == subFmt.SectData.MetaSectionData[i].SecTitlePositionAdj) subFmt.SectData.MetaSectionData[i].SecTitlePositionAdj = NullInt; - if (mainFmt.SectData.MetaSectionData[i].ColSByLevel == subFmt.SectData.MetaSectionData[i].ColSByLevel) subFmt.SectData.MetaSectionData[i].ColSByLevel = NullInt; - if (mainFmt.SectData.MetaSectionData[i].TofCPositionAdj == subFmt.SectData.MetaSectionData[i].TofCPositionAdj) subFmt.SectData.MetaSectionData[i].TofCPositionAdj = NullInt; - if (mainFmt.SectData.MetaSectionData[i].WidSAdjByLevel == subFmt.SectData.MetaSectionData[i].WidSAdjByLevel) subFmt.SectData.MetaSectionData[i].WidSAdjByLevel = NullInt; - } - - if (msctstp.NumberOfHighLevelSteps == ssctstp.NumberOfHighLevelSteps) subFmt.SectData.StepSectionData.NumberOfHighLevelSteps = NullInt; - - for (int i = 0; i < MAXBOXES + 1; i++) - { - if (mainFmt.BoxData[i].TxtRowAdj == subFmt.BoxData[i].TxtRowAdj) subFmt.BoxData[i].TxtRowAdj = (sbyte)NullByte; - if (mainFmt.BoxData[i].BXURC == subFmt.BoxData[i].BXURC) subFmt.BoxData[i].BXURC = null; - if (mainFmt.BoxData[i].BXHorz == subFmt.BoxData[i].BXHorz) subFmt.BoxData[i].BXHorz = null; - if (mainFmt.BoxData[i].BXULC == subFmt.BoxData[i].BXULC) subFmt.BoxData[i].BXULC = NullString; - if (mainFmt.BoxData[i].BXVert == subFmt.BoxData[i].BXVert) subFmt.BoxData[i].BXVert = null; - if (mainFmt.BoxData[i].BXMLS == subFmt.BoxData[i].BXMLS) subFmt.BoxData[i].BXMLS = null; - if (mainFmt.BoxData[i].BXMRS == subFmt.BoxData[i].BXMRS) subFmt.BoxData[i].BXMRS = null; - if (mainFmt.BoxData[i].BXLRC == subFmt.BoxData[i].BXLRC) subFmt.BoxData[i].BXLRC = null; - if (mainFmt.BoxData[i].BXLLC == subFmt.BoxData[i].BXLLC) subFmt.BoxData[i].BXLLC = null; - if (mainFmt.BoxData[i].BXMID == subFmt.BoxData[i].BXMID) subFmt.BoxData[i].BXMID = null; - if (mainFmt.BoxData[i].BXLHorz == subFmt.BoxData[i].BXLHorz) subFmt.BoxData[i].BXLHorz = null; - if (mainFmt.BoxData[i].BXUMID == subFmt.BoxData[i].BXUMID) subFmt.BoxData[i].BXUMID = null; - if (mainFmt.BoxData[i].BXLMID == subFmt.BoxData[i].BXLMID) subFmt.BoxData[i].BXLMID = null; - - } - - if (msctstp.NumberOfSubStepTypes == ssctstp.NumberOfSubStepTypes) subFmt.SectData.StepSectionData.NumberOfSubStepTypes = NullInt; - - if (mainFmt.SectData.AccSectionData.AutoContActSumSection == subFmt.SectData.AccSectionData.AutoContActSumSection) subFmt.SectData.AccSectionData.AutoContActSumSection = NullInt; - - if (msctstp.IdentB == ssctstp.IdentB) subFmt.SectData.StepSectionData.IdentB = null; - - //for (int i = 0; i < MAXSEQ; i++) - // if (msctstp.SeqTab[i] == ssctstp.SeqTab[i]) subFmt.SectData.StepSectionData.SeqTab[i]=null; - - // don't clear replace words. these would have to match exactly, because order matters when processing replace words & integrating the two lists when they are to be - // used is too complicated. - //for (int i = 0; i < MAXREPLACE; i++) - //{ - // if (mainFmt.SectData.ReplaceStrData[i].ReplaceWord == subFmt.SectData.ReplaceStrData[i].ReplaceWord) subFmt.SectData.ReplaceStrData[i].ReplaceWord = null; - // if (mainFmt.SectData.ReplaceStrData[i].ReplaceWith == subFmt.SectData.ReplaceStrData[i].ReplaceWith) subFmt.SectData.ReplaceStrData[i].ReplaceWith = null; - // // clear flags only if both replaceword & replacewith ended up getting cleared. - // if ((subFmt.SectData.ReplaceStrData[i].ReplaceWord == null) && (subFmt.SectData.ReplaceStrData[i].ReplaceWith == null)) subFmt.SectData.ReplaceStrData[i].Flag = null; - //} - - for (int i = 0; i < 10; i++) - { - if (mainFmt.PrintData.ProcDescrList[i].MatchProcNumber == subFmt.PrintData.ProcDescrList[i].MatchProcNumber) subFmt.PrintData.ProcDescrList[i].MatchProcNumber = null; - if (mainFmt.PrintData.ProcDescrList[i].ProcDescr1 == subFmt.PrintData.ProcDescrList[i].ProcDescr1) subFmt.PrintData.ProcDescrList[i].ProcDescr1 = null; - if (mainFmt.PrintData.ProcDescrList[i].ProcDescr2 == subFmt.PrintData.ProcDescrList[i].ProcDescr2) subFmt.PrintData.ProcDescrList[i].ProcDescr2 = null; - } - for (int i = 0; i < 5; i++) - if (mainFmt.PrintData.VersionIdText[i] == subFmt.PrintData.VersionIdText[i]) subFmt.PrintData.VersionIdText[i] = null; - - if (mainFmt.TransData.DelimiterForTransitionTitle == subFmt.TransData.DelimiterForTransitionTitle) subFmt.TransData.DelimiterForTransitionTitle = null; - if (mainFmt.TransData.StepSubstepDelimeter == subFmt.TransData.StepSubstepDelimeter) subFmt.TransData.StepSubstepDelimeter = null; - if (mainFmt.TransData.ThroughString == subFmt.TransData.ThroughString) subFmt.TransData.ThroughString = null; - if (mainFmt.TransData.SpecifiedSubstepsOnly != null && mainFmt.TransData.SpecifiedSubstepsOnly == subFmt.TransData.SpecifiedSubstepsOnly) subFmt.TransData.SpecifiedSubstepsOnly = "null"; - if (mainFmt.TransData.CapsTransitions != null && mainFmt.TransData.CapsTransitions == subFmt.TransData.CapsTransitions) subFmt.TransData.CapsTransitions = "null"; - if (mainFmt.TransData.CapTranStep != null && mainFmt.TransData.CapTranStep == subFmt.TransData.CapTranStep) subFmt.TransData.CapTranStep = "null"; - if (mainFmt.TransData.Underline != null && mainFmt.TransData.Underline == subFmt.TransData.Underline) subFmt.TransData.Underline = "null"; - if (mainFmt.TransData.TStepNoFlag != null && mainFmt.TransData.TStepNoFlag == subFmt.TransData.TStepNoFlag) subFmt.TransData.TStepNoFlag = "null"; - if (mainFmt.TransData.LowerCaseTranNumber != null && mainFmt.TransData.LowerCaseTranNumber == subFmt.TransData.LowerCaseTranNumber) subFmt.TransData.LowerCaseTranNumber = "null"; - if (mainFmt.TransData.UpcaseTranAnd != null && mainFmt.TransData.UpcaseTranAnd == subFmt.TransData.UpcaseTranAnd) subFmt.TransData.UpcaseTranAnd = "null"; - if (mainFmt.TransData.SuppressAndInTran != null && mainFmt.TransData.SuppressAndInTran == subFmt.TransData.SuppressAndInTran) subFmt.TransData.SuppressAndInTran = "null"; - if (mainFmt.TransData.Cap1stCharTrans != null && mainFmt.TransData.Cap1stCharTrans == subFmt.TransData.Cap1stCharTrans) subFmt.TransData.Cap1stCharTrans = "null"; - if (mainFmt.TransData.UseTransitionModifier != null && mainFmt.TransData.UseTransitionModifier == subFmt.TransData.UseTransitionModifier) subFmt.TransData.UseTransitionModifier = "null"; - if (mainFmt.TransData.UseSpecificTransitionModifier != null && mainFmt.TransData.UseSpecificTransitionModifier == subFmt.TransData.UseSpecificTransitionModifier) subFmt.TransData.UseSpecificTransitionModifier = "null"; - if (mainFmt.TransData.UseSpecificPageNo != null && mainFmt.TransData.UseSpecificPageNo == subFmt.TransData.UseSpecificPageNo) subFmt.TransData.UseSpecificPageNo = "null"; - if (mainFmt.TransData.UseSecTitles != null && mainFmt.TransData.UseSecTitles == subFmt.TransData.UseSecTitles) subFmt.TransData.UseSecTitles = "null"; - if (mainFmt.TransData.HardSpTranProcNumb != null && mainFmt.TransData.HardSpTranProcNumb == subFmt.TransData.HardSpTranProcNumb) subFmt.TransData.HardSpTranProcNumb = "null"; - if (mainFmt.TransData.XchngTranSpForHard != null && mainFmt.TransData.XchngTranSpForHard == subFmt.TransData.XchngTranSpForHard) subFmt.TransData.XchngTranSpForHard = "null"; - if (mainFmt.TransData.AbsoluteTransitionUpdate != null && mainFmt.TransData.AbsoluteTransitionUpdate == subFmt.TransData.AbsoluteTransitionUpdate) subFmt.TransData.AbsoluteTransitionUpdate = "null"; - if (mainFmt.TransData.LowerCaseStepInTran != null && mainFmt.TransData.LowerCaseStepInTran == subFmt.TransData.LowerCaseStepInTran) subFmt.TransData.LowerCaseStepInTran = "null"; - if (mainFmt.TransData.DoSectionTransitions != null && mainFmt.TransData.DoSectionTransitions == subFmt.TransData.DoSectionTransitions) subFmt.TransData.DoSectionTransitions = "null"; - - if (mainFmt.ROData.AllUnits != null && mainFmt.ROData.AllUnits == subFmt.ROData.AllUnits) subFmt.ROData.AllUnits = "null"; - if (mainFmt.ROData.UpRoAftrDash != null && mainFmt.ROData.UpRoAftrDash == subFmt.ROData.UpRoAftrDash) subFmt.ROData.UpRoAftrDash = "null"; - if (mainFmt.ROData.UpcaseAllRoUnits != null && mainFmt.ROData.UpcaseAllRoUnits == subFmt.ROData.UpcaseAllRoUnits) subFmt.ROData.UpcaseAllRoUnits = "null"; - if (mainFmt.ROData.CapHighRo != null && mainFmt.ROData.CapHighRo == subFmt.ROData.CapHighRo) subFmt.ROData.CapHighRo = "null"; - if (mainFmt.ROData.CapRoIfLastLower != null && mainFmt.ROData.CapRoIfLastLower == subFmt.ROData.CapRoIfLastLower) subFmt.ROData.CapRoIfLastLower = "null"; - if (mainFmt.ROData.UpRoIfPrevUpper != null && mainFmt.ROData.UpRoIfPrevUpper == subFmt.ROData.UpRoIfPrevUpper) subFmt.ROData.UpRoIfPrevUpper = "null"; - if (mainFmt.ROData.UnderlineRo != null && mainFmt.ROData.UnderlineRo == subFmt.ROData.UnderlineRo) subFmt.ROData.UnderlineRo = "null"; - if (mainFmt.ROData.CapFirstLetterInHighRO != null && mainFmt.ROData.CapFirstLetterInHighRO == subFmt.ROData.CapFirstLetterInHighRO) subFmt.ROData.CapFirstLetterInHighRO = "null"; - - if (mainFmt.ProcData.ProcedureSuffixFlags == subFmt.ProcData.ProcedureSuffixFlags) subFmt.ProcData.ProcedureSuffixFlags = null; - for (int i = 0; i < 10; i++) - if (mainFmt.ProcData.ProcedureSuffix[i] == subFmt.ProcData.ProcedureSuffix[i]) subFmt.ProcData.ProcedureSuffix[i] = null; - - if (mainFmt.PrintData.TopOfPageThing == subFmt.PrintData.TopOfPageThing) subFmt.PrintData.TopOfPageThing = null; - - //for (int i=0; i<10; i++) - // if (msctstp.TextType[i] == ssctstp.TextType[i]) subFmt.SectData.StepSectionData.TextType[i]=null; - - //for (int i=0; i dicSteps = BuildStepDic(stpdata); - Dictionary dicParents = BuildParentDic(stpdata, dicSteps); - int startIndx = fname.ToUpper() == "GEN.FMT" && !baseDone? 1 : 0; - baseDone = true; - for (int i = startIndx; i < MAXSTEPS; i++) - //for (int i = 0; i < MAXSTEPS; i++) - { - FixInheritance(ref stpdata[i], dicParents); - // Since 'Step' is a structure, the StepParentList (dictionary) needs to be updated each time - // the stpdata is updated. Each instance of Step, because it is a structure, will be a separate copy - // so the dictionary had a distinct copy of the step's format data from what gets passed in by reference. - for (int j = 0; j < MAXSTEPS; j++) - { - if (stpdata[i].Type == stpdata[j].ParentType) StepParentList[0][stpdata[j].Type] = stpdata[i]; - } - } - } - public const string NullString = "-12345"; - public const int NullInt = -12345; - public const byte NullByte = 123; - - private void FixInheritance(ref Step step, Dictionary dicParents) - { - if (CheckInheritedStr(new StepPartStr(StepPartReadOnly), step, dicParents)) step.ReadOnly = null; - if (CheckInheritedStr(new StepPartStr(StepPartInactive), step, dicParents)) step.Inactive = null; - if (CheckInheritedStr(new StepPartStr(StepPartColOverride), step, dicParents)) step.ColOverride = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartColOverrideEdit), step, dicParents)) step.ColOverrideEdit = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartWidthOverride), step, dicParents)) step.WidthOverride = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartWidthOverrideEdit), step, dicParents)) step.WidthOverrideEdit = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartSep), step, dicParents)) step.Sep = null; - if (CheckInheritedStr(new StepPartStr(StepPartPrefix), step, dicParents)) step.Prefix = null; - if (CheckInheritedStr(new StepPartStr(StepPartSuffix), step, dicParents)) step.Suffix = null; - if (CheckInheritedStr(new StepPartStr(StepPartUnderlineTheseChar), step, dicParents)) step.UnderlineTheseChar = null; - if (CheckInheritedStr(new StepPartStr(StepPartVertPos), step, dicParents)) step.VertPos = null; - // substructures - Font - if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontFamily), step, dicParents)) - step.Font.FontFamily = null; - if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontStyle), step, dicParents)) - step.Font.FontStyle = null; - if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontSize), step, dicParents)) - step.Font.FontSize = null; - bool skipCPIForCalvertAlarmTypeHigh5 = false; - if (step.Type.ToUpper() == "HIGH5" && fmtName.ToUpper() == "BGEALN") skipCPIForCalvertAlarmTypeHigh5 = true; - if (!skipCPIForCalvertAlarmTypeHigh5 && step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontCPI), step, dicParents)) - step.Font.CPI = null; - if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontJustify), step, dicParents)) - step.Font.FontJustify = null; - if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontCheckOff), step, dicParents)) - step.Font.FontCheckOff = null; - if ((step.Font != null) && (step.Font.FontFamily == null) && (step.Font.FontStyle == null) && (step.Font.FontSize == null) && (step.Font.FontJustify == null) && (step.Font.FontCheckOff == null) && (step.Font.CPI == null)) - step.Font = null; - // substructure - StepLayoutData - if (CheckInheritedStr(new StepPartStr(StepPartLayoutForeColor), step, dicParents)) step.StepLayoutData.ForeColor = null; - if (CheckInheritedStr(new StepPartStr(StepPartLayoutBackColor), step, dicParents)) step.StepLayoutData.BackColor = null; - if (CheckInheritedStr(new StepPartStr(StepPartLayoutSTExtraSpace), step, dicParents)) - { - Console.WriteLine("{0}", fmtName); - step.StepLayoutData.STExtraSpace = NullString; - } - if (CheckInheritedStr(new StepPartStr(StepPartLayoutSTBoxindex), step, dicParents)) step.StepLayoutData.STBoxindex = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartLayoutEveryNLines), step, dicParents)) step.StepLayoutData.EveryNLines = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartLayoutSpaceBefore), step, dicParents)) step.StepLayoutData.SpaceBefore = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartLayoutSpaceAfter), step, dicParents)) step.StepLayoutData.SpaceAfter = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartLayoutAlwaysUpperCase), step, dicParents)) step.StepLayoutData.AlwaysUpperCase = null; - if (CheckInheritedStr(new StepPartStr(StepPartLayoutPageBreakAtTypeChange), step, dicParents)) step.StepLayoutData.PageBreakAtTypeChange = null; - if (CheckInheritedStr(new StepPartStr(StepPartLayoutAlignWithParentTab), step, dicParents)) step.StepLayoutData.AlignWithParentTab = null; - // substructure - StepEditData - if (CheckInheritedStr(new StepPartStr(StepPartEditForeColor), step, dicParents)) step.StepEditData.ForeColor = null; - if (CheckInheritedStr(new StepPartStr(StepPartEditBackColor), step, dicParents)) step.StepEditData.BackColor = null; - if (CheckInheritedStr(new StepPartStr(StepPartEditAcTable), step, dicParents)) step.StepEditData.AcTable = null; - if (CheckInheritedStr(new StepPartStr(StepPartEditSearchable), step, dicParents)) step.StepEditData.Searchable = null; - // substructure - TypeMenu - if (CheckInheritedStr(new StepPartStr(StepPartEditTypeInMenu), step, dicParents)) step.StepEditData.TypeMenu.InMenu = null; - if (CheckInheritedStr(new StepPartStr(StepPartEditTypeRnoInMenu), step, dicParents)) step.StepEditData.TypeMenu.RnoInMenu = null; - if (CheckInheritedStr(new StepPartStr(StepPartEditTypeMenuItem), step, dicParents)) step.StepEditData.TypeMenu.MenuItem = null; - if (CheckInheritedStr(new StepPartStr(StepPartEditTypeRnoMenuItem), step, dicParents)) step.StepEditData.TypeMenu.RnoMenuItem = null; - if (CheckInheritedStr(new StepPartStr(StepPartEditTypeNoChg_Reason), step, dicParents)) step.StepEditData.TypeMenu.NoChgReason = null; - if (CheckInheritedStr(new StepPartStr(StepPartEditTypeAlternateNameList), step, dicParents)) step.StepEditData.TypeMenu.AlternateNameList = null; - // substructure - StepPrintData - if (CheckInheritedStr(new StepPartStr(StepPartPrintForeColor), step, dicParents)) step.StepPrintData.ForeColor = null; - if (CheckInheritedStr(new StepPartStr(StepPartPrintBackColor), step, dicParents)) step.StepPrintData.BackColor = null; - if (CheckInheritedStr(new StepPartStr(StepPartPrintPosAdjust), step, dicParents)) step.StepPrintData.PosAdjust = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartPrintHLSLength), step, dicParents)) step.StepPrintData.HLSLength = NullString; - - // substructure - TabData - - //RHM/KBR added this - not sure: if (mstp.TabData.IdentEdit == sstp.TabData.IdentEdit) subFmt.StepData[i].TabData.IdentEdit = null; - if (CheckInheritedStr(new StepPartStr(StepPartTabIdentEdit), step, dicParents)) step.TabData.IdentEdit = null; - if (CheckInheritedStr(new StepPartStr(StepPartTabIdent), step, dicParents)) step.TabData.Ident = null; - if (CheckInheritedStr(new StepPartStr(StepPartTabIdentAltPrint), step, dicParents)) step.TabData.IdentAltPrint = null; - if (CheckInheritedStr(new StepPartStr(StepPartTabRNOIdentEdit), step, dicParents)) step.TabData.RNOIdentEdit = null; - if (CheckInheritedStr(new StepPartStr(StepPartTabRNOIdent), step, dicParents)) step.TabData.RNOIdent = null; - //if (CheckInheritedStr(new StepPartStr(StepPartTabIdentEditWid), step, dicParents)) step.TabData.IdentEditWid = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartTabIdentWid), step, dicParents)) step.TabData.IdentWid = NullString; - //if (CheckInheritedStr(new StepPartStr(StepPartTabRNOIdentEditWid), step, dicParents)) step.TabData.RNOIdentEditWid = NullString; - //if (CheckInheritedStr(new StepPartStr(StepPartTabRNOIdentWid), step, dicParents)) step.TabData.RNOIdentWid = NullString; - if (CheckInheritedStr(new StepPartStr(StepPartTabJustify), step, dicParents)) step.TabData.Justify = null; - if (CheckInheritedStr(new StepPartStr(StepPartTabTrim), step, dicParents)) step.TabData.NoTrim = null; - //if (CheckInheritedStr(new StepPartStr(StepPartTabCheckOff), step, dicParents)) step.TabData.CheckOff = null; - - // substructures - Tab - Font - if (step.TabData.Font != null && CheckInheritedStr(new StepPartStr(StepPartTabFontFamily), step, dicParents)) - step.TabData.Font.FontFamily = null; - if (step.TabData.Font != null && CheckInheritedStr(new StepPartStr(StepPartTabFontStyle), step, dicParents)) - step.TabData.Font.FontStyle = null; - if (step.TabData.Font != null && CheckInheritedStr(new StepPartStr(StepPartTabFontSize), step, dicParents)) - step.TabData.Font.FontSize = null; - if (step.TabData.Font != null && CheckInheritedStr(new StepPartStr(StepPartTabFontCPI), step, dicParents)) - step.TabData.Font.CPI = null; - if (step.TabData.Font != null && CheckInheritedStr(new StepPartStr(StepPartTabJustify), step, dicParents)) - step.TabData.Font.FontJustify = null; - if (step.TabData.Font != null) // && CheckInheritedStr(new StepPartStr(StepPartTabCheckOff), step, dicParents)) - step.TabData.Font.FontCheckOff = null; - if ((step.TabData.Font != null) && (step.TabData.Font.FontFamily == null) && (step.TabData.Font.FontStyle == null) && (step.TabData.Font.FontSize == null) && (step.TabData.Font.FontJustify == null) && (step.TabData.Font.CPI == null)) - step.TabData.Font = null; - - // All macro list items must be identical from step to inherited parent in order to removeit. - if (step.TabData.MacroList != null) - { - if (CheckInheritedStr(new StepPartStr(StepPartTabMacroListName), step, dicParents) && - CheckInheritedStr(new StepPartStr(StepPartTabMacroListMacro), step, dicParents) && - CheckInheritedStr(new StepPartStr(StepPartTabMacroListGrouping), step, dicParents) && - CheckInheritedStr(new StepPartStr(StepPartTabMacroListLocWithXOff), step, dicParents) && - CheckInheritedStr(new StepPartStr(StepPartTabMacroListNotInRNO), step, dicParents)) - { - step.TabData.MacroList[0].Macro = null; - step.TabData.MacroList[0].Grouping = NullString; - step.TabData.MacroList[0].NotInRNO = null; - step.TabData.MacroList[0].LocWithXOff = null; - } - } - - // flags: - if (CheckInheritedStr(new StepPartStr(StepPartDoubleSpace), step, dicParents)) step.DoubleSpace = null; - if (CheckInheritedStr(new StepPartStr(StepPartEnhancedStepNumFromPrev), step, dicParents)) step.EnhancedStepNumFromPrev = null; - if (CheckInheritedStr(new StepPartStr(StepPartUseSmartTemplate), step, dicParents)) step.UseSmartTemplate = null; - if (CheckInheritedStr(new StepPartStr(StepPartAlwaysUseExtraLines), step, dicParents)) step.AlwaysUseExtraLines = null; - if (CheckInheritedStr(new StepPartStr(StepPartSeparateBox), step, dicParents)) step.SeparateBox = null; - if (CheckInheritedStr(new StepPartStr(StepPartSeparateBoxCautions), step, dicParents)) step.SeparateBoxCautions = null; - if (CheckInheritedStr(new StepPartStr(StepPartSpaceDouble), step, dicParents)) step.SpaceDouble = null; - if (CheckInheritedStr(new StepPartStr(StepPartReduceLineAfter), step, dicParents)) step.ReduceLineAfter = null; - if (CheckInheritedStr(new StepPartStr(StepPartSameLevel), step, dicParents)) step.SameLevel = null; - if (CheckInheritedStr(new StepPartStr(StepPartBoldHighLevel), step, dicParents)) step.BoldHighLevel = null; - if (CheckInheritedStr(new StepPartStr(StepPartOneLineBeforeTab), step, dicParents)) step.OneLineBeforeTab = null; - if (CheckInheritedStr(new StepPartStr(StepPartBoxIt), step, dicParents)) step.BoxIt = null; - if (CheckInheritedStr(new StepPartStr(StepPartBoxed), step, dicParents)) step.Boxed = null; - if (CheckInheritedStr(new StepPartStr(StepPartXLines_StepFix), step, dicParents)) step.XLines_StepFix = null; - if (CheckInheritedStr(new StepPartStr(StepPartRebox), step, dicParents)) step.Rebox = null; - if (CheckInheritedStr(new StepPartStr(StepPartSpcHdr), step, dicParents)) step.SpcHdr = null; - if (CheckInheritedStr(new StepPartStr(StepPartContinueOnly), step, dicParents)) step.ContinueOnly = null; - if (CheckInheritedStr(new StepPartStr(StepPartSepAfterAER), step, dicParents)) step.SepAfterAER = null; - if (CheckInheritedStr(new StepPartStr(StepPartUseAlternateStepBox), step, dicParents)) step.UseAlternateStepBox = null; - if (CheckInheritedStr(new StepPartStr(StepPartUnderlineAfterDashSpace), step, dicParents)) step.UnderlineAfterDashSpace = null; - if (CheckInheritedStr(new StepPartStr(StepPartSpaceIn), step, dicParents)) step.SpaceIn = null; - if (CheckInheritedStr(new StepPartStr(StepPartPageBreakOnStep), step, dicParents)) step.PageBreakOnStep = null; - if (CheckInheritedStr(new StepPartStr(StepPartUseOldTemplate), step, dicParents)) step.UseOldTemplate = null; - if (CheckInheritedStr(new StepPartStr(StepPartAlignNullTabWSectHead), step, dicParents)) step.AlignNullTabWSectHead = null; - if (CheckInheritedStr(new StepPartStr(StepPartAlignHLSTabWithSectOvride), step, dicParents)) step.AlignHLSTabWithSectOvride = null; - if (CheckInheritedStr(new StepPartStr(StepPartTextSubFollowsTextStyle), step, dicParents)) step.TextSubFollowsTextStyle = null; - if (CheckInheritedStr(new StepPartStr(StepPartTreatAsSequential), step, dicParents)) step.TreatAsSequential = null; - if (CheckInheritedStr(new StepPartStr(StepPartMatchUpRNO), step, dicParents)) step.MatchUpRNO = null; - if (CheckInheritedStr(new StepPartStr(StepPartInPageList), step, dicParents)) step.InPageList = null; - if (CheckInheritedStr(new StepPartStr(StepPartCenterOneLineOnly), step, dicParents)) step.CenterOneLineOnly = null; - if (CheckInheritedStr(new StepPartStr(StepPartSubTableGetsUp1Level), step, dicParents)) step.SubTableGetsUp1Level = null; - if (CheckInheritedStr(new StepPartStr(StepPartRemember), step, dicParents)) step.Remember = null; - if (CheckInheritedStr(new StepPartStr(StepPartCenterOneLineAdjust), step, dicParents)) step.CenterOneLineAdjust = null; - if (CheckInheritedStr(new StepPartStr(StepPartBreak), step, dicParents)) step.Break = null; - if (CheckInheritedStr(new StepPartStr(StepPartBreakEquipmentList), step, dicParents)) step.BreakEquipmentList = null; - if (CheckInheritedStr(new StepPartStr(StepPartBreakCautionsNotesOnSubstps), step, dicParents)) step.BreakCautionsNotesOnSubstps = null; - if (CheckInheritedStr(new StepPartStr(StepPartCenterTextWithinWidth), step, dicParents)) step.CenterTextWithinWidth = null; - if (CheckInheritedStr(new StepPartStr(StepPartNewlineAfter), step, dicParents)) step.NewlineAfter = null; - if (CheckInheritedStr(new StepPartStr(StepPartStartLineWithDash), step, dicParents)) step.StartLineWithDash = null; - if (CheckInheritedStr(new StepPartStr(StepPartBlankLineBeforeSubStep), step, dicParents)) step.BlankLineBeforeSubStep = null; - if (CheckInheritedStr(new StepPartStr(StepPartAlwaysTab), step, dicParents)) step.AlwaysTab = null; - if (CheckInheritedStr(new StepPartStr(StepPartMixCautionsAndNotes), step, dicParents)) step.MixCautionsAndNotes = null; - if (CheckInheritedStr(new StepPartStr(StepPartNumberHighLevel), step, dicParents)) step.NumberHighLevel = null; - if (CheckInheritedStr(new StepPartStr(StepPartNumberWithLevel), step, dicParents)) step.NumberWithLevel = null; - if (CheckInheritedStr(new StepPartStr(StepPartOffsetTab), step, dicParents)) step.OffsetTab = null; - if (CheckInheritedStr(new StepPartStr(StepPartAdjHighLevelTab), step, dicParents)) step.AdjHighLevelTab = null; - if (CheckInheritedStr(new StepPartStr(StepPartChildIndent), step, dicParents)) step.ChildIndent = null; - if (CheckInheritedStr(new StepPartStr(StepPartLeftJustifyBorderless), step, dicParents)) step.LeftJustifyBorderless = null; - if (CheckInheritedStr(new StepPartStr(StepPartStepNumIfOnlyOne), step, dicParents)) step.StepNumIfOnlyOne = null; - if (CheckInheritedStr(new StepPartStr(StepPartLJTabs), step, dicParents)) step.LJTabs = null; - if (CheckInheritedStr(new StepPartStr(StepPartNumberSubs), step, dicParents)) step.NumberSubs = null; - if (CheckInheritedStr(new StepPartStr(StepPartBullet), step, dicParents)) step.BulletOnContinuous = null; - if (CheckInheritedStr(new StepPartStr(StepPartStepNumberForHighLevel), step, dicParents)) step.StepNumberForHighLevel = null; - if (CheckInheritedStr(new StepPartStr(StepPartSameRowAsParent), step, dicParents)) step.SameRowAsParent = null; - if (CheckInheritedStr(new StepPartStr(StepPartCheckoffSameAsParent), step, dicParents)) step.CheckoffSameAsParent = null; - if (CheckInheritedStr(new StepPartStr(StepPartAtLeastTwoDigits), step, dicParents)) step.AtLeastTwoDigits = null; - if (CheckInheritedStr(new StepPartStr(StepPartUseInAcTable), step, dicParents)) step.UseInAcTable = null; - if (CheckInheritedStr(new StepPartStr(StepPartNumber), step, dicParents)) step.Number = null; - if (CheckInheritedStr(new StepPartStr(StepPartThreeBlanksAbove), step, dicParents)) step.ThreeBlanksAbove = null; - if (CheckInheritedStr(new StepPartStr(StepPartCheckOffs), step, dicParents)) step.CheckOffs = null; - if (CheckInheritedStr(new StepPartStr(StepPartQuoted), step, dicParents)) step.Quoted = null; - - } - - private bool CheckInheritedStr(StepPartStr stepPartStr, Step step, Dictionary dicParents) - { - string inheritedValue = GetStepInherited(stepPartStr, step.Type, 0); - string stepValue = stepPartStr(step); - return inheritedValue == stepValue; - //Step parent = step; - //while ((stepPartStr(parent) == null) || (step.Type == parent.Type)) - //{ - // if (!dicParents.ContainsKey(parent.Type)) - // { - // if (BaseFormat.StepData != null) - // { - // Step mstp = BaseFormat.StepData[step.Index]; - // if (stepPartStr(mstp) == stepPartStr(step)) return true; - // } - // return false;// No non-null parent value found - // } - // parent = dicParents[parent.Type]; - // if (stepPartStr(step) == stepPartStr(parent)) - // return true; // step value same as parent. - //} - //return false; // parent value different from step value - } - - private string GetStepInherited(StepPartStr stepPartStr, string stepType, int level) - { - string typ = stepType; - // spin through the step inheritance looking for a value - while (StepParentList[level].ContainsKey(typ)) - { - Step parent = StepParentList[level][typ]; - string parentVal = stepPartStr(parent); - if (parentVal != null && parentVal != "-12345") return parentVal; - typ = parent.Type; - } - // no more parent formats to look at: - if (level >= (StepParentList.Count - 1)) return null; - Step stp = StepList[level + 1][stepType]; - string stpVal = stepPartStr(stp); - if (stpVal != null) return stpVal; - return GetStepInherited(stepPartStr, stepType, level + 1); - } - private Dictionary BuildStepDic(Step[] stpdata) - { - Dictionary dicSteps = new Dictionary(); - foreach (Step stp in stpdata) dicSteps[stp.Type] = stp; - return dicSteps; - } - private Dictionary BuildParentDic(Step[] stpdata, Dictionary dicSteps) - { - Dictionary dicParent = new Dictionary(); - foreach (Step stp in stpdata) - if (stp.ParentType != "") dicParent[stp.Type] = dicSteps[stp.ParentType]; - return dicParent; - } - #endregion - private void FixInactiveForHigh(ref FormatData fmtdata) // set all the HighLevelSteps beyond - { - Step[] stpdata = fmtdata.StepData; - int numHigh = fmtdata.SectData.StepSectionData.NumberOfHighLevelSteps; - if (numHigh == 0) return; - if (numHigh < HighTypeValue.Length) // need to set steps to inactive beyond numHigh - { - for (int i = numHigh; i < HighTypeValue.Length; i++) - { - string inactiveType = HighTypeValue[i]; - for (int j = 0; j < stpdata.Length; j++) - { - if (stpdata[j].Type == inactiveType) - stpdata[j].Inactive = "True"; - } - } - } - } - private void FixInactiveForSubStep(ref FormatData fmtdata) - { - Step[] stpdata = fmtdata.StepData; - int numSub = fmtdata.SectData.StepSectionData.NumberOfSubStepTypes; - if (numSub == 0) return; - if (numSub < SubStepValue.Length) // need to set steps to inactive beyond numHigh - { - for (int i = numSub; i < SubStepValue.Length; i++) - { - string inactiveType = SubStepValue[i]; - for (int j = 0; j < stpdata.Length; j++) - { - if (stpdata[j].Type == inactiveType) - stpdata[j].Inactive = "True"; - } - } - } - } - private void FixInactiveForText(ref FormatData fmtdata) - { - Step[] stpdata = fmtdata.StepData; - if ((_AlternateIndex ?? "") == "") return; - string mask = "," + _AlternateIndex + ","; - foreach (string textType in TextTypes) - { - if (!mask.Contains("," + textType + ",")) - { - for (int j = 0; j < stpdata.Length; j++) - { - if (stpdata[j].Type == textType) - stpdata[j].Inactive = "True"; - } - } - } - } - private string[] HighTypeValue ={ "High", "Continuous", "Immediate", "LossOfAC", "High5" }; - private string[] SubStepValue = {"Substep","And","Or","EquipmentList","EquipmentWBlank", - "ExplicitAnd","ImplicitOr","Paragraph","EquipmentOpt","EquipmentOptWBlank","ContAcSequential", - "ContAcAnd","ContAcOr","ContAcParagraph","TitleWithTextRight","TitleWithTextBelow"}; - private string[] TextTypes = {"Caution","Caution1","Caution2","Caution3","Caution4", - "Note","Note1","Note2","Note3","Note4","Note5"}; - - private bool RHMDebugPause(string fname, string lookfor) - { - return lookfor.Contains("." + fname.Substring(0, fname.LastIndexOf(".")).ToLower() + "."); - } - } - -} diff --git a/PROMS/fmtxml/FmtToXml.cs b/PROMS/fmtxml/FmtToXml.cs deleted file mode 100644 index 747edb34..00000000 --- a/PROMS/fmtxml/FmtToXml.cs +++ /dev/null @@ -1,1487 +0,0 @@ -using System; -using System.Windows.Forms; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Runtime.Serialization.Formatters.Binary; // read in struct -using System.Xml.Xsl; -using System.Xml; -using System.Xml.Serialization; -using System.ComponentModel; - -#region Structs -// top of the page style list. -[Serializable] -public struct PageStyles -{ - public string Name; - public PageStyle [] PgStyles; -} -[Serializable] -public struct PageStyle -{ - public string Name; - public short Index; - public PSItem [] Items; -} -[Serializable] -public struct PSItem -{ - public float Row; - public float Col; - //public E_PageStructMod Justify; - public string Justify; - public VE_Font Style; - public string Token; -} -//// top of the doc style list. -[Serializable] -public struct DocStyles -{ - public string Name; - public DocStyle [] DcStyles; -} -[Serializable] -public struct DocStyle -{ - //for VCSummer by jcb - public float CenterLineX; - public float CenterLineYTop; - public float CenterLineYBottom; - public bool LandscapePageList; - public bool ShowSectionTitles; - //end for VCSummer by jcb - public string Name; - public short Index; - public short pagestyle; // Index into page style array - public VE_Font dstyle; // 'Printer driver styles' for the entire document - public float TopMargin; // First 'document text' row on printed page/ renamed to TopMargin - public float FooterLen; // Number of lines required for footer - public float LeftMargin; // Size of left margin - public float PageLength; - public float PageWidth; - public short numberingsequence; // 0 - no page number - // 1 - included with steps - // 2 - within sections ie. document styles - // 3 - within each accessory document - public short IndexOtherThanFirstPage; // reference document style for remaining pages (not first), if - // one exists. - public bool IsStepSection; // using oldtonew, determine whether is step - // section or word doc section (new to 32-bit) - public bool UseCheckOffs; // This was originally in fmt. Load fmt to get - public bool UseColSByLevel; // Didn't want a OldToNew Test in new proms, so set this if doc is an E2. - public int oldtonew; // Bits for converting from old to new - // document style - public bool CancelSectTitle; // Was format flags CancelSecTitlesOnS1 & CancelSecTitlesOnS2 - public bool SpecialStepsFoldout; // Was format flag SpecialStepsFoldout - but put on E2 (was in 16bit code) - public bool UndSpecialStepsFoldout; // Was format flag UndSpecialStepsFoldout - but put here on E2 only. - public bool ExtraLineHeader; // added for Callaway foldout Notes (needed line bewteen 'NOTE' and text) - public bool AlignHLSTabWithSect; // added for FNP (was in WST) - public bool ComponentList; // Added for FNP component lists - public short ContTopHLS; // Flag for including High Level step - // as part of top continue message. - public float CTMargin; // Margin for top message - public float CBMargin; // Margin for bottom message - public float CBMarginR; // Margin for bottom message RNO column - Added for BGE - public short CBLoc; // 0 - place continue string at end of text - // 1 - between end of text & bottom of page - // 2 - place at bottom of page - public bool CBNoOverrideSpace; // Added for farley pagination of bottomcontinue message - public VE_Font ContStyle; // Style of continue messages - public short EndFlag; // Does end statement exist for this type - public float EndMargin; // Added for BGE - need to position the end message (differs for single vs dual column) - public VE_Font EndStyle; // Style of end message at end of page - public string ContTop; // Message at top of page - public string ContBottom; // Message at bottom of page - public string EndString; // String for end of document - public string FinalMsg; // Message for the final page of th text - public VE_DocStyle DocStructStyle; // Describe How / When structure is used -} -#endregion -#region ENums -[Flags] -public enum E_PageStructMod : uint -{ - PSCenter = 0, // Page style, center field - PSLeft = 1, // Page style, left justify - PSRight = 2, // Page style, right justify - // *** PS modifiers: *** - PSBottom = 4, // Page style, always use bottom half line - PSTop = 8, // Page style, always use top half line - PSTrue = 16, // page style, don't adjust per CPI* (not needed after 4.0) - PSNotFirst = 32, // page style, don't put this token on the first page of section - PSOnlyFirst = 64, // page style, only put this token on the first page of section - PSRelRow = 128, // place in RelPageList - PSNoHalfLine= 256, // DontDoHalflines for his paglist row item - PSNotLast = 0x200, // 512 - use this token on all but the last page of this section - PSRtfOnly = 0x400, // Only use this token when the driver is rtf - PSRtfNot = 0x800, // Do NOT use token when driver is rtf - PSGDIOnly = 0X1000, // Only use this token when the driver is GDI - PSGDINot = 0x2000, // Do NOT use token when driver is GDI - PSAdjBngRow = 0x4000 // If the pagelist item exceeds the row it's printed on, - // then adjust the starting row for the procedure body -}; -// Possible settings for DocStructStyle (DSS_) -// These styles describe How and When the defined Doc Style is used -[Flags] public enum E_DocStructStyle:uint -{ - UseOnAllPages = 0, // Default - UseOnFirstPage = 1, // Use only on the first page - UseOnAllButFirstPage = 2, // Use on all but the first page - UseOnLastPage = 4, // NO LOGIC exists for this selection. Use only on the last page - UseSectionFoldout = 8, // Attach section foldouts (only active if using SectionLevelFoldouts_ON - DontCountFoldoutPgs = 16, // Used with the USESECTIONFOLDOUT flag. Keeps foldout pages from - // being included in the section total page count. - TableOfContents = 32, - DontCountInTabOfCont = 64, - Placekeeper = 128, - Align1StLevSubWHLS = 0x00000100, // guess? - DoubleBoxHLS = 0x00000200, - UseAltCntrline = 0x00000400, - DontNumberInTOC = 0x00000800, // Don't include page number for this section in the Table of Contents - UseSpecialFigFrame = 0x00001000, // for use with stp55 and 55a in bge - HLSUseLetters = 0x00002000, // docstyles with this bit set in the DocStructStyle will - // default to using letters for HLSteps - NoSectionInStepContinue = 0x00004000, // don't include the section number in the step continue - BottomSectionContinue = 0x00008000, // print the continue message if the section continues - AlwaysDotStep = 0x00010000, // put the period after step number in the continue message - XBlankW1stLevSub = 0x00020000, // insert an extra blank line before a 1st level substep - AffectedPages = 0x00040000, - DSS_TreatAsTrueSectNum = 0x00080000, // in conjunction with tietabtolevel, takes section number - // from the last space and appends a period - SampleWatermark = 0x00100000, // Will force "SAMPLE" to be printed across the page - // on all pages in this section - DSS_PageBreakHLS = 0x00200000, // Page Breaks on all high level steps - DSS_NoChkIfContTypeHigh = 0x00400000, // Will suppress the checkoff if type is HIGH and the - // step is continued on the next page - DSS_WidthOvrdStdHLS = 0x00800000, // Width Override for Standard HLStep in this section - DSS_AddDotZeroStdHLS = 0x01000000, // Append .0 to the Standard HLStep for this section - DSS_SectionCompress = 0x02000000, // Compress all the steps of this section (i.e. use 7 LPI) - DSS_PrintSectOnFirst = 0x04000000, // Prints section title/number only on the first - // page of an attachment section, assuming numberingsequence is not 1 - DSS_UnNumLikeRoman = 0x08000000, // the substeps underneath unnumbered HLSteps will have same tabs as romans - DSS_DontChangeRomanLevel = 0x10000000, // Dont alter the the substep level for roman-numeral-tabbed hlsteps - DSS_SkipTwoStepLevels = 0x20000000, // Skip two step levels for this doc style - DSS_SkipOneStepLevel = 0x40000000, // Skip one step level for this doc style - DSS_SimpleTopSectionContinue = 0x80000000, // Use the Top continue message as the section continue */ -}; -public enum E_DocStyleUse:uint -{ - UseOnAllPages=0,UseOnFirstPage=1,UseOnAllButFirstPage=2,UseOnLastPage=4 -}; -[Flags] -public enum E_DocStyle:uint -{ - None=0,UseSectionFoldout=8,DontCountFoldoutPgs=16,TableOfContents=32, - DontCountInTabOfCont=64,Placekeeper=128,Align1StLevSubWHLS=0x00000100, - DoubleBoxHLS=0x00000200,UseAltCntrline=0x00000400,DontNumberInTOC=0x00000800, - UseSpecialFigFrame=0x00001000,HLSUseLetters=0x00002000,NoSectionInStepContinue=0x00004000, - BottomSectionContinue=0x00008000,AlwaysDotStep=0x00010000,XBlankW1stLevSub=0x00020000, - AffectedPages=0x00040000,DSS_TreatAsTrueSectNum=0x00080000,SampleWatermark=0x00100000, - DSS_PageBreakHLS=0x00200000,DSS_NoChkIfContTypeHigh=0x00400000,DSS_WidthOvrdStdHLS=0x00800000, - DSS_AddDotZeroStdHLS=0x01000000,DSS_SectionCompress=0x02000000,DSS_PrintSectOnFirst=0x04000000, - DSS_UnNumLikeRoman=0x08000000,DSS_DontChangeRomanLevel=0x10000000, - DSS_SkipTwoStepLevels=0x20000000,DSS_SkipOneStepLevel=0x40000000,DSS_SimpleTopSectionContinue=0x80000000 -}; -//[Flags] -//public enum E_Style:uint -//{ -// ELITE=0,PICA=1,SANSERIF=2,EXPANDED=4,PICA12=5,COMPRESSEDHVLPT18=8,HVLPT25=9,SPECIALCHARS=10,PT14=11,SANSERIF14=12,SANSERIF17=13, -// HVLPT12=14,NARRATOR=15,MEDUPUNIVERS=16,LGUPMED16=17,PROPT10=18,LG1275HP4SI=19, -// HVLPT10=20,HVLPT8=21,HVLPT14=22,SANSERIF25=23,EYECHART=24,TIMES11=25,SANSCOND=26, -// UNDERLINE=64,BOLD=128,LANDSCAPE=256,ITALICS=512,BOXED=1024,BOXELEMENT=0x00000800, -// TBCENTERED=4096,RTCHECKOFF=8192,LTCHECKOFF=16384,BIGSCRIPT=32768,HLTEXTHL=65536, -// RTCHECKOFFWITHASTERISK=131072,DB_UNDERLINE=262144,COLDOTS=524288, -// MMBOLD=1048576,RIGHTJUSTIFY=2097152,SUBSCRIPT=4194304,SUPERSCRIPT=8388608, -// PAGELISTITEM=16777216,PRINTONTOPOFLINE=33554432,HORZCENTER=67108864, -// CIRCLESTRING2=0x08000000,ALIGNWITHUP1=0x10000000,ALIGNWSECNUM=0x20000000, -// MATCHCOLUMNMODE=0x40000000,KEEPRNOSUBSTYLE=0x80000000 -//}; -public enum E_FontName:uint -{ - Elite=0,Pica=1,LnPrn=2,Condense=3,SanSerif=4,Pica12=5,Proportional=6, - Propt12=7,HvlPt18=8,HvlPt25=9,SpecialChars=10,Pt14=11,SanSerif14=12,SanSerif17=13, - HvlPt12=14,Narrator=15,MedUpUnivers=16,LgUpMed16=17,Propt10=18,Lg1275Hp4Si=19, - HvlPt10=20,HvlPt8=21,HvlPt14=22,SanSerif25=23,EyeChart=24,Times11=25,SansCond=26 - }; -//[Flags] -//public enum E_FontStyle:uint -//{ -// NONE=0,UNDERLINE=64,BOLD=128,LANDSCAPE=256,ITALICS=512,BOXED=1024,BOXELEMENT=0x00000800, -// TBCENTERED=4096,RTCHECKOFF=8192,LTCHECKOFF=16384,BIGSCRIPT=32768,HLTEXTHL=65536, -// RTCHECKOFFWITHASTERISK=131072,DB_UNDERLINE=262144,COLDOTS=524288, -// MMBOLD=1048576,RIGHTJUSTIFY=2097152,SUBSCRIPT=4194304,SUPERSCRIPT=8388608, -// PAGELISTITEM=16777216,PRINTONTOPOFLINE=33554432,HORZCENTER=67108864, -// CIRCLESTRING2=0x08000000,ALIGNWITHUP1=0x10000000,ALIGNWSECNUM=0x20000000, -// MATCHCOLUMNMODE=0x40000000,KEEPRNOSUBSTYLE=0x80000000 -//}; -[Flags] public enum E_FontStyle:uint -{ - None=0,Underline=64,Bold=128,Italics=512,BigScript=32768, - DbUnderline=262144,MmBold=1048576,Subscript=4194304,Superscript=8388608 -}; -public enum E_Justify : uint -{ - None=0, Center=1, Left=2, Right=3 -}; -public enum E_TabCheckOff : uint -{ - None=0, Left=1, Right=2 -}; -[Flags] public enum E_Style:uint -{ - None=0,Landscape=256,Boxed=1024,BoxElement=0x00000800,TbCentered=4096,RtCheckoff=8192, - LtCheckOff=16384,HlTextHl=65536,RtCheckoffWithAsterisk=131072,ColDots=524288, - RightJustify=2097152,PageListItem=16777216,PrintOnTopOfLine=33554432, - HorzCenter=67108864,CircleString2=0x08000000,AlighWithUp1=0x10000000, - AlignWSecNum=0x20000000,MatchColumnMode=0x40000000,KeepRNOSubStyle=0x80000000 -}; - -public enum E_OldToNewSteps : uint -{ - S0 = 1, S1 = 2, S2 = 4, E0 = 1048576, E1 = 2097152, E2 = 4194304, X0 = 33554432, X1 = 67108864, X2 = 134217728 -}; -#endregion -#region TypeConverters -[Serializable,TypeConverter(typeof(VE_DocStyleConverter))] -public class VE_DocStyle -{ - uint i; - public VE_DocStyle(string s) - { - - } - public VE_DocStyle(uint i) - { - this.i=i; - } - public VE_DocStyle() - { - this.i=0; - } - public E_DocStyleUse DocStyleUse - { - get{return (E_DocStyleUse)(i & 0x7);} - set{i = ((uint)value) | (i & 0xFFFFFFF8);} - } - public string DocStyle - { - get{return ((E_DocStyle)(i & 0xFFFFFFF8)).ToString();} - set{i = ((uint)Enum.Parse(typeof (E_DocStyle),value)) | (i & 0x7);} - } -} -internal class VE_DocStyleConverter:ExpandableObjectConverter -{ - public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) - { - if(sourceType == typeof(string)) - { - return false; - } - return base.CanConvertFrom(context,sourceType); - } - public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) - { - return base.ConvertFrom (context, culture, value); - } - public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) - { - if(destinationType==typeof(string)) - { - VE_DocStyle v = (VE_DocStyle)value; - return string.Format((v.DocStyle=="None"?"{0}":"{0}, {1}"),v.DocStyleUse,v.DocStyle); - } - return base.ConvertTo (context, culture, value, destinationType); - } -} - -[Serializable,TypeConverter(typeof(VE_FontConverter))] -public class VE_Font -{ - uint i; - private bool _PartialInheritance = false; - -//public bool PartialInheritance -//{ -// get { return _PartialInheritance; } -// set { _PartialInheritance = value; } -//} - public bool CanInherit() - { - return !_PartialInheritance; - } - public VE_Font(string s) - { - - } - public VE_Font(uint i) - { - this.i=i; - } - public VE_Font() - { - this.i=0; - } - public VE_Font(XmlNode fxml) - { - // The "Family", "Size", and "Style" are attributes to the "Font" node - // We were trying to get this information by fxml.SelectSingleNode("Family") - // but this would always return a NULL because this items are Attributes not Nodes. - // thus the FontFamily, FontSize, and FontStyle was never set - - XmlAttributeCollection ac = fxml.Attributes; // get the attributes from the passed in Font node - XmlNode tmp = ac.GetNamedItem("Family"); // get the Family attribute from the Font node - if (tmp!=null)FontFamily = tmp.InnerText; - tmp = ac.GetNamedItem("Size"); // get the Size attribute from the Font node - if (tmp != null) FontSize = tmp.InnerText; - tmp = ac.GetNamedItem("Style"); // get the Style attribute from the Font node - if (tmp != null) FontStyle = tmp.InnerText; - } - private string _FontFamily = null; - private bool _FontFamilySet = false; - - public string FontFamily - { - get - { - if ((!_FontFamilySet)&&(_FontFamily == null)) _FontFamily = CvtFont.CvtFont.ConvertToFamily(((E_FontName)(i & 0x3f)).ToString()); - _FontFamilySet = true; - return _FontFamily; - } - set { CheckPartial(_FontFamily,value); _FontFamily = value; } - } - private void CheckPartial(string member, string value) - { - if (member != null && value == null) - _PartialInheritance = true; - } - private string _FontSize = null; - private bool _FontSizeSet = false; - public string FontSize - { - get - { - if ((!_FontSizeSet)&&(_FontSize == null)) _FontSize = CvtFont.CvtFont.ConvertToSize(((E_FontName)(i & 0x3f)).ToString()).ToString(); - _FontSizeSet = true; - return _FontSize; - } - set { CheckPartial(_FontSize, value); _FontSize = value; } - //set { i = ((uint)value) | (i & 0xFFFFFFC0); } - } - //public E_FontName FontName - //{ - // get{return (E_FontName)(i & 0x3F);} - // set{i = ((uint)value) | (i & 0xFFFFFFC0);} - //} - private string _FontStyle = null; - private bool _FontStyleSet = false; - public string FontStyle - { - get{ - if ((!_FontStyleSet) && (_FontStyle == null)) _FontStyle = ((E_FontStyle)(i & 0xD482C0)).ToString(); - //if ((!_FontStyleSet) && (_FontStyle == null)) _FontStyle = ((E_FontStyle)(i & 0xFFFFFFC0)).ToString(); - _FontStyleSet = true; - return _FontStyle; - } - // return (E_FontStyle)(i & 0xFFFFFFC0);} - set { CheckPartial(_FontStyle, value); _FontStyle = value; } - //set{i = ((uint)value) | (i & 0x3F);} - } - private string _CPI; - private bool _CPISet = false; - public string CPI - { - get - { - if (!_CPISet) - { - _CPI = CvtFont.CvtFont.GetCPIs(i).ToString(); - } - _CPISet = true; - return _CPI; - } - set - { - CheckPartial(_CPI, value); - _CPI = value; - if (value != null) _CPISet = true; - } - } - private string _FontCheckOff = null; - private bool _FontCheckOffSet = false; - public string FontCheckOff - { - get - { - // 16-bit code had check offs in font style integer flag. 32-bit is converting this to its own - // xml attribute not part of the font. This code is used for the format -> xml conversion - // the 32-bit code should NOT have this as part of the font. RTCHECKOFF in 16-bit code = 8192 - // and LTCHECKOFF in 16-bit code = 16384 - if ((!_FontCheckOffSet) && (_FontCheckOff == null)) - { - if ((i & 8192)>0) _FontCheckOff = E_TabCheckOff.Right.ToString(); - else if ((i & 16384) > 0) _FontCheckOff = E_TabCheckOff.Left.ToString(); - else _FontCheckOff = E_TabCheckOff.None.ToString(); - } - _FontCheckOffSet = true; - return _FontCheckOff; - } - set { CheckPartial(_FontCheckOff, value); _FontCheckOff = value; } - } - private string _FontJustify = null; - private bool _FontJustifySet = false; - public string FontJustify - { - get - { - // 16-bit code had justify in font style integer flag. 32-bit is converting this to its own - // xml attribute not part of the font. This code is used for the format -> xml conversion - // the 32-bit code should NOT have this as part of the font. TBCENTERED in 16-bit code = 4096 - // and RIGHTJUSTIFY in 16-bit code = 2097152. Note 16-bit did not have a left justify. - if ((!_FontJustifySet) && (_FontJustify == null)) - { - if ((i & 4096) > 0) _FontJustify = E_Justify.Center.ToString(); - else if ((i & 2097152) > 0) _FontJustify = E_Justify.Right.ToString(); - else _FontJustify = E_Justify.None.ToString(); - } - _FontJustifySet = true; - return _FontJustify; - } - set { CheckPartial(_FontJustify, value); _FontJustify = value; } - } - public bool IsBoxed - { - get - { - return ((i & (int)E_Style.Boxed) > 0); - } - } - //CIRCLESTRING2=0x08000000 - public bool HasCircleString2() - { - if ((i & 0x08000000)>0) return true; - else return false; - } - public VE_Font Copy() - { - VE_Font c = new VE_Font(i); - return c; - } -} -internal class VE_FontConverter:ExpandableObjectConverter -{ - public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) - { - if(sourceType == typeof(string)) - { - return false; - } - return base.CanConvertFrom(context,sourceType); - } - public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) - { - return base.ConvertFrom (context, culture, value); - } - public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) - { - if(destinationType==typeof(string)) - { - VE_Font v = (VE_Font)value; - return string.Format((v.FontStyle == "None" ? "Family={0} Size={1}" : "{0}, {1}, {2}"), v.FontFamily, v.FontSize, v.FontStyle); - } - return base.ConvertTo (context, culture, value, destinationType); - } -} -#endregion - - -/////////////////////////// -namespace fmtxml -{ - public partial class FmtToXml - { - private BinaryReader brFmt; - private string fmtName; - private VE_Font DefBaseFont; - private VE_Font DefPlantFont; - private string MyPath; - public FmtToXml(string nm, string path) - { - MyPath = path; - fmtName = nm; - //if (!fmtName.ToUpper().StartsWith("FNP") && fmtName.ToUpper() != "BASE") return; - try - { - // get the default base & plant files to use when figuring out inheritance. - if (GetPlantBaseDefaultFonts()) - { - - // will have entire name, such as aep.x01 - use number to differentiate it. - int indx = nm.IndexOf('.'); - if (indx > 0) - { - LoadPageFile(nm); - string tmpDocName = fmtName; - tmpDocName = tmpDocName.Remove(indx + 1, 1); - tmpDocName = tmpDocName.Insert(indx + 1, "y"); - LoadDocFile(tmpDocName); - } - else - { - LoadPageFile(nm + ".pag"); - LoadDocFile(nm + ".doc"); - } - } - } - catch (Exception ex) - { - MessageBox.Show("Format name = " + nm, ex.Message); - } - } - private float RowToPoints(int i) - { - return (i * 12); // row_in_points = input * 72/6, row = input * 12 - } - private float ColToPoints(float f, uint style) - { - return 72 * (f / CvtFont.CvtFont.GetCPISBadPICA12(style)); - } - private string GetAsciiStringUntilNull(BinaryReader br) - { - StringBuilder inpstr = new StringBuilder(); - byte input = 0; - int cnt = 0; - bool stillread = true; - do - { - try - { - input = br.ReadByte(); - if (input==0) stillread=false; - inpstr.Append(Convert.ToChar(input)); - } - catch (System.IO.EndOfStreamException) - { - stillread=false; - } - cnt++; - }while (stillread); - - string retstr = inpstr.ToString(); - if (retstr.Substring(retstr.Length-1,1)=="\0") return retstr.Substring(0,retstr.Length-1); - return retstr; - } - private string GetAsciiString(BinaryReader br, int len) - { - StringBuilder inpstr = new StringBuilder(); - byte input = 0; - int cnt = 0; - do - { - try - { - input = br.ReadByte(); - inpstr.Append(Convert.ToChar(input)); - } - catch (System.IO.EndOfStreamException) - { - input = 0; - while (cnt < len) - { - inpstr.Append(Convert.ToChar(input)); - cnt++; - } - } - cnt++; - }while (cnt < len); - - string retstr = inpstr.ToString(); - if (retstr.Substring(retstr.Length-1,1)=="\0") return retstr.Substring(0,retstr.Length-1); - return retstr; - } - private VE_Font LoadVE_Font() - { - VE_Font retval=new VE_Font(brFmt.ReadUInt32()); - return retval; - } - private VE_DocStyle LoadVE_DocStyle() - { - VE_DocStyle retval=new VE_DocStyle(brFmt.ReadUInt32()); - return retval; - } - private bool _PicaIgnoreFiveSixths; - public bool PicaIgnoreFiveSixths - { - get { return _PicaIgnoreFiveSixths; } - set { _PicaIgnoreFiveSixths = value; } - } - public void LoadPageFile(string fname) - { - string lfmtname = fmtName; - int indx = fmtName.IndexOf('.'); - if (indx > 0) - lfmtname = fmtName.Substring(0, fmtName.Length - 4) + "_" + fmtName.Substring(fmtName.Length - 2, 2); - GetFormatFlags(lfmtname); - ArrayList stringoffsets = new ArrayList(); - short strings = 0; - PageStyles pgstyles = new PageStyles(); - - // read in title. - string fnm = MyPath + @"\" + fname; - brFmt = new BinaryReader(File.Open(fnm,System.IO.FileMode.Open,System.IO.FileAccess.ReadWrite,FileShare.ReadWrite)); - pgstyles.Name = GetAsciiString(brFmt); - - // read in struct name/def name/page file name - //for (int i=0;i<3;i++) - //{ - // len = brFmt.ReadInt16(); - // str = GetAsciiString(brFmt,len); - //} - string structName = GetAsciiString(brFmt); - string includeName = GetAsciiString(brFmt); - string formatName = GetAsciiString(brFmt); - // Get the number of page styles, and create the array for them. - short numpgstyles = brFmt.ReadInt16(); - - // If any page styles need added for a plant, the new count will be here: - short newnumpgstyles = GetPlantSpecificStyleCount(fname, numpgstyles); - bool didNewPageStyle = newnumpgstyles != numpgstyles; - - PageStyle[] pgs = new PageStyle[newnumpgstyles]; - pgstyles.PgStyles = pgs; - - short offptr = brFmt.ReadInt16(); - short vnum = brFmt.ReadInt16(); - if (vnum!=0) - { - strings = vnum; - for(int i=0;i' with '}' - pi.Token = pi.Token.Replace('<', '{'); - pi.Token = pi.Token.Replace('>', '}'); - pi.Token = pi.Token.Replace("REVDATE", "REV2"); - cnt++; - if (!isfirst) - { - Fpsitms = new PSItem[cnt]; - psitms.CopyTo(Fpsitms, 0); - Fpsitms[cnt - 1] = pi; - psitms = Fpsitms; - - } - else - psitms[0] = pi; - isfirst = false; - } - else - { - if (!didLineDraw) - { - didLineDraw = true; - pi.Token = "{BOX9}"; - cnt++; - if (!isfirst) - { - Fpsitms = new PSItem[cnt]; - psitms.CopyTo(Fpsitms, 0); - Fpsitms[cnt - 1] = pi; - psitms = Fpsitms; - - } - else - psitms[0] = pi; - isfirst = false; - } - } - brFmt.BaseStream.Position = fseek+vnum; - } - pg.Items = psitms; - pgs[i] = pg; - } - if (didNewPageStyle) pgs[numpgstyles] = AddPageStyles(fname); - brFmt.Close(); - // Don't do the font inheritance for the pagelist - // you can have multiple docsytles point/use the same pagelist, - // with each docstyle having different default font information. - // The DoPSFontInherit() was calucating the font inheritance based on the font - // set to the overall format, but the PROMS print module checks the docstyle default font - // In NSP's case, the overall format uses an Arial font, the pagelist item uses - // an Arial font, but the docstyle default font is Prestige Elite Tall. - // the results from DoPSFontInherit() kept only the font size and style for the pagelist item. - // the print module then ended up using Prestige Elite Tall instead of Arial for that pagelist item - // - jsj 02/11/13 - //DoPSFontInherit(ref pgstyles); - AddPlantSpecific(fname, ref pgstyles); - - // First serialize files based on the above - then use xsl to transform - // into prefered xml. - if (!Directory.Exists("fmt_xml")) Directory.CreateDirectory("fmt_xml"); - if (!Directory.Exists("tmp_fmt_xml")) Directory.CreateDirectory("tmp_fmt_xml"); - XmlSerializer serializer = new XmlSerializer(typeof(PageStyles)); - // for subformats, make the name FMT_00 where FMT is format name & 00 is number - // from original name. This will allow the data load to know it's a sub. - string destfile = "tmp_fmt_xml\\" + lfmtname + "p.xml"; - if (File.Exists(destfile)) File.Delete(destfile); - TextWriter writer = new StreamWriter(destfile); - try - { - serializer.Serialize(writer, pgstyles); - writer.Close(); - XslCompiledTransform xsl = FmtFileToXml.getTransform(Application.StartupPath + "\\TranslatePag.XSL"); - string sResults = "fmt_xml\\" + lfmtname + "p.xml"; - xsl.Transform(destfile, sResults); // Perform Transform - if (lfmtname == "GEN") - File.Copy(sResults, "fmt_xml\\BASEp.xml"); // Create BASE from GEN format - } - catch (Exception e) - { - Console.WriteLine(e.Message); - writer.Close(); - } - } - - private short GetPlantSpecificStyleCount(string fname, short nmstyles) - { - switch (fname.ToUpper()) - { - case "RGESAM1.PAG": - case "RGESAM1.DOC": - return ++nmstyles; - break; - default: - return nmstyles; - break; - } - } - private PageStyle AddPageStyles(string fname) - { - PageStyle pg = new PageStyle(); - switch (fname.ToUpper()) - { - case "RGESAM1.PAG": - /* - * - - - - - - - - - - - - * - * - * - - - - - - - - */ - - pg.Index=3; - pg.Name = "Cover Page"; - - PSItem [] psitms = new PSItem[4]; - PSItem pi = new PSItem(); - pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pi.Row = 12; - pi.Col = -2; - pi.Justify = "PSCenter"; - psitms[0] = pi; - - PSItem pi0 = new PSItem(); - pi0.Token = "{EOPNUM}"; - pi0.Row = 320; - pi0.Col = 262; - pi0.Justify = "PSCenter"; - pi0.Style = new VE_Font(); - pi0.Style.FontFamily = "Arial"; - pi0.Style.FontSize = "18"; - pi0.Style.CPI = "9"; - psitms[1] = pi0; - - PSItem pi1 = new PSItem(); - pi1.Token = "{COVERTITLE1}"; - pi1.Row=350; - pi1.Col=282; - pi1.Justify="PSTop"; - pi1.Style = new VE_Font(); - pi1.Style.FontFamily = "Arial"; - pi1.Style.FontSize = "18"; - pi1.Style.CPI = "9"; - psitms[2] = pi1; - - PSItem pi2 = new PSItem(); - pi2.Token = "{COVERTITLE2}"; - pi2.Row=366; - pi2.Col=282; - pi2.Justify="PSCenter"; - pi2.Style = new VE_Font(); - pi2.Style.FontFamily = "Arial"; - pi2.Style.FontSize = "18"; - pi2.Style.CPI = "9"; - psitms[3] = pi2; - pg.Items = psitms; - return pg; - break; - default: - break; - } - return pg; - } - private void GetFormatFlags(string lfmtname) - { - string fmtFile = "tmp_fmt_xml\\" + lfmtname + "f.xml"; - string fmtParent = null; - if (Regex.IsMatch(lfmtname, "[^_]*_[0-9][0-9]")) - fmtParent = "tmp_fmt_xml\\" + lfmtname.Substring(0, lfmtname.Length - 3) + "f.xml"; - XmlDocument fmtDoc = GetXMLDoc(fmtFile); - string picaIgnoreFiveSixths = GetXML(fmtDoc, "PicaIgnoreFiveSixths"); - if (picaIgnoreFiveSixths != "True" && fmtParent != null) // Could not find it, look in parent - { - fmtDoc = GetXMLDoc(fmtParent); - picaIgnoreFiveSixths = GetXML(fmtDoc, "PicaIgnoreFiveSixths"); - } - PicaIgnoreFiveSixths = (picaIgnoreFiveSixths == "True"); - } - private string GetXML(XmlDocument fDoc, string lookFor) - { - if (fDoc == null) return null; - XmlNodeList xl = fDoc.DocumentElement.SelectNodes("//*/@" + lookFor); // Look for Attribute - if (xl.Count == 0) xl = fDoc.DocumentElement.SelectNodes("//" + lookFor); // Look for Node - string found = xl.Count == 1 ? xl[0].InnerText : null; - if (found != null) - Console.WriteLine("Found '" + lookFor + "'"); - return found; - } - private XmlDocument GetXMLDoc(string fmtFile) - { - XmlDocument fDoc=null; - if (File.Exists(fmtFile)) - { - fDoc = new XmlDocument(); - fDoc.Load(fmtFile); - } - return fDoc; - } - private string RemoveInitialLineDraw(string tkn, ref int coladj) - { - // if first two characters are line draw and space, remove them and adjust column. - if (tkn[0] == '\xB3' && tkn[1] == ' ') - { - coladj += 2; - tkn = tkn.Substring(2, tkn.Length - 2); - //trim any end line char too. - tkn = tkn.Replace('\xB3',' '); - tkn = tkn.TrimEnd(" ".ToCharArray()); - } - return tkn; - } - - private string GetAsciiString(BinaryReader brFmt) - { - short len = brFmt.ReadInt16(); - return GetAsciiString(brFmt, len); - } - public void LoadDocFile(string fname) - { - ArrayList stringoffsets = new ArrayList(); - short strings = 0; - DocStyles dcstyles = new DocStyles(); - - // read in title. - string fnm = MyPath + @"\" + fname; - // construct format file name from this path.\ - string fmtFileName = fname; - if (fname.Contains(".Y")) - { - // subformat - replace .Y with .X - fmtFileName = MyPath + @"\" + fname.Replace(".Y", ".X"); - } - else - { - fmtFileName = MyPath + @"\" + fname.Substring(0, fname.IndexOf(".")) + ".FMT"; - } - //if (fname == "CPL.Y01") Console.WriteLine(fname); - brFmt = new BinaryReader(File.Open(fnm,System.IO.FileMode.Open,System.IO.FileAccess.ReadWrite,FileShare.ReadWrite)); - dcstyles.Name = GetAsciiString(brFmt); - bool didNewDocStyle = false; - short newnumdcstyles = 0; - - // read in struct name/def name/doc file name - string structName = GetAsciiString(brFmt); - string includeName = GetAsciiString(brFmt); - string formatName = GetAsciiString(brFmt); - DocStyle[] dcs = null; - if (structName.ToUpper() != "DOCSTYL.STR") - { - Console.WriteLine("Other Structure {0}", structName); - if (structName == "BKPGDOC.STR") - { - for(int i=0;i<4;i++) brFmt.ReadInt16(); // Skip 4 integers - dcs = new DocStyle[4]; - string baseName = GetAsciiString(brFmt); - dcs[0].Index = 0; - dcs[1].Index = 1; - dcs[2].Index = 2; - dcs[3].Index = 3; - dcs[0].Name = baseName + "- portrait @ 6 lpi"; - dcs[1].Name = baseName + "- portrait @ 4 lpi"; - dcs[2].Name = baseName + "- landscape @ 6 lpi"; - dcs[3].Name = baseName + "- landscape @ 4 lpi"; - brFmt.ReadInt16(); - dcs[0].dstyle = LoadVE_Font(); - dcs[1].dstyle = dcs[0].dstyle.Copy(); - dcs[2].dstyle = dcs[0].dstyle.Copy(); - dcs[3].dstyle = dcs[0].dstyle.Copy(); - dcs[0].TopMargin = dcs[1].TopMargin = dcs[2].TopMargin = dcs[3].TopMargin = brFmt.ReadInt16(); - dcs[0].LeftMargin = dcs[1].LeftMargin = dcs[2].LeftMargin = dcs[3].LeftMargin = brFmt.ReadInt16(); - dcs[0].PageLength = brFmt.ReadInt16(); - dcs[1].PageLength = brFmt.ReadInt16(); - dcs[2].PageLength = brFmt.ReadInt16(); - dcs[3].PageLength = brFmt.ReadInt16(); - } - } - else - { - - // Get the number of page styles, and create the array for them. - short numdcstyles = brFmt.ReadInt16(); - - // If any doc styles need added for a plant, the new count will be here: - newnumdcstyles = GetPlantSpecificStyleCount(fname, numdcstyles); - didNewDocStyle = newnumdcstyles != numdcstyles; - - dcs = new DocStyle[newnumdcstyles]; - - short offptr = brFmt.ReadInt16(); // not sure what these bytes contain? - short vnum = brFmt.ReadInt16(); - if (vnum != 0) - { - strings = vnum; - for (int i = 0; i < strings; i++) - { - vnum = brFmt.ReadInt16(); - stringoffsets.Add(vnum); - } - } - - for (short i = 0; i < numdcstyles; i++) - { - DocStyle dc = new DocStyle(); - dc.Index = i; - dc.Name = GetAsciiString(brFmt); - vnum = brFmt.ReadInt16(); // not sure what this is! - dc.pagestyle = brFmt.ReadInt16(); - uint tmpstyle = brFmt.ReadUInt32(); - dc.dstyle = new VE_Font(tmpstyle); - dc.TopMargin = RowToPoints(brFmt.ReadInt16()); - dc.FooterLen = RowToPoints(brFmt.ReadInt16()); - dc.LeftMargin = ColToPoints(brFmt.ReadInt16(), tmpstyle); - dc.PageLength = RowToPoints(brFmt.ReadInt16()); - dc.PageWidth = ColToPoints(brFmt.ReadInt16(), tmpstyle); - dc.numberingsequence = brFmt.ReadInt16(); - dc.oldtonew = brFmt.ReadInt32(); - SetupDocStyleFromFmtFlags(ref dc, fmtFileName); - dc.IsStepSection = ConvertToSectType(dc.oldtonew); - dc.ContTopHLS = brFmt.ReadInt16(); - dc.CTMargin = brFmt.ReadInt16(); - dc.CBMargin = brFmt.ReadInt16(); - dc.CBLoc = brFmt.ReadInt16(); - tmpstyle = brFmt.ReadUInt32(); - dc.ContStyle = new VE_Font(tmpstyle); - dc.CTMargin = ColToPoints(dc.CTMargin, tmpstyle); - dc.CBMargin = ColToPoints(dc.CBMargin, tmpstyle); - dc.CBMarginR = 0; - dc.EndFlag = brFmt.ReadInt16(); - dc.EndStyle = LoadVE_Font(); - dc.UseCheckOffs = UseCheckOffsIn(fname.Substring(0, fname.Length - 4), dc.oldtonew); - dc.UseColSByLevel = dc.oldtonew == 5; - - // use the string offsets to read in the strings. - int[] offst = new int[strings]; - for (int j = 0; j < strings; j++) - { - offst[j] = brFmt.ReadInt32(); - } - dc.DocStructStyle = LoadVE_DocStyle(); - if (offst[0] != 0) dc.ContTop = DoReplaceTokens(GetAsciiStringUntilNull(brFmt)); - //else dc.ContTop = null; - // in 16-bit a null setting would prevent the Top Continue Message from printing - // we need to set this to a blank string, else it will be inherited from the BASE format(BASEall.xml) - else dc.ContTop = ""; - if (offst[1] != 0) dc.ContBottom = DoReplaceTokens(GetAsciiStringUntilNull(brFmt)); - else dc.ContBottom = null; - if (offst[2] != 0) dc.EndString = DoReplaceTokens(GetAsciiStringUntilNull(brFmt)); - else dc.EndString = null; - if (dc.EndString == "") - { - dc.EndString = null; - dc.EndFlag = 0; - dc.EndMargin = 0; - } - if (offst[3] != 0) dc.FinalMsg = DoReplaceTokens(GetAsciiStringUntilNull(brFmt)); - else dc.FinalMsg = null; - if (dc.ContTop == null && dc.ContBottom == null) dc.ContStyle = null; - if (dc.EndString == null) dc.EndStyle = null; - - dcs[i] = dc; - vnum = brFmt.ReadInt16(); - } - } - if (didNewDocStyle) dcs[newnumdcstyles - 1] = AddDocStyles(fname); - dcstyles.DcStyles = dcs; - brFmt.Close(); - - // Inherit fonts. - DoDSFontInherit(ref dcstyles); - - // Do UseOnFirstPage/UseOnAllbutFirstPage index additions. This was added for 32bit support - // of the document style 'StructureStyle Where = "UseOnFirstPage" or "UseOnAllButFirstPage" - DoUseOnPagesAttribute(ref dcstyles); - - // do Plant specific adjustments - AddPlantSpecific(fname, ref dcstyles); - - // First serialize files based on the above - then use xsl to transform - // into prefered xml. - if (!Directory.Exists("fmt_xml")) Directory.CreateDirectory("fmt_xml"); - if (!Directory.Exists("tmp_fmt_xml")) Directory.CreateDirectory("tmp_fmt_xml"); - XmlSerializer serializer = new XmlSerializer(typeof(DocStyles)); - string lfmtname = fmtName; - int indx = fmtName.IndexOf('.'); - // for subformats, make the name FMT_00 where FMT is format name & 00 is number - // from original name. This will allow the data load to know it's a sub. - if (indx > 0) - lfmtname = fmtName.Substring(0, fmtName.Length - 4) + "_" + fmtName.Substring(fmtName.Length - 2, 2); - string destfile = "tmp_fmt_xml\\" + lfmtname + "d.xml"; - if (File.Exists(destfile)) File.Delete(destfile); - TextWriter writer = new StreamWriter(destfile); - try - { - serializer.Serialize(writer, dcstyles); - writer.Close(); - XslCompiledTransform xsl = FmtFileToXml.getTransform(Application.StartupPath + "\\TranslateDoc.XSL"); - string sResults = "fmt_xml\\" + lfmtname + "d.xml"; - xsl.Transform(destfile, sResults); // Perform Transform - xsl = FmtFileToXml.getTransform(Application.StartupPath + "\\removeFmtUseCO.XSL"); - //xsl.Load(Application.StartupPath + "\\removeempty.XSL"); - string sFormatResults = "fmt_xml\\" + lfmtname + "f.xml"; - string sResults2 = "fmt_xml\\" + lfmtname + "xf.xml"; - xsl.Transform(sFormatResults, sResults2); - File.Delete(sFormatResults); - File.Move(sResults2, sFormatResults); - if (lfmtname == "GEN") - File.Copy(sResults, "fmt_xml\\BASEd.xml"); // Create BASE from GEN format - } - catch (Exception e) - { - Console.WriteLine(e.Message); - writer.Close(); - } - } - - private void DoUseOnPagesAttribute(ref DocStyles docstyles) - { - int indxFirst = -1; - int indxAllButFirst = -1; - for (int i = 0; i < docstyles.DcStyles.Length; i++) - - { - if ((docstyles.DcStyles[i].DocStructStyle.DocStyleUse & E_DocStyleUse.UseOnFirstPage) == E_DocStyleUse.UseOnFirstPage) - indxFirst = docstyles.DcStyles[i].Index; - if ((docstyles.DcStyles[i].DocStructStyle.DocStyleUse & E_DocStyleUse.UseOnAllButFirstPage) == E_DocStyleUse.UseOnAllButFirstPage) - indxAllButFirst = docstyles.DcStyles[i].Index; - } - if (indxFirst != -1 && indxAllButFirst != -1) - { - docstyles.DcStyles[indxFirst].IndexOtherThanFirstPage = (short)indxAllButFirst; - } - } - - private DocStyle AddDocStyles(string fname) - { - DocStyle dc = new DocStyle(); - switch (fname.ToUpper()) - { - case "RGESAM1.DOC": - /* - * - - - - */ - dc.Index = 5; - dc.Name = "Cover Page"; - dc.numberingsequence = 0; - dc.IsStepSection = false; - dc.UseCheckOffs = false; - dc.UseColSByLevel = false; - dc.oldtonew = 544; - dc.CancelSectTitle = false; - dc.SpecialStepsFoldout=false; - dc.UndSpecialStepsFoldout=false; - dc.pagestyle = 3; - dc.TopMargin = 54; - dc.FooterLen = 0; - dc.PageLength = 780; - dc.PageWidth = 540; - dc.LeftMargin = 72; - dc.dstyle = new VE_Font(); - dc.dstyle.FontFamily = "Courier New"; - dc.dstyle.FontSize = "12"; - dc.dstyle.CPI = "10"; - dc.DocStructStyle = new VE_DocStyle(); - dc.DocStructStyle.DocStyleUse = E_DocStyleUse.UseOnAllPages; - break; - default: - break; - } - return dc; - } - - private bool UseCheckOffsIn(string p, int p_2) - { - try - { - XmlDocument xdoc = new XmlDocument(); - string path = "fmt_xml\\" + p + "f.xml"; - if (!File.Exists(path)) return false; - xdoc.Load("fmt_xml\\" + p + "f.xml"); - XmlNode useCO = xdoc.SelectSingleNode("FormatData/ProcData/CheckOffData/@UseCheckOffsIn"); - if (useCO == null) return false; - int iDoc = System.Convert.ToInt32(useCO.Value); - if ((p_2 & iDoc)>0) return true; - } - catch (Exception ex) - { - Console.WriteLine("here"); - } - return false; - } - private void SetupDocStyleFromFmtFlags(ref DocStyle dc, string fmtFileName) - { - int oldToNew = dc.oldtonew; - BinaryReader brFmt = new BinaryReader(File.Open(fmtFileName, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite, FileShare.ReadWrite)); - int[] tmpshort3 = new int[3]; - ArrayList stringoffsets = new ArrayList(); - byte tmpbyte; - Int16 tmpshort; - string tmpstr; - try - { - tmpshort = brFmt.ReadInt16(); - tmpstr = fmtxml.FmtFileToXml.GetStringUntilNull(brFmt); - for (int i = 0; i < 3; i++) - { - tmpshort = brFmt.ReadInt16(); - tmpstr = fmtxml.FmtFileToXml.GetStringUntilNull(brFmt); - } - - short vnum = brFmt.ReadInt16(); // number of ints, etc. - long posatints = brFmt.BaseStream.Position; - long tstloc = vnum + posatints; - tmpbyte = brFmt.ReadByte(); // FirstChar - Int16[] xtraflag = new Int16[19]; - for (int i = 0; i < 19; i++) - { - xtraflag[i] = brFmt.ReadInt16(); - } - dc.CancelSectTitle = CheckSectType(oldToNew, xtraflag); - dc.SpecialStepsFoldout = GetSpecialStepsFoldout(oldToNew, xtraflag); - dc.UndSpecialStepsFoldout = GetUndSpecialStepsFoldout(oldToNew, xtraflag); - } - catch (Exception exception) - { - Console.WriteLine("Didn't process docstyle"); - } - } - - private bool GetUndSpecialStepsFoldout(int oldToNew, Int16[] flg) - { - if (((oldToNew & (int)E_OldToNewSteps.E2) != 0) && ((flg[10] & fmtxml.FmtFileToXml.UNDSPECIALSTEPSFOLDOUT) > 0)) return true; - return false; - } - - private bool GetSpecialStepsFoldout(int oldToNew, Int16[] flg) - { - if (((oldToNew & (int)E_OldToNewSteps.E2) != 0) && ((flg[7] & fmtxml.FmtFileToXml.SPECIALSTEPSFOLDOUT) > 0)) return true; - return false; - } - private bool CheckSectType(int oldToNew, Int16[] flg) - { - if (((oldToNew & (int)E_OldToNewSteps.S2) != 0) && ((flg[6] & fmtxml.FmtFileToXml.CANCELSECTITLESONS2) > 0)) return true; - if (((oldToNew & (int)E_OldToNewSteps.S1) != 0) && ((flg[7] & fmtxml.FmtFileToXml.CANCELSECTITLESONS1) > 0)) return true; - if (((oldToNew & (int)E_OldToNewSteps.E0) != 0) && ((flg[11] & fmtxml.FmtFileToXml.CANCELSECTITLESONE0) > 0)) return true; - if (((oldToNew & (int)E_OldToNewSteps.E2) != 0) && ((flg[11] & fmtxml.FmtFileToXml.CANCELSECTITLESONE2) > 0)) return true; - return false; - } - - private bool ConvertToSectType(int p) - { - if (((p & (int)E_OldToNewSteps.S0) != 0) || ((p & (int)E_OldToNewSteps.S1) != 0) || ((p & (int)E_OldToNewSteps.S2) != 0) || - ((p & (int)E_OldToNewSteps.E0) != 0) || ((p & (int)E_OldToNewSteps.E1) != 0) || ((p & (int)E_OldToNewSteps.E2) != 0) || - ((p & (int)E_OldToNewSteps.X0) != 0) || ((p & (int)E_OldToNewSteps.X1) != 0) || ((p & (int)E_OldToNewSteps.X2) != 0)) - return true; - return false; - } - private string DoReplaceTokens(string p) - { - if (p == null || p == "") return p; - string wkstr = p; - // use regular expressions to do the following... - - // first see if entire string is line draw type chars, if so, just don't include it. - if (AllDrawChars(wkstr)) return null; - try - { - // replace newline with {par} - wkstr = wkstr.Replace("\n", "{par}"); - - // special change bar token (various cpl formats) - wkstr = wkstr.Replace("\x08\x08\x08\x08\x08\x05", "{CHG_BAR with Backspace Token}"); - - // special change bar token (various gpc formats) - wkstr = wkstr.Replace("\x05", "{CHG_BAR Token}"); - - // backspage - just flag for positioning if needed. - wkstr = wkstr.Replace("\x08", "{Backspace}"); - - //sub on/off - wkstr = wkstr.Replace("\x19\x19", "\x19"); // replace double sub on with single - wkstr = wkstr.Replace("~~", "\x19"); - wkstr = Regex.Replace(wkstr, @"\x19([^\x19\x18 ]*?)(?:[\x19\x18]|(?= )|\Z)(.*?)", @"\dn2$1\up0$2"); - - //super on/off - wkstr = Regex.Replace(wkstr, @"\x18([^\x19\x18 ]*?)(?:[\x19\x18]|(?= )|\Z)(.*?)", @"\up2$1\up0$2"); - - //bold on/off - wkstr = Regex.Replace(wkstr, @"\x01([^\x01 ]*?)(?:[\x01]|(?= )|\Z)(.*?)", @"\b$1\b0$2"); - wkstr = Regex.Replace(wkstr, @"\x13([^\x13\xd6 ]*?)(?:[\x13\xd6]|(?= )|\Z)(.*?)", @"\b$1\b0$2"); - - //underline on/off - //wkstr = Regex.Replace(wkstr, @"\x16([^\x16 ]*?)(?:[\x16]|(?= )|\Z)(.*?)", @"\ul$1\ul0$2"); - wkstr = Regex.Replace(wkstr, @"\x16([^\x16 ]*?)(?:[\x16]|(?= )|\Z)(.*?)", @"\ul $1\ulnone $2"); - - //narrator - //wkstr = Regex.Replace(wkstr, @"\x86([^\x86 ]*?)(?:[\x86]|(?= )|\Z)(.*?)", @"\f{Narrator}$1\f0$2"); - wkstr = Regex.Replace(wkstr, @"\x86([^\x86 ]*?)(?:[\x86]|(?= )|\Z)(.*?)", @"$1$2"); - - // remove hanging indent, vertical tab - wkstr = Regex.Replace(wkstr, @"\x02", @"\NonSupported Hanging Indent (Hex x02)"); - //wkstr = Regex.Replace(wkstr, @"\x0B", @"\NonSupported Vertical Tab (Hex x0b"); - wkstr = Regex.Replace(wkstr, @"\x0B", @""); - - // remove some unknown chars for ano & fpl - these plants are not supported - // as of conversion date. - wkstr = Regex.Replace(wkstr, @"\x95", @"\NonSupported Unknown (Hex x95)"); //ano2vlv - wkstr = Regex.Replace(wkstr, @"\x1bf1", @"\NonSupported Unknown (hex 1b f1)"); //fpl - wkstr = Regex.Replace(wkstr, @"\x1bf0", @"\NonSupported Unknown (hex 1b f0)"); //fpl - wkstr = Regex.Replace(wkstr, @"\x1bM1", @"\NonSupported Unknown (hex 1b M1)"); //fpl - wkstr = Regex.Replace(wkstr, @"\x1bM0", @"\NonSupported Unknown (hex 1b M0)"); //fpl - - // ATA page?? - wkstr = Regex.Replace(wkstr, @"\x1b", @"{NonSupported Hex 1b}"); - - // replace the \xff33 13 with {Section Number} - wkstr = Regex.Replace(wkstr, @"\xFF33 13", @"{Section Number}"); - // replace \xff with \xA0, i.e. hardspace - wkstr = Regex.Replace(wkstr, @"\xFF", @"\xA0"); - - // replace x10 & x11 in various ano tabs - not this needs fixed if ANO comes - // back into the program - wkstr = wkstr.Replace("\x10", ""); - wkstr = wkstr.Replace("\x11", ""); - - // replace x15 with {RO} for now. - wkstr = wkstr.Replace("\x15", "{RO}"); - - } - catch (Exception ex) - { - Console.WriteLine("error replacing token (regex) = {0}", ex.Message); - } - - return wkstr; - } - - private bool AllDrawChars(string wkstr) - { - foreach (char c in wkstr) - { - if (c < '\xB3' || c > '\xDF') return false; - } - return true; - } - private bool CompareFonts(VE_Font parFont, ref VE_Font subFont) - { - bool rtval = false; - if (parFont != null && subFont != null) - { - if (parFont.FontFamily == subFont.FontFamily) - { - subFont.FontFamily = null; - rtval = true; - } - if (rtval && parFont.FontSize == subFont.FontSize) - { - subFont.FontSize = null; - } - if (rtval && parFont.FontStyle == subFont.FontStyle) - { - subFont.FontStyle = null; - } - if (rtval && parFont.CPI == subFont.CPI) - { - subFont.CPI = null; - } - } - return rtval; - } - //private void DoPSFontInherit(ref PageStyles pagstyles) - //{ - // for (int i=0; i 0) // we are working with a sub-format - { - parentOfSub = fmtName.Substring(0, fmtName.Length - 4); // name of sub format's parent - lfmtName = fmtName.Substring(0, fmtName.Length - 4) + "_" + fmtName.Substring(fmtName.Length - 2, 2); - getFontFromBase = false; // get the font from sub-format parent format - } - - string parentName = "fmt_xml\\" + parentOfSub + "f.xml"; - // if we have a valid parent format then use it to find the default font - if (!getFontFromBase && File.Exists(parentName)) - { - xdoc.Load(parentName); - xfont = xdoc.SelectSingleNode("FormatData/Font"); - if (xfont != null) - DefBaseFont = new VE_Font(xfont); - else - getFontFromBase = true; // font not found, use the font from base.xml - } - if (getFontFromBase) - { - xdoc.Load("fmt_xml\\basef.xml"); - xfont = xdoc.SelectSingleNode("FormatData/Font"); - DefBaseFont = new VE_Font(xfont); - } - // Get the font from the current plant format (or sub-format) - string fName = "fmt_xml\\" + lfmtName + "f.xml"; - if (!File.Exists(fName)) return false; - xdoc.Load(fName); - xfont = xdoc.SelectSingleNode("FormatData/Font"); - if (xfont != null) DefPlantFont = new VE_Font(xfont); - } - catch (Exception ex) - { - Console.WriteLine(ex.Message); - return false; - } - return true; - } - - } -} diff --git a/PROMS/fmtxml/Form1.cs b/PROMS/fmtxml/Form1.cs deleted file mode 100644 index e8717a57..00000000 --- a/PROMS/fmtxml/Form1.cs +++ /dev/null @@ -1,689 +0,0 @@ -using System; -using System.Drawing; -using System.Collections; -using System.ComponentModel; -using System.Windows.Forms; -using System.Data; -using System.IO; - -namespace fmtxml -{ - /// - /// Summary description for Form1. - /// - public class Form1 : System.Windows.Forms.Form - { - private System.Windows.Forms.Button btnCvtPagDoc; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Button btnExit; - private System.Windows.Forms.ListBox listBox1; - private System.Windows.Forms.Button btnCvtGenmac; - private System.Windows.Forms.Button btnCvtXmlToSVG; - //private C1.C1Pdf.C1PdfDocument c1PdfDocument1; - private Button btnCvtFormat; - private Button btnMergeFmtPagDoc; - private Label lblPathFmt; - private Button btnBrowseFmt; - private TextBox tbFmtPath; - private TextBox tbGenmacPath; - private Button btnBrowseGenmac; - private Label lblPathGenmac; - private Label lblResult; - private TextBox tbResultPath; - private Button btnBrowseResult; - private StatusStrip statusStrip1; - private ToolStripStatusLabel tsslStatus; - private Button btnRtfToSvg; - private Button btnWestinghouse; - /// - /// Required designer variable. - /// - private System.ComponentModel.Container components = null; - - public Form1() - { - // - // Required for Windows Form Designer support - // - InitializeComponent(); - if (Directory.Exists(@"c:\16bit\ve-proms\format")) - tbFmtPath.Text = @"c:\16bit\ve-proms\format"; - else if (Directory.Exists(@"c:\16-bit\ve-proms\format")) - tbFmtPath.Text = @"c:\16-bit\ve-proms\format"; - else - MessageBox.Show("Specify Path for format files.", "Cannot find 16 Bit Formats", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); - tbGenmacPath.Text = @"C:\16bit\promsnt\genmac"; - tbResultPath.Text = @"c:\development\"; - // - // TODO: Add any constructor code after InitializeComponent call - // - } - public string MyStatus - { - get { return tsslStatus.Text; } - set { tsslStatus.Text = value; Application.DoEvents(); } - } - - /// - /// Clean up any resources being used. - /// - protected override void Dispose( bool disposing ) - { - if( disposing ) - { - if (components != null) - { - components.Dispose(); - } - } - base.Dispose( disposing ); - } - - #region Windows Form Designer generated code - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.btnCvtPagDoc = new System.Windows.Forms.Button(); - this.label1 = new System.Windows.Forms.Label(); - this.btnExit = new System.Windows.Forms.Button(); - this.listBox1 = new System.Windows.Forms.ListBox(); - this.btnCvtGenmac = new System.Windows.Forms.Button(); - this.btnCvtXmlToSVG = new System.Windows.Forms.Button(); - this.btnCvtFormat = new System.Windows.Forms.Button(); - this.btnMergeFmtPagDoc = new System.Windows.Forms.Button(); - this.lblPathFmt = new System.Windows.Forms.Label(); - this.btnBrowseFmt = new System.Windows.Forms.Button(); - this.tbFmtPath = new System.Windows.Forms.TextBox(); - this.tbGenmacPath = new System.Windows.Forms.TextBox(); - this.btnBrowseGenmac = new System.Windows.Forms.Button(); - this.lblPathGenmac = new System.Windows.Forms.Label(); - this.lblResult = new System.Windows.Forms.Label(); - this.tbResultPath = new System.Windows.Forms.TextBox(); - this.btnBrowseResult = new System.Windows.Forms.Button(); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.tsslStatus = new System.Windows.Forms.ToolStripStatusLabel(); - this.btnRtfToSvg = new System.Windows.Forms.Button(); - this.btnWestinghouse = new System.Windows.Forms.Button(); - this.statusStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // btnCvtPagDoc - // - this.btnCvtPagDoc.Location = new System.Drawing.Point(217, 63); - this.btnCvtPagDoc.Name = "btnCvtPagDoc"; - this.btnCvtPagDoc.Size = new System.Drawing.Size(201, 51); - this.btnCvtPagDoc.TabIndex = 0; - this.btnCvtPagDoc.Text = "Convert Page and Doc Styles in format directory (Step 2)"; - this.btnCvtPagDoc.Click += new System.EventHandler(this.btnCvtPagDoc_Click); - // - // label1 - // - this.label1.Location = new System.Drawing.Point(12, 237); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(200, 18); - this.label1.TabIndex = 1; - this.label1.Text = "Converted:"; - // - // btnExit - // - this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnExit.Location = new System.Drawing.Point(560, 224); - this.btnExit.Name = "btnExit"; - this.btnExit.Size = new System.Drawing.Size(63, 28); - this.btnExit.TabIndex = 2; - this.btnExit.Text = "Exit"; - this.btnExit.Click += new System.EventHandler(this.btnExit_Click); - // - // listBox1 - // - this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.listBox1.ItemHeight = 16; - this.listBox1.Location = new System.Drawing.Point(10, 258); - this.listBox1.Name = "listBox1"; - this.listBox1.Size = new System.Drawing.Size(613, 212); - this.listBox1.TabIndex = 3; - // - // btnCvtGenmac - // - this.btnCvtGenmac.Enabled = false; - this.btnCvtGenmac.Location = new System.Drawing.Point(10, 172); - this.btnCvtGenmac.Name = "btnCvtGenmac"; - this.btnCvtGenmac.Size = new System.Drawing.Size(183, 46); - this.btnCvtGenmac.TabIndex = 4; - this.btnCvtGenmac.Text = "Convert genmac files to XML (Genmac Step 1)"; - this.btnCvtGenmac.Click += new System.EventHandler(this.btnCvtGenmac_Click); - // - // btnCvtXmlToSVG - // - this.btnCvtXmlToSVG.Enabled = false; - this.btnCvtXmlToSVG.Location = new System.Drawing.Point(199, 170); - this.btnCvtXmlToSVG.Name = "btnCvtXmlToSVG"; - this.btnCvtXmlToSVG.Size = new System.Drawing.Size(183, 50); - this.btnCvtXmlToSVG.TabIndex = 5; - this.btnCvtXmlToSVG.Text = "Convert Genmac_XML to SVG (Genmac Step 2)"; - this.btnCvtXmlToSVG.Click += new System.EventHandler(this.btnCvtXmlToSVG_Click); - // - // btnCvtFormat - // - this.btnCvtFormat.Location = new System.Drawing.Point(10, 63); - this.btnCvtFormat.Name = "btnCvtFormat"; - this.btnCvtFormat.Size = new System.Drawing.Size(201, 51); - this.btnCvtFormat.TabIndex = 8; - this.btnCvtFormat.Text = "Convert Format in format directory (Step 1)"; - this.btnCvtFormat.UseVisualStyleBackColor = true; - this.btnCvtFormat.Click += new System.EventHandler(this.btnCvtFormat_Click); - // - // btnMergeFmtPagDoc - // - this.btnMergeFmtPagDoc.Location = new System.Drawing.Point(424, 63); - this.btnMergeFmtPagDoc.Name = "btnMergeFmtPagDoc"; - this.btnMergeFmtPagDoc.Size = new System.Drawing.Size(201, 51); - this.btnMergeFmtPagDoc.TabIndex = 9; - this.btnMergeFmtPagDoc.Text = "Integrate Fmt, Doc & Pag to single xml (Step 3)"; - this.btnMergeFmtPagDoc.UseVisualStyleBackColor = true; - this.btnMergeFmtPagDoc.Click += new System.EventHandler(this.btnMergeFmtPagDoc_Click); - // - // lblPathFmt - // - this.lblPathFmt.AutoSize = true; - this.lblPathFmt.Location = new System.Drawing.Point(7, 42); - this.lblPathFmt.Name = "lblPathFmt"; - this.lblPathFmt.Size = new System.Drawing.Size(139, 17); - this.lblPathFmt.TabIndex = 10; - this.lblPathFmt.Text = "Path To Format Files"; - // - // btnBrowseFmt - // - this.btnBrowseFmt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnBrowseFmt.Location = new System.Drawing.Point(476, 36); - this.btnBrowseFmt.Name = "btnBrowseFmt"; - this.btnBrowseFmt.Size = new System.Drawing.Size(153, 23); - this.btnBrowseFmt.TabIndex = 11; - this.btnBrowseFmt.Text = "Browse (Format)"; - this.btnBrowseFmt.UseVisualStyleBackColor = true; - this.btnBrowseFmt.Click += new System.EventHandler(this.btnBrowseFmt_Click); - // - // tbFmtPath - // - this.tbFmtPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbFmtPath.Location = new System.Drawing.Point(155, 37); - this.tbFmtPath.Name = "tbFmtPath"; - this.tbFmtPath.Size = new System.Drawing.Size(303, 22); - this.tbFmtPath.TabIndex = 12; - // - // tbGenmacPath - // - this.tbGenmacPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbGenmacPath.Enabled = false; - this.tbGenmacPath.Location = new System.Drawing.Point(155, 144); - this.tbGenmacPath.Name = "tbGenmacPath"; - this.tbGenmacPath.Size = new System.Drawing.Size(303, 22); - this.tbGenmacPath.TabIndex = 15; - // - // btnBrowseGenmac - // - this.btnBrowseGenmac.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnBrowseGenmac.Enabled = false; - this.btnBrowseGenmac.Location = new System.Drawing.Point(476, 143); - this.btnBrowseGenmac.Name = "btnBrowseGenmac"; - this.btnBrowseGenmac.Size = new System.Drawing.Size(153, 23); - this.btnBrowseGenmac.TabIndex = 14; - this.btnBrowseGenmac.Text = "Browse (Genmac)"; - this.btnBrowseGenmac.UseVisualStyleBackColor = true; - this.btnBrowseGenmac.Click += new System.EventHandler(this.btnBrowseGenmac_Click); - // - // lblPathGenmac - // - this.lblPathGenmac.AutoSize = true; - this.lblPathGenmac.Enabled = false; - this.lblPathGenmac.Location = new System.Drawing.Point(7, 149); - this.lblPathGenmac.Name = "lblPathGenmac"; - this.lblPathGenmac.Size = new System.Drawing.Size(148, 17); - this.lblPathGenmac.TabIndex = 13; - this.lblPathGenmac.Text = "Path To Genmac Files"; - // - // lblResult - // - this.lblResult.AutoSize = true; - this.lblResult.Location = new System.Drawing.Point(16, 10); - this.lblResult.Name = "lblResult"; - this.lblResult.Size = new System.Drawing.Size(163, 17); - this.lblResult.TabIndex = 16; - this.lblResult.Text = "Path To Result Directory"; - // - // tbResultPath - // - this.tbResultPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbResultPath.Location = new System.Drawing.Point(185, 8); - this.tbResultPath.Name = "tbResultPath"; - this.tbResultPath.Size = new System.Drawing.Size(273, 22); - this.tbResultPath.TabIndex = 17; - // - // btnBrowseResult - // - this.btnBrowseResult.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnBrowseResult.Location = new System.Drawing.Point(476, 3); - this.btnBrowseResult.Name = "btnBrowseResult"; - this.btnBrowseResult.Size = new System.Drawing.Size(153, 24); - this.btnBrowseResult.TabIndex = 18; - this.btnBrowseResult.Text = "Browse (Result)"; - this.btnBrowseResult.UseVisualStyleBackColor = true; - this.btnBrowseResult.Click += new System.EventHandler(this.btnBrowseResult_Click); - // - // statusStrip1 - // - this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tsslStatus}); - this.statusStrip1.Location = new System.Drawing.Point(0, 545); - this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Size = new System.Drawing.Size(631, 25); - this.statusStrip1.TabIndex = 19; - this.statusStrip1.Text = "statusStrip1"; - // - // tsslStatus - // - this.tsslStatus.Name = "tsslStatus"; - this.tsslStatus.Size = new System.Drawing.Size(50, 20); - this.tsslStatus.Text = "Ready"; - // - // btnRtfToSvg - // - this.btnRtfToSvg.Location = new System.Drawing.Point(424, 167); - this.btnRtfToSvg.Name = "btnRtfToSvg"; - this.btnRtfToSvg.Size = new System.Drawing.Size(182, 51); - this.btnRtfToSvg.TabIndex = 20; - this.btnRtfToSvg.Text = "Convert Genmac RTF to SVG (GenMac One Step)"; - this.btnRtfToSvg.Click += new System.EventHandler(this.btnRtfToSvg_Click); - // - // btnWestinghouse - // - this.btnWestinghouse.Location = new System.Drawing.Point(387, 224); - this.btnWestinghouse.Name = "btnWestinghouse"; - this.btnWestinghouse.Size = new System.Drawing.Size(164, 26); - this.btnWestinghouse.TabIndex = 21; - this.btnWestinghouse.Text = "Copy New Formats"; - this.btnWestinghouse.UseVisualStyleBackColor = true; - this.btnWestinghouse.Click += new System.EventHandler(this.btnWestinghouse_Click); - // - // Form1 - // - this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); - this.ClientSize = new System.Drawing.Size(631, 570); - this.Controls.Add(this.btnWestinghouse); - this.Controls.Add(this.btnRtfToSvg); - this.Controls.Add(this.statusStrip1); - this.Controls.Add(this.btnBrowseResult); - this.Controls.Add(this.tbResultPath); - this.Controls.Add(this.lblResult); - this.Controls.Add(this.tbGenmacPath); - this.Controls.Add(this.btnBrowseGenmac); - this.Controls.Add(this.lblPathGenmac); - this.Controls.Add(this.tbFmtPath); - this.Controls.Add(this.btnBrowseFmt); - this.Controls.Add(this.lblPathFmt); - this.Controls.Add(this.btnMergeFmtPagDoc); - this.Controls.Add(this.btnCvtFormat); - this.Controls.Add(this.btnCvtXmlToSVG); - this.Controls.Add(this.btnCvtGenmac); - this.Controls.Add(this.listBox1); - this.Controls.Add(this.btnExit); - this.Controls.Add(this.label1); - this.Controls.Add(this.btnCvtPagDoc); - this.Name = "Form1"; - this.Text = "Form1"; - this.statusStrip1.ResumeLayout(false); - this.statusStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - #endregion - - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.Run(new Form1()); - } - private static string[] _ExcludeList = "ANO,ATA,ATLAS,LPL,MYA,NAE,NAI,NAS,PAC,RBN,ROB,SCE,SRS,VP,WPF,YAE".Split(",".ToCharArray()); - public static bool Excluded(FileInfo fi) - { - foreach (string prefix in _ExcludeList) - if (fi.Name.ToUpper().StartsWith(prefix)) return true; - return false; - } - - private void btnCvtPagDoc_Click(object sender, System.EventArgs e) - { - CleanupDestinationFolder("*p.xml"); - CleanupDestinationFolder("*d.xml"); - // get all of the files in the e:\ve-proms\format directory. - DirectoryInfo di = new DirectoryInfo(tbFmtPath.Text); // "C:\\16bit\\ve-proms\\format"); - FileInfo[] fis = di.GetFiles("*.pag"); - ClearListBox(); - foreach (FileInfo fi in fis) - { - if (!Excluded(fi)) - { - string fn = fi.Name.Substring(0, fi.Name.Length - 4); - AddFileToListBox(fi); - FmtToXml fx = new FmtToXml(fn, tbFmtPath.Text); - } - } - fis = di.GetFiles("*.z*"); - foreach (FileInfo fi in fis) - { - if (!Excluded(fi)) - { - AddFileToListBox(fi); - FmtToXml fx = new FmtToXml(fi.Name, tbFmtPath.Text); - } - } - MessageBox.Show("DONE Converting Page and Document Styles to XML"); - } - - private void AddFileToListBox(FileInfo fi) - { - this.listBox1.Items.Add(fi.Name); - this.listBox1.SelectedIndex = this.listBox1.Items.Count - 1; - MyStatus = "Processing " + fi.Name; - Application.DoEvents(); - } - - private void ClearListBox() - { - listBox1.Items.Clear(); - } - - private void btnExit_Click(object sender, System.EventArgs e) - { - Application.Exit(); - } - - private void btnCvtGenmac_Click(object sender, System.EventArgs e) - { - // before doing the genmac change, use cpp -DRTF file after genmac.h - // has been emptied out on files in \promsnt\genmac. This creates - // precompiled files only, i.e. gets rid of some of the junk in the files. - // This conversion is done 1 time. After 32-bit print is done, the xml - // files will be used rather than the genmac. - - DirectoryInfo di = new DirectoryInfo(tbGenmacPath.Text + @"\preproc"); // "C:\\16bit\\promsnt\\genmac\\preproc"); - FileInfo[] fis = di.GetFiles("*.i"); - ClearListBox(); - foreach (FileInfo fi in fis) - { - // results go to e:\\proms.net\\genmac.xml\\convert - if (!Excluded(fi)) - { - AddFileToListBox(fi); - GenToXml gn = new GenToXml(fi.Name, tbGenmacPath.Text, tbResultPath.Text); - } - } - MessageBox.Show("DONE Converting genmacs to XML - Results are in " + tbResultPath.Text + @"\genmacall\convert"); - } - - private void btnCvtXmlToSVG_Click(object sender, System.EventArgs e) - { - // delete current svg's - DirectoryInfo disvg = new DirectoryInfo(tbResultPath.Text + @"\genmacall"); //(@"C:\development\proms.net\genmac.xml"); - FileInfo[] fissvg = disvg.GetFiles("*.svg"); - foreach (FileInfo fi in fissvg)fi.Delete(); - DirectoryInfo di = new DirectoryInfo(tbResultPath.Text + @"\genmacall\convert"); - FileInfo[] fis = di.GetFiles("*.xml"); - ClearListBox(); - foreach (FileInfo fi in fis) - { - // results go to e:\proms.net\genmac.xml - AddFileToListBox(fi); - GenXmlToSvg gn = new GenXmlToSvg(fi.Name, tbResultPath.Text); - } - MessageBox.Show("DONE Converting genmacs.xmls to drawing svg - Results are in " + tbResultPath.Text + @"\genmacall"); - } - - - private void btnCvtFormat_Click(object sender, EventArgs e) - { - CleanupDestinationFolder("*f.xml"); - DateTime tStart = DateTime.Now; - // first convert base format - for now use genfmt. - MyStatus = "Processing Base"; - FmtFileToXml gx = new FmtFileToXml(null, "BASE", "GEN", tbFmtPath.Text); // Create BASE from GEN format - - // get all of the format files in the e:\ve-proms\format directory. - DirectoryInfo di = new DirectoryInfo(tbFmtPath.Text); // "C:\\16bit\\ve-proms\\format"); - //DirectoryInfo di = new DirectoryInfo("E:\\proms.net\\exe\\fmtxml"); - // This excludes Background format files *.BFM which use a different structure - FileInfo[] fis = di.GetFiles("*.fmt"); - ClearListBox(); - foreach (FileInfo fi in fis) - { - if (!Excluded(fi)) - { - string fn = fi.Name.Substring(0, fi.Name.Length - 4); - if (fn.ToLower() != "base") - { - AddFileToListBox(fi); - FmtFileToXml fx = new FmtFileToXml(gx, fn, fn, tbFmtPath.Text); - } - } - } - MyStatus = string.Format("DONE Converting Formats to XML {0:F3} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds); - MessageBox.Show("DONE Converting Formats to XML"); - } - - private void CleanupDestinationFolder(string pattern) - { - DirectoryInfo di = new DirectoryInfo("fmt_xml"); - if (di.Exists == false) - di.Create(); - FileInfo[] fis = di.GetFiles(pattern); - foreach (FileInfo fi in fis) fi.Delete(); - } - - private void btnMergeFmtPagDoc_Click(object sender, EventArgs e) - { - ClearResults(tbResultPath.Text); - DateTime tStart = DateTime.Now; - MyStatus = "Merging..."; - // get all of the generated xml format files in the fmt_xml directory and merge - // the fmt/doc/pag & subformats into one file. - DirectoryInfo di = new DirectoryInfo("fmt_xml"); - //testDirectoryInfo di = new DirectoryInfo("E:\\proms.net\\exe\\fmtxml"); - FileInfo[] fis = di.GetFiles("*f.xml"); - ClearListBox(); - foreach (FileInfo fi in fis) - { - // see if all three, format, doc & pag exist - if not, print error, - // if so, process - string docname = "fmt_xml\\" + fi.Name.Substring(0, fi.Name.Length - 5) + "p.xml"; - string pagname = "fmt_xml\\" + fi.Name.Substring(0, fi.Name.Length - 5) + "d.xml"; - if (File.Exists(docname) && File.Exists(pagname)) - { - AddFileToListBox(fi); - EntireFormat ef = new EntireFormat("fmt_xml\\" + fi.Name, tbResultPath.Text); - } - else - Console.WriteLine("For {0}, page or document file does not exist.", fi.Name); - } - MyStatus = string.Format("DONE Merging Formats {0:F3} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds); - MessageBox.Show("DONE Merging Formats - Results are in " + tbResultPath.Text + @"fmtall'"); - } - - private void ClearResults(string path) - { - DirectoryInfo di = new DirectoryInfo(path); - if (di.Exists == false) return; - di = di.GetDirectories("fmtall")[0]; - FileInfo[] fis = di.GetFiles("*.xml"); - foreach (FileInfo fi in fis) - { - if (fi.IsReadOnly) fi.IsReadOnly = false; - fi.Delete(); - } - } - private void btnBrowseFmt_Click(object sender, EventArgs e) - { - FolderBrowserDialog fbd = new FolderBrowserDialog(); - - fbd.SelectedPath = tbFmtPath.Text; - if (fbd.ShowDialog() == DialogResult.OK) - if (Directory.Exists(fbd.SelectedPath)) tbFmtPath.Text = fbd.SelectedPath; - } - - private void btnBrowseGenmac_Click(object sender, EventArgs e) - { - FolderBrowserDialog fbd = new FolderBrowserDialog(); - - fbd.SelectedPath = tbFmtPath.Text; - if (fbd.ShowDialog() == DialogResult.OK) - { - if (Directory.Exists(fbd.SelectedPath)) tbGenmacPath.Text = fbd.SelectedPath; - } - } - - private void btnBrowseResult_Click(object sender, EventArgs e) - { - FolderBrowserDialog fbd = new FolderBrowserDialog(); - - fbd.SelectedPath = tbResultPath.Text; - if (fbd.ShowDialog() == DialogResult.OK) - { - if (Directory.Exists(fbd.SelectedPath)) tbResultPath.Text = fbd.SelectedPath + @"\"; - } - } - private void btnRtfToSvg_Click(object sender, EventArgs e) - { - // delete current svg's - DirectoryInfo disvg = new DirectoryInfo(tbResultPath.Text + @"\genmacall"); //(@"C:\development\proms.net\genmac.xml"); - FileInfo[] fissvg = disvg.GetFiles("*.svg"); - foreach (FileInfo fi in fissvg) - { - if (fi.IsReadOnly) fi.IsReadOnly = false; - fi.Delete(); - } - - DirectoryInfo di = new DirectoryInfo(tbFmtPath.Text); - FileInfo[] fis = di.GetFiles("*.rtf"); - ClearListBox(); - foreach (FileInfo fi in fis) - { - if (!Excluded(fi)) - { - - // results go to e:\proms.net\genmac.xml - AddFileToListBox(fi); - RtfToSvg myConvert = new RtfToSvg(fi); - if (myConvert.IsGenMac) - myConvert.Save(tbResultPath.Text + @"genmacall\" + fi.Name.ToLower().Replace(".rtf", ".svg")); - } - } - // The NSPIFG2 file did not exist. Copy over NSPIFG to it. - FileInfo fix = new FileInfo(tbResultPath.Text + @"genmacall\nspifg.svg"); - fix.CopyTo(tbResultPath.Text + @"genmacall\nspifg2.svg"); - MessageBox.Show("DONE converting GenMac RTF files to drawing svg - Results are in " + tbResultPath.Text + @"genmacall"); - } - - private void btnWestinghouse_Click(object sender, EventArgs e) - { - DateTime tStart = DateTime.Now; - CopyFormat("wst1all.xml"); - CopyFormat("wst2all.xml"); - CopyFormat("wstcklall.xml"); - CopyFormat("wstalrall.xml"); - CopyFormat("wstbckall.xml"); - CopyFormat("wstdcsall.xml"); - CopySVG("wst1.svg"); - CopySVG("wst2.svg"); - CopySVG("wstckl.svg"); - CopySVG("wstalr.svg"); - CopySVG("wstbck.svg"); - CopySVG("wstdcs.svg"); - - CopyFormat("fnpnmpall.xml"); - CopySVG("fnpnmp.svg"); - - CopyFormat("hlpfsgall.xml"); - CopySVG("hlpfsg.svg"); - - // Comanche Peak Flex Format - CopyFormat("ComPeakFlexall.xml"); - CopySVG("ComPeakFlex.svg"); - - MyStatus = string.Format("Copied Developed Formats/Genmacs {0:F3} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds); - MessageBox.Show("DONE Copy Developed Formats/Genmacs - Results are in " + tbResultPath.Text + @"fmtall' and 'genmacall'"); - } - private void CopyFormat(string fileName) - { - FileInfo fi1 = new FileInfo(Application.StartupPath + "\\" + fileName); - FileInfo fi2 = new FileInfo(@"..\..\" + fileName); - if (fi2.Exists && (!fi1.Exists ||(fi1.Exists && fi2.LastAccessTimeUtc > fi1.LastAccessTimeUtc))) - { - if (fi1.Exists && fi1.IsReadOnly) fi1.IsReadOnly = false; - fi2.CopyTo(fi1.FullName, true); - fi1 = new FileInfo(Application.StartupPath + "\\" + fileName); - } - if (fi1.Exists) - { - FileInfo fio = new FileInfo(tbResultPath.Text + @"fmtall\" + fileName); - if (fio.Exists && fio.IsReadOnly) fio.IsReadOnly = false; - fi1.CopyTo(fio.FullName, true); - } - } - private void CopySVG(string fileName) - { - FileInfo fi1 = new FileInfo(Application.StartupPath + "\\" + fileName); - FileInfo fi2 = new FileInfo(@"..\..\" + fileName); - if (fi2.Exists && (!fi1.Exists || (fi1.Exists && fi2.LastAccessTimeUtc > fi1.LastAccessTimeUtc))) - { - if (fi1.Exists && fi1.IsReadOnly) fi1.IsReadOnly = false; - fi2.CopyTo(fi1.FullName, true); - fi1 = new FileInfo(Application.StartupPath + "\\" + fileName); - } - if (fi1.Exists) - { - FileInfo fio = new FileInfo(tbResultPath.Text + @"genmacall\" + fileName); - if (fio.Exists && fio.IsReadOnly) fio.IsReadOnly = false; - fi1.CopyTo(fio.FullName, true); - } - } - // old code: - //private void button5_Click(object sender, System.EventArgs e) - //{ - - // DirectoryInfo di = new DirectoryInfo("C:\\16bit\\ve-proms.net\\genmac.xml"); - // FileInfo[] fis = di.GetFiles("*.xml"); - // listBox1.Items.Clear(); - // foreach (FileInfo fi in fis) - // { - // this.listBox1.Items.Add(fi.Name); - // //XmlToPdf pdf = new XmlToPdf("C:\\16bit\\ve-proms.net\\genmac.xml",fi.Name); - // } - // MessageBox.Show("DONE generating PDF files from XML"); - //} - - //private void button6_Click(object sender, System.EventArgs e) - //{ - // DirectoryInfo di = new DirectoryInfo("C:\\16bit\\proms.net\\genmac.xml"); - // FileInfo[] fis = di.GetFiles("*.svg"); - // listBox1.Items.Clear(); - // foreach (FileInfo fi in fis) - // { - // this.listBox1.Items.Add(fi.Name); - // //SvgToPdf pdf = new SvgToPdf("C:\\16bit\\proms.net\\genmac.xml", fi.Name); - // } - // MessageBox.Show("DONE generating PDF files from SVG"); - //} - - } -} diff --git a/PROMS/fmtxml/Form1.resx b/PROMS/fmtxml/Form1.resx deleted file mode 100644 index b9c202bf..00000000 --- a/PROMS/fmtxml/Form1.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - \ No newline at end of file diff --git a/PROMS/fmtxml/Format To XML.csproj b/PROMS/fmtxml/Format To XML.csproj deleted file mode 100644 index 6385aab5..00000000 --- a/PROMS/fmtxml/Format To XML.csproj +++ /dev/null @@ -1,69 +0,0 @@ - - - Debug - AnyCPU - {68A28293-001C-4726-AA1A-7783E0FA6439} - WinExe - false - Format, Genmac To XML, SVG - Format__Genmac_To_XML__SVG - SAK - SAK - SAK - SAK - - - true - full - false - .\bin\Debug\ - DEBUG;TRACE - - - pdbonly - true - .\bin\Release\ - TRACE - - - - - - - - - - - - - - - - - - - - Form - - - - - - - - - Form1.cs - Designer - - - - - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D} - CvtFont - - - - - - - \ No newline at end of file diff --git a/PROMS/fmtxml/Format To XML.sln b/PROMS/fmtxml/Format To XML.sln deleted file mode 100644 index 1a1e8898..00000000 --- a/PROMS/fmtxml/Format To XML.sln +++ /dev/null @@ -1,37 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Format To XML", "Format To XML.csproj", "{68A28293-001C-4726-AA1A-7783E0FA6439}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CvtFont", "..\Volian.Utils.Library\CvtFont\CvtFont.csproj", "{652EB5F6-18DD-4F22-9C0B-62EB46613C4D}" -EndProject -Global - GlobalSection(SourceCodeControl) = preSolution - SccNumberOfProjects = 2 - SccProjectUniqueName0 = ..\\Volian.Utils.Library\\CvtFont\\CvtFont.csproj - SccProjectName0 = \u0022$/PROMS/Volian.Utils.Library/CvtFont\u0022,\u0020TRDAAAAA - SccLocalPath0 = ..\\Volian.Utils.Library\\CvtFont - SccProvider0 = MSSCCI:Microsoft\u0020Visual\u0020SourceSafe - SccProjectUniqueName1 = Format\u0020To\u0020XML.csproj - SccProjectName1 = \u0022$/PROMS/fmtxml\u0022,\u0020URDAAAAA - SccLocalPath1 = . - SccProvider1 = MSSCCI:Microsoft\u0020Visual\u0020SourceSafe - EndGlobalSection - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {68A28293-001C-4726-AA1A-7783E0FA6439}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {68A28293-001C-4726-AA1A-7783E0FA6439}.Debug|Any CPU.Build.0 = Debug|Any CPU - {68A28293-001C-4726-AA1A-7783E0FA6439}.Release|Any CPU.ActiveCfg = Release|Any CPU - {68A28293-001C-4726-AA1A-7783E0FA6439}.Release|Any CPU.Build.0 = Release|Any CPU - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/PROMS/fmtxml/GenToXml.cs b/PROMS/fmtxml/GenToXml.cs deleted file mode 100644 index da68c6ca..00000000 --- a/PROMS/fmtxml/GenToXml.cs +++ /dev/null @@ -1,155 +0,0 @@ -using System; -using System.IO; -using System.Text.RegularExpressions; -using System.Windows.Forms; - - - -namespace fmtxml -{ - /// - /// Summary description for GenToXml. - /// - public class GenToXml - { - private StreamWriter strGenXml; - private string genName; - - private string MyPath; - private string MyResPath; - public GenToXml(string nm, string path, string resPath) - { - MyPath = path; - MyResPath = resPath; - genName = nm; - try - { - OpenFiles(); - ConvertGenToXml(); - CloseFiles(); - } - catch (Exception ex) - { - MessageBox.Show("Genmac name = " + nm, ex.Message); - } - } - - public void OpenFiles() - { - if (!Directory.Exists(MyResPath + @"\genmacall\convert")) - Directory.CreateDirectory(MyResPath + @"\genmacall\convert"); - string fnm = MyResPath + @"\genmacall\convert" + @"\" + genName; - string outnm = fnm.Substring(0,fnm.LastIndexOf(".")) + ".xml"; - strGenXml = new StreamWriter(outnm,false,System.Text.Encoding.ASCII); - } - - public void CloseFiles() - { - strGenXml.Close(); - } - - public void ConvertGenToXml() - { - string linein; - try - { - // use regular expressions to read in the genmac C file and convert to XML. - StreamReader sr = new StreamReader(MyPath + @"\preproc\"+genName); - linein = sr.ReadToEnd(); - sr.Close(); - } - catch (Exception e) - { - // Let the user know what went wrong. - MessageBox.Show("File cannot be written " + genName + " error is " + e.Message); - return; - } - if (linein==null)return; - int indxb = linein.IndexOf("BEGIN"); - string line = linein.Substring(indxb,linein.Length-indxb); - linein=null; - // first Find defmac - endmac -> convert these do an element. - Regex defmacs = new Regex(@"DEFMAC(\s*|.*?)*ENDMAC",RegexOptions.IgnoreCase|RegexOptions.Compiled); - Match m; - strGenXml.Write("<" + genName.Substring(0,genName.LastIndexOf(".")) + "_GENMAC>\n"); - for (m = defmacs.Match(line); m.Success; m = m.NextMatch()) - { - strGenXml.Write(""); - string mt = line.Substring(m.Index,m.Length); - //Find the macro name, i.e. DEFMAC(xyz) - int indxend = mt.IndexOf(")"); - string macname = mt.Substring(7,indxend-7); - strGenXml.Write(macname+"\n\n"); - // the '+3' is to remove the \n\r also. The -9 is to account for the +3 & - // also remove the endmac - string macstr = mt.Substring(indxend+3,mt.Length-indxend-9); - // take x chars for the name & put out the name & definition. - string macnocomment = Regex.Replace(macstr, @"(\/\*(\s*|.*?)*\*\/)|(\/\/.*)", ""); - mt = Regex.Replace(macnocomment,";",""); - macnocomment = Regex.Replace(mt,@"\r\n",";"); - mt = Regex.Replace(macnocomment,@";+",";"); // eliminate multiple ';' - macnocomment = mt; - if (mt.IndexOf("&")>-1) - macnocomment = mt.Replace("&","&"); - strGenXml.Write(macnocomment); - strGenXml.Write("\n\n\n"); - } - // next find userdef - endmac -> convert these do an element. - defmacs = new Regex(@"USERDEF(\s*|.*?)*ENDMAC",RegexOptions.IgnoreCase|RegexOptions.Compiled); - for (m = defmacs.Match(line); m.Success; m = m.NextMatch()) - { - strGenXml.Write(""); - string mt = line.Substring(m.Index,m.Length); - //Find the macro name, i.e. USERDEF(xyz) - int indxend = mt.IndexOf(")"); - string macname = mt.Substring(8,indxend-8); - strGenXml.Write(macname+"\n\n\n"); - // the '+3' is to remove the \n\r also. The -9 is to account for the +3 & - // also remove the endmac - string macstr = mt.Substring(indxend+3,mt.Length-indxend-9); - // take x chars for the name & put out the name & definition. - string macnocomment = Regex.Replace(macstr, @"(\/\*(\s*|.*?)*\*\/)|(\/\/.*)", ""); - mt = Regex.Replace(macnocomment,";",""); - macnocomment = Regex.Replace(mt,@"\r\n",";"); - mt = Regex.Replace(macnocomment,@";+",";"); // eliminate multiple ';' - macnocomment = mt; - if (mt.IndexOf("&")>-1) - macnocomment = mt.Replace("&","&"); - strGenXml.Write(macnocomment); - strGenXml.Write("\n\n\n"); - } - // last find static functions - these have macro definitions too. - Regex defmacf = new Regex(@"static void (\s*|.*?)*}",RegexOptions.IgnoreCase|RegexOptions.Compiled); - for (m = defmacf.Match(line); m.Success; m = m.NextMatch()) - { - strGenXml.Write(""); - string mt = line.Substring(m.Index,m.Length); - //Find the function name, i.e. static void boxx. Parameters are on an different node(int i) - int indxbeg= mt.IndexOf("("); - string fnname = mt.Substring(12,indxbeg-12); - strGenXml.Write(fnname+"\n\""); - int indxend=mt.IndexOf(")"); - string param = null; - if (indxend-1==indxbeg) - param = "none"; - else - param = mt.Substring(indxbeg+1,indxend-1-indxbeg); - - strGenXml.Write(param+"\"\n\n"); - // now get past the opening curly. - indxbeg = mt.IndexOf("{"); - string fnstr = mt.Substring(indxbeg+2,mt.Length-indxbeg-3); - string macnocomment = Regex.Replace(fnstr, @"(\/\*(\s*|.*?)*\*\/)|(\/\/.*)", ""); // matches multi/single line comments: (\/\*(\s*|.*?)*\*\/)|(\/\/.*) - mt = Regex.Replace(macnocomment,";",""); - macnocomment = Regex.Replace(mt,@"\r\n",";"); - mt = Regex.Replace(macnocomment,@";+",";"); - if (mt.IndexOf("&")>-1) - mt = mt.Replace("&","&"); - strGenXml.Write(mt); - strGenXml.Write("\n\n\n"); - } - - strGenXml.Write(""); - } - } -} diff --git a/PROMS/fmtxml/GenXmlToSvg.cs b/PROMS/fmtxml/GenXmlToSvg.cs deleted file mode 100644 index 484eebad..00000000 --- a/PROMS/fmtxml/GenXmlToSvg.cs +++ /dev/null @@ -1,809 +0,0 @@ -using System; -using System.IO; -using System.Xml; -using System.Text; -using System.Drawing; -using System.Windows.Forms; - -namespace fmtxml -{ - /// - /// Convert genmac xml files to svg. svg (Scalar Vector Graphics - /// in XML format), so that genmac can be used in the 32-bit proms - /// system. The generated files will be used by developers and - /// customer service persons to do macros. - /// - public class GenXmlToSvg - { - private string genName; - private XmlDocument xmlDoc; - private XmlDocument xmlOutDoc; - private XmlElement topOutElement; - private int Convertn = 300, I = 300, C = 118, D = 1, N = 0; - private float Wid = 3; - private int RTFFontSize = 20; - private int RTFFontFamily = 3; - private string [] FontChoice = - { - "Times New Roman", - "VESymb XXXXXX", - "VolianDraw XXXXXX", - "Prestige Elite Tall", - "Courier New", - "Arial", - "Letter Gothic", - "Times New Roman", - "Letter Gothic Tall", - "Letter Gothic Tall", - "Gothic Ultra", - "VolianScript" - }; - - private string [] OldName = - { - "BOX1", - "BOX2", - "BOX3", - "BOX4", - "BOX5", - "HDR1", - "HDR2", - "HDR3", - "HDR4", - "HDR5", - "BOLDX", - "CNUM", - "CHKBOX", - "CHKBOX2", - "CHKBOX3", - "CHKBOX4", - "CHKBOX5", - "CHKBOX6", - "CHKBOX7", - "CHKBOX8", - "CHKBOX9", - "CHKBOX10", - "CHKBOX11", - "CHKBOX12", - "CHKBOX13", - "CHKBOX14", - "CHKBOX15", - "CHKBOX16", - "CHKBOX17", - "PLNTPLMAC", - "PLNTPLMAC2", - "GRAPHMAC0", - "GRAPHMAC1", - "RIGHTCHECKOFF", - "HPGLCOMMAND0", - "HPGLCOMMAND1", - "HPGLCOMMAND2", - "HPGLCOMMAND3", - "HPGLCOMMAND4", - "HPGLCOMMAND5", - "HPGLCOMMAND6", - "HPGLCOMMAND7", - "HPGLCOMMAND8", - "HPGLCOMMAND9", - "LTCO", - "SECDBLBXVERT", - "BOX6", - "BOX7", - "BOX8", - "ACAS_CHECKBOX", - "ACAS_CHECKLINE", - }; - - private string [] NewName = - { - "B1", - "B2", - "B3", - "B4", - "B5", - "H1", - "H2", - "H3", - "H4", - "H5", - "m33", - "C0", - "C1", - "C2", - "C3", - "C4", - "C5", - "C6", - "C7", - "C8", - "C9", - "C10", - "C11", - "C12", - "C13", - "C14", - "C15", - "C16", - "C17", - "m18", - "m19", - "m20", - "m21", - "C22", - "m23", - "m24", - "m25", - "m26", - "m27", - "m28", - "m29", - "m30", - "m31", - "m32", - "m20", - "m34", - "B6", - "B7", - "B8", - "m35", - "m36", - }; - - private int RTFBUI = 0; - private int Sp = -1; - private float cx = 0; - private float cy = 0; - private int fidx=0; - private int [] fontfam; - private int [] fontsiz; - private float [] PPx; - private float [] PPy; - - // the following define RTFBUI values - private static int BOLD = 0x01; - private static int UNDERLINE = 0x02; - private static int ITALICS = 0x04; - - private string MyResultPath; - - /* - * The following svg group must be added for WCN2 for its box on the cover page: - * - - - - - - - - - */ - public GenXmlToSvg(string nm, string resPath) - { - MyResultPath = resPath; - genName = nm; - try - { - fontfam = new int[20]; - fontsiz = new int[20]; - PPx = new float[12]; - PPy = new float[12]; - ReadXml(); - ConvertGenXmlToDIXml(); - WriteXml(); - } - catch (Exception ex) - { - Console.WriteLine("Genmac.xml name = " + nm + ". Error is " + ex.Message); - } - } - - private float CPoint(float x) - { - if (Convertn == C) - { - // convert from x (in centimeters) to inches & then to points - return (float) (.3937 * x * 72); - } // convert from x (in inches) to points - else if (Convertn == I) - return (float)(x * 72); - else if (Convertn == N) - return (float)x; - else // convert from x (in dots) to twips & then points - return (float)(((4.8 * x + 0.5)/1440f)*72); - } - - private void WriteXml() - { - string path = MyResultPath + @"\genmacall\" + genName.Substring(0, genName.LastIndexOf(".")) + ".svg"; - XmlTextWriter writer = new XmlTextWriter(path,System.Text.Encoding.Unicode); - writer.Formatting=System.Xml.Formatting.Indented; - xmlOutDoc.Save(writer); - } - - private void ReadXml() - { - string fnm = MyResultPath + @"\genmacall\convert\" + genName; - xmlDoc = new XmlDocument(); - XmlTextReader reader = new XmlTextReader(fnm); - xmlDoc.Load(reader); - reader.Close(); - } - private void ConvertGenXmlToDIXml() - { - // first create the document for the svg version of the macro files - // and add the top svg element. - xmlOutDoc = new XmlDocument(); - topOutElement = xmlOutDoc.CreateElement("svg"); - topOutElement.SetAttribute("width","8in"); - topOutElement.SetAttribute("height","10in"); - topOutElement.SetAttribute("viewBox","0 0 576 720"); - // topOutNode.Attributes.Append(attr); - // topOutNode.Attributes.Append - xmlOutDoc.AppendChild(topOutElement); - - // Next add the description node, which is the name of the plant format. - XmlElement descNode = xmlOutDoc.CreateElement("desc"); - descNode.InnerText = genName.Substring(0,genName.LastIndexOf(".")); - topOutElement.AppendChild(descNode); - XmlElement top = (XmlElement) xmlDoc.FirstChild; - XmlNode sv = top.SelectSingleNode("STATICVOID"); - XmlNodeList xmlNds = top.SelectNodes("MACRO"); - - // Now for each macro, create a svg group with the name given to - // it. Later we may change this to map to what was created in 16-bit - // proms (for example BOX1 -> B1) - bool hasC0 = false; - foreach (XmlNode nd in xmlNds) - { - XmlNode name = nd.SelectSingleNode("NAME"); - XmlElement elm = (XmlElement) name; - XmlElement grp = xmlOutDoc.CreateElement("g"); - string cname = GetName(name.InnerText); - if (cname == "CNUM") hasC0 = true; - grp.SetAttribute("id",cname); - topOutElement.AppendChild(grp); - XmlNode definition = nd.SelectSingleNode("DEFINITION"); - try - { - string str = ProcessMacroDefinition(grp,definition,sv); - } - catch (Exception e) - { - MessageBox.Show("Error processing macro definition for " + this.genName, e.Message); - } - } - // if the C0 (circle string) macro didn't exist, add a default. This is done so special code - // does not have to be written to do the circle string in edit/print. - /* Add the C0 macro if not there! - - - - */ - if (!hasC0) - { - int savconvertn = Convertn; - Convertn = 0; // don't convert size - XmlElement grp = xmlOutDoc.CreateElement("g"); - grp.SetAttribute("id", "C0"); - topOutElement.AppendChild(grp); - // these numbers were gotten from hlp backup circle. They may need adjusted - // as genmacs are used! - cx = -76; - cy = -306; - grp.AppendChild(Ellipse(430,450)); - Convertn = savconvertn; - } - - xmlNds = top.SelectNodes("USERDEF"); - - // Now for each user defined macro, create a svg group with the - // name given to it. - foreach (XmlNode nd in xmlNds) - { - XmlNode name = nd.SelectSingleNode("NAME"); - XmlElement elm = (XmlElement) name; - XmlElement grp = xmlOutDoc.CreateElement("g"); - string tmpdebug = name.InnerText.Trim("\n".ToCharArray()); - grp.SetAttribute("id",tmpdebug); - topOutElement.AppendChild(grp); - XmlNode definition = nd.SelectSingleNode("DEFINITION"); - try - { - string str = ProcessMacroDefinition(grp,definition,sv); - } - catch (Exception e) - { - MessageBox.Show("Error processing macro definition for " + this.genName, e.Message); - } - } - - } - - // convert the macro names as was done in 16-bit code? - string GetName(string oname) - { - for (int i=0; i<51 ; i++) - { - if (oname == OldName[i]) return NewName[i]; - } - return "NONAME"; - } - - private void PushFont() - { - if( fidx < 19 ) - { - fontfam[fidx] = RTFFontFamily; - fontsiz[fidx] = RTFFontSize; - fidx++; - } - return; - } - private void PopFont() - { - if( fidx > 0 ) - { - fidx--; - RTFFontFamily = fontfam[fidx]; - RTFFontSize = fontsiz[fidx]; - } - return; - } - private void PushPos() - { - if (Sp < 11) - { - Sp++; - PPx[Sp] = cx; - PPy[Sp] = cy; - } - } - - private void PopPos() - { - if (Sp > -1) - { - cx = PPx[Sp]; - cy = PPy[Sp]; - Sp--; - } - } - - private XmlElement RTFAdjust(float x, float y) - { - // This was used for RTF export only. - return null; - } - private XmlElement GDIAdjust(float x, float y) - { - // can't quite figure out what this is doing - // KBR TODO: gdiadjust - return null; - } - - private float GetOneFloat(string cmd) - { - int indxlp = cmd.IndexOf("("); - int indxrp = cmd.IndexOf(")"); - string tmp = cmd.Substring(indxlp+1,indxrp-indxlp-1); - return (float) Convert.ToDouble(tmp); - } - - private void GetTwoFloats(string cmd, ref float x, ref float y) - { - int indxlp = cmd.IndexOf("("); - int indxcm = cmd.IndexOf(","); - int indxrp = cmd.IndexOfAny("),".ToCharArray(),indxcm+1); - x = (float) Convert.ToDouble(cmd.Substring(indxlp+1,indxcm-indxlp-1)); - y = (float) Convert.ToDouble(cmd.Substring(indxcm+1,indxrp-indxcm-1)); - } - - private XmlElement DefineMacro(string str) - { - byte x = Convert.ToByte(173); - cx=cy=0; - return null; - } - private XmlElement HorizontalLine(float X) - { - XmlElement box = this.xmlOutDoc.CreateElement("line"); - box.SetAttribute("x1",cx.ToString()); - box.SetAttribute("y1",cy.ToString()); - box.SetAttribute("x2",(cx+CPoint(X)).ToString()); - box.SetAttribute("y2",cy.ToString()); - box.SetAttribute("stroke-width",Wid.ToString()); - return box; - } - - private XmlElement VerticalLine(float Y) - { - XmlElement box = this.xmlOutDoc.CreateElement("line"); - box.SetAttribute("x1",cx.ToString()); - box.SetAttribute("y1",cy.ToString()); - box.SetAttribute("x2",cx.ToString()); - box.SetAttribute("y2",(cy+CPoint(Y)).ToString()); - box.SetAttribute("stroke-width",Wid.ToString()); - return box; - } - - private XmlElement DiagLine(float X, float Y) - { - XmlElement box = this.xmlOutDoc.CreateElement("line"); - box.SetAttribute("x1",cx.ToString()); - box.SetAttribute("y1",cy.ToString()); - box.SetAttribute("x2",(cx+CPoint(X)).ToString()); - box.SetAttribute("y2",(cy+CPoint(Y)).ToString()); - box.SetAttribute("stroke-width",Wid.ToString()); - return box; - } - - private XmlElement Box(float X, float Y) - { - XmlElement box = this.xmlOutDoc.CreateElement("rect"); - box.SetAttribute("x",cx.ToString()); - box.SetAttribute("y",cy.ToString()); - box.SetAttribute("width",CPoint(X).ToString()); - box.SetAttribute("height",CPoint(Y).ToString()); - box.SetAttribute("fill","none"); - box.SetAttribute("stroke","black"); - box.SetAttribute("stroke-width",Wid.ToString()); - return box; - } - - private XmlElement Ellipse(float X, float Y) - { - XmlElement ellipse = this.xmlOutDoc.CreateElement("ellipse"); - ellipse.SetAttribute("cx",cx.ToString()); - ellipse.SetAttribute("cy",cy.ToString()); - ellipse.SetAttribute("rx",(CPoint(X)).ToString()); - ellipse.SetAttribute("ry",(CPoint(Y)).ToString()); - ellipse.SetAttribute("fill","none"); - ellipse.SetAttribute("stroke","black"); - ellipse.SetAttribute("stroke-width",Wid.ToString()); - return ellipse; - } - - private XmlElement Text(float X, float Y, string str) - { - //text-decoration="underline" - //font-weight="bold" - //font-style="italic" - XmlElement text = this.xmlOutDoc.CreateElement("text"); - text.SetAttribute("x",(cx+CPoint(X)).ToString()); - text.SetAttribute("y",(cy+CPoint(Y)).ToString()); - text.SetAttribute("font-family",FontChoice[RTFFontFamily]); - text.SetAttribute("font-size",(RTFFontSize/2).ToString()); - if ((RTFBUI&BOLD)==1) text.SetAttribute("font-weight","bold"); - if ((RTFBUI&UNDERLINE)==1) text.SetAttribute("text-decoration", "underline"); - if ((RTFBUI&ITALICS)==1) text.SetAttribute("font-style","italic"); - text.InnerText = str; - return text; - } - - private XmlElement[] RTFBox3(float x, float y) - { - XmlElement[] elearr = new XmlElement[3]; - PushPos(); - elearr[0] = VerticalLine(y); - cy += CPoint(y); - elearr[1] = HorizontalLine(x); - cx += CPoint(x); - float ftmp = (float) (y*-1.0); - cy += CPoint(ftmp); - elearr[2] = VerticalLine(y); - PopPos(); - return elearr; - } - - private XmlElement BitMap(float X, float Y, string str) - { - XmlElement bmap = xmlOutDoc.CreateElement("image"); - bmap.SetAttribute("x",(cx+CPoint(X)).ToString()); - bmap.SetAttribute("y",(cy+CPoint(Y)).ToString()); - Bitmap bmp= new Bitmap(str); - bmap.SetAttribute("width",bmp.Width.ToString()+"px"); - bmap.SetAttribute("height",bmp.Height.ToString()+"px"); - bmap.SetAttribute("xlink:href", str); - //bmap.SetAttribute("href", str); - return bmap; - } - - private void GetFont(string fontexp) - { - if (fontexp==null||fontexp=="") - { - RTFFontFamily = 3; - RTFFontSize = 20; - } - else if (fontexp.IndexOf("PICA")>-1) - { - RTFFontFamily = 4; - RTFFontSize = 24; - } - else if (fontexp.IndexOf("EXPANDED")>-1) - { - RTFFontSize = 24; - } - else if(fontexp.IndexOf("SANSERIF")>-1) - { - RTFFontFamily = 6; - RTFFontSize = 20; - } - else if (fontexp.IndexOf("PROPT12")>-1) - { - RTFFontFamily = 5; - RTFFontSize = 22; - } - else if (fontexp.IndexOf("COMPRESSED")>-1) - { - RTFFontFamily = 6; - RTFFontSize = 14; - } - if (fontexp.IndexOf("BOLD")>-1) RTFBUI |= BOLD; else RTFBUI &= 0xFFFE; - if (fontexp.IndexOf("UNDERLINE")>-1) RTFBUI |= UNDERLINE; else RTFBUI &= 0xFFFD; - if (fontexp.IndexOf("ITALICS")>-1) RTFBUI |= ITALICS; else RTFBUI &= 0xFFFB; - } - - private string ProcessMacroDefinition(XmlElement grp, XmlNode idef, XmlNode functions) - { - XmlElement elm = (XmlElement) idef; - string def = elm.InnerText; - StringBuilder str_result = new StringBuilder(); - - fidx=0; - cx = 0; - cy = 0; - Wid = 3; - RTFFontSize = 20; - RTFFontFamily = 3; - Sp = -1; - - // for each element, process the token for the element and add it to the - // xml tree (ProcessToken does both). - int lindx = 0; - int indx = def.IndexOf(";"); - while (indx>-1) - { - ProcessToken(grp, def, lindx, indx, functions); - lindx = indx+1; - indx = def.IndexOf(";",lindx); - } - return str_result.ToString(); - } - - private void ProcessToken(XmlElement grp, string def, int lindx, int indx, XmlNode functions) - { - - float x=0,y=0; - XmlElement retval = null; - //get the token, i.e. from last index to this one. - string token = def.Substring(lindx,indx-lindx).Trim(); - if (token==null||token=="")return; - string cmd = token; // cmd has the command without parens/values - if (token.IndexOf("(")>-1) cmd = token.Substring(0,token.IndexOf("(")); - if (token.IndexOf("RTFFontSize")>-1)cmd = "RTFFontSize"; - if (token.IndexOf("RTFFontFamily")>-1)cmd = "RTFFontFamily"; - if (token.IndexOf("RTFBUI")>-1) cmd = "RTFBUI"; - if (token.IndexOf("DEFMAC")>-1) cmd = "DEFMAC"; - if (token.IndexOf("HLINE")>-1) cmd = "HLINE"; - if (token.IndexOf("TEXT")>-1) cmd = "TEXT"; - if (token.IndexOf("BITMAP")>-1) cmd = "BITMAP"; - if (cmd==null)return; - try - { - switch (cmd) - { - case "DEFMAC": // command is DEFMAC(xyz) - MessageBox.Show("DEFMAC found, format = " + genName + " not converted - do manually"); - int indxl = token.IndexOf("("); - int indxr = token.IndexOf(")"); - string strx = token.Substring(indxl+1,indxr-indxl-1).Trim(); - retval = DefineMacro(strx); - break; - case "PUSHF": - PushFont(); - break; - case "POPF": - PopFont(); - break; - case "PUSHP": - PushPos(); - break; - case "POPP": - PopPos(); - break; - case "UNIT": - if (token.IndexOf("C")>-1)Convertn = C; - else if (token.IndexOf("I",4)>-1)Convertn = I; - else if (token.IndexOf("D")>-1)Convertn = D; - break; - case "RTFADJ": // command is RTFADJ(x,y) - GetTwoFloats(token, ref x, ref y); - retval = RTFAdjust(x, y); - break; - case "GDIADJ": // command is GDIADJ(x,y) - GetTwoFloats(token, ref x, ref y); - retval = GDIAdjust(x, y); - break; - case "FONT": //comand is FONT(FONTSTR) - GetFont(token); - break; - case "RTFFontSize": // command is RTFFontSize = x - int indxe = token.IndexOf("="); - string numstr = token.Substring(indxe+1,token.Length-indxe-1).Trim(); - if (numstr.IndexOf("*")>-1) - { - int i1 = Convert.ToInt32(numstr.Substring(0,numstr.IndexOf("*"))); - int i2 = Convert.ToInt32(numstr.Substring(numstr.IndexOf("*")+1,numstr.Length-numstr.IndexOf("*")-1)); - RTFFontSize = i1*i2; - } - else - RTFFontSize = Convert.ToInt32(numstr); - break; - case "RTFBUI": - // command either sets it '=' or ORs it '|= ', look for these. - int ieq = token.IndexOf("="); - string val = token.Substring(ieq+1,token.Length-ieq-1).Trim(); - int amt=0; - if (token.IndexOf("0x")<0) - amt = Convert.ToInt32(val); - else - amt = Convert.ToInt32(val,16); - int operor = token.IndexOf("|="); - int operand = token.IndexOf("&="); - if (operor<0 && operand<0) - RTFBUI = amt; - else if (operor>0) - RTFBUI |= amt; - else - RTFBUI &= amt; - break; - case "RTFFontFamily": // command is RTFFontFamily = x - indxe = token.IndexOf("="); - numstr = token.Substring(indxe+1,token.Length-indxe-1).Trim(); - RTFFontFamily = Convert.ToInt32(numstr); - break; - case "LNWID": // command is LNWID(w) - float w = GetOneFloat(token); - Wid = CPoint(w); - break; - case "MOVA": // command is MOVA(x, y) - GetTwoFloats(token,ref x, ref y); - cx = CPoint(x); - cy = CPoint(y); - break; - case "MOVR": // command is MOVR(x, y) - GetTwoFloats(token,ref x, ref y); - cx += CPoint(x); - cy += CPoint(y); - break; - case "HLINE": // command is HLINE(x) - x = GetOneFloat(token); - grp.AppendChild(HorizontalLine(x)); - break; - case "VLINE": // command is VLINE(y) - y = GetOneFloat(token); - grp.AppendChild(VerticalLine(y)); - break; - case "DLINE": // command is DLINE(x, y) - GetTwoFloats(token, ref x, ref y); - grp.AppendChild(DiagLine(x, y)); - break; - case "BOX": // command is BOX(x, y) - GetTwoFloats(token,ref x, ref y); - grp.AppendChild(Box(x,y)); - break; - case "BOX3SIDES": // command is BOX3SIDES(X,Y) - GetTwoFloats(token, ref x, ref y); - XmlElement [] bxsd = new XmlElement[3]; - bxsd = RTFBox3(x, y); - for (int ib = 0;ib < 3; ib++) grp.AppendChild(bxsd[ib]); - break; - case "DBOX": // * DBOX(X,Y,A) DoubleBox((double)X,(double)Y,(double)A); - MessageBox.Show("Not supported - ANO only"); - break; - case "CIRCLE": // command is CIRCLE(X,Y) - GetTwoFloats(token, ref x, ref y); - grp.AppendChild(Ellipse(x,y)); - break; - case "TEXT": // command is TEXT(x, y, str) - GetTwoFloats(token,ref x, ref y); - int indxrp = token.IndexOf(","); - indxrp = token.IndexOf(",",indxrp+1); - // this found the last argument, i.e. text - now find the " - indxrp = token.IndexOf("\"",indxrp+1); - string str = token.Substring(indxrp+1,token.LastIndexOf("\"")-indxrp-1); - // only trim if has characters? -// if (str!=null)str = str.Trim(); - if (str!=null && str!="") grp.AppendChild(Text(x, y, str)); - break; - case "BITMAP": - int ibm = token.IndexOf("BITMAP"); - int ibmq = token.IndexOf("\"",ibm); - string thestr = token.Substring(ibm,ibmq-ibm); - string [] bmap = thestr.Split(" ".ToCharArray(),4); - x=(float)Convert.ToDouble(bmap[1]); - y=(float)Convert.ToDouble(bmap[2]); - thestr=bmap[3]; - if (thestr.IndexOf("~FORMAT\\")>-1) thestr=thestr.Replace("~FORMAT","E:\\VE-PROMS\\FORMAT"); - grp.AppendChild(BitMap(x,y,thestr)); - break; - case "ABSOLUTE": // no-op ? - break; - default: // function calls - // see if in the STATICVOID list. The name is the function name - // without () or parameters... - - XmlNode parent = functions.ParentNode; - XmlNode foundsv = parent.SelectSingleNode("STATICVOID[NAME = \""+cmd+"\"]"); - if (foundsv==null) - Console.WriteLine("Name " + genName + " failed. The token is not in list, token = " +token); - else - { - XmlNode param = foundsv.SelectSingleNode("PARAMETERS"); - XmlNode deffn = foundsv.SelectSingleNode("DEFINITION"); - // get the argument value to pass in. - int ilp = token.IndexOf("("); - int irp = token.IndexOf(")"); - string aval=null; - if (ilp>0&&irp>0) aval = token.Substring(ilp+1,irp-ilp-1); - ProcessFunctions(grp, param.InnerText,functions, aval, deffn.InnerText); - } - break; - } - } - catch (Exception e) - { - Console.WriteLine("Name = " + genName + ". Error in token: " + token, e.Message); - retval = null; - } - return; - } - - private void ProcessFunctions(XmlElement grp, string param, XmlNode functions, string val, string fntext) - { - // Each function contains a series of commands that must be processed for the - // function. Results are added to the group element for this group (macro). - - string repstr=null; - // if there is a parameter, get the substitution string... - if (param.IndexOf("none")==-1) - { - int chrindx = param.IndexOf("char *"); - int end = -1; - if (chrindx>-1) - { - end = param.IndexOf("\"",chrindx); - repstr = param.Substring(chrindx+6,end-chrindx-6); - } - else - { - chrindx = param.IndexOf("int "); - if (chrindx>-1) - { - end = param.IndexOf("\"",chrindx); - repstr = param.Substring(chrindx+4,end-chrindx-4); - } - } - - } - - // find the function commands and include them here. - - string funstr = fntext; - if (repstr!=null)funstr = funstr.Replace(repstr,val); - // for each element, process commands. - int lindx = 0; - int indx = funstr.IndexOf(";"); - while (indx>-1) - { - - ProcessToken(grp, funstr, lindx, indx, functions); - lindx = indx+1; - indx = funstr.IndexOf(";",lindx); - } - } - } -} diff --git a/PROMS/fmtxml/HLPFSGall.xml b/PROMS/fmtxml/HLPFSGall.xml deleted file mode 100644 index 1ed89dae..00000000 Binary files a/PROMS/fmtxml/HLPFSGall.xml and /dev/null differ diff --git a/PROMS/fmtxml/PSI.cs b/PROMS/fmtxml/PSI.cs deleted file mode 100644 index 0f8d4c0e..00000000 --- a/PROMS/fmtxml/PSI.cs +++ /dev/null @@ -1,210 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.IO; -using System.Xml; -using System.Text.RegularExpressions; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private bool _DoingFields = false; - private int NumBoxes = 0; - private int NumTexts = 0; - private int NumFields = 0; - private int CountForLists = 0; - private Regex removeComment = new Regex("/[*].*?[*]/"); - private Regex removeComment1 = new Regex("/[*].*?$"); - private Regex removeComment2 = new Regex("[*]/"); - private string RemoveComments(string inStr) - { - string str = removeComment.Replace(inStr, ""); - str = removeComment1.Replace(str, ""); - str = removeComment2.Replace(str, ""); - return str.Trim(); - } - public void PsiIniToXml(ref FormatData fmtdata, string path) - { - string sLine; - - StreamReader myReader = new StreamReader(path);// Open file - while ((sLine = myReader.ReadLine()) != null)// read line-by-line - { - try - { - if (sLine.Length > 0) - { - switch (sLine.Substring(0, 1)) - { - case "[": - if (sLine.Contains("[OBJECT COUNT]")) - { - // read in the count of objects - these may not be in order, fix this: - sLine = myReader.ReadLine(); - while(sLine.StartsWith(";")) sLine = myReader.ReadLine(); // Skip Comments - int indx = sLine.IndexOf("="); - string tmp = sLine.Substring(indx + 1, sLine.Length - indx - 1); - if (sLine.Contains("BOXES")) - NumBoxes = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - else if (sLine.Contains("TEXT")) - NumTexts = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - else if (sLine.Contains("FIELDS")) - NumFields = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - sLine = myReader.ReadLine(); - while (sLine.StartsWith(";")) sLine = myReader.ReadLine(); // Skip Comments - indx = sLine.IndexOf("="); - tmp = sLine.Substring(indx + 1, sLine.Length -indx - 1); - if (sLine.Contains("BOXES")) - NumBoxes = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - else if (sLine.Contains("TEXT")) - NumTexts = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - else if (sLine.Contains("FIELDS")) - NumFields = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - sLine = myReader.ReadLine(); - while (sLine.StartsWith(";")) sLine = myReader.ReadLine(); // Skip Comments - indx = sLine.IndexOf("="); - tmp = sLine.Substring(indx + 1, sLine.Length -indx - 1); - if (sLine.Contains("BOXES")) - NumBoxes = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - else if (sLine.Contains("TEXT")) - NumTexts = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - else if (sLine.Contains("FIELDS")) - NumFields = tmp == "" ? 1 : Convert.ToInt32(RemoveComments(tmp)) + 1; - if (NumBoxes == 0) NumBoxes++; - if (NumTexts == 0) NumTexts++; - if (NumFields == 0) NumFields++; - fmtdata.ProcData.Psi.Boxes = new PsiBox[NumBoxes]; - fmtdata.ProcData.Psi.Labels = new PsiLabel[NumTexts]; - fmtdata.ProcData.Psi.Fields = new PsiField[NumFields]; - break; - } - if (sLine.Contains("[DIALOG]") || sLine.Contains("[BOXES]") || sLine.Contains("[TEXT]") || sLine.Contains("[FIELDS]")) - { - _DoingFields = sLine.Contains("[FIELDS]"); - CountForLists = 0; - break; - } - break; - case ";": - break; - case "/": - if (sLine[1] == '*') break; // if it isn't a comment, fall thru to the default. - if (sLine.IndexOf("=") >= 0) - { - AddParam(ref fmtdata, RemoveComments(sLine)); - } - break; - default: - if (sLine.IndexOf("=") >= 0) - { - AddParam(ref fmtdata, RemoveComments(sLine)); - } - break; - } - } - } - catch (Exception ex) - { - Console.WriteLine(string.Format("error parsing .INI file: {0}, message: {1}", path, ex.Message)); - } - } - myReader.Close(); - } - private Regex findBOX = new Regex("^BOX[0-9]+$"); - private Regex findSIZE = new Regex("^SIZE$"); - private Regex findFONT = new Regex("^FONT$"); - private Regex findCAPTION = new Regex("^CAPTION$"); - private Regex findBUTTONSONBOTTOM = new Regex("^BUTTONSONBOTTOM$"); - private Regex findTEXT = new Regex("^TEXT[0-9]+$"); - private void AddParam(ref FormatData fmtdata, string sParam) - { - int i = sParam.IndexOf("="); - string attrname = sParam.Substring(0, i); - if (findSIZE.IsMatch(attrname)) - { - int end = (sParam.IndexOf(";") > -1) ? sParam.IndexOf(";") : sParam.Length; - string sb = sParam.Substring(i + 1, end - i - 1); - string[] split = sb.Split(new char[] { ',' }); - fmtdata.ProcData.Psi.x = Convert.ToInt32(split[0].Trim()); - fmtdata.ProcData.Psi.y = Convert.ToInt32(split[1].Trim()); - return; - } - if (findFONT.IsMatch(attrname)) - { - int end = (sParam.IndexOf(";") > -1) ? sParam.IndexOf(";") : sParam.Length; - string sb = sParam.Substring(i + 1, end - i - 1); - string[] split = sb.Split(new char[] { ',' }); - fmtdata.ProcData.Psi.font = split[0].Trim(); - return; - } - if (findCAPTION.IsMatch(attrname)) - { - int end = (sParam.IndexOf(";") > -1) ? sParam.IndexOf(";") : sParam.Length; - fmtdata.ProcData.Psi.Caption = sParam.Substring(i + 1, end-i-1).Replace("\"",""); - return; - } - if (findBUTTONSONBOTTOM.IsMatch(attrname)) - { - int end = (sParam.IndexOf(";") > -1) ? sParam.IndexOf(";") : sParam.Length; - fmtdata.ProcData.Psi.ButtonsOnBottom = sParam.Substring(i + 1, end - i - 1); - return; - } - if (findBOX.IsMatch(attrname)) // attrname.StartsWith("BOX")) - { - // - int end = (sParam.IndexOf(";") > -1) ? sParam.IndexOf(";") : sParam.Length; - string sb = sParam.Substring(i + 1, end - i - 1); - string[] split = sb.Split(new char[] { ',' }); - if (CountForLists <= NumBoxes - 1) - { - fmtdata.ProcData.Psi.Boxes[CountForLists].style = split[0].Trim(); - fmtdata.ProcData.Psi.Boxes[CountForLists].x = Convert.ToInt32(split[1].Trim()); - fmtdata.ProcData.Psi.Boxes[CountForLists].y = Convert.ToInt32(split[2].Trim()); - fmtdata.ProcData.Psi.Boxes[CountForLists].width = Convert.ToInt32(split[3].Trim()); - fmtdata.ProcData.Psi.Boxes[CountForLists].height = Convert.ToInt32(split[4].Trim()); - } - CountForLists++; - return; - } - if (findTEXT.IsMatch(attrname)) - { - // - int end = (sParam.IndexOf(";") > -1) ? sParam.IndexOf(";") : sParam.Length; - string sb = sParam.Substring(i + 1, end - i - 1); - string[] split = sb.Split(new char[] { ',' }); - fmtdata.ProcData.Psi.Labels[CountForLists].text = split[0].Trim(); - fmtdata.ProcData.Psi.Labels[CountForLists].Justify = split[1].Trim(); - fmtdata.ProcData.Psi.Labels[CountForLists].x = Convert.ToInt32(split[2].Trim()); - fmtdata.ProcData.Psi.Labels[CountForLists].y = Convert.ToInt32(split[3].Trim()); - fmtdata.ProcData.Psi.Labels[CountForLists].width = Convert.ToInt32(split[4].Trim()); - fmtdata.ProcData.Psi.Labels[CountForLists].height = Convert.ToInt32(split[5].Trim()); - CountForLists++; - return; - } - if (_DoingFields) - { - // - // - - int end = (sParam.IndexOf(";") > -1) ? sParam.IndexOf(";") : sParam.Length; - string sb = sParam.Substring(i + 1, end - i - 1); - string[] split = sb.Split(new char[] { ',' }); - // first check whether it is a text field or a logical (checkbox) field: - fmtdata.ProcData.Psi.Fields[CountForLists].name = attrname; - fmtdata.ProcData.Psi.Fields[CountForLists].type = split[0].Trim(); - string typ = fmtdata.ProcData.Psi.Fields[CountForLists].type; - fmtdata.ProcData.Psi.Fields[CountForLists].text = split[1] == null ? null : split[1].Trim(); - if (typ.ToUpper() == "TEXT") - fmtdata.ProcData.Psi.Fields[CountForLists].Length = Convert.ToInt32(split[2].Trim()); - else - fmtdata.ProcData.Psi.Fields[CountForLists].Length = 0; - fmtdata.ProcData.Psi.Fields[CountForLists].x = Convert.ToInt32(split[3].Trim()); - fmtdata.ProcData.Psi.Fields[CountForLists].y = Convert.ToInt32(split[4].Trim()); - fmtdata.ProcData.Psi.Fields[CountForLists].width = Convert.ToInt32(split[5].Trim()); - fmtdata.ProcData.Psi.Fields[CountForLists].height = Convert.ToInt32(split[6].Trim()); - CountForLists++; - } - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_ByrBwd.cs b/PROMS/fmtxml/PlantSpecific_ByrBwd.cs deleted file mode 100644 index 13afb456..00000000 --- a/PROMS/fmtxml/PlantSpecific_ByrBwd.cs +++ /dev/null @@ -1,221 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddCWEfmt(ref FormatData fmtdata) - { - fmtdata.ProcData.CheckOffData.SkipSpaces = "True"; - fmtdata.ProcData.CheckOffData.CheckOffList[2].Macro = "C3"; - fmtdata.ProcData.CheckOffData.CheckoffOnSubStepsOnly = "True"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "475.2,252.2,144"; - fmtdata.SectData.ReplaceStrData[3].Flag = "RNO, Caution, Note, Table, Substep, Attach"; - fmtdata.SectData.ReplaceStrData[4].Flag = "RNO, Caution, Note, Table, Substep, Attach"; - fmtdata.StepData[9].TabData.Ident = " {!C2}{numeric} "; - fmtdata.StepData[9].TabData.RNOIdent = " {!C2}{numeric} "; - fmtdata.BoxData[2].TabPos = 265F; - fmtdata.BoxData[2].Start = 128F; - fmtdata.BoxData[2].End = 420F; - fmtdata.BoxData[2].TxtStart = 151F; - fmtdata.BoxData[2].TxtWidth = 254F; - fmtdata.BoxData[1].TabPos = 265F; - fmtdata.BoxData[1].Start = 128F; - fmtdata.BoxData[1].End = 420F; - fmtdata.BoxData[1].TxtStart = 151F; - fmtdata.BoxData[1].TxtWidth = 254F; - fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = "212,212"; - fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAdj = "-40"; - fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99"; - fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99"; - // Transitions - fmtdata.TransData.TransTypeData[4].TransFormat = "{Sect Hdr}, Step {First Step}"; - fmtdata.TransData.TransTypeData[4].TransMenu = "{Sect Hdr}, Step {First Step}"; - } - private void AddCWE00fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "489,229.2,144"; - fmtdata.StepData[2].TabData.Ident = "{ALPHA}. "; - fmtdata.StepData[1].TabData.Ident = "{alpha}) "; - fmtdata.SectData.StepSectionData.StpSectLayData.BoxLeftAdj = "-43.2"; - fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99"; - fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99"; - } - private void AddEXCLNfmt(ref FormatData fmtdata) - { - fmtdata.ProcData.CheckOffData.SkipSpaces = "True"; - fmtdata.ProcData.CheckOffData.CheckOffList[2].Macro = "C3"; - fmtdata.ProcData.CheckOffData.CheckoffOnSubStepsOnly = "True"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "475.2,229.2,144"; - fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,236.4,135.6"; - fmtdata.SectData.ReplaceStrData[3].Flag = "RNO, Caution, Note, Table, Substep, Attach"; - fmtdata.SectData.ReplaceStrData[4].Flag = "RNO, Caution, Note, Table, Substep, Attach"; - fmtdata.StepData[9].TabData.Ident = " {!C2}{numeric} "; - fmtdata.StepData[9].TabData.RNOIdent = " {!C2}{numeric} "; - fmtdata.StepData[1].TabData.Ident = "{alpha}) "; - fmtdata.BoxData[2].TabPos = 265F; - fmtdata.BoxData[2].Start = 128F; - fmtdata.BoxData[2].End = 420F; - fmtdata.BoxData[2].TxtStart = 151F; - fmtdata.BoxData[2].TxtWidth = 254F; - fmtdata.BoxData[1].TabPos = 265F; - fmtdata.BoxData[1].Start = 128F; - fmtdata.BoxData[1].End = 420F; - fmtdata.BoxData[1].TxtStart = 151F; - fmtdata.BoxData[1].TxtWidth = 254F; - fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99"; - fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99"; - // Transitions - fmtdata.TransData.TransTypeData[4].TransFormat = "{Sect Hdr}, Step {First Step}"; - fmtdata.TransData.TransTypeData[4].TransMenu = "{Sect Hdr}, Step {First Step}"; - } - private void AddEXCLN00fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "489,229.2,144"; - fmtdata.StepData[2].TabData.Ident = "{ALPHA}. "; - fmtdata.StepData[1].TabData.Ident = "{alpha}) "; - } - private void AddEXCLN00_OVRfmt(ref FormatData fmtdata) - { - fmtdata.BoxData[1].Index = 1; - fmtdata.BoxData[1].BXHorz = ConvertText("\x0C4"); - fmtdata.BoxData[1].BXLLC = ConvertText("\x0C0"); - fmtdata.BoxData[1].BXLRC = ConvertText("\x0D9"); - fmtdata.BoxData[1].BXULC = ConvertText("\x0DA"); - fmtdata.BoxData[1].BXURC = ConvertText("\x0BF"); - fmtdata.BoxData[1].BXVert = ConvertText("\x0B3"); - fmtdata.BoxData[1].Height = 0; - fmtdata.BoxData[1].TabPos = 213F; - fmtdata.BoxData[1].Start = 85F; - fmtdata.BoxData[1].End = 377F; - fmtdata.BoxData[1].TxtStart = 108F; - fmtdata.BoxData[1].TxtWidth = 254F; - fmtdata.BoxData[1].Font = new VE_Font(); - fmtdata.BoxData[1].Font.FontFamily = "Courier New"; - fmtdata.BoxData[1].Font.FontSize = "12"; - fmtdata.BoxData[1].Font.CPI = "10"; - - fmtdata.BoxData[2].Index = 2; - fmtdata.BoxData[2].BXHorz = "*"; - fmtdata.BoxData[2].BXLLC = "*"; - fmtdata.BoxData[2].BXLRC = "*"; - fmtdata.BoxData[2].BXULC = "*"; - fmtdata.BoxData[2].BXURC = "*"; - fmtdata.BoxData[2].BXVert = "*"; - fmtdata.BoxData[2].BXMLS = "*"; - fmtdata.BoxData[2].BXMRS = "*"; - fmtdata.BoxData[2].BXMID = "*"; - fmtdata.BoxData[2].BXUMID = "*"; - fmtdata.BoxData[2].BXLMID = "*"; - fmtdata.BoxData[2].Height = 0; - fmtdata.BoxData[2].TabPos = 213F; - fmtdata.BoxData[2].Start = 85F; - fmtdata.BoxData[2].End = 377F; - fmtdata.BoxData[2].TxtStart = 108F; - fmtdata.BoxData[2].TxtWidth = 254F; - fmtdata.BoxData[2].Font = new VE_Font(); - fmtdata.BoxData[2].Font.FontFamily = "Courier New"; - fmtdata.BoxData[2].Font.FontSize = "12"; - fmtdata.BoxData[2].Font.CPI = "10"; - } - private void AddEXCLN01fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "489,229.2,144"; - fmtdata.SectData.StepSectionData.StpSectLayData.BoxLeftAdj = "-43.2"; - fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99"; - fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99"; - } - private void AddEXEDEVfmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "471,180,120"; - fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = "200,200"; - fmtdata.SectData.StepSectionData.StpSectLayData.ColS = 66F; - fmtdata.SectData.StepSectionData.StpSectLayData.WidT = 526F; - fmtdata.StepData[2].TabData.RNOIdent = "ERG STEP : "; - fmtdata.StepData[3].TabData.RNOIdent = "ERG NOTE : "; - fmtdata.StepData[6].TabData.RNOIdent = "ERG CAUTION : "; - fmtdata.StepData[7].TabData.RNOIdent = "ERG NOTE : "; - fmtdata.StepData[9].TabData.RNOIdent = "ERG CAUTION : "; - fmtdata.StepData[43].ColOverride = "42"; - fmtdata.SectData.StepSectionData.StpSectLayData.UseRNOParentIdent = "True"; - fmtdata.SectData.StepSectionData.StpSectLayData.DevNoteOrCautionTabOffset = "42"; - } - } - public partial class FmtToXml - { - private void AddCWEfmt(ref PageStyles pgstyles) - { - pgstyles.PgStyles[0].Items[5].Col = 270F; - } - private void AddEXCLN00fmt(ref PageStyles pgstyles) - { - pgstyles.PgStyles[0].Items[4].Col = 446F; - pgstyles.PgStyles[0].Items[4].Row = 30F; - pgstyles.PgStyles[0].Items[5].Col = 230F; - } - private void AddEXCLN00Doc(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].PageWidth = 576.2F; - dcstyles.DcStyles[0].PageLength = 600F; - dcstyles.DcStyles[0].FooterLen = 24F; - } - private void AddCWEDoc(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].PageWidth = 580.2F; - dcstyles.DcStyles[1].LeftMargin = 48F; - dcstyles.DcStyles[1].PageWidth = 579.2F; - dcstyles.DcStyles[1].PageLength = 578F; - } - private void CWEDocFixCB(ref DocStyles dcstyles) - { - for(int i=0;i " + - "" + - "" + - "" + - "" + - ""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + - "*" + - ""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - } - private void AddEXCLN(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - ""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + - "*" + - ""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_Calvert.cs b/PROMS/fmtxml/PlantSpecific_Calvert.cs deleted file mode 100644 index b18ab944..00000000 --- a/PROMS/fmtxml/PlantSpecific_Calvert.cs +++ /dev/null @@ -1,528 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddBGEALNfmt(ref FormatData fmtdata) - { - fmtdata.TPL = "0, 0, 0, 0, 0, 0, title\n1, 1, 65, 10,-19, -32768,\n2, 42, 0, 26, -1, 0,DEVICE\n2, 42, 27, 31, -1, 0,SETPOINT\n2, 42, 0, 77, 0, 0,POSSIBLE CAUSES\n2, 42, 0, 77, 0, 0,AUTOMATIC ACTIONS\n2, 42, 0, 0, 12294, 5186, CONDITION RESPONSE\n2, 42, 0, 77, 0, 0,ANNUNCIATOR COMPENSATORY ACTIONS\n2, 42, 0, 77, 0, 0,REFERENCES\n\n"; - fmtdata.SectData.StepSectionData.StpSectLayData.CautionNoteOrder = "7,6,22"; // Note,Caution,Warning - fmtdata.SectData.StepSectionData.CompressHPSub = "False"; - fmtdata.SectData.StepSectionData.CompressPropSubSup = "True"; - fmtdata.PrintData.UnitNumber = "True"; - fmtdata.PrintData.SpecialCaseCalvert = "True"; // do I need this for alarms - fmtdata.PrintData.SpecialCaseCalvertAlarm = "True"; - fmtdata.ProcData.TitleLength = 37; - fmtdata.ProcData.CoverTitleLength = 45; - fmtdata.SectData.StepSectionData.SequentialTabFormat[1].TabFormat = " {seq}. "; - fmtdata.SectData.StepSectionData.SequentialTabFormat[1].PrintTabFormat = " {seq}. "; - fmtdata.StepData[2].TabData.IdentEdit = "WINDOW "; - fmtdata.StepData[2].TabData.Ident = "WINDOW "; - fmtdata.StepData[2].UseOldTemplate = "True"; - //fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99"; - //fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99"; - - // Table - fmtdata.StepData[8].Font.FontFamily = "Lucida Console"; - - // AER Table - fmtdata.StepData[10].Font.FontFamily = "Lucida Console"; - - fmtdata.StepData[20].StepLayoutData.EveryNLines = "1"; - //fmtdata.StepData[22].StepLayoutData.EveryNLines = "-99"; - - // Title - fmtdata.StepData[12].StepEditData.Searchable = "True"; - //TitleWithTextRight - fmtdata.StepData[42].StepEditData.Searchable = "True"; - // TitleWithTextBelow - fmtdata.StepData[43].UseOldTemplate = "True"; - fmtdata.StepData[43].StepEditData.Searchable = "True"; - - fmtdata.StepData[14].StepLayoutData.EveryNLines = "-99"; - fmtdata.StepData[31].StepLayoutData.EveryNLines = "-99"; // not sure if I need this - inheritance - fmtdata.StepData[20].StepPrintData.Justify = "Center"; - fmtdata.StepData[20].OneLineBeforeTab = "True"; - fmtdata.StepData[20].SpaceIn = "True"; - fmtdata.StepData[20].StepLayoutData.EveryNLines = "1"; - fmtdata.StepData[0].Font.CPI = "12"; - fmtdata.BoxData[1].TxtStart = 356; - fmtdata.BoxData[1].TxtWidth = 130; - fmtdata.BoxData[1].BXMLS = null; - fmtdata.BoxData[1].BXMRS = null; - fmtdata.BoxData[2].TxtWidth = 440; - fmtdata.BoxData[3].TxtWidth = 440; - fmtdata.BoxData[4].TxtWidth = 440; - - fmtdata.SectData.ReplaceStrData[10].ReplaceWord = @"(\[B\w*\])"; - fmtdata.SectData.ReplaceStrData[10].ReplaceWith = @"\b $1\b0 "; - } - private void AddBGEEOPfmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.CompressHPSub = "False"; - fmtdata.SectData.StepSectionData.CompressPropSubSup = "True"; - fmtdata.PrintData.UnitNumber = "True"; - fmtdata.PrintData.SpecialCaseCalvert = "True"; - fmtdata.SectData.SectionNumber.Level0Big = "True"; - fmtdata.SectData.SectionHeader.Level0Big = "True"; - fmtdata.SectData.StepSectionData.StpSectLayData.ColS = 30; - fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,192,126"; - fmtdata.SectData.StepSectionData.StpSectLayData.ColT = -16; - fmtdata.SectData.StepSectionData.StpSectLayData.WidT = 442; - fmtdata.SectData.StepSectionData.StpSectLayData.TabPtsPerChar = 6.2f; - fmtdata.SectData.StepSectionData.StpSectLayData.CautionNoteOrder = "29,7,6,22"; // Message,Note,Caution,Warning - fmtdata.SectData.StepSectionData.SequentialTabFormat[4].TabFormat = "{seq})"; - fmtdata.SectData.StepSectionData.SequentialTabFormat[4].PrintTabFormat = "{seq})"; - fmtdata.TransData.UseSpecificTransitionModifier = "True"; - fmtdata.TransData.UseSpecificPageNo = "True"; - fmtdata.StepData[2].TabData.Ident = " {numeric}. "; - fmtdata.StepData[2].TabData.IdentEdit = " {numeric}. "; - fmtdata.StepData[2].TabData.RNOIdent = " . "; - fmtdata.StepData[2].TabData.RNOIdentEdit = " . "; - - fmtdata.StepData[6].SeparateBox = "True"; - //fmtdata.StepData[6].MatchUpRNO = "False"; - fmtdata.StepData[7].SeparateBox = "True"; - //fmtdata.StepData[7].MatchUpRNO = "False"; - - // Table - fmtdata.StepData[8].Font.FontFamily = "Lucida Console"; - - // AER Table - fmtdata.StepData[10].Font.FontFamily = "Lucida Console"; - - fmtdata.StepData[29].CenterOneLineOnly = "False"; // this is BGE's message type (used as paragraph off section. - fmtdata.StepData[29].MatchUpRNO = "False"; - fmtdata.StepData[29].AlignNullTabWSectHead = "True"; - - // fix caution/notes starting xlocation: - fmtdata.StepData[6].ColOverride = "72"; - fmtdata.StepData[7].ColOverride = "72"; - fmtdata.StepData[20].ColOverride = "72"; - fmtdata.StepData[21].ColOverride = "72"; - fmtdata.StepData[22].ColOverride = "72"; - fmtdata.StepData[23].ColOverride = "72"; - fmtdata.StepData[26].ColOverride = "72"; - fmtdata.StepData[27].ColOverride = "72"; - fmtdata.StepData[28].ColOverride = "72"; - fmtdata.StepData[29].ColOverride = "72"; - fmtdata.StepData[32].ColOverride = "72"; - - // equip list - don't override width: - fmtdata.StepData[31].WidthOverride = null; - fmtdata.StepData[31].WidthOverrideEdit = null; - - fmtdata.TransData.TransTypeData[4].TransFormat = @"{Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}"; - fmtdata.TransData.TransTypeData[5].TransFormat = @"{Proc Num}, \ul {Proc Title}\ulnone , {Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}"; - fmtdata.TransData.TransTypeData[6].TransFormat = @"{Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}{Page Num}"; - fmtdata.TransData.TransTypeData[9].TransFormat = @"{Proc Num} {IND}\ul {Proc Title}\ulnone "; - fmtdata.TransData.TransTypeData[10].TransFormat = @"{First Step}, \ul {Step Text}\ulnone {Page Num}"; - - fmtdata.SectData.ReplaceStrData[27].ReplaceWord = @"(\[B\w*\])"; - fmtdata.SectData.ReplaceStrData[27].ReplaceWith = @"\b $1\b0 "; - } - private void AddBGEEOPOverridefmt(ref FormatData fmtdata) - { - fmtdata.TransData.TransTypeData[0].TransUI = "ProcMenu, SectDefault, StepAllowNone, StepFirst"; - fmtdata.TransData.TransTypeData[4].TransUI = "ProcCur, SectMenuAny, StepAllowNone, StepFirst"; - fmtdata.TransData.TransTypeData[5].TransUI = "ProcMenu, SectMenuAny, StepAllowNone, StepFirst"; - - } - } - public partial class FmtToXml - { - private void AddBGEEOPDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].TopMargin = 96; - dcstyles.DcStyles[0].CBLoc = 6; - dcstyles.DcStyles[1].PageLength = 600; - dcstyles.DcStyles[1].PageWidth = 552; - dcstyles.DcStyles[1].EndMargin = 206; - dcstyles.DcStyles[2].CBMargin = 96; - dcstyles.DcStyles[2].CBMarginR = 335; - dcstyles.DcStyles[2].CBLoc = 6; - dcstyles.DcStyles[2].EndMargin = 75; - dcstyles.DcStyles[2].PageWidth = 552; - dcstyles.DcStyles[2].CenterLineX = 240; - dcstyles.DcStyles[2].CenterLineYTop = 647; - dcstyles.DcStyles[2].CenterLineYBottom = 24; - dcstyles.DcStyles[3].PageWidth = 552; - dcstyles.DcStyles[3].CenterLineX = 240; - dcstyles.DcStyles[3].CenterLineYTop = 624; - dcstyles.DcStyles[3].CenterLineYBottom = 24; - - // Attachment Step - dcstyles.DcStyles[4].FooterLen = 0; - dcstyles.DcStyles[4].PageWidth = 552; - - - // EOP Placekeeper - dcstyles.DcStyles[12].TopMargin = 138; - dcstyles.DcStyles[12].PageLength = 609; - dcstyles.DcStyles[12].LeftMargin = 106; - - // AOP Placekeeper - dcstyles.DcStyles[13].TopMargin = 138; - dcstyles.DcStyles[13].PageLength = 609; - dcstyles.DcStyles[13].LeftMargin = 106; - - // various styles without DONTCOUNTINTOC - dcstyles.DcStyles[6].DocStructStyle.DocStyle = "DontNumberInTOC"; // Cover page - dcstyles.DcStyles[10].DocStructStyle.DocStyle = "DontNumberInTOC"; // list of effective pages - dcstyles.DcStyles[11].DocStructStyle.DocStyle = "TableOfContents"; // Table of Contents - } - private void AddBGEEOPDOC_Y00(ref DocStyles dcstyles) - { - // AOP PlaceKeeper w/ Initials - dcstyles.DcStyles[2].TopMargin = 138; - dcstyles.DcStyles[2].PageLength = 609; - dcstyles.DcStyles[2].LeftMargin = 76; - } - private void AddBGEEOPPage(ref PageStyles pgstyles) - { - pgstyles.PgStyles[0].Items[2].Col = 480; - pgstyles.PgStyles[0].Items[3].Col = 480; - pgstyles.PgStyles[0].Items[4].Col = 480; - pgstyles.PgStyles[1].Items[2].Col = 480; - pgstyles.PgStyles[1].Items[3].Col = 480; - pgstyles.PgStyles[1].Items[4].Col = 480; - pgstyles.PgStyles[2].Items[2].Col = 480; - pgstyles.PgStyles[2].Items[3].Col = 480; - pgstyles.PgStyles[2].Items[4].Col = 480; - pgstyles.PgStyles[2].Items[6].Col = 120; - pgstyles.PgStyles[3].Items[6].Col = 246; - pgstyles.PgStyles[4].Items[2].Col = 480; - pgstyles.PgStyles[4].Items[3].Col = 480; - pgstyles.PgStyles[5].Items[2].Col = 480; - pgstyles.PgStyles[5].Items[3].Col = 480; - pgstyles.PgStyles[6].Items[2].Col = 474; - pgstyles.PgStyles[6].Items[3].Col = 474; - pgstyles.PgStyles[6].Items[4].Col = 474; - pgstyles.PgStyles[7].Items[2].Col = 474; - pgstyles.PgStyles[7].Items[3].Col = 474; - pgstyles.PgStyles[8].Items[2].Col = 474; - pgstyles.PgStyles[8].Items[3].Col = 474; - pgstyles.PgStyles[8].Items[4].Col = 474; - // EOP Placekeeper - pgstyles.PgStyles[9].Items[1].Col = -16; // BOX5 - pgstyles.PgStyles[9].Items[2].Col = 464; // EOPNUM - pgstyles.PgStyles[9].Items[3].Col = 464; // REVUNIT - pgstyles.PgStyles[9].Items[4].Col = 463; // Page {PAGE} of {OF} - pgstyles.PgStyles[9].Items[5].Col = 227; // PLACEKEEPER - - Array.Resize(ref pgstyles.PgStyles[9].Items, 7); - pgstyles.PgStyles[9].Items[6].Token = "NOTE: Continuously applicable steps are designated with a \"C\" in the DONE column."; // Continuous foot note - pgstyles.PgStyles[9].Items[6].Row = 750; // Continuous foot note - pgstyles.PgStyles[9].Items[6].Col = 227; // Continuous foot note - pgstyles.PgStyles[9].Items[6].Justify = "PSCenter"; // Continuous foot note - pgstyles.PgStyles[9].Items[6].Style = new VE_Font(); - pgstyles.PgStyles[9].Items[6].Style.FontFamily = "Arial"; - pgstyles.PgStyles[9].Items[6].Style.FontSize = "10"; - pgstyles.PgStyles[9].Items[6].Style.FontStyle = "None"; - pgstyles.PgStyles[9].Items[6].Style.CPI = "12"; - - pgstyles.PgStyles[10].Items[2].Col = 474; - pgstyles.PgStyles[10].Items[3].Col = 474; - pgstyles.PgStyles[11].Items[2].Col = 480; - pgstyles.PgStyles[11].Items[3].Col = 480; - pgstyles.PgStyles[11].Items[4].Col = 480; - pgstyles.PgStyles[13].Items[2].Col = 474; - pgstyles.PgStyles[13].Items[3].Col = 474; - pgstyles.PgStyles[13].Items[4].Col = 474; - - // AOP Placekeeper - pgstyles.PgStyles[14].Items[1].Col = -16; // BOX5 - pgstyles.PgStyles[14].Items[2].Col = 464; // EOPNUM - pgstyles.PgStyles[14].Items[3].Col = 464; // REVUNIT - pgstyles.PgStyles[14].Items[4].Col = 227; // SECTIONLEVELNUMBER - pgstyles.PgStyles[14].Items[5].Col = 227; // Page {PAGE} of {OF} - pgstyles.PgStyles[14].Items[6].Col = 227; // PLACEKEEPER - - Array.Resize(ref pgstyles.PgStyles[14].Items, 8); - pgstyles.PgStyles[14].Items[7].Token = "NOTE: Continuously applicable steps are designated with a \"C\"; in the DONE column."; // Continuous foot note - pgstyles.PgStyles[14].Items[7].Row = 750; // Continuous foot note - pgstyles.PgStyles[14].Items[7].Col = 227; // Continuous foot note - pgstyles.PgStyles[14].Items[7].Justify = "PSCenter"; // Continuous foot note - pgstyles.PgStyles[14].Items[7].Style = new VE_Font(); - pgstyles.PgStyles[14].Items[7].Style.FontFamily = "Arial"; - pgstyles.PgStyles[14].Items[7].Style.FontSize = "10"; - pgstyles.PgStyles[14].Items[7].Style.FontStyle = "None"; - pgstyles.PgStyles[14].Items[7].Style.CPI = "12"; - - } - private void AddBGEEOPPage_Z00(ref PageStyles pgstyles) - { - // AOP PlaceKeeper w/ Initials - pgstyles.PgStyles[1].Items[1].Col = -16; // BOX5 - pgstyles.PgStyles[1].Items[2].Col = 458; // EOPNUM - pgstyles.PgStyles[1].Items[3].Col = 458; // REVUNIT - pgstyles.PgStyles[1].Items[4].Col = 227; // SECTIONLEVELNUMBER - pgstyles.PgStyles[1].Items[5].Col = 227; // Page {PAGE} of {OF} - pgstyles.PgStyles[1].Items[6].Col = 227; // PLACEKEEPER - - Array.Resize(ref pgstyles.PgStyles[1].Items, 8); - pgstyles.PgStyles[1].Items[7].Token = "NOTE: Continuously applicable steps are designated with a \"C\"in the DONE column."; // Continuous foot note - pgstyles.PgStyles[1].Items[7].Row = 750; // Continuous foot note - pgstyles.PgStyles[1].Items[7].Col = 227; // Continuous foot note - pgstyles.PgStyles[1].Items[7].Justify = "PSCenter"; // Continuous foot note - pgstyles.PgStyles[1].Items[7].Style = new VE_Font(); - pgstyles.PgStyles[1].Items[7].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[7].Style.FontSize = "10"; - pgstyles.PgStyles[1].Items[7].Style.FontStyle = "None"; - pgstyles.PgStyles[1].Items[7].Style.CPI = "12"; - } - - private void AddBGEALNPage(ref PageStyles pgstyles) - { - pgstyles.PgStyles[1].Items[4].Token = "{COVERPROCTITLE}"; - - // remove the INIT item in proc steps: - int numstyles = pgstyles.PgStyles.Length; // number of current PgStyles - PageStyle[] pgs = new PageStyle[numstyles+1]; - PageStyle ps; - // copy existing page lists except for the one with the INIT - for (int i = 0; i < numstyles - 1; i++) - { - if (i != 4) - { - ps = new PageStyle(); - ps = pgstyles.PgStyles[i]; - pgs[i] = ps; - } - } - // now do the proc step pageslists without the INIT - ps = new PageStyle(); - ps.Name = "Procedure Steps"; - ps.Index = 4; - - PSItem[] Fpsitms = null; - Fpsitms = new PSItem[6]; - - PSItem pi = new PSItem(); - pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pi.Row = 12; - pi.Col = -3; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[0] = pi; - - pi = new PSItem(); - pi.Token = "{EOPNUM}"; - pi.Row = 24; - pi.Col = 432; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[1] = pi; - - pi = new PSItem(); - pi.Token = "Rev. {REVUNIT}"; - pi.Row = 36; - pi.Col = 432; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[2] = pi; - - pi = new PSItem(); - pi.Token = "{PROCTITLE}"; - pi.Row = 36; - pi.Col = 255; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[3] = pi; - - pi = new PSItem(); - pi.Token = "Page {PAGE} of {OF}"; - pi.Row = 48; - pi.Col = 432; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[4] = pi; - - pi = new PSItem(); - pi.Token = "{BOX5}"; - pi.Row = 48; - pi.Col = 6; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[5] = pi; - - ps.Items = Fpsitms; - pgs[4] = ps; - - // now add the Attachment Step - No Header - ps = new PageStyle(); - ps.Name = "Attachment Step - No Header"; - ps.Index = 5; - - Fpsitms = new PSItem[8]; - - pi = new PSItem(); - pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pi.Row = 12; - pi.Col = -3; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[0] = pi; - - pi = new PSItem(); - pi.Token = "{EOPNUM}"; - pi.Row = 24; - pi.Col = 438; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[1] = pi; - - pi = new PSItem(); - pi.Token = "{SECTIONLEVELNUMBER}"; - pi.Row = 36; - pi.Col = 438; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[2] = pi; - - pi = new PSItem(); - pi.Token = "Rev. {REVUNIT}"; - pi.Row = 48; - pi.Col = 438; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[3] = pi; - - pi = new PSItem(); - pi.Token = "{PROCTITLE}"; - pi.Row = 48; - pi.Col = 255; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[4] = pi; - - pi = new PSItem(); - pi.Token = "Page {DOCCURPAGE} of {DOCTOTPAGE}"; - pi.Row = 60; - pi.Col = 438; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "Bold"; - pi.Style.CPI = "12"; - Fpsitms[5] = pi; - - pi = new PSItem(); - pi.Token = "{BOX5}"; - pi.Row = 60; - pi.Col = 6; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[6] = pi; - - pi = new PSItem(); - pi.Token = "{SECTIONLEVELTITLE}"; - pi.Row = 96; - pi.Col = 255; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "14"; - pi.Style.FontStyle = "Underline, Bold"; - pi.Style.CPI = "12"; - Fpsitms[7] = pi; - - ps.Items = Fpsitms; - pgs[5] = ps; - - pgstyles.PgStyles = pgs; // save new pagelist - } - - private void AddBGEALNDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].ComponentList = true; - dcstyles.DcStyles[0].PageWidth = 558; - dcstyles.DcStyles[0].CBLoc = 4; - dcstyles.DcStyles[0].CBMargin = 35; - dcstyles.DcStyles[0].CBMarginR = 287; - - //adding new "Attachment Step - No Header" docstyle - Array.Resize(ref dcstyles.DcStyles, dcstyles.DcStyles.Length + 1); - - dcstyles.DcStyles[5].Name = "Attachment Step - No Header"; - dcstyles.DcStyles[5].Index = 5; - dcstyles.DcStyles[5].numberingsequence = 4; - dcstyles.DcStyles[5].IsStepSection = true; - dcstyles.DcStyles[5].UseCheckOffs = false; - dcstyles.DcStyles[5].UseColSByLevel = true; - dcstyles.DcStyles[5].oldtonew = 1048576; - dcstyles.DcStyles[5].CancelSectTitle = true; - dcstyles.DcStyles[5].SpecialStepsFoldout = false; - dcstyles.DcStyles[5].UndSpecialStepsFoldout = false; - dcstyles.DcStyles[5].ExtraLineHeader = false; - dcstyles.DcStyles[5].AlignHLSTabWithSect = false; - dcstyles.DcStyles[5].pagestyle = 5; - dcstyles.DcStyles[5].TopMargin = 120F; - dcstyles.DcStyles[5].FooterLen = 0F; - dcstyles.DcStyles[5].PageLength = 600; - dcstyles.DcStyles[5].PageWidth = 576F; - dcstyles.DcStyles[5].LeftMargin = 48F; - dcstyles.DcStyles[5].dstyle = new VE_Font(); - dcstyles.DcStyles[5].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[5].dstyle.FontSize = "11"; - dcstyles.DcStyles[5].dstyle.FontStyle = "None"; - dcstyles.DcStyles[5].dstyle.CPI = "12"; - dcstyles.DcStyles[5].DocStructStyle = new VE_DocStyle(); - dcstyles.DcStyles[5].DocStructStyle.DocStyleUse = E_DocStyleUse.UseOnAllPages; - dcstyles.DcStyles[5].DocStructStyle.DocStyle = "DontNumberInTOC"; - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_Catawba.cs b/PROMS/fmtxml/PlantSpecific_Catawba.cs deleted file mode 100644 index 36d6863c..00000000 --- a/PROMS/fmtxml/PlantSpecific_Catawba.cs +++ /dev/null @@ -1,203 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddCATADEVfmt(ref FormatData fmtdata) - { - fmtdata.ProcData.TitleLength = 45; - // Fix Logic for CAPSPIfLastLower - fmtdata.ROData.CapRoIfLastLower = "False"; - fmtdata.ROData.CapSPIfLastLower = "True"; - fmtdata.SectData.ReplaceWordsInROs = "False"; - } - private void AddCATDEVfmt(ref FormatData fmtdata) - { - fmtdata.SectData.ReplaceWordsInROs = "False"; - } - private void AddCATfmt(ref FormatData fmtdata) // Catawba - { - // Fix Logic for CAPSPIfLastLower - fmtdata.ROData.CapRoIfLastLower = "False"; - fmtdata.ROData.CapSPIfLastLower = "True"; - fmtdata.FontData.FontSize = "12"; - //fmtdata.SectData.StepSectionData.StpSectLayData.Separator.SeparatorLocation = 2; - fmtdata.SectData.StepSectionData.StpSectLayData.ColT = -3; - // ColS="42" WidT="454" ColRTable="0,264,138" WidSTableEdit="432,221,120" WidSTablePrint="480,221,120" - fmtdata.SectData.StepSectionData.StpSectLayData.ColS = 42; - fmtdata.SectData.StepSectionData.StpSectLayData.WidT = 455; - fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,264,138"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "432,221,120"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "480,221,120"; - fmtdata.SectData.StepSectionData.AdjustRNOCautionNoteWidth = "True"; - fmtdata.SectData.ReplaceWordsInROs = "False"; - - fmtdata.ProcData.TitleLength = 45; - // Base - fmtdata.StepData[0].StepLayoutData.STExtraSpace = "0"; - - // High - fmtdata.StepData[2].StepLayoutData.STExtraSpace = "12"; - - - for (int i = 0; i < fmtdata.StepData.Length; i++) - { - if (fmtdata.StepData[i].Font != null && fmtdata.StepData[i].Font.FontFamily == "Arial") - fmtdata.StepData[i].Font.FontSize = "12"; - if (fmtdata.StepData[i].TabData.Font.FontFamily == "Arial") - fmtdata.StepData[i].TabData.Font.FontSize = "12"; - } - - // caution separator - //fmtdata.StepData[6].StepLayoutData.STBoxindex = "1"; - fmtdata.StepData[6].TabData.Bullet.Separate = "True"; - fmtdata.StepData[6].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[6].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[6].TabData.Bullet.Font.FontSize = "12"; - fmtdata.StepData[6].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[6].TabData.Bullet.Font.CPI = "12"; - - // note location/tab - //fmtdata.StepData[7].StepLayoutData.STBoxindex = "1"; - fmtdata.StepData[7].TabData.Ident = "NOTE "; - fmtdata.StepData[7].TabData.IdentEdit = "NOTE "; - fmtdata.StepData[7].TabData.RNOIdent = "NOTE "; - fmtdata.StepData[7].TabData.Bullet.Separate = "True"; - fmtdata.StepData[7].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[7].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[7].TabData.Bullet.Font.FontSize = "12"; - fmtdata.StepData[7].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[7].TabData.Bullet.Font.CPI = "12"; - - // Bulleted High Level Step - fmtdata.StepData[9].TabData.Ident = "{bullet} "; - fmtdata.StepData[9].TabData.IdentEdit = "{bullet} "; - fmtdata.StepData[9].TabData.RNOIdent = "{bullet} "; - fmtdata.StepData[9].TabData.RNOIdentEdit = "{bullet} "; - - // RNOType - fmtdata.StepData[40].Font.FontFamily = "Arial"; - fmtdata.StepData[40].Font.FontSize = "12"; - fmtdata.StepData[40].StepLayoutData.STExtraSpace = "0"; - - //// note location (create a box to locate it) - //fmtdata.BoxData[1].Index = 1; - //fmtdata.BoxData[1].Start = 6; - //fmtdata.BoxData[1].End = 240; - //fmtdata.BoxData[1].TxtStart = 12; - //fmtdata.BoxData[1].TxtWidth = 450; - //fmtdata.BoxData[1].BXULC = " "; - //Disable extra Cautions and notes - // Caution 1 - fmtdata.StepData[20].Inactive = "True"; - // Caution 2 - fmtdata.StepData[21].Inactive = "True"; - // Caution 3 - fmtdata.StepData[27].Inactive = "True"; - // Caution 4 - fmtdata.StepData[29].Inactive = "True"; - // Note 1 - fmtdata.StepData[22].Inactive = "True"; - // Note 2 - fmtdata.StepData[23].Inactive = "True"; - // Note 3 - fmtdata.StepData[26].Inactive = "True"; - // Note 4 - fmtdata.StepData[28].Inactive = "True"; - // Note 5 - fmtdata.StepData[32].Inactive = "True"; - } - private void AddCATfmtOVR(ref FormatData fmtdata) // Catawba - { - // Transitions - fmtdata.TransData.TransTypeData[0].TransFormat = "{Proc Num} ({Proc Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[0].TransMenu = "{Proc Num} ({Proc Title}), Step {First Step}"; - - fmtdata.TransData.TransTypeData[3].TransFormat = "{First Step} through {Last Step} of {?.Proc Num} ({?.Proc Title}), {?.Sect Num} ({?.Sect Title})"; - fmtdata.TransData.TransTypeData[3].TransMenu = "{First Step} through {Last Step} of {Proc Num} ({Proc Title}), {Sect Num} ({Sect Title})"; - fmtdata.TransData.TransTypeData[3].TransUI = "ProcMenu, SectMenuStep, StepFirst, StepLast"; - - fmtdata.TransData.TransTypeData[4].TransFormat = "{Sect Num} ({Sect Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[4].TransMenu = "{Sect Num} ({Sect Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[4].TransUI = "ProcCur, SectMenuAny, StepAllowNone, StepFirst"; - - fmtdata.TransData.TransTypeData[5].TransFormat = "{Proc Num} ({Proc Title}), {Sect Num} ({Sect Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[5].TransMenu = "{Proc Num} ({Proc Title}), {Sect Num} ({Sect Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[5].TransUI = "ProcMenu, SectMenuAny, StepAllowNone, StepFirst"; - - fmtdata.TransData.TransTypeData[6].TransUI = "ProcCur, SectMenuStep, StepFirst"; - - //RNO Separator - fmtdata.SectData.StepSectionData.StpSectPrtData.RNOSepString = "\xA0 "; - - } - } - public partial class FmtToXml - { - private void AddCATPage(ref PageStyles pgstyles) - { - // proc steps - pgstyles.PgStyles[0].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[0].Items[6].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[0].Items[9].Token = "Revision {REV}"; - // proc steps - no header - pgstyles.PgStyles[1].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[1].Items[6].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[1].Items[9].Token = "Revision {REV}"; - // enclosures - pgstyles.PgStyles[2].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[2].Items[6].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[2].Items[8].Token = "Revision {REV}"; - // Attachments - pgstyles.PgStyles[4].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[4].Items[6].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[4].Items[8].Token = "Revision {REV}"; - // Status Tree - pgstyles.PgStyles[5].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[5].Items[6].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[5].Items[8].Token = "Revision {REV}"; - // Table of contents - pgstyles.PgStyles[6].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[6].Items[5].Token = "{ROMANPAGE}"; - pgstyles.PgStyles[6].Items[7].Token = "Revision {REV}"; - } - - private void AddCATDOC(ref DocStyles dcstyles) - { - SetCatawbaDocStyleFont(ref dcstyles); - dcstyles.DcStyles[0].CBMargin = 50; - //dcstyles.DcStyles[0].CBLoc = 3; - dcstyles.DcStyles[0].PageLength = 624; - dcstyles.DcStyles[1].CBMargin = 50; - //dcstyles.DcStyles[1].CBLoc = 3; - dcstyles.DcStyles[1].PageLength = 624; - dcstyles.DcStyles[2].CBMargin = 50; - //dcstyles.DcStyles[2].CBLoc = 3; - dcstyles.DcStyles[2].PageLength = 624; - } - private static void SetCatawbaDocStyleFont(ref DocStyles dcstyles) - { - int i = 0; - int ii = 0; - // Set font to Arial 12 pt - for (i = 0; i < dcstyles.DcStyles.Length; i++) - { - dcstyles.DcStyles[i].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[i].dstyle.FontSize = "12"; - dcstyles.DcStyles[i].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[i].ContStyle.FontSize = "12"; - } - return; - } - } - public partial class RtfToSvg - { - private void AddCAT(XmlDocument myDoc) - { - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_ComanchePeak.cs b/PROMS/fmtxml/PlantSpecific_ComanchePeak.cs deleted file mode 100644 index ec18b299..00000000 --- a/PROMS/fmtxml/PlantSpecific_ComanchePeak.cs +++ /dev/null @@ -1,347 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddTuecfmt(ref FormatData fmtdata) // Comanche Peak - { - fmtdata.PrintData.PrintCommonForZeroUnit = "True"; - // SectionNumber - fmtdata.SectData.SectionNumber.Pos = 0; - fmtdata.SectData.SectionNumber.Just = "PSLeft"; - fmtdata.SectData.SectionNumber.Font.FontFamily = "Prestige Elite Tall"; - fmtdata.SectData.SectionNumber.Font.FontSize = "10"; - fmtdata.SectData.SectionNumber.Font.FontStyle = "None"; - fmtdata.SectData.SectionNumber.Font.CPI = "12"; - // SectionHeader - fmtdata.SectData.SectionHeader.Pos = 19; - fmtdata.SectData.SectionHeader.Just = "PSLeft"; - fmtdata.SectData.SectionHeader.Font.FontFamily = "Prestige Elite Tall"; - fmtdata.SectData.SectionHeader.Font.FontSize = "10"; - fmtdata.SectData.SectionHeader.Font.FontStyle = "Underline"; - fmtdata.SectData.SectionHeader.Font.CPI = "12"; - // StepSectionData - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "426,198,120"; //"426,192,120"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "426,198,120"; //"426,192,120"; - fmtdata.SectData.StepSectionData.StpSectLayData.ShowSectionTitles = "True"; - // High Level Step - fmtdata.StepData[2].TabData.Ident = " {numeric} "; - // Imediate Action High Level Step - fmtdata.StepData[3].TabData.Ident = "{!C0}{numeric} "; - // Caution - fmtdata.StepData[6].OneLineBeforeTab = "True"; - // Note - fmtdata.StepData[7].OneLineBeforeTab = "True"; - // Continuous Action High Level Step - fmtdata.StepData[9].TabData.Ident = "*{numeric} "; - // LossOfAC - still working on this - fmtdata.StepData[18].ColOverride = "38"; - fmtdata.StepData[18].ColOverrideEdit = "38"; - fmtdata.StepData[18].WidthOverride = "438,198,120"; //"438,192,120"; - fmtdata.StepData[18].WidthOverrideEdit = "438,198,120"; //"438,192,120"; - fmtdata.StepData[18].StepEditData.TypeMenu.MenuItem = "Symptoms and Entry Step"; - fmtdata.StepData[18].TabData.IdentEdit = "{numeric}) "; - fmtdata.StepData[18].TabData.Ident = "{numeric}) "; - fmtdata.StepData[18].TabData.RNOIdentEdit = " "; - //fmtdata.StepData[18].TabData.Justify = "Left"; - // Caution 2 - fmtdata.StepData[21].ParentType = "Base"; - // Paragraph - fmtdata.StepData[24].StepEditData.TypeMenu.MenuItem = "Indented Paragraph"; - fmtdata.StepData[24].TabData.IdentEdit = "{!.+?}{!.+?}"; // {!.+?} gets replaced with a space in PROMS - fmtdata.StepData[24].TabData.Ident = "{!.+?}{!.+?}"; - fmtdata.StepData[24].TabData.RNOIdent = "{!.+?}{!.+?}"; - fmtdata.StepData[24].TabData.RNOIdentEdit = "{!.+?}{!.+?}"; - // High5 - fmtdata.StepData[41].ColOverride = "20"; - fmtdata.StepData[41].ColOverrideEdit = "20"; - fmtdata.StepData[41].WidthOverride = "456,198,120"; //"456,192,120"; - fmtdata.StepData[41].WidthOverrideEdit = "456,198,120"; //"456,192,120"; - fmtdata.StepData[41].StepEditData.TypeMenu.MenuItem = "Unnumbered High Level Step"; - } - private void AddTuecfmtOVR(ref FormatData fmtdata) // Comanche Peak - override after inheritance - { - // Note - fmtdata.StepData[7].Inactive = "False"; - // Note 1 - fmtdata.StepData[22].Inactive = "True"; - // Note 2 - fmtdata.StepData[23].Inactive = "True"; - // Note 3 - fmtdata.StepData[26].Inactive = "True"; - // Note 4 - fmtdata.StepData[28].Inactive = "True"; - // Note 5 - fmtdata.StepData[32].Inactive = "True"; - } - - private void AddTuecDevfmt(ref FormatData fmtdata) // Comanche Peak - { - fmtdata.StepData[40].NoSpaceMultipleRNOs = true; - } - - //private void AddCPLOverridefmt(ref FormatData fmtdata) - //{ - // fmtdata.BoxData[1].BXLLC = "-12345"; //this will put in a null string - // fmtdata.BoxData[1].BXULC = "-12345"; //this will put in a null string - // fmtdata.BoxData[1].BXVert = "-12345"; //this will put in a null string - // fmtdata.BoxData[1].BXURC = "-12345"; //this will put in a null string - // fmtdata.BoxData[1].BXULC = "-12345"; //this will put in a null string - //} - - } - public partial class FmtToXml - { - private void AddTUECPage(ref PageStyles pgstyles) - { - // Procedure Steps - pgstyles.PgStyles[0].Items[2].Token = "UNIT {UNITNUMBER}"; - // Cover Page - pgstyles.PgStyles[1].Items[3].Token = "UNIT {UNITNUMBER}"; - // Cover Page with ECC Stamp - pgstyles.PgStyles[2].Items[3].Token = "UNIT {UNITNUMBER}"; - // Introduction & Appendix Pages - pgstyles.PgStyles[3].Items[3].Token = "UNIT {UNITNUMBER}"; - //Cover Page with Small Stamp - pgstyles.PgStyles[4].Items[3].Token = "UNIT {UNITNUMBER}"; - - // we need to add one new pgstyle - // expand the pgstyles.PgStyles array by one; - int numstyles = pgstyles.PgStyles.Length; // number of current PgStyles - numstyles += 1; // adding one more page styles - PageStyle[] pgs = new PageStyle[numstyles]; - PageStyle ps;// new PageStyle(); - // copy existing page lists - for (int i = 0; i < numstyles - 1; i++) - { - ps = new PageStyle(); - ps = pgstyles.PgStyles[i]; - pgs[i] = ps; - } - // Attachmet (Step Editor) - ps = new PageStyle(); - ps.Name = "Attachmet (Step Editor)"; - ps.Index = 5; - - PSItem[] Fpsitms = null; - Fpsitms = new PSItem[10]; - - PSItem pi = new PSItem(); - pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pi.Row = 12; - pi.Col = -3; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[0] = pi; - - pi = new PSItem(); - pi.Token = "{HEADER1}"; - pi.Row = 24; - pi.Col = -18; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[1] = pi; - - pi = new PSItem(); - pi.Token = "{EOPNUM}"; - pi.Row = 48; - pi.Col = 447; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[2] = pi; - - pi = new PSItem(); - pi.Token = "UNIT {UNITNUMBER}"; - pi.Row = 48; - pi.Col = 339; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[3] = pi; - - pi = new PSItem(); - pi.Token = "{PROCTITLE}"; - pi.Row = 84; - pi.Col = 129; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[4] = pi; - - pi = new PSItem(); - pi.Token = "REVISION NO. {REV}"; - pi.Row = 84; - pi.Col = 339; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[5] = pi; - - pi = new PSItem(); - pi.Token = "PAGE {PAGE} OF {OF}"; - pi.Row = 84; - pi.Col = 447; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "Bold"; - Fpsitms[6] = pi; - - pi = new PSItem(); - pi.Token = "{BOX1}"; - pi.Row = 96; - pi.Col = -18; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[7] = pi; - - pi = new PSItem(); - pi.Token = "{SECTIONLEVELNUMBER}"; - pi.Row = 120; - pi.Col = 244; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "Underline"; - Fpsitms[8] = pi; - - pi = new PSItem(); - pi.Token = "PAGE {DOCCURPAGE} OF {DOCTOTPAGE}"; - pi.Row = 130; - pi.Col = 244; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[9] = pi; - - ps.Items = Fpsitms; - pgs[numstyles - 1] = ps; - - pgstyles.PgStyles = pgs; // save new pagelist - - } - private void AddTUCEDOC(ref DocStyles dcstyles) - { - // we need to add one new docsyles - // expand the dcstyles.DcStyle array by one; - int numstyles = dcstyles.DcStyles.Length; // number of current docstyles - numstyles += 2; // adding one more docstyles - DocStyle[] dcs = new DocStyle[numstyles]; - for (int i = 0; i < numstyles-2; i++) - { - DocStyle dc = new DocStyle(); - dc = dcstyles.DcStyles[i]; - dcs[i] = dc; - if (i+1 == numstyles - 2) - { - dc = new DocStyle(); - dc = dcstyles.DcStyles[0]; // insert a new section by copying the first one - dcs[i+1] = dc; - dc = new DocStyle(); - dc = dcstyles.DcStyles[0]; // insert a new section by copying the first one - dcs[i+2] = dc; - } - } - dcstyles.DcStyles = dcs; - //"Procedure Steps" - dcstyles.DcStyles[0].oldtonew = 1; - dcstyles.DcStyles[0].CancelSectTitle = true; - dcstyles.DcStyles[0].CBLoc = 2; - // Cover Page - dcstyles.DcStyles[1].PageLength = 620; - // Cover Page with ECC Stamp - dcstyles.DcStyles[2].PageLength = 620; - // Introduction & Appendix Pages - dcstyles.DcStyles[3].PageLength = 640; - dcstyles.DcStyles[3].PageWidth = 564; - // Cover Page with Small Stamp - dcstyles.DcStyles[4].PageLength = 620; - // Purpose and Entry - step editor - dcstyles.DcStyles[5].Name = "Purpose and Entry"; - dcstyles.DcStyles[5].Index = 5; - dcstyles.DcStyles[5].pagestyle = 3; - dcstyles.DcStyles[5].oldtonew = 2; - dcstyles.DcStyles[5].CancelSectTitle = false; - dcstyles.DcStyles[5].TopMargin = 120; - dcstyles.DcStyles[5].PageLength = 640; - dcstyles.DcStyles[5].LeftMargin = 78; - dcstyles.DcStyles[5].EndFlag = 0; - dcstyles.DcStyles[5].EndString = null; - dcstyles.DcStyles[5].CBLoc = 2; - // Attachment (Step Editor) - dcstyles.DcStyles[6].Name = "Attachment (Step Editor)"; - dcstyles.DcStyles[6].Index = 6; - dcstyles.DcStyles[6].pagestyle = 5; - dcstyles.DcStyles[6].oldtonew = 4; - dcstyles.DcStyles[6].CancelSectTitle = true; - dcstyles.DcStyles[6].TopMargin = 150; - dcstyles.DcStyles[6].PageLength = 564; - dcstyles.DcStyles[6].LeftMargin = 60; - dcstyles.DcStyles[6].EndFlag = 0; - dcstyles.DcStyles[6].EndString = null; - dcstyles.DcStyles[6].CBLoc = 2; - } - } - public partial class RtfToSvg - { - private void AddTUEC(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[12]); - - xdNew.LoadXml(" " + - "" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[9]); - - xdNew.LoadXml(" " + - "" + - "" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[11]); - - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_Gen.cs b/PROMS/fmtxml/PlantSpecific_Gen.cs deleted file mode 100644 index ace17621..00000000 --- a/PROMS/fmtxml/PlantSpecific_Gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddGENfmt(ref FormatData fmtdata) // Catawba - { - fmtdata.SectData.StepSectionData.StpSectLayData.ColT = -3; - } - } - public partial class FmtToXml - { - private void AddGENPage(ref PageStyles pgstyles) - { - } - - } - public partial class RtfToSvg - { - private void AddGEN(XmlDocument myDoc) - { - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_McGuire.cs b/PROMS/fmtxml/PlantSpecific_McGuire.cs deleted file mode 100644 index c764783f..00000000 --- a/PROMS/fmtxml/PlantSpecific_McGuire.cs +++ /dev/null @@ -1,198 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddMCGfmt(ref FormatData fmtdata) // McGuire - { - // Fix Logic for CAPSPIfLastLower - fmtdata.ROData.CapRoIfLastLower = "False"; - fmtdata.ROData.CapSPIfLastLower = "True"; - fmtdata.FontData.FontSize = "12"; - //fmtdata.SectData.StepSectionData.StpSectLayData.Separator.SeparatorLocation = 2; - fmtdata.SectData.StepSectionData.StpSectLayData.ColT = -3; - // ColS="42" WidT="454" ColRTable="0,264,138" WidSTableEdit="432,221,120" WidSTablePrint="480,221,120" - fmtdata.SectData.StepSectionData.StpSectLayData.ColS = 42; - fmtdata.SectData.StepSectionData.StpSectLayData.WidT = 455; - fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,264,138"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "432,221,120"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "480,221,120"; - fmtdata.SectData.StepSectionData.AdjustRNOCautionNoteWidth = "True"; - fmtdata.SectData.ReplaceWordsInROs = "False"; - - fmtdata.ProcData.TitleLength = 45; - // Base - fmtdata.StepData[0].StepLayoutData.STExtraSpace = "0"; - - // High - fmtdata.StepData[2].StepLayoutData.STExtraSpace = "12"; - - for (int i = 0; i < fmtdata.StepData.Length; i++) - { - if (fmtdata.StepData[i].Font != null && fmtdata.StepData[i].Font.FontFamily == "Arial") - fmtdata.StepData[i].Font.FontSize = "12"; - if (fmtdata.StepData[i].TabData.Font.FontFamily == "Arial") - fmtdata.StepData[i].TabData.Font.FontSize = "12"; - } - // caution separator - //fmtdata.StepData[6].StepLayoutData.STBoxindex = "1"; - fmtdata.StepData[6].TabData.Bullet.Separate = "True"; - fmtdata.StepData[6].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[6].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[6].TabData.Bullet.Font.FontSize = "12"; - fmtdata.StepData[6].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[6].TabData.Bullet.Font.CPI = "12"; - - // note location/tab - //fmtdata.StepData[7].StepLayoutData.STBoxindex = "1"; - fmtdata.StepData[7].TabData.Ident = "NOTE "; - fmtdata.StepData[7].TabData.IdentEdit = "NOTE "; - fmtdata.StepData[7].TabData.RNOIdent = "NOTE "; - fmtdata.StepData[7].TabData.Bullet.Separate = "True"; - fmtdata.StepData[7].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[7].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[7].TabData.Bullet.Font.FontSize = "12"; - fmtdata.StepData[7].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[7].TabData.Bullet.Font.CPI = "12"; - - // Bulleted High Level Step - fmtdata.StepData[9].TabData.Ident = "{bullet} "; - fmtdata.StepData[9].TabData.IdentEdit = "{bullet} "; - fmtdata.StepData[9].TabData.RNOIdent = "{bullet} "; - fmtdata.StepData[9].TabData.RNOIdentEdit = "{bullet} "; - - // RNOType - fmtdata.StepData[40].Font.FontFamily = "Arial"; - fmtdata.StepData[40].Font.FontSize = "12"; - fmtdata.StepData[40].StepLayoutData.STExtraSpace = "0"; - - // note location (create a box to locate it) - //fmtdata.BoxData[1].Index = 1; - //fmtdata.BoxData[1].Start = 6; - //fmtdata.BoxData[1].End = 240; - //fmtdata.BoxData[1].TxtStart = 12; - //fmtdata.BoxData[1].TxtWidth = 450; - //fmtdata.BoxData[1].BXULC = " "; - - //Disable extra Cautions and notes - // Caution 1 - fmtdata.StepData[20].Inactive = "True"; - // Caution 2 - fmtdata.StepData[21].Inactive = "True"; - // Caution 3 - fmtdata.StepData[27].Inactive = "True"; - // Caution 4 - fmtdata.StepData[29].Inactive = "True"; - // Note 1 - fmtdata.StepData[22].Inactive = "True"; - // Note 2 - fmtdata.StepData[23].Inactive = "True"; - // Note 3 - fmtdata.StepData[26].Inactive = "True"; - // Note 4 - fmtdata.StepData[28].Inactive = "True"; - // Note 5 - fmtdata.StepData[32].Inactive = "True"; - } - private void AddMCGfmtOVR(ref FormatData fmtdata) // McGuire - { - // Transitions - fmtdata.TransData.Cap1stCharTrans = "False"; - - fmtdata.TransData.TransTypeData[0].TransFormat = "{Proc Num} ({Proc Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[0].TransMenu = "{Proc Num} ({Proc Title}), Step {First Step}"; - - fmtdata.TransData.TransTypeData[3].TransFormat = "{First Step} through {Last Step} of {?.Proc Num} ({?.Proc Title}), {?.Sect Num} ({?.Sect Title})"; - fmtdata.TransData.TransTypeData[3].TransMenu = "{First Step} through {Last Step} of {Proc Num} ({Proc Title}), {Sect Num} ({Sect Title})"; - fmtdata.TransData.TransTypeData[3].TransUI = "ProcMenu, SectMenuStep, StepFirst, StepLast"; - - fmtdata.TransData.TransTypeData[4].TransFormat = "{Sect Num} ({Sect Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[4].TransMenu = "{Sect Num} ({Sect Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[4].TransUI = "ProcCur, SectMenuAny, StepAllowNone, StepFirst"; - - fmtdata.TransData.TransTypeData[5].TransFormat = "{Proc Num} ({Proc Title}), {Sect Num} ({Sect Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[5].TransMenu = "{Proc Num} ({Proc Title}), {Sect Num} ({Sect Title}), Step {First Step}"; - fmtdata.TransData.TransTypeData[5].TransUI = "ProcMenu, SectMenuAny, StepAllowNone, StepFirst"; - - fmtdata.TransData.TransTypeData[6].TransUI = "ProcCur, SectMenuStep, StepFirst"; - } - private void AddMCGDEVfmt(ref FormatData fmtdata) - { - fmtdata.SectData.ReplaceWordsInROs = "False"; - } - } - public partial class FmtToXml - { - private void AddMCGPage(ref PageStyles pgstyles) - { - // proc steps - pgstyles.PgStyles[0].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[0].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[0].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[0].Items[10].Token = "Rev. {REV}"; - // proc steps - no header - pgstyles.PgStyles[1].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[1].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[1].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[1].Items[10].Token = "Rev. {REV}"; - // enclosures - pgstyles.PgStyles[2].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[2].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[2].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[2].Items[9].Token = "Rev. {REV}"; - // Attachments - pgstyles.PgStyles[4].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[4].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[4].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[4].Items[9].Token = "Rev. {REV}"; - // Status Tree - pgstyles.PgStyles[5].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[5].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[5].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[5].Items[9].Token = "Rev. {REV}"; - // Table of contents - pgstyles.PgStyles[6].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[6].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[6].Items[6].Token = "{ROMANPAGE}"; - pgstyles.PgStyles[6].Items[8].Token = "Rev. {REV}"; - } - private void AddMCGDOC(ref DocStyles dcstyles) - { - SetMcGuireDocStyleFont(ref dcstyles); - - dcstyles.DcStyles[0].CBMargin = 50; - //dcstyles.DcStyles[0].CBLoc = 3; - dcstyles.DcStyles[0].PageLength = 624; - dcstyles.DcStyles[1].CBMargin = 50; - //dcstyles.DcStyles[1].CBLoc = 3; - dcstyles.DcStyles[1].PageLength = 624; - dcstyles.DcStyles[2].CBMargin = 50; - //dcstyles.DcStyles[2].CBLoc = 3; - dcstyles.DcStyles[2].PageLength = 624; - } - private static void SetMcGuireDocStyleFont(ref DocStyles dcstyles) - { - int i = 0; - int ii = 0; - // Set font to Arial 12 pt - for (i = 0; i < dcstyles.DcStyles.Length; i++) - { - dcstyles.DcStyles[i].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[i].dstyle.FontSize = "12"; - dcstyles.DcStyles[i].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[i].ContStyle.FontSize = "12"; - } - return; - } - } - public partial class RtfToSvg - { - private void AddMCG(XmlDocument myDoc) - { - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_McGuire.cs.org b/PROMS/fmtxml/PlantSpecific_McGuire.cs.org deleted file mode 100644 index 59017ae0..00000000 --- a/PROMS/fmtxml/PlantSpecific_McGuire.cs.org +++ /dev/null @@ -1,91 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddMCGfmt(ref FormatData fmtdata) // McGuire - { - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.SeparatorLocation = -2; - - // caution separator - fmtdata.StepData[6].StepLayoutData.STBoxindex = "1"; - fmtdata.StepData[6].TabData.Bullet.Separate = "True"; - fmtdata.StepData[6].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[6].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[6].TabData.Bullet.Font.FontSize = "11"; - fmtdata.StepData[6].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[6].TabData.Bullet.Font.CPI = "12"; - - // note location/tab - fmtdata.StepData[7].StepLayoutData.STBoxindex = "1"; - fmtdata.StepData[7].TabData.Ident = "NOTE: "; - fmtdata.StepData[7].TabData.Bullet.Separate = "True"; - fmtdata.StepData[7].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[7].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[7].TabData.Bullet.Font.FontSize = "11"; - fmtdata.StepData[7].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[7].TabData.Bullet.Font.CPI = "12"; - - // RNOType - fmtdata.StepData[40].Font.FontFamily = "Arial"; - fmtdata.StepData[40].Font.FontSize = "11"; - - // note location (create a box to locate it) - fmtdata.BoxData[1].Index = 1; - fmtdata.BoxData[1].Start = 6; - fmtdata.BoxData[1].End = 240; - fmtdata.BoxData[1].TxtStart = 12; - fmtdata.BoxData[1].TxtWidth = 450; - fmtdata.BoxData[1].BXULC = " "; - } - } - public partial class FmtToXml - { - private void AddMCGPage(ref PageStyles pgstyles) - { - // proc steps - pgstyles.PgStyles[0].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[0].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[0].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[0].Items[10].Token = "Rev. {REV}"; - // proc steps - no header - pgstyles.PgStyles[1].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[1].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[1].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[1].Items[10].Token = "Rev. {REV}"; - // enclosures - pgstyles.PgStyles[2].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[2].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[2].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[2].Items[9].Token = "Rev. {REV}"; - // Attachments - pgstyles.PgStyles[4].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[4].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[4].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[4].Items[9].Token = "Rev. {REV}"; - // Status Tree - pgstyles.PgStyles[5].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[5].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[5].Items[7].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[5].Items[9].Token = "Rev. {REV}"; - // Table of contents - pgstyles.PgStyles[6].Items[2].Token = "PAGE NO."; - pgstyles.PgStyles[6].Items[5].Style.FontSize = "14"; - pgstyles.PgStyles[6].Items[6].Token = "{ROMANPAGE}"; - pgstyles.PgStyles[6].Items[8].Token = "Rev. {REV}"; - } - private void AddMCGDOC(ref DocStyles dcstyles) - { - } - } - public partial class RtfToSvg - { - private void AddMCG(XmlDocument myDoc) - { - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_PointBeach.cs b/PROMS/fmtxml/PlantSpecific_PointBeach.cs deleted file mode 100644 index 398c1a08..00000000 --- a/PROMS/fmtxml/PlantSpecific_PointBeach.cs +++ /dev/null @@ -1,206 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddWEP2fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectPrtData.DiffContActBox = "True"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ContActBoxOnSubSteps = "True"; - fmtdata.TransData.Underline = "True"; - fmtdata.StepData[2].TabData.Ident = "{Section Prefix}{numeric} "; - fmtdata.StepData[3].TabData.Ident = "{!C0}{numeric} "; - fmtdata.StepData[9].TabData.Ident = "{Section Prefix}{numeric} "; - //// EQuipment List - //fmtdata.StepData[11].StepLayoutData.EveryNLines = "1"; - // EQuipment List With Blank - fmtdata.StepData[14].StepLayoutData.EveryNLines = "99"; - //// Optional EQuipment List - //fmtdata.StepData[30].StepLayoutData.EveryNLines = "99"; - //TitleWithTextRight - fmtdata.StepData[42].StepEditData.TypeMenu.MenuItem = "Title With Text Right"; - //TitleWithTextBelow - fmtdata.StepData[43].StepEditData.TypeMenu.MenuItem = "Title With Text Below"; - //ContAcSequential - fmtdata.StepData[44].StepEditData.TypeMenu.MenuItem = "Continuous Action AER"; - //ContAcAnd - fmtdata.StepData[45].StepEditData.TypeMenu.MenuItem = "Continuous Action RNO"; - //ContAcOr - fmtdata.StepData[46].StepEditData.TypeMenu.MenuItem = "Continuous Action AER & RNO"; - - fmtdata.TransData.TransTypeData[5].TransFormat = "{?.Sect Hdr}, Step {First Step}"; - fmtdata.TransData.TransTypeData[5].TransMenu = "{Sect Num}, {Sect Title}, Step {First Step}"; - fmtdata.TransData.TransTypeData[7].TransType = 4; - fmtdata.TransData.TransTypeData[7].TransFormat = "Attachment {Sect Num}{First Step}"; - fmtdata.TransData.TransTypeData[7].TransMenu = "Attachment {Sect Num}{First Step} ( To a different section )"; - fmtdata.TransData.TransTypeData[7].TransUI = "ProcCur, SectMenuAny, StepAllowNone, StepFirst"; - fmtdata.TransData.TransTypeData[8].TransType = 0; - fmtdata.TransData.TransTypeData[8].TransFormat = "{Proc Num}, {Proc Title}, {Sect Num}, {Sect Title}, Step {First Step}"; - fmtdata.TransData.TransTypeData[8].TransMenu = "{Proc Num}, {Proc Title}, {Sect Num}, {Sect Title}, Step {First Step}"; - fmtdata.TransData.TransTypeData[8].TransUI = "ProcMenu, SectMenuAny, StepAllowNone, StepFirst"; - } - private void AddWEP2Overridefmt(ref FormatData fmtdata) - { - // Boxes - fmtdata.BoxData[3].Start = 260; - fmtdata.BoxData[3].End = 504; - fmtdata.BoxData[3].TxtWidth = 210; - fmtdata.BoxData[3].Font.FontFamily = "Prestige Elite Tall"; - fmtdata.BoxData[4].End = 504; - fmtdata.BoxData[4].TxtWidth = 216; - fmtdata.BoxData[4].Font.FontFamily = "Prestige Elite Tall"; - fmtdata.BoxData[5].End = 504; - fmtdata.BoxData[5].TxtWidth = 198; - fmtdata.BoxData[5].Font.FontFamily = "Prestige Elite Tall"; - fmtdata.BoxData[8].End = 260; - fmtdata.BoxData[8].TxtWidth = 198; - fmtdata.BoxData[8].Font.FontFamily = "Prestige Elite Tall"; - fmtdata.BoxData[9].Start = 260; - fmtdata.BoxData[9].End = 504; - fmtdata.BoxData[9].TxtWidth = 210; - fmtdata.BoxData[9].Font.FontFamily = "Prestige Elite Tall"; - } - private void AddWEPENBFmt(ref FormatData fmtdata) - { - fmtdata.ProcData.ChangeBarData.AbsoluteFixedChangeColumn = "True"; - fmtdata.ProcData.ChangeBarData.FixedChangeColumn = 71; - fmtdata.ProcData.ChangeBarData.FixedAERChangeColumn = 0; - fmtdata.StepData[2].TabData.RNOIdent = @"\ul ERG STEP:\ulnone "; - fmtdata.StepData[3].TabData.RNOIdent = @"\ul ERG STEP:\ulnone "; - fmtdata.StepData[6].TabData.RNOIdent = @"\ul ERG CAUTION:\ulnone "; - fmtdata.StepData[7].TabData.RNOIdent = @"\ul ERG NOTE:\ulnone "; - fmtdata.StepData[18].TabData.RNOIdent = @"\ul ERG STEP:\ulnone "; - fmtdata.StepData[20].TabData.RNOIdent = @"\ul ERG CAUTION:\ulnone "; - fmtdata.StepData[21].TabData.RNOIdent = @"\ul ERG CAUTION:\ulnone "; - fmtdata.StepData[22].TabData.RNOIdent = @"\ul ERG NOTE:\ulnone "; - fmtdata.StepData[23].TabData.RNOIdent = @"\ul ERG NOTE:\ulnone "; - fmtdata.StepData[26].TabData.RNOIdent = @"\ul ERG NOTE:\ulnone "; - fmtdata.StepData[27].TabData.RNOIdent = @"\ul ERG CAUTION:\ulnone "; - } - private void AddWPB20fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.ColS = 50; - fmtdata.SectData.StepSectionData.StpSectPrtData.LimitWidToPageWid = "True"; - fmtdata.TransData.DoSectionTransitions = "True"; - fmtdata.PrintData.ProcDescrList[0].ProcDescr1 = "{null}"; - fmtdata.StepData[2].TabData.IdentEdit = "STEP {numeric} : "; - fmtdata.StepData[2].TabData.Ident = "STEP {numeric} : "; - fmtdata.StepData[2].TabData.RNOIdentEdit = "STEP {numeric} : "; - fmtdata.StepData[2].TabData.RNOIdent = "STEP {numeric} : "; - fmtdata.StepData[2].StepPrintData.PosAdjust = "36"; //HLSs - fmtdata.StepData[3].StepPrintData.PosAdjust = "36"; - fmtdata.StepData[18].StepPrintData.PosAdjust = "36"; - fmtdata.StepData[40].StepPrintData.PosAdjust = "36"; // (RNO inherits from HLS) - fmtdata.StepData[41].StepPrintData.PosAdjust = "36"; - fmtdata.StepData[6].StepPrintData.PosAdjust = "50"; //Cautions - fmtdata.StepData[20].StepPrintData.PosAdjust = "50"; - fmtdata.StepData[21].StepPrintData.PosAdjust = "50"; - fmtdata.StepData[27].StepPrintData.PosAdjust = "50"; - fmtdata.StepData[29].StepPrintData.PosAdjust = "50"; - fmtdata.StepData[7].StepPrintData.PosAdjust = "67"; //Notes - fmtdata.StepData[22].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[23].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[26].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[28].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[32].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[9].StepPrintData.PosAdjust = "0"; - fmtdata.StepData[24].StepPrintData.PosAdjust = "-50"; - } - private void AddWPB22fmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.ColS = 50; - fmtdata.SectData.StepSectionData.StpSectPrtData.LimitWidToPageWid = "True"; - fmtdata.TransData.DoSectionTransitions = "True"; - fmtdata.PrintData.ProcDescrList[0].ProcDescr1 = "{null}"; - fmtdata.StepData[2].TabData.IdentEdit = "STEP {numeric} : "; - fmtdata.StepData[2].TabData.Ident = "STEP {numeric} : "; - fmtdata.StepData[2].TabData.RNOIdentEdit = "STEP {numeric} : "; - fmtdata.StepData[2].TabData.RNOIdent = "STEP {numeric} : "; - //fmtdata.StepData[23].StepPrintData.PosAdjust = "46"; - //fmtdata.StepData[24].StepPrintData.PosAdjust = "-50"; - fmtdata.StepData[2].StepPrintData.PosAdjust = "36"; //HLSs - fmtdata.StepData[3].StepPrintData.PosAdjust = "36"; - fmtdata.StepData[18].StepPrintData.PosAdjust = "36"; - fmtdata.StepData[40].StepPrintData.PosAdjust = "36"; // (RNO inherits from HLS) - fmtdata.StepData[41].StepPrintData.PosAdjust = "36"; - fmtdata.StepData[6].StepPrintData.PosAdjust = "50"; //Cautions - fmtdata.StepData[20].StepPrintData.PosAdjust = "50"; - fmtdata.StepData[21].StepPrintData.PosAdjust = "50"; - fmtdata.StepData[27].StepPrintData.PosAdjust = "50"; - fmtdata.StepData[29].StepPrintData.PosAdjust = "50"; - fmtdata.StepData[7].StepPrintData.PosAdjust = "67"; //Notes - fmtdata.StepData[22].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[23].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[26].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[28].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[32].StepPrintData.PosAdjust = "67"; - fmtdata.StepData[9].StepPrintData.PosAdjust = "0"; - fmtdata.StepData[24].StepPrintData.PosAdjust = "-50"; - } - } - public partial class FmtToXml - { - private void AddWEP2DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[1].PageLength = 654; - dcstyles.DcStyles[6].PageWidth = 564; - } - private void AddWEPENBPage(ref PageStyles pgstyles) - { - pgstyles.PgStyles[0].Items[12].Col = 520; // Step Descr:HLRNO location - pgstyles.PgStyles[0].Items[12].Justify = "PSRight"; - pgstyles.PgStyles[1].Items[1].Col = 247; // Cover page token location adjustments - pgstyles.PgStyles[1].Items[2].Col = 238; - pgstyles.PgStyles[1].Items[3].Col = 238; - pgstyles.PgStyles[1].Items[4].Col = 266; - pgstyles.PgStyles[1].Items[5].Col = 288; - pgstyles.PgStyles[1].Items[6].Col = 266; - pgstyles.PgStyles[1].Items[7].Col = 288; - pgstyles.PgStyles[1].Items[8].Col = 266; - pgstyles.PgStyles[1].Items[9].Col = 288; - pgstyles.PgStyles[1].Items[10].Col = 266; - pgstyles.PgStyles[1].Items[11].Col = 288; - pgstyles.PgStyles[1].Items[12].Col = 266; - pgstyles.PgStyles[1].Items[13].Col = 288; - pgstyles.PgStyles[1].Items[14].Col = 266; - pgstyles.PgStyles[1].Items[15].Col = 288; - pgstyles.PgStyles[2].Items[1].Token = "{BOX3}"; - } - private void AddWPB20DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].ContTop = ". . . Step %3d Continued from Previous Page . . ."; - dcstyles.DcStyles[0].ContBottom = ". . . Step %3d Continued on Next Page . . ."; - } - private void AddWEPENBDOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].PageWidth = 580; - dcstyles.DcStyles[2].PageWidth = 584; - } - private void AddWEPENB_00DOC(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].PageWidth = 580; - } - } - public partial class RtfToSvg - { - private void AddWEP2(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "" + - ""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[6]); - myDoc.DocumentElement.RemoveChild(myDoc.DocumentElement.ChildNodes[4]); // remove references to BMP files. - myDoc.DocumentElement.RemoveChild(myDoc.DocumentElement.ChildNodes[4]); - } - private void AddWEPENB(XmlDocument myDoc) - { - myDoc.DocumentElement.RemoveChild(myDoc.DocumentElement.ChildNodes[4]); // remove references to BMP files. - myDoc.DocumentElement.RemoveChild(myDoc.DocumentElement.ChildNodes[4]); - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_PrairieIsland.cs b/PROMS/fmtxml/PlantSpecific_PrairieIsland.cs deleted file mode 100644 index 3cf259b5..00000000 --- a/PROMS/fmtxml/PlantSpecific_PrairieIsland.cs +++ /dev/null @@ -1,3107 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - // FMT - public partial class FmtFileToXml - { - private void AddNSPFMT(ref FormatData fmtdata) - { - NSP_ArialFontInProcedures(ref fmtdata); - // checkoffs - fmtdata.ProcData.CheckOffData.CheckOffList[7].Index = 7; - fmtdata.ProcData.CheckOffData.CheckOffList[7].UIMark = 83; - fmtdata.ProcData.CheckOffData.CheckOffList[7].MenuItem = "S"; - fmtdata.ProcData.CheckOffData.CheckOffList[7].Macro = "C7"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Index = 8; - fmtdata.ProcData.CheckOffData.CheckOffList[8].UIMark = 88; - fmtdata.ProcData.CheckOffData.CheckOffList[8].MenuItem = "X"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Macro = "C8"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Index = 9; - fmtdata.ProcData.CheckOffData.CheckOffList[9].UIMark = 67; - fmtdata.ProcData.CheckOffData.CheckOffList[9].MenuItem = "C"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Macro = "C9"; - // Standard High Level step - fmtdata.StepData[2].Font.FontStyle = "Bold"; - // Immediate Actions step - fmtdata.StepData[3].Font.FontStyle = "Bold"; - // Continuous Action High Level Step - fmtdata.StepData[9].Font.FontStyle = "Bold"; - // Caution - fmtdata.StepData[6].StepLayoutData.STBoxindex = null; - fmtdata.StepData[6].WidthOverride = "333"; - // Caution1 - fmtdata.StepData[20].Inactive = "True"; - // Caution2 - fmtdata.StepData[21].Inactive = "True"; - // Caution3 - fmtdata.StepData[27].Inactive = "True"; - // Caution4 - fmtdata.StepData[29].Inactive = "True"; - // Note - fmtdata.StepData[7].TabData.Ident = "Note "; - fmtdata.StepData[7].TabData.RNOIdent = "Note "; - fmtdata.StepData[7].StepLayoutData.STBoxindex = null; - fmtdata.StepData[7].WidthOverride = "333"; - // Note1 - fmtdata.StepData[22].Inactive = "True"; - // Note2 - fmtdata.StepData[23].Inactive = "True"; - // Note3 - fmtdata.StepData[26].Inactive = "True"; - // Note4 - fmtdata.StepData[28].Inactive = "True"; - // Note5 - fmtdata.StepData[32].Inactive = "True"; - } - private void NSP_ArialFontInProcedures(ref FormatData fmtdata) - { - // Set the overall font to Arial 11 pt - fmtdata.FontData.FontFamily = "Arial"; - fmtdata.FontData.FontSize = "11"; - fmtdata.FontData.CPI = "10"; - - fmtdata.SectData.SectionNumber.Font.FontFamily = "Arial"; - fmtdata.SectData.SectionNumber.Font.FontSize = "11"; - fmtdata.SectData.SectionHeader.Font.FontFamily = "Arial"; - fmtdata.SectData.SectionHeader.Font.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectLayData.VertStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.VertStyle.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Font.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Font.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.Font.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.Font.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ModifiedTextStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ModifiedTextStyle.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdrStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdrStyle.FontSize = "11"; - //// Step Type Base - fmtdata.StepData[0].Font.FontFamily = "Arial"; - fmtdata.StepData[0].Font.FontSize = "11"; - fmtdata.StepData[0].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[0].TabData.Font.FontSize = "11"; - - // Substep - //fmtdata.StepData[1].Font.FontFamily = "Arial"; - //fmtdata.StepData[1].Font.FontSize = "11"; - fmtdata.StepData[1].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[1].TabData.Font.FontSize = "11"; - - // Standard High Level step - fmtdata.StepData[2].Font.FontFamily = "Arial"; - fmtdata.StepData[2].Font.FontSize = "11"; - fmtdata.StepData[2].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[2].TabData.Font.FontSize = "11"; - - // Immediate - fmtdata.StepData[3].Font.FontFamily = "Arial"; - fmtdata.StepData[3].Font.FontSize = "11"; - fmtdata.StepData[3].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[3].TabData.Font.FontSize = "11"; - - // And - fmtdata.StepData[4].Font.FontFamily = "Arial"; - fmtdata.StepData[4].Font.FontSize = "11"; - fmtdata.StepData[4].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[4].TabData.Font.FontSize = "11"; - - // OR - fmtdata.StepData[5].Font.FontFamily = "Arial"; - fmtdata.StepData[5].Font.FontSize = "11"; - fmtdata.StepData[5].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[5].TabData.Font.FontSize = "11"; - - // Cautions use Arial Font for Tab (instead of Script) and - // any bullets following the tab are at a different point size - fmtdata.StepData[6].Font.FontFamily = "Arial"; - fmtdata.StepData[6].Font.FontSize = "11"; - fmtdata.StepData[6].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[6].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[6].TabData.Font.FontSize = "18"; - fmtdata.StepData[6].TabData.Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[6].TabData.Font.CPI = "8"; - fmtdata.StepData[6].TabData.Bullet.Separate = "True"; - fmtdata.StepData[6].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[6].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[6].TabData.Bullet.Font.FontSize = "11"; - fmtdata.StepData[6].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[6].WidthOverride = "421"; - fmtdata.StepData[6].ColOverride = "194"; - - ////fmtdata.StepData[20] = fmtdata.StepData[6]; - ////fmtdata.StepData[20].Type = "Caution1"; - ////fmtdata.StepData[20].ParentType = "Caution"; - fmtdata.StepData[20].Font.FontFamily = "Arial"; - fmtdata.StepData[20].Font.FontSize = "11"; - fmtdata.StepData[20].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[20].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[20].TabData.Font.FontSize = "18"; - fmtdata.StepData[20].TabData.Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[20].TabData.Font.CPI = "8"; - fmtdata.StepData[20].TabData.Bullet.Separate = "True"; - fmtdata.StepData[20].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[20].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[20].TabData.Bullet.Font.FontSize = "11"; - fmtdata.StepData[20].TabData.Bullet.Font.FontStyle = "Bold"; - - ////fmtdata.StepData[21] = fmtdata.StepData[6]; - ////fmtdata.StepData[21].Type = "Caution2"; - ////fmtdata.StepData[21].ParentType = "Caution"; - fmtdata.StepData[21].Font.FontFamily = "Arial"; - fmtdata.StepData[21].Font.FontSize = "11"; - fmtdata.StepData[21].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[21].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[21].TabData.Font.FontSize = "18"; - fmtdata.StepData[21].TabData.Font.CPI = "8"; - fmtdata.StepData[21].TabData.Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[21].TabData.Bullet.Separate = "True"; - fmtdata.StepData[21].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[21].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[21].TabData.Bullet.Font.FontSize = "11"; - fmtdata.StepData[21].TabData.Bullet.Font.FontStyle = "Bold"; - - ////fmtdata.StepData[27] = fmtdata.StepData[6]; - ////fmtdata.StepData[27].Type = "Caution3"; - ////fmtdata.StepData[27].ParentType = "Caution"; - fmtdata.StepData[27].Font.FontFamily = "Arial"; - fmtdata.StepData[27].Font.FontSize = "11"; - fmtdata.StepData[27].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[27].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[27].TabData.Font.FontSize = "18"; - fmtdata.StepData[27].TabData.Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[27].TabData.Font.CPI = "8"; - fmtdata.StepData[27].TabData.Bullet.Separate = "True"; - fmtdata.StepData[27].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[27].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[27].TabData.Bullet.Font.FontSize = "11"; - fmtdata.StepData[27].TabData.Bullet.Font.FontStyle = "Bold"; - - ////fmtdata.StepData[29] = fmtdata.StepData[6]; - ////fmtdata.StepData[29].Type = "Caution4"; - ////fmtdata.StepData[29].ParentType = "Caution"; - fmtdata.StepData[29].Font.FontFamily = "Arial"; - fmtdata.StepData[29].Font.FontSize = "11"; - fmtdata.StepData[29].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[29].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[29].TabData.Font.FontSize = "18"; - fmtdata.StepData[29].TabData.Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[29].TabData.Font.CPI = "8"; - fmtdata.StepData[29].TabData.Bullet.Separate = "True"; - fmtdata.StepData[29].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[29].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[29].TabData.Bullet.Font.FontSize = "11"; - fmtdata.StepData[29].TabData.Bullet.Font.FontStyle = "Bold"; - - // Notes used Arial font and any bullets following the tab are at - // a different point size - fmtdata.StepData[7].Font.FontFamily = "Arial"; - fmtdata.StepData[7].Font.FontSize = "11"; - fmtdata.StepData[7].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[7].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[7].TabData.Font.FontSize = "14"; - fmtdata.StepData[7].TabData.Font.CPI = "8"; - fmtdata.StepData[7].TabData.Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[7].TabData.Bullet.Separate = "True"; - fmtdata.StepData[7].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[7].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[7].TabData.Bullet.Font.FontSize = "11"; - fmtdata.StepData[7].TabData.Bullet.Font.FontStyle = "Bold"; - fmtdata.StepData[7].WidthOverride = "401"; - - ////fmtdata.StepData[22] = fmtdata.StepData[7]; - ////fmtdata.StepData[22].Type = "Note1"; - ////fmtdata.StepData[22].ParentType = "Note"; - fmtdata.StepData[22].Font.FontFamily = "Arial"; - fmtdata.StepData[22].Font.FontSize = "11"; - fmtdata.StepData[22].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[22].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[22].TabData.Font.FontSize = "14"; - fmtdata.StepData[22].TabData.Font.CPI = "8"; - fmtdata.StepData[22].TabData.Font.FontStyle = "Italics, Bold"; - - ////fmtdata.StepData[23] = fmtdata.StepData[7]; - ////fmtdata.StepData[23].Type = "Note2"; - ////fmtdata.StepData[23].ParentType = "Note"; - fmtdata.StepData[23].Font.FontFamily = "Arial"; - fmtdata.StepData[23].Font.FontSize = "11"; - fmtdata.StepData[23].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[23].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[23].TabData.Font.FontSize = "14"; - fmtdata.StepData[23].TabData.Font.CPI = "8"; - fmtdata.StepData[23].TabData.Font.FontStyle = "Italics, Bold"; - - ////fmtdata.StepData[26] = fmtdata.StepData[7]; - ////fmtdata.StepData[26].Type = "Note3"; - ////fmtdata.StepData[26].ParentType = "Note"; - fmtdata.StepData[26].Font.FontFamily = "Arial"; - fmtdata.StepData[26].Font.FontSize = "11"; - fmtdata.StepData[26].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[26].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[26].TabData.Font.FontSize = "14"; - fmtdata.StepData[26].TabData.Font.CPI = "8"; - fmtdata.StepData[26].TabData.Font.FontStyle = "Italics, Bold"; - - ////fmtdata.StepData[28] = fmtdata.StepData[7]; - ////fmtdata.StepData[28].Type = "Note4"; - ////fmtdata.StepData[28].ParentType = "Note"; - fmtdata.StepData[28].Font.FontFamily = "Arial"; - fmtdata.StepData[28].Font.FontSize = "11"; - fmtdata.StepData[28].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[28].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[28].TabData.Font.FontSize = "14"; - fmtdata.StepData[28].TabData.Font.CPI = "8"; - fmtdata.StepData[28].TabData.Font.FontStyle = "Italics, Bold"; - - ////fmtdata.StepData[32] = fmtdata.StepData[7]; - ////fmtdata.StepData[32].Type = "Note5"; - ////fmtdata.StepData[32].ParentType = "Note"; - fmtdata.StepData[32].Font.FontFamily = "Arial"; - fmtdata.StepData[32].Font.FontSize = "11"; - fmtdata.StepData[32].Font.FontStyle = "Italics, Bold"; - fmtdata.StepData[32].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[32].TabData.Font.FontSize = "14"; - fmtdata.StepData[32].TabData.Font.CPI = "8"; - fmtdata.StepData[32].TabData.Font.FontStyle = "Italics, Bold"; - - // Table - fmtdata.StepData[8].Font.FontFamily = "Arial"; - fmtdata.StepData[8].Font.FontSize = "11"; - fmtdata.StepData[8].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[8].TabData.Font.FontSize = "11"; - - // Continuous - fmtdata.StepData[9].Font.FontFamily = "Arial"; - fmtdata.StepData[9].Font.FontSize = "11"; - fmtdata.StepData[9].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[9].TabData.Font.FontSize = "11"; - // AER Table - fmtdata.StepData[10].Font.FontFamily = "Arial"; - fmtdata.StepData[10].Font.FontSize = "11"; - fmtdata.StepData[10].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[10].TabData.Font.FontSize = "11"; - // EquipmentList - fmtdata.StepData[11].Font.FontFamily = "Arial"; - fmtdata.StepData[11].Font.FontSize = "11"; - fmtdata.StepData[11].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[11].TabData.Font.FontSize = "11"; - // Title - fmtdata.StepData[12].Font.FontFamily = "Arial"; - fmtdata.StepData[12].Font.FontSize = "11"; - fmtdata.StepData[12].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[12].TabData.Font.FontSize = "11"; - // PageNumber - fmtdata.StepData[13].Font.FontFamily = "Arial"; - fmtdata.StepData[13].Font.FontSize = "11"; - fmtdata.StepData[13].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[13].TabData.Font.FontSize = "11"; - // EquipmentWBlank - fmtdata.StepData[14].Font.FontFamily = "Arial"; - fmtdata.StepData[14].Font.FontSize = "11"; - fmtdata.StepData[14].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[14].TabData.Font.FontSize = "11"; - // ProcNumber - fmtdata.StepData[15].Font.FontFamily = "Arial"; - fmtdata.StepData[15].Font.FontSize = "11"; - fmtdata.StepData[15].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[15].TabData.Font.FontSize = "11"; - // RevNumber - fmtdata.StepData[16].Font.FontFamily = "Arial"; - fmtdata.StepData[16].Font.FontSize = "11"; - fmtdata.StepData[16].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[16].TabData.Font.FontSize = "11"; - // AccPages - fmtdata.StepData[17].Font.FontFamily = "Arial"; - fmtdata.StepData[17].Font.FontSize = "11"; - fmtdata.StepData[17].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[17].TabData.Font.FontSize = "11"; - // LossOfAC - fmtdata.StepData[18].Font.FontFamily = "Arial"; - fmtdata.StepData[18].Font.FontSize = "11"; - fmtdata.StepData[18].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[18].TabData.Font.FontSize = "11"; - // ExplicitAnd - fmtdata.StepData[19].Font.FontFamily = "Arial"; - fmtdata.StepData[19].Font.FontSize = "11"; - fmtdata.StepData[19].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[19].TabData.Font.FontSize = "11"; - // Paragraph - fmtdata.StepData[24].Font.FontFamily = "Arial"; - fmtdata.StepData[24].Font.FontSize = "11"; - fmtdata.StepData[24].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[24].TabData.Font.FontSize = "11"; - // Default - fmtdata.StepData[25].Font.FontFamily = "Arial"; - fmtdata.StepData[25].Font.FontSize = "11"; - fmtdata.StepData[25].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[25].TabData.Font.FontSize = "11"; - // EquipmentOpt - fmtdata.StepData[30].Font.FontFamily = "Arial"; - fmtdata.StepData[30].Font.FontSize = "11"; - fmtdata.StepData[30].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[30].TabData.Font.FontSize = "11"; - // EquipmentOptWBlank - fmtdata.StepData[31].Font.FontFamily = "Arial"; - fmtdata.StepData[31].Font.FontSize = "11"; - fmtdata.StepData[31].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[31].TabData.Font.FontSize = "11"; - // BorderlessAERTable - fmtdata.StepData[33].Font.FontFamily = "Arial"; - fmtdata.StepData[33].Font.FontSize = "11"; - fmtdata.StepData[33].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[33].TabData.Font.FontSize = "11"; - // BorderlessTable - fmtdata.StepData[34].Font.FontFamily = "Arial"; - fmtdata.StepData[34].Font.FontSize = "11"; - fmtdata.StepData[34].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[34].TabData.Font.FontSize = "11"; - // ImplicitOr - fmtdata.StepData[35].Font.FontFamily = "Arial"; - fmtdata.StepData[35].Font.FontSize = "11"; - fmtdata.StepData[35].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[35].TabData.Font.FontSize = "11"; - // Figure - fmtdata.StepData[36].Font.FontFamily = "Arial"; - fmtdata.StepData[36].Font.FontSize = "11"; - fmtdata.StepData[36].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[36].TabData.Font.FontSize = "11"; - // AERFigure - fmtdata.StepData[37].Font.FontFamily = "Arial"; - fmtdata.StepData[37].Font.FontSize = "11"; - fmtdata.StepData[37].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[37].TabData.Font.FontSize = "11"; - // BorderlessFigure - fmtdata.StepData[38].Font.FontFamily = "Arial"; - fmtdata.StepData[38].Font.FontSize = "11"; - fmtdata.StepData[38].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[38].TabData.Font.FontSize = "11"; - // BorderlessFAERigure - fmtdata.StepData[39].Font.FontFamily = "Arial"; - fmtdata.StepData[39].Font.FontSize = "11"; - fmtdata.StepData[39].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[39].TabData.Font.FontSize = "11"; - // RNOType - fmtdata.StepData[40].Font.FontFamily = "Arial"; - fmtdata.StepData[40].Font.FontSize = "11"; - fmtdata.StepData[40].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[40].TabData.Font.FontSize = "11"; - // HIGH5 - fmtdata.StepData[41].Font.FontFamily = "Arial"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[41].TabData.Font.FontSize = "11"; - // TitleWithTextRight - fmtdata.StepData[42].Font.FontFamily = "Arial"; - fmtdata.StepData[42].Font.FontSize = "11"; - fmtdata.StepData[42].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[42].TabData.Font.FontSize = "11"; - // TitleWithTextBelow - fmtdata.StepData[43].Font.FontFamily = "Arial"; - fmtdata.StepData[43].Font.FontSize = "11"; - fmtdata.StepData[43].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[43].TabData.Font.FontSize = "11"; - // ContAcSequential - fmtdata.StepData[44].Font.FontFamily = "Arial"; - fmtdata.StepData[44].Font.FontSize = "11"; - fmtdata.StepData[44].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[44].TabData.Font.FontSize = "11"; - // ContAcAnd - fmtdata.StepData[45].Font.FontFamily = "Arial"; - fmtdata.StepData[45].Font.FontSize = "11"; - fmtdata.StepData[45].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[45].TabData.Font.FontSize = "11"; - // ContAcOr - fmtdata.StepData[46].Font.FontFamily = "Arial"; - fmtdata.StepData[46].Font.FontSize = "11"; - fmtdata.StepData[46].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[46].TabData.Font.FontSize = "11"; - // ContAcParagraph - fmtdata.StepData[47].Font.FontFamily = "Arial"; - fmtdata.StepData[47].Font.FontSize = "11"; - fmtdata.StepData[47].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[47].TabData.Font.FontSize = "11"; - } - private void AddNSP00FMT(ref FormatData fmtdata) - { - NSP_ArialFontInProcedures(ref fmtdata); - - // High - fmtdata.StepData[2].Font.FontFamily = "Arial"; - fmtdata.StepData[2].Font.FontSize = "11"; - fmtdata.StepData[2].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[2].TabData.Font.FontSize = "11"; - // Immediate - fmtdata.StepData[3].Font.FontFamily = "Arial"; - fmtdata.StepData[3].Font.FontSize = "11"; - fmtdata.StepData[3].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[3].TabData.Font.FontSize = "11"; - // Continuous - fmtdata.StepData[9].Font.FontFamily = "Arial"; - fmtdata.StepData[9].Font.FontSize = "11"; - fmtdata.StepData[9].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[9].TabData.Font.FontSize = "11"; - // LossOfAC - fmtdata.StepData[18].Font.FontFamily = "Arial"; - fmtdata.StepData[18].Font.FontSize = "11"; - fmtdata.StepData[18].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[18].TabData.Font.FontSize = "11"; - // High5 - fmtdata.StepData[41].Font.FontFamily = "Arial"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[41].TabData.Font.FontSize = "11"; - // Caution1 - fmtdata.StepData[20].Inactive = "True"; - // Caution2 - fmtdata.StepData[21].Inactive = "True"; - // Caution3 - fmtdata.StepData[27].Inactive = "True"; - // Caution4 - fmtdata.StepData[29].Inactive = "True"; - // Note1 - fmtdata.StepData[22].Inactive = "True"; - // Note2 - fmtdata.StepData[23].Inactive = "True"; - // Note3 - fmtdata.StepData[26].Inactive = "True"; - // Note4 - fmtdata.StepData[28].Inactive = "True"; - // Note5 - fmtdata.StepData[32].Inactive = "True"; - } - private void AddNSPBCKFMT(ref FormatData fmtdata) - { - // section - fmtdata.SectData.SectionNumber.Font.FontFamily = "Arial"; - fmtdata.SectData.SectionNumber.Font.FontSize = "11"; - fmtdata.SectData.SectionHeader.Font.FontFamily = "Arial"; - fmtdata.SectData.SectionHeader.Font.FontSize = "11"; - // Table - fmtdata.StepData[8].Font.FontFamily = "Arial"; - fmtdata.StepData[8].Font.FontSize = "11"; - // Title - fmtdata.StepData[12].Font.FontFamily = "Arial"; - fmtdata.StepData[12].Font.FontSize = "11"; - // PageNumber - fmtdata.StepData[13].Font.FontFamily = "Arial"; - fmtdata.StepData[13].Font.FontSize = "11"; - // EquipmentWBlank - fmtdata.StepData[14].Font.FontFamily = "Arial"; - fmtdata.StepData[14].Font.FontSize = "11"; - // ProcNumber - fmtdata.StepData[15].Font.FontFamily = "Arial"; - fmtdata.StepData[15].Font.FontSize = "11"; - // RevNumber - fmtdata.StepData[16].Font.FontFamily = "Arial"; - fmtdata.StepData[16].Font.FontSize = "11"; - // AccPages - fmtdata.StepData[17].Font.FontFamily = "Arial"; - fmtdata.StepData[17].Font.FontSize = "11"; - // Default - fmtdata.StepData[25].Font.FontFamily = "Arial"; - fmtdata.StepData[25].Font.FontSize = "11"; - // Note4 - fmtdata.StepData[28].Font.FontFamily = "Arial"; - fmtdata.StepData[28].Font.FontSize = "11"; - // Caution4 - fmtdata.StepData[29].Font.FontFamily = "Arial"; - fmtdata.StepData[29].Font.FontSize = "11"; - // EquipmentOptWBlank - fmtdata.StepData[31].Font.FontFamily = "Arial"; - fmtdata.StepData[31].Font.FontSize = "11"; - // Note5 - fmtdata.StepData[32].Font.FontFamily = "Arial"; - fmtdata.StepData[32].Font.FontSize = "11"; - // BorderlessTable - fmtdata.StepData[34].Font.FontFamily = "Arial"; - fmtdata.StepData[34].Font.FontSize = "11"; - // Indented Paragraph - fmtdata.StepData[35].TabData.Ident = "{indent} "; - fmtdata.StepData[35].TabData.IdentEdit = "{indent} "; - fmtdata.StepData[35].TabData.RNOIdent = "{indent} "; - fmtdata.StepData[35].TabData.RNOIdentEdit = "{indent} "; - // Figure - fmtdata.StepData[36].Font.FontFamily = "Arial"; - fmtdata.StepData[36].Font.FontSize = "11"; - // AERFigure - fmtdata.StepData[37].Font.FontFamily = "Arial"; - fmtdata.StepData[37].Font.FontSize = "11"; - // BorderlessFigure - fmtdata.StepData[38].Font.FontFamily = "Arial"; - fmtdata.StepData[38].Font.FontSize = "11"; - // BorderlessAERFigure - fmtdata.StepData[39].Font.FontFamily = "Arial"; - fmtdata.StepData[39].Font.FontSize = "11"; - // High5 - fmtdata.StepData[41].Font.FontFamily = "Arial"; - fmtdata.StepData[41].Font.FontSize = "11"; - // TitleWithTextRight - fmtdata.StepData[42].Font.FontFamily = "Arial"; - fmtdata.StepData[42].Font.FontSize = "11"; - // TitleWithTextBelow - fmtdata.StepData[43].Font.FontFamily = "Arial"; - fmtdata.StepData[43].Font.FontSize = "11"; - // ContAcSequential - fmtdata.StepData[44].Font.FontFamily = "Arial"; - fmtdata.StepData[44].Font.FontSize = "11"; - // ContAcAnd - fmtdata.StepData[45].Font.FontFamily = "Arial"; - fmtdata.StepData[45].Font.FontSize = "11"; - // ContAcOR - fmtdata.StepData[46].Font.FontFamily = "Arial"; - fmtdata.StepData[46].Font.FontSize = "11"; - // ContAcParagraph - fmtdata.StepData[47].Font.FontFamily = "Arial"; - fmtdata.StepData[47].Font.FontSize = "11"; - fmtdata.StepData[47].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[47].TabData.Font.FontSize = "11"; - fmtdata.StepData[47].TabData.Font.FontStyle = "None"; - - // Caution1 - fmtdata.StepData[20].Inactive = "True"; - // Caution2 - fmtdata.StepData[21].Inactive = "True"; - // Caution3 - fmtdata.StepData[27].Inactive = "True"; - // Caution4 - fmtdata.StepData[29].Inactive = "True"; - // Note1 - fmtdata.StepData[22].Inactive = "True"; - // Note2 - fmtdata.StepData[23].Inactive = "True"; - // Note3 - fmtdata.StepData[26].Inactive = "True"; - // Note4 - fmtdata.StepData[28].Inactive = "True"; - // Note5 - fmtdata.StepData[32].Inactive = "True"; - } - private void AddNSPABFMT(ref FormatData fmtdata) - { - NSP_ArialFontInProcedures(ref fmtdata); - fmtdata.ProcData.CoverTitleLength = 46; - fmtdata.ProcData.ChangeBarData.FixedChangeColumn = 0; - // checkoffs - fmtdata.ProcData.CheckOffData.CheckOffList[7].Index = 7; - fmtdata.ProcData.CheckOffData.CheckOffList[7].UIMark = 83; - fmtdata.ProcData.CheckOffData.CheckOffList[7].MenuItem = "S"; - fmtdata.ProcData.CheckOffData.CheckOffList[7].Macro = "C7"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Index = 8; - fmtdata.ProcData.CheckOffData.CheckOffList[8].UIMark = 88; - fmtdata.ProcData.CheckOffData.CheckOffList[8].MenuItem = "X"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Macro = "C8"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Index = 9; - fmtdata.ProcData.CheckOffData.CheckOffList[9].UIMark = 67; - fmtdata.ProcData.CheckOffData.CheckOffList[9].MenuItem = "C"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Macro = "C9"; - // Base - fmtdata.StepData[0].Font.CPI = "12"; - // Substep - //fmtdata.StepData[1].Font.CPI = "12"; - // High - fmtdata.StepData[2].Font.CPI = "12"; - // And - fmtdata.StepData[4].Font.CPI = "12"; - // OR - fmtdata.StepData[5].Font.CPI = "12"; - // Caution - fmtdata.StepData[6].Font.CPI = "12"; - fmtdata.StepData[6].OneLineBeforeTab = "True"; - // Note - fmtdata.StepData[7].OneLineBeforeTab = "True"; - // Caution1 - fmtdata.StepData[20].Inactive = "True"; - fmtdata.StepData[20].OneLineBeforeTab = "True"; - // Caution2 - fmtdata.StepData[21].Inactive = "True"; - fmtdata.StepData[21].OneLineBeforeTab = "True"; - // Caution3 - fmtdata.StepData[27].Inactive = "True"; - fmtdata.StepData[27].OneLineBeforeTab = "True"; - // Caution4 - fmtdata.StepData[29].Inactive = "True"; - fmtdata.StepData[29].OneLineBeforeTab = "True"; - // Note1 - fmtdata.StepData[22].Inactive = "True"; - fmtdata.StepData[22].OneLineBeforeTab = "True"; - // Note2 - fmtdata.StepData[23].Inactive = "True"; - fmtdata.StepData[23].OneLineBeforeTab = "True"; - // Note3 - fmtdata.StepData[26].Inactive = "True"; - fmtdata.StepData[26].OneLineBeforeTab = "True"; - // Note4 - fmtdata.StepData[28].Inactive = "True"; - fmtdata.StepData[28].OneLineBeforeTab = "True"; - // Note5 - fmtdata.StepData[32].Inactive = "True"; - fmtdata.StepData[32].OneLineBeforeTab = "True"; - } - private void AddNSPAB_X00_OVRfmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "422,180,120"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "422,180,120"; - // checkoffs - fmtdata.ProcData.CheckOffData.CheckOffList[0].Index = 0; - fmtdata.ProcData.CheckOffData.CheckOffList[0].MenuItem = "{section default}"; - fmtdata.ProcData.CheckOffData.CheckOffList[1].Index = 1; - fmtdata.ProcData.CheckOffData.CheckOffList[1].MenuItem = "{no checkoff}"; - - fmtdata.ProcData.CheckOffData.CheckOffList[2].Index = 2; - fmtdata.ProcData.CheckOffData.CheckOffList[2].UIMark = 69; - fmtdata.ProcData.CheckOffData.CheckOffList[2].MenuItem = "E"; - fmtdata.ProcData.CheckOffData.CheckOffList[2].Macro = "C2"; - - fmtdata.ProcData.CheckOffData.CheckOffList[3].Index = 3; - fmtdata.ProcData.CheckOffData.CheckOffList[3].UIMark = 76; - fmtdata.ProcData.CheckOffData.CheckOffList[3].MenuItem = "L"; - fmtdata.ProcData.CheckOffData.CheckOffList[3].Macro = "C3"; - fmtdata.ProcData.CheckOffData.CheckOffList[4].Index = 4; - fmtdata.ProcData.CheckOffData.CheckOffList[4].UIMark = 77; - fmtdata.ProcData.CheckOffData.CheckOffList[4].MenuItem = "M"; - fmtdata.ProcData.CheckOffData.CheckOffList[4].Macro = "C4"; - fmtdata.ProcData.CheckOffData.CheckOffList[5].Index = 5; - fmtdata.ProcData.CheckOffData.CheckOffList[5].UIMark = 78; - fmtdata.ProcData.CheckOffData.CheckOffList[5].MenuItem = "N"; - fmtdata.ProcData.CheckOffData.CheckOffList[5].Macro = "C5"; - fmtdata.ProcData.CheckOffData.CheckOffList[6].Index = 6; - fmtdata.ProcData.CheckOffData.CheckOffList[6].UIMark = 36; - fmtdata.ProcData.CheckOffData.CheckOffList[6].MenuItem = "$"; - fmtdata.ProcData.CheckOffData.CheckOffList[6].Macro = "C6"; - - fmtdata.ProcData.CheckOffData.CheckOffList[7].Index = 7; - fmtdata.ProcData.CheckOffData.CheckOffList[7].UIMark = 83; - fmtdata.ProcData.CheckOffData.CheckOffList[7].MenuItem = "S"; - fmtdata.ProcData.CheckOffData.CheckOffList[7].Macro = "C7"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Index = 8; - fmtdata.ProcData.CheckOffData.CheckOffList[8].UIMark = 88; - fmtdata.ProcData.CheckOffData.CheckOffList[8].MenuItem = "X"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Macro = "C8"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Index = 9; - fmtdata.ProcData.CheckOffData.CheckOffList[9].UIMark = 67; - fmtdata.ProcData.CheckOffData.CheckOffList[9].MenuItem = "C"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Macro = "C9"; - fmtdata.ProcData.CheckOffData.CheckOffList[10].Index = 10; - fmtdata.ProcData.CheckOffData.CheckOffList[10].UIMark = 196; - fmtdata.ProcData.CheckOffData.CheckOffList[10].MenuItem = "___________"; - fmtdata.ProcData.CheckOffData.CheckOffList[10].Macro = "C10"; - - //fmtdata.ProcData.CheckOffData.CheckOffList[2].Index = 2; - //fmtdata.ProcData.CheckOffData.CheckOffList[2].UIMark = 196; - //fmtdata.ProcData.CheckOffData.CheckOffList[2].MenuItem = "___________"; - //fmtdata.ProcData.CheckOffData.CheckOffList[2].Macro = "C10"; - } - private void AddNSPAB_X01(ref FormatData fmtdata) - { - // Turn off Replace Words - fmtdata.SectData.TurnOffReplaceWords = "True"; - //ReplaceStr[] repstr = new ReplaceStr[1]; - // fmtdata.SectData.ReplaceStrData = repstr; - // fmtdata.SectData.ReplaceStrData[0].Flag = "None"; - // fmtdata.SectData.ReplaceStrData[0].ReplaceWith = "x"; - // fmtdata.SectData.ReplaceStrData[0].ReplaceWord = "x"; - } - private void AddNSPARPfmt(ref FormatData fmtdata) - { - NSP_ArialFontInProcedures(ref fmtdata); - fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = "73,73"; - fmtdata.StepData[1].TabData.RNOIdentEdit = ""; - fmtdata.StepData[1].TabData.RNOIdent = ""; - // High - fmtdata.StepData[2].Font.FontFamily = "Arial"; - fmtdata.StepData[2].Font.FontSize = "11"; - fmtdata.StepData[2].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[2].TabData.Font.FontSize = "11"; - // Immediate - fmtdata.StepData[3].Font.FontFamily = "Arial"; - fmtdata.StepData[3].Font.FontSize = "11"; - fmtdata.StepData[3].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[3].TabData.Font.FontSize = "11"; - // Continuous - fmtdata.StepData[9].Font.FontFamily = "Arial"; - fmtdata.StepData[9].Font.FontSize = "11"; - fmtdata.StepData[9].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[9].TabData.Font.FontSize = "11"; - // LossOfAC - fmtdata.StepData[18].Font.FontFamily = "Arial"; - fmtdata.StepData[18].Font.FontSize = "11"; - fmtdata.StepData[18].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[18].TabData.Font.FontSize = "11"; - // RNOType - fmtdata.StepData[40].WidthOverride = "73"; - fmtdata.StepData[40].WidthOverrideEdit = "73"; - // High5 - fmtdata.StepData[41].Font.FontFamily = "Arial"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[41].TabData.Font.FontSize = "11"; - // Caution - fmtdata.StepData[6].OneLineBeforeTab = "True"; - // Caution1 - fmtdata.StepData[20].Inactive = "True"; - // Caution2 - fmtdata.StepData[21].Inactive = "True"; - // Caution3 - fmtdata.StepData[27].Inactive = "True"; - // Caution4 - fmtdata.StepData[29].Inactive = "True"; - // Note - fmtdata.StepData[7].OneLineBeforeTab = "True"; - fmtdata.StepData[7].TabData.Bullet.Separate = "False"; - // Note1 - fmtdata.StepData[22].Inactive = "True"; - // Note2 - fmtdata.StepData[23].Inactive = "True"; - // Note3 - fmtdata.StepData[26].Inactive = "True"; - // Note4 - fmtdata.StepData[28].Inactive = "True"; - // Note5 - fmtdata.StepData[32].Inactive = "True"; - // RNO - fmtdata.StepData[40].Font.FontFamily = "Consolas"; - fmtdata.TPL = "0 0 title\r\n1 39 \\ul\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\\ulnone\r\n"; - - } - private void AddNSPDEVFMT(ref FormatData fmtdata) - { - // Adjust page length - fmtdata.ProcData.TitleLength = 50; - // Turn off Replace Words - fmtdata.SectData.TurnOffReplaceWords = "True"; - - // Set the overall font to Arial 11 pt - fmtdata.FontData.FontFamily = "Arial"; - fmtdata.FontData.FontSize = "11"; - fmtdata.FontData.CPI = "10"; - - fmtdata.SectData.SectionNumber.Font.FontFamily = "Arial"; - fmtdata.SectData.SectionNumber.Font.FontSize = "11"; - fmtdata.SectData.SectionHeader.Font.FontFamily = "Arial"; - fmtdata.SectData.SectionHeader.Font.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectLayData.VertStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.VertStyle.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Font.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Font.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.Font.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.Font.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ModifiedTextStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ModifiedTextStyle.FontSize = "11"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdrStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdrStyle.FontSize = "11"; - // Step Type Base - fmtdata.StepData[0].Font.FontFamily = "Arial"; - fmtdata.StepData[0].Font.FontSize = "11"; - fmtdata.StepData[0].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[0].TabData.Font.FontSize = "11"; - - // Substep - fmtdata.StepData[1].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[1].TabData.Font.FontSize = "11"; - - // Standard High Level step - fmtdata.StepData[2].Font.FontFamily = "Arial"; - fmtdata.StepData[2].Font.FontSize = "11"; - fmtdata.StepData[2].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[2].TabData.Font.FontSize = "11"; - - // Immediate High Level step - fmtdata.StepData[3].Font.FontFamily = "Arial"; - fmtdata.StepData[3].Font.FontSize = "11"; - fmtdata.StepData[3].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[3].TabData.Font.FontSize = "11"; - - // And - fmtdata.StepData[4].Font.FontFamily = "Arial"; - fmtdata.StepData[4].Font.FontSize = "11"; - fmtdata.StepData[4].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[4].TabData.Font.FontSize = "11"; - - // OR - fmtdata.StepData[5].Font.FontFamily = "Arial"; - fmtdata.StepData[5].Font.FontSize = "11"; - fmtdata.StepData[5].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[5].TabData.Font.FontSize = "11"; - - // Cautions - fmtdata.StepData[6].Font.FontFamily = "Arial"; - fmtdata.StepData[6].Font.FontSize = "11"; - fmtdata.StepData[6].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[6].TabData.Font.FontSize = "11"; - fmtdata.StepData[6].TabData.Font.CPI = "12"; - - // Notes - fmtdata.StepData[7].Font.FontFamily = "Arial"; - fmtdata.StepData[7].Font.FontSize = "11"; - fmtdata.StepData[7].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[7].TabData.Font.FontSize = "11"; - fmtdata.StepData[7].TabData.Font.CPI = "12"; - - // Table - fmtdata.StepData[8].Font.FontFamily = "Arial"; - fmtdata.StepData[8].Font.FontSize = "11"; - fmtdata.StepData[8].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[8].TabData.Font.FontSize = "11"; - fmtdata.StepData[8].TabData.Font.CPI = "12"; - - // Continuous - fmtdata.StepData[9].Font.FontFamily = "Arial"; - fmtdata.StepData[9].Font.FontSize = "11"; - fmtdata.StepData[9].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[9].TabData.Font.FontSize = "11"; - fmtdata.StepData[9].TabData.Font.CPI = "12"; - - // AER Table - fmtdata.StepData[10].Font.FontFamily = "Arial"; - fmtdata.StepData[10].Font.FontSize = "11"; - fmtdata.StepData[10].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[10].TabData.Font.FontSize = "11"; - fmtdata.StepData[10].TabData.Font.CPI = "12"; - - // EquipmentList - fmtdata.StepData[11].Font.FontFamily = "Arial"; - fmtdata.StepData[11].Font.FontSize = "11"; - fmtdata.StepData[11].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[11].TabData.Font.FontSize = "11"; - fmtdata.StepData[11].TabData.Font.CPI = "12"; - - // Title - fmtdata.StepData[12].Font.FontFamily = "Arial"; - fmtdata.StepData[12].Font.FontSize = "11"; - fmtdata.StepData[12].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[12].TabData.Font.FontSize = "11"; - fmtdata.StepData[12].TabData.Font.CPI = "12"; - - // PageNumber - fmtdata.StepData[13].Font.FontFamily = "Arial"; - fmtdata.StepData[13].Font.FontSize = "11"; - fmtdata.StepData[13].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[13].TabData.Font.FontSize = "11"; - fmtdata.StepData[13].TabData.Font.CPI = "12"; - - // EquipmentWBlank - fmtdata.StepData[14].Font.FontFamily = "Arial"; - fmtdata.StepData[14].Font.FontSize = "11"; - fmtdata.StepData[14].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[14].TabData.Font.FontSize = "11"; - fmtdata.StepData[14].TabData.Font.CPI = "12"; - - // ProcNumber - fmtdata.StepData[15].Font.FontFamily = "Arial"; - fmtdata.StepData[15].Font.FontSize = "11"; - fmtdata.StepData[15].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[15].TabData.Font.FontSize = "11"; - fmtdata.StepData[15].TabData.Font.CPI = "12"; - - // RevNumber - fmtdata.StepData[16].Font.FontFamily = "Arial"; - fmtdata.StepData[16].Font.FontSize = "11"; - fmtdata.StepData[16].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[16].TabData.Font.FontSize = "11"; - fmtdata.StepData[16].TabData.Font.CPI = "12"; - - // AccPages - fmtdata.StepData[17].Font.FontFamily = "Arial"; - fmtdata.StepData[17].Font.FontSize = "11"; - fmtdata.StepData[17].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[17].TabData.Font.FontSize = "11"; - fmtdata.StepData[17].TabData.Font.CPI = "12"; - - // LossOfAC - fmtdata.StepData[18].Font.FontFamily = "Arial"; - fmtdata.StepData[18].Font.FontSize = "11"; - fmtdata.StepData[18].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[18].TabData.Font.FontSize = "11"; - // ExplicitAnd - fmtdata.StepData[19].Font.FontFamily = "Arial"; - fmtdata.StepData[19].Font.FontSize = "11"; - fmtdata.StepData[19].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[19].TabData.Font.FontSize = "11"; - // Caution1 - fmtdata.StepData[20].Font.FontFamily = "Arial"; - fmtdata.StepData[20].Font.FontSize = "11"; - fmtdata.StepData[20].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[20].TabData.Font.FontSize = "11"; - // Caution2 - fmtdata.StepData[21].Font.FontFamily = "Arial"; - fmtdata.StepData[21].Font.FontSize = "11"; - fmtdata.StepData[21].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[21].TabData.Font.FontSize = "11"; - // Note1 - fmtdata.StepData[22].Font.FontFamily = "Arial"; - fmtdata.StepData[22].Font.FontSize = "11"; - fmtdata.StepData[22].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[22].TabData.Font.FontSize = "11"; - // Note2 - fmtdata.StepData[23].Font.FontFamily = "Arial"; - fmtdata.StepData[23].Font.FontSize = "11"; - fmtdata.StepData[23].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[23].TabData.Font.FontSize = "11"; - // Paragraph - fmtdata.StepData[24].Font.FontFamily = "Arial"; - fmtdata.StepData[24].Font.FontSize = "11"; - fmtdata.StepData[24].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[24].TabData.Font.FontSize = "11"; - // Default - fmtdata.StepData[25].Font.FontFamily = "Arial"; - fmtdata.StepData[25].Font.FontSize = "11"; - fmtdata.StepData[25].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[25].TabData.Font.FontSize = "11"; - // Note3 - fmtdata.StepData[26].Font.FontFamily = "Arial"; - fmtdata.StepData[26].Font.FontSize = "11"; - fmtdata.StepData[26].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[26].TabData.Font.FontSize = "11"; - // Caution3 - fmtdata.StepData[27].Font.FontFamily = "Arial"; - fmtdata.StepData[27].Font.FontSize = "11"; - fmtdata.StepData[27].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[27].TabData.Font.FontSize = "11"; - // Note4 - fmtdata.StepData[28].Font.FontFamily = "Arial"; - fmtdata.StepData[28].Font.FontSize = "11"; - fmtdata.StepData[28].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[28].TabData.Font.FontSize = "11"; - // Caution4 - fmtdata.StepData[29].Font.FontFamily = "Arial"; - fmtdata.StepData[29].Font.FontSize = "11"; - fmtdata.StepData[29].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[29].TabData.Font.FontSize = "11"; - // EquipmentOpt - fmtdata.StepData[30].Font.FontFamily = "Arial"; - fmtdata.StepData[30].Font.FontSize = "11"; - fmtdata.StepData[30].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[30].TabData.Font.FontSize = "11"; - // EquipmentOptWBlank - fmtdata.StepData[31].Font.FontFamily = "Arial"; - fmtdata.StepData[31].Font.FontSize = "11"; - fmtdata.StepData[31].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[31].TabData.Font.FontSize = "11"; - // Note5 - fmtdata.StepData[32].Font.FontFamily = "Arial"; - fmtdata.StepData[32].Font.FontSize = "11"; - fmtdata.StepData[32].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[32].TabData.Font.FontSize = "11"; - // BorderlessAERTable - fmtdata.StepData[33].Font.FontFamily = "Arial"; - fmtdata.StepData[33].Font.FontSize = "11"; - fmtdata.StepData[33].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[33].TabData.Font.FontSize = "11"; - // BorderlessTable - fmtdata.StepData[34].Font.FontFamily = "Arial"; - fmtdata.StepData[34].Font.FontSize = "11"; - fmtdata.StepData[34].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[34].TabData.Font.FontSize = "11"; - // ImplicitOr - fmtdata.StepData[35].Font.FontFamily = "Arial"; - fmtdata.StepData[35].Font.FontSize = "11"; - fmtdata.StepData[35].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[35].TabData.Font.FontSize = "11"; - // Figure - fmtdata.StepData[36].Font.FontFamily = "Arial"; - fmtdata.StepData[36].Font.FontSize = "11"; - fmtdata.StepData[36].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[36].TabData.Font.FontSize = "11"; - // AERFigure - fmtdata.StepData[37].Font.FontFamily = "Arial"; - fmtdata.StepData[37].Font.FontSize = "11"; - fmtdata.StepData[37].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[37].TabData.Font.FontSize = "11"; - // BorderlessFigure - fmtdata.StepData[38].Font.FontFamily = "Arial"; - fmtdata.StepData[38].Font.FontSize = "11"; - fmtdata.StepData[38].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[38].TabData.Font.FontSize = "11"; - // BorderlessAERFigure - fmtdata.StepData[39].Font.FontFamily = "Arial"; - fmtdata.StepData[39].Font.FontSize = "11"; - fmtdata.StepData[39].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[39].TabData.Font.FontSize = "11"; - // RNOType - fmtdata.StepData[40].Font.FontFamily = "Arial"; - fmtdata.StepData[40].Font.FontSize = "11"; - fmtdata.StepData[40].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[40].TabData.Font.FontSize = "11"; - // High5 - fmtdata.StepData[41].Font.FontFamily = "Arial"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[41].TabData.Font.FontSize = "11"; - // TitleWithTextRight - fmtdata.StepData[42].Font.FontFamily = "Arial"; - fmtdata.StepData[42].Font.FontSize = "11"; - fmtdata.StepData[42].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[42].TabData.Font.FontSize = "11"; - // TitleWithTextBelow - fmtdata.StepData[43].Font.FontFamily = "Arial"; - fmtdata.StepData[43].Font.FontSize = "11"; - fmtdata.StepData[43].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[43].TabData.Font.FontSize = "11"; - // ContAcSequential - fmtdata.StepData[44].Font.FontFamily = "Arial"; - fmtdata.StepData[44].Font.FontSize = "11"; - fmtdata.StepData[44].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[44].TabData.Font.FontSize = "11"; - // ContAcAnd - fmtdata.StepData[45].Font.FontFamily = "Arial"; - fmtdata.StepData[45].Font.FontSize = "11"; - fmtdata.StepData[45].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[45].TabData.Font.FontSize = "11"; - // ContAcOr - fmtdata.StepData[46].Font.FontFamily = "Arial"; - fmtdata.StepData[46].Font.FontSize = "11"; - fmtdata.StepData[46].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[46].TabData.Font.FontSize = "11"; - // ContAcParagraph - fmtdata.StepData[47].Font.FontFamily = "Arial"; - fmtdata.StepData[47].Font.FontSize = "11"; - fmtdata.StepData[47].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[47].TabData.Font.FontSize = "11"; - // Caution1 - fmtdata.StepData[20].Inactive = "True"; - // Caution2 - fmtdata.StepData[21].Inactive = "True"; - // Caution3 - fmtdata.StepData[27].Inactive = "True"; - // Caution4 - fmtdata.StepData[29].Inactive = "True"; - // Note1 - fmtdata.StepData[22].Inactive = "True"; - // Note2 - fmtdata.StepData[23].Inactive = "True"; - // Note3 - fmtdata.StepData[26].Inactive = "True"; - // Note4 - fmtdata.StepData[28].Inactive = "True"; - // Note5 - fmtdata.StepData[32].Inactive = "True"; - } - private void AddNSPIFGFMT(ref FormatData fmtdata) - { - // Set the overall font to Arial 11 pt - NSP_ArialFontInProcedures(ref fmtdata); - // checkoffs - fmtdata.ProcData.CheckOffData.CheckOffList[7].Index = 7; - fmtdata.ProcData.CheckOffData.CheckOffList[7].UIMark = 83; - fmtdata.ProcData.CheckOffData.CheckOffList[7].MenuItem = "S"; - fmtdata.ProcData.CheckOffData.CheckOffList[7].Macro = "C7"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Index = 8; - fmtdata.ProcData.CheckOffData.CheckOffList[8].UIMark = 88; - fmtdata.ProcData.CheckOffData.CheckOffList[8].MenuItem = "X"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Macro = "C8"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Index = 9; - fmtdata.ProcData.CheckOffData.CheckOffList[9].UIMark = 67; - fmtdata.ProcData.CheckOffData.CheckOffList[9].MenuItem = "C"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Macro = "C9"; - // High - fmtdata.StepData[2].Font.FontFamily = "Arial"; - fmtdata.StepData[2].Font.FontSize = "11"; - fmtdata.StepData[2].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[2].TabData.Font.FontSize = "11"; - // Immediate - fmtdata.StepData[3].Font.FontFamily = "Arial"; - fmtdata.StepData[3].Font.FontSize = "11"; - fmtdata.StepData[3].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[3].TabData.Font.FontSize = "11"; - // Continuous - fmtdata.StepData[9].Font.FontFamily = "Arial"; - fmtdata.StepData[9].Font.FontSize = "11"; - fmtdata.StepData[9].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[9].TabData.Font.FontSize = "11"; - // LossOfAC - fmtdata.StepData[18].Font.FontFamily = "Arial"; - fmtdata.StepData[18].Font.FontSize = "11"; - fmtdata.StepData[18].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[18].TabData.Font.FontSize = "11"; - // High5 - fmtdata.StepData[41].Font.FontFamily = "Consolas"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].TabData.Font.FontFamily = "Consolas"; - fmtdata.StepData[41].TabData.Font.FontSize = "11"; - fmtdata.StepData[41].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Unnumbered Step"; - fmtdata.StepData[41].TabData.IdentEdit = ""; - fmtdata.StepData[41].TabData.Ident = ""; - fmtdata.StepData[41].TabData.RNOIdentEdit = ""; - fmtdata.StepData[41].TabData.RNOIdent = ""; - - // Caution & Note - so that a line exists before the caution/note - fmtdata.StepData[6].OneLineBeforeTab = "True"; - fmtdata.StepData[7].OneLineBeforeTab = "True"; - - // Caution1 - fmtdata.StepData[20].Inactive = "True"; - // Caution2 - fmtdata.StepData[21].Inactive = "True"; - // Caution3 - fmtdata.StepData[27].Inactive = "True"; - // Caution4 - fmtdata.StepData[29].Inactive = "True"; - // Note1 - fmtdata.StepData[22].Inactive = "True"; - // Note2 - fmtdata.StepData[23].Inactive = "True"; - // Note3 - fmtdata.StepData[26].Inactive = "True"; - // Note4 - fmtdata.StepData[28].Inactive = "True"; - // Note5 - fmtdata.StepData[32].Inactive = "True"; - - //change Continuous Action Paragraph to a Fix Pitched font paragraph - fmtdata.StepData[47].WidthOverride = "425"; - fmtdata.StepData[47].Font.FontFamily = "Consolas"; - fmtdata.StepData[47].Font.FontSize = "11"; - fmtdata.StepData[47].Font.CPI = "12"; - fmtdata.StepData[47].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Paragraph"; - fmtdata.StepData[47].TabData.IdentEdit = ""; - fmtdata.StepData[47].TabData.Ident = ""; - fmtdata.StepData[47].TabData.RNOIdentEdit = ""; - fmtdata.StepData[47].TabData.RNOIdent = ""; - - // Add Procedure Information - fmtdata.ProcData.Psi.x = 415; - fmtdata.ProcData.Psi.y = 112; - fmtdata.ProcData.Psi.Caption = "Instrument Failure Guide"; - fmtdata.ProcData.Psi.font = "ARIAL"; - fmtdata.ProcData.Psi.ButtonsOnBottom = "YES"; - fmtdata.ProcData.Psi.Labels = new PsiLabel[1]; - fmtdata.ProcData.Psi.Labels[0].text = "IFG Name:"; - fmtdata.ProcData.Psi.Labels[0].Justify = "LEFT"; - fmtdata.ProcData.Psi.Labels[0].x = 9; - fmtdata.ProcData.Psi.Labels[0].y = 15; - fmtdata.ProcData.Psi.Labels[0].width = 30; - fmtdata.ProcData.Psi.Labels[0].height = 12; - fmtdata.ProcData.Psi.Fields = new PsiField[2]; - fmtdata.ProcData.Psi.Fields[0].name = "IFGName"; - fmtdata.ProcData.Psi.Fields[0].type = "TEXT"; - fmtdata.ProcData.Psi.Fields[0].text = ""; - fmtdata.ProcData.Psi.Fields[0].Length = 12; - fmtdata.ProcData.Psi.Fields[0].x = 50; - fmtdata.ProcData.Psi.Fields[0].y = 15; - fmtdata.ProcData.Psi.Fields[0].width = 60; - fmtdata.ProcData.Psi.Fields[0].height = 12; - fmtdata.ProcData.Psi.Fields[1].name = "UseIFGName"; - fmtdata.ProcData.Psi.Fields[1].type = "LOGICAL"; - fmtdata.ProcData.Psi.Fields[1].text = "Use IFG Name In the Page Header"; - fmtdata.ProcData.Psi.Fields[1].Length = 0; - fmtdata.ProcData.Psi.Fields[1].x = 9; - fmtdata.ProcData.Psi.Fields[1].y = 40; - fmtdata.ProcData.Psi.Fields[1].width = 130; - fmtdata.ProcData.Psi.Fields[1].height = 12; - } - private void AddNSPSAMFMT(ref FormatData fmtdata) - { - // Set the overall font to Arial 11 pt - NSP_ArialFontInProcedures(ref fmtdata); - fmtdata.SectData.StepSectionData.StpSectLayData.NullBox = "True"; - // checkoffs - fmtdata.ProcData.CheckOffData.CheckOffList[7].Index = 7; - fmtdata.ProcData.CheckOffData.CheckOffList[7].UIMark = 83; - fmtdata.ProcData.CheckOffData.CheckOffList[7].MenuItem = "S"; - fmtdata.ProcData.CheckOffData.CheckOffList[7].Macro = "C7"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Index = 8; - fmtdata.ProcData.CheckOffData.CheckOffList[8].UIMark = 88; - fmtdata.ProcData.CheckOffData.CheckOffList[8].MenuItem = "X"; - fmtdata.ProcData.CheckOffData.CheckOffList[8].Macro = "C8"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Index = 9; - fmtdata.ProcData.CheckOffData.CheckOffList[9].UIMark = 67; - fmtdata.ProcData.CheckOffData.CheckOffList[9].MenuItem = "C"; - fmtdata.ProcData.CheckOffData.CheckOffList[9].Macro = "C9"; - // Caution - fmtdata.StepData[6].ColOverride = "197"; - fmtdata.StepData[6].WidthOverride = "330"; - // Caution1 - fmtdata.StepData[20].Inactive = "True"; - // Caution2 - fmtdata.StepData[21].Inactive = "True"; - // Caution3 - fmtdata.StepData[27].Inactive = "True"; - // Caution4 - fmtdata.StepData[29].Inactive = "True"; - // Note - fmtdata.StepData[7].WidthOverride = "330"; - // Note1 - fmtdata.StepData[22].Inactive = "True"; - // Note2 - fmtdata.StepData[23].Inactive = "True"; - // Note3 - fmtdata.StepData[26].Inactive = "True"; - // Note4 - fmtdata.StepData[28].Inactive = "True"; - // Note5 - fmtdata.StepData[32].Inactive = "True"; - } - } - // Page and DOC - public partial class FmtToXml - { - #region Pagelist - // PageList - private void AddNSPPage(ref PageStyles pgstyles) - { - // Adjusted the left margin to better align the procedure text - - // Procedure Steps - pgstyles.PgStyles[0].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[0].Items[1].Col = -18; // {HEADER1} - pgstyles.PgStyles[0].Items[2].Col = 269; // {PROCTITLE} - pgstyles.PgStyles[0].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[2].Style.CPI = "10"; - pgstyles.PgStyles[0].Items[3].Col = 515; // REV. {REV} - pgstyles.PgStyles[0].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[3].Style.CPI = "10"; - pgstyles.PgStyles[0].Items[4].Col = 28; // {EOPNUM} - pgstyles.PgStyles[0].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[4].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[4].Style.CPI = "10"; - pgstyles.PgStyles[0].Items[5].Col = -18; // {BOX2} - pgstyles.PgStyles[0].Items[6].Col = 246; // Page {PAGE} of {OF} - pgstyles.PgStyles[0].Items[6].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[6].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[6].Style.CPI = "10"; - // Figure Included in Page Count - pgstyles.PgStyles[1].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[1].Items[1].Col = -18; // {HEADER1} - pgstyles.PgStyles[1].Items[2].Col = 243; // {PROCTITLE} - pgstyles.PgStyles[1].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[1].Items[2].Style.CPI = "10"; - pgstyles.PgStyles[1].Items[3].Col = 461; // {REV} - pgstyles.PgStyles[1].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[1].Items[3].Style.CPI = "10"; - pgstyles.PgStyles[1].Items[4].Col = 25; // {EOPNUM} - pgstyles.PgStyles[1].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[4].Style.FontSize = "11"; - pgstyles.PgStyles[1].Items[4].Style.CPI = "10"; - pgstyles.PgStyles[1].Items[5].Col = -18; // {BOX1} - pgstyles.PgStyles[1].Items[6].Col = 221; // Page {PAGE} of {OF} - pgstyles.PgStyles[1].Items[6].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[6].Style.FontSize = "11"; - pgstyles.PgStyles[1].Items[6].Style.CPI = "10"; - // Cover sheet with Retention 5 years - pgstyles.PgStyles[2].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[2].Items[1].Col = 320; // {EOPNUM} - pgstyles.PgStyles[2].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[1].Style.FontSize = "11"; - pgstyles.PgStyles[2].Items[1].Style.CPI = "10"; - pgstyles.PgStyles[2].Items[2].Col = 320; // REV. {REV} - pgstyles.PgStyles[2].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[2].Items[2].Style.CPI = "10"; - pgstyles.PgStyles[2].Items[3].Col = 320; // Page {PAGE} of {OF} - pgstyles.PgStyles[2].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[2].Items[3].Style.CPI = "10"; - pgstyles.PgStyles[2].Items[4].Col = 320; // Retention: 5 Yrs. - pgstyles.PgStyles[2].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[4].Style.FontSize = "11"; - pgstyles.PgStyles[2].Items[4].Style.CPI = "10"; - - // Cover Sheet 2004 With no Retention - pgstyles.PgStyles[3].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[3].Items[1].Col = -18; // {HEADER1} - pgstyles.PgStyles[3].Items[2].Col = 240; // {PROCTITLE} - pgstyles.PgStyles[3].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[3].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[3].Items[2].Style.CPI = "10"; - pgstyles.PgStyles[3].Items[3].Col = 460; // {REV} - pgstyles.PgStyles[3].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[3].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[3].Items[3].Style.CPI = "10"; - pgstyles.PgStyles[3].Items[4].Col = 25; // {EOPNUM} - pgstyles.PgStyles[3].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[3].Items[4].Style.FontSize = "11"; - pgstyles.PgStyles[3].Items[4].Style.CPI = "10"; - pgstyles.PgStyles[3].Items[5].Col = 220; // Page {PAGE} of {OF} - pgstyles.PgStyles[3].Items[5].Style.FontFamily = "Arial"; - pgstyles.PgStyles[3].Items[5].Style.FontSize = "11"; - pgstyles.PgStyles[3].Items[5].Style.CPI = "10"; - - // Cover Sheet - pgstyles.PgStyles[4].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[4].Items[1].Col = 513; // {EOPNUM} - pgstyles.PgStyles[4].Items[1].Justify = "PSRight"; - pgstyles.PgStyles[4].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[4].Items[1].Style.FontSize = "11"; - pgstyles.PgStyles[4].Items[1].Style.CPI = "10"; - pgstyles.PgStyles[4].Items[2].Col = 513; // REV. {REV} - pgstyles.PgStyles[4].Items[2].Justify = "PSRight"; - pgstyles.PgStyles[4].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[4].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[4].Items[2].Style.CPI = "10"; - pgstyles.PgStyles[4].Items[3].Col = 513; // Page {PAGE} of {OF} - pgstyles.PgStyles[4].Items[3].Justify = "PSRight"; - pgstyles.PgStyles[4].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[4].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[4].Items[3].Style.CPI = "10"; - - // Ter Editor Foldout pages - pgstyles.PgStyles[5].Name = "MS Word Editor Foldout pages"; - pgstyles.PgStyles[5].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - - // Purpose And Entry Conditions with Header Box - pgstyles.PgStyles[6].Items[0].Col = 1; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[6].Items[1].Col = 0; // {HEADER1} - pgstyles.PgStyles[6].Items[2].Col = 258; // {PROCTITLE} - pgstyles.PgStyles[6].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[6].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[6].Items[2].Style.CPI = "10"; - pgstyles.PgStyles[6].Items[3].Col = 478; // {REV} - pgstyles.PgStyles[6].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[6].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[6].Items[3].Style.CPI = "10"; - pgstyles.PgStyles[6].Items[4].Col = 43; // {EOPNUM} - pgstyles.PgStyles[6].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[6].Items[4].Style.FontSize = "11"; - pgstyles.PgStyles[6].Items[4].Style.CPI = "10"; - pgstyles.PgStyles[6].Items[5].Col = 239; // Page {PAGE} of {OF} - pgstyles.PgStyles[6].Items[5].Style.FontFamily = "Arial"; - pgstyles.PgStyles[6].Items[5].Style.FontSize = "11"; - pgstyles.PgStyles[6].Items[5].Style.CPI = "10"; - - // Two Column Auto Action Pages - pgstyles.PgStyles[7].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[7].Items[1].Col = 503; // {REV} - pgstyles.PgStyles[7].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[7].Items[1].Style.FontSize = "11"; - pgstyles.PgStyles[7].Items[1].Style.CPI = "10"; - pgstyles.PgStyles[7].Items[2].Col = 503; // {EOPNUM} - pgstyles.PgStyles[7].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[7].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[7].Items[2].Style.CPI = "10"; - pgstyles.PgStyles[7].Items[3].Col = 248; // {SECTIONLEVELTITLE} - pgstyles.PgStyles[7].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[7].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[7].Items[3].Style.CPI = "10"; - pgstyles.PgStyles[7].Items[4].Col = -18; // {BOX2} - pgstyles.PgStyles[7].Items[5].Col = 503; // Page {PAGE} of {OF} - pgstyles.PgStyles[7].Items[5].Style.FontFamily = "Arial"; - pgstyles.PgStyles[7].Items[5].Style.FontSize = "11"; - pgstyles.PgStyles[7].Items[5].Style.CPI = "10"; - pgstyles.PgStyles[7].Items[5].Justify = "PSRight, PSTrue"; // Page {PAGE} of {OF} - - // Auto Continuous Action Summary - pgstyles.PgStyles[8].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[8].Items[1].Col = -18; // {HEADER1} - pgstyles.PgStyles[8].Items[2].Col = 29; // {EOPNUM} - pgstyles.PgStyles[8].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[8].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[8].Items[2].Style.CPI = "10"; - pgstyles.PgStyles[8].Items[3].Col = 251; // {PROCTITLE} - pgstyles.PgStyles[8].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[8].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[8].Items[3].Style.CPI = "10"; - pgstyles.PgStyles[8].Items[4].Col = 503; // {REV} - pgstyles.PgStyles[8].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[8].Items[4].Style.FontSize = "11"; - pgstyles.PgStyles[8].Items[4].Style.CPI = "10"; - pgstyles.PgStyles[8].Items[5].Col = -18; // {BOX4} - pgstyles.PgStyles[8].Items[6].Col = 263; // {SECTIONLEVELNUMBER} - pgstyles.PgStyles[8].Items[6].Style.FontFamily = "Arial"; - pgstyles.PgStyles[8].Items[6].Style.FontSize = "11"; - pgstyles.PgStyles[8].Items[6].Style.CPI = "10"; - pgstyles.PgStyles[8].Items[7].Col = 263; // {SECTIONLEVELTITLE} - pgstyles.PgStyles[8].Items[7].Style.FontFamily = "Arial"; - pgstyles.PgStyles[8].Items[7].Style.FontSize = "11"; - pgstyles.PgStyles[8].Items[7].Style.CPI = "10"; - pgstyles.PgStyles[8].Items[8].Col = 263; // Page {DOCCURPAGE} of {DOCTOTPAGE} - pgstyles.PgStyles[8].Items[8].Style.FontFamily = "Arial"; - pgstyles.PgStyles[8].Items[8].Style.FontSize = "11"; - pgstyles.PgStyles[8].Items[8].Style.CPI = "10"; - pgstyles.PgStyles[8].Items[9].Col = 251; // Page {PAGE} of {OF} - pgstyles.PgStyles[8].Items[9].Style.FontFamily = "Arial"; - pgstyles.PgStyles[8].Items[9].Style.FontSize = "11"; - pgstyles.PgStyles[8].Items[9].Style.CPI = "10"; - } - // NSP foldouts - private void AddNSP00Page(ref PageStyles pgstyles) - { - // Adjusted the left margin to better align the procedure text - - // Foldout Pages - pgstyles.PgStyles[0].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[0].Items[0].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[0].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[0].Style.CPI = "10"; - pgstyles.PgStyles[0].Items[1].Col = 258; // {SECTIONLEVELTITLE} - pgstyles.PgStyles[0].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[1].Style.FontSize = "10"; - pgstyles.PgStyles[0].Items[1].Style.CPI = "10"; - PSItem[] Fpsitms = null; - Fpsitms = new PSItem[4]; - pgstyles.PgStyles[0].Items.CopyTo(Fpsitms, 0); - - PSItem pi = new PSItem(); - pi.Token = "{EOPNUM}"; //{EOPNUM} - pi.Col = 530; - pi.Row = 12; - pi.Justify = "PSRight"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[2] = pi; - - pi = new PSItem(); - pi.Token = "REV. {REV}"; //{REV} - pi.Col = 530; - pi.Row = 24; - pi.Justify = "PSRight"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[3] = pi; - - pgstyles.PgStyles[0].Items = Fpsitms; - } - // NSPBCK_ALL - private void AddNSPBckPage(ref PageStyles pgstyles) - { - // Background Text - first page - pgstyles.PgStyles[0].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[0].Items[1].Col = 519; //{EOPNUM} - pgstyles.PgStyles[0].Items[1].Justify = "PSRight"; - pgstyles.PgStyles[0].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[1].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[2].Col = 519; //{REV} - pgstyles.PgStyles[0].Items[2].Justify = "PSRight"; - pgstyles.PgStyles[0].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[3].Col = 519; //{Page} of {OF} - pgstyles.PgStyles[0].Items[3].Justify = "PSRight"; - pgstyles.PgStyles[0].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[3].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[4].Col = 285; // BACKGROUND INFORMATION FOR - pgstyles.PgStyles[0].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[4].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[5].Col = 285; // {EOPNUM}, {PROCTITLE} - pgstyles.PgStyles[0].Items[5].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[5].Style.FontSize = "11"; - // Background Text - rest of pages - pgstyles.PgStyles[1].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[1].Items[1].Col = 519; //{EOPNUM} - pgstyles.PgStyles[1].Items[1].Justify = "PSRight"; - pgstyles.PgStyles[1].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[1].Style.FontSize = "11"; - pgstyles.PgStyles[1].Items[2].Col = 519; //{REV} - pgstyles.PgStyles[1].Items[2].Justify = "PSRight"; - pgstyles.PgStyles[1].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[1].Items[3].Col = 519; //{Page} of {OF} - pgstyles.PgStyles[1].Items[3].Justify = "PSRight"; - pgstyles.PgStyles[1].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[3].Style.FontSize = "11"; - // attachments - pgstyles.PgStyles[2].Items[0].Col = -5; // {DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[2].Items[1].Col = 477; //{EOPNUM} - pgstyles.PgStyles[2].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[1].Style.FontSize = "11"; - pgstyles.PgStyles[2].Items[2].Col = 477;//{REV} - pgstyles.PgStyles[2].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[2].Items[3].Col = 477; //{Page} of {OF} - pgstyles.PgStyles[2].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[3].Style.FontSize = "11"; - } - private void AddNSPABPage(ref PageStyles pgstyles) - { - //Procedure Steps - //{PS-CONFSTATE} - pgstyles.PgStyles[0].Items[1].Col = 287; - //{COVERPROCTITLE} - pgstyles.PgStyles[0].Items[6].Col = 336; - pgstyles.PgStyles[0].Items[6].Style.CPI = "8"; - //{EOPNUM} - pgstyles.PgStyles[0].Items[7].Col = 511; - pgstyles.PgStyles[0].Items[7].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[0].Items[8].Col = 513; - pgstyles.PgStyles[0].Items[8].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[0].Items[9].Col = 513; - //{PS-CONFSTATE} - pgstyles.PgStyles[0].Items[10].Col = 287; - - //Purpose and Entry - //{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE} - pgstyles.PgStyles[1].Items[0].Col = 48; - //{PS-CONFSTATE} - pgstyles.PgStyles[1].Items[1].Col = 337; - //{PS=AB_OP_PROC?[HEADER1]|} - pgstyles.PgStyles[1].Items[2].Col = 45; - //{PS=AB_PROC?[HEADER2]|} - pgstyles.PgStyles[1].Items[3].Col = 45; - //{BOX1} - pgstyles.PgStyles[1].Items[4].Col = 45; - //{COVERPROCTITLE} - pgstyles.PgStyles[1].Items[5].Col = 386; - pgstyles.PgStyles[1].Items[5].Style.CPI = "8"; - //{EOPNUM} - pgstyles.PgStyles[1].Items[6].Col = 556; - pgstyles.PgStyles[1].Items[6].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[1].Items[7].Col = 558; - pgstyles.PgStyles[1].Items[7].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[1].Items[8].Col = 558; - //{PS-CONFSTATE} - pgstyles.PgStyles[1].Items[9].Col = 337; - - //Cover Page - //{PS-CONFSTATE} - pgstyles.PgStyles[2].Items[1].Col = 256; - //{COVERPROCTITLE} - pgstyles.PgStyles[2].Items[6].Col = 300; - pgstyles.PgStyles[2].Items[6].Row = 84; - pgstyles.PgStyles[2].Items[6].Style.CPI = "8"; - pgstyles.PgStyles[2].Items[6].Justify = "PSCenter"; - //{EOPNUM} - pgstyles.PgStyles[2].Items[7].Col = 511; - pgstyles.PgStyles[2].Items[7].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[2].Items[8].Col = 513; - pgstyles.PgStyles[2].Items[8].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[2].Items[9].Col = 513; - //{PS-CONFSTATE} - pgstyles.PgStyles[2].Items[13].Col = 256; - - //Accessory page - //{PS-CONFSTATE} - pgstyles.PgStyles[3].Items[1].Col = 256; - //{COVERPROCTITLE} - pgstyles.PgStyles[3].Items[5].Col = 300; - pgstyles.PgStyles[3].Items[5].Row = 84; - pgstyles.PgStyles[3].Items[5].Style.CPI = "8"; - //{EOPNUM} - pgstyles.PgStyles[3].Items[6].Col = 511; - pgstyles.PgStyles[3].Items[6].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[3].Items[7].Col = 513; - pgstyles.PgStyles[3].Items[7].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[3].Items[8].Col = 513; - //{PS-CONFSTATE} - pgstyles.PgStyles[3].Items[11].Col = 256; - - //Attachment with Checkoffs (Step Editor) - //{PS-CONFSTATE} - pgstyles.PgStyles[4].Items[1].Col = 287; - //{COVERPROCTITLE} - pgstyles.PgStyles[4].Items[5].Col = 336; - pgstyles.PgStyles[4].Items[5].Style.CPI = "8"; - //{EOPNUM} - pgstyles.PgStyles[4].Items[6].Col = 511; - pgstyles.PgStyles[4].Items[6].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[4].Items[7].Col = 513; - pgstyles.PgStyles[4].Items[7].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[4].Items[8].Col = 513; - //{PS-CONFSTATE} - pgstyles.PgStyles[4].Items[11].Col = 287; - - } - private void AddNSPABPage_Z00(ref PageStyles pgstyles) - { - //"Attachment with Checkoff - //{PS-CONFSTATE} - pgstyles.PgStyles[0].Items[1].Col = 287; - //{COVERPROCTITLE} - pgstyles.PgStyles[0].Items[5].Col = 336; - pgstyles.PgStyles[0].Items[5].Style.CPI = "8"; - //{EOPNUM} - pgstyles.PgStyles[0].Items[6].Col = 511; - pgstyles.PgStyles[0].Items[6].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[0].Items[7].Col = 513; - pgstyles.PgStyles[0].Items[7].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[0].Items[8].Col = 513; - //{PS-CONFSTATE} - pgstyles.PgStyles[0].Items[11].Col = 287; - - //Attachments - //{PS-CONFSTATE} - pgstyles.PgStyles[1].Items[1].Col = 267; - //{COVERPROCTITLE} - pgstyles.PgStyles[1].Items[5].Col = 279; - pgstyles.PgStyles[1].Items[5].Style.CPI = "8"; - //{EOPNUM} - pgstyles.PgStyles[1].Items[6].Col = 510; - pgstyles.PgStyles[1].Items[6].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[1].Items[7].Col = 510; - pgstyles.PgStyles[1].Items[7].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[1].Items[8].Col = 504; - //{PS-CONFSTATE} - pgstyles.PgStyles[1].Items[11].Col = 267; - } - private void AddNSPABPage_Z01(ref PageStyles pgstyles) - { - //Background Text - First Page - //{PS-CONFSTATE} - pgstyles.PgStyles[0].Items[1].Col = 287; - //{COVERPROCTITLE} - pgstyles.PgStyles[0].Items[5].Col = 336; - pgstyles.PgStyles[0].Items[5].Style.CPI = "8"; - //{EOPNUM} - pgstyles.PgStyles[0].Items[6].Col = 511; - pgstyles.PgStyles[0].Items[6].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[0].Items[7].Col = 513; - pgstyles.PgStyles[0].Items[7].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[0].Items[8].Col = 512; - //{PS-CONFSTATE} - pgstyles.PgStyles[0].Items[12].Col = 287; - - //Background Text - Blank Page - //{PS-CONFSTATE} - pgstyles.PgStyles[1].Items[1].Col = 287; - //{COVERPROCTITLE} - pgstyles.PgStyles[1].Items[5].Col = 336; - pgstyles.PgStyles[1].Items[5].Style.CPI = "8"; - //{EOPNUM} - pgstyles.PgStyles[1].Items[6].Col = 511; - pgstyles.PgStyles[1].Items[6].Style.CPI = "8"; - //{REV} - pgstyles.PgStyles[1].Items[7].Col = 513; - pgstyles.PgStyles[1].Items[7].Style.CPI = "8"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[1].Items[8].Col = 512; - //{PS-CONFSTATE} - pgstyles.PgStyles[1].Items[10].Col = 287; - } - private void AddNSPABPage_Z02(ref PageStyles pgstyles) - { - //Foldout Pages - //{SECTIONLEVELTITLE} - pgstyles.PgStyles[0].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[2].Style.FontSize = "11"; - pgstyles.PgStyles[0].Items[2].Style.CPI = "12"; - } - private void AddNSPDEVPage(ref PageStyles pgstyles) - { - // we need to add one new pgstyle - // expand the pgstyles.PgStyles array by one; - int numstyles = pgstyles.PgStyles.Length; // number of current PgStyles - numstyles += 1; // adding one more page styles - PageStyle[] pgs = new PageStyle[numstyles]; - // Deviation - - //int ii = 0; - //for (int i = 0; i < numstyles; i++) - //{ - // PageStyle ps = new PageStyle(); - // if (i != 2) ii++; // insert a new section by copying the second one - // if (i < numstyles - 1) - // ps = pgstyles.PgStyles[ii]; - // pgs[i] = ps; - //} - //pgstyles.PgStyles = pgs; - - - //Procedure Steps (Step Deviations) - copy and adjust font size - PageStyle ps = new PageStyle(); - PSItem[] Fpsitms = null; - ps = pgstyles.PgStyles[0]; - //PROCTITLE - ps.Items[2].Style.FontSize = "11"; - //REV - ps.Items[3].Style.FontSize = "11"; - //EOPNUM - ps.Items[4].Style.FontSize = "11"; - //Page {PAGE} of {OF} - ps.Items[6].Style.FontSize = "11"; - pgs[0] = ps; - - // Cover Page - ps = new PageStyle(); - ps.Name = "Cover Page"; - ps.Index = 1; - - Fpsitms = null; - Fpsitms = new PSItem[5]; - - PSItem pi = new PSItem(); - pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pi.Row = 12; - pi.Col = -3; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[0] = pi; - - pi = new PSItem(); - pi.Token = "Deviation Document"; - pi.Row = 132; - pi.Col = 237; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[1] = pi; - - pi = new PSItem(); - pi.Token = "{EOPNUM}"; - pi.Row = 156; - pi.Col = 237; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[2] = pi; - - pi = new PSItem(); - pi.Token = "{PROCTITLE}"; - pi.Row = 180; - pi.Col = 237; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[3] = pi; - - pi = new PSItem(); - pi.Token = "Revision {REV}"; - pi.Row = 204; - pi.Col = 237; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[4] = pi; - - ps.Items = Fpsitms; - pgs[1] = ps; - - //Introduction and Accessory page - With one Box (Header with One Box) - ps = new PageStyle(); - ps.Name = "Introduction and Accessory page - With Box"; - ps.Index = 2; - - Fpsitms = null; - Fpsitms = new PSItem[7]; - - pi = new PSItem(); - pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pi.Row = 12; - pi.Col = -6; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[0] = pi; - - pi = new PSItem(); - pi.Token = "{HEADER1}"; - pi.Row = 24; - pi.Col = -6; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[1] = pi; - - pi = new PSItem(); - pi.Token = "{PROCTITLE}"; - pi.Row = 60; - pi.Col = 255; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[2] = pi; - - pi = new PSItem(); - pi.Token = "{REV}"; - pi.Row = 60; - pi.Col = 477; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[3] = pi; - - pi = new PSItem(); - pi.Token = "{EOPNUM}"; - pi.Row = 60; - pi.Col = 45; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[4] = pi; - - pi = new PSItem(); - pi.Token = "{BOX1}"; - pi.Row = 96; - pi.Col = -6; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[5] = pi; - - pi = new PSItem(); - pi.Token = "Page {PAGE} of {OF}"; - pi.Row = 732; - pi.Col = 261; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[6] = pi; - - ps.Items = Fpsitms; - pgs[2] = ps; - - //Introduction and Accessory page - Without Box (Header without Box) - ps = new PageStyle(); - ps.Name = "Introduction and Accessory page - Without Box"; - ps.Index = 3; - - Fpsitms = null; - Fpsitms = new PSItem[6]; - - pi = new PSItem(); - pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pi.Row = 12; - pi.Col = -6; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[0] = pi; - - pi = new PSItem(); - pi.Token = "{HEADER1}"; - pi.Row = 24; - pi.Col = -6; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[1] = pi; - - pi = new PSItem(); - pi.Token = "{PROCTITLE}"; - pi.Row = 60; - pi.Col = 255; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[2] = pi; - - pi = new PSItem(); - pi.Token = "{REV}"; - pi.Row = 60; - pi.Col = 477; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[3] = pi; - - pi = new PSItem(); - pi.Token = "{EOPNUM}"; - pi.Row = 60; - pi.Col = 45; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[4] = pi; - - pi = new PSItem(); - pi.Token = "Page {PAGE} of {OF}"; - pi.Row = 732; - pi.Col = 261; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[5] = pi; - - ps.Items = Fpsitms; - pgs[3] = ps; - - pgstyles.PgStyles = pgs; - - } - private void AddNSPIFGPage(ref PageStyles pgstyles) - { - //First Page of Procedure Steps - //{EOPNUM} - pgstyles.PgStyles[0].Items[4].Token = "{PS=UseIFGName?[PS-IFGName]|[EOPNUM]}"; - - //The Rest of the Procedure Steps - //{EOPNUM} - pgstyles.PgStyles[1].Items[4].Token = "{PS=UseIFGName?[PS-IFGName]|[EOPNUM]}"; - //{HLSTEXT} - pgstyles.PgStyles[1].Items[8].Style.FontFamily = "Arial"; - pgstyles.PgStyles[1].Items[8].Style.FontSize = "11"; - } - private void AddNSPIFG_00Page(ref PageStyles pgstyles) - { - //First Page of Procedure Steps - //{EOPNUM} - pgstyles.PgStyles[0].Items[4].Token = "{PS=UseIFGName?[PS-IFGName]|[EOPNUM]}"; - //{SECTIONLEVELTITLE} - pgstyles.PgStyles[0].Items[8].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[8].Style.FontSize = "11"; - //{HLSTEXT} - pgstyles.PgStyles[0].Items[9].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[9].Style.FontSize = "11"; - //The Rest of the Procedure Steps - //{EOPNUM} - pgstyles.PgStyles[1].Items[4].Token = "{PS=UseIFGName?[PS-IFGName]|[EOPNUM]}"; - } - private void AddNSPARPPage(ref PageStyles pgstyles) - { - //First Page of Procedure Steps - //{PS-SHORTTIT1} - pgstyles.PgStyles[0].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[4].Style.FontSize = "11"; - //{PS-ALARM1} - pgstyles.PgStyles[0].Items[5].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[5].Style.FontSize = "11"; - //{PS-SHORTTIT2} - pgstyles.PgStyles[0].Items[6].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[6].Style.FontSize = "11"; - //{PS-ALARM2} - pgstyles.PgStyles[0].Items[7].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[7].Style.FontSize = "11"; - //{PS-SHORTTIT3} - pgstyles.PgStyles[0].Items[8].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[8].Style.FontSize = "11"; - //{PS-ALARM3} - pgstyles.PgStyles[0].Items[9].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[9].Style.FontSize = "11"; - //{PS-ALARM4} - pgstyles.PgStyles[0].Items[10].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[10].Style.FontSize = "11"; - //{PS-LONGTIT1} - pgstyles.PgStyles[0].Items[11].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[11].Style.FontSize = "11"; - //{PS-LONGTIT2} - pgstyles.PgStyles[0].Items[12].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[12].Style.FontSize = "11"; - //{PS-LONGTIT3} - pgstyles.PgStyles[0].Items[13].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[13].Style.FontSize = "11"; - //{PS-TRIPPED1} - pgstyles.PgStyles[0].Items[14].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[14].Style.FontSize = "11"; - //{PS-RESET1} - pgstyles.PgStyles[0].Items[15].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[15].Style.FontSize = "11"; - //{PS-LONGTIT4} - pgstyles.PgStyles[0].Items[16].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[16].Style.FontSize = "11"; - //{PS-TRIPPED2} - pgstyles.PgStyles[0].Items[17].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[17].Style.FontSize = "11"; - //{PS-RESET2} - pgstyles.PgStyles[0].Items[18].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[18].Style.FontSize = "11"; - //{PS=BOP_NSSS?SER Input Point: [PS-SERINPORT]|} - pgstyles.PgStyles[0].Items[19].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[19].Style.FontSize = "11"; - //{PS-TRIPPED3} - pgstyles.PgStyles[0].Items[20].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[20].Style.FontSize = "11"; - //{PS-RESET3} - pgstyles.PgStyles[0].Items[21].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[21].Style.FontSize = "11"; - //{PS=BOP_NSSS? Address: [PS-ADDRESS]|} - pgstyles.PgStyles[0].Items[22].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[22].Style.FontSize = "11"; - //{PS-TRIPPED4} - pgstyles.PgStyles[0].Items[23].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[23].Style.FontSize = "11"; - //{PS-RESET4} - pgstyles.PgStyles[0].Items[24].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[24].Style.FontSize = "11"; - } - private void AddNSPARP_00Page(ref PageStyles pgstyles) - { - //First Page of Procedure Steps - //{PS=TIMEDELAY?[BOX4]|} - pgstyles.PgStyles[0].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[3].Style.FontSize = "11"; - //{PS-SHORTTIT1} - pgstyles.PgStyles[0].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[4].Style.FontSize = "11"; - //{PS-ALARM1} - pgstyles.PgStyles[0].Items[5].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[5].Style.FontSize = "11"; - //{PS-SHORTTIT2} - pgstyles.PgStyles[0].Items[6].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[6].Style.FontSize = "11"; - //{PS-ALARM2} - pgstyles.PgStyles[0].Items[7].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[7].Style.FontSize = "11"; - //{PS-SHORTTIT3} - pgstyles.PgStyles[0].Items[8].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[8].Style.FontSize = "11"; - //{PS-ALARM3} - pgstyles.PgStyles[0].Items[9].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[9].Style.FontSize = "11"; - //{PS-ALARM4} - pgstyles.PgStyles[0].Items[10].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[10].Style.FontSize = "11"; - //{PS-LONGTIT1} - pgstyles.PgStyles[0].Items[11].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[11].Style.FontSize = "11"; - //{PS-LONGTIT2} - pgstyles.PgStyles[0].Items[12].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[12].Style.FontSize = "11"; - //{PS-LONGTIT3} - pgstyles.PgStyles[0].Items[13].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[13].Style.FontSize = "11"; - //{PS-TRIPPED1} - pgstyles.PgStyles[0].Items[14].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[14].Style.FontSize = "11"; - //{PS-RESET1} - pgstyles.PgStyles[0].Items[15].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[15].Style.FontSize = "11"; - //{PS-LONGTIT4} - pgstyles.PgStyles[0].Items[16].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[16].Style.FontSize = "11"; - //{PS-TRIPPED2} - pgstyles.PgStyles[0].Items[17].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[17].Style.FontSize = "11"; - //{PS-RESET2} - pgstyles.PgStyles[0].Items[18].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[18].Style.FontSize = "11"; - //{PS-TRIPPED3} - pgstyles.PgStyles[0].Items[19].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[19].Style.FontSize = "11"; - //{PS-RESET3} - pgstyles.PgStyles[0].Items[20].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[20].Style.FontSize = "11"; - //{PS-TRIPPED4} - pgstyles.PgStyles[0].Items[21].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[21].Style.FontSize = "11"; - //{PS-RESET4} - pgstyles.PgStyles[0].Items[22].Style.FontFamily = "Arial"; - pgstyles.PgStyles[0].Items[22].Style.FontSize = "11"; - } - private void AddNSPSAMPage(ref PageStyles pgstyles) - { - // Procedure Steps - pgstyles.PgStyles[0].Items[2].Style.CPI = "10"; - // Figures Included in Page Count - pgstyles.PgStyles[1].Items[2].Style.CPI = "10"; - //Cover sheet with retention 5 years - //{EOPNUM} - pgstyles.PgStyles[2].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[1].Style.FontSize = "11"; - //REV. {REV} - pgstyles.PgStyles[2].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[2].Style.FontSize = "11"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[2].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[3].Style.FontSize = "11"; - //Retention: 5 Yrs. - pgstyles.PgStyles[2].Items[4].Style.FontFamily = "Arial"; - pgstyles.PgStyles[2].Items[4].Style.FontSize = "11"; - //Cover Sheet - //{EOPNUM} - pgstyles.PgStyles[3].Items[1].Style.FontFamily = "Arial"; - pgstyles.PgStyles[3].Items[1].Style.FontSize = "11"; - //REV. {REV} - pgstyles.PgStyles[3].Items[2].Style.FontFamily = "Arial"; - pgstyles.PgStyles[3].Items[2].Style.FontSize = "11"; - //Page {PAGE} of {OF} - pgstyles.PgStyles[3].Items[3].Style.FontFamily = "Arial"; - pgstyles.PgStyles[3].Items[3].Style.FontSize = "11"; - //Figures with Seperate Pagination - // PROCTITLE - pgstyles.PgStyles[6].Items[2].Style.CPI = "10"; - //Page {DOCCURPAGE} of {DOCTOTPAGE} - pgstyles.PgStyles[6].Items[6].Style.FontFamily = "Arial"; - pgstyles.PgStyles[6].Items[6].Style.FontSize = "11"; - // Figures with Section Info - // PROCTITLE - pgstyles.PgStyles[7].Items[2].Style.CPI = "10"; - - // we need to add one new pgstyle - // expand the pgstyles.PgStyles array by one; - int numstyles = pgstyles.PgStyles.Length; // number of current PgStyles - numstyles += 1; // adding one more page styles - PageStyle[] pgs = new PageStyle[numstyles]; - PageStyle ps;// new PageStyle(); - // copy existing page lists - for (int i = 0; i < numstyles - 1; i++) - { - ps = new PageStyle(); - ps = pgstyles.PgStyles[i]; - pgs[i] = ps; - } - // Attachment with Section Info - ps = new PageStyle(); - ps.Name = "Attachment with Section Info"; - ps.Index = 8; - - PSItem[] Fpsitms = null; - Fpsitms = new PSItem[9]; - - PSItem pi = new PSItem(); - pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pi.Row = 12; - pi.Col = -3; - pi.Justify = "PSCenter"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[0] = pi; - - pi = new PSItem(); - pi.Token = "{HEADER1}"; - pi.Row = 24; - pi.Col = -18; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.FontStyle = "None"; - pi.Style.CPI = "12"; - Fpsitms[1] = pi; - - pi = new PSItem(); - pi.Token = "{PROCTITLE}"; - pi.Row = 60; - pi.Col = 249; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "10"; - pi.Style.FontStyle = "None"; - Fpsitms[2] = pi; - - pi = new PSItem(); - pi.Token = "REV. {REV}"; - pi.Row = 60; - pi.Col = 465; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[3] = pi; - - pi = new PSItem(); - pi.Token = "{EOPNUM}"; - pi.Row = 60; - pi.Col = 27; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[4] = pi; - - pi = new PSItem(); - pi.Token = "{BOX1}"; - pi.Row = 96; - pi.Col = -18; - pi.Justify = "PSLeft"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Prestige Elite Tall"; - pi.Style.FontSize = "10"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[5] = pi; - - pi = new PSItem(); - pi.Token = "{SECTIONLEVELNUMBER}"; - pi.Row = 126; - pi.Col = 231; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "12"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "Bold"; - Fpsitms[6] = pi; - - pi = new PSItem(); - pi.Token = "{SECTIONLEVELTITLE}"; - pi.Row = 138; - pi.Col = 231; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "12"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "Bold"; - Fpsitms[7] = pi; - - pi = new PSItem(); - pi.Token = "Page {DOCCURPAGE} of {DOCTOTPAGE}"; - pi.Row = 732; - pi.Col = 231; - pi.Justify = "PSTrue"; - pi.Style = new VE_Font(); - pi.Style.FontFamily = "Arial"; - pi.Style.FontSize = "11"; - pi.Style.CPI = "12"; - pi.Style.FontStyle = "None"; - Fpsitms[8] = pi; - - ps.Items = Fpsitms; - pgs[numstyles - 1] = ps; - - pgstyles.PgStyles = pgs; // save new pagelist - } - #endregion - #region DocStyle - // DOCSytle - public void AddNSPDOC(ref DocStyles dcstyles) - { - //Procedure Steps - dcstyles.DcStyles[0].LeftMargin = 80; - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].ContStyle.FontSize = "11"; - dcstyles.DcStyles[0].FooterLen = 0; - dcstyles.DcStyles[0].PageLength = 558; - //Purpose And Entry Conditions - dcstyles.DcStyles[1].LeftMargin = 62; - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - //Figure Included in Page Count - dcstyles.DcStyles[2].LeftMargin = 80; - dcstyles.DcStyles[2].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[2].dstyle.FontSize = "11"; - //Cover Page with Retention of 5 Years - dcstyles.DcStyles[3].LeftMargin = 62; - dcstyles.DcStyles[3].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[3].dstyle.FontSize = "11"; - //Cover Page 2004 with No Retention - dcstyles.DcStyles[4].LeftMargin = 80; - dcstyles.DcStyles[4].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[4].dstyle.FontSize = "11"; - //Cover Page - dcstyles.DcStyles[5].LeftMargin = 62; - dcstyles.DcStyles[5].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[5].dstyle.FontSize = "11"; - //TER Editor Foldout Pages - dcstyles.DcStyles[6].Name = "MS Word Editor Foldout Pages"; - dcstyles.DcStyles[6].LeftMargin = 50; - dcstyles.DcStyles[6].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[6].dstyle.FontSize = "11"; - //Attachment Pages - dcstyles.DcStyles[7].LeftMargin = 68; - dcstyles.DcStyles[7].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[7].dstyle.FontSize = "11"; - //Two Column Auto Action Pages - dcstyles.DcStyles[8].LeftMargin = 80; - dcstyles.DcStyles[8].PageLength = 552; - dcstyles.DcStyles[8].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[8].dstyle.FontSize = "11"; - dcstyles.DcStyles[8].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[8].ContStyle.FontSize = "11"; - //Auto Continuous Action Summary - dcstyles.DcStyles[9].LeftMargin = 80; - dcstyles.DcStyles[9].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[9].dstyle.FontSize = "11"; - } - public void AddNSP00DOC(ref DocStyles dcstyles) - { - //Step Editor Foldout - dcstyles.DcStyles[0].LeftMargin = 50; - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].dstyle.FontStyle = "None"; - //Foldout Pages (Accessory Editor) - dcstyles.DcStyles[1].LeftMargin = 20; - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - dcstyles.DcStyles[1].dstyle.FontStyle = "None"; - } - public void AddNSPBckDOC(ref DocStyles dcstyles) - { - //Background Text - first page - dcstyles.DcStyles[0].LeftMargin = 62; - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - //Background Text - rest of pages - dcstyles.DcStyles[1].LeftMargin = 62; - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - //attachments - dcstyles.DcStyles[2].LeftMargin = 68; - dcstyles.DcStyles[2].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[2].dstyle.FontSize = "11"; - } - public void AddNSPABDOC(ref DocStyles dcstyles) - { - //Procedure Steps - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].dstyle.CPI = "12"; - //Purpose And Entry Conditions - dcstyles.DcStyles[1].LeftMargin = 15; - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - dcstyles.DcStyles[1].dstyle.CPI = "12"; - //Attchment with Checkoffs (step editor) - dcstyles.DcStyles[2].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[2].dstyle.FontSize = "11"; - dcstyles.DcStyles[2].dstyle.CPI = "12"; - } - public void AddNSPAB_00DOC(ref DocStyles dcstyles) - { - //Abnormal Attachment with Checkoffs - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].dstyle.CPI = "12"; - //Attachments - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - dcstyles.DcStyles[1].dstyle.CPI = "12"; - } - public void AddNSPAB_01DOC(ref DocStyles dcstyles) - { - //Background Text - First Page - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].dstyle.CPI = "12"; - //Background Text - Blank Page - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - dcstyles.DcStyles[1].dstyle.CPI = "12"; - } - public void AddNSPAB_02DOC(ref DocStyles dcstyles) - { - //Step Editor Foldout - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].dstyle.CPI = "12"; - //Foldout Pages (Accessory Editor) - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - dcstyles.DcStyles[1].dstyle.CPI = "12"; - } - public void AddNSPDEVDOC(ref DocStyles dcstyles) - { - // we need to add one new docsyles - // expand the dcstyles.DcStyle array by one; - int numstyles = dcstyles.DcStyles.Length; // number of current docstyles - numstyles += 1; // adding one more docstyles - DocStyle[] dcs = new DocStyle[numstyles]; - int ii = 0; - for (int i = 0; i < numstyles; i++) - { - DocStyle dc = new DocStyle(); - dc = dcstyles.DcStyles[ii]; - dcs[i] = dc; - if (i != 1) ii++; // insert a new section by copying the second one - } - dcstyles.DcStyles = dcs; - - dcstyles.DcStyles[0].Name = "Step Deviations"; - //Procedure Steps - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - //dcstyles.DcStyles[0].ContStyle.FontFamily = "Arial"; - //dcstyles.DcStyles[0].ContStyle.FontSize = "11"; - dcstyles.DcStyles[0].PageLength = 564; - - //Cover Page - dcstyles.DcStyles[1].Name = "Cover Page"; - dcstyles.DcStyles[1].numberingsequence = 3; - dcstyles.DcStyles[1].oldtonew = 32; // gotten from NSP Enhanced Dev format - dcstyles.DcStyles[1].TopMargin = 228; - dcstyles.DcStyles[1].FooterLen = 12; - dcstyles.DcStyles[1].PageLength = 540; - dcstyles.DcStyles[1].PageWidth = 576; - dcstyles.DcStyles[1].LeftMargin = 48; - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - //dcstyles.DcStyles[1].ContStyle.FontFamily = "Arial"; - //dcstyles.DcStyles[1].ContStyle.FontSize = "11"; - - //Introduction & Appendix Pages - With Box - dcstyles.DcStyles[2].Name = "Introduction & Appendix Pages - With Box"; - dcstyles.DcStyles[2].Index = 2; - dcstyles.DcStyles[2].oldtonew = 448; - dcstyles.DcStyles[2].pagestyle = 2; - dcstyles.DcStyles[2].TopMargin = 132; - dcstyles.DcStyles[2].FooterLen = 0; - dcstyles.DcStyles[2].PageLength = 780; - dcstyles.DcStyles[2].PageWidth = 576; - dcstyles.DcStyles[2].LeftMargin = 42; - dcstyles.DcStyles[2].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[2].dstyle.FontSize = "11"; - //dcstyles.DcStyles[2].ContStyle.FontFamily = "Arial"; - //dcstyles.DcStyles[2].ContStyle.FontSize = "11"; - - //Foldout Pages - //Introduction & Appendix Pages - Without Box - dcstyles.DcStyles[3].Name = "Introduction & Appendix Pages - Without Box"; - dcstyles.DcStyles[3].Index = 3; - dcstyles.DcStyles[3].numberingsequence = 1; - dcstyles.DcStyles[3].oldtonew = 506888; - dcstyles.DcStyles[3].pagestyle = 3; - dcstyles.DcStyles[3].TopMargin = 108; - dcstyles.DcStyles[3].FooterLen = 0; - dcstyles.DcStyles[3].PageLength = 780; - dcstyles.DcStyles[3].PageWidth = 576; - dcstyles.DcStyles[3].LeftMargin = 42; - dcstyles.DcStyles[3].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[3].dstyle.FontSize = "11"; - //dcstyles.DcStyles[3].ContStyle.FontFamily = "Arial"; - //dcstyles.DcStyles[3].ContStyle.FontSize = "11"; - } - public void AddNSPIFGDOC(ref DocStyles dcstyles) - { - //First Procedure Steps Page - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].ContStyle.FontSize = "11"; - //All But First Procedure Steps Page - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - dcstyles.DcStyles[1].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].ContStyle.FontSize = "11"; - //Cover Page - dcstyles.DcStyles[2].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[2].dstyle.FontSize = "11"; - //Appendix Pages - dcstyles.DcStyles[3].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[3].dstyle.FontSize = "11"; - - dcstyles.DcStyles[0].ContTop = ""; - dcstyles.DcStyles[1].ContTop = ""; - - } - public void AddNSPARPDOC(ref DocStyles dcstyles) - { - //First Procedure Steps Page - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].ContStyle.FontSize = "11"; - //All But First Procedure Steps Page - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - dcstyles.DcStyles[1].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].ContStyle.FontSize = "11"; - //Cover Page - dcstyles.DcStyles[2].pagestyle = 4; - dcstyles.DcStyles[2].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[2].dstyle.FontSize = "11"; - //Appendix Pages - dcstyles.DcStyles[3].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[3].dstyle.FontSize = "11"; - //Annunciator Title Page - dcstyles.DcStyles[4].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[4].dstyle.FontSize = "11"; - dcstyles.DcStyles[4].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[4].ContStyle.FontSize = "11"; - } - public void AddNSPARP_00DOC(ref DocStyles dcstyles) - { - //First Procedure Steps Page - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].ContStyle.FontSize = "11"; - //All But First Procedure Steps Page - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - dcstyles.DcStyles[1].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].ContStyle.FontSize = "11"; - //Cover Page - dcstyles.DcStyles[2].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[2].dstyle.FontSize = "11"; - //Appendix Pages - dcstyles.DcStyles[3].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[3].dstyle.FontSize = "11"; - } - public void AddNSPSAMDOC(ref DocStyles dcstyles) - { - // we need to add one new docsyles - // expand the dcstyles.DcStyle array by one; - int numstyles = dcstyles.DcStyles.Length; // number of current docstyles - numstyles += 1; // adding one more docstyle - DocStyle[] dcs = new DocStyle[numstyles]; - int ii = 0; - for (int i = 0; i < numstyles; i++) - { - DocStyle dc = new DocStyle(); - if (i == numstyles - 1) - dc = dcstyles.DcStyles[5]; // insert a new section by copying the sixth one - else - dc = dcstyles.DcStyles[ii]; - dcs[i] = dc; - ii++; - } - dcstyles.DcStyles = dcs; - //Procedure Steps - dcstyles.DcStyles[0].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].dstyle.FontSize = "11"; - dcstyles.DcStyles[0].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[0].ContStyle.FontSize = "11"; - //Purpose And Entry Conditions - dcstyles.DcStyles[1].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[1].dstyle.FontSize = "11"; - //Figures Included in Page Count - dcstyles.DcStyles[2].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[2].dstyle.FontSize = "11"; - //Cover Page with retention of 5 years - dcstyles.DcStyles[3].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[3].dstyle.FontSize = "11"; - //Cover Page - dcstyles.DcStyles[4].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[4].dstyle.FontSize = "11"; - //Foldout Pages - dcstyles.DcStyles[5].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[5].dstyle.FontSize = "11"; - //Attachment Pages - dcstyles.DcStyles[6].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[6].dstyle.FontSize = "11"; - //Landscape Pages - dcstyles.DcStyles[7].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[7].dstyle.FontSize = "11"; - //Figures with Seperate Pagination - dcstyles.DcStyles[8].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[8].dstyle.FontSize = "11"; - //Figures with Section Info - dcstyles.DcStyles[9].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[9].dstyle.FontSize = "11"; - //Attachments with Section Info (copyied from Attachment Pages section) - dcstyles.DcStyles[10].Name = "Attachment Pages With Section Info"; - dcstyles.DcStyles[10].Index = 10; - dcstyles.DcStyles[10].pagestyle = 8; - dcstyles.DcStyles[10].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[10].dstyle.FontSize = "11"; - dcstyles.DcStyles[10].TopMargin = 162; - } - #endregion - } - // Genmac - public partial class RtfToSvg - { - private void AddNSP(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - "Number:" + - "Title:" + - "Revision{sp}Number:" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[1]); - - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "STEP" + - "ACTION/EXPECTED{sp}RESPONSE" + - "RESPONSE{sp}NOT{sp}OBTAINED" + - ""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[3]); - - xdNew.LoadXml(" " + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"STEP" + -"ACTION/EXPECTED{sp}RESPONSE" + -"RESPONSE{sp}NOT{sp}OBTAINED" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]); - - xdNew.LoadXml(" " + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"APPLY" + -"STEP" + -"CONTINUOUS{sp}ACTION" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[5]); - - xdNew.LoadXml(" " + - "E" + - ""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[6]); - - xdNew.LoadXml(" " + - "L" + - ""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[7]); - - xdNew.LoadXml(" " + - "M" + - ""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[8]); - - xdNew.LoadXml(" " + - "N" + - ""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[9]); - - xdNew.LoadXml(" " + - "$" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[10]); - - xdNew.LoadXml(" " + - "S" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[11]); - - xdNew.LoadXml(" " + - "X" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[12]); - - xdNew.LoadXml(" " + - "C" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + - "" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + - "" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - } - - private void AddNSPDEV(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - "EOP{sp}Number:" + - "Title:" + - "Revision{sp}Number:" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[1]); - - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "EOP{sp}STEP" + - "ERG{sp}STEP" + - "DEVIATION{sp}/{sp}JUSTIFICATION" + - ""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[3]); - - } - private void AddNSPARP(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + - "" + - "" + - "" + - "O.C.{sp}REVIEW{sp}DATE" + - "REVIEWED{sp}BY:" + - "APPROVED{sp}BY:" + - "DATE:" + - "DATE:" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[2]); - - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - "" + - "Alarm" + - "Approximate{sp}Setpoints" + - "Tripped" + - "Reset" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[3]); - - xdNew.LoadXml(" " + - "" + - "TD" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]); - - xdNew.LoadXml(" " + - "E" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[7]); - - xdNew.LoadXml(" " + - "L" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[8]); - - xdNew.LoadXml(" " + - "M" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[9]); - - xdNew.LoadXml(" " + - "N" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[10]); - - xdNew.LoadXml(" " + - "$" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[11]); - - xdNew.LoadXml(" " + - "S" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[12]); - - xdNew.LoadXml(" " + - "X" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[13]); - - xdNew.LoadXml(" " + - "C" + - ""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[14]); - - } - private void AddNSPAB(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + -"E" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[7]); - - xdNew.LoadXml(" " + -"L" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[8]); - - xdNew.LoadXml(" " + -"M" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[9]); - - xdNew.LoadXml(" " + -"N" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[10]); - - xdNew.LoadXml(" " + -"$" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[11]); - - xdNew.LoadXml(" " + - "S" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[12]); - - xdNew.LoadXml(" " + - "X" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[13]); - - xdNew.LoadXml(" " + - "C" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + -"" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + -"" + -""); - - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + -""); - - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - } - private void AddNSPIFG(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + -"" + -"" + -"" + -"O.C.{sp}REVIEW{sp}DATE" + -"REVIEWED{sp}BY:" + -"APPROVED{sp}BY:" + -"DATE:" + -"DATE:" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[2]); - - xdNew.LoadXml(" " + -"" + -"" + -"" + -"" + -"" + -"Alarm" + -"Approximate{sp}Setpoints" + -"Tripped" + -"Reset" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[3]); - - xdNew.LoadXml(" " + -"TD" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]); - - xdNew.LoadXml(" " + -"E" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[7]); - - xdNew.LoadXml(" " + -"L" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[8]); - - xdNew.LoadXml(" " + -"M" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[9]); - - xdNew.LoadXml(" " + -"N" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[10]); - - xdNew.LoadXml(" " + -"$" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[11]); - - xdNew.LoadXml(" " + - "S" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + - "X" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + - "C" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - } - private void AddNSPSAM(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - xdNew.LoadXml(" " + -"" + -"" + -"" + -"" + -"Number:" + -"Title:" + -"Revision{sp}Number:" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[1]); - - xdNew.LoadXml(" " + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"" + -"STEP" + -"ACTION/EXPECTED{sp}RESPONSE" + -"RESPONSE{sp}NOT{sp}OBTAINED" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[3]); - - xdNew.LoadXml(" " + -"E" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[4]); - - xdNew.LoadXml(" " + -"L" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[5]); - - xdNew.LoadXml(" " + -"M" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[6]); - - xdNew.LoadXml(" " + -"N" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[7]); - - xdNew.LoadXml(" " + -"$" + -""); - - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[8]); - - xdNew.LoadXml(" " + - "S" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + - "X" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - - xdNew.LoadXml(" " + - "C" + -""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true)); - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_Robinson.cs b/PROMS/fmtxml/PlantSpecific_Robinson.cs deleted file mode 100644 index caaffa87..00000000 --- a/PROMS/fmtxml/PlantSpecific_Robinson.cs +++ /dev/null @@ -1,1098 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddCPLfmt(ref FormatData fmtdata) // Robinson - { - Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.Name = "Duke Energy - Robinson EOP Format"; - fmtdata.ProcData.TitleLength = 42; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "443,193,114"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "443,193,114"; - fmtdata.BoxData[1].End = 457; // caution box - // Caution - fmtdata.StepData[6].MixCautionsAndNotes = "True"; - fmtdata.StepData[6].TabData.Bullet.Separate = "True"; - fmtdata.StepData[6].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[6].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[6].TabData.Bullet.Font.FontSize = "12"; - fmtdata.StepData[6].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[6].TabData.Bullet.Font.CPI = "12"; - // Note - fmtdata.StepData[7].MixCautionsAndNotes = "True"; - fmtdata.StepData[7].TabData.Bullet.Separate = "True"; - fmtdata.StepData[7].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[7].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[7].TabData.Bullet.Font.FontSize = "12"; - fmtdata.StepData[7].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[7].TabData.Bullet.Font.CPI = "12"; - // Unnumber High level Step - fmtdata.StepData[18].BoxIt = "False"; - fmtdata.StepData[18].StepEditData.TypeMenu.MenuItem = "Unnumbered Step"; - fmtdata.StepData[18].TabData.IdentEdit = ""; - fmtdata.StepData[18].TabData.Ident = ""; - fmtdata.StepData[18].TabData.RNOIdent = ""; - fmtdata.StepData[18].TabData.RNOIdentEdit = ""; - fmtdata.StepData[18].StepLayoutData.ForeColor = "cyan"; - - // Fixed Spaceing Unnumber High level Step - fmtdata.StepData[41].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Unnumbered Step"; - fmtdata.StepData[41].TabData.IdentEdit = ""; - fmtdata.StepData[41].Font.FontFamily = "Consolas"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].Font.CPI = "12"; - fmtdata.StepData[41].TabData.Ident = ""; - fmtdata.StepData[41].TabData.RNOIdent = ""; - fmtdata.StepData[41].TabData.RNOIdentEdit = ""; - fmtdata.StepData[41].StepLayoutData.ForeColor = "cyan"; - - // Fixed Spacing Paragraph (ContAcParagraph) - //change Continuous Action Paragraph to a Fix Pitched font paragraph - //fmtdata.StepData[47].WidthOverride = "425"; - fmtdata.StepData[47].Font.FontFamily = "Consolas"; - fmtdata.StepData[47].Font.FontSize = "11"; - fmtdata.StepData[47].Font.CPI = "12"; - fmtdata.StepData[47].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Paragraph"; - fmtdata.StepData[47].TabData.IdentEdit = ""; - fmtdata.StepData[47].TabData.Ident = ""; - fmtdata.StepData[47].TabData.RNOIdentEdit = ""; - fmtdata.StepData[47].TabData.RNOIdent = ""; - - // Transitions - - fmtdata.TransData.TransTypeData[6].TransUI = "ProcMenu, SectMenuAny, StepFirst"; - fmtdata.TransData.TransTypeData[9].TransUI = "ProcMenu, SectMenuAny, StepAllowNone, StepFirst"; - - } - private void AddCPL_X00(ref FormatData fmtdata) // Robinson - { - Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "400,195,114"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "400,195,114"; - // Unnumber High level Step - fmtdata.StepData[18].BoxIt = "False"; - fmtdata.StepData[18].StepEditData.TypeMenu.MenuItem = "Unnumbered Step"; - fmtdata.StepData[18].TabData.IdentEdit = ""; - fmtdata.StepData[18].TabData.Ident = ""; - fmtdata.StepData[18].TabData.RNOIdent = ""; - fmtdata.StepData[18].TabData.RNOIdentEdit = ""; - fmtdata.StepData[18].StepLayoutData.ForeColor = "cyan"; - - // Fixed Spaceing Unnumber High level Step - fmtdata.StepData[41].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Unnumbered Step"; - fmtdata.StepData[41].TabData.IdentEdit = ""; - fmtdata.StepData[41].Font.FontFamily = "Consolas"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].Font.CPI = "12"; - fmtdata.StepData[41].TabData.Ident = ""; - fmtdata.StepData[41].TabData.RNOIdent = ""; - fmtdata.StepData[41].TabData.RNOIdentEdit = ""; - fmtdata.StepData[41].StepLayoutData.ForeColor = "cyan"; - - // Fixed Spacing Paragraph (ContAcParagraph) - //change Continuous Action Paragraph to a Fix Pitched font paragraph - //fmtdata.StepData[47].WidthOverride = "425"; - fmtdata.StepData[47].Font.FontFamily = "Consolas"; - fmtdata.StepData[47].Font.FontSize = "11"; - fmtdata.StepData[47].Font.CPI = "12"; - fmtdata.StepData[47].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Paragraph"; - fmtdata.StepData[47].TabData.IdentEdit = ""; - fmtdata.StepData[47].TabData.Ident = ""; - fmtdata.StepData[47].TabData.RNOIdentEdit = ""; - fmtdata.StepData[47].TabData.RNOIdent = ""; - } - private void AddCPL_X01(ref FormatData fmtdata) // Robinson - { - Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "380,195,114"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "380,195,114"; - // Unnumber High level Step - fmtdata.StepData[18].BoxIt = "False"; - fmtdata.StepData[18].StepEditData.TypeMenu.MenuItem = "Unnumbered Step"; - fmtdata.StepData[18].TabData.IdentEdit = ""; - fmtdata.StepData[18].TabData.Ident = ""; - fmtdata.StepData[18].TabData.RNOIdent = ""; - fmtdata.StepData[18].TabData.RNOIdentEdit = ""; - fmtdata.StepData[18].StepLayoutData.ForeColor = "cyan"; - - // Fixed Spaceing Unnumber High level Step - fmtdata.StepData[41].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Unnumbered Step"; - fmtdata.StepData[41].TabData.IdentEdit = ""; - fmtdata.StepData[41].Font.FontFamily = "Consolas"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].Font.CPI = "12"; - fmtdata.StepData[41].TabData.Ident = ""; - fmtdata.StepData[41].TabData.RNOIdent = ""; - fmtdata.StepData[41].TabData.RNOIdentEdit = ""; - fmtdata.StepData[41].StepLayoutData.ForeColor = "cyan"; - - // Fixed Spacing Paragraph (ContAcParagraph) - //change Continuous Action Paragraph to a Fix Pitched font paragraph - //fmtdata.StepData[47].WidthOverride = "425"; - fmtdata.StepData[47].Font.FontFamily = "Consolas"; - fmtdata.StepData[47].Font.FontSize = "11"; - fmtdata.StepData[47].Font.CPI = "12"; - fmtdata.StepData[47].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Paragraph"; - fmtdata.StepData[47].TabData.IdentEdit = ""; - fmtdata.StepData[47].TabData.Ident = ""; - fmtdata.StepData[47].TabData.RNOIdentEdit = ""; - fmtdata.StepData[47].TabData.RNOIdent = ""; - } - private void AddCPL_X02(ref FormatData fmtdata) // Robinson - { - Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "400,195,114"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "400,195,114"; - // Unnumber High level Step - fmtdata.StepData[18].BoxIt = "False"; - fmtdata.StepData[18].StepEditData.TypeMenu.MenuItem = "Unnumbered Step"; - fmtdata.StepData[18].TabData.IdentEdit = ""; - fmtdata.StepData[18].TabData.Ident = ""; - fmtdata.StepData[18].TabData.RNOIdent = ""; - fmtdata.StepData[18].TabData.RNOIdentEdit = ""; - fmtdata.StepData[18].StepLayoutData.ForeColor = "cyan"; - - // Fixed Spaceing Unnumber High level Step - fmtdata.StepData[41].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Unnumbered Step"; - fmtdata.StepData[41].TabData.IdentEdit = ""; - fmtdata.StepData[41].Font.FontFamily = "Consolas"; - fmtdata.StepData[41].Font.FontSize = "11"; - fmtdata.StepData[41].Font.CPI = "12"; - fmtdata.StepData[41].TabData.Ident = ""; - fmtdata.StepData[41].TabData.RNOIdent = ""; - fmtdata.StepData[41].TabData.RNOIdentEdit = ""; - fmtdata.StepData[41].StepLayoutData.ForeColor = "cyan"; - - // Fixed Spacing Paragraph (ContAcParagraph) - //change Continuous Action Paragraph to a Fix Pitched font paragraph - //fmtdata.StepData[47].WidthOverride = "425"; - fmtdata.StepData[47].Font.FontFamily = "Consolas"; - fmtdata.StepData[47].Font.FontSize = "11"; - fmtdata.StepData[47].Font.CPI = "12"; - fmtdata.StepData[47].StepEditData.TypeMenu.MenuItem = "Fixed Spacing Paragraph"; - fmtdata.StepData[47].TabData.IdentEdit = ""; - fmtdata.StepData[47].TabData.Ident = ""; - fmtdata.StepData[47].TabData.RNOIdentEdit = ""; - fmtdata.StepData[47].TabData.RNOIdent = ""; - } - private void AddCPL_X03(ref FormatData fmtdata) // Robinson Duplex Foldouts - { - Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "460,138,114"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "460,138,114"; - } - private void OverrideCPL_X03(ref FormatData fmtdata) // Robinson Duplex Foldouts - { - fmtdata.TransData.CapsTransitions = "True"; - } - private void AddCPLRDev(ref FormatData fmtdata) // Robinson - { - Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.Name = "Duke Energy - Robinson Deviation Format"; - fmtdata.ProcData.TitleLength = 49; - } - private void AddCPLA(ref FormatData fmtdata) // Robinson - { - Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.Name = "Duke Energy - Robinson AOP Format"; - // Caution - fmtdata.StepData[6].MixCautionsAndNotes = "True"; - fmtdata.StepData[6].TabData.Bullet.Separate = "True"; - fmtdata.StepData[6].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[6].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[6].TabData.Bullet.Font.FontSize = "12"; - fmtdata.StepData[6].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[6].TabData.Bullet.Font.CPI = "12"; - // Note - fmtdata.StepData[7].MixCautionsAndNotes = "True"; - fmtdata.StepData[7].TabData.Bullet.Separate = "True"; - fmtdata.StepData[7].TabData.Bullet.Font = new VE_Font(); - fmtdata.StepData[7].TabData.Bullet.Font.FontFamily = "Arial"; - fmtdata.StepData[7].TabData.Bullet.Font.FontSize = "12"; - fmtdata.StepData[7].TabData.Bullet.Font.FontStyle = "none"; - fmtdata.StepData[7].TabData.Bullet.Font.CPI = "12"; - } - private void AddCPBCK(ref FormatData fmtdata) // Robinson - { - //Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.Name = "Duke Energy - Robinson Enhanced Background Format"; - } - private void OverrideAddCPBCK(ref FormatData fmtdata) // Robinson - { - // high - fmtdata.StepData[2].UseOldTemplate = "True"; - // Continuous - fmtdata.StepData[9].UseOldTemplate = "True"; - // Immediate - fmtdata.StepData[3].UseOldTemplate = "True"; - // LossOfAC - fmtdata.StepData[18].UseOldTemplate = "True"; - // High5 - fmtdata.StepData[41].UseOldTemplate = "True"; - // Caution - fmtdata.StepData[6].UseOldTemplate = "True"; - // Note - fmtdata.StepData[7].UseOldTemplate = "True"; - fmtdata.StepData[7].Inactive = "False"; - // Note 1 - fmtdata.StepData[22].Inactive = "True"; - // Note 2 - fmtdata.StepData[23].Inactive = "True"; - // Note 3 - fmtdata.StepData[26].Inactive = "True"; - // Note 4 - fmtdata.StepData[28].Inactive = "True"; - // Note 5 - fmtdata.StepData[32].Inactive = "True"; - // TitleWithTextRight - fmtdata.StepData[42].ReadOnly = "True"; - // TitleWithTextBelow - fmtdata.StepData[43].ReadOnly = "True"; - } - private void AddCPBCK_X00(ref FormatData fmtdata) // Robinson - { - //Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.Name = "Duke Energy - Enhanced Background Procedure Information"; - } - private void AddCPBCK_X01(ref FormatData fmtdata) // Robinson - { - //Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.Name = "Duke Energy - Robinson Enhanced Background Status Tree Format"; - } - private void AddCPBCK2(ref FormatData fmtdata) // Robinson - { - //Robinson_ArialFontInProcedures(ref fmtdata); - fmtdata.Name = "Duke Energy - Robinson Enhanced Background Additional Styles"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "496,216,144"; - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "496,216,144"; - - fmtdata.TransData.TransTypeData[7].TransUI = "ProcMenu, SectMenuStep, StepFirst"; - } - - - //private void AddCPLOverridefmt(ref FormatData fmtdata) - //{ - // fmtdata.BoxData[1].BXLLC = "-12345"; //this will put in a null string - // fmtdata.BoxData[1].BXULC = "-12345"; //this will put in a null string - // fmtdata.BoxData[1].BXVert = "-12345"; //this will put in a null string - // fmtdata.BoxData[1].BXURC = "-12345"; //this will put in a null string - // fmtdata.BoxData[1].BXULC = "-12345"; //this will put in a null string - //} - private void Robinson_ArialFontInProcedures(ref FormatData fmtdata) - { - // Set the overall font to Arial 12 pt - fmtdata.FontData.FontFamily = "Arial"; - fmtdata.FontData.FontSize = "12"; - fmtdata.FontData.CPI = "10"; - - fmtdata.SectData.SectionNumber.Font.FontFamily = "Arial"; - fmtdata.SectData.SectionNumber.Font.FontSize = "12"; - fmtdata.SectData.SectionHeader.Font.FontFamily = "Arial"; - fmtdata.SectData.SectionHeader.Font.FontSize = "12"; - fmtdata.SectData.StepSectionData.StpSectLayData.VertStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.VertStyle.FontSize = "12"; - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Font.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.TopOfPage.Font.FontSize = "12"; - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.Font.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectLayData.Separator.Font.FontSize = "12"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ModifiedTextStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ModifiedTextStyle.FontSize = "12"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdrStyle.FontFamily = "Arial"; - fmtdata.SectData.StepSectionData.StpSectPrtData.ImmStepHdrStyle.FontSize = "12"; - - // set the font in all the step/substep types - for (int i = 0; i < fmtdata.StepData.Length; i++) - { - if (fmtdata.StepData[i].Font != null) - { - fmtdata.StepData[i].Font.FontFamily = "Arial"; - fmtdata.StepData[i].Font.FontSize = "12"; - } - else - fmtdata.StepData[i].Font = CreateFont("Arial", "12", "None"); - if (fmtdata.StepData[i].TabData.Font != null) - { - fmtdata.StepData[i].TabData.Font.FontFamily = "Arial"; - fmtdata.StepData[i].TabData.Font.FontSize = "12"; - } - else - fmtdata.StepData[i].TabData.Font = CreateFont("Arial", "12", "None"); - } - #region broken out substeps - //// Step Type Base - //fmtdata.StepData[0].Font.FontFamily = "Arial"; - //fmtdata.StepData[0].Font.FontSize = "12"; - //fmtdata.StepData[0].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[0].TabData.Font.FontSize = "12"; - - //// Substep - //fmtdata.StepData[1].Font.FontFamily = "Arial"; - //fmtdata.StepData[1].Font.FontSize = "12"; - //fmtdata.StepData[1].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[1].TabData.Font.FontSize = "12"; - - //// Standard High Level step - //fmtdata.StepData[2].Font.FontFamily = "Arial"; - //fmtdata.StepData[2].Font.FontSize = "12"; - //fmtdata.StepData[2].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[2].TabData.Font.FontSize = "12"; - - //// Immediate - //fmtdata.StepData[3].Font.FontFamily = "Arial"; - //fmtdata.StepData[3].Font.FontSize = "12"; - //fmtdata.StepData[3].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[3].TabData.Font.FontSize = "12"; - - //// And - //fmtdata.StepData[4].Font.FontFamily = "Arial"; - //fmtdata.StepData[4].Font.FontSize = "12"; - //fmtdata.StepData[4].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[4].TabData.Font.FontSize = "12"; - - //// OR - //fmtdata.StepData[5].Font.FontFamily = "Arial"; - //fmtdata.StepData[5].Font.FontSize = "12"; - //fmtdata.StepData[5].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[5].TabData.Font.FontSize = "12"; - - //// Cautions - //fmtdata.StepData[6].Font.FontFamily = "Arial"; - //fmtdata.StepData[6].Font.FontSize = "12"; - //fmtdata.StepData[6].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[6].TabData.Font.FontSize = "12"; - //fmtdata.StepData[6].TabData.Font.CPI = "10"; - ////fmtdata.StepData[6].TabData.Bullet.Separate = "True"; - ////fmtdata.StepData[6].TabData.Bullet.Font = new VE_Font(); - ////fmtdata.StepData[6].TabData.Bullet.Font.FontFamily = "Arial"; - ////fmtdata.StepData[6].TabData.Bullet.Font.FontSize = "12"; - ////fmtdata.StepData[6].TabData.Bullet.Font.FontStyle = "none"; - ////fmtdata.StepData[6].WidthOverride = "421"; - ////fmtdata.StepData[6].ColOverride = "194"; - - //// Caution1 - //fmtdata.StepData[20].Font.FontFamily = "Arial"; - //fmtdata.StepData[20].Font.FontSize = "12"; - //fmtdata.StepData[20].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[20].TabData.Font.FontSize = "12"; - //fmtdata.StepData[20].TabData.Font.FontStyle = "Italics, Bold"; - //fmtdata.StepData[20].TabData.Font.CPI = "10"; - ////fmtdata.StepData[20].TabData.Bullet.Separate = "True"; - ////fmtdata.StepData[20].TabData.Bullet.Font = new VE_Font(); - ////fmtdata.StepData[20].TabData.Bullet.Font.FontFamily = "Arial"; - ////fmtdata.StepData[20].TabData.Bullet.Font.FontSize = "12"; - ////fmtdata.StepData[20].TabData.Bullet.Font.FontStyle = "Bold"; - - //// Caution2 - //fmtdata.StepData[21].Font.FontFamily = "Arial"; - //fmtdata.StepData[21].Font.FontSize = "12"; - //fmtdata.StepData[21].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[21].TabData.Font.FontSize = "12"; - //fmtdata.StepData[21].TabData.Font.CPI = "10"; - ////fmtdata.StepData[21].TabData.Bullet.Separate = "True"; - ////fmtdata.StepData[21].TabData.Bullet.Font = new VE_Font(); - ////fmtdata.StepData[21].TabData.Bullet.Font.FontFamily = "Arial"; - ////fmtdata.StepData[21].TabData.Bullet.Font.FontSize = "12"; - ////fmtdata.StepData[21].TabData.Bullet.Font.FontStyle = "Bold"; - - //// Caution3 - //fmtdata.StepData[27].Font.FontFamily = "Arial"; - //fmtdata.StepData[27].Font.FontSize = "12"; - //fmtdata.StepData[27].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[27].TabData.Font.FontSize = "12"; - //fmtdata.StepData[27].TabData.Font.CPI = "10"; - ////fmtdata.StepData[27].TabData.Bullet.Separate = "True"; - ////fmtdata.StepData[27].TabData.Bullet.Font = new VE_Font(); - ////fmtdata.StepData[27].TabData.Bullet.Font.FontFamily = "Arial"; - ////fmtdata.StepData[27].TabData.Bullet.Font.FontSize = "12"; - ////fmtdata.StepData[27].TabData.Bullet.Font.FontStyle = "Bold"; - - //// Caution4 - //fmtdata.StepData[29].Font.FontFamily = "Arial"; - //fmtdata.StepData[29].Font.FontSize = "12"; - //fmtdata.StepData[29].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[29].TabData.Font.FontSize = "12"; - //fmtdata.StepData[29].TabData.Font.CPI = "10"; - ////fmtdata.StepData[29].TabData.Bullet.Separate = "True"; - ////fmtdata.StepData[29].TabData.Bullet.Font = new VE_Font(); - ////fmtdata.StepData[29].TabData.Bullet.Font.FontFamily = "Arial"; - ////fmtdata.StepData[29].TabData.Bullet.Font.FontSize = "12"; - ////fmtdata.StepData[29].TabData.Bullet.Font.FontStyle = "Bold"; - - //// Notes - //fmtdata.StepData[7].Font.FontFamily = "Arial"; - //fmtdata.StepData[7].Font.FontSize = "12"; - //fmtdata.StepData[7].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[7].TabData.Font.FontSize = "12"; - //fmtdata.StepData[7].TabData.Font.CPI = "10"; - ////fmtdata.StepData[7].TabData.Bullet.Separate = "True"; - ////fmtdata.StepData[7].TabData.Bullet.Font = new VE_Font(); - ////fmtdata.StepData[7].TabData.Bullet.Font.FontFamily = "Arial"; - ////fmtdata.StepData[7].TabData.Bullet.Font.FontSize = "12"; - ////fmtdata.StepData[7].TabData.Bullet.Font.FontStyle = "Bold"; - ////fmtdata.StepData[7].WidthOverride = "401"; - - //// Note1 - //fmtdata.StepData[22].Font.FontFamily = "Arial"; - //fmtdata.StepData[22].Font.FontSize = "12"; - //fmtdata.StepData[22].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[22].TabData.Font.FontSize = "12"; - //fmtdata.StepData[22].TabData.Font.CPI = "10"; - - //// Note2 - //fmtdata.StepData[23].Font.FontFamily = "Arial"; - //fmtdata.StepData[23].Font.FontSize = "12"; - //fmtdata.StepData[23].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[23].TabData.Font.FontSize = "12"; - //fmtdata.StepData[23].TabData.Font.CPI = "10"; - - //// Note3 - //fmtdata.StepData[26].Font.FontFamily = "Arial"; - //fmtdata.StepData[26].Font.FontSize = "12"; - //fmtdata.StepData[26].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[26].TabData.Font.FontSize = "12"; - //fmtdata.StepData[26].TabData.Font.CPI = "10"; - - //// Note4 - //fmtdata.StepData[28].Font.FontFamily = "Arial"; - //fmtdata.StepData[28].Font.FontSize = "12"; - //fmtdata.StepData[28].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[28].TabData.Font.FontSize = "12"; - //fmtdata.StepData[28].TabData.Font.CPI = "10"; - - //// Note5 - //fmtdata.StepData[32].Font.FontFamily = "Arial"; - //fmtdata.StepData[32].Font.FontSize = "12"; - //fmtdata.StepData[32].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[32].TabData.Font.FontSize = "12"; - //fmtdata.StepData[32].TabData.Font.CPI = "10"; - - //// Table - //fmtdata.StepData[8].Font.FontFamily = "Arial"; - //fmtdata.StepData[8].Font.FontSize = "12"; - //fmtdata.StepData[8].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[8].TabData.Font.FontSize = "12"; - - //// Continuous - //fmtdata.StepData[9].Font.FontFamily = "Arial"; - //fmtdata.StepData[9].Font.FontSize = "12"; - //fmtdata.StepData[9].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[9].TabData.Font.FontSize = "12"; - //// AER Table - //fmtdata.StepData[10].Font.FontFamily = "Arial"; - //fmtdata.StepData[10].Font.FontSize = "12"; - //fmtdata.StepData[10].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[10].TabData.Font.FontSize = "12"; - //// EquipmentList - //fmtdata.StepData[11].Font.FontFamily = "Arial"; - //fmtdata.StepData[11].Font.FontSize = "12"; - //fmtdata.StepData[11].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[11].TabData.Font.FontSize = "12"; - //// Title - //fmtdata.StepData[12].Font.FontFamily = "Arial"; - //fmtdata.StepData[12].Font.FontSize = "12"; - //fmtdata.StepData[12].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[12].TabData.Font.FontSize = "12"; - //// PageNumber - //fmtdata.StepData[13].Font.FontFamily = "Arial"; - //fmtdata.StepData[13].Font.FontSize = "12"; - //fmtdata.StepData[13].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[13].TabData.Font.FontSize = "12"; - //// EquipmentWBlank - //fmtdata.StepData[14].Font.FontFamily = "Arial"; - //fmtdata.StepData[14].Font.FontSize = "12"; - //fmtdata.StepData[14].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[14].TabData.Font.FontSize = "12"; - //// ProcNumber - //fmtdata.StepData[15].Font.FontFamily = "Arial"; - //fmtdata.StepData[15].Font.FontSize = "12"; - //fmtdata.StepData[15].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[15].TabData.Font.FontSize = "12"; - //// RevNumber - //fmtdata.StepData[16].Font.FontFamily = "Arial"; - //fmtdata.StepData[16].Font.FontSize = "12"; - //fmtdata.StepData[16].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[16].TabData.Font.FontSize = "12"; - //// AccPages - //fmtdata.StepData[17].Font.FontFamily = "Arial"; - //fmtdata.StepData[17].Font.FontSize = "12"; - //fmtdata.StepData[17].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[17].TabData.Font.FontSize = "12"; - //// LossOfAC - //fmtdata.StepData[18].Font.FontFamily = "Arial"; - //fmtdata.StepData[18].Font.FontSize = "12"; - //fmtdata.StepData[18].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[18].TabData.Font.FontSize = "12"; - //// ExplicitAnd - //fmtdata.StepData[19].Font.FontFamily = "Arial"; - //fmtdata.StepData[19].Font.FontSize = "12"; - //fmtdata.StepData[19].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[19].TabData.Font.FontSize = "12"; - //// Paragraph - //fmtdata.StepData[24].Font.FontFamily = "Arial"; - //fmtdata.StepData[24].Font.FontSize = "12"; - //fmtdata.StepData[24].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[24].TabData.Font.FontSize = "12"; - //// Default - //fmtdata.StepData[25].Font.FontFamily = "Arial"; - //fmtdata.StepData[25].Font.FontSize = "12"; - //fmtdata.StepData[25].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[25].TabData.Font.FontSize = "12"; - //// EquipmentOpt - //fmtdata.StepData[30].Font.FontFamily = "Arial"; - //fmtdata.StepData[30].Font.FontSize = "12"; - //fmtdata.StepData[30].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[30].TabData.Font.FontSize = "12"; - //// EquipmentOptWBlank - //fmtdata.StepData[31].Font.FontFamily = "Arial"; - //fmtdata.StepData[31].Font.FontSize = "12"; - //fmtdata.StepData[31].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[31].TabData.Font.FontSize = "12"; - //// BorderlessAERTable - //fmtdata.StepData[33].Font.FontFamily = "Arial"; - //fmtdata.StepData[33].Font.FontSize = "12"; - //fmtdata.StepData[33].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[33].TabData.Font.FontSize = "12"; - //// BorderlessTable - //fmtdata.StepData[34].Font.FontFamily = "Arial"; - //fmtdata.StepData[34].Font.FontSize = "12"; - //fmtdata.StepData[34].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[34].TabData.Font.FontSize = "12"; - //// ImplicitOr - //fmtdata.StepData[35].Font.FontFamily = "Arial"; - //fmtdata.StepData[35].Font.FontSize = "12"; - //fmtdata.StepData[35].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[35].TabData.Font.FontSize = "12"; - //// Figure - //fmtdata.StepData[36].Font.FontFamily = "Arial"; - //fmtdata.StepData[36].Font.FontSize = "12"; - //fmtdata.StepData[36].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[36].TabData.Font.FontSize = "12"; - //// AERFigure - //fmtdata.StepData[37].Font.FontFamily = "Arial"; - //fmtdata.StepData[37].Font.FontSize = "12"; - //fmtdata.StepData[37].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[37].TabData.Font.FontSize = "12"; - //// BorderlessFigure - //fmtdata.StepData[38].Font.FontFamily = "Arial"; - //fmtdata.StepData[38].Font.FontSize = "12"; - //fmtdata.StepData[38].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[38].TabData.Font.FontSize = "12"; - //// BorderlessFAERigure - //fmtdata.StepData[39].Font.FontFamily = "Arial"; - //fmtdata.StepData[39].Font.FontSize = "12"; - //fmtdata.StepData[39].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[39].TabData.Font.FontSize = "12"; - //// RNOType - //fmtdata.StepData[40].Font.FontFamily = "Arial"; - //fmtdata.StepData[40].Font.FontSize = "12"; - //fmtdata.StepData[40].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[40].TabData.Font.FontSize = "12"; - //// HIGH5 - //fmtdata.StepData[41].Font.FontFamily = "Arial"; - //fmtdata.StepData[41].Font.FontSize = "12"; - //fmtdata.StepData[41].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[41].TabData.Font.FontSize = "12"; - //// TitleWithTextRight - //fmtdata.StepData[42].Font.FontFamily = "Arial"; - //fmtdata.StepData[42].Font.FontSize = "12"; - //fmtdata.StepData[42].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[42].TabData.Font.FontSize = "12"; - //// TitleWithTextBelow - //fmtdata.StepData[43].Font.FontFamily = "Arial"; - //fmtdata.StepData[43].Font.FontSize = "12"; - //fmtdata.StepData[43].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[43].TabData.Font.FontSize = "12"; - //// ContAcSequential - //fmtdata.StepData[44].Font.FontFamily = "Arial"; - //fmtdata.StepData[44].Font.FontSize = "12"; - //fmtdata.StepData[44].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[44].TabData.Font.FontSize = "12"; - //// ContAcAnd - //fmtdata.StepData[45].Font.FontFamily = "Arial"; - //fmtdata.StepData[45].Font.FontSize = "12"; - //fmtdata.StepData[45].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[45].TabData.Font.FontSize = "12"; - //// ContAcOr - //fmtdata.StepData[46].Font.FontFamily = "Arial"; - //fmtdata.StepData[46].Font.FontSize = "12"; - //fmtdata.StepData[46].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[46].TabData.Font.FontSize = "12"; - //// ContAcParagraph - //fmtdata.StepData[47].Font.FontFamily = "Arial"; - //fmtdata.StepData[47].Font.FontSize = "12"; - //fmtdata.StepData[47].TabData.Font.FontFamily = "Arial"; - //fmtdata.StepData[47].TabData.Font.FontSize = "12"; - #endregion - } - private VE_Font CreateFont(string name, string size, string style) - { - VE_Font vf = new VE_Font(); - vf.FontFamily = name; - vf.FontSize = size; - vf.FontStyle = style; - return vf; - } - } - public partial class FmtToXml - { - private void AddCPLRDevPage(ref PageStyles pgstyles) - { - SetRobinsonPageListFont(ref pgstyles); - pgstyles.Name = "Duke Energy - Robinson Deviation Format Page Styles"; - pgstyles.PgStyles[0].Items[4].Col = 224; - pgstyles.PgStyles[1].Items[4].Col = 224; - } - private void AddCPLAPage(ref PageStyles pgstyles) - { - SetRobinsonPageListFont(ref pgstyles); - pgstyles.Name = "Duke Energy - Robinson AOP Format Page Styles"; - } - private void AddCPLPage(ref PageStyles pgstyles) - { - SetRobinsonPageListFont(ref pgstyles); - pgstyles.Name = "Duke Energy - Robinson EOP Format Page Styles"; - //"Cover Page-Progress Logo" - pgstyles.PgStyles[3].Name="Cover Page-Duke Logo"; - pgstyles.PgStyles[3].Items[2].Col = 462; - pgstyles.PgStyles[3].Items[3].Col = 230; - pgstyles.PgStyles[3].Items[4].Col = 230; - pgstyles.PgStyles[3].Items[5].Col = 234; - pgstyles.PgStyles[3].Items[6].Col = 232; - pgstyles.PgStyles[3].Items[7].Col = 232; - pgstyles.PgStyles[3].Items[8].Col = 235; - } - private void AddCPL_Z03(ref PageStyles pgstyles) - { - pgstyles.Name = "Duke Energy - Robinson Duplex Foldout Page Style"; - } - private void AddCPBCK(ref PageStyles pgstyles) - { - // add a new page style for Attachments with the section number in the page header - Array.Resize(ref pgstyles.PgStyles, pgstyles.PgStyles.Length + 1); - - //SetRobinsonPageListFont(ref pgstyles); - pgstyles.Name = "Duke Energy - Robinson Enhanced Background Page Styles"; - // Step Description Table - pgstyles.PgStyles[0].Items[7].Col = 276; - pgstyles.PgStyles[0].Items[8].Col = 525; - // Cover Page - pgstyles.PgStyles[1].Items[2].Token = "DUKE ENERGY"; - pgstyles.PgStyles[1].Items[2].Col = 260; - pgstyles.PgStyles[1].Items[3].Col = 255; - pgstyles.PgStyles[1].Items[5].Col = 255; - pgstyles.PgStyles[1].Items[6].Col = 255; - pgstyles.PgStyles[1].Items[7].Col = 251; - pgstyles.PgStyles[1].Items[8].Col = 242; - // General Text - pgstyles.PgStyles[2].Items[2].Col = 6; - pgstyles.PgStyles[2].Items[3].Col = 246; - pgstyles.PgStyles[2].Items[5].Col = 246; - pgstyles.PgStyles[2].Items[7].Col = 228; - // Attachment with Section number and Title in header - pgstyles.PgStyles[3].Name = "Attachment Pages Section Number and Title"; - pgstyles.PgStyles[3].Items[8].Token = "{SECTIONLEVELNUMBER}"; - // Attachment with Section Number in header - pgstyles.PgStyles[4].Name = "Attachment with Section Number"; - pgstyles.PgStyles[4].Index = 4; - if (pgstyles.PgStyles[4].Items == null) - Array.Resize(ref pgstyles.PgStyles[4].Items, 11); - pgstyles.PgStyles[4].Items[0].Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; - pgstyles.PgStyles[4].Items[0].Row = 12; - pgstyles.PgStyles[4].Items[0].Col=3; - pgstyles.PgStyles[4].Items[0].Justify="PSCenter"; - pgstyles.PgStyles[4].Items[0].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[0].Style.FontFamily = "Prestige Elite Tall"; - pgstyles.PgStyles[4].Items[0].Style.FontSize = "10"; - pgstyles.PgStyles[4].Items[0].Style.FontStyle = "None"; - pgstyles.PgStyles[4].Items[0].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[1].Token = "{HEADER1}"; - pgstyles.PgStyles[4].Items[1].Row = 12; - pgstyles.PgStyles[4].Items[1].Col = -18; - pgstyles.PgStyles[4].Items[1].Justify = "PSLeft"; - pgstyles.PgStyles[4].Items[1].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[1].Style.FontFamily = "Prestige Elite Tall"; - pgstyles.PgStyles[4].Items[1].Style.FontSize = "10"; - pgstyles.PgStyles[4].Items[1].Style.FontStyle = "None"; - pgstyles.PgStyles[4].Items[1].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[2].Token = "{EOPNUM}-BD"; - pgstyles.PgStyles[4].Items[2].Row = 36; - pgstyles.PgStyles[4].Items[2].Col = 6; - pgstyles.PgStyles[4].Items[2].Justify = "PSLeft, PSTop"; - pgstyles.PgStyles[4].Items[2].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[2].Style.FontFamily = "Letter Gothic"; - pgstyles.PgStyles[4].Items[2].Style.FontSize = "10"; - pgstyles.PgStyles[4].Items[2].Style.FontStyle = "Bold"; - pgstyles.PgStyles[4].Items[2].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[3].Token = "{PROCTITLE1}"; - pgstyles.PgStyles[4].Items[3].Row = 48; - pgstyles.PgStyles[4].Items[3].Col = 243; - pgstyles.PgStyles[4].Items[3].Justify = "PSTop"; - pgstyles.PgStyles[4].Items[3].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[3].Style.FontFamily = "Letter Gothic"; - pgstyles.PgStyles[4].Items[3].Style.FontSize = "10"; - pgstyles.PgStyles[4].Items[3].Style.FontStyle = "Bold"; - pgstyles.PgStyles[4].Items[3].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[4].Token = "{PAGE} of {OF}"; - pgstyles.PgStyles[4].Items[4].Row = 36; - pgstyles.PgStyles[4].Items[4].Col = 450; - pgstyles.PgStyles[4].Items[4].Justify = "PSLeft, PSTop"; - pgstyles.PgStyles[4].Items[4].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[4].Style.FontFamily = "Letter Gothic"; - pgstyles.PgStyles[4].Items[4].Style.FontSize = "10"; - pgstyles.PgStyles[4].Items[4].Style.FontStyle = "Bold"; - pgstyles.PgStyles[4].Items[4].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[5].Token = "{PROCTITLE2}"; - pgstyles.PgStyles[4].Items[5].Row = 48; - pgstyles.PgStyles[4].Items[5].Col = 243; - pgstyles.PgStyles[4].Items[5].Justify = "PSTop"; - pgstyles.PgStyles[4].Items[5].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[5].Style.FontFamily = "Letter Gothic"; - pgstyles.PgStyles[4].Items[5].Style.FontSize = "10"; - pgstyles.PgStyles[4].Items[5].Style.FontStyle = "Bold"; - pgstyles.PgStyles[4].Items[5].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[6].Token = "Rev {REV}"; - pgstyles.PgStyles[4].Items[6].Row = 60; - pgstyles.PgStyles[4].Items[6].Col = 450; - pgstyles.PgStyles[4].Items[6].Justify = "PSLeft"; - pgstyles.PgStyles[4].Items[6].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[6].Style.FontFamily = "Letter Gothic"; - pgstyles.PgStyles[4].Items[6].Style.FontSize = "10"; - pgstyles.PgStyles[4].Items[6].Style.FontStyle = "Bold"; - pgstyles.PgStyles[4].Items[6].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[7].Token = "BASIS DOCUMENT"; - pgstyles.PgStyles[4].Items[7].Row = 60; - pgstyles.PgStyles[4].Items[7].Col = 276; - pgstyles.PgStyles[4].Items[7].Justify = "PSCenter"; - pgstyles.PgStyles[4].Items[7].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[7].Style.FontFamily = "Arial"; - pgstyles.PgStyles[4].Items[7].Style.FontSize = "14"; - pgstyles.PgStyles[4].Items[7].Style.FontStyle = "Bold"; - pgstyles.PgStyles[4].Items[7].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[8].Token = "{SECTIONLEVELNUMBER}"; - pgstyles.PgStyles[4].Items[8].Row = 86; - pgstyles.PgStyles[4].Items[8].Col = 240; - pgstyles.PgStyles[4].Items[8].Justify = "PSCenter"; - pgstyles.PgStyles[4].Items[8].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[8].Style.FontFamily = "Letter Gothic"; - pgstyles.PgStyles[4].Items[8].Style.FontSize = "10"; - pgstyles.PgStyles[4].Items[8].Style.FontStyle = "Bold"; - pgstyles.PgStyles[4].Items[8].Style.CPI= "12"; - - pgstyles.PgStyles[4].Items[9].Token = "{HLRNO}"; - pgstyles.PgStyles[4].Items[9].Row = 108; - pgstyles.PgStyles[4].Items[9].Col = 525; - pgstyles.PgStyles[4].Items[9].Justify = "PSRight, PSTrue"; - pgstyles.PgStyles[4].Items[9].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[9].Style.FontFamily = "Courier New"; - pgstyles.PgStyles[4].Items[9].Style.FontSize = "12"; - pgstyles.PgStyles[4].Items[9].Style.FontStyle = "None"; - pgstyles.PgStyles[4].Items[9].Style.CPI= "10"; - - pgstyles.PgStyles[4].Items[10].Token = "{HLSTAB}"; - pgstyles.PgStyles[4].Items[10].Row = 108; - pgstyles.PgStyles[4].Items[10].Col = 0; - pgstyles.PgStyles[4].Items[10].Justify = "PSLeft"; - pgstyles.PgStyles[4].Items[10].Style = new VE_Font(); - pgstyles.PgStyles[4].Items[10].Style.FontFamily = "Courier New"; - pgstyles.PgStyles[4].Items[10].Style.FontSize = "12"; - pgstyles.PgStyles[4].Items[10].Style.FontStyle = "None"; - pgstyles.PgStyles[4].Items[10].Style.CPI = "10"; - } - private void AddCPBCK_Z00(ref PageStyles pgstyles) - { - SetRobinsonPageListFont(ref pgstyles); - pgstyles.Name = "Duke Energy - Robinson Enhanced Background Foldout Page Styles"; - // Step Description Table - pgstyles.PgStyles[0].Items[7].Col = 276; - pgstyles.PgStyles[0].Items[8].Col = 525; - } - private void AddCPBCK_Z01(ref PageStyles pgstyles) - { - //SetRobinsonPageListFont(ref pgstyles); - pgstyles.Name = "Duke Energy - Robinson Enhanced Background Status Tree Page Styles"; - // Step Description Table - pgstyles.PgStyles[0].Items[7].Col = 276; - pgstyles.PgStyles[0].Items[8].Col = 525; - } - private void AddCPBCK2(ref PageStyles pgstyles) - { - //SetRobinsonPageListFont(ref pgstyles); - pgstyles.Name = "Duke Energy - Robinson Enhanced Backgrounds Additional Page Styles"; - // Additional Information Pages - pgstyles.PgStyles[0].Items[3].Col = 252; - pgstyles.PgStyles[0].Items[5].Col = 252; - pgstyles.PgStyles[0].Items[6].Col = 450; - pgstyles.PgStyles[0].Items[7].Col = 249; - } - - private static void SetRobinsonPageListFont(ref PageStyles pgstyles) - { - int i = 0; - int ii = 0; - // Set font to Arial 12 pt - for (i = 0; i < pgstyles.PgStyles.Length; i++) - { - for (ii = 0; ii < pgstyles.PgStyles[i].Items.Length; ii++) - { - pgstyles.PgStyles[i].Items[ii].Style.FontFamily = "Arial"; - //pgstyles.PgStyles[i].Items[ii].Style.FontSize = "12"; - } - } - return; - } - private void AddCPLDOC(ref DocStyles dcstyles) - { - SetRobinsonDocStyleFont(ref dcstyles); - - dcstyles.Name = "Duke Energy - Robinson EOP Format Doc Styles"; - - dcstyles.DcStyles[0].ContTop = "%d. (CONTINUED)"; - //dcstyles.DcStyles[0].AlignHLSTabWithSect = true; - dcstyles.DcStyles[1].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[2].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[6].Name = "Cover Page-Duke Logo"; - dcstyles.DcStyles[7].TopMargin = 91; - dcstyles.DcStyles[7].PageWidth = 593; - } - - private static void SetRobinsonDocStyleFont(ref DocStyles dcstyles) - { - int i = 0; - int ii = 0; - // Set font to Arial 12 pt - for (i = 0; i < dcstyles.DcStyles.Length; i++) - { - dcstyles.DcStyles[i].dstyle.FontFamily = "Arial"; - dcstyles.DcStyles[i].dstyle.FontSize = "12"; - dcstyles.DcStyles[i].ContStyle.FontFamily = "Arial"; - dcstyles.DcStyles[i].ContStyle.FontSize = "12"; - } - return; - } - private void AddCPL_Y00(ref DocStyles dcstyles) - { - SetRobinsonDocStyleFont(ref dcstyles); - - dcstyles.DcStyles[0].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[0].UseCheckOffs = true; - dcstyles.DcStyles[1].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[1].UseCheckOffs = true; - dcstyles.DcStyles[2].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[2].UseCheckOffs = true; - dcstyles.DcStyles[6].TopMargin = 91; - dcstyles.DcStyles[6].PageWidth = 593; - } - private void AddCPL_Y01(ref DocStyles dcstyles) - { - SetRobinsonDocStyleFont(ref dcstyles); - - dcstyles.DcStyles[0].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[0].UseCheckOffs = true; - dcstyles.DcStyles[1].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[1].UseCheckOffs = true; - dcstyles.DcStyles[2].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[2].UseCheckOffs = true; - dcstyles.DcStyles[6].TopMargin = 91; - dcstyles.DcStyles[6].PageWidth = 593; - } - private void AddCPL_Y02(ref DocStyles dcstyles) - { - SetRobinsonDocStyleFont(ref dcstyles); - - dcstyles.DcStyles[0].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[0].UseCheckOffs = true; - dcstyles.DcStyles[1].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[1].UseCheckOffs = true; - dcstyles.DcStyles[2].ContTop = "%d. (CONTINUED)"; - dcstyles.DcStyles[2].UseCheckOffs = true; - dcstyles.DcStyles[6].TopMargin = 91; - dcstyles.DcStyles[6].PageWidth = 593; - } - private void AddCPL_Y03(ref DocStyles dcstyles) - { - SetRobinsonDocStyleFont(ref dcstyles); - - dcstyles.Name = "Duke Energy - Robinson Robinson Duplex Foldout Doc Style"; - dcstyles.DcStyles[0].UseCheckOffs = true; - } - private void AddCPLRDEV(ref DocStyles dcstyles) - { - dcstyles.Name = "Duke Energy - Robinson Deviation Format Document Styles"; - SetRobinsonDocStyleFont(ref dcstyles); - } - private void AddCPLA(ref DocStyles dcstyles) - { - dcstyles.Name = "Duke Energy - Robinson AOP Format Document Styles"; - SetRobinsonDocStyleFont(ref dcstyles); - } - private void AddCPBCK(ref DocStyles dcstyles) - { - dcstyles.Name = "Duke Energy - Robinson Enhanced Background Styles"; - //SetRobinsonDocStyleFont(ref dcstyles); - dcstyles.DcStyles[2].PageWidth = 585; - - // change title of Attachment doc style - dcstyles.DcStyles[3].Name = "Attachment With Section Number and Title"; - - //adding new Attachment style prints the section number in the page header - /** - **/ - Array.Resize(ref dcstyles.DcStyles, dcstyles.DcStyles.Length + 1); - - dcstyles.DcStyles[4].Name = "Attachment with Section Number"; - dcstyles.DcStyles[4].Index = 4; - dcstyles.DcStyles[4].numberingsequence = 1; - dcstyles.DcStyles[4].IsStepSection = true; - dcstyles.DcStyles[4].UseCheckOffs = false; - dcstyles.DcStyles[4].UseColSByLevel = false; - dcstyles.DcStyles[4].oldtonew = 7; - dcstyles.DcStyles[4].CancelSectTitle = false; - dcstyles.DcStyles[4].SpecialStepsFoldout=false; - dcstyles.DcStyles[4].UndSpecialStepsFoldout=false; - dcstyles.DcStyles[4].ExtraLineHeader=false; - dcstyles.DcStyles[4].AlignHLSTabWithSect=false; - dcstyles.DcStyles[4].pagestyle=4; - dcstyles.DcStyles[4].dstyle = new VE_Font(); - dcstyles.DcStyles[4].dstyle.FontFamily = "Courier New"; - dcstyles.DcStyles[4].dstyle.FontSize ="12"; - dcstyles.DcStyles[4].dstyle.FontStyle="None"; - dcstyles.DcStyles[4].dstyle.CPI = "10"; - dcstyles.DcStyles[4].TopMargin=144; - dcstyles.DcStyles[4].FooterLen=12; - dcstyles.DcStyles[4].PageLength=612; - dcstyles.DcStyles[4].PageWidth=489.6F; - dcstyles.DcStyles[4].LeftMargin=72; - dcstyles.DcStyles[4].ContStyle = new VE_Font(); - dcstyles.DcStyles[4].ContStyle.FontFamily= "Courier New"; - dcstyles.DcStyles[4].ContStyle.FontSize = "12"; - dcstyles.DcStyles[4].ContStyle.FontStyle = "None"; - dcstyles.DcStyles[4].ContTop = " (Continued)"; - dcstyles.DcStyles[4].ContTopHLS = 1; - dcstyles.DcStyles[4].CTMargin = 0; - dcstyles.DcStyles[4].ContBottom = " (Continued on next page)"; - dcstyles.DcStyles[4].CBMargin = 7.2F; - dcstyles.DcStyles[4].CBLoc = 0; - dcstyles.DcStyles[4].DocStructStyle = new VE_DocStyle(); - dcstyles.DcStyles[4].DocStructStyle.DocStyleUse = E_DocStyleUse.UseOnAllPages; - } - private void AddCPBCK_Y00(ref DocStyles dcstyles) - { - dcstyles.Name = "Duke Energy - Robinson Enhanced Background Foldout Styles"; - //SetRobinsonDocStyleFont(ref dcstyles); - } - private void AddCPBCK_Y01(ref DocStyles dcstyles) - { - dcstyles.Name = "Duke Energy - Robinson Enhanced Background Status Tree Styles"; - //SetRobinsonDocStyleFont(ref dcstyles); - } - private void AddCPBCK2(ref DocStyles dcstyles) - { - dcstyles.Name = "Duke Energy - Robinson Enhanced Background Additional Styles"; - //SetRobinsonDocStyleFont(ref dcstyles); - dcstyles.DcStyles[0].PageWidth = 570; - } - } - public partial class RtfToSvg - { - private void AddCPL(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - // B1 - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - "" + - "STEP" + - "" + - "ACTION/EXPECTED{sp}RESPONSE" + - "" + - "" + - "" + - "RESPONSE{sp}NOT{sp}OBTAINED" + - "" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[1]); - - // C2 - xdNew.LoadXml(" " + - "" + - ""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[7]); - - // C3 - xdNew.LoadXml(" " + - "" + - "" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[8]); - - // C4 - xdNew.LoadXml(" " + - "" + - "" + - "N/A" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[9]); - - } - - private void AddCPLA(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - // B1 - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - "" + - "STEP" + - "" + - "INSTRUCTIONS" + - "" + - "" + - "" + - "RESPONSE{sp}NOT{sp}OBTAINED" + - "" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[1]); - } - - private void AddCPLRDEV(XmlDocument myDoc) - { - XmlDocument xdNew = new XmlDocument(); - // B2 - xdNew.LoadXml(" " + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "EOP{sp}STEP" + - "ERG{sp}STEP" + - "DEVIATION / JUSTIFICATION" + -""); - myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[2]); - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_SouthTexas.cs b/PROMS/fmtxml/PlantSpecific_SouthTexas.cs deleted file mode 100644 index a2eeb898..00000000 --- a/PROMS/fmtxml/PlantSpecific_SouthTexas.cs +++ /dev/null @@ -1,286 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddOHLPfmt(ref FormatData fmtdata) // Catawba - { - fmtdata.SectData.StepSectionData.StpSectLayData.ColT = -3; - - Array.Resize(ref fmtdata.SectData.ReplaceStrData, fmtdata.SectData.ReplaceStrData.Length + 64); - - fmtdata.SectData.ReplaceStrData[15].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[15].ReplaceWord = "actuate"; - fmtdata.SectData.ReplaceStrData[15].ReplaceWith = "ACTUATE"; - - fmtdata.SectData.ReplaceStrData[16].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[16].ReplaceWord = "adjust"; - fmtdata.SectData.ReplaceStrData[16].ReplaceWith = "ADJUST"; - - fmtdata.SectData.ReplaceStrData[17].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[17].ReplaceWord = "align"; - fmtdata.SectData.ReplaceStrData[17].ReplaceWith = "ALIGN"; - - fmtdata.SectData.ReplaceStrData[18].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[18].ReplaceWord = "allow"; - fmtdata.SectData.ReplaceStrData[18].ReplaceWith = "ALLOW"; - - fmtdata.SectData.ReplaceStrData[19].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[19].ReplaceWord = "block"; - fmtdata.SectData.ReplaceStrData[19].ReplaceWith = "BLOCK"; - - fmtdata.SectData.ReplaceStrData[20].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[20].ReplaceWord = "borate"; - fmtdata.SectData.ReplaceStrData[20].ReplaceWith = "BORATE"; - - fmtdata.SectData.ReplaceStrData[21].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[21].ReplaceWord = "check"; - fmtdata.SectData.ReplaceStrData[21].ReplaceWith = "CHECK"; - - fmtdata.SectData.ReplaceStrData[22].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[22].ReplaceWord = "close"; - fmtdata.SectData.ReplaceStrData[22].ReplaceWith = "CLOSE"; - - fmtdata.SectData.ReplaceStrData[23].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[23].ReplaceWord = "complete"; - fmtdata.SectData.ReplaceStrData[23].ReplaceWith = "COMPLETE"; - - fmtdata.SectData.ReplaceStrData[24].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[24].ReplaceWord = "control"; - fmtdata.SectData.ReplaceStrData[24].ReplaceWith = "CONTROL"; - - fmtdata.SectData.ReplaceStrData[25].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[25].ReplaceWord = "consult"; - fmtdata.SectData.ReplaceStrData[25].ReplaceWith = "CONSULT"; - - fmtdata.SectData.ReplaceStrData[26].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[26].ReplaceWord = "continue"; - fmtdata.SectData.ReplaceStrData[26].ReplaceWith = "CONTINUE"; - - fmtdata.SectData.ReplaceStrData[27].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[27].ReplaceWord = "cooldown"; - fmtdata.SectData.ReplaceStrData[27].ReplaceWith = "COOLDOWN"; - - fmtdata.SectData.ReplaceStrData[28].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[28].ReplaceWord = "decrease"; - fmtdata.SectData.ReplaceStrData[28].ReplaceWith = "DECREASE"; - - fmtdata.SectData.ReplaceStrData[29].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[29].ReplaceWord = "deenergize"; - fmtdata.SectData.ReplaceStrData[29].ReplaceWith = "DEENERGIZE"; - - fmtdata.SectData.ReplaceStrData[30].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[30].ReplaceWord = "depress"; - fmtdata.SectData.ReplaceStrData[30].ReplaceWith = "DEPRESS"; - - fmtdata.SectData.ReplaceStrData[31].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[31].ReplaceWord = "depressurize"; - fmtdata.SectData.ReplaceStrData[31].ReplaceWith = "DEPRESSURIZE"; - - fmtdata.SectData.ReplaceStrData[32].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[32].ReplaceWord = "determine"; - fmtdata.SectData.ReplaceStrData[32].ReplaceWith = "DETERMINE"; - - fmtdata.SectData.ReplaceStrData[33].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[33].ReplaceWord = "dispatch"; - fmtdata.SectData.ReplaceStrData[33].ReplaceWith = "DISPATCH"; - - fmtdata.SectData.ReplaceStrData[34].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[34].ReplaceWord = "dump"; - fmtdata.SectData.ReplaceStrData[34].ReplaceWith = "DUMP"; - - fmtdata.SectData.ReplaceStrData[35].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[35].ReplaceWord = "energize"; - fmtdata.SectData.ReplaceStrData[35].ReplaceWith = "ENERGIZE"; - - fmtdata.SectData.ReplaceStrData[36].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[36].ReplaceWord = "ensure"; - fmtdata.SectData.ReplaceStrData[36].ReplaceWith = "ENSURE"; - - fmtdata.SectData.ReplaceStrData[37].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[37].ReplaceWord = "equalize"; - fmtdata.SectData.ReplaceStrData[37].ReplaceWith = "EQUALIZE"; - - fmtdata.SectData.ReplaceStrData[38].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[38].ReplaceWord = "establish"; - fmtdata.SectData.ReplaceStrData[38].ReplaceWith = "ESTABLISH"; - - fmtdata.SectData.ReplaceStrData[39].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[39].ReplaceWord = "evaluate"; - fmtdata.SectData.ReplaceStrData[39].ReplaceWith = "EVALUATE"; - - fmtdata.SectData.ReplaceStrData[40].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[40].ReplaceWord = "identify"; - fmtdata.SectData.ReplaceStrData[40].ReplaceWith = "IDENTIFY"; - - fmtdata.SectData.ReplaceStrData[41].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[41].ReplaceWord = "increase"; - fmtdata.SectData.ReplaceStrData[41].ReplaceWith = "INCREASE"; - - fmtdata.SectData.ReplaceStrData[42].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[42].ReplaceWord = "initiate"; - fmtdata.SectData.ReplaceStrData[42].ReplaceWith = "INITIATE"; - - fmtdata.SectData.ReplaceStrData[43].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[43].ReplaceWord = "insert"; - fmtdata.SectData.ReplaceStrData[43].ReplaceWith = "INSERT"; - - fmtdata.SectData.ReplaceStrData[44].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[44].ReplaceWord = "isolate"; - fmtdata.SectData.ReplaceStrData[44].ReplaceWith = "ISOLATE"; - - fmtdata.SectData.ReplaceStrData[45].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[45].ReplaceWord = "load"; - fmtdata.SectData.ReplaceStrData[45].ReplaceWith = "LOAD"; - - fmtdata.SectData.ReplaceStrData[46].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[46].ReplaceWord = "lower"; - fmtdata.SectData.ReplaceStrData[46].ReplaceWith = "LOWER"; - - fmtdata.SectData.ReplaceStrData[47].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[47].ReplaceWord = "maintain"; - fmtdata.SectData.ReplaceStrData[47].ReplaceWith = "MAINTAIN"; - - fmtdata.SectData.ReplaceStrData[48].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[48].ReplaceWord = "minimize"; - fmtdata.SectData.ReplaceStrData[48].ReplaceWith = "MINIMIZE"; - - fmtdata.SectData.ReplaceStrData[49].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[49].ReplaceWord = "monitor"; - fmtdata.SectData.ReplaceStrData[49].ReplaceWith = "MONITOR"; - - fmtdata.SectData.ReplaceStrData[50].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[50].ReplaceWord = "notify"; - fmtdata.SectData.ReplaceStrData[50].ReplaceWith = "NOTIFY"; - - fmtdata.SectData.ReplaceStrData[51].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[51].ReplaceWord = "observe"; - fmtdata.SectData.ReplaceStrData[51].ReplaceWith = "OBSERVE"; - - fmtdata.SectData.ReplaceStrData[52].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[52].ReplaceWord = "open"; - fmtdata.SectData.ReplaceStrData[52].ReplaceWith = "OPEN"; - - fmtdata.SectData.ReplaceStrData[53].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[53].ReplaceWord = "operate"; - fmtdata.SectData.ReplaceStrData[53].ReplaceWith = "OPERATE"; - - fmtdata.SectData.ReplaceStrData[54].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[54].ReplaceWord = "perform"; - fmtdata.SectData.ReplaceStrData[54].ReplaceWith = "PERFORM"; - - fmtdata.SectData.ReplaceStrData[55].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[55].ReplaceWord = "place"; - fmtdata.SectData.ReplaceStrData[55].ReplaceWith = "PLACE"; - - fmtdata.SectData.ReplaceStrData[56].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[56].ReplaceWord = "prepare"; - fmtdata.SectData.ReplaceStrData[56].ReplaceWith = "PREPARE"; - - fmtdata.SectData.ReplaceStrData[57].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[57].ReplaceWord = "raise"; - fmtdata.SectData.ReplaceStrData[57].ReplaceWith = "RAISE"; - - fmtdata.SectData.ReplaceStrData[58].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[58].ReplaceWord = "record"; - fmtdata.SectData.ReplaceStrData[58].ReplaceWith = "RECORD"; - - fmtdata.SectData.ReplaceStrData[59].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[59].ReplaceWord = "release"; - fmtdata.SectData.ReplaceStrData[59].ReplaceWith = "RELEASE"; - - fmtdata.SectData.ReplaceStrData[60].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[60].ReplaceWord = "reset"; - fmtdata.SectData.ReplaceStrData[60].ReplaceWith = "RESET"; - - fmtdata.SectData.ReplaceStrData[61].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[61].ReplaceWord = "restore"; - fmtdata.SectData.ReplaceStrData[61].ReplaceWith = "RESTORE"; - - fmtdata.SectData.ReplaceStrData[62].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[62].ReplaceWord = "return"; - fmtdata.SectData.ReplaceStrData[62].ReplaceWith = "RETURN"; - - fmtdata.SectData.ReplaceStrData[63].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[63].ReplaceWord = "runback"; - fmtdata.SectData.ReplaceStrData[63].ReplaceWith = "RUNBACK"; - - fmtdata.SectData.ReplaceStrData[64].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[64].ReplaceWord = "select"; - fmtdata.SectData.ReplaceStrData[64].ReplaceWith = "SELECT"; - - fmtdata.SectData.ReplaceStrData[65].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[65].ReplaceWord = "set"; - fmtdata.SectData.ReplaceStrData[65].ReplaceWith = "SET"; - - fmtdata.SectData.ReplaceStrData[66].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[66].ReplaceWord = "shed"; - fmtdata.SectData.ReplaceStrData[66].ReplaceWith = "SHED"; - - fmtdata.SectData.ReplaceStrData[67].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[67].ReplaceWord = "secure"; - fmtdata.SectData.ReplaceStrData[67].ReplaceWith = "SECURE"; - - fmtdata.SectData.ReplaceStrData[68].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[68].ReplaceWord = "start"; - fmtdata.SectData.ReplaceStrData[68].ReplaceWith = "START"; - - fmtdata.SectData.ReplaceStrData[69].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[69].ReplaceWord = "stop"; - fmtdata.SectData.ReplaceStrData[69].ReplaceWith = "STOP"; - - fmtdata.SectData.ReplaceStrData[70].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[70].ReplaceWord = "throttle"; - fmtdata.SectData.ReplaceStrData[70].ReplaceWith = "THROTTLE"; - - fmtdata.SectData.ReplaceStrData[71].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[71].ReplaceWord = "transfer"; - fmtdata.SectData.ReplaceStrData[71].ReplaceWith = "TRANSFER"; - - fmtdata.SectData.ReplaceStrData[72].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[72].ReplaceWord = "trip"; - fmtdata.SectData.ReplaceStrData[72].ReplaceWith = "TRIP"; - - fmtdata.SectData.ReplaceStrData[73].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[73].ReplaceWord = "try"; - fmtdata.SectData.ReplaceStrData[73].ReplaceWith = "TRY"; - - fmtdata.SectData.ReplaceStrData[74].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[74].ReplaceWord = "turn on"; - fmtdata.SectData.ReplaceStrData[74].ReplaceWith = "TURN ON"; - - fmtdata.SectData.ReplaceStrData[75].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[75].ReplaceWord = "turn off"; - fmtdata.SectData.ReplaceStrData[75].ReplaceWith = "TURN OFF"; - - fmtdata.SectData.ReplaceStrData[76].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[76].ReplaceWord = "use"; - fmtdata.SectData.ReplaceStrData[76].ReplaceWith = "USE"; - - fmtdata.SectData.ReplaceStrData[77].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[77].ReplaceWord = "vent"; - fmtdata.SectData.ReplaceStrData[77].ReplaceWith = "VENT"; - - fmtdata.SectData.ReplaceStrData[78].Flag = "High, RNO, Caution, Note, Table, Substep, Attach, CaseInsens"; - fmtdata.SectData.ReplaceStrData[78].ReplaceWord = "verify"; - fmtdata.SectData.ReplaceStrData[78].ReplaceWith = "VERIFY"; - } - } - public partial class FmtToXml - { - private void AddOHLPPage(ref PageStyles pgstyles) - { - } - - } - public partial class RtfToSvg - { - private void AddOHLP(XmlDocument myDoc) - { - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_Summer.cs b/PROMS/fmtxml/PlantSpecific_Summer.cs deleted file mode 100644 index d6f89e94..00000000 --- a/PROMS/fmtxml/PlantSpecific_Summer.cs +++ /dev/null @@ -1,422 +0,0 @@ -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]); - } - } -} diff --git a/PROMS/fmtxml/PlantSpecific_WolfCreak.cs b/PROMS/fmtxml/PlantSpecific_WolfCreak.cs deleted file mode 100644 index b13fee13..00000000 --- a/PROMS/fmtxml/PlantSpecific_WolfCreak.cs +++ /dev/null @@ -1,290 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Xml; - -namespace fmtxml -{ - public partial class FmtFileToXml - { - private void AddWCN1Fmt(ref FormatData fmtdata) - { - // Set a section title length - fmtdata.SectData.SectionTitleLength = 71; - - fmtdata.ROData.UpRoAftrDash = "False"; - fmtdata.ROData.UpRoImmAftrDashSpace = "True"; - - // replace words - fmtdata.SectData.ReplaceStrData[0].ReplaceWith = @"\b \ul IF\ulnone \b0 "; - fmtdata.SectData.ReplaceStrData[2].ReplaceWith = @"{\par}\b \ul THEN\ulnone \b0 "; - fmtdata.SectData.ReplaceStrData[3].ReplaceWith = @"\b \ul WHEN\ulnone \b0 "; - fmtdata.SectData.ReplaceStrData[4].ReplaceWith = @"{\par}\b \ul AND\ulnone \b0 "; - fmtdata.SectData.ReplaceStrData[5].ReplaceWith = @"{\par}\b \ul OR\ulnone \b0 "; - - - // transdata - fmtdata.TransData.TransTypeData[4].TransFormat = @"{Sect Num}{First Step}"; - - // psi definition - fmtdata.ProcData.Psi = new PSI(); - fmtdata.ProcData.Psi.x = 200; - fmtdata.ProcData.Psi.y = 129; - fmtdata.ProcData.Psi.Caption = "Wolf Creek Procedure Information"; - fmtdata.ProcData.Psi.ButtonsOnBottom = "NO"; - fmtdata.ProcData.Psi.font = "ARIAL"; - fmtdata.ProcData.Psi.Labels = new PsiLabel[5]; - fmtdata.ProcData.Psi.Labels[0].text = "Responsible Manager's Title:"; - fmtdata.ProcData.Psi.Labels[0].Justify = "LEFT"; - fmtdata.ProcData.Psi.Labels[0].x = 12; - fmtdata.ProcData.Psi.Labels[0].y = 11; - fmtdata.ProcData.Psi.Labels[0].width = 100; - fmtdata.ProcData.Psi.Labels[0].height = 8; - - fmtdata.ProcData.Psi.Labels[1].text = "Use Category (Continuous/Reference):"; - fmtdata.ProcData.Psi.Labels[1].Justify = "LEFT"; - fmtdata.ProcData.Psi.Labels[1].x = 12; - fmtdata.ProcData.Psi.Labels[1].y = 36; - fmtdata.ProcData.Psi.Labels[1].width = 100; - fmtdata.ProcData.Psi.Labels[1].height = 8; - - fmtdata.ProcData.Psi.Labels[2].text = "Administrative Controls Procedure (Yes/No):"; - fmtdata.ProcData.Psi.Labels[2].Justify = "LEFT"; - fmtdata.ProcData.Psi.Labels[2].x = 12; - fmtdata.ProcData.Psi.Labels[2].y = 62; - fmtdata.ProcData.Psi.Labels[2].width = 148; - fmtdata.ProcData.Psi.Labels[2].height = 8; - - fmtdata.ProcData.Psi.Labels[3].text = "Management Oversight Evolution (Yes/No):"; - fmtdata.ProcData.Psi.Labels[3].Justify = "LEFT"; - fmtdata.ProcData.Psi.Labels[3].x = 12; - fmtdata.ProcData.Psi.Labels[3].y = 80; - fmtdata.ProcData.Psi.Labels[3].width = 144; - fmtdata.ProcData.Psi.Labels[3].height = 8; - - fmtdata.ProcData.Psi.Labels[4].text = "Program Number:"; - fmtdata.ProcData.Psi.Labels[4].Justify = "LEFT"; - fmtdata.ProcData.Psi.Labels[4].x = 12; - fmtdata.ProcData.Psi.Labels[4].y = 97; - fmtdata.ProcData.Psi.Labels[4].width = 60; - fmtdata.ProcData.Psi.Labels[4].height = 8; - - fmtdata.ProcData.Psi.Fields = new PsiField[5]; - fmtdata.ProcData.Psi.Fields[0].name = "CLASSIFICATION"; - fmtdata.ProcData.Psi.Fields[0].type = "TEXT"; - fmtdata.ProcData.Psi.Fields[0].text = ""; - fmtdata.ProcData.Psi.Fields[0].Length = 51; - fmtdata.ProcData.Psi.Fields[0].x = 12; - fmtdata.ProcData.Psi.Fields[0].y = 20; - fmtdata.ProcData.Psi.Fields[0].width = 180; - fmtdata.ProcData.Psi.Fields[0].height = 12; - - fmtdata.ProcData.Psi.Fields[1].name = "USECATEGORY"; - fmtdata.ProcData.Psi.Fields[1].type = "TEXT"; - fmtdata.ProcData.Psi.Fields[1].text = ""; - fmtdata.ProcData.Psi.Fields[1].Length = 21; - fmtdata.ProcData.Psi.Fields[1].x = 12; - fmtdata.ProcData.Psi.Fields[1].y = 44; - fmtdata.ProcData.Psi.Fields[1].width = 145; - fmtdata.ProcData.Psi.Fields[1].height = 12; - - fmtdata.ProcData.Psi.Fields[2].name = "CLASSABBR"; - fmtdata.ProcData.Psi.Fields[2].type = "TEXT"; - fmtdata.ProcData.Psi.Fields[2].text = ""; - fmtdata.ProcData.Psi.Fields[2].Length = 4; - fmtdata.ProcData.Psi.Fields[2].x = 160; - fmtdata.ProcData.Psi.Fields[2].y = 61; - fmtdata.ProcData.Psi.Fields[2].width = 28; - fmtdata.ProcData.Psi.Fields[2].height = 12; - - fmtdata.ProcData.Psi.Fields[3].name = "MNGOSEVOL"; - fmtdata.ProcData.Psi.Fields[3].type = "TEXT"; - fmtdata.ProcData.Psi.Fields[3].text = ""; - fmtdata.ProcData.Psi.Fields[3].Length = 4; - fmtdata.ProcData.Psi.Fields[3].x = 160; - fmtdata.ProcData.Psi.Fields[3].y = 80; - fmtdata.ProcData.Psi.Fields[3].width = 28; - fmtdata.ProcData.Psi.Fields[3].height = 12; - - fmtdata.ProcData.Psi.Fields[4].name = "PROGNUMBER"; - fmtdata.ProcData.Psi.Fields[4].type = "TEXT"; - fmtdata.ProcData.Psi.Fields[4].text = ""; - fmtdata.ProcData.Psi.Fields[4].Length = 4; - fmtdata.ProcData.Psi.Fields[4].x = 76; - fmtdata.ProcData.Psi.Fields[4].y = 96; - fmtdata.ProcData.Psi.Fields[4].width = 28; - fmtdata.ProcData.Psi.Fields[4].height = 12; - } - private void AddWCN2Fmt(ref FormatData fmtdata) - { - // the WCN2 tab for continuous HLS type had only 1 space after the period ('.'). The other - // tabs had two spaces. This tab type also uses the C0 macro to draw the lines above/below - // the number. Because it only had 1 space, the tab and lines were not matching the - // 16bit output. A space is added here to make the continuous HLS type match the number - // of spaces as other HLS tabs, and to make the printed output match that of 16bit. - fmtdata.StepData[9].TabData.Ident = fmtdata.StepData[9].TabData.Ident + " "; - fmtdata.StepData[9].TabData.IdentEdit = fmtdata.StepData[9].TabData.IdentEdit + " "; - fmtdata.StepData[9].TabData.RNOIdent = fmtdata.StepData[9].TabData.RNOIdent + " "; - fmtdata.StepData[9].TabData.RNOIdentEdit = fmtdata.StepData[9].TabData.RNOIdentEdit + " "; - fmtdata.ROData.UpRoAftrDash = "False"; - fmtdata.ROData.UpRoImmAftrDashSpace = "True"; - } - private void AddWCNCKLFmt(ref FormatData fmtdata) - { - fmtdata.BoxData[3].End = 518; - fmtdata.BoxData[4].End = 518; - fmtdata.StepData[30].StepLayoutData.AlignWithParentTab = "True"; - fmtdata.StepData[2].StepPrintData.Justify = "Center"; - fmtdata.StepData[9].StepPrintData.Justify = "Center"; - fmtdata.StepData[2].StepPrintData.HLSLength = "66"; - fmtdata.StepData[9].StepPrintData.HLSLength = "66"; - fmtdata.ROData.UpRoAftrDash = "False"; - fmtdata.ROData.UpRoImmAftrDashSpace = "True"; - } - private void AddWCNBCKFmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "485,216,144"; - fmtdata.StepData[20].ColOverride = "86.4"; - fmtdata.StepData[20].PageBreakOnStep = "False"; - fmtdata.ROData.UpRoAftrDash = "False"; - fmtdata.ROData.UpRoImmAftrDashSpace = "True"; - fmtdata.StepData[2].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[3].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[6].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[7].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[9].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[18].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[22].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[23].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - fmtdata.StepData[26].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone "; - } - private void AddWCNOFBFmt(ref FormatData fmtdata) - { - fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "495,216,144"; - fmtdata.StepData[20].PageBreakOnStep = "False"; - fmtdata.StepData[43].ColOverride = "86.4"; - fmtdata.ROData.UpRoAftrDash = "False"; - fmtdata.ROData.UpRoImmAftrDashSpace = "True"; - - // tabbing for hls types: - fmtdata.StepData[2].TabData.IdentEdit = @"STEP: {Section Prefix}{numeric}"; - fmtdata.StepData[2].TabData.Ident = @"STEP: {Section Prefix}{numeric} "; - fmtdata.StepData[2].TabData.IdentAltPrint = @"STEP: {Section Prefix}{numeric}\STEP: {Section Prefix}{numeric}"; - fmtdata.StepData[2].TabData.RNOIdentEdit = "STEP {Section Prefix}: "; - fmtdata.StepData[2].TabData.RNOIdent = "STEP: {Section Prefix} "; - fmtdata.StepData[2].TabData.IdentWid = "100"; - fmtdata.StepData[3].TabData.IdentEdit = @"STEP: {Section Prefix}{numeric}"; - fmtdata.StepData[3].TabData.Ident = @"STEP: {Section Prefix}{numeric} "; - fmtdata.StepData[3].TabData.IdentAltPrint = @"STEP: {Section Prefix}{numeric}\STEP: {Section Prefix}{numeric}"; - fmtdata.StepData[3].TabData.RNOIdentEdit = "STEP {Section Prefix}: "; - fmtdata.StepData[3].TabData.RNOIdent = "STEP: {Section Prefix} "; - fmtdata.StepData[3].TabData.IdentWid = "100"; - fmtdata.StepData[9].TabData.IdentEdit = @"STEP: {Section Prefix}{numeric}"; - fmtdata.StepData[9].TabData.Ident = @"STEP: {Section Prefix}{numeric} "; - fmtdata.StepData[9].TabData.IdentAltPrint = @"STEP: {Section Prefix}{numeric}\STEP: {Section Prefix}{numeric}"; - fmtdata.StepData[9].TabData.RNOIdentEdit = "STEP {Section Prefix}: "; - fmtdata.StepData[9].TabData.RNOIdent = "STEP: {Section Prefix} "; - fmtdata.StepData[9].TabData.IdentWid = "100"; - fmtdata.StepData[18].TabData.IdentEdit = @"STEP: {Section Prefix}{numeric}"; - fmtdata.StepData[18].TabData.Ident = @"STEP: {Section Prefix}{numeric} "; - fmtdata.StepData[18].TabData.IdentAltPrint = @"STEP: {Section Prefix}{numeric}\STEP: {Section Prefix}{numeric}"; - fmtdata.StepData[18].TabData.RNOIdentEdit = "STEP {Section Prefix}: "; - fmtdata.StepData[18].TabData.RNOIdent = "STEP: {Section Prefix} "; - fmtdata.StepData[18].TabData.IdentWid = "100"; - - // tabbing for cautions/notes - // cautions: - fmtdata.StepData[6].TabData.Ident = @"STEP: {Section Prefix}{LNK Step Num}-CAUTION {LNK C/N Num} "; - fmtdata.StepData[6].TabData.IdentAltPrint = @"STEP: {Section Prefix}{LNK Step Num}-CAUTION {LNK C/N Num} /STEP: {Section Prefix}{LNK Step Num}-CAUTION {LNK C/N Num} "; - fmtdata.StepData[6].TabData.RNOIdent = @"STEP: {Section Prefix}{LNK Step Num}-CAUTION {LNK C/N Num} "; - // notes: - fmtdata.StepData[7].TabData.Ident = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[7].TabData.IdentAltPrint = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} \STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[7].TabData.RNOIdent = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[22].TabData.Ident = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[22].TabData.IdentAltPrint = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} \STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[22].TabData.RNOIdent = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[23].TabData.Ident = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[23].TabData.IdentAltPrint = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} \STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[23].TabData.RNOIdent = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[26].TabData.Ident = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[26].TabData.IdentAltPrint = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} \STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - fmtdata.StepData[26].TabData.RNOIdent = @"STEP: {Section Prefix}{LNK Step Num}-NOTE {LNK C/N Num} "; - } - - } - public partial class FmtToXml - { - private void AddWCN1Page(ref PageStyles pgstyles) - { - // Attachments - pgstyles.PgStyles[1].Items[8].Row = 88; - pgstyles.PgStyles[1].Items[9].Row = 100; - - // Attachments (Norton Editor) - pgstyles.PgStyles[4].Name = "Attachments (MSWord Section)"; - pgstyles.PgStyles[4].Items[8].Row = 83; - pgstyles.PgStyles[4].Items[9].Row = 94; - pgstyles.PgStyles[4].Items[10].Row = 112; - - // Figures - pgstyles.PgStyles[5].Items[9].Row = 101; - - // Landscape Attachments (Norton Editor) - pgstyles.PgStyles[6].Name = "Landscape Attachments (MSWord Section)"; - pgstyles.PgStyles[6].Items[8].Row = 83; - pgstyles.PgStyles[6].Items[9].Row = 94; - pgstyles.PgStyles[6].Items[10].Row = 112; - } - - private void AddWCNBCKPage(ref PageStyles pgstyles) - { - pgstyles.PgStyles[0].Items[9].Col = 518; - } - - private void AddWCNBCKDoc(ref DocStyles dcstyles) - { - dcstyles.DcStyles[0].ContTop = ""; - dcstyles.DcStyles[0].ContTopHLS = 0; - dcstyles.DcStyles[2].PageWidth = 592; - dcstyles.DcStyles[3].PageWidth = 592; - dcstyles.DcStyles[4].PageWidth = 592; - } - private void AddWCN2Doc(ref DocStyles dcstyles) - { - dcstyles.DcStyles[1].PageLength = 660; - } - - public void AddWCN1Doc(ref DocStyles dcstyles) - { - // Procedure Steps - dcstyles.DcStyles[0].FooterLen = 0; // was set to 12 - // Attachments - dcstyles.DcStyles[1].PageLength = 606; - // remove the 'DontCountInTabOfCont' flag on the cover page so that page counts in the - // auto table of contents will be correct. - dcstyles.DcStyles[3].DocStructStyle.DocStyle = dcstyles.DcStyles[3].DocStructStyle.DocStyle.Replace(", DontCountInTabOfCont", ""); - // Records - dcstyles.DcStyles[7].FooterLen = 0; - dcstyles.DcStyles[7].PageLength = 672; // same length as Procedure Steps section to fix End message placement - } - - } - public partial class RtfToSvg - { - private void AddWCN2(XmlDocument myDoc) - { - XmlDocument xd = new XmlDocument(); - // include the svg level so that the xmlns can be set to be the same as the generated document. - xd.LoadXml("" + - "\r\n" + - "\r\n" + - "\r\n" + - "\r\n" + - "\r\n" + - "\r\n" + - ""); - myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xd.DocumentElement.ChildNodes[0], true)); - } - } -} diff --git a/PROMS/fmtxml/PrettyPrint/PrettyPrint.csproj b/PROMS/fmtxml/PrettyPrint/PrettyPrint.csproj deleted file mode 100644 index eae920b4..00000000 --- a/PROMS/fmtxml/PrettyPrint/PrettyPrint.csproj +++ /dev/null @@ -1,78 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {830C64FF-60EF-4771-8073-D25BF2F2E3AE} - WinExe - Properties - PrettyPrint - PrettyPrint - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - Form - - - frmPrettyPrint.cs - - - - - Designer - frmPrettyPrint.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - \ No newline at end of file diff --git a/PROMS/fmtxml/PrettyPrint/Program.cs b/PROMS/fmtxml/PrettyPrint/Program.cs deleted file mode 100644 index 378889e5..00000000 --- a/PROMS/fmtxml/PrettyPrint/Program.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Windows.Forms; - -namespace PrettyPrint -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new frmPrettyPrint()); - } - } -} \ No newline at end of file diff --git a/PROMS/fmtxml/PrettyPrint/Properties/AssemblyInfo.cs b/PROMS/fmtxml/PrettyPrint/Properties/AssemblyInfo.cs deleted file mode 100644 index 995fe28d..00000000 --- a/PROMS/fmtxml/PrettyPrint/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("PrettyPrint")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("PrettyPrint")] -[assembly: AssemblyCopyright("Copyright © 2011")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("fa8c01a2-0c39-405f-b733-1b38af0c590c")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PROMS/fmtxml/PrettyPrint/Properties/Resources.Designer.cs b/PROMS/fmtxml/PrettyPrint/Properties/Resources.Designer.cs deleted file mode 100644 index ba5c7d51..00000000 --- a/PROMS/fmtxml/PrettyPrint/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.4216 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace PrettyPrint.Properties -{ - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PrettyPrint.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/PROMS/fmtxml/PrettyPrint/Properties/Resources.resx b/PROMS/fmtxml/PrettyPrint/Properties/Resources.resx deleted file mode 100644 index af7dbebb..00000000 --- a/PROMS/fmtxml/PrettyPrint/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/PROMS/fmtxml/PrettyPrint/Properties/Settings.Designer.cs b/PROMS/fmtxml/PrettyPrint/Properties/Settings.Designer.cs deleted file mode 100644 index ad9acb16..00000000 --- a/PROMS/fmtxml/PrettyPrint/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.4216 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace PrettyPrint.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { - return defaultInstance; - } - } - } -} diff --git a/PROMS/fmtxml/PrettyPrint/Properties/Settings.settings b/PROMS/fmtxml/PrettyPrint/Properties/Settings.settings deleted file mode 100644 index 39645652..00000000 --- a/PROMS/fmtxml/PrettyPrint/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.Designer.cs b/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.Designer.cs deleted file mode 100644 index d58de117..00000000 --- a/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.Designer.cs +++ /dev/null @@ -1,208 +0,0 @@ -namespace PrettyPrint -{ - partial class frmPrettyPrint - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.tbInputFileName = new System.Windows.Forms.TextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.tsslStatus = new System.Windows.Forms.ToolStripStatusLabel(); - this.tspbStatus = new System.Windows.Forms.ToolStripProgressBar(); - this.btnBrowse = new System.Windows.Forms.Button(); - this.ofd = new System.Windows.Forms.OpenFileDialog(); - this.sfd = new System.Windows.Forms.SaveFileDialog(); - this.fbd = new System.Windows.Forms.FolderBrowserDialog(); - this.btnPretty = new System.Windows.Forms.Button(); - this.label2 = new System.Windows.Forms.Label(); - this.tbOutputFileName = new System.Windows.Forms.TextBox(); - this.label3 = new System.Windows.Forms.Label(); - this.tbFolder = new System.Windows.Forms.TextBox(); - this.btnFolderBrowse = new System.Windows.Forms.Button(); - this.btnFolderPretty = new System.Windows.Forms.Button(); - this.statusStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // tbInputFileName - // - this.tbInputFileName.Location = new System.Drawing.Point(76, 29); - this.tbInputFileName.Name = "tbInputFileName"; - this.tbInputFileName.Size = new System.Drawing.Size(434, 20); - this.tbInputFileName.TabIndex = 0; - this.tbInputFileName.Text = "C:\\Development\\fmtall\\AEP_00all.xml"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(12, 31); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(50, 13); - this.label1.TabIndex = 1; - this.label1.Text = "Input File"; - // - // statusStrip1 - // - this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tspbStatus, - this.tsslStatus}); - this.statusStrip1.Location = new System.Drawing.Point(0, 282); - this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Size = new System.Drawing.Size(657, 22); - this.statusStrip1.TabIndex = 2; - this.statusStrip1.Text = "statusStrip1"; - // - // tsslStatus - // - this.tsslStatus.Name = "tsslStatus"; - this.tsslStatus.Size = new System.Drawing.Size(39, 17); - this.tsslStatus.Text = "Ready"; - // - // tspbStatus - // - this.tspbStatus.Name = "tspbStatus"; - this.tspbStatus.Size = new System.Drawing.Size(100, 16); - this.tspbStatus.Visible = false; - // - // btnBrowse - // - this.btnBrowse.Location = new System.Drawing.Point(516, 27); - this.btnBrowse.Name = "btnBrowse"; - this.btnBrowse.Size = new System.Drawing.Size(59, 23); - this.btnBrowse.TabIndex = 3; - this.btnBrowse.Text = "Browse..."; - this.btnBrowse.UseVisualStyleBackColor = true; - // - // btnPretty - // - this.btnPretty.Location = new System.Drawing.Point(516, 53); - this.btnPretty.Name = "btnPretty"; - this.btnPretty.Size = new System.Drawing.Size(59, 23); - this.btnPretty.TabIndex = 4; - this.btnPretty.Text = "Pretty"; - this.btnPretty.UseVisualStyleBackColor = true; - this.btnPretty.Click += new System.EventHandler(this.btnPretty_Click); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(12, 57); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(58, 13); - this.label2.TabIndex = 6; - this.label2.Text = "Output File"; - // - // tbOutputFileName - // - this.tbOutputFileName.Location = new System.Drawing.Point(76, 55); - this.tbOutputFileName.Name = "tbOutputFileName"; - this.tbOutputFileName.Size = new System.Drawing.Size(434, 20); - this.tbOutputFileName.TabIndex = 5; - this.tbOutputFileName.Text = "C:\\Development\\fmtall\\AEP_00all_out.xml"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(12, 169); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(36, 13); - this.label3.TabIndex = 8; - this.label3.Text = "Folder"; - // - // tbFolder - // - this.tbFolder.Location = new System.Drawing.Point(76, 167); - this.tbFolder.Name = "tbFolder"; - this.tbFolder.Size = new System.Drawing.Size(434, 20); - this.tbFolder.TabIndex = 7; - this.tbFolder.Text = "C:\\Development\\fmtall"; - // - // btnFolderBrowse - // - this.btnFolderBrowse.Location = new System.Drawing.Point(516, 165); - this.btnFolderBrowse.Name = "btnFolderBrowse"; - this.btnFolderBrowse.Size = new System.Drawing.Size(59, 23); - this.btnFolderBrowse.TabIndex = 9; - this.btnFolderBrowse.Text = "Browse..."; - this.btnFolderBrowse.UseVisualStyleBackColor = true; - this.btnFolderBrowse.Click += new System.EventHandler(this.btnFolderBrowse_Click); - // - // btnFolderPretty - // - this.btnFolderPretty.Location = new System.Drawing.Point(581, 164); - this.btnFolderPretty.Name = "btnFolderPretty"; - this.btnFolderPretty.Size = new System.Drawing.Size(59, 23); - this.btnFolderPretty.TabIndex = 10; - this.btnFolderPretty.Text = "Pretty"; - this.btnFolderPretty.UseVisualStyleBackColor = true; - this.btnFolderPretty.Click += new System.EventHandler(this.btnFolderPretty_Click); - // - // frmPrettyPrint - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(657, 304); - this.Controls.Add(this.btnFolderPretty); - this.Controls.Add(this.btnFolderBrowse); - this.Controls.Add(this.label3); - this.Controls.Add(this.tbFolder); - this.Controls.Add(this.label2); - this.Controls.Add(this.tbOutputFileName); - this.Controls.Add(this.btnPretty); - this.Controls.Add(this.btnBrowse); - this.Controls.Add(this.statusStrip1); - this.Controls.Add(this.label1); - this.Controls.Add(this.tbInputFileName); - this.Name = "frmPrettyPrint"; - this.Text = "PrettyPrint"; - this.statusStrip1.ResumeLayout(false); - this.statusStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox tbInputFileName; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.StatusStrip statusStrip1; - private System.Windows.Forms.ToolStripStatusLabel tsslStatus; - private System.Windows.Forms.ToolStripProgressBar tspbStatus; - private System.Windows.Forms.Button btnBrowse; - private System.Windows.Forms.OpenFileDialog ofd; - private System.Windows.Forms.SaveFileDialog sfd; - private System.Windows.Forms.FolderBrowserDialog fbd; - private System.Windows.Forms.Button btnPretty; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.TextBox tbOutputFileName; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.TextBox tbFolder; - private System.Windows.Forms.Button btnFolderBrowse; - private System.Windows.Forms.Button btnFolderPretty; - } -} - diff --git a/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.cs b/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.cs deleted file mode 100644 index b1d91424..00000000 --- a/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Text; -using System.Windows.Forms; -using System.Xml; -using System.IO; - -namespace PrettyPrint -{ - public partial class frmPrettyPrint : Form - { - public string MyStatus - { - get { return tsslStatus.Text; } - set { tsslStatus.Text = value; Application.DoEvents(); } - } - public frmPrettyPrint() - { - InitializeComponent(); - } - private void btnPretty_Click(object sender, EventArgs e) - { - FileInfo fi = new FileInfo(tbOutputFileName.Text); - using(FileStream fs = fi.Create()) - { - using (StreamWriter sw = new StreamWriter(fs)) - { - XmlDocument doc = new XmlDocument(); - //get your document - doc.Load(tbInputFileName.Text); - //create reader and writer - XmlNodeReader xmlReader = new XmlNodeReader(doc); - XmlTextWriter xmlWriter = new XmlTextWriter(sw); - //set formatting options - xmlWriter.Formatting = Formatting.Indented; - xmlWriter.Indentation = 1; - xmlWriter.IndentChar = '\t'; - //write the document formatted - xmlWriter.WriteNode(xmlReader, true); - xmlWriter.Close(); - xmlReader.Close(); - sw.Close(); - } - fs.Close(); - } - } - private void btnFolderBrowse_Click(object sender, EventArgs e) - { - fbd.SelectedPath = tbFolder.Text; - if (fbd.ShowDialog() == DialogResult.OK) - tbFolder.Text = fbd.SelectedPath; - } - private void btnFolderPretty_Click(object sender, EventArgs e) - { - DirectoryInfo di = new DirectoryInfo(tbFolder.Text); - FileInfo [] files = di.GetFiles("*.xml"); - tspbStatus.Maximum = files.Length; - tspbStatus.Visible = true; - tspbStatus.Value = 0; - foreach(FileInfo fi in files) - { - tspbStatus.Value ++; - MyStatus = string.Format("Processing {0}", fi.Name); - FixXML(fi); - } - tspbStatus.Visible = false; - MyStatus = "Ready"; - } - private void FixXML(FileInfo fi) - { - DateTime lastModified = fi.LastWriteTime; - XmlDocument doc = new XmlDocument(); - //get your document - doc.Load(fi.FullName); - using (FileStream fs = fi.Create()) - { - //create reader and writer - XmlNodeReader xmlReader = new XmlNodeReader(doc); - XmlTextWriter xmlWriter = new XmlTextWriter(fs, Encoding.Unicode); - //set formatting options - xmlWriter.Formatting = Formatting.Indented; - xmlWriter.Indentation = 1; - xmlWriter.IndentChar = '\t'; - //write the document formatted - xmlWriter.WriteNode(xmlReader, true); - xmlWriter.Close(); - xmlReader.Close(); - fs.Close(); - } - fi.LastWriteTime = lastModified; - } - } -} \ No newline at end of file diff --git a/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.resx b/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.resx deleted file mode 100644 index 213b7d22..00000000 --- a/PROMS/fmtxml/PrettyPrint/frmPrettyPrint.resx +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - 133, 17 - - - 273, 17 - - - 409, 17 - - \ No newline at end of file diff --git a/PROMS/fmtxml/RtfToSvg.cs b/PROMS/fmtxml/RtfToSvg.cs deleted file mode 100644 index 17a19b52..00000000 --- a/PROMS/fmtxml/RtfToSvg.cs +++ /dev/null @@ -1,387 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.IO; -using System.Text.RegularExpressions; -using System.Drawing; -using System.Xml; - -namespace fmtxml -{ - public partial class RtfToSvg - { - public RtfToSvg(string rtfFileName) - { - RtfFileName = rtfFileName; - _FormatFolder = RtfFile.Directory; - } - private static DirectoryInfo _FormatFolder; - public RtfToSvg(FileInfo rtfFile) - { - RtfFile = rtfFile; - _FormatFolder = RtfFile.Directory; - } - private bool? _IsGenMac; - public bool IsGenMac - { - get - { - if (_IsGenMac == null) - Convert(); - return (bool)_IsGenMac; - } - set { _IsGenMac = value; } - } - private string _RtfFileName; - public string RtfFileName - { - get { return _RtfFileName; } - set - { - _RtfFileName = value; - _RtfFile = new FileInfo(_RtfFileName); - } - } - private FileInfo _RtfFile; - public FileInfo RtfFile - { - get { return _RtfFile; } - set - { - _RtfFile = value; - _RtfFileName = _RtfFile.FullName; - } - } - private string _Svg; - public string Svg - { - get - { - if (_Svg == null) - Convert(); - return _Svg; - } - } - private string Convert() - { - string buff = LoadFile(RtfFile);// Load Text - _Svg = CreateSvg(RtfFile, buff);// Convert to SVG - return _Svg; - } - /// - /// Load the file into a string by bytes - /// - /// - /// - private static string LoadFile(FileInfo file) - { - byte[] bytes = new byte[file.Length]; - using (FileStream fs = file.OpenRead()) - { - fs.Read(bytes, 0, (int)file.Length); - fs.Close(); - } - StringBuilder sb = new StringBuilder(); - foreach (byte byt in bytes) - sb.Append((char)byt); - return sb.ToString(); - } - private const string _TripleBang = "\xAD\xAD\xAD\xA8\xA8"; - Regex regLines = new Regex(@"([^\r\n]*)?\r?\n", RegexOptions.Singleline); - - // If processing any of the RGE (except RGEDEV) C0 macros, adjust the x location of the ellipse, so that - // 32bit printing matches 16bit. This flag shows that we're in a format that needs this adjustment. - private static bool _InRge = false; - private static bool _DoingRgeC0 = false; - private string CreateSvg(FileInfo file, string buff) - { - IsGenMac = (buff.Substring(0, 5) == _TripleBang); - if(!IsGenMac) - return null; - _InRge = (file.Name.ToUpper().Contains("RGE") && !file.Name.ToUpper().Contains("RGEDEV")); - StringBuilder sb = new StringBuilder(); - MatchCollection lines = regLines.Matches(buff); - bool svg = false; - bool group = false; - bool hasC0 = false; - foreach (Match line in lines) - { - string text = line.Groups[1].Value; - if (text == _TripleBang) - if (!svg) - svg = AddSvgPrefix(file, sb, svg); - else - AddSvgSuffix(sb, hasC0); - else if (text.StartsWith("\xAD\xAD")) - { - hasC0 |= AddGroupStart(sb, ref group, text).ToLower() == "c0"; - _DoingRgeC0 = (hasC0 && _InRge); - } - else if (text == "END") - { - group = AddGroupEnd(sb, group); - _DoingRgeC0 = false; - } - else if (text != "") - ProcessCommand(sb, text, file); - } - return sb.ToString(); - } - private static void AddSvgSuffix(StringBuilder sb, bool hasC0) - { - if (!hasC0) - { - AddC0(sb); - } - sb.Append(string.Format("\r\n")); - } - private static bool AddGroupEnd(StringBuilder sb, bool group) - { - if (group) sb.Append(" \r\n"); - group = false; - _Xoff = 0; - _Yoff = 0; - return group; - } - private static string AddGroupStart(StringBuilder sb, ref bool group, string text) - { - AddGroupEnd(sb, group); - group = true; - string grpID = text.Substring(2).ToUpper(); - sb.Append(string.Format(" \r\n", grpID)); - return grpID; - } - private static void AddC0(StringBuilder sb) - { - // note that cx = 1 has been tested with NSP. - sb.Append(" \r\n"); - sb.Append(" \r\n"); - sb.Append(" \r\n"); - } - private static bool AddSvgPrefix(FileInfo file, StringBuilder sb, bool svg) - { - sb.Append("\r\n"); - sb.Append("\r\n"); - sb.Append("\r\n"); - sb.Append(string.Format(" {0}\r\n", file.Name.ToLower().Replace(".rtf", ""))); - svg = true; - return svg; - } - private static Regex regCommand = new Regex(@"^[A-Z][^ \r\n]*", RegexOptions.Multiline); - private static void ProcessCommand(StringBuilder sb, string text, FileInfo file) - { - Match commandMatch = regCommand.Match(text); - ECommand command = (ECommand)Enum.Parse(typeof(ECommand), commandMatch.Value); - Converters[(int)command](sb, text); - } - private enum ECommand : int - { - LINE, - BOX, - ELLIPSE, - TEXT, - BITMAP, - GDIADJ, - RTFADJ, - ABSOLUTE - } - private delegate void Converter(StringBuilder sb, string text); - private static Converter[] _Converters; - private static Converter[] Converters - { - get - { - if (_Converters == null) - SetupConverters(); - return RtfToSvg._Converters; - } - set { _Converters = value; } - } - private static void SetupConverters() - { - Converters = new Converter[Enum.GetNames(typeof(ECommand)).Length]; - Converters[(int)ECommand.LINE] = new Converter(AddLine); - Converters[(int)ECommand.BOX] = new Converter(AddRect); - Converters[(int)ECommand.ELLIPSE] = new Converter(AddEllipse); - Converters[(int)ECommand.TEXT] = new Converter(AddText); - Converters[(int)ECommand.BITMAP] = new Converter(AddImage); - Converters[(int)ECommand.GDIADJ] = new Converter(AddGdiAdj); - Converters[(int)ECommand.RTFADJ] = new Converter(AddRtfAdj); - Converters[(int)ECommand.ABSOLUTE] = new Converter(AddAbsolute); - } - private static Regex regGdiAdj = new Regex(@"GDIADJ ([-0-9]*) ([-0-9]*)$", RegexOptions.Multiline); - private static void AddGdiAdj(StringBuilder sb, string text) - { - Match gdiadjMatch = regGdiAdj.Match(text); - _Xoff = int.Parse(gdiadjMatch.Groups[1].Value); - _Yoff = int.Parse(gdiadjMatch.Groups[2].Value); - } - private static void AddAbsolute(StringBuilder sb, string text) - { - sb.Append(" ABSOLUTE"); - } - private static void AddRtfAdj(StringBuilder sb, string text) - { - // Not needed - } - private static Regex regBitmap = new Regex(@"BITMAP ([-0-9]*) ([-0-9]*) (.*)$", RegexOptions.Multiline); - private static void AddImage(StringBuilder sb, string text) - { - Match bitmapMatch = regBitmap.Match(text); - //string bmFileName = FixXmlText(bitmapMatch.Groups[3].Value); - string bmFileName = FixFileName(bitmapMatch.Groups[3].Value); - Bitmap bmp = new Bitmap(bmFileName); - string bmWidth = bmp.Width.ToString() + "px"; - string bmHeight = bmp.Height.ToString() + "px"; - //Console.WriteLine("'{0}'", bmFileName); - sb.Append(string.Format(" \r\n", - TwipsToPointsX(bitmapMatch.Groups[1].Value), - TwipsToPointsY(bitmapMatch.Groups[2].Value), - bmWidth, - bmHeight, - bmFileName)); - } - private static Regex regText = new Regex(@"TEXT ([-0-9]*) ([-0-9]*) ([-0-9]*) ([-0-9]*) ([-0-9]*) ""([^""]*)""", RegexOptions.Multiline); - private static void AddText(StringBuilder sb, string text) - { - Match textMatch = regText.Match(text); - - sb.Append(string.Format(" {5}\r\n", - TwipsToPointsX(textMatch.Groups[1].Value), - TwipsToPointsY(textMatch.Groups[2].Value), - FontSizeToPoints(textMatch.Groups[3].Value), - FontToFamily(textMatch.Groups[4].Value), - FontStyle(textMatch.Groups[5].Value), - FixXmlText(textMatch.Groups[6].Value))); - } - private static Regex regEllipse = new Regex(@"ELLIPSE ([-0-9]*) ([-0-9]*) ([-0-9]*) ([-0-9]*) ([-0-9]*)", RegexOptions.Multiline); - private static void AddEllipse(StringBuilder sb, string text) - { - Match ellipseMatch = regEllipse.Match(text); - // code in the new veproms that draws the ellipse must use the 'y' location differently. So - // add in the radius to the 'y' to get the correct value. - float yadj = TwipsToPointsEllipse(ellipseMatch.Groups[4].Value); - sb.Append(string.Format(" \r\n", - _DoingRgeC0?6.5:TwipsToPointsX(ellipseMatch.Groups[1].Value), - yadj + TwipsToPointsY(ellipseMatch.Groups[2].Value), - TwipsToPointsEllipse(ellipseMatch.Groups[3].Value), - TwipsToPointsEllipse(ellipseMatch.Groups[4].Value), - TwipsToPoints(ellipseMatch.Groups[5].Value))); - } - private static Regex regBox = new Regex(@"BOX ([-0-9]*) ([-0-9]*) ([-0-9]*) ([-0-9]*) ([-0-9]*)", RegexOptions.Multiline); - private static void AddRect(StringBuilder sb, string text) - { - Match boxMatch = regBox.Match(text); - sb.Append(string.Format(" \r\n", - TwipsToPointsX(boxMatch.Groups[1].Value), - TwipsToPointsY(boxMatch.Groups[2].Value), - TwipsToPoints(boxMatch.Groups[3].Value), - TwipsToPoints(boxMatch.Groups[4].Value), - TwipsToPoints(boxMatch.Groups[5].Value))); - } - private static int _Xoff = 0; - private static int _Yoff = 0; - private static Regex regLine = new Regex(@"LINE ([-0-9]*) ([-0-9]*) ([-0-9]*) ([-0-9]*) ([-0-9]*)", RegexOptions.Multiline); - private static void AddLine(StringBuilder sb, string text) - { - Match lineMatch = regLine.Match(text); - sb.Append(string.Format(" \r\n", - TwipsToPointsX(lineMatch.Groups[1].Value), - TwipsToPointsY(lineMatch.Groups[2].Value), - TwipsToPoints(lineMatch.Groups[3].Value) + TwipsToPointsX(lineMatch.Groups[1].Value), - TwipsToPoints(lineMatch.Groups[4].Value) + TwipsToPointsY(lineMatch.Groups[2].Value), - TwipsToPoints(lineMatch.Groups[5].Value))); - } - private static string FontStyle(string style) - { - StringBuilder sb = new StringBuilder(); - int iStyle = int.Parse(style); - if ((iStyle & 1) == 1) - sb.Append("font-weight=\"bold\" "); - if ((iStyle & 2) == 2) - sb.Append("text-decoration=\"underline\" "); - if ((iStyle & 4) == 4) - sb.Append("font-style=\"italic\" "); - return sb.ToString(); - } - private static string FixFileName(string fileName) - { - return Regex.Replace(fileName, @"^.*FORMAT\\", _FormatFolder.FullName + @"\"); - } - private static string FixXmlText(string str) - { - str = str.Replace("&", "&"); - str = str.Replace("'", "'"); - str = str.Replace("\"", """); - str = str.Replace("<", "<"); - str = str.Replace(">", ">"); - str = str.Replace("\x0B", " "); - str = str.Replace(" ", "{sp}"); - str = str.Replace("\xAE",@"\u8594?"); // Turkey Point uses a Right Arrow from VESYMB - return str; - } - private static string[] FontChoice = - { - "Times New Roman", - "VESymb XXXXXX", - "VolianDraw XXXXXX", - "Prestige Elite Tall", - "Courier New", - "Arial", - "Letter Gothic", - "Times New Roman", - "Letter Gothic Tall", - "Letter Gothic Tall", - "Gothic Ultra", - "VolianScript" - }; - private static float TwipsToPoints(string twips) - { - return float.Parse(twips) / 20; - } - private static float TwipsToPointsEllipse(string twips) - { - // divide the ellipse by 40. This is the 20 to convert from twips to points - // and an addition divide by 2 since the definition in 16bit is diameter & - // in 32 is radius. - return float.Parse(twips) / 40; - } - private static float TwipsToPointsX(string twips) - { - return (_Xoff + float.Parse(twips)) / 20; - } - private static float TwipsToPointsY(string twips) - { - return (_Yoff + float.Parse(twips)) / 20; - } - private static float FontSizeToPoints(string fontSize) - { - return float.Parse(fontSize) / 2; - } - private static string FontToFamily(string fontID) - { - if (int.Parse(fontID) >= FontChoice.Length) - return "Font-" + fontID; - return FontChoice[int.Parse(fontID)]; - } - public void Save(string svgFileName) - { - FileInfo outFile = new FileInfo(svgFileName); - if (outFile.Exists) outFile.Delete(); - XmlDocument xDoc = new XmlDocument(); - try - { - //if (svgFileName.Contains("nsppe")) - // Console.WriteLine("stop"); - xDoc.LoadXml(Svg); - AppendPlantSpecific(svgFileName, xDoc); - xDoc.Save(outFile.FullName); - } - catch (Exception ex) - { - Console.WriteLine("Error generating {0}", svgFileName); - Console.WriteLine("ex = {0}", ex); - } - } - } -} diff --git a/PROMS/fmtxml/Settings.Designer.cs b/PROMS/fmtxml/Settings.Designer.cs deleted file mode 100644 index f10ca454..00000000 --- a/PROMS/fmtxml/Settings.Designer.cs +++ /dev/null @@ -1,62 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.4016 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace fmtxml { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("c:\\development\\")] - public string ResultsFolder { - get { - return ((string)(this["ResultsFolder"])); - } - set { - this["ResultsFolder"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("c:\\16bit\\ve-proms\\format")] - public string FormatFolder { - get { - return ((string)(this["FormatFolder"])); - } - set { - this["FormatFolder"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("C:\\16bit\\promsnt\\genmac")] - public string GenmacFolder { - get { - return ((string)(this["GenmacFolder"])); - } - set { - this["GenmacFolder"] = value; - } - } - } -} diff --git a/PROMS/fmtxml/Settings.settings b/PROMS/fmtxml/Settings.settings deleted file mode 100644 index df88ab49..00000000 --- a/PROMS/fmtxml/Settings.settings +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - c:\development\ - - - c:\16bit\ve-proms\format - - - C:\16bit\promsnt\genmac - - - \ No newline at end of file diff --git a/PROMS/fmtxml/StepTypeMenu.txt b/PROMS/fmtxml/StepTypeMenu.txt deleted file mode 100644 index 52049aa5..00000000 --- a/PROMS/fmtxml/StepTypeMenu.txt +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/PROMS/fmtxml/StepTypeMenu.xlsx b/PROMS/fmtxml/StepTypeMenu.xlsx deleted file mode 100644 index 040fa79b..00000000 Binary files a/PROMS/fmtxml/StepTypeMenu.xlsx and /dev/null differ diff --git a/PROMS/fmtxml/SvgToPdf.cs b/PROMS/fmtxml/SvgToPdf.cs deleted file mode 100644 index e69dc592..00000000 --- a/PROMS/fmtxml/SvgToPdf.cs +++ /dev/null @@ -1,191 +0,0 @@ -using System; -using System.Text; -using System.Xml; -using System.Drawing; -using System.Windows.Forms; -//using C1.C1Pdf; - -namespace fmtxml -{ - /// - /// Summary description for XmlToPdf. - /// - public class SvgToPdf - { - private float ConvertToPoints=72f; - private XmlDocument xmlDoc; - private string FileName; - private string FilePath; - //private C1.C1Pdf.C1PdfDocument _c1pdf; - - private string [] FontChoice = - {"Times New Roman", - "VESymb XXXXXX", - "VolianDraw XXXXXX", - "Prestige Elite Tall", - "Courier New", - "Arial", - "Letter Gothic", - "Times New Roman", - "Letter Gothic Tall", - "Letter Gothic Tall", - "Gothic Ultra", - "VolianScript" - }; - private float LeftMargin; //todo: define in page info - private float VerticalOffset; //todo: define in page info - private bool Portrait; //todo: define in page info - - public SvgToPdf(string path, string fname) - { - LeftMargin=0.5f * ConvertToPoints; // KBR: TODO - VerticalOffset=0.5f * ConvertToPoints; // KBR: TODO - Portrait = true; // KBR: TODO - FileName = fname; - FilePath = path; - xmlDoc = new XmlDocument(); - XmlTextReader reader = new XmlTextReader(FilePath+"\\"+FileName); - xmlDoc.Load(reader); - reader.Close(); - try - { - GeneratePDFForFile(); - } - catch (Exception e) - { - MessageBox.Show("Error processing: " + fname, e.Message); - } - } - - private void GeneratePDFForFile() - { - //_c1pdf = new C1.C1Pdf.C1PdfDocument(); - //string rootname = FileName.Substring(0,FileName.Length-4); - //// create a pdf file with a page for each macro (i.e. macro element in xml tree), - //// put it into the pdf file. - //XmlNode topnode = xmlDoc.LastChild; - //XmlNodeList ndlist = topnode.SelectNodes("/g"); - //for (int i=0;i - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/PROMS/fmtxml/TranslateFMT.XSL b/PROMS/fmtxml/TranslateFMT.XSL deleted file mode 100644 index 5a07e0a6..00000000 Binary files a/PROMS/fmtxml/TranslateFMT.XSL and /dev/null differ diff --git a/PROMS/fmtxml/TranslatePAG.XSL b/PROMS/fmtxml/TranslatePAG.XSL deleted file mode 100644 index f58c1397..00000000 --- a/PROMS/fmtxml/TranslatePAG.XSL +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/PROMS/fmtxml/WST1all.xml b/PROMS/fmtxml/WST1all.xml deleted file mode 100644 index 58c16928..00000000 Binary files a/PROMS/fmtxml/WST1all.xml and /dev/null differ diff --git a/PROMS/fmtxml/WST2all.xml b/PROMS/fmtxml/WST2all.xml deleted file mode 100644 index d6e19b47..00000000 Binary files a/PROMS/fmtxml/WST2all.xml and /dev/null differ diff --git a/PROMS/fmtxml/WSTALRall.xml b/PROMS/fmtxml/WSTALRall.xml deleted file mode 100644 index 1d9c25e0..00000000 Binary files a/PROMS/fmtxml/WSTALRall.xml and /dev/null differ diff --git a/PROMS/fmtxml/WSTBCKall.xml b/PROMS/fmtxml/WSTBCKall.xml deleted file mode 100644 index 29553494..00000000 Binary files a/PROMS/fmtxml/WSTBCKall.xml and /dev/null differ diff --git a/PROMS/fmtxml/WSTCKLall.xml b/PROMS/fmtxml/WSTCKLall.xml deleted file mode 100644 index 986f5ad9..00000000 Binary files a/PROMS/fmtxml/WSTCKLall.xml and /dev/null differ diff --git a/PROMS/fmtxml/WSTDCSall.xml b/PROMS/fmtxml/WSTDCSall.xml deleted file mode 100644 index 4fd10321..00000000 Binary files a/PROMS/fmtxml/WSTDCSall.xml and /dev/null differ diff --git a/PROMS/fmtxml/Westinghouse backups/Original/WST1all.xml b/PROMS/fmtxml/Westinghouse backups/Original/WST1all.xml deleted file mode 100644 index f19bdbf2..00000000 Binary files a/PROMS/fmtxml/Westinghouse backups/Original/WST1all.xml and /dev/null differ diff --git a/PROMS/fmtxml/Westinghouse backups/Original/WST2all.xml b/PROMS/fmtxml/Westinghouse backups/Original/WST2all.xml deleted file mode 100644 index 62d2a0c3..00000000 Binary files a/PROMS/fmtxml/Westinghouse backups/Original/WST2all.xml and /dev/null differ diff --git a/PROMS/fmtxml/Westinghouse backups/Original/wst1.svg b/PROMS/fmtxml/Westinghouse backups/Original/wst1.svg deleted file mode 100644 index d64327c4..00000000 Binary files a/PROMS/fmtxml/Westinghouse backups/Original/wst1.svg and /dev/null differ diff --git a/PROMS/fmtxml/Westinghouse backups/Original/wst2.svg b/PROMS/fmtxml/Westinghouse backups/Original/wst2.svg deleted file mode 100644 index 8270be88..00000000 Binary files a/PROMS/fmtxml/Westinghouse backups/Original/wst2.svg and /dev/null differ diff --git a/PROMS/fmtxml/Westinghouse backups/WST2all.xml b/PROMS/fmtxml/Westinghouse backups/WST2all.xml deleted file mode 100644 index 8981fd48..00000000 Binary files a/PROMS/fmtxml/Westinghouse backups/WST2all.xml and /dev/null differ diff --git a/PROMS/fmtxml/Westinghouse backups/wst2.svg b/PROMS/fmtxml/Westinghouse backups/wst2.svg deleted file mode 100644 index 6c73f6cf..00000000 Binary files a/PROMS/fmtxml/Westinghouse backups/wst2.svg and /dev/null differ diff --git a/PROMS/fmtxml/XSL Transform/ARW05RT.ICO b/PROMS/fmtxml/XSL Transform/ARW05RT.ICO deleted file mode 100644 index 83d5485d..00000000 Binary files a/PROMS/fmtxml/XSL Transform/ARW05RT.ICO and /dev/null differ diff --git a/PROMS/fmtxml/XSL Transform/BASEf.xml b/PROMS/fmtxml/XSL Transform/BASEf.xml deleted file mode 100644 index 3ac11646..00000000 --- a/PROMS/fmtxml/XSL Transform/BASEf.xml +++ /dev/null @@ -1,1982 +0,0 @@ - - - Generic EOP Format - ApproveOne, AccPagination, LibMaint, STrees, DateChgSumRpt, SetpointUsage, Replace - - - Prestige Elite Tall - 10 - None - None - None - - - Insert - False - - - 0 - False - False - False - False - True - False - False - False - False - - - - - - - - - - - - - - - - - - - - - - 52 - 0 - Black - White - False - False - False - False - - - - - - - - - - - - - - Nothing - 0 - 0 - 0 - 0 - False - False - False - False - False - False - False - - - 0 - 0 - False - False - - - 0 - 0 - - - 1 - 0 - - - 2 - 0 - - - 3 - 0 - - - - - 0 - - - 1 - - - 2 - - - 3 - - - 4 - - - - - 0 - 0 - 0 - - - 1 - 0 - 0 - - - 2 - 0 - 0 - - - 3 - 0 - 0 - - - 4 - 0 - 0 - - - 5 - 0 - 0 - - - 6 - 0 - 0 - - - 7 - 0 - 0 - - - 8 - 0 - 0 - - - 9 - 0 - 0 - - - 10 - 0 - 0 - - - 11 - 0 - 0 - - - 12 - 0 - 0 - - - 13 - 0 - 0 - - - 14 - 0 - 0 - - - 15 - 0 - 0 - - - 16 - 0 - 0 - - - 17 - 0 - 0 - - - - - - 0 - Black - White - False - False - False - False - False - False - False - False - False - False - False - - 0 - PSCenter - - - 0 - PSCenter - - - 24 - 0 - 0 - 0 - - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - False - False - False - False - False - False - False - False - False - False - False - False - False - True - False - False - False - - 0 - 1 - 18 - 30 - 0 - 480 - 2 - 0 - 0,1,2 - 0,240,138 - 444,198,120 - 444,198,120 - 18 - 0 - 38,38 - 0 - 0 - 0 - 0, 0, 0 - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - - 0 - 0 - - - 3 - - - - 6 - 270 - 0,0,0 - - - 0 - 0 - False - False - False - - Prestige Elite Tall - 10 - Bold - None - None - - - - - - - - - 0 - 0 - {numeric}. - - - 1 - 0 - {alpha}. - - - 2 - 0 - {numeric}) - - - 3 - 0 - {alpha}) - - - 4 - 0 - {numeric} - - - 5 - 0 - {numeric} - - - 6 - 0 - {numeric} - - - 7 - 0 - {numeric} - - - 8 - 0 - {numeric} - - - - - 0 - - 0 - 0 - 0 - 0 - 0 - 0 - - - - - 0 - 0 - 0 - 0 - 0 - 0 - - - 1 - 0 - 0 - 0 - 0 - 0 - - - 2 - 0 - 0 - 0 - 0 - 0 - - - 3 - 0 - 0 - 0 - 0 - 0 - - - 4 - 0 - 0 - 0 - 0 - 0 - - - 5 - 0 - 0 - 0 - 0 - 0 - - - 6 - 0 - 0 - 0 - 0 - 0 - - - 7 - 0 - 0 - 0 - 0 - 0 - - - 8 - 0 - 0 - 0 - 0 - 0 - - - 9 - 0 - 0 - 0 - 0 - 0 - - - - - High, RNO, Caution, Note, Table, Substep, Attach - IF - \ul IF\ul0 - - - High, RNO, Caution, Note, Table, Substep, Attach - NOT - \ul NOT\ul0 - - - High, RNO, Caution, Note, Table, Substep, Attach - THEN - \ul THEN\ul0 - - - High, RNO, Caution, Note, Table, Substep, Attach - WHEN - \ul WHEN\ul0 - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - High, RNO, Caution, Note, Table, Substep, Attach - - - - - - 0 - Base - - False - False - - Black - White - 0 - - - - - - - 1 - Substep - Base - 0 - False - False - False - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - AddingRNO, AddingSub, AddingTable, AddingNext, AddingPrev - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - - - 2 - High - Base - 0 - False - False - False - False - False - False - False - False - False - False - False - False - False - - Courier New - 12 - Bold - None - None - - - lightgray - 12 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - AddingCaution, AddingNote, AddingRNO, AddingSub, AddingTable, AddingNext, AddingPrev - - - 0 - - - {numeric} - {numeric} - {numeric} - {numeric} - 18 - 18 - 18 - 18 - None - None - - - - 3 - Immediate - High - False - - - - - [{numeric}] - [{numeric}] - [{numeric}] - [{numeric}] - - - - 4 - And - Base - 0 - False - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - AddingRNO, AddingSub, AddingTable, AddingNext, AddingPrev - - - 0 - - - - - - - 12 - 12 - 12 - 12 - None - None - - - - 5 - Or - Base - 0 - - OR - - False - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - AddingRNO, AddingSub, AddingTable, AddingNext, AddingPrev - - - 0 - - - - - - - 12 - 12 - 12 - 12 - None - None - - - - 6 - Caution - Base - 0 - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - - Prestige Elite Tall - 10 - Italics - None - None - - - brown - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - AddingNote, AddingTable, AddingNext, AddingPrev - - - 0 - - - CAUTION - CAUTION - CAUTION - CAUTION - 54 - 54 - 54 - 54 - None - None - - Prestige Elite Tall - 10 - Italics - None - None - - - - - 7 - Note - Base - 0 - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - - Prestige Elite Tall - 10 - Italics - None - None - - - green - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - AddingTable, AddingNext, AddingPrev - - - 0 - - - NOTE - NOTE - NOTE - NOTE - 54 - 54 - 54 - 54 - None - None - - Prestige Elite Tall - 10 - Italics - None - None - - - - - 8 - Table - Base - 0 - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - - - 9 - Continuous - High - False - - - - - *{numeric} - *{numeric} - *{numeric} - *{numeric} - - - - 10 - AERTable - Table - - - - - - - 11 - EquipmentList - Base - 0 - False - False - False - - magenta - 0 - 0 - 4 - 0 - 12 - 0 - 0 - 0 - 0 - - - AddingNext, AddingPrev - - - 0 - - - - - - - 12 - 12 - 12 - 12 - None - None - - - - 12 - Title - Base - 0 - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - - - 13 - PageNumber - Title - - - - - - - 14 - EquipmentWBlank - EquipmentList - - - - - - - - 15 - ProcNumber - Title - - - - - - - 16 - RevNumber - Title - - - - - - - 17 - AccPages - Base - 0 - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - - - 18 - LossOfAC - High - False - - - - - {Box Step}{numeric} - {Box Step}{numeric} - 12 - 12 - - - - 19 - ExplicitAnd - And - - AND - - - - - - - - 20 - Caution1 - Caution - False - False - - - - - - - 21 - Caution2 - Caution - False - False - - - - - - - 22 - Note1 - Note - False - - - - - - - 23 - Note2 - Note - - - - - - - 24 - Paragraph - Base - 0 - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - AddingRNO, AddingSub, AddingTable, AddingNext, AddingPrev - - - 0 - - - - - - - 0 - 0 - 0 - 0 - None - None - - - - 25 - Default - Base - 0 - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - - - 26 - Note3 - Note - - - - - - - 27 - Caution3 - Caution - - - - - - - 28 - Note4 - Note - - cyan - - - - - 0 - 0 - 0 - 0 - - - - 29 - Caution4 - Caution - - cyan - - - - - 0 - 0 - 0 - 0 - - - - 30 - EquipmentOpt - EquipmentList - False - False - - - - - - - 31 - EquipmentOptWBlank - EquipmentWBlank - - - - - - - 32 - Note5 - Note - - cyan - - - - - 0 - 0 - 0 - 0 - - - - 33 - BorderlessAERTable - AERTable - False - - - - - - - 34 - BorderlessTable - Table - False - - - - - - - 35 - ImplicitOr - Or - - - - - - - 36 - Figure - Table - - Black - - - - - - - 37 - AERFigure - Figure - - - - - - - 38 - BorderlessFigure - Figure - False - - - - - - - 39 - BorderlessAERFigure - AERFigure - False - - - - - - - 40 - RNOType - Base - 0 - Lettered High Level Step - True - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - - - 41 - High5 - High - - - - - {ALPHA}. - {ALPHA}. - {ALPHA}. - {ALPHA}. - 24 - 30 - 24 - 30 - - - - 42 - TitleWithTextRight - Title - - - - - - - 43 - TitleWithTextBelow - Title - - - - - - - 44 - ContAcSequential - Base - 0 - False - False - - cyan - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - - - 45 - ContAcAnd - And - - - - - 0 - 0 - 0 - 0 - - - - 46 - ContAcOr - Or - - - - - 0 - 0 - 0 - 0 - - - - 47 - ContAcParagraph - Paragraph - 0 - - cyan - White - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - - - - - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - - - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 4 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 5 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 6 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 7 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 8 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 9 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 10 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 11 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 12 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - throughò - False - True - False - True - False - False - False - False - False - False - False - False - False - False - - - 0 - 0 - {Proc Num}, {Proc Title}, Step {First Step} - {Proc Num}, {Proc Title}, Step {First Step} - ProcMenu, SectDefault, StepAllowNone, StepFirst - - - 1 - 1 - {First Step} - {First Step} - ProcCur, SectCur, StepFirst - - - 2 - 2 - {First Step}, {.}, {.}, {.} and {Last Step} - {First Step}, {.}, {.}, {.} and {Last Step} - ProcCur, SectCur, StepFirst, StepLast - - - 3 - 3 - {First Step} thru {Last Step} of {Proc Num}, {Proc Title}, {Sect Hdr} - {First Step} thru {Last Step} of {Proc Num}, {Proc Title}, {Sect Hdr} - ProcMenu, SectMenuStep, StepFirst, StepLast - - - 4 - 4 - {Sect Title}, Step {First Step} - {Sect Title}, Step {First Step} - ProcCur, SectMenuAny, StepAllowNone, StepFirst - - - 5 - 5 - {Proc Num}, {Proc Title}, {Sect Hdr}, Step {First Step} - {Proc Num}, {Proc Title}, {Sect Hdr}, Step {First Step} - ProcMenu, SectMenuAny, StepAllowNone, StepFirst - - - 6 - 6 - - - 7 - 7 - - - 8 - 8 - - - 9 - 9 - - - 10 - 10 - - - 11 - 11 - - - 12 - 12 - - - 13 - 13 - - - 14 - 14 - - - - - True - False - False - False - True - False - False - - \ No newline at end of file diff --git a/PROMS/fmtxml/XSL Transform/Program.cs b/PROMS/fmtxml/XSL Transform/Program.cs deleted file mode 100644 index cef70661..00000000 --- a/PROMS/fmtxml/XSL Transform/Program.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Windows.Forms; - -namespace XSL_Transform -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new frmMain()); - } - } -} \ No newline at end of file diff --git a/PROMS/fmtxml/XSL Transform/Properties/AssemblyInfo.cs b/PROMS/fmtxml/XSL Transform/Properties/AssemblyInfo.cs deleted file mode 100644 index 7139dc9b..00000000 --- a/PROMS/fmtxml/XSL Transform/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("XSL Transform")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Volian Enterprises, Inc.")] -[assembly: AssemblyProduct("XSL Transform")] -[assembly: AssemblyCopyright("Copyright © Volian Enterprises, Inc. 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("7e95cb06-46be-49c6-81e1-92302d9017e4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PROMS/fmtxml/XSL Transform/Properties/Resources.Designer.cs b/PROMS/fmtxml/XSL Transform/Properties/Resources.Designer.cs deleted file mode 100644 index e597f907..00000000 --- a/PROMS/fmtxml/XSL Transform/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XSL_Transform.Properties -{ - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("XSL_Transform.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/PROMS/fmtxml/XSL Transform/Properties/Resources.resx b/PROMS/fmtxml/XSL Transform/Properties/Resources.resx deleted file mode 100644 index af7dbebb..00000000 --- a/PROMS/fmtxml/XSL Transform/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/PROMS/fmtxml/XSL Transform/Properties/Settings.Designer.cs b/PROMS/fmtxml/XSL Transform/Properties/Settings.Designer.cs deleted file mode 100644 index c6d333c7..00000000 --- a/PROMS/fmtxml/XSL Transform/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace XSL_Transform.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { - return defaultInstance; - } - } - } -} diff --git a/PROMS/fmtxml/XSL Transform/Properties/Settings.settings b/PROMS/fmtxml/XSL Transform/Properties/Settings.settings deleted file mode 100644 index 39645652..00000000 --- a/PROMS/fmtxml/XSL Transform/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/PROMS/fmtxml/XSL Transform/TranslateFMT.XSL b/PROMS/fmtxml/XSL Transform/TranslateFMT.XSL deleted file mode 100644 index b74ad997..00000000 Binary files a/PROMS/fmtxml/XSL Transform/TranslateFMT.XSL and /dev/null differ diff --git a/PROMS/fmtxml/XSL Transform/WCNCKLf.xml b/PROMS/fmtxml/XSL Transform/WCNCKLf.xml deleted file mode 100644 index fe93d6dd..00000000 --- a/PROMS/fmtxml/XSL Transform/WCNCKLf.xml +++ /dev/null @@ -1,2016 +0,0 @@ - - - Wolf Creek Checklist Attachment Format - ApproveOne, AccPagination, LibMaint, STrees, DateChgSumRpt, SetpointUsage, Replace, OutsideTransitions, AutoTableOfContents - - None - None - - - null - - - 0 - null - null - null - null - False - null - null - null - null - - - - - - - - - - - - - - - - - - - - - - 45 - 0 - null - True - null - null - - - - - - - - - - - - - - 69 - 174 - 0 - 1 - null - True - null - null - null - null - null - - - 0 - 0 - null - null - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - - - 0 - - - 1 - - - 2 - - - 3 - - - 4 - - - - - 0 - 0 - 0 - - - 1 - 0 - 0 - - - 2 - 0 - 0 - - - 3 - 0 - 0 - - - 4 - 0 - 0 - - - 5 - 0 - 0 - - - 6 - 0 - 0 - - - 7 - 0 - 0 - - - 8 - 0 - 0 - - - 9 - 0 - 0 - - - 10 - 0 - 0 - - - 11 - 0 - 0 - - - 12 - 0 - 0 - - - 13 - 0 - 0 - - - 14 - 0 - 0 - - - 15 - 0 - 0 - - - 16 - 0 - 0 - - - 17 - 0 - 0 - - - - - - 0 - null - null - null - null - True - null - True - null - null - null - null - - 0 - - - 0 - - - 48 - 0 - 2 - 0 - - 5 - 6 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - Caution - Note - - - - - - - - - - o - - - - - - - - - - - - - null - True - null - null - null - null - True - null - True - True - True - null - null - null - True - null - null - - 0 - 0 - 6 - 18 - 0 - 366 - 0 - 0 - 594,198,138 - 420,174,126 - 420,174,126 - 0 - 0 - 0,0 - 0 - 0 - 0 - null - null - True - null - null - null - null - True - null - True - True - null - null - null - null - null - null - null - True - null - null - null - null - null - null - null - null - True - null - null - null - null - True - True - - Courier New - 12 - None - None - None - - - 0 - 0 - - - 8 - - Courier New - 12 - None - None - None - - - - - 0 - 0 - 0,24,0 - - - 0 - 0 - null - null - null - - - - - - - - 0 - 0 - {numeric}+ - - - 1 - 0 - {numeric}+ - - - 2 - 0 - {numeric}. - - - 3 - 0 - {alpha}. - - - 4 - 0 - {numeric}) - - - 5 - 0 - {alpha}) - - - 6 - 0 - - - 7 - 0 - - - 8 - 0 - - - - - 0 - - 0 - 0 - 0 - 0 - 0 - 0 - - - - - 0 - 0 - 0 - 0 - 0 - 0 - - - 1 - 0 - 0 - 0 - 0 - 0 - - - 2 - 0 - 0 - 0 - 0 - 0 - - - 3 - 0 - 0 - 0 - 0 - 0 - - - 4 - 0 - 0 - 0 - 0 - 0 - - - 5 - 0 - 0 - 0 - 0 - 0 - - - 6 - 0 - 0 - 0 - 0 - 0 - - - 7 - 0 - 0 - 0 - 0 - 0 - - - 8 - 0 - 0 - 0 - 0 - 0 - - - 9 - 0 - 0 - 0 - 0 - 0 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - Base - - null - null - - None - None - - - - - - - - 1 - Substep - Base - 0 - Component Location (2 Signoffs) - null - null - null - null - null - - - AddingCaution, AddingNote, AddingSub, AddingNext, AddingPrev - - - - - Courier New - 12 - None - None - None - - - - - 2 - High - Base - 0 - Spare - {Backspace}┌───────────────────────────────────────────────────────────────────────┐ - {Backspace}├──────────────┬─────────────────────────┬─────────┬──────────┬─────────┤{par}{Backspace}│ COMPONENT │ COMPONENT DESCRIPTION │REQUIRED │PERFORMER │VERIFIER │{par}{Backspace}│ NUMBER │ │POSITION │ INITIALS │INITIALS │{par}{Backspace}├──────────────┼─────────────────────────┼─────────┼──────────┼─────────┤ - 1,16,42,52,63,73,0,0,0,0,0,0,0,0,0 - null - True - False - null - null - null - null - null - null - null - null - null - null - - None - Center - - - 0 - - - AddingCaution, AddingNote, AddingSub, AddingNext, AddingPrev - - - 24 - - - - - - - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - - 3 - Immediate - High - null - - - - - - - 4 - And - Base - 0 - False - null - null - - Courier New - 12 - None - None - None - - - - AddingCaution, AddingNote, AddingSub, AddingNext, AddingPrev - - - - o - o - o - o - - Courier New - 12 - None - None - None - - - - - 5 - Or - Base - 0 - \ul OR\ul0 - False - null - null - - Courier New - 12 - None - None - None - - - -32384 - - - AddingCaution, AddingNote, AddingSub, AddingNext, AddingPrev - - - - * - * - * - * - - Courier New - 12 - None - None - None - - - - - 6 - Caution - Base - 0 - null - null - null - null - null - False - False - null - null - null - null - null - null - null - null - null - null - null - null - null - - None - None - - - 2 - -32384 - - - AddingCaution, AddingNote, AddingNext, AddingPrev - - - - CAUTION - CAUTIONS - CAUTION - CAUTIONS - 48 - 48 - Center - - Courier New - 12 - Underline, Bold - None - Center - - - - - 7 - Note - Base - 0 - null - null - null - null - False - False - null - null - False - null - null - null - null - null - null - null - null - null - - None - None - - - 3 - - - AddingNext, AddingPrev - - - - NOTE - NOTES - NOTE - NOTES - 30 - 36 - 30 - 36 - Center - - Courier New - 12 - Underline, Bold - None - Center - - - - - 8 - Table - Base - 0 - Component Location (Performed By) - False - null - - Courier New - 12 - None - None - None - - - - - - - Courier New - 12 - None - None - None - - - - - 9 - Continuous - High - {Backspace}├──────────────┬───────────────────────────────────┬─────────┬──────────┤{par}{Backspace}│ COMPONENT │ COMPONENT DESCRIPTION │REQUIRED │PERFORMER │{par}{Backspace}│ NUMBER │ │POSITION │ INITIALS │{par}{Backspace}├──────────────┼───────────────────────────────────┼─────────┼──────────┤ - 1,16,52,62,73,0,0,0,0,0,0,0,0,0,0 - null - - - - - - - 10 - AERTable - Table - - - - - - - 11 - EquipmentList - Base - 0 - False - null - null - - Courier New - 12 - None - None - None - - - cyan - 99 - - - AddingSub, AddingNext, AddingPrev - - - - o - o - o - o - - Courier New - 12 - None - None - None - - - - - 12 - Title - Base - 0 - False - null - - Courier New - 12 - None - None - None - - - - - - - Courier New - 12 - None - None - None - - - - - 13 - PageNumber - Title - - - - - - - 14 - EquipmentWBlank - EquipmentList - - 1 - - - AddingCaution, AddingNote, AddingSub, AddingNext, AddingPrev - - - - 0 - 0 - 0 - 0 - - - - 15 - ProcNumber - Title - - - - - - - 16 - RevNumber - Title - - - - - - - 17 - AccPages - Base - 0 - Spare - False - null - - Courier New - 12 - None - None - None - - - - - - - Courier New - 12 - None - None - None - - - - - 18 - LossOfAC - High - True - - - - - - - 19 - ExplicitAnd - And - \ul AND\ul0 - - -32384 - - - - - - - 20 - Caution1 - Caution - True - null - - - - - - - 21 - Caution2 - Caution - null - null - - - - - - - 22 - Note1 - Note - True - - - - - - - 23 - Note2 - Note - - - - - - - 24 - Paragraph - Base - 0 - null - - Courier New - 12 - None - None - None - - - - AddingCaution, AddingNote, AddingSub, AddingNext, AddingPrev - - - - - Courier New - 12 - None - None - None - - - - - 25 - Default - Base - 0 - False - null - - - - - - Courier New - 12 - None - None - None - - - - - 26 - Note3 - Note - - 0 - - - - - 0 - 0 - 0 - 0 - None - - None - None - None - - - - - 27 - Caution3 - Caution - - 0 - 0 - - - - - 0 - 0 - 0 - 0 - None - - None - None - None - - - - - 28 - Note4 - Note - - 0 - - - - - None - - None - None - None - - - - - 29 - Caution4 - Caution - Component Description - - 0 - -26986 - - - - - None - - None - None - None - - - - - 30 - EquipmentOpt - EquipmentList - Component Number - null - null - - magenta - 1 - 21588 - - - - - COMPONENT DESCRIPTION: - - COMPONENT DESCRIPTION: - - 138 - 0 - 138 - 0 - - - - 31 - EquipmentOptWBlank - EquipmentWBlank - - - - - COMPONENT NUMBER: - - COMPONENT NUMBER: - - 108 - 108 - - - - 32 - Note5 - Note - - 0 - - - - - None - - None - None - None - - - - - 33 - BorderlessAERTable - AERTable - null - - - - - - - 34 - BorderlessTable - Table - Required Position - null - - 13878 - - - - - - - 35 - ImplicitOr - Or - - red - 1 - 0 - - - - - REQUIRED POSITION: - - REQUIRED POSITION: - - 138 - 0 - 138 - 0 - - - - 36 - Figure - Table - - - - - - - 37 - AERFigure - Figure - - - - - - - 38 - BorderlessFigure - Figure - null - - - - - - - 39 - BorderlessAERFigure - AERFigure - null - - - - - - - 40 - RNOType - Base - 0 - Spare - False - null - True - null - null - null - null - null - null - null - null - null - null - null - null - null - null - null - - - - - - Courier New - 12 - None - None - None - - - - - 41 - High5 - High - - - - 0 - - - - - 42 - TitleWithTextRight - Title - - magenta - - - AddingSub, AddingNext, AddingPrev - - - - - - - - - - - 43 - TitleWithTextBelow - Title - - magenta - - - AddingSub, AddingNext, AddingPrev - - - - - - - - - - - 44 - ContAcSequential - Base - 0 - False - null - - - - - - Courier New - 12 - None - None - None - - - - - 45 - ContAcAnd - And - - - - - - - 46 - ContAcOr - Or - - 0 - - - - - - - 47 - ContAcParagraph - Paragraph - 0 - - cyan - White - 0 - 0 - 1 - 0 - 12 - 0 - 0 - 0 - 0 - - - - 0 - - - 0 - 0 - 0 - 0 - None - None - - Courier New - 12 - None - None - None - - - - - - - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 1 - 0 - 516 - 18 - 444 - 0 - 0 - 0 - - - - - - - - - - - - - Courier New - 12 - None - None - None - - - - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - 3 - 0 - 432 - 18 - 402 - 0 - 0 - 0 - - - - - - - - - Courier New - 12 - None - None - None - - - - 4 - 0 - 432 - 18 - 402 - 0 - 0 - 0 - - - - - - - - - Courier New - 12 - None - None - None - - - - 5 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - 6 - 0 - 516 - 18 - 444 - 0 - 0 - 0 - - - - - - - - - - - - - Courier New - 12 - None - None - None - - - - 7 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - 8 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - 9 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - 10 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - 11 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - 12 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - Courier New - 12 - None - None - None - - - - - ..)). - null - null - null - null - null - null - null - null - null - null - True - null - null - null - - - 0 - 0 - - - 1 - 1 - {First Step} ( Within the current section ) - {First Step} ( Within the current section ) - - - 2 - 2 - - - 3 - 3 - {Sect Num}.{First Step} thru {Sect Num}.{Last Step} - {Sect Num}.{First Step} thru {Sect Num}.{Last Step} - ProcCur, SectMenuStep, StepFirst, StepLast - - - 4 - 4 - {Sect Num}.{First Step} ( To a different section ) - {Sect Num}.{First Step} ( To a different section ) - - - 5 - 5 - {Sect Num}, {Sect Title}, {First Step} - {Sect Num}, {Sect Title}, {First Step} - ProcCur, SectMenuAny, StepAllowNone, StepFirst - - - 6 - 6 - - - 7 - 7 - - - 8 - 8 - - - 9 - 9 - - - 10 - 10 - - - 11 - 11 - - - 12 - 12 - - - 13 - 13 - - - 14 - 14 - - - - - null - True - False - null - null - True - null - - \ No newline at end of file diff --git a/PROMS/fmtxml/XSL Transform/XSL Transform.csproj b/PROMS/fmtxml/XSL Transform/XSL Transform.csproj deleted file mode 100644 index e4647124..00000000 --- a/PROMS/fmtxml/XSL Transform/XSL Transform.csproj +++ /dev/null @@ -1,82 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {74593BA8-2F88-4FF2-89A6-9FBD358231D7} - WinExe - Properties - XSL_Transform - XSL Transform - ARW05RT.ICO - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - Form - - - frmMain.cs - - - - - Designer - frmMain.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - - \ No newline at end of file diff --git a/PROMS/fmtxml/XSL Transform/XSL Transform.sln b/PROMS/fmtxml/XSL Transform/XSL Transform.sln deleted file mode 100644 index ed297537..00000000 --- a/PROMS/fmtxml/XSL Transform/XSL Transform.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XSL Transform", "XSL Transform.csproj", "{74593BA8-2F88-4FF2-89A6-9FBD358231D7}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {74593BA8-2F88-4FF2-89A6-9FBD358231D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {74593BA8-2F88-4FF2-89A6-9FBD358231D7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {74593BA8-2F88-4FF2-89A6-9FBD358231D7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {74593BA8-2F88-4FF2-89A6-9FBD358231D7}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/PROMS/fmtxml/XSL Transform/frmMain.Designer.cs b/PROMS/fmtxml/XSL Transform/frmMain.Designer.cs deleted file mode 100644 index b92ec2f0..00000000 --- a/PROMS/fmtxml/XSL Transform/frmMain.Designer.cs +++ /dev/null @@ -1,591 +0,0 @@ -namespace XSL_Transform -{ - partial class frmMain - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.Windows.Forms.TabPage tpSX; - System.Windows.Forms.TabPage tpRS; - System.Windows.Forms.TabPage tpSR; - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); - this.tbSX = new System.Windows.Forms.TextBox(); - this.wbRS = new System.Windows.Forms.WebBrowser(); - this.tbSR = new System.Windows.Forms.TextBox(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.tcSource = new System.Windows.Forms.TabControl(); - this.tpSS = new System.Windows.Forms.TabPage(); - this.tbSS = new System.Windows.Forms.TextBox(); - this.tcResults = new System.Windows.Forms.TabControl(); - this.tpRX = new System.Windows.Forms.TabPage(); - this.wbRX = new System.Windows.Forms.WebBrowser(); - this.tpRR = new System.Windows.Forms.TabPage(); - this.wbRR = new System.Windows.Forms.WebBrowser(); - this.tpXslHelp = new System.Windows.Forms.TabPage(); - this.wbXSLHelp = new System.Windows.Forms.WebBrowser(); - this.tpXPathHelp = new System.Windows.Forms.TabPage(); - this.wbXPathHelp = new System.Windows.Forms.WebBrowser(); - this.menuStrip1 = new System.Windows.Forms.MenuStrip(); - this.xMLToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.miOpenXML = new System.Windows.Forms.ToolStripMenuItem(); - this.miSaveXML = new System.Windows.Forms.ToolStripMenuItem(); - this.miSaveAsXML = new System.Windows.Forms.ToolStripMenuItem(); - this.xSLToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.miOpenXSL = new System.Windows.Forms.ToolStripMenuItem(); - this.miSaveXSL = new System.Windows.Forms.ToolStripMenuItem(); - this.miSaveAsXSL = new System.Windows.Forms.ToolStripMenuItem(); - this.resultToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.miTransform = new System.Windows.Forms.ToolStripMenuItem(); - this.miQuery = new System.Windows.Forms.ToolStripMenuItem(); - this.miSaveAsResults = new System.Windows.Forms.ToolStripMenuItem(); - this.miQuit = new System.Windows.Forms.ToolStripMenuItem(); - this.searchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.specialToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ofdxml = new System.Windows.Forms.OpenFileDialog(); - this.sfdxml = new System.Windows.Forms.SaveFileDialog(); - this.ofdxsl = new System.Windows.Forms.OpenFileDialog(); - this.sfdxsl = new System.Windows.Forms.SaveFileDialog(); - this.sfdResults = new System.Windows.Forms.SaveFileDialog(); - this.ofdResults = new System.Windows.Forms.OpenFileDialog(); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.RowLbl = new System.Windows.Forms.ToolStripStatusLabel(); - this.ColLbl = new System.Windows.Forms.ToolStripStatusLabel(); - this.miRefreshXML = new System.Windows.Forms.ToolStripMenuItem(); - this.miRefreshXSL = new System.Windows.Forms.ToolStripMenuItem(); - tpSX = new System.Windows.Forms.TabPage(); - tpRS = new System.Windows.Forms.TabPage(); - tpSR = new System.Windows.Forms.TabPage(); - tpSX.SuspendLayout(); - tpRS.SuspendLayout(); - tpSR.SuspendLayout(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.tcSource.SuspendLayout(); - this.tpSS.SuspendLayout(); - this.tcResults.SuspendLayout(); - this.tpRX.SuspendLayout(); - this.tpRR.SuspendLayout(); - this.tpXslHelp.SuspendLayout(); - this.tpXPathHelp.SuspendLayout(); - this.menuStrip1.SuspendLayout(); - this.statusStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // tpSX - // - tpSX.Controls.Add(this.tbSX); - tpSX.Location = new System.Drawing.Point(4, 22); - tpSX.Name = "tpSX"; - tpSX.Padding = new System.Windows.Forms.Padding(3); - tpSX.Size = new System.Drawing.Size(426, 463); - tpSX.TabIndex = 0; - tpSX.Text = "XML"; - tpSX.UseVisualStyleBackColor = true; - // - // tbSX - // - this.tbSX.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbSX.Location = new System.Drawing.Point(3, 3); - this.tbSX.Multiline = true; - this.tbSX.Name = "tbSX"; - this.tbSX.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.tbSX.Size = new System.Drawing.Size(420, 457); - this.tbSX.TabIndex = 0; - this.tbSX.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tbSX_MouseUp); - this.tbSX.TextChanged += new System.EventHandler(this.tbTextChanged); - // - // tpRS - // - tpRS.Controls.Add(this.wbRS); - tpRS.Location = new System.Drawing.Point(4, 22); - tpRS.Name = "tpRS"; - tpRS.Padding = new System.Windows.Forms.Padding(3); - tpRS.Size = new System.Drawing.Size(419, 463); - tpRS.TabIndex = 1; - tpRS.Text = "XSL"; - tpRS.UseVisualStyleBackColor = true; - // - // wbRS - // - this.wbRS.Dock = System.Windows.Forms.DockStyle.Fill; - this.wbRS.Location = new System.Drawing.Point(3, 3); - this.wbRS.MinimumSize = new System.Drawing.Size(20, 20); - this.wbRS.Name = "wbRS"; - this.wbRS.Size = new System.Drawing.Size(413, 457); - this.wbRS.TabIndex = 1; - // - // tpSR - // - tpSR.Controls.Add(this.tbSR); - tpSR.Location = new System.Drawing.Point(4, 22); - tpSR.Name = "tpSR"; - tpSR.Size = new System.Drawing.Size(426, 463); - tpSR.TabIndex = 2; - tpSR.Text = "Results"; - tpSR.UseVisualStyleBackColor = true; - // - // tbSR - // - this.tbSR.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbSR.Location = new System.Drawing.Point(0, 0); - this.tbSR.Multiline = true; - this.tbSR.Name = "tbSR"; - this.tbSR.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.tbSR.Size = new System.Drawing.Size(426, 463); - this.tbSR.TabIndex = 1; - this.tbSR.TextChanged += new System.EventHandler(this.tbTextChanged); - // - // splitContainer1 - // - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.Location = new System.Drawing.Point(0, 24); - this.splitContainer1.Name = "splitContainer1"; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.Controls.Add(this.tcSource); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.tcResults); - this.splitContainer1.Size = new System.Drawing.Size(865, 489); - this.splitContainer1.SplitterDistance = 434; - this.splitContainer1.TabIndex = 0; - // - // tcSource - // - this.tcSource.Controls.Add(tpSX); - this.tcSource.Controls.Add(this.tpSS); - this.tcSource.Controls.Add(tpSR); - this.tcSource.Dock = System.Windows.Forms.DockStyle.Fill; - this.tcSource.Location = new System.Drawing.Point(0, 0); - this.tcSource.Name = "tcSource"; - this.tcSource.SelectedIndex = 0; - this.tcSource.Size = new System.Drawing.Size(434, 489); - this.tcSource.TabIndex = 0; - // - // tpSS - // - this.tpSS.Controls.Add(this.tbSS); - this.tpSS.Location = new System.Drawing.Point(4, 22); - this.tpSS.Name = "tpSS"; - this.tpSS.Padding = new System.Windows.Forms.Padding(3); - this.tpSS.Size = new System.Drawing.Size(426, 463); - this.tpSS.TabIndex = 1; - this.tpSS.Text = "XSL"; - this.tpSS.UseVisualStyleBackColor = true; - // - // tbSS - // - this.tbSS.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbSS.Location = new System.Drawing.Point(3, 3); - this.tbSS.Multiline = true; - this.tbSS.Name = "tbSS"; - this.tbSS.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.tbSS.Size = new System.Drawing.Size(420, 457); - this.tbSS.TabIndex = 1; - this.tbSS.TextChanged += new System.EventHandler(this.tbTextChanged); - // - // tcResults - // - this.tcResults.Controls.Add(this.tpRX); - this.tcResults.Controls.Add(tpRS); - this.tcResults.Controls.Add(this.tpRR); - this.tcResults.Controls.Add(this.tpXslHelp); - this.tcResults.Controls.Add(this.tpXPathHelp); - this.tcResults.Dock = System.Windows.Forms.DockStyle.Fill; - this.tcResults.Location = new System.Drawing.Point(0, 0); - this.tcResults.Name = "tcResults"; - this.tcResults.SelectedIndex = 0; - this.tcResults.Size = new System.Drawing.Size(427, 489); - this.tcResults.TabIndex = 1; - this.tcResults.SelectedIndexChanged += new System.EventHandler(this.tcResults_SelectedIndexChanged); - // - // tpRX - // - this.tpRX.Controls.Add(this.wbRX); - this.tpRX.Location = new System.Drawing.Point(4, 22); - this.tpRX.Name = "tpRX"; - this.tpRX.Padding = new System.Windows.Forms.Padding(3); - this.tpRX.Size = new System.Drawing.Size(419, 463); - this.tpRX.TabIndex = 0; - this.tpRX.Text = "XML"; - this.tpRX.UseVisualStyleBackColor = true; - // - // wbRX - // - this.wbRX.Dock = System.Windows.Forms.DockStyle.Fill; - this.wbRX.Location = new System.Drawing.Point(3, 3); - this.wbRX.MinimumSize = new System.Drawing.Size(20, 20); - this.wbRX.Name = "wbRX"; - this.wbRX.Size = new System.Drawing.Size(413, 457); - this.wbRX.TabIndex = 0; - // - // tpRR - // - this.tpRR.Controls.Add(this.wbRR); - this.tpRR.Location = new System.Drawing.Point(4, 22); - this.tpRR.Name = "tpRR"; - this.tpRR.Size = new System.Drawing.Size(419, 463); - this.tpRR.TabIndex = 2; - this.tpRR.Text = "Results"; - this.tpRR.UseVisualStyleBackColor = true; - // - // wbRR - // - this.wbRR.Dock = System.Windows.Forms.DockStyle.Fill; - this.wbRR.Location = new System.Drawing.Point(0, 0); - this.wbRR.MinimumSize = new System.Drawing.Size(20, 20); - this.wbRR.Name = "wbRR"; - this.wbRR.Size = new System.Drawing.Size(419, 463); - this.wbRR.TabIndex = 1; - // - // tpXslHelp - // - this.tpXslHelp.Controls.Add(this.wbXSLHelp); - this.tpXslHelp.Location = new System.Drawing.Point(4, 22); - this.tpXslHelp.Name = "tpXslHelp"; - this.tpXslHelp.Size = new System.Drawing.Size(419, 463); - this.tpXslHelp.TabIndex = 3; - this.tpXslHelp.Text = "XSL Help"; - this.tpXslHelp.UseVisualStyleBackColor = true; - // - // wbXSLHelp - // - this.wbXSLHelp.Dock = System.Windows.Forms.DockStyle.Fill; - this.wbXSLHelp.Location = new System.Drawing.Point(0, 0); - this.wbXSLHelp.MinimumSize = new System.Drawing.Size(20, 20); - this.wbXSLHelp.Name = "wbXSLHelp"; - this.wbXSLHelp.Size = new System.Drawing.Size(419, 463); - this.wbXSLHelp.TabIndex = 3; - // - // tpXPathHelp - // - this.tpXPathHelp.Controls.Add(this.wbXPathHelp); - this.tpXPathHelp.Location = new System.Drawing.Point(4, 22); - this.tpXPathHelp.Name = "tpXPathHelp"; - this.tpXPathHelp.Size = new System.Drawing.Size(419, 463); - this.tpXPathHelp.TabIndex = 4; - this.tpXPathHelp.Text = "XPath Help"; - this.tpXPathHelp.UseVisualStyleBackColor = true; - // - // wbXPathHelp - // - this.wbXPathHelp.Dock = System.Windows.Forms.DockStyle.Fill; - this.wbXPathHelp.Location = new System.Drawing.Point(0, 0); - this.wbXPathHelp.MinimumSize = new System.Drawing.Size(20, 20); - this.wbXPathHelp.Name = "wbXPathHelp"; - this.wbXPathHelp.Size = new System.Drawing.Size(419, 463); - this.wbXPathHelp.TabIndex = 2; - // - // menuStrip1 - // - this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.xMLToolStripMenuItem, - this.xSLToolStripMenuItem, - this.resultToolStripMenuItem, - this.miQuit, - this.searchToolStripMenuItem}); - this.menuStrip1.Location = new System.Drawing.Point(0, 0); - this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Size = new System.Drawing.Size(865, 24); - this.menuStrip1.TabIndex = 1; - this.menuStrip1.Text = "menuStrip1"; - // - // xMLToolStripMenuItem - // - this.xMLToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.miOpenXML, - this.miSaveXML, - this.miSaveAsXML, - this.miRefreshXML}); - this.xMLToolStripMenuItem.Name = "xMLToolStripMenuItem"; - this.xMLToolStripMenuItem.Size = new System.Drawing.Size(38, 20); - this.xMLToolStripMenuItem.Text = "XML"; - // - // miOpenXML - // - this.miOpenXML.Name = "miOpenXML"; - this.miOpenXML.Size = new System.Drawing.Size(152, 22); - this.miOpenXML.Tag = "0"; - this.miOpenXML.Text = "Open"; - this.miOpenXML.Click += new System.EventHandler(this.miOpen_Click); - // - // miSaveXML - // - this.miSaveXML.Name = "miSaveXML"; - this.miSaveXML.Size = new System.Drawing.Size(152, 22); - this.miSaveXML.Tag = "0"; - this.miSaveXML.Text = "Save"; - this.miSaveXML.Click += new System.EventHandler(this.miSave_Click); - // - // miSaveAsXML - // - this.miSaveAsXML.Name = "miSaveAsXML"; - this.miSaveAsXML.Size = new System.Drawing.Size(152, 22); - this.miSaveAsXML.Tag = "0"; - this.miSaveAsXML.Text = "Save As"; - this.miSaveAsXML.Click += new System.EventHandler(this.miSaveAs_Click); - // - // xSLToolStripMenuItem - // - this.xSLToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.miOpenXSL, - this.miSaveXSL, - this.miSaveAsXSL, - this.miRefreshXSL}); - this.xSLToolStripMenuItem.Name = "xSLToolStripMenuItem"; - this.xSLToolStripMenuItem.Size = new System.Drawing.Size(36, 20); - this.xSLToolStripMenuItem.Text = "XSL"; - // - // miOpenXSL - // - this.miOpenXSL.Name = "miOpenXSL"; - this.miOpenXSL.Size = new System.Drawing.Size(152, 22); - this.miOpenXSL.Tag = "1"; - this.miOpenXSL.Text = "Open"; - this.miOpenXSL.Click += new System.EventHandler(this.miOpen_Click); - // - // miSaveXSL - // - this.miSaveXSL.Name = "miSaveXSL"; - this.miSaveXSL.Size = new System.Drawing.Size(152, 22); - this.miSaveXSL.Tag = "1"; - this.miSaveXSL.Text = "Save"; - this.miSaveXSL.Click += new System.EventHandler(this.miSave_Click); - // - // miSaveAsXSL - // - this.miSaveAsXSL.Name = "miSaveAsXSL"; - this.miSaveAsXSL.Size = new System.Drawing.Size(152, 22); - this.miSaveAsXSL.Tag = "1"; - this.miSaveAsXSL.Text = "Save As"; - this.miSaveAsXSL.Click += new System.EventHandler(this.miSaveAs_Click); - // - // resultToolStripMenuItem - // - this.resultToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.miTransform, - this.miQuery, - this.miSaveAsResults}); - this.resultToolStripMenuItem.Name = "resultToolStripMenuItem"; - this.resultToolStripMenuItem.Size = new System.Drawing.Size(49, 20); - this.resultToolStripMenuItem.Text = "Result"; - // - // miTransform - // - this.miTransform.Name = "miTransform"; - this.miTransform.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T))); - this.miTransform.Size = new System.Drawing.Size(172, 22); - this.miTransform.Text = "Transform"; - this.miTransform.Click += new System.EventHandler(this.miTransform_Click); - // - // miQuery - // - this.miQuery.Name = "miQuery"; - this.miQuery.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q))); - this.miQuery.Size = new System.Drawing.Size(172, 22); - this.miQuery.Text = "Query"; - this.miQuery.Click += new System.EventHandler(this.miQuery_Click); - // - // miSaveAsResults - // - this.miSaveAsResults.Name = "miSaveAsResults"; - this.miSaveAsResults.Size = new System.Drawing.Size(172, 22); - this.miSaveAsResults.Tag = "2"; - this.miSaveAsResults.Text = "Save"; - this.miSaveAsResults.Click += new System.EventHandler(this.miSaveAs_Click); - // - // miQuit - // - this.miQuit.Name = "miQuit"; - this.miQuit.Size = new System.Drawing.Size(39, 20); - this.miQuit.Text = "&Quit"; - this.miQuit.Click += new System.EventHandler(this.miQuit_Click); - // - // searchToolStripMenuItem - // - this.searchToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.specialToolStripMenuItem}); - this.searchToolStripMenuItem.Name = "searchToolStripMenuItem"; - this.searchToolStripMenuItem.Size = new System.Drawing.Size(52, 20); - this.searchToolStripMenuItem.Text = "Search"; - // - // specialToolStripMenuItem - // - this.specialToolStripMenuItem.Name = "specialToolStripMenuItem"; - this.specialToolStripMenuItem.Size = new System.Drawing.Size(174, 22); - this.specialToolStripMenuItem.Text = "Special Characters"; - this.specialToolStripMenuItem.Click += new System.EventHandler(this.specialToolStripMenuItem_Click); - // - // ofdxml - // - this.ofdxml.FileOk += new System.ComponentModel.CancelEventHandler(this.OpenFileOk); - // - // sfdxml - // - this.sfdxml.FileOk += new System.ComponentModel.CancelEventHandler(this.SaveFileOk); - // - // ofdxsl - // - this.ofdxsl.FileOk += new System.ComponentModel.CancelEventHandler(this.OpenFileOk); - // - // sfdxsl - // - this.sfdxsl.FileOk += new System.ComponentModel.CancelEventHandler(this.SaveFileOk); - // - // sfdResults - // - this.sfdResults.FileOk += new System.ComponentModel.CancelEventHandler(this.SaveFileOk); - // - // ofdResults - // - this.ofdResults.FileOk += new System.ComponentModel.CancelEventHandler(this.OpenFileOk); - // - // statusStrip1 - // - this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.RowLbl, - this.ColLbl}); - this.statusStrip1.Location = new System.Drawing.Point(0, 513); - this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Size = new System.Drawing.Size(865, 22); - this.statusStrip1.TabIndex = 2; - this.statusStrip1.Text = "statusStrip1"; - // - // RowLbl - // - this.RowLbl.Name = "RowLbl"; - this.RowLbl.Size = new System.Drawing.Size(41, 17); - this.RowLbl.Text = "Row: 0"; - // - // ColLbl - // - this.ColLbl.Name = "ColLbl"; - this.ColLbl.Size = new System.Drawing.Size(55, 17); - this.ColLbl.Text = "Column: 0"; - // - // miRefreshXML - // - this.miRefreshXML.Name = "miRefreshXML"; - this.miRefreshXML.Size = new System.Drawing.Size(152, 22); - this.miRefreshXML.Tag = "0"; - this.miRefreshXML.Text = "Refresh"; - this.miRefreshXML.Click += new System.EventHandler(this.miRefresh_Click); - // - // miRefreshXSL - // - this.miRefreshXSL.Name = "miRefreshXSL"; - this.miRefreshXSL.Size = new System.Drawing.Size(152, 22); - this.miRefreshXSL.Tag = "1"; - this.miRefreshXSL.Text = "Refresh"; - this.miRefreshXSL.Click += new System.EventHandler(this.miRefresh_Click); - // - // frmMain - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(865, 535); - this.Controls.Add(this.splitContainer1); - this.Controls.Add(this.menuStrip1); - this.Controls.Add(this.statusStrip1); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "frmMain"; - this.Text = "XML Query and Transform Tool"; - tpSX.ResumeLayout(false); - tpSX.PerformLayout(); - tpRS.ResumeLayout(false); - tpSR.ResumeLayout(false); - tpSR.PerformLayout(); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - this.splitContainer1.ResumeLayout(false); - this.tcSource.ResumeLayout(false); - this.tpSS.ResumeLayout(false); - this.tpSS.PerformLayout(); - this.tcResults.ResumeLayout(false); - this.tpRX.ResumeLayout(false); - this.tpRR.ResumeLayout(false); - this.tpXslHelp.ResumeLayout(false); - this.tpXPathHelp.ResumeLayout(false); - this.menuStrip1.ResumeLayout(false); - this.menuStrip1.PerformLayout(); - this.statusStrip1.ResumeLayout(false); - this.statusStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.TabControl tcSource; - private System.Windows.Forms.TabPage tpSS; - private System.Windows.Forms.TabControl tcResults; - private System.Windows.Forms.TabPage tpRX; - private System.Windows.Forms.MenuStrip menuStrip1; - private System.Windows.Forms.ToolStripMenuItem xMLToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem miOpenXML; - private System.Windows.Forms.ToolStripMenuItem miSaveXML; - private System.Windows.Forms.ToolStripMenuItem miSaveAsXML; - private System.Windows.Forms.ToolStripMenuItem xSLToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem miOpenXSL; - private System.Windows.Forms.ToolStripMenuItem miSaveXSL; - private System.Windows.Forms.ToolStripMenuItem miSaveAsXSL; - private System.Windows.Forms.ToolStripMenuItem resultToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem miTransform; - private System.Windows.Forms.ToolStripMenuItem miQuery; - private System.Windows.Forms.ToolStripMenuItem miSaveAsResults; - private System.Windows.Forms.ToolStripMenuItem miQuit; - private System.Windows.Forms.OpenFileDialog ofdxml; - private System.Windows.Forms.SaveFileDialog sfdxml; - private System.Windows.Forms.OpenFileDialog ofdxsl; - private System.Windows.Forms.SaveFileDialog sfdxsl; - private System.Windows.Forms.SaveFileDialog sfdResults; - private System.Windows.Forms.TabPage tpRR; - private System.Windows.Forms.TextBox tbSX; - private System.Windows.Forms.TextBox tbSS; - private System.Windows.Forms.TextBox tbSR; - private System.Windows.Forms.WebBrowser wbRX; - private System.Windows.Forms.WebBrowser wbRS; - private System.Windows.Forms.WebBrowser wbRR; - private System.Windows.Forms.OpenFileDialog ofdResults; - private System.Windows.Forms.TabPage tpXslHelp; - private System.Windows.Forms.TabPage tpXPathHelp; - private System.Windows.Forms.WebBrowser wbXSLHelp; - private System.Windows.Forms.WebBrowser wbXPathHelp; - private System.Windows.Forms.StatusStrip statusStrip1; - private System.Windows.Forms.ToolStripStatusLabel RowLbl; - private System.Windows.Forms.ToolStripStatusLabel ColLbl; - private System.Windows.Forms.ToolStripMenuItem searchToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem specialToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem miRefreshXML; - private System.Windows.Forms.ToolStripMenuItem miRefreshXSL; - } -} - diff --git a/PROMS/fmtxml/XSL Transform/frmMain.cs b/PROMS/fmtxml/XSL Transform/frmMain.cs deleted file mode 100644 index bd979f8e..00000000 --- a/PROMS/fmtxml/XSL Transform/frmMain.cs +++ /dev/null @@ -1,289 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Text; -using System.Windows.Forms; -using System.Xml.Xsl; -using System.Xml; -using System.IO; -using System.Text.RegularExpressions; - -namespace XSL_Transform -{ - public partial class frmMain : Form - { - private bool[] _Dirty = new bool[] { false, false, false }; - private string[] _Name = new string[] { "XML", "XSL", "Results" }; - private SaveFileDialog[] _Sfd; - private OpenFileDialog[] _Ofd; - private TextBox[] _Tb; - private WebBrowser[] _Wb; - private Dictionary _OpenDict = new Dictionary(); - private Dictionary _SaveDict = new Dictionary(); - private Dictionary _TextBoxDict = new Dictionary(); - enum Tabs : int - { - XML=0,XSL=1,Results=2 - } - public frmMain() - { - InitializeComponent(); - _Sfd = new SaveFileDialog[] { sfdxml, sfdxsl, sfdResults }; - _Ofd = new OpenFileDialog[] { ofdxml, ofdxsl, ofdResults }; - _Tb = new TextBox[] { tbSX, tbSS, tbSR }; - _Wb = new WebBrowser[] { wbRX, wbRS, wbRR }; - foreach (Tabs tab in Enum.GetValues(typeof(Tabs))) - { - _SaveDict.Add(_Sfd[(int)tab], tab); - _OpenDict.Add(_Ofd[(int)tab], tab); - _TextBoxDict.Add(_Tb[(int)tab], tab); - } - } - void SaveFileOk(object sender, CancelEventArgs e) - { - SaveIt(_SaveDict[(SaveFileDialog)sender]); - } - private void SaveIt(Tabs tab) - { - _Ofd[(int)tab].FileName = _Sfd[(int)tab].FileName; - StreamWriter sw = File.CreateText(_Sfd[(int)tab].FileName); - sw.Write(_Tb[(int)tab].Text); - sw.Close(); - _Dirty[(int)tab] = false; - } - void OpenFileOk(object sender, CancelEventArgs e) - { - OpenIt(_OpenDict[(OpenFileDialog) sender]); - } - private void ShowTab(Tabs tabs) - { - if (tcResults.SelectedIndex == (int)tabs) - ShowActiveTab(); - else - tcResults.SelectedIndex = (int)tabs;// Activate the Approproate Browser - } - private void OpenIt(Tabs tab) - { - _Sfd[(int)tab].FileName = _Ofd[(int)tab].FileName; - LoadTB(_Tb[(int)tab],_Ofd[(int)tab].FileName); - _Dirty[(int)tab] = false; - tcSource.SelectedIndex = (int)tab;// Activate the Appropriate Tab - ShowTab(tab); - } - private bool SaveChanges(Tabs tab) - { - if (!_Dirty[(int)tab]) return true; - DialogResult dr = MessageBox.Show("Save changes to " + _Name[(int)tab] + " file?", "Save Changes", - MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); - if (dr == DialogResult.Cancel) return false; - if (dr == DialogResult.Yes) SaveIt(tab); - return true; - } - private void LoadTB(TextBox tb, string fileName) - { - FileInfo f = new FileInfo(fileName); - StreamReader sr = f.OpenText(); - tb.Text = sr.ReadToEnd(); - sr.Close(); - } - private void miQuit_Click(object sender, EventArgs e) - { - if (SaveChanges()) this.Close(); - } - private bool SaveChanges() - { - foreach (Tabs tab in Enum.GetValues(typeof(Tabs))) - if (!SaveChanges(tab)) return false; - return true; - } - private Tabs TabValue(ToolStripDropDownItem mi) - { - return (Tabs)int.Parse(mi.Tag.ToString()); - } - private void miOpen_Click(object sender, EventArgs e) - { - Tabs tab = TabValue((ToolStripDropDownItem)sender); - if (SaveChanges(tab)) - _Ofd[(int)tab].ShowDialog(); - } - private void miRefresh_Click(object sender, EventArgs e) - { - Tabs tab = TabValue((ToolStripDropDownItem)sender); - OpenIt(tab); - } - private void miSaveAs_Click(object sender, EventArgs e) - { - Tabs tab = TabValue((ToolStripDropDownItem)sender); - _Sfd[(int)tab].ShowDialog(); - } - private void miSave_Click(object sender, EventArgs e) - { - Tabs tab = TabValue((ToolStripDropDownItem)sender); - if (_Sfd[(int)tab].FileName == string.Empty) - _Sfd[(int)tab].ShowDialog(); - else - SaveIt(tab); - } - private string FormatException(Exception ex) - { - return string.Format("{0} - {1}", ex.GetType().Name, ex.Message); - } - private void ShowException(Exception ex) - { - ShowException(ex, null); - } - private void ShowException(Exception ex,string sResults) - { - if (sResults != null) - { - LoadTB(tbSR, sResults); - } - StringBuilder sb = new StringBuilder(FormatException(ex)); - sb.Append("\r\n"); - for (; ex.InnerException != null; ex = ex.InnerException) - { - sb.Append(FormatException(ex.InnerException)); - sb.Append("\r\n"); - } - tbSR.SelectionStart = 0; - tbSR.SelectedText=sb.ToString(); - } - private void miQuery_Click(object sender, EventArgs e) - { - try - { - XmlDocument xd = new XmlDocument(); - xd.LoadXml(tbSX.Text); - XmlNodeList nl = xd.SelectNodes(tbSS.Text); - if (nl.Count > 0) - { - StringBuilder sb= new StringBuilder(""); - foreach (XmlNode nd in nl) - sb.Append(string.Format("\r\n {1}",nd.GetType().Name,nd.OuterXml)); - sb.Append("\r\n"); - tbSR.Text = sb.ToString(); - } - else - tbSR.Text = "No nodes found matching criteria"; - } - catch (Exception ex) - { - ShowException(ex); - } - ShowTab(Tabs.Results); - } - private void miTransform_Click(object sender, EventArgs e) - { - string sXSL = Save(tbSS, "tmpS"); - string sXML = Save(tbSX, "tmpX"); - string sResults = Application.StartupPath + "\\" + "tmpR.XML"; - try - { - XslCompiledTransform xsl = new XslCompiledTransform(); - xsl.Load(sXSL); - xsl.Transform(sXML, sResults); // Perform Transform - LoadTB(tbSR, sResults); - } - catch (Exception ex) - { - ShowException(ex,sResults); - } - ShowTab(Tabs.Results); - } - private void ShowActiveTab() - { - Tabs tab = (Tabs)tcResults.SelectedIndex; - _Wb[(int)tab].Navigate(Save(_Tb[(int)tab], _Name[(int)tab])); - } - private void tcResults_SelectedIndexChanged(object sender, EventArgs e) - { - switch (tcResults.SelectedIndex) - { - case 3: - if (wbXSLHelp.Url == null) - wbXSLHelp.Navigate("http://www.w3schools.com/xsl/default.asp"); - break; - case 4: - if (wbXPathHelp.Url == null) - wbXPathHelp.Navigate("http://www.w3schools.com/xpath/"); - break; - default: - ShowActiveTab(); - break; - } - } - private string Extension(string txt) - { - if (txt.Substring(0, 5) == " sl = new SortedList(); - foreach (Match match in Regex.Matches(tbSX.Text,"&#x([0-9]*);")) - { - int num = int.Parse(match.Value.Substring(3).TrimEnd(";".ToCharArray())); - if(num != 9 && num != 10 && num != 13){ - if (sl.ContainsKey(num)) sl[num] = sl[num] + 1; - else sl[num] = 1; - } - } - // When all done show the results in a list. - tbSR.Text = "Special Characters"; - foreach (int key in sl.Keys) - { - tbSR.Text += string.Format("\r\n{0} Ctrl-{1} - {2}", key, Convert.ToChar('A' - 1 + key), sl[key]); - } - ShowTab(Tabs.Results); - } - } -} \ No newline at end of file diff --git a/PROMS/fmtxml/XSL Transform/frmMain.resx b/PROMS/fmtxml/XSL Transform/frmMain.resx deleted file mode 100644 index e5e18c7a..00000000 --- a/PROMS/fmtxml/XSL Transform/frmMain.resx +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - False - - - False - - - False - - - 17, 17 - - - 126, 17 - - - 256, 17 - - - 340, 17 - - - 470, 17 - - - 598, 17 - - - 700, 17 - - - 803, 17 - - - - - AAABAAIAICAQAAAAAADoAgAAJgAAABAQEAAAAAAAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/ - AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////// - //////////////////////////P////4/////D////wP///+A////gD///8AP4AAAA8AAAADAAAAAAAA - AAOAAAAP//8AP//+AP///gP///wP///8P///+P////P///////////////////////////////////// - //8oAAAAEAAAACAAAAABAAQAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAA - AACAAIAAgIAAAICAgADAwMAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAP// - AAD//wAA/P8AAP4/AAD+DwAAgAMAAAAAAACAAQAA/gcAAP4fAAD8fwAA/f8AAP//AAD//wAA//8AAA== - - - \ No newline at end of file diff --git a/PROMS/fmtxml/XmlToPdf.cs b/PROMS/fmtxml/XmlToPdf.cs deleted file mode 100644 index f7816650..00000000 --- a/PROMS/fmtxml/XmlToPdf.cs +++ /dev/null @@ -1,188 +0,0 @@ -using System; -using System.Xml; -using System.Drawing; -using System.Windows.Forms; -//using C1.C1Pdf; - -namespace fmtxml -{ - /// - /// Summary description for XmlToPdf. - /// - public class XmlToPdf - { - private float ConvertToPoints=72f; - private XmlDocument xmlDoc; - private string FileName; - private string FilePath; - //private C1.C1Pdf.C1PdfDocument _c1pdf; - - private string [] FontChoice = - {"Times New Roman", - "VESymb XXXXXX", - "VolianDraw XXXXXX", - "Prestige Elite Tall", - "Courier New", - "Arial", - "Letter Gothic", - "Times New Roman", - "Letter Gothic Tall", - "Letter Gothic Tall", - "Gothic Ultra", - "VolianScript" - }; - private float LeftMargin; //todo: define in page info - private float VerticalOffset; //todo: define in page info - private bool Portrait; //todo: define in page info - - public XmlToPdf(string path, string fname) - { - LeftMargin=0.5f * ConvertToPoints; // KBR: TODO - VerticalOffset=0.5f * ConvertToPoints; // KBR: TODO - Portrait = true; // KBR: TODO - FileName = fname; - FilePath = path; - xmlDoc = new XmlDocument(); - XmlTextReader reader = new XmlTextReader(FilePath+"\\"+FileName); - xmlDoc.Load(reader); - reader.Close(); - try - { - GeneratePDFForFile(); - } - catch (Exception e) - { - MessageBox.Show("Error processing: " + fname, e.Message); - } - } - - private void GeneratePDFForFile() - { - //_c1pdf = new C1.C1Pdf.C1PdfDocument(); - //string rootname = FileName.Substring(0,FileName.Length-4); - //// create a pdf file & for each macro (i.e. macro element in xml tree), - //// put it into the pdf file. - //XmlElement top = (XmlElement) xmlDoc.SelectSingleNode(rootname + "_GENMAC"); - //XmlNodeList xmlNds = top.SelectNodes("MACRO"); - //foreach (XmlNode nd in xmlNds) - //{ - // XmlNode name = nd.SelectSingleNode("NAME"); - // XmlElement elm = (XmlElement) name; - // XmlNode definition = nd.SelectSingleNode("DEFINITION"); - // MacroGeneratePDF(definition); - // _c1pdf.NewPage(); - //} - //string outname = "E:\\ve-proms.net\\genmac.xml\\testpdf\\" + rootname + ".pdf"; - //_c1pdf.Save(outname); - } - - private void MacroGeneratePDF(XmlNode definition) - { - XmlElement elm = (XmlElement) definition; - string def = elm.InnerText; - int lindx = 0; - int indx = def.IndexOf(";"); - while (indx>-1) - { - string command = def.Substring(lindx,indx-lindx).Trim(); - DoPDF(command); - lindx = indx+1; - indx = def.IndexOf(";",lindx); - } - - } - - private void DoPDF(string cmdline) - { - string cmd = cmdline.Substring(0,cmdline.IndexOf(" ")); - int stx, sty, ex, ey = 0; - float fstx, fsty, fex, fey = 0; - int lw=0; - string restOfIt=null; - string [] parts; - - Pen pn = null; - switch (cmd) - { - case "BOX": - restOfIt = cmdline.Substring(4,cmdline.Length-4); - parts = restOfIt.Split(" ".ToCharArray(),5); - fstx = (float) System.Convert.ToDouble(parts[0]); - fsty = (float) System.Convert.ToDouble(parts[1]); - fex = (float) System.Convert.ToDouble(parts[2]); - fey = (float) System.Convert.ToDouble(parts[3]); - float flw = (float) System.Convert.ToDouble(parts[4]); - pn = new Pen(Brushes.Black,flw); - //KBR: TODO - storing page stuff such as portland, vertical offset, tab, etc. - RectangleF rc = new RectangleF(LeftMargin+fstx,VerticalOffset+fsty,fex,fey); - //_c1pdf.DrawRectangle(pn,rc); - break; - case "LINE": // command is LINE startx, starty, endx, endy, lnwidth - restOfIt = cmdline.Substring(5,cmdline.Length-5); - parts = restOfIt.Split(" ".ToCharArray(),5); - fstx = (float) System.Convert.ToDouble(parts[0]); - fsty = (float) System.Convert.ToDouble(parts[1]); - fex = (float) System.Convert.ToDouble(parts[2]); - fey = (float) System.Convert.ToDouble(parts[3]); - float flw1 = (float) System.Convert.ToDouble(parts[4]); -//KBR: TODO - storing page stuff such as portland, vertical offset, tab, etc. -// startx = portland ? (vof + cy + adjy) : (cx + tab + adjx); -// starty = portland ? (tab - (cx + adjx)) : (cy + vof + adjy); - pn = new Pen(Brushes.Black,flw1); -//KBR: TODO - move ablsolute? -// if (MoveAbsolute) -// {tab = 0;vof = 0;} - //_c1pdf.DrawLine(pn, LeftMargin+fstx, VerticalOffset+fsty, LeftMargin+fstx+fex, VerticalOffset+fsty+fey); - break; - case "TEXT": - int quote = cmdline.IndexOf("\""); - string txt = cmdline.Substring(quote+1,cmdline.LastIndexOf("\"")-quote-1); - restOfIt = cmdline.Substring(5,quote-6); - parts = restOfIt.Split(" ".ToCharArray(),5); - fstx = (float) System.Convert.ToDouble(parts[0]); - fsty = (float) System.Convert.ToDouble(parts[1]); - int FontSize = System.Convert.ToInt32(parts[2]); - FontSize = FontSize/2; - int FontFamily = System.Convert.ToInt32(parts[3]); - int bui = System.Convert.ToInt32(parts[4]); //kbr todo: use bui - Font myfont = new Font(this.FontChoice[FontFamily],FontSize); - rc = new Rectangle(); - //rc.Size = _c1pdf.MeasureStringRtf(txt,myfont,500); // kbr todo: 500? - rc.X = LeftMargin+fstx; - rc.Y = VerticalOffset+fsty-FontSize; //-(rc.Size.Height/2); - //_c1pdf.DrawStringRtf(txt,myfont,Brushes.Black,rc); - break; - case "GDIADJ": - break; - case "ELLIPSE": - restOfIt = cmdline.Substring(8,cmdline.Length-8); - parts = restOfIt.Split(" ".ToCharArray(),5); - stx = System.Convert.ToInt32(parts[0]); - sty = System.Convert.ToInt32(parts[1]); - ex = System.Convert.ToInt32(parts[2]); - ey = System.Convert.ToInt32(parts[3]); - lw = System.Convert.ToInt32(parts[4]); - //_c1pdf.DrawEllipse(pn,LeftMargin+stx, VerticalOffset+sty, LeftMargin+ex, VerticalOffset+ey); - break; - case "BITMAP": - restOfIt = cmdline.Substring(8,cmdline.Length-7); - parts = restOfIt.Split(" ".ToCharArray(),3); - fstx = (float) System.Convert.ToDouble(parts[0]); - fsty = (float) System.Convert.ToDouble(parts[1]); - string fname = parts[2]; - Image img = Image.FromFile(fname); - rc = new RectangleF(); - rc.Height = img.Height; - rc.Width = img.Width; - rc.X = LeftMargin+fstx; - rc.Y = VerticalOffset+fsty-(rc.Size.Height/2); - //_c1pdf.DrawImage(img, rc, ContentAlignment.MiddleCenter, ImageSizeModeEnum.Scale); - break; - case "ABSOLUTE": - break; - default: - break; - } - } - } -} diff --git a/PROMS/fmtxml/app.config b/PROMS/fmtxml/app.config deleted file mode 100644 index a2264e36..00000000 --- a/PROMS/fmtxml/app.config +++ /dev/null @@ -1,21 +0,0 @@ - - - - -
- - - - - - c:\development\ - - - c:\16bit\ve-proms\format - - - C:\16bit\promsnt\genmac - - - - \ No newline at end of file diff --git a/PROMS/fmtxml/copywest.bat b/PROMS/fmtxml/copywest.bat deleted file mode 100644 index 5fa37aee..00000000 --- a/PROMS/fmtxml/copywest.bat +++ /dev/null @@ -1,3 +0,0 @@ -copy c:\development\proms\fmtxml\wst1all.xml c:\development\fmtall\ -copy c:\development\proms\fmtxml\wst2all.xml c:\development\fmtall\ -pause \ No newline at end of file diff --git a/PROMS/fmtxml/fmtxml.csproj b/PROMS/fmtxml/fmtxml.csproj deleted file mode 100644 index b762b8ed..00000000 --- a/PROMS/fmtxml/fmtxml.csproj +++ /dev/null @@ -1,138 +0,0 @@ - - - Debug - AnyCPU - {66A20362-1B7E-4F9D-BABA-86E29EA60994} - WinExe - false - fmtxml - fmtxml - "%24/PROMS/fmtxml", URDAAAAA - . - - - MSSCCI:Microsoft Visual SourceSafe - OnOutputUpdated - - - true - full - false - .\bin\Debug\ - DEBUG;TRACE - x86 - - - pdbonly - true - .\bin\Release\ - TRACE - - - - - - - - - - - - - - - - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - - - - PreserveNewest - - - - - - - PreserveNewest - - - - - - - - - - - - - - - - - - - - - - - Form - - - - - - - - - - - - - - - - - - - Form1.cs - Designer - - - - - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D} - CvtFont - - - - - - - - - - - \ No newline at end of file diff --git a/PROMS/fmtxml/fmtxml.sln b/PROMS/fmtxml/fmtxml.sln deleted file mode 100644 index 0970529d..00000000 --- a/PROMS/fmtxml/fmtxml.sln +++ /dev/null @@ -1,55 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "fmtxml", "fmtxml.csproj", "{66A20362-1B7E-4F9D-BABA-86E29EA60994}" - ProjectSection(WebsiteProperties) = preProject - Debug.AspNetCompiler.Debug = "True" - Release.AspNetCompiler.Debug = "False" - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CvtFont", "..\Volian.Utils.Library\CvtFont\CvtFont.csproj", "{652EB5F6-18DD-4F22-9C0B-62EB46613C4D}" - ProjectSection(WebsiteProperties) = preProject - Debug.AspNetCompiler.Debug = "True" - Release.AspNetCompiler.Debug = "False" - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XSL Transform", "XSL Transform\XSL Transform.csproj", "{74593BA8-2F88-4FF2-89A6-9FBD358231D7}" - ProjectSection(WebsiteProperties) = preProject - Debug.AspNetCompiler.Debug = "True" - Release.AspNetCompiler.Debug = "False" - EndProjectSection -EndProject -Global - GlobalSection(SourceCodeControl) = preSolution - SccNumberOfProjects = 2 - SccProjectUniqueName0 = ..\\Volian.Utils.Library\\CvtFont\\CvtFont.csproj - SccProjectName0 = \u0022$/PROMS/Volian.Utils.Library/CvtFont\u0022,\u0020TRDAAAAA - SccLocalPath0 = ..\\Volian.Utils.Library\\CvtFont - SccProvider0 = MSSCCI:Microsoft\u0020Visual\u0020SourceSafe - SccProjectUniqueName1 = fmtxml.csproj - SccProjectName1 = \u0022$/PROMS/fmtxml\u0022,\u0020URDAAAAA - SccLocalPath1 = . - SccProvider1 = MSSCCI:Microsoft\u0020Visual\u0020SourceSafe - EndGlobalSection - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {66A20362-1B7E-4F9D-BABA-86E29EA60994}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {66A20362-1B7E-4F9D-BABA-86E29EA60994}.Debug|Any CPU.Build.0 = Debug|Any CPU - {66A20362-1B7E-4F9D-BABA-86E29EA60994}.Release|Any CPU.ActiveCfg = Release|Any CPU - {66A20362-1B7E-4F9D-BABA-86E29EA60994}.Release|Any CPU.Build.0 = Release|Any CPU - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {652EB5F6-18DD-4F22-9C0B-62EB46613C4D}.Release|Any CPU.Build.0 = Release|Any CPU - {74593BA8-2F88-4FF2-89A6-9FBD358231D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {74593BA8-2F88-4FF2-89A6-9FBD358231D7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {74593BA8-2F88-4FF2-89A6-9FBD358231D7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {74593BA8-2F88-4FF2-89A6-9FBD358231D7}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/PROMS/fmtxml/fnpnmp.svg b/PROMS/fmtxml/fnpnmp.svg deleted file mode 100644 index e8a56701..00000000 Binary files a/PROMS/fmtxml/fnpnmp.svg and /dev/null differ diff --git a/PROMS/fmtxml/hlpfsg.svg b/PROMS/fmtxml/hlpfsg.svg deleted file mode 100644 index 41dc2f79..00000000 Binary files a/PROMS/fmtxml/hlpfsg.svg and /dev/null differ diff --git a/PROMS/fmtxml/metaAndSectTitle.TXT b/PROMS/fmtxml/metaAndSectTitle.TXT deleted file mode 100644 index 49d0fad4..00000000 --- a/PROMS/fmtxml/metaAndSectTitle.TXT +++ /dev/null @@ -1,215 +0,0 @@ ----------------------------------------- -Find 'usemeta' (false by default) - format flag on section -C:\Development\fmtall\BGEALNall.xml(12): -C:\Development\fmtall\BGEEOPall.xml(18): -C:\Development\fmtall\BGEOIall.xml(32): -C:\Development\fmtall\BGESTPall.xml(30): -C:\Development\fmtall\CAL1all.xml': -C:\Development\fmtall\CATall.xml': -C:\Development\fmtall\CATBOXall.xml(17): -C:\Development\fmtall\FNPall.xml(28): -C:\Development\fmtall\GPCAall.xml(17): -C:\Development\fmtall\MCGBOXall.xml(21): -C:\Development\fmtall\RGEBCK_00all.xml(10): -C:\Development\fmtall\WCN1all.xml(25): -C:\Development\fmtall\wst1all.xml(36): ----------------------------------------- -'showsectiontitles' (false by default) format flag on sectionlayout - -C:\Development\fmtall\BGEALNall.xml(32): -C:\Development\fmtall\BGEEOPall.xml(26): -C:\Development\fmtall\BGEOIall.xml(40): -C:\Development\fmtall\BGESTPall.xml(38): -C:\Development\fmtall\CAL1all.xml(39): -C:\Development\fmtall\CATall.xml(25): -C:\Development\fmtall\CATBOXall.xml(25): -C:\Development\fmtall\FNPall.xml(36): -C:\Development\fmtall\GPCAall.xml(25): -C:\Development\fmtall\IP3_08all.xml(19): (and other subformats) -C:\Development\fmtall\MCGall.xml(29): -C:\Development\fmtall\MCGBOXall.xml(29): -C:\Development\fmtall\NSPARPall.xml(62): -C:\Development\fmtall\NSPFCall.xml(29): -C:\Development\fmtall\NSPIFG2all.xml(27): -C:\Development\fmtall\NSPIFGall.xml(27): -C:\Development\fmtall\NSPPEall.xml(32): -C:\Development\fmtall\RGEBCK_00all.xml(16): -C:\Development\fmtall\TPall.xml(34): -C:\Development\fmtall\WCN1all.xml(39): -C:\Development\fmtall\WCN2all.xml(38): -C:\Development\fmtall\WEP2all.xml(35): -C:\Development\fmtall\WEPSAM2all.xml(25): -C:\Development\fmtall\WEPSAMGall.xml(25): -C:\Development\fmtall\WPSall.xml(31): -C:\Development\fmtall\WPSARPall.xml(59): -C:\Development\fmtall\WPSBCK_00all.xml(61): -C:\Development\fmtall\WPSDOMall.xml(40): -C:\Development\fmtall\WPSOPall.xml(56): -C:\Development\fmtall\wst1all.xml(44): -C:\Development\fmtall\wst2all.xml(28): -C:\Development\fmtall\wstalrall.xml(28): - - - ----------------------------------------- -Find 'cancelsection title (true by default) defined on docstyle -C:\Development\fmtall\AEPall.xml(371): -C:\Development\fmtall\AEPAPPRall.xml(227): -C:\Development\fmtall\AEPCHIDall.xml(385): -C:\Development\fmtall\AEPCHID_00all.xml(206): -C:\Development\fmtall\AEPDEVall.xml(234): -C:\Development\fmtall\AEP_00all.xml(206): and other subformats -C:\Development\fmtall\BASEall.xml(505): -C:\Development\fmtall\BGEALNall.xml(371): -C:\Development\fmtall\BGEEOPall.xml(519): -C:\Development\fmtall\BGEEOP_00all.xml(164): -C:\Development\fmtall\BGEOI_00all.xml(314): -C:\Development\fmtall\BGESTPall.xml(590): -C:\Development\fmtall\BGEVLall.xml(328): -C:\Development\fmtall\CAL1all.xml(473): -C:\Development\fmtall\CAL2all.xml(403): -C:\Development\fmtall\CAL2_00all.xml(266): -C:\Development\fmtall\CALBCKall.xml(287): -C:\Development\fmtall\CALOTOall.xml(392): -C:\Development\fmtall\CATADEVall.xml(211): -C:\Development\fmtall\CATall.xml(313): -C:\Development\fmtall\CATBOXall.xml(313): -C:\Development\fmtall\CATDEVall.xml(181): -C:\Development\fmtall\CATEBCKall.xml(237): -C:\Development\fmtall\CPBCK2all.xml(286): -C:\Development\fmtall\CPBCKall.xml(366): -C:\Development\fmtall\CPBCK_00all.xml(188): & other sub -C:\Development\fmtall\CPLAall.xml(258): -C:\Development\fmtall\CPLall.xml(340): -C:\Development\fmtall\CPLRDEVall.xml(173): -C:\Development\fmtall\CPLS2all.xml(333): -C:\Development\fmtall\CPLSall.xml(331): -C:\Development\fmtall\CPLSDEVall.xml(202): -C:\Development\fmtall\CPLSSDDall.xml(319): -C:\Development\fmtall\CPLSSUMall.xml(193): -C:\Development\fmtall\CPL_00all.xml(253): & other sub -C:\Development\fmtall\CWEall.xml(387): -C:\Development\fmtall\CWEDEVall.xml(161): -C:\Development\fmtall\CWERall.xml(371): -C:\Development\fmtall\CWER_00all.xml(199): & other sub -C:\Development\fmtall\EBCKall.xml(231): -C:\Development\fmtall\ELFDEVall.xml(221): -C:\Development\fmtall\ENall.xml(242): -C:\Development\fmtall\ESFDEVall.xml(211): -C:\Development\fmtall\EXCLNall.xml(390): -C:\Development\fmtall\EXCLN_00all.xml(206): & other sub -C:\Development\fmtall\EXEBCKall.xml(270): -C:\Development\fmtall\EXEBCK_00all.xml(163): -C:\Development\fmtall\EXEDEVall.xml(221): -C:\Development\fmtall\FNPall.xml(359): -C:\Development\fmtall\FNPCASall.xml(110): -C:\Development\fmtall\FNPDEVall.xml(303): -C:\Development\fmtall\FNPDEVall.xml(337): -C:\Development\fmtall\FNPEBKall.xml(244): -C:\Development\fmtall\FNP_00all.xml(152): & other sub -C:\Development\fmtall\FPLall.xml(328): -C:\Development\fmtall\FPLBCKall.xml(297): -C:\Development\fmtall\GENall.xml(377): -C:\Development\fmtall\GENDEVall.xml(161): -C:\Development\fmtall\GENPLANall.xml(175): -C:\Development\fmtall\GPCAall.xml(307): -C:\Development\fmtall\GPCall.xml(301): -C:\Development\fmtall\GPCA_00all.xml(179): -C:\Development\fmtall\HLPall.xml(537): -C:\Development\fmtall\HLPDEVall.xml(255): -C:\Development\fmtall\IP2all.xml(254): -C:\Development\fmtall\IP2BCKall.xml(290): -C:\Development\fmtall\IP2DEVall.xml(171): -C:\Development\fmtall\IP2_00all.xml(169): and sub -C:\Development\fmtall\IP3all.xml(192): -C:\Development\fmtall\IP3DEVall.xml(171): -C:\Development\fmtall\IP3DEV_00all.xml(235): -C:\Development\fmtall\IP3_00all.xml(264): & sub -C:\Development\fmtall\MAINGall.xml(154): -C:\Development\fmtall\MCGall.xml(346): -C:\Development\fmtall\MCGBOXall.xml(346): -C:\Development\fmtall\MCGDEVall.xml(181): -C:\Development\fmtall\MCGEBCKall.xml(234): -C:\Development\fmtall\NSPABall.xml(358): -C:\Development\fmtall\NSPAB_00all.xml(206): & sub -C:\Development\fmtall\NSPall.xml(318): -C:\Development\fmtall\NSPARPall.xml(394): -C:\Development\fmtall\NSPARP_00all.xml(271): -C:\Development\fmtall\NSPBCKall.xml(198): -C:\Development\fmtall\NSPDEVall.xml(178): -C:\Development\fmtall\NSPEDEVall.xml(229): -C:\Development\fmtall\NSPFCall.xml(262): -C:\Development\fmtall\NSPIFG2all.xml(289): -C:\Development\fmtall\NSPIFGall.xml(289): -C:\Development\fmtall\NSPIFG_00all.xml(188): -C:\Development\fmtall\NSPPEall.xml(265): -C:\Development\fmtall\NSPSAMall.xml(291): -C:\Development\fmtall\NSPWGall.xml(143): -C:\Development\fmtall\NSP_00all.xml(144): -C:\Development\fmtall\OHLPall.xml(313): -C:\Development\fmtall\OHLPall.xml(360): -C:\Development\fmtall\RGEall.xml(257): -C:\Development\fmtall\RGEBCKall.xml(253): -C:\Development\fmtall\RGEBCK_00all.xml(196): -C:\Development\fmtall\RGEDEVall.xml(177): -C:\Development\fmtall\RGESAM1all.xml(242): -C:\Development\fmtall\RGESAM2all.xml(211): -C:\Development\fmtall\RGESMPEall.xml(176): -C:\Development\fmtall\ROBall.xml(382): -C:\Development\fmtall\ROB_00all.xml(270): & other sub -C:\Development\fmtall\SETDEVall.xml(168): -C:\Development\fmtall\SHEall.xml(413): -C:\Development\fmtall\SHEDEVall.xml(208): -C:\Development\fmtall\SHERVSUall.xml(206): -C:\Development\fmtall\SHESSDall.xml(261): -C:\Development\fmtall\SHESSD_00all.xml(111): -C:\Development\fmtall\TPall.xml(445): -C:\Development\fmtall\TPBCK2all.xml(286): -C:\Development\fmtall\TPBCKall.xml(367): -C:\Development\fmtall\TPBCK_00all.xml(188): & sub -C:\Development\fmtall\TP_00all.xml(173): -C:\Development\fmtall\TUECABNall.xml(351): -C:\Development\fmtall\TUECall.xml(311): -C:\Development\fmtall\TUECDEVall.xml(179): -C:\Development\fmtall\VLNCASall.xml(120): -C:\Development\fmtall\WCN1all.xml(473): -C:\Development\fmtall\WCN1all.xml(504): -C:\Development\fmtall\WCN2all.xml(409): -C:\Development\fmtall\WCNBCKall.xml(309): -C:\Development\fmtall\WCNCKLall.xml(316): -C:\Development\fmtall\WCNCLBall.xml(230): -C:\Development\fmtall\WCNDEVall.xml(198): -C:\Development\fmtall\WCNOFBall.xml(301): -C:\Development\fmtall\WEP2all.xml(529): -C:\Development\fmtall\WEPBCKall.xml(432): -C:\Development\fmtall\WEPENBall.xml(369): -C:\Development\fmtall\WEPENB_00all.xml(181): & other -C:\Development\fmtall\WEPSAM2all.xml(518): -C:\Development\fmtall\WEPSAMGall.xml(375): -C:\Development\fmtall\WPBAall.xml(232): -C:\Development\fmtall\WPBall.xml(237): -C:\Development\fmtall\WPB_20all.xml(340): & sub -C:\Development\fmtall\WPSall.xml(392): -C:\Development\fmtall\WPSARPall.xml(365): -C:\Development\fmtall\WPSARP_00all.xml(244): -C:\Development\fmtall\WPSBCKall.xml(360): -C:\Development\fmtall\WPSBCK_00all.xml(268): -C:\Development\fmtall\WPSDEVall.xml(181): -C:\Development\fmtall\WPSDOMall.xml(321): -C:\Development\fmtall\WPSDOM_00all.xml(421): & sub -C:\Development\fmtall\WPSOPall.xml(450): & sub -C:\Development\fmtall\WPSSAMGall.xml(331): -C:\Development\fmtall\WPS_00all.xml(159): & sub -C:\Development\fmtall\wst1all.xml(604): -C:\Development\fmtall\wst2all.xml(511): -C:\Development\fmtall\wstalrall.xml(415): -C:\Development\fmtall\wstcklall.xml(322): -C:\Development\fmtall\backup\WCN2all.xml(407): - - -Find 'tietabtolevel' (looks like this just determines a different tabstyle, xoffset & width for tabs/text, - used for metasections, uses section number as part of tab) -C:\Development\fmtall\CAL1all.xml(39): -C:\Development\fmtall\RGEBCK_00all.xml(16): -C:\Development\fmtall\WCN1all.xml(39): -C:\Development\fmtall\wst1all.xml(44): \ No newline at end of file diff --git a/PROMS/fmtxml/removeFmtUseCO.xsl b/PROMS/fmtxml/removeFmtUseCO.xsl deleted file mode 100644 index 1a1fad0f..00000000 --- a/PROMS/fmtxml/removeFmtUseCO.xsl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/PROMS/fmtxml/removeempty.xsl b/PROMS/fmtxml/removeempty.xsl deleted file mode 100644 index bbdcb1e7..00000000 --- a/PROMS/fmtxml/removeempty.xsl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/PROMS/fmtxml/wst1.svg b/PROMS/fmtxml/wst1.svg deleted file mode 100644 index 6e31a676..00000000 Binary files a/PROMS/fmtxml/wst1.svg and /dev/null differ diff --git a/PROMS/fmtxml/wst2.svg b/PROMS/fmtxml/wst2.svg deleted file mode 100644 index 0d71fe03..00000000 Binary files a/PROMS/fmtxml/wst2.svg and /dev/null differ diff --git a/PROMS/fmtxml/wstDCS.svg b/PROMS/fmtxml/wstDCS.svg deleted file mode 100644 index bdf21ad7..00000000 Binary files a/PROMS/fmtxml/wstDCS.svg and /dev/null differ diff --git a/PROMS/fmtxml/wst_backup/WST2all.xml b/PROMS/fmtxml/wst_backup/WST2all.xml deleted file mode 100644 index 74b480bb..00000000 Binary files a/PROMS/fmtxml/wst_backup/WST2all.xml and /dev/null differ diff --git a/PROMS/fmtxml/wst_backup/wst2.svg b/PROMS/fmtxml/wst_backup/wst2.svg deleted file mode 100644 index 003f44b2..00000000 Binary files a/PROMS/fmtxml/wst_backup/wst2.svg and /dev/null differ diff --git a/PROMS/fmtxml/wstalr.svg b/PROMS/fmtxml/wstalr.svg deleted file mode 100644 index 6e8f93b0..00000000 Binary files a/PROMS/fmtxml/wstalr.svg and /dev/null differ diff --git a/PROMS/fmtxml/wstbck.svg b/PROMS/fmtxml/wstbck.svg deleted file mode 100644 index 4ce6da47..00000000 Binary files a/PROMS/fmtxml/wstbck.svg and /dev/null differ diff --git a/PROMS/fmtxml/wstckl.svg b/PROMS/fmtxml/wstckl.svg deleted file mode 100644 index a14bcf4a..00000000 Binary files a/PROMS/fmtxml/wstckl.svg and /dev/null differ