132 lines
5.1 KiB
C#
132 lines
5.1 KiB
C#
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
|
|
{
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "443,193,114";
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "443,193,114";
|
|
fmtdata.BoxData[1].End = 457; // caution box
|
|
fmtdata.ROData.UpRoIfPrevUpper = "true";
|
|
}
|
|
private void AddCPL_X00(ref FormatData fmtdata) // Robinson
|
|
{
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "400,195,114";
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "400,195,114";
|
|
}
|
|
private void AddCPL_X01(ref FormatData fmtdata) // Robinson
|
|
{
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "400,195,114";
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "400,195,114";
|
|
}
|
|
private void AddCPL_X02(ref FormatData fmtdata) // Robinson
|
|
{
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "400,195,114";
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "400,195,114";
|
|
}
|
|
private void AddCPL_X03(ref FormatData fmtdata) // Robinson Duplex Foldouts
|
|
{
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "460,138,114";
|
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "460,138,114";
|
|
}
|
|
private void AddCPLRDev(ref FormatData fmtdata) // Robinson
|
|
{
|
|
fmtdata.ProcData.TitleLength = 49;
|
|
}
|
|
|
|
//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 AddCPLRDevPage(ref PageStyles pgstyles)
|
|
{
|
|
pgstyles.PgStyles[0].Items[4].Col = 224;
|
|
pgstyles.PgStyles[1].Items[4].Col = 224;
|
|
}
|
|
private void AddCPLRPage(ref PageStyles pgstyles)
|
|
{
|
|
//"Cover Page-Progress 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 AddCPLDOC(ref DocStyles dcstyles)
|
|
{
|
|
dcstyles.DcStyles[0].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[1].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[2].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[7].TopMargin = 91;
|
|
dcstyles.DcStyles[7].PageWidth = 593;
|
|
}
|
|
private void AddCPL_Y00(ref DocStyles dcstyles)
|
|
{
|
|
dcstyles.DcStyles[0].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[1].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[2].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[6].TopMargin = 91;
|
|
dcstyles.DcStyles[6].PageWidth = 593;
|
|
}
|
|
private void AddCPL_Y01(ref DocStyles dcstyles)
|
|
{
|
|
dcstyles.DcStyles[0].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[1].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[2].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[6].TopMargin = 91;
|
|
dcstyles.DcStyles[6].PageWidth = 593;
|
|
}
|
|
private void AddCPL_Y02(ref DocStyles dcstyles)
|
|
{
|
|
dcstyles.DcStyles[0].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[1].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[2].ContTop = "%d. (CONTINUED)";
|
|
dcstyles.DcStyles[6].TopMargin = 91;
|
|
dcstyles.DcStyles[6].PageWidth = 593;
|
|
}
|
|
}
|
|
public partial class RtfToSvg
|
|
{
|
|
private void AddCPL(XmlDocument myDoc)
|
|
{
|
|
XmlDocument xdNew = new XmlDocument();
|
|
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C2\">" +
|
|
"<line x1=\"21.3\" y1=\"1.35\" x2=\"51.1\" y2=\"1.35\" stroke=\"black\" stroke-width=\"0.5\" />" +
|
|
"</g></svg>");
|
|
|
|
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[7]);
|
|
|
|
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C3\">" +
|
|
"<line x1=\"1.95\" y1=\"1.35\" x2=\"31.8\" y2=\"1.35\" stroke=\"black\" stroke-width=\"0.5\" />" +
|
|
"<line x1=\"38.7\" y1=\"1.35\" x2=\"68.7\" y2=\"1.35\" stroke=\"black\" stroke-width=\"0.5\" />" +
|
|
"</g></svg>");
|
|
|
|
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[8]);
|
|
|
|
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C4\">" +
|
|
"<line x1=\"1.95\" y1=\"1.35\" x2=\"31.8\" y2=\"1.35\" stroke=\"black\" stroke-width=\"0.5\" />" +
|
|
"<line x1=\"38.7\" y1=\"1.35\" x2=\"68.7\" y2=\"1.35\" stroke=\"black\" stroke-width=\"0.5\" />" +
|
|
"<text x=\"44.7\" y=\"0\" font-family=\"Prestige Elite Tall\" font-size=\"10\" text-decoration=\"none\">N/A</text>" +
|
|
"</g></svg>");
|
|
|
|
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[9]);
|
|
|
|
}
|
|
}
|
|
}
|