Changed format - column widths
Changed format - add Caution, Note, Table, Substep, Attach to applicable ReplaceWords Changed format - size boxes Changed format - utilize new flag RNOWidthAdj Changed format - recognize upper and lower case alpha Changed format - created C2 macro to draw a diamond around step number
This commit is contained in:
parent
21301832e0
commit
4f9a67464b
94
PROMS/fmtxml/PlantSpecific_ByrBwd.cs
Normal file
94
PROMS/fmtxml/PlantSpecific_ByrBwd.cs
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using System.Xml;
|
||||||
|
|
||||||
|
namespace fmtxml
|
||||||
|
{
|
||||||
|
public partial class FmtFileToXml
|
||||||
|
{
|
||||||
|
private void AddCWEfmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "475.2,229.2,144";
|
||||||
|
fmtdata.SectData.ReplaceStrData[3].Flag = "RNO, Caution, Note, Table, Substep, Attach";
|
||||||
|
fmtdata.SectData.ReplaceStrData[4].Flag = "RNO, Caution, Note, Table, Substep, Attach";
|
||||||
|
fmtdata.StepData[9].TabData.Ident = " {!C2}{numeric} ";
|
||||||
|
fmtdata.StepData[9].TabData.RNOIdent = " {!C2}{numeric} ";
|
||||||
|
fmtdata.BoxData[2].TabPos = 265F;
|
||||||
|
fmtdata.BoxData[2].Start = 128F;
|
||||||
|
fmtdata.BoxData[2].End = 420F;
|
||||||
|
fmtdata.BoxData[2].TxtStart = 132F;
|
||||||
|
fmtdata.BoxData[2].TxtWidth = 276F;
|
||||||
|
fmtdata.BoxData[1].TabPos = 265F;
|
||||||
|
fmtdata.BoxData[1].Start = 128F;
|
||||||
|
fmtdata.BoxData[1].End = 420F;
|
||||||
|
fmtdata.BoxData[1].TxtStart = 132F;
|
||||||
|
fmtdata.BoxData[1].TxtWidth = 276F;
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAdj = "-13";
|
||||||
|
//fmtdata.StepData[7].
|
||||||
|
}
|
||||||
|
private void AddCWE00fmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "489,229.2,144";
|
||||||
|
fmtdata.StepData[2].TabData.Ident = "{ALPHA}. ";
|
||||||
|
fmtdata.StepData[1].TabData.Ident = "{alpha}) ";
|
||||||
|
}
|
||||||
|
private void AddEXCLNfmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "475.2,229.2,144";
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,236.4,135.6";
|
||||||
|
fmtdata.SectData.ReplaceStrData[3].Flag = "RNO, Caution, Note, Table, Substep, Attach";
|
||||||
|
fmtdata.SectData.ReplaceStrData[4].Flag = "RNO, Caution, Note, Table, Substep, Attach";
|
||||||
|
fmtdata.StepData[9].TabData.Ident = " {!C2}{numeric} ";
|
||||||
|
fmtdata.StepData[9].TabData.RNOIdent = " {!C2}{numeric} ";
|
||||||
|
fmtdata.StepData[1].TabData.Ident = "{alpha}) ";
|
||||||
|
fmtdata.BoxData[2].TabPos = 265F;
|
||||||
|
fmtdata.BoxData[2].Start = 128F;
|
||||||
|
fmtdata.BoxData[2].End = 420F;
|
||||||
|
fmtdata.BoxData[2].TxtStart = 132F;
|
||||||
|
fmtdata.BoxData[2].TxtWidth = 276F;
|
||||||
|
}
|
||||||
|
private void AddEXCLN00fmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "489,229.2,144";
|
||||||
|
fmtdata.StepData[2].TabData.Ident = "{ALPHA}. ";
|
||||||
|
fmtdata.StepData[1].TabData.Ident = "{alpha}) ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public partial class FmtToXml
|
||||||
|
{
|
||||||
|
private void AddCWEfmt(ref PageStyles pgstyles)
|
||||||
|
{
|
||||||
|
pgstyles.PgStyles[0].Items[5].Col = 270F;
|
||||||
|
}
|
||||||
|
private void AddCWEDoc(ref DocStyles dcstyles)
|
||||||
|
{
|
||||||
|
//dcstyles.DcStyles[0].con
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public partial class RtfToSvg
|
||||||
|
{
|
||||||
|
private void AddCWE(XmlDocument myDoc)
|
||||||
|
{
|
||||||
|
XmlDocument xdNew = new XmlDocument();
|
||||||
|
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C2\">" +
|
||||||
|
"<line x1=\"7\" y1=\"-16\" x2=\"-5\" y2=\"-4\" stroke=\"black\" stroke-width=\"0.85\" />" +
|
||||||
|
"<line x1=\"-5\" y1=\"-4\" x2=\"7\" y2=\"8\" stroke=\"black\" stroke-width=\"0.85\" />" +
|
||||||
|
"<line x1=\"7\" y1=\"8\" x2=\"19\" y2=\"-4\" stroke=\"black\" stroke-width=\"0.85\" />" +
|
||||||
|
"<line x1=\"19\" y1=\"-4\" x2=\"7\" y2=\"-16\" stroke=\"black\" stroke-width=\"0.85\" />" +
|
||||||
|
"</g></svg>");
|
||||||
|
myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true));
|
||||||
|
}
|
||||||
|
private void AddEXCLN(XmlDocument myDoc)
|
||||||
|
{
|
||||||
|
XmlDocument xdNew = new XmlDocument();
|
||||||
|
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C2\">" +
|
||||||
|
"<line x1=\"7\" y1=\"-16\" x2=\"-5\" y2=\"-4\" stroke=\"black\" stroke-width=\"0.85\" />" +
|
||||||
|
"<line x1=\"-5\" y1=\"-4\" x2=\"7\" y2=\"8\" stroke=\"black\" stroke-width=\"0.85\" />" +
|
||||||
|
"<line x1=\"7\" y1=\"8\" x2=\"19\" y2=\"-4\" stroke=\"black\" stroke-width=\"0.85\" />" +
|
||||||
|
"<line x1=\"19\" y1=\"-4\" x2=\"7\" y2=\"-16\" stroke=\"black\" stroke-width=\"0.85\" />" +
|
||||||
|
"</g></svg>");
|
||||||
|
myDoc.DocumentElement.AppendChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user