Copied the “Attachment Step – No Header” section type from the Calvert OI format to the Alarm format for use in some Common Alarm procedures
This commit is contained in:
parent
c33fb0af53
commit
7a9bdf9dd7
@ -282,7 +282,7 @@ namespace fmtxml
|
||||
|
||||
// remove the INIT item in proc steps:
|
||||
int numstyles = pgstyles.PgStyles.Length; // number of current PgStyles
|
||||
PageStyle[] pgs = new PageStyle[numstyles];
|
||||
PageStyle[] pgs = new PageStyle[numstyles+1];
|
||||
PageStyle ps;
|
||||
// copy existing page lists except for the one with the INIT
|
||||
for (int i = 0; i < numstyles - 1; i++)
|
||||
@ -377,6 +377,112 @@ namespace fmtxml
|
||||
ps.Items = Fpsitms;
|
||||
pgs[4] = ps;
|
||||
|
||||
// now add the Attachment Step - No Header
|
||||
ps = new PageStyle();
|
||||
ps.Name = "Attachment Step - No Header";
|
||||
ps.Index = 5;
|
||||
|
||||
Fpsitms = new PSItem[8];
|
||||
|
||||
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 = "{EOPNUM}";
|
||||
pi.Row = 24;
|
||||
pi.Col = 438;
|
||||
pi.Justify = "PSLeft";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[1] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "{SECTIONLEVELNUMBER}";
|
||||
pi.Row = 36;
|
||||
pi.Col = 438;
|
||||
pi.Justify = "PSLeft";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[2] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "Rev. {REVUNIT}";
|
||||
pi.Row = 48;
|
||||
pi.Col = 438;
|
||||
pi.Justify = "PSLeft";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[3] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "{PROCTITLE}";
|
||||
pi.Row = 48;
|
||||
pi.Col = 255;
|
||||
pi.Justify = "PSCenter";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[4] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "Page {DOCCURPAGE} of {DOCTOTPAGE}";
|
||||
pi.Row = 60;
|
||||
pi.Col = 438;
|
||||
pi.Justify = "PSLeft";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[5] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "{BOX5}";
|
||||
pi.Row = 60;
|
||||
pi.Col = 6;
|
||||
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[6] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "{SECTIONLEVELTITLE}";
|
||||
pi.Row = 96;
|
||||
pi.Col = 255;
|
||||
pi.Justify = "PSCenter";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "14";
|
||||
pi.Style.FontStyle = "Underline, Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[7] = pi;
|
||||
|
||||
ps.Items = Fpsitms;
|
||||
pgs[5] = ps;
|
||||
|
||||
pgstyles.PgStyles = pgs; // save new pagelist
|
||||
}
|
||||
|
||||
@ -387,6 +493,36 @@ namespace fmtxml
|
||||
dcstyles.DcStyles[0].CBLoc = 4;
|
||||
dcstyles.DcStyles[0].CBMargin = 35;
|
||||
dcstyles.DcStyles[0].CBMarginR = 287;
|
||||
|
||||
//adding new "Attachment Step - No Header" docstyle
|
||||
Array.Resize<DocStyle>(ref dcstyles.DcStyles, dcstyles.DcStyles.Length + 1);
|
||||
|
||||
dcstyles.DcStyles[5].Name = "Attachment Step - No Header";
|
||||
dcstyles.DcStyles[5].Index = 5;
|
||||
dcstyles.DcStyles[5].numberingsequence = 4;
|
||||
dcstyles.DcStyles[5].IsStepSection = true;
|
||||
dcstyles.DcStyles[5].UseCheckOffs = false;
|
||||
dcstyles.DcStyles[5].UseColSByLevel = true;
|
||||
dcstyles.DcStyles[5].oldtonew = 1048576;
|
||||
dcstyles.DcStyles[5].CancelSectTitle = true;
|
||||
dcstyles.DcStyles[5].SpecialStepsFoldout = false;
|
||||
dcstyles.DcStyles[5].UndSpecialStepsFoldout = false;
|
||||
dcstyles.DcStyles[5].ExtraLineHeader = false;
|
||||
dcstyles.DcStyles[5].AlignHLSTabWithSect = false;
|
||||
dcstyles.DcStyles[5].pagestyle = 5;
|
||||
dcstyles.DcStyles[5].TopMargin = 120F;
|
||||
dcstyles.DcStyles[5].FooterLen = 0F;
|
||||
dcstyles.DcStyles[5].PageLength = 600;
|
||||
dcstyles.DcStyles[5].PageWidth = 576F;
|
||||
dcstyles.DcStyles[5].LeftMargin = 48F;
|
||||
dcstyles.DcStyles[5].dstyle = new VE_Font();
|
||||
dcstyles.DcStyles[5].dstyle.FontFamily = "Arial";
|
||||
dcstyles.DcStyles[5].dstyle.FontSize = "11";
|
||||
dcstyles.DcStyles[5].dstyle.FontStyle = "None";
|
||||
dcstyles.DcStyles[5].dstyle.CPI = "12";
|
||||
dcstyles.DcStyles[5].DocStructStyle = new VE_DocStyle();
|
||||
dcstyles.DcStyles[5].DocStructStyle.DocStyleUse = E_DocStyleUse.UseOnAllPages;
|
||||
dcstyles.DcStyles[5].DocStructStyle.DocStyle = "DontNumberInTOC";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user