This commit is contained in:
parent
9023e7c899
commit
ca0d89faa9
@ -104,8 +104,6 @@ namespace Volian.Print.Library
|
||||
DrawMessages(writer.DirectContent);
|
||||
if (!CreatingFoldoutPage)
|
||||
DrawRuler(writer.DirectContent);
|
||||
if ((MySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountInTabOfCont) == 0)
|
||||
CurrentTOCPageNumber++;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -113,9 +111,9 @@ namespace Volian.Print.Library
|
||||
base.OnEndPage(writer, document);
|
||||
if (!CreatingFoldoutPage)
|
||||
DrawRuler(writer.DirectContent);
|
||||
if ((MySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountInTabOfCont) == 0)
|
||||
CurrentTOCPageNumber++;
|
||||
}
|
||||
if (MySection.MyDocStyle.StructureStyle.Style==null || (MySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountInTabOfCont) == 0)
|
||||
CurrentTOCPageNumber++;
|
||||
PageListTopCheckOffHeader = null;
|
||||
PageListLastCheckOffHeader = null;
|
||||
YMultiplier = 1;
|
||||
|
@ -168,12 +168,20 @@ namespace Volian.Print.Library
|
||||
cleanTab = origTab;
|
||||
if (CCCs != IIIs)
|
||||
{
|
||||
origTab = origTab + " ";
|
||||
origTab = origTab.TrimStart(" ".ToCharArray());
|
||||
if (mindx>2) // ouch!
|
||||
Width = 6f * (origTab.Length - 1); // FPL (macro is after {numeric}) FPL is good with genmac output!
|
||||
|
||||
if (myparent.MyItemInfo.ActiveFormat.Name.ToUpper().Contains("WST")) // Temporary for WST development. need better way to do this check
|
||||
{
|
||||
Width = 6.8f * origTab.Length;
|
||||
}
|
||||
else
|
||||
Width = 3 + (6f * origTab.Length); // NSP (macro is before {numeric})
|
||||
{
|
||||
origTab = origTab + " ";
|
||||
origTab = origTab.TrimStart(" ".ToCharArray());
|
||||
if (mindx > 2) // ouch!
|
||||
Width = 6f * (origTab.Length - 1); // FPL (macro is after {numeric}) FPL is good with genmac output!
|
||||
else
|
||||
Width = 3 + (6f * origTab.Length); // NSP (macro is before {numeric})
|
||||
}
|
||||
}
|
||||
else
|
||||
Width = GetTextWidth(MyFont, (cleanTab != null ? cleanTab : origTab), symblFontName);//MyFont.CharsToTwips * (cleanTab != null ? cleanTab.Length : origTab.Length);
|
||||
|
Loading…
x
Reference in New Issue
Block a user