B2021-133 indent of HLS & subsection should be the same
B2021-133 BNPP1new indent of HLS & subsection should be the same
This commit is contained in:
parent
37e022a64d
commit
4522b2a636
Binary file not shown.
@ -4199,6 +4199,14 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return LazyLoad(ref _TieTabToLevel, "@TieTabToLevel");
|
return LazyLoad(ref _TieTabToLevel, "@TieTabToLevel");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private LazyLoad<bool> _SubSectAndHighSameLevel;
|
||||||
|
public bool SubSectAndHighSameLevel
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return LazyLoad(ref _SubSectAndHighSameLevel, "@SubSectAndHighSameLevel");
|
||||||
|
}
|
||||||
|
}
|
||||||
private LazyLoad<bool> _HighLevelRNOBeforeAERSubsteps;
|
private LazyLoad<bool> _HighLevelRNOBeforeAERSubsteps;
|
||||||
public bool HighLevelRNOBeforeAERSubsteps
|
public bool HighLevelRNOBeforeAERSubsteps
|
||||||
{
|
{
|
||||||
|
@ -6110,6 +6110,8 @@ namespace Volian.Print.Library
|
|||||||
&& !(itemInfo.MyDocStyle.SpecialStepsFoldout && itemInfo.MyDocStyle.UseColSByLevel))
|
&& !(itemInfo.MyDocStyle.SpecialStepsFoldout && itemInfo.MyDocStyle.UseColSByLevel))
|
||||||
{
|
{
|
||||||
int indxLevel = itemInfo.PrintLevel + itemInfo.CurrentSectionLevel();
|
int indxLevel = itemInfo.PrintLevel + itemInfo.CurrentSectionLevel();
|
||||||
|
// B2021-113: BNPP1new - subsection & HLS should be same level (xoffset of tab & text)
|
||||||
|
if (formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.SubSectAndHighSameLevel && !MyItemInfo.MyActiveSection.MyParent.IsProcedure) indxLevel++;
|
||||||
float colsbylevel = (float)formatInfo.PlantFormat.FormatData.SectData.MetaSectionList[indxLevel % formatInfo.PlantFormat.FormatData.SectData.MetaSectionList.MaxIndex].ColSByLevel;
|
float colsbylevel = (float)formatInfo.PlantFormat.FormatData.SectData.MetaSectionList[indxLevel % formatInfo.PlantFormat.FormatData.SectData.MetaSectionList.MaxIndex].ColSByLevel;
|
||||||
float seclvlindent = colsbylevel - (float)formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ColS;
|
float seclvlindent = colsbylevel - (float)formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ColS;
|
||||||
float adjCols = (float)formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ColS + seclvlindent;
|
float adjCols = (float)formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ColS + seclvlindent;
|
||||||
@ -6121,7 +6123,11 @@ namespace Volian.Print.Library
|
|||||||
myTab.Rtf = myTab.Rtf.Replace(myTab.Text, myTab.Text.TrimStart(" ".ToCharArray()));
|
myTab.Rtf = myTab.Rtf.Replace(myTab.Text, myTab.Text.TrimStart(" ".ToCharArray()));
|
||||||
if (formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionPrintData.LeftJustifyList != null &&
|
if (formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionPrintData.LeftJustifyList != null &&
|
||||||
formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionPrintData.LeftJustifyList.Count > 0)
|
formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionPrintData.LeftJustifyList.Count > 0)
|
||||||
XOffset = myTab.XOffset + GetLeftJustify(formatInfo, indxLevel);
|
// B2021-113: BNPP1new - subsection & HLS should be same level (xoffset of tab & text)
|
||||||
|
if (formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.SubSectAndHighSameLevel && !MyItemInfo.MyActiveSection.MyParent.IsProcedure)
|
||||||
|
XOffset += tabWidth;
|
||||||
|
else
|
||||||
|
XOffset = myTab.XOffset + GetLeftJustify(formatInfo, indxLevel); // 2.1.1 goes here xoffset = 136
|
||||||
else
|
else
|
||||||
XOffset = myTab.XOffset + (myTab.Text.Length * (float)itemInfo.FormatStepData.Font.CPI) - colsbylevel;
|
XOffset = myTab.XOffset + (myTab.Text.Length * (float)itemInfo.FormatStepData.Font.CPI) - colsbylevel;
|
||||||
}
|
}
|
||||||
@ -6283,6 +6289,8 @@ namespace Volian.Print.Library
|
|||||||
else if (myTab != null && itemInfo.IsSequential && formatInfo.PlantFormat.FormatData.SectData.UseMetaSections && formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionPrintData.LeftJustifyList.Count > 0)
|
else if (myTab != null && itemInfo.IsSequential && formatInfo.PlantFormat.FormatData.SectData.UseMetaSections && formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionPrintData.LeftJustifyList.Count > 0)
|
||||||
{
|
{
|
||||||
int indxLevels = itemInfo.PrintLevel + itemInfo.CurrentSectionLevel();
|
int indxLevels = itemInfo.PrintLevel + itemInfo.CurrentSectionLevel();
|
||||||
|
// B2021-113: BNPP1new - subsection & HLS should be same level (xoffset of tab & text)
|
||||||
|
if (formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.SubSectAndHighSameLevel && !MyItemInfo.MyActiveSection.MyParent.IsProcedure) indxLevels++;
|
||||||
float tableftadj = GetLeftJustify(formatInfo, indxLevels);
|
float tableftadj = GetLeftJustify(formatInfo, indxLevels);
|
||||||
if (tableftadj != 0)
|
if (tableftadj != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user