using System; using System.Collections.Generic; using System.Text; using System.Xml; namespace fmtxml { public partial class FmtFileToXml { private void AddBGEEOPfmt(ref FormatData fmtdata) { 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.TransData.UseSpecificTransitionModifier = "true"; 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"; 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[10].TransFormat = @"{First Step}, \ul {Step Text}\ulnone {Page Num}"; } 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"; //Placekeeper settings fmtdata.SectData.AccSectionData.PlaceKeeperData.PKBottomNote = "NOTE: Continuously Applicable Steps are designated with a \"C\" in the Done column."; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKTopContinueMessage = "(continued)"; fmtdata.SectData.AccSectionData.PlaceKeeperData.Font = new VE_Font(); fmtdata.SectData.AccSectionData.PlaceKeeperData.Font.FontFamily = "Arial"; fmtdata.SectData.AccSectionData.PlaceKeeperData.Font.FontSize = "11"; fmtdata.SectData.AccSectionData.PlaceKeeperData.Font.FontStyle = "None"; fmtdata.SectData.AccSectionData.PlaceKeeperData.Font.CPI = "12"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns = new PKColumn[4]; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderText = "START"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColPos = 0; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColWidth = 100; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont = new VE_Font(); fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont.FontFamily = "Arial"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont.FontSize = "11"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont.FontStyle = "Bold"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont.CPI = "12"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderText = "FUNCTION"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColPos = 0; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColWidth = 500; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont = new VE_Font(); fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont.FontFamily = "Arial"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont.FontSize = "11"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont.FontStyle = "Bold"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont.CPI = "12"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderText = "DONE"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColPos = 0; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColWidth = 100; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont = new VE_Font(); fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont.FontFamily = "Arial"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont.FontSize = "11"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont.FontStyle = "Bold"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont.CPI = "12"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderText = "PAGE"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColPos = 0; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColWidth = 100; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont = new VE_Font(); fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont.FontFamily = "Arial"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont.FontSize = "11"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont.FontStyle = "Bold"; fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont.CPI = "12"; } } public partial class FmtToXml { private void AddBGEEOPDOC(ref DocStyles dcstyles) { dcstyles.DcStyles[0].TopMargin = 96; dcstyles.DcStyles[2].CBMargin = 0; dcstyles.DcStyles[2].PageWidth = 552; dcstyles.DcStyles[2].CenterLineX = 240; dcstyles.DcStyles[2].CenterLineYTop = 647; dcstyles.DcStyles[2].CenterLineYBottom = 24; } 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[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[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; pgstyles.PgStyles[9].Items[2].Col = 474; pgstyles.PgStyles[9].Items[3].Col = 474; pgstyles.PgStyles[10].Items[2].Col = 474; pgstyles.PgStyles[10].Items[3].Col = 474; pgstyles.PgStyles[13].Items[2].Col = 474; pgstyles.PgStyles[13].Items[3].Col = 474; pgstyles.PgStyles[13].Items[4].Col = 474; pgstyles.PgStyles[14].Items[2].Col = 474; pgstyles.PgStyles[14].Items[3].Col = 474; } } }