This commit is contained in:
parent
3e75ecd9a6
commit
6c125d8997
@ -156,7 +156,11 @@ namespace Volian.Print.Library
|
|||||||
if (MyItemInfo.IsSection)
|
if (MyItemInfo.IsSection)
|
||||||
{
|
{
|
||||||
SectionConfig sch = MyItemInfo.MyConfig as SectionConfig;
|
SectionConfig sch = MyItemInfo.MyConfig as SectionConfig;
|
||||||
if (sch != null && sch.Section_PrintHdr != "Y") doprint = false;
|
if (!(MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ShowSectionTitles
|
||||||
|
&& !MyItemInfo.MyDocStyle.CancelSectTitle
|
||||||
|
&& !MyItemInfo.MyDocStyle.SpecialStepsFoldout)
|
||||||
|
&&
|
||||||
|
((sch != null && sch.Section_PrintHdr != "Y") || !MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)) doprint = false;
|
||||||
}
|
}
|
||||||
if (MyItemInfo.MyContent.MyGrid != null)
|
if (MyItemInfo.MyContent.MyGrid != null)
|
||||||
retval = DrawGrid(cb, ref yPageStart, yTopMargin, yBottomMargin, ref yLocation);
|
retval = DrawGrid(cb, ref yPageStart, yTopMargin, yBottomMargin, ref yLocation);
|
||||||
@ -913,7 +917,11 @@ namespace Volian.Print.Library
|
|||||||
if (itemInfo.IsSection)
|
if (itemInfo.IsSection)
|
||||||
{
|
{
|
||||||
SectionConfig sch = MyItemInfo.MyConfig as SectionConfig;
|
SectionConfig sch = MyItemInfo.MyConfig as SectionConfig;
|
||||||
if (sch != null && sch.Section_PrintHdr != "Y") doprint = false;
|
if (!(MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ShowSectionTitles
|
||||||
|
&& !MyItemInfo.MyDocStyle.CancelSectTitle
|
||||||
|
&& !MyItemInfo.MyDocStyle.SpecialStepsFoldout)
|
||||||
|
&&
|
||||||
|
((sch != null && sch.Section_PrintHdr != "Y") || !MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)) doprint = false;
|
||||||
}
|
}
|
||||||
if (doprint && itemInfo.IsSection && !itemInfo.MyDocStyle.CancelSectTitle && itemInfo.MyTab.Text.ToUpper() != "FOLDOUT")
|
if (doprint && itemInfo.IsSection && !itemInfo.MyDocStyle.CancelSectTitle && itemInfo.MyTab.Text.ToUpper() != "FOLDOUT")
|
||||||
{
|
{
|
||||||
@ -972,6 +980,7 @@ namespace Volian.Print.Library
|
|||||||
// there may be other places that double space, but this supports it for RNOs (the DoubleRNOspace flag)
|
// there may be other places that double space, but this supports it for RNOs (the DoubleRNOspace flag)
|
||||||
if (rnoLevel > maxRNO && itemInfo.FormatStepData.DoubleSpace) yoff = YOffset = yoff + SixLinesPerInch;
|
if (rnoLevel > maxRNO && itemInfo.FormatStepData.DoubleSpace) yoff = YOffset = yoff + SixLinesPerInch;
|
||||||
}
|
}
|
||||||
|
if (itemInfo.ItemID == 191) Console.WriteLine("here");
|
||||||
AddMacros(itemInfo, mytab);
|
AddMacros(itemInfo, mytab);
|
||||||
if (mytab != null)
|
if (mytab != null)
|
||||||
{
|
{
|
||||||
@ -1045,15 +1054,16 @@ namespace Volian.Print.Library
|
|||||||
Width = GetTableWidth(cb, IParagraph, MyItemInfo.MyDocStyle.Layout.PageWidth);
|
Width = GetTableWidth(cb, IParagraph, MyItemInfo.MyDocStyle.Layout.PageWidth);
|
||||||
CalculateXOffset(itemInfo, maxRNO, formatInfo);
|
CalculateXOffset(itemInfo, maxRNO, formatInfo);
|
||||||
}
|
}
|
||||||
bool printhdr = true;
|
bool printMetaHdr = false;
|
||||||
if (itemInfo.Steps != null && itemInfo.IsSection && itemInfo.Sections != null && itemInfo.Sections.Count > 0)
|
if (itemInfo.Steps != null && itemInfo.IsSection && itemInfo.Sections != null && itemInfo.Sections.Count > 0)
|
||||||
{
|
{
|
||||||
SectionConfig sc = itemInfo.MyConfig as SectionConfig;
|
SectionConfig sc = itemInfo.MyConfig as SectionConfig;
|
||||||
if (sc != null && sc.Section_PrintHdr != "Y") printhdr = false;
|
if ((sc != null && sc.Section_PrintHdr == "Y") && itemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections) printMetaHdr = true;
|
||||||
}
|
}
|
||||||
// Determine if section title is output
|
// Determine if section title is output
|
||||||
if (!itemInfo.IsStepSection
|
if (!itemInfo.IsStepSection
|
||||||
|| (printhdr && formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ShowSectionTitles
|
|| printMetaHdr ||
|
||||||
|
(formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ShowSectionTitles
|
||||||
&& !MyItemInfo.MyDocStyle.CancelSectTitle
|
&& !MyItemInfo.MyDocStyle.CancelSectTitle
|
||||||
&& !MyItemInfo.MyDocStyle.SpecialStepsFoldout))
|
&& !MyItemInfo.MyDocStyle.SpecialStepsFoldout))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user