182 lines
8.2 KiB
C#
182 lines
8.2 KiB
C#
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.SectData.StepSectionData.SequentialTabFormat[4].TabFormat = "{seq})";
|
|
fmtdata.SectData.StepSectionData.SequentialTabFormat[4].PrintTabFormat = "{seq})";
|
|
fmtdata.TransData.UseSpecificTransitionModifier = "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";
|
|
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[9].TransFormat = @"{Proc Num} {IND}\ul {Proc Title}\ulnone ";
|
|
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";
|
|
|
|
}
|
|
}
|
|
public partial class FmtToXml
|
|
{
|
|
private void AddBGEEOPDOC(ref DocStyles dcstyles)
|
|
{
|
|
dcstyles.DcStyles[0].TopMargin = 96;
|
|
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;
|
|
|
|
// 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;
|
|
}
|
|
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[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<PSItem>(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<PSItem>(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<PSItem>(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";
|
|
}
|
|
}
|
|
}
|