Process pagenum transitions for BGE, improve automatic ToC pagination, Level0Big support

UNITALPHA, REVUNIT pagelist items
This commit is contained in:
2014-04-04 13:16:13 +00:00
parent 0ef5a19cd5
commit 3be5841027
3 changed files with 92 additions and 47 deletions

View File

@@ -1279,6 +1279,31 @@ namespace Volian.Print.Library
case "{HLSTAB}":
plstr = plstr.Replace(token, HLSTAB);
break;
case "{UNITALPHA}":
// copied from 16bit's pagelist.cs for BGE:
string unitnm = MySection.MyDocVersion.DocVersionConfig.Print_UnitNumberForPageList;
if (unitnm == "1")
plstr = plstr.Replace(token, "ONE");
else if (unitnm == "2")
plstr = plstr.Replace(token, "TWO");
else
plstr = plstr.Replace(token, "ONE AND TWO");
break;
case "{REVUNIT}":
// copied from 16bit's pagelist.cs for BGE:
string revUnit = null;
string unitNum = MySection.MyDocVersion.DocVersionConfig.Print_UnitNumberForPageList;
if (Rev != null && Rev != "")
revUnit = Rev;
else
revUnit = " ";
if (unitNum == "2")
revUnit += "/Unit 2";
else if (unitNum == "1")
revUnit += "/Unit 1";
plstr = plstr.Replace(token, revUnit);
break;
default:
if (token.Contains(@"RO-"))
{