- 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
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
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]);
|
|
}
|
|
}
|
|
}
|