remove replace words from NSPAB background format

fixed typo in a section transition type
This commit is contained in:
John Jenko 2013-08-30 20:31:29 +00:00
parent d1e86aeb60
commit f3ec948839
2 changed files with 14 additions and 2 deletions

View File

@ -16,6 +16,9 @@ namespace fmtxml
case "SUM.FMT": case "SUM.FMT":
AddSUMOverridefmt(ref fmtdata); AddSUMOverridefmt(ref fmtdata);
break; break;
case "NSPAB.X01":
AddNSPAB_X01(ref fmtdata);
break;
} }
} }
@ -841,6 +844,14 @@ namespace fmtxml
fmtdata.StepData[32].OneLineBeforeTab = "True"; fmtdata.StepData[32].OneLineBeforeTab = "True";
} }
private void AddNSPAB_X01(ref FormatData fmtdata)
{
ReplaceStr[] repstr = new ReplaceStr[1];
fmtdata.SectData.ReplaceStrData = repstr;
fmtdata.SectData.ReplaceStrData[0].Flag = "volian";
fmtdata.SectData.ReplaceStrData[0].ReplaceWith = "volian";
fmtdata.SectData.ReplaceStrData[0].ReplaceWord = "volian";
}
private void AddNSPARPfmt(ref FormatData fmtdata) private void AddNSPARPfmt(ref FormatData fmtdata)
{ {
NSP_ArialFontInProcedures(ref fmtdata); NSP_ArialFontInProcedures(ref fmtdata);

View File

@ -1535,7 +1535,7 @@ namespace fmtxml
#region SectionTransitionVariables #region SectionTransitionVariables
private string DefaultSectionTransStrTypeB = "{Sect Num}, {Sect Title}, {First Step}"; private string DefaultSectionTransStrTypeB = "{Sect Num}, {Sect Title}, {First Step}";
private string DefaultSectionTransStrTypeBNone = "{Sect Hdr}, Step {SectNum}{First Step}"; //original private string DefaultSectionTransStrTypeBNone = "{Sect Hdr}, Step {Sect Num}{First Step}"; //original
private string[] DefaultSectionTransFormatStr = private string[] DefaultSectionTransFormatStr =
{ {
"{Proc Num}, {Proc Title}, Step {Sect Num}{First Step}", "{Proc Num}, {Proc Title}, Step {Sect Num}{First Step}",
@ -1543,7 +1543,7 @@ namespace fmtxml
"{Sect Num}{First Step}, {.}, {.}, {.} and {Sect Num}{Last Step}", "{Sect Num}{First Step}, {.}, {.}, {.} and {Sect Num}{Last Step}",
"{Sect Num}{First Step} thru {Sect Num}{Last Step}", "{Sect Num}{First Step} thru {Sect Num}{Last Step}",
"{Sect Num}, Step {?.Sect Num}{First Step}", "{Sect Num}, Step {?.Sect Num}{First Step}",
"{Sect Hdr}, Step {SectNum}{First Step}" "{Sect Hdr}, Step {Sect Num}{First Step}"
}; };
// made up the following strings so that the token processing for setting // made up the following strings so that the token processing for setting
// up the menu enums would work as expected. These are only used in this migration // up the menu enums would work as expected. These are only used in this migration
@ -4376,6 +4376,7 @@ namespace fmtxml
{ {
PushStepLists(subdata.StepData); PushStepLists(subdata.StepData);
DoStepInheritance(ref subdata.StepData,fname); DoStepInheritance(ref subdata.StepData,fname);
AddPlantSpecificOverrideInheritance(fmtName, ref fmtdata);
PopStepLists(); PopStepLists();
} }
// Now do entire format inheritance - then write out. // Now do entire format inheritance - then write out.