This commit is contained in:
@@ -1187,7 +1187,7 @@ namespace Volian.Print.Library
|
||||
// if this is the High Level RNO step (MyTopRNO) and we are numbering the RNO, adjust the xoffset to start the tab
|
||||
// at the x location rather than starting the text at the x location:
|
||||
AdjustWidth(itemInfo, maxRNO, formatInfo, mytab);
|
||||
bool adjustAgain = true;
|
||||
bool adjustAgain = itemInfo.MyTab.Position == 0 ? true : false;
|
||||
if (!itemInfo.IsSection && itemInfo.FormatStepData.NumberHighLevel && itemInfo.IsRNOPart && (MyTopRNO == null || itemInfo.ItemID == MyTopRNO.MyItemInfo.ItemID))
|
||||
{
|
||||
// adjust the x-offset of the RNO to include the tab.
|
||||
@@ -1207,11 +1207,11 @@ namespace Volian.Print.Library
|
||||
XOffset += inc;
|
||||
adjustAgain = false;
|
||||
}
|
||||
else
|
||||
else if (mytab != null)
|
||||
{
|
||||
mytab.XOffset += mytab.Width;
|
||||
XOffset = mytab.XOffset + mytab.Width;
|
||||
}
|
||||
mytab.XOffset += mytab.Width;
|
||||
XOffset = mytab.XOffset + mytab.Width;
|
||||
}
|
||||
}
|
||||
if(adjustAgain)
|
||||
AdjustXOffsetForTab(itemInfo, maxRNO, formatInfo, mytab, xMetaAdj);
|
||||
@@ -1787,6 +1787,7 @@ namespace Volian.Print.Library
|
||||
if (MyItemInfo.MyDocStyle.SpecialStepsFoldout) return 0;
|
||||
if (MyItemInfo.FormatStepData != null && MyItemInfo.FormatStepData.Prefix != null && MyItemInfo.FormatStepData.Suffix != null && MyItemInfo.FormatStepData.UseSmartTemplate) return 0;
|
||||
int everyNLines = MyItemInfo.FormatStepData == null ? 1 : MyItemInfo.FormatStepData.StepLayoutData.EveryNLines ?? 1;
|
||||
if (everyNLines == -99) return 0;
|
||||
if (MyItemInfo.Ordinal % everyNLines == 0 || MyItemInfo.NextItem == null) return SixLinesPerInch;
|
||||
// Pagination issue to be used with yEndsWithBlankLine in Pagination code, but not checked in yet.
|
||||
//if (MyItemInfo.Ordinal % everyNLines == 0 || MyItemInfo.NextItem == null) return SixLinesPerInch;
|
||||
@@ -2255,6 +2256,11 @@ namespace Volian.Print.Library
|
||||
if (myTab.MyMacro != null) myTab.MyMacro.XOffset += xoff;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (itemInfo.MyDocStyle.AlignHLSTabWithSect)
|
||||
XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + (float)formatInfo.PlantFormat.FormatData.SectData.SectionHeader.Pos;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (((colOvrd ?? 0) != 0) && formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.NullBox)
|
||||
@@ -2342,7 +2348,12 @@ namespace Volian.Print.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
// FNP tabbing '#2#' and '#1#', not fully tested: XOffset -= itemInfo.MyTab.Offset;
|
||||
if (itemInfo.MyTab != null && itemInfo.MyTab.Offset != 0)
|
||||
{
|
||||
myTab.XOffset -= itemInfo.MyTab.Offset;
|
||||
XOffset -= itemInfo.MyTab.Offset;
|
||||
Width += itemInfo.MyTab.Offset;
|
||||
}
|
||||
}
|
||||
|
||||
private static float GetLeftJustify(FormatInfo formatInfo, int indxLevels)
|
||||
|
Reference in New Issue
Block a user