B2023-043: BVPS – subscript/superscript in Section Titles

This commit is contained in:
Kathy Ruffing 2023-05-02 13:13:04 +00:00
parent da45ffc8ac
commit 02a65727e9
9 changed files with 15 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1317,6 +1317,15 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _UseOnFirstForSeparatePaginationOnSubSect, "@UseOnFirstForSeparatePaginationOnSubSect");
}
}
// B2023-043 for use with Beaver Valley AOP format - allow attributes, such as superscript on section titles when printing
private LazyLoad<bool> _SectionTitleWithAttributes;
public bool SectionTitleWithAttributes
{
get
{
return LazyLoad(ref _SectionTitleWithAttributes, "@SectionTitleWithAttributes");
}
}
private LazyLoad<bool> _WCNTraining;
public bool WCNTraining
{

View File

@ -1966,6 +1966,9 @@ i = 0;
string myMsg = section.MyDocStyle.Continue.Top.Message;
if (myMsg != null && myMsg != string.Empty)stitle = stitle + myMsg;
}
// B2023-043: Beaver Valley AOP - allow attributes, such as superscript on section titles when printing
if (section.ActiveFormat.PlantFormat.FormatData.PrintData.SectionTitleWithAttributes)
stitle = section.FormattedDisplayText;
// B2021-119: large titles on Landscape Word Attachments are printing on 2 lines.
// B2022-149: crash on cast if null
int? stl = (int?)section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength;
@ -1990,7 +1993,9 @@ i = 0;
{
top = top.MyParent;
}
plstr = SplitTitle(svgGroup, pageItem, top.DisplayText, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength);
// B2023-043: Beaver Valley AOP - allow attributes, such as superscript on section titles when printing
string tmptitle = (section.ActiveFormat.PlantFormat.FormatData.PrintData.SectionTitleWithAttributes) ? top.FormattedDisplayText : top.DisplayText;
plstr = SplitTitle(svgGroup, pageItem, tmptitle, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionNumberAndTitleLength);
}
else
plstr = plstr.Replace(token, string.Empty);