B2022-129: Barakah - New section type for meta section support, tabbing (location & numbering) & INITIAL header location

This commit is contained in:
2022-10-18 15:38:17 +00:00
parent 29348661fb
commit 146b7dd053
3 changed files with 30 additions and 5 deletions

View File

@@ -5158,9 +5158,11 @@ namespace Volian.Print.Library
// otherwise, use pagelist logic.
bool usePageListCOHdr = false;
if (itemInfo.IsStep)
// B2022-129: Barakah - Adjust the INITIAL header location, i.e. make it a pagelist item
if (itemInfo.IsStep || itemInfo.MyDocStyle.AdjSectTitleLoc)
{
usePageListCOHdr = true;
}
// This checks to see if the section is starting at the top of the page.
// If it is, then we want to use PageList to print the checkoff/sighoff header
// else the checkoff/signoff header will be printed across from the section title where ever it is on the page (i.e. section pagination set to continuous)
@@ -6193,8 +6195,17 @@ namespace Volian.Print.Library
if (myTab != null)
{
myTab.Rtf = myTab.Rtf.Replace(myTab.Text, myTab.Text.TrimStart(" ".ToCharArray()));
myTab.XOffset = MyParent.XOffset;
XOffset = myTab.XOffset + MyTab.Width;
// B2022-129: don't indent HLS when flag is on (Barakah - single column step attachment with meta sect)
if (itemInfo.MyDocStyle.AdjSectTitleLoc)
{
myTab.XOffset = MyParent.MyTab.XOffset;
XOffset = MyParent.XOffset;
}
else
{
myTab.XOffset = MyParent.XOffset;
XOffset = myTab.XOffset + MyTab.Width;
}
}
else
XOffset = MyParent.XOffset; // unnumbered hls