Format fixes and added a step editor attachment section
This commit is contained in:
parent
ff6e3626c4
commit
f5cf55a022
@ -9,6 +9,20 @@ namespace fmtxml
|
|||||||
{
|
{
|
||||||
private void AddTuecfmt(ref FormatData fmtdata) // Comanche Peak
|
private void AddTuecfmt(ref FormatData fmtdata) // Comanche Peak
|
||||||
{
|
{
|
||||||
|
// SectionNumber
|
||||||
|
fmtdata.SectData.SectionNumber.Pos = 0;
|
||||||
|
fmtdata.SectData.SectionNumber.Just = "PSLeft";
|
||||||
|
fmtdata.SectData.SectionNumber.Font.FontFamily = "Prestige Elite Tall";
|
||||||
|
fmtdata.SectData.SectionNumber.Font.FontSize = "10";
|
||||||
|
fmtdata.SectData.SectionNumber.Font.FontStyle = "None";
|
||||||
|
fmtdata.SectData.SectionNumber.Font.CPI = "12";
|
||||||
|
// SectionHeader
|
||||||
|
fmtdata.SectData.SectionHeader.Pos = 20;
|
||||||
|
fmtdata.SectData.SectionHeader.Just = "PSLeft";
|
||||||
|
fmtdata.SectData.SectionHeader.Font.FontFamily = "Prestige Elite Tall";
|
||||||
|
fmtdata.SectData.SectionHeader.Font.FontSize = "10";
|
||||||
|
fmtdata.SectData.SectionHeader.Font.FontStyle = "Underline";
|
||||||
|
fmtdata.SectData.SectionHeader.Font.CPI = "12";
|
||||||
// StepSectionData
|
// StepSectionData
|
||||||
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "436,192,120";
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "436,192,120";
|
||||||
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "436,192,120";
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "436,192,120";
|
||||||
@ -27,10 +41,10 @@ namespace fmtxml
|
|||||||
fmtdata.StepData[21].ParentType = "Base";
|
fmtdata.StepData[21].ParentType = "Base";
|
||||||
// Paragraph
|
// Paragraph
|
||||||
fmtdata.StepData[24].StepEditData.TypeMenu.MenuItem = "Indented Paragraph";
|
fmtdata.StepData[24].StepEditData.TypeMenu.MenuItem = "Indented Paragraph";
|
||||||
fmtdata.StepData[24].TabData.IdentEdit = " ";
|
fmtdata.StepData[24].TabData.IdentEdit = "{!.+?}{!.+?}"; // {!.+?} gets replaced with a space in PROMS
|
||||||
fmtdata.StepData[24].TabData.Ident = " ";
|
fmtdata.StepData[24].TabData.Ident = "{!.+?}{!.+?}";
|
||||||
fmtdata.StepData[24].TabData.RNOIdent = " ";
|
fmtdata.StepData[24].TabData.RNOIdent = "{!.+?}{!.+?}";
|
||||||
fmtdata.StepData[24].TabData.RNOIdentEdit = " ";
|
fmtdata.StepData[24].TabData.RNOIdentEdit = "{!.+?}{!.+?}";
|
||||||
// High5
|
// High5
|
||||||
fmtdata.StepData[41].ColOverride = "20";
|
fmtdata.StepData[41].ColOverride = "20";
|
||||||
fmtdata.StepData[41].ColOverrideEdit = "20";
|
fmtdata.StepData[41].ColOverrideEdit = "20";
|
||||||
@ -68,29 +82,179 @@ namespace fmtxml
|
|||||||
pgstyles.PgStyles[3].Items[3].Token = "UNIT {UNITNUMBER}";
|
pgstyles.PgStyles[3].Items[3].Token = "UNIT {UNITNUMBER}";
|
||||||
//Cover Page with Small Stamp
|
//Cover Page with Small Stamp
|
||||||
pgstyles.PgStyles[4].Items[3].Token = "UNIT {UNITNUMBER}";
|
pgstyles.PgStyles[4].Items[3].Token = "UNIT {UNITNUMBER}";
|
||||||
|
|
||||||
|
// we need to add one new pgstyle
|
||||||
|
// expand the pgstyles.PgStyles array by one;
|
||||||
|
int numstyles = pgstyles.PgStyles.Length; // number of current PgStyles
|
||||||
|
numstyles += 1; // adding one more page styles
|
||||||
|
PageStyle[] pgs = new PageStyle[numstyles];
|
||||||
|
PageStyle ps;// new PageStyle();
|
||||||
|
// copy existing page lists
|
||||||
|
for (int i = 0; i < numstyles - 1; i++)
|
||||||
|
{
|
||||||
|
ps = new PageStyle();
|
||||||
|
ps = pgstyles.PgStyles[i];
|
||||||
|
pgs[i] = ps;
|
||||||
|
}
|
||||||
|
// Attachmet (Step Editor)
|
||||||
|
ps = new PageStyle();
|
||||||
|
ps.Name = "Attachmet (Step Editor)";
|
||||||
|
ps.Index = 5;
|
||||||
|
|
||||||
|
PSItem[] Fpsitms = null;
|
||||||
|
Fpsitms = new PSItem[10];
|
||||||
|
|
||||||
|
PSItem pi = new PSItem();
|
||||||
|
pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}";
|
||||||
|
pi.Row = 12;
|
||||||
|
pi.Col = -3;
|
||||||
|
pi.Justify = "PSCenter";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.FontStyle = "None";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
Fpsitms[0] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "{HEADER1}";
|
||||||
|
pi.Row = 24;
|
||||||
|
pi.Col = -18;
|
||||||
|
pi.Justify = "PSLeft";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.FontStyle = "None";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
Fpsitms[1] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "{EOPNUM}";
|
||||||
|
pi.Row = 48;
|
||||||
|
pi.Col = 447;
|
||||||
|
pi.Justify = "PSCenter";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
pi.Style.FontStyle = "None";
|
||||||
|
Fpsitms[2] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "UNIT {UNITNUMBER}";
|
||||||
|
pi.Row = 48;
|
||||||
|
pi.Col = 339;
|
||||||
|
pi.Justify = "PSCenter";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
pi.Style.FontStyle = "None";
|
||||||
|
Fpsitms[3] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "{PROCTITLE}";
|
||||||
|
pi.Row = 84;
|
||||||
|
pi.Col = 129;
|
||||||
|
pi.Justify = "PSCenter";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
pi.Style.FontStyle = "None";
|
||||||
|
Fpsitms[4] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "REVISION NO. {REV}";
|
||||||
|
pi.Row = 84;
|
||||||
|
pi.Col = 339;
|
||||||
|
pi.Justify = "PSCenter";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
pi.Style.FontStyle = "None";
|
||||||
|
Fpsitms[5] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "PAGE {PAGE} OF {OF}";
|
||||||
|
pi.Row = 84;
|
||||||
|
pi.Col = 447;
|
||||||
|
pi.Justify = "PSCenter";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
pi.Style.FontStyle = "Bold";
|
||||||
|
Fpsitms[6] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "{BOX1}";
|
||||||
|
pi.Row = 96;
|
||||||
|
pi.Col = -18;
|
||||||
|
pi.Justify = "PSLeft";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
pi.Style.FontStyle = "None";
|
||||||
|
Fpsitms[7] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "{SECTIONLEVELNUMBER}";
|
||||||
|
pi.Row = 120;
|
||||||
|
pi.Col = 244;
|
||||||
|
pi.Justify = "PSCenter";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
pi.Style.FontStyle = "Underline";
|
||||||
|
Fpsitms[8] = pi;
|
||||||
|
|
||||||
|
pi = new PSItem();
|
||||||
|
pi.Token = "PAGE {DOCCURPAGE} OF {DOCTOTPAGE}";
|
||||||
|
pi.Row = 130;
|
||||||
|
pi.Col = 244;
|
||||||
|
pi.Justify = "PSCenter";
|
||||||
|
pi.Style = new VE_Font();
|
||||||
|
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||||
|
pi.Style.FontSize = "10";
|
||||||
|
pi.Style.CPI = "12";
|
||||||
|
pi.Style.FontStyle = "None";
|
||||||
|
Fpsitms[9] = pi;
|
||||||
|
|
||||||
|
ps.Items = Fpsitms;
|
||||||
|
pgs[numstyles - 1] = ps;
|
||||||
|
|
||||||
|
pgstyles.PgStyles = pgs; // save new pagelist
|
||||||
|
|
||||||
}
|
}
|
||||||
private void AddTUCEDOC(ref DocStyles dcstyles)
|
private void AddTUCEDOC(ref DocStyles dcstyles)
|
||||||
{
|
{
|
||||||
// we need to add one new docsyles
|
// we need to add one new docsyles
|
||||||
// expand the dcstyles.DcStyle array by one;
|
// expand the dcstyles.DcStyle array by one;
|
||||||
int numstyles = dcstyles.DcStyles.Length; // number of current docstyles
|
int numstyles = dcstyles.DcStyles.Length; // number of current docstyles
|
||||||
numstyles += 1; // adding one more docstyles
|
numstyles += 2; // adding one more docstyles
|
||||||
DocStyle[] dcs = new DocStyle[numstyles];
|
DocStyle[] dcs = new DocStyle[numstyles];
|
||||||
for (int i = 0; i < numstyles-1; i++)
|
for (int i = 0; i < numstyles-2; i++)
|
||||||
{
|
{
|
||||||
DocStyle dc = new DocStyle();
|
DocStyle dc = new DocStyle();
|
||||||
dc = dcstyles.DcStyles[i];
|
dc = dcstyles.DcStyles[i];
|
||||||
dcs[i] = dc;
|
dcs[i] = dc;
|
||||||
if (i+1 == numstyles - 1)
|
if (i+1 == numstyles - 2)
|
||||||
{
|
{
|
||||||
dc = new DocStyle();
|
dc = new DocStyle();
|
||||||
dc = dcstyles.DcStyles[0]; // insert a new section by copying the first one
|
dc = dcstyles.DcStyles[0]; // insert a new section by copying the first one
|
||||||
dcs[i+1] = dc;
|
dcs[i+1] = dc;
|
||||||
|
dc = new DocStyle();
|
||||||
|
dc = dcstyles.DcStyles[0]; // insert a new section by copying the first one
|
||||||
|
dcs[i+2] = dc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dcstyles.DcStyles = dcs;
|
dcstyles.DcStyles = dcs;
|
||||||
//"Procedure Steps"
|
//"Procedure Steps"
|
||||||
dcstyles.DcStyles[0].oldtonew = 5;
|
dcstyles.DcStyles[0].oldtonew = 1;
|
||||||
dcstyles.DcStyles[0].CancelSectTitle = true;
|
dcstyles.DcStyles[0].CancelSectTitle = true;
|
||||||
// Cover Page
|
// Cover Page
|
||||||
dcstyles.DcStyles[1].PageLength = 620;
|
dcstyles.DcStyles[1].PageLength = 620;
|
||||||
@ -98,9 +262,10 @@ namespace fmtxml
|
|||||||
dcstyles.DcStyles[2].PageLength = 620;
|
dcstyles.DcStyles[2].PageLength = 620;
|
||||||
// Introduction & Appendix Pages
|
// Introduction & Appendix Pages
|
||||||
dcstyles.DcStyles[3].PageLength = 640;
|
dcstyles.DcStyles[3].PageLength = 640;
|
||||||
|
dcstyles.DcStyles[3].PageWidth = 564;
|
||||||
// Cover Page with Small Stamp
|
// Cover Page with Small Stamp
|
||||||
dcstyles.DcStyles[4].PageLength = 620;
|
dcstyles.DcStyles[4].PageLength = 620;
|
||||||
//Purpose and Entry - step editor
|
// Purpose and Entry - step editor
|
||||||
dcstyles.DcStyles[5].Name = "Purpose and Entry";
|
dcstyles.DcStyles[5].Name = "Purpose and Entry";
|
||||||
dcstyles.DcStyles[5].Index = 5;
|
dcstyles.DcStyles[5].Index = 5;
|
||||||
dcstyles.DcStyles[5].pagestyle = 3;
|
dcstyles.DcStyles[5].pagestyle = 3;
|
||||||
@ -111,6 +276,17 @@ namespace fmtxml
|
|||||||
dcstyles.DcStyles[5].LeftMargin = 78;
|
dcstyles.DcStyles[5].LeftMargin = 78;
|
||||||
dcstyles.DcStyles[5].EndFlag = 0;
|
dcstyles.DcStyles[5].EndFlag = 0;
|
||||||
dcstyles.DcStyles[5].EndString = null;
|
dcstyles.DcStyles[5].EndString = null;
|
||||||
|
// Attachment (Step Editor)
|
||||||
|
dcstyles.DcStyles[6].Name = "Attachment (Step Editor)";
|
||||||
|
dcstyles.DcStyles[6].Index = 6;
|
||||||
|
dcstyles.DcStyles[6].pagestyle = 5;
|
||||||
|
dcstyles.DcStyles[6].oldtonew = 4;
|
||||||
|
dcstyles.DcStyles[6].CancelSectTitle = true;
|
||||||
|
dcstyles.DcStyles[6].TopMargin = 150;
|
||||||
|
dcstyles.DcStyles[6].PageLength = 564;
|
||||||
|
dcstyles.DcStyles[6].LeftMargin = 60;
|
||||||
|
dcstyles.DcStyles[6].EndFlag = 0;
|
||||||
|
dcstyles.DcStyles[6].EndString = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public partial class RtfToSvg
|
public partial class RtfToSvg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user