- Added calls for Point Beach format improvements
- Added support for Point Beach and format flag DiffContActBox for their asterisked boxes Added support for Point Beach’s format flag DiffContActBox for their asterisked boxes
This commit is contained in:
parent
6297e729b0
commit
6af7bd7463
@ -220,6 +220,9 @@ namespace fmtxml
|
|||||||
case "EXEDEV.FMT":
|
case "EXEDEV.FMT":
|
||||||
AddEXEDEVfmt(ref fmtdata);
|
AddEXEDEVfmt(ref fmtdata);
|
||||||
break;
|
break;
|
||||||
|
case "WEP2.FMT":
|
||||||
|
AddWEP2fmt(ref fmtdata);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1305,6 +1308,9 @@ namespace fmtxml
|
|||||||
case "EXEDEV.DOC":
|
case "EXEDEV.DOC":
|
||||||
AddEXEDEVDoc(ref dcstyles);
|
AddEXEDEVDoc(ref dcstyles);
|
||||||
break;
|
break;
|
||||||
|
case "WEP2.DOC":
|
||||||
|
AddWEP2DOC(ref dcstyles);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void AddWCNBCKDoc(ref DocStyles dcstyles)
|
private void AddWCNBCKDoc(ref DocStyles dcstyles)
|
||||||
@ -1525,6 +1531,9 @@ namespace fmtxml
|
|||||||
case "SUM":
|
case "SUM":
|
||||||
AddSUM(myDoc);
|
AddSUM(myDoc);
|
||||||
break;
|
break;
|
||||||
|
case "WEP2":
|
||||||
|
AddWEP2(myDoc);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -815,6 +815,7 @@ public struct SeqTabFmt
|
|||||||
public struct StepSectionPrint
|
public struct StepSectionPrint
|
||||||
{
|
{
|
||||||
public float ImmStepHdrCol;
|
public float ImmStepHdrCol;
|
||||||
|
public string DiffContActBox; // introduced to flag different processing for wep2 asterisk (continuous) boxes.
|
||||||
public Int16 SecColHdrforActPMode;
|
public Int16 SecColHdrforActPMode;
|
||||||
public string RNOSepString;
|
public string RNOSepString;
|
||||||
public float RNOSepLineLength;
|
public float RNOSepLineLength;
|
||||||
@ -4453,6 +4454,9 @@ namespace fmtxml
|
|||||||
case "CATBOX.FMT":
|
case "CATBOX.FMT":
|
||||||
AddCATfmtOVR(ref fmtdata);
|
AddCATfmtOVR(ref fmtdata);
|
||||||
break;
|
break;
|
||||||
|
case "WEP2.FMT":
|
||||||
|
AddWEP2Overridefmt(ref fmtdata);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
45
PROMS/fmtxml/PlantSpecific_PointBeach.cs
Normal file
45
PROMS/fmtxml/PlantSpecific_PointBeach.cs
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using System.Xml;
|
||||||
|
|
||||||
|
namespace fmtxml
|
||||||
|
{
|
||||||
|
public partial class FmtFileToXml
|
||||||
|
{
|
||||||
|
private void AddWEP2fmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectPrtData.DiffContActBox = "True";
|
||||||
|
fmtdata.StepData[2].TabData.Ident = "{Section Prefix}{numeric} ";
|
||||||
|
fmtdata.StepData[3].TabData.Ident = "{!C0}{numeric} ";
|
||||||
|
}
|
||||||
|
private void AddWEP2Overridefmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.BoxData[3].Font.FontFamily = "Prestige Elite Tall";
|
||||||
|
fmtdata.BoxData[4].End = 504;
|
||||||
|
fmtdata.BoxData[4].Font.FontFamily = "Prestige Elite Tall";
|
||||||
|
fmtdata.BoxData[5].End = 504;
|
||||||
|
fmtdata.BoxData[5].Font.FontFamily = "Prestige Elite Tall";
|
||||||
|
fmtdata.BoxData[8].Font.FontFamily = "Prestige Elite Tall";
|
||||||
|
fmtdata.BoxData[9].Font.FontFamily = "Prestige Elite Tall";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public partial class FmtToXml
|
||||||
|
{
|
||||||
|
private void AddWEP2DOC(ref DocStyles dcstyles)
|
||||||
|
{
|
||||||
|
dcstyles.DcStyles[1].PageLength = 654;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public partial class RtfToSvg
|
||||||
|
{
|
||||||
|
private void AddWEP2(XmlDocument myDoc)
|
||||||
|
{
|
||||||
|
XmlDocument xdNew = new XmlDocument();
|
||||||
|
xdNew.LoadXml("<svg xmlns=\"http://www.w3.org/2000/svg\"> <g id=\"C0\">" +
|
||||||
|
"<ellipse cx=\"18\" cy=\"-3.2\" rx=\"11.1\" ry=\"11.1\" fill=\"none\" stroke=\"black\" stroke-width=\"1.9\" />" +
|
||||||
|
"</g></svg>");
|
||||||
|
myDoc.DocumentElement.ReplaceChild(myDoc.ImportNode(xdNew.DocumentElement.ChildNodes[0], true), myDoc.DocumentElement.ChildNodes[6]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user