NSPIFG support
NSPIFG2 missing genmac NSP IFG improvements
This commit is contained in:
@@ -2980,8 +2980,11 @@ namespace fmtxml
|
||||
AddNSPDEVDOC(ref dcstyles);
|
||||
break;
|
||||
case "NSPIFG.DOC":
|
||||
AddNSPIFGDOC(ref dcstyles);
|
||||
break;
|
||||
case "NSPIFG2.DOC":
|
||||
AddNSPIFGDOC(ref dcstyles);
|
||||
AddNSPIFG2DOC(ref dcstyles);
|
||||
break;
|
||||
case "NSPIFG.Y00":
|
||||
AddNSPARP_00DOC(ref dcstyles);
|
||||
@@ -3013,6 +3016,8 @@ namespace fmtxml
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void AddIP315DOC(ref DocStyles dcstyles)
|
||||
{
|
||||
dcstyles.DcStyles[0].ContBottom = "(STEP %0d CONTINUED ON NEXT PAGE)";
|
||||
@@ -3322,6 +3327,11 @@ namespace fmtxml
|
||||
dcstyles.DcStyles[3].dstyle.FontSize = "11";
|
||||
|
||||
}
|
||||
private void AddNSPIFG2DOC(ref DocStyles dcstyles)
|
||||
{
|
||||
dcstyles.DcStyles[0].ContTop = "";
|
||||
dcstyles.DcStyles[1].ContTop = "";
|
||||
}
|
||||
public void AddNSPARPDOC(ref DocStyles dcstyles)
|
||||
{
|
||||
//First Procedure Steps Page
|
||||
|
@@ -4810,7 +4810,9 @@ namespace fmtxml
|
||||
if (mbox.TabPos == sbox.TabPos) sbox.TabPos = NullInt;
|
||||
subFmt.BoxData[i].Font = FixInheritedFont(sbox.Font, mbox.Font); // Phase 3
|
||||
}
|
||||
|
||||
string subName = subFmt.Name;
|
||||
bool inheritShowSectionTitles = true;
|
||||
if (fmtName.Contains("NSPIFG.X00")) inheritShowSectionTitles = false;
|
||||
StepSectionLayout msctlay = mainFmt.SectData.StepSectionData.StpSectLayData;
|
||||
StepSectionLayout ssctlay = subFmt.SectData.StepSectionData.StpSectLayData;
|
||||
if (msctlay.TableCenterPos == ssctlay.TableCenterPos) subFmt.SectData.StepSectionData.StpSectLayData.TableCenterPos = null;
|
||||
@@ -5137,7 +5139,7 @@ namespace fmtxml
|
||||
if (msctlay.DoSTExtraAtTop != null && msctlay.DoSTExtraAtTop == ssctlay.DoSTExtraAtTop) subFmt.SectData.StepSectionData.StpSectLayData.DoSTExtraAtTop = "null";
|
||||
if (msctlay.KeepStepsOnPage != null && msctlay.KeepStepsOnPage == ssctlay.KeepStepsOnPage) subFmt.SectData.StepSectionData.StpSectLayData.KeepStepsOnPage = "null";
|
||||
if (msctlay.BreakOnSections != null && msctlay.BreakOnSections == ssctlay.BreakOnSections) subFmt.SectData.StepSectionData.StpSectLayData.BreakOnSections = "null";
|
||||
if (msctlay.ShowSectionTitles != null && msctlay.ShowSectionTitles == ssctlay.ShowSectionTitles) subFmt.SectData.StepSectionData.StpSectLayData.ShowSectionTitles = "null";
|
||||
if (inheritShowSectionTitles && msctlay.ShowSectionTitles != null && msctlay.ShowSectionTitles == ssctlay.ShowSectionTitles) subFmt.SectData.StepSectionData.StpSectLayData.ShowSectionTitles = "null";
|
||||
if (msctlay.EndForSingle != null && msctlay.EndForSingle == ssctlay.EndForSingle) subFmt.SectData.StepSectionData.StpSectLayData.EndForSingle = "null";
|
||||
if (msctlay.PaginateOnFirstSubstep3X != null && msctlay.PaginateOnFirstSubstep3X == ssctlay.PaginateOnFirstSubstep3X) subFmt.SectData.StepSectionData.StpSectLayData.PaginateOnFirstSubstep3X = "null";
|
||||
if (msctlay.PaginateOnLowerStepLevel != null && msctlay.PaginateOnLowerStepLevel == ssctlay.PaginateOnLowerStepLevel) subFmt.SectData.StepSectionData.StpSectLayData.PaginateOnLowerStepLevel = "null";
|
||||
|
@@ -583,6 +583,9 @@ namespace fmtxml
|
||||
myConvert.Save(tbResultPath.Text + @"genmacall\" + fi.Name.ToLower().Replace(".rtf", ".svg"));
|
||||
}
|
||||
}
|
||||
// The NSPIFG2 file did not exist. Copy over NSPIFG to it.
|
||||
FileInfo fix = new FileInfo(tbResultPath.Text + @"genmacall\nspifg.svg");
|
||||
fix.CopyTo(tbResultPath.Text + @"genmacall\nspifg2.svg");
|
||||
MessageBox.Show("DONE converting GenMac RTF files to drawing svg - Results are in " + tbResultPath.Text + @"genmacall");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user