BGE: Hardcode ALN CPI for HIGH5 (for locating change bar)
BGE: Replace words for bolding [Bxxx] in ALN and EOP. ALN CPI for HIGH5 type
This commit is contained in:
parent
7cdeec91f8
commit
0ac3d3291f
@ -1648,7 +1648,7 @@ namespace fmtxml
|
|||||||
}
|
}
|
||||||
BuildDictionaryText();
|
BuildDictionaryText();
|
||||||
fmtName = alias;
|
fmtName = alias;
|
||||||
//if (fmtName.ToUpper() != "WCN1" && fmtName.ToUpper() != "BASE") return;
|
//if (fmtName.ToUpper() != "BGEALN" && fmtName.ToUpper() != "BASE") return;
|
||||||
//if (fmtName.ToUpper() != "OHLP" && fmtName.ToUpper() != "BASE" && fmtName.ToUpper() != "WCN2") return;
|
//if (fmtName.ToUpper() != "OHLP" && fmtName.ToUpper() != "BASE" && fmtName.ToUpper() != "WCN2") return;
|
||||||
//if (fmtName.ToUpper() != "WCNCKL" && fmtName.ToUpper() != "BASE") return;
|
//if (fmtName.ToUpper() != "WCNCKL" && fmtName.ToUpper() != "BASE") return;
|
||||||
//if (fmtName.ToUpper() != "NSPARP" && fmtName.ToUpper() != "BASE") return;
|
//if (fmtName.ToUpper() != "NSPARP" && fmtName.ToUpper() != "BASE") return;
|
||||||
@ -5586,7 +5586,9 @@ namespace fmtxml
|
|||||||
step.Font.FontStyle = null;
|
step.Font.FontStyle = null;
|
||||||
if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontSize), step, dicParents))
|
if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontSize), step, dicParents))
|
||||||
step.Font.FontSize = null;
|
step.Font.FontSize = null;
|
||||||
if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontCPI), step, dicParents))
|
bool skipCPIForCalvertAlarmTypeHigh5 = false;
|
||||||
|
if (step.Type.ToUpper() == "HIGH5" && fmtName.ToUpper() == "BGEALN") skipCPIForCalvertAlarmTypeHigh5 = true;
|
||||||
|
if (!skipCPIForCalvertAlarmTypeHigh5 && step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontCPI), step, dicParents))
|
||||||
step.Font.CPI = null;
|
step.Font.CPI = null;
|
||||||
if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontJustify), step, dicParents))
|
if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontJustify), step, dicParents))
|
||||||
step.Font.FontJustify = null;
|
step.Font.FontJustify = null;
|
||||||
|
@ -41,10 +41,14 @@ namespace fmtxml
|
|||||||
fmtdata.StepData[20].OneLineBeforeTab = "True";
|
fmtdata.StepData[20].OneLineBeforeTab = "True";
|
||||||
fmtdata.StepData[20].SpaceIn = "True";
|
fmtdata.StepData[20].SpaceIn = "True";
|
||||||
fmtdata.StepData[20].StepLayoutData.EveryNLines = "1";
|
fmtdata.StepData[20].StepLayoutData.EveryNLines = "1";
|
||||||
|
fmtdata.StepData[0].Font.CPI = "12";
|
||||||
fmtdata.BoxData[1].TxtStart = 356;
|
fmtdata.BoxData[1].TxtStart = 356;
|
||||||
fmtdata.BoxData[1].TxtWidth = 130;
|
fmtdata.BoxData[1].TxtWidth = 130;
|
||||||
fmtdata.BoxData[1].BXMLS = null;
|
fmtdata.BoxData[1].BXMLS = null;
|
||||||
fmtdata.BoxData[1].BXMRS = null;
|
fmtdata.BoxData[1].BXMRS = null;
|
||||||
|
|
||||||
|
fmtdata.SectData.ReplaceStrData[10].ReplaceWord = @"(\[B\w*\])";
|
||||||
|
fmtdata.SectData.ReplaceStrData[10].ReplaceWith = @"\b $1\b0 ";
|
||||||
}
|
}
|
||||||
private void AddBGEEOPfmt(ref FormatData fmtdata)
|
private void AddBGEEOPfmt(ref FormatData fmtdata)
|
||||||
{
|
{
|
||||||
@ -106,6 +110,9 @@ namespace fmtxml
|
|||||||
fmtdata.TransData.TransTypeData[6].TransFormat = @"{Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}{Page Num}";
|
fmtdata.TransData.TransTypeData[6].TransFormat = @"{Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}{Page Num}";
|
||||||
fmtdata.TransData.TransTypeData[9].TransFormat = @"{Proc Num} {IND}\ul {Proc Title}\ulnone ";
|
fmtdata.TransData.TransTypeData[9].TransFormat = @"{Proc Num} {IND}\ul {Proc Title}\ulnone ";
|
||||||
fmtdata.TransData.TransTypeData[10].TransFormat = @"{First Step}, \ul {Step Text}\ulnone {Page Num}";
|
fmtdata.TransData.TransTypeData[10].TransFormat = @"{First Step}, \ul {Step Text}\ulnone {Page Num}";
|
||||||
|
|
||||||
|
fmtdata.SectData.ReplaceStrData[27].ReplaceWord = @"(\[B\w*\])";
|
||||||
|
fmtdata.SectData.ReplaceStrData[27].ReplaceWith = @"\b $1\b0 ";
|
||||||
}
|
}
|
||||||
private void AddBGEEOPOverridefmt(ref FormatData fmtdata)
|
private void AddBGEEOPOverridefmt(ref FormatData fmtdata)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user