This commit is contained in:
parent
4516759585
commit
295bcdb4e0
@ -145,7 +145,7 @@ namespace Volian.Print.Library
|
||||
float yLocation = CalculateYOffset(yPageStart, yTopMargin);
|
||||
if (MyItemInfo.HasChangeBar && MyPageHelper.ChangeBarDefinition.MyChangeBarType != PrintChangeBar.Without) MyPageHelper.AddChangeBar(DoChangeBar(cb, MyItemInfo, MyPageHelper, XOffset, yLocation, MyPageHelper.MaxRNO, MyItemInfo.ActiveFormat), cbMess);
|
||||
float retval = yLocation;
|
||||
|
||||
bool doprint = true;
|
||||
if (MyItemInfo.IsFigure)
|
||||
{
|
||||
yLocation -= (SixLinesPerInch * MyPageHelper.YMultiplier);
|
||||
@ -160,16 +160,16 @@ namespace Volian.Print.Library
|
||||
&& !MyItemInfo.MyDocStyle.CancelSectTitle
|
||||
&& !MyItemInfo.MyDocStyle.SpecialStepsFoldout)) // Don't ouput the Step Section title
|
||||
{
|
||||
bool doprint = true;
|
||||
// if this is a section, then check the section config for printable header too.
|
||||
if (MyItemInfo.IsSection)
|
||||
{
|
||||
SectionConfig sch = MyItemInfo.MyConfig as SectionConfig;
|
||||
if (!(MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ShowSectionTitles
|
||||
&& !MyItemInfo.MyDocStyle.CancelSectTitle
|
||||
&& !MyItemInfo.MyDocStyle.SpecialStepsFoldout)
|
||||
&& !MyItemInfo.MyDocStyle.SpecialStepsFoldout
|
||||
&& !MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)
|
||||
&&
|
||||
((sch != null && sch.Section_PrintHdr != "Y") || !MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)) doprint = false;
|
||||
(sch != null && sch.Section_PrintHdr != "Y")) doprint = false;
|
||||
}
|
||||
if (MyItemInfo.MyContent.MyGrid != null)
|
||||
retval = DrawGrid(cb, ref yPageStart, yTopMargin, yBottomMargin, ref yLocation);
|
||||
@ -199,7 +199,7 @@ namespace Volian.Print.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
//Height = yLocation - retval;
|
||||
if (!doprint) return yPageStart;
|
||||
if (_PartsLeft != null && _PartsLeft.Count > 0) yPageStart = PartsLeft.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin);
|
||||
if (_PartsRight != null && _PartsRight.Count > 0) yPageStart = PartsRight.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin);
|
||||
if (_PartsBelow != null && _PartsBelow.Count > 0) yPageStart = PartsBelow.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin);
|
||||
@ -874,6 +874,7 @@ namespace Volian.Print.Library
|
||||
itemInfo.MyTab = null;
|
||||
|
||||
float xMetaAdj = 0;
|
||||
|
||||
if (itemInfo.MyTab != null && itemInfo.MyTab.Text != null && itemInfo.MyTab.Text != "")
|
||||
{
|
||||
float localXOffset = XOffset;
|
||||
@ -885,7 +886,11 @@ namespace Volian.Print.Library
|
||||
&& !MyItemInfo.MyDocStyle.CancelSectTitle
|
||||
&& !MyItemInfo.MyDocStyle.SpecialStepsFoldout)
|
||||
&&
|
||||
((sch != null && sch.Section_PrintHdr != "Y") || !MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)) doprint = false;
|
||||
((sch != null && sch.Section_PrintHdr != "Y") || !MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections))
|
||||
{
|
||||
doprint = false;
|
||||
YTopMost = 0;
|
||||
}
|
||||
}
|
||||
if (doprint && itemInfo.IsSection && !itemInfo.MyDocStyle.CancelSectTitle && itemInfo.MyTab.Text.ToUpper() != "FOLDOUT")
|
||||
{
|
||||
@ -1119,6 +1124,7 @@ namespace Volian.Print.Library
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
CheckOff co = itemInfo.GetCheckOffStep();
|
||||
if (co != null)
|
||||
{
|
||||
@ -1167,7 +1173,6 @@ namespace Volian.Print.Library
|
||||
yoff = ChildrenBelow.Add(cb, itemInfo.Tables, XOffset, yoff + yoffadj, yOffRight + yoffadj, rnoLevel, maxRNO, formatInfo);
|
||||
}
|
||||
yOffRight = Math.Max(yOffRight, yoffLeft);
|
||||
|
||||
// Look for the meta section case where the 'Editable' flag is set to 'N', which means that
|
||||
// these steps should not be printed:
|
||||
bool printsteps = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user