SourceCode/PROMS/fmtxml/PlantSpecific_McGuire.cs
John 7f396c2285 Format changes for Callaway Backgrounds and Ginna Backgrounds
Added ChildIndent for use with Callaway Backgounds
Fixed line spacing and positioning
2013-12-06 19:50:43 +00:00

120 lines
4.0 KiB
C#

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;
fmtdata.SectData.StepSectionData.StpSectLayData.ColT = 33;
// Base
fmtdata.StepData[0].StepLayoutData.STExtraSpace = "0";
// High
fmtdata.StepData[2].StepLayoutData.STExtraSpace = "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 = "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";
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";
}
}
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)
{
}
}
}