Support transitions to sections

This commit is contained in:
Rich 2016-07-07 12:48:00 +00:00
parent c95527574f
commit 960e09f9fb
2 changed files with 16 additions and 7 deletions

View File

@ -3433,6 +3433,12 @@ namespace VEPROMS.CSLA.Library
}
protected void SetTabText()
{
if (IsSection) // B2016-160 Support transitions to sections
{
_MyTab.Text = DisplayNumber;
_MyTab.CleanText = DisplayNumber;
return;
}
string cltext = null;
int stepType = (int)(MyContent.Type % 10000);
string tbformat;
@ -6926,9 +6932,12 @@ namespace VEPROMS.CSLA.Library
public override void SetupTags()
{
_TagsSetup = true;
_MyTab = new Tab(AdjustForTextSubFollowsTextStyle(FormatStepData.TabData.Font));
MyHeader = new MetaTag(FormatStepData.TabData.Font);
MyFooter = new MetaTag(FormatStepData.TabData.Font);
// B2016-160 Support transitions to sections
VE_Font fnt = new VE_Font("Arial", 10, E_Style.None, 10);
if (FormatStepData != null) fnt = FormatStepData.TabData.Font;
_MyTab = new Tab(AdjustForTextSubFollowsTextStyle(fnt));
MyHeader = new MetaTag(fnt);
MyFooter = new MetaTag(fnt);
SetTabText();
}

View File

@ -832,8 +832,8 @@ namespace Volian.Print.Library
DelimList.Add(c.ToString());
}
}
while (!pitem.IsHigh)
// B2016-160 Support transitions to sections
while (!pitem.IsSection && !pitem.IsHigh)
{
StepInfo stpinfo = StepInfo.Get(pitem.ItemID);
string thisTab = stpinfo.MyTab.CleanText; //StepInfo.Get(pitem.ItemID).MyTab.CleanText;