NSPIFG support
NSPIFG2 missing genmac NSP IFG improvements
This commit is contained in:
@@ -369,6 +369,7 @@ namespace Volian.Print.Library
|
||||
OnStatusChanged(myProcedure.DisplayNumber, PromsPrinterStatusType.ProgressSetup, myProcedure.Sections.Count);
|
||||
int progress = 0;
|
||||
int finalMessageSectionID = GetFinalMessageSectionID(myProcedure, doingFoldout);
|
||||
string LastFmtName = null;
|
||||
foreach (SectionInfo mySection in myProcedure.Sections)
|
||||
{
|
||||
if (((mySection.MyContent.Number.ToUpper() == "FOLDOUT" && myProcedure.ActiveFormat.PlantFormat.FormatData.PrintData.SectionLevelFoldouts)
|
||||
@@ -381,10 +382,15 @@ namespace Volian.Print.Library
|
||||
// Set up Helper for the particular Section
|
||||
if (_MyHelper == null)
|
||||
{
|
||||
LastFmtName = mySection.ActiveFormat.Name;
|
||||
string hlsText = "";
|
||||
int hlsItemId = 0;
|
||||
if (mySection.IsStepSection && mySection.Steps.Count > 0)
|
||||
{
|
||||
hlsItemId = mySection.Steps[0].ItemID;
|
||||
hlsText = mySection.Steps[0].DisplayText; // save the High level step text for use in the page list
|
||||
cb.PdfWriter.PageEvent = _MyHelper = new VlnSvgPageHelper(mySection, this, hlsText);
|
||||
}
|
||||
cb.PdfWriter.PageEvent = _MyHelper = new VlnSvgPageHelper(mySection, this, hlsText, hlsItemId);
|
||||
_MyHelper.AllowAllWatermarks = AllowAllWatermarks;
|
||||
_MyHelper.MyPdfWriter = cb.PdfWriter;
|
||||
_MyHelper.CreatingFoldoutPage = doingFoldout;
|
||||
@@ -425,7 +431,9 @@ namespace Volian.Print.Library
|
||||
//added by jcb to reset mygaps when changing a section. found old section gaps were carrying over to new section
|
||||
_MyHelper.MyGaps.Clear();
|
||||
//Console.WriteLine("'{0}' PromsPrinter", mySection.DisplayText);
|
||||
if (mySection.SectionConfig.Section_Pagination == SectionConfig.SectionPagination.Separate)
|
||||
// if pagination is separate or we've changed the format, we have not done the first page
|
||||
// (if this format has the useonfirst page docstyle flag)
|
||||
if (LastFmtName != mySection.ActiveFormat.Name || mySection.SectionConfig.Section_Pagination == SectionConfig.SectionPagination.Separate)
|
||||
_MyHelper.DidFirstPageDocStyle = false;
|
||||
if (!mySection.IsStepSection) _MyHelper.PageBookmarks.Add((ItemInfo)mySection, ((mySection.DisplayNumber ?? "") == "" ? "" : mySection.DisplayNumber + " - ") + mySection.DisplayText, null);
|
||||
_MyHelper.MySection = mySection;
|
||||
|
Reference in New Issue
Block a user