catawba & mcguire prelim

prelim release
This commit is contained in:
Kathy Ruffing 2013-11-15 16:43:39 +00:00
parent f646f59965
commit 760aa9d90e
3 changed files with 131 additions and 1 deletions

View File

@ -164,6 +164,14 @@ namespace fmtxml
case "TUECDEV.FMT":
AddTuecDevfmt(ref fmtdata);
break;
case "MCG.FMT":
case "MCGBOX.FMT":
AddMCGfmt(ref fmtdata);
break;
case "CAT.FMT":
case "CATBOX.FMT":
AddCATfmt(ref fmtdata);
break;
}
}
@ -1641,8 +1649,13 @@ namespace fmtxml
AddFNP_01Page(ref pgstyles);
break;
case "MCG.PAG":
case "MCGBOX.PAG":
AddMCGPage(ref pgstyles);
break;
case "CAT.PAG":
case "CATBOX.PAG":
AddCATPage(ref pgstyles);
break;
}
}
private void AddFNP_00Page(ref PageStyles pgstyles)

View File

@ -0,0 +1,86 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace fmtxml
{
public partial class FmtFileToXml
{
private void AddCATfmt(ref FormatData fmtdata) // Catawba
{
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 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)
{
}
}
public partial class RtfToSvg
{
private void AddCAT(XmlDocument myDoc)
{
}
}
}

View File

@ -9,6 +9,38 @@ namespace fmtxml
{
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
@ -46,7 +78,6 @@ namespace fmtxml
pgstyles.PgStyles[6].Items[6].Token = "{ROMANPAGE}";
pgstyles.PgStyles[6].Items[8].Token = "Rev. {REV}";
}
private void AddMCGDOC(ref DocStyles dcstyles)
{
}