Process page number transitions & change bar location
B2015-073: Code for processing page number transitions Allow for step box across page break.
This commit is contained in:
parent
bb037ba06d
commit
5b07290ccd
Binary file not shown.
@ -1094,7 +1094,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
private static bool AddPageNumber(TransitionBuilder tb)
|
private static bool AddPageNumber(TransitionBuilder tb)
|
||||||
{
|
{
|
||||||
if (tb._ToItem.PageNumber != 0 && tb._FromItem.PageNumber != 0)
|
//At some point, add a property off a section 'IsFoldout' and use the next two lines:
|
||||||
|
//if ((myProcedure.ActiveFormat.PlantFormat.FormatData.PrintData.SectionLevelFoldouts && mySection.MyContent.Number.ToUpper() == "FOLDOUT")
|
||||||
|
//|| (myProcedure.ActiveFormat.PlantFormat.FormatData.PrintData.AlternateFloatingFoldout && mySection.MyContent.Text.ToUpper().Contains("FOLDOUT")))
|
||||||
|
if (tb._ToItem.PageNumber != 0 && (tb._FromItem.PageNumber != 0 || tb._FromItem.ActiveSection.MyContent.Number.ToUpper() == "FOLDOUT"))
|
||||||
{
|
{
|
||||||
int pgoffset = tb._ToItem.PageNumber - tb._FromItem.PageNumber;
|
int pgoffset = tb._ToItem.PageNumber - tb._FromItem.PageNumber;
|
||||||
tb._ToItem.PageNumberUsed = tb._ToItem.PageNumber;
|
tb._ToItem.PageNumberUsed = tb._ToItem.PageNumber;
|
||||||
|
@ -112,7 +112,17 @@ namespace Volian.Print.Library
|
|||||||
if (DefBox != null && DefBox != vlnBox.DOUBLEboxHLS)
|
if (DefBox != null && DefBox != vlnBox.DOUBLEboxHLS)
|
||||||
{
|
{
|
||||||
cb.SetLineWidth(.6F);
|
cb.SetLineWidth(.6F);
|
||||||
cb.Rectangle(left, bottom, right - left, Height * MyPageHelper.YMultiplier);
|
float lheight = Height;
|
||||||
|
if (top > yTopMargin)
|
||||||
|
{
|
||||||
|
lheight -= (top - yTopMargin);
|
||||||
|
}
|
||||||
|
if (bottom < yBottomMargin)
|
||||||
|
{
|
||||||
|
lheight += (bottom - yBottomMargin);
|
||||||
|
bottom = yBottomMargin;
|
||||||
|
}
|
||||||
|
cb.Rectangle(left, bottom, right - left, lheight * MyPageHelper.YMultiplier);
|
||||||
}
|
}
|
||||||
else if (DefBox == vlnBox.DOUBLEboxHLS)
|
else if (DefBox == vlnBox.DOUBLEboxHLS)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user