Adjust landscape word section pagelist item locations & flags for printing pagelist items as landscape
Calvert: Added ‘DSS_PageListAddSectCont’ flag to docstyle->Style to flag continue message in section title Calvert: Reset svg’s for document styles that have ‘DSS_PageListAddSectCont’ so that pages other than first have continue message Calvert: Print continue message for “ATTACHTITLECONT” pagelist item (but not on 1st page)
This commit is contained in:
parent
7ea770e9e2
commit
1129cb3431
Binary file not shown.
@ -167,6 +167,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
DSS_SimpleTopSectionContinue = 0x80000000, // Use the Top continue message as the section continue */
|
DSS_SimpleTopSectionContinue = 0x80000000, // Use the Top continue message as the section continue */
|
||||||
DSS_DontDoCheckOffs = 0x100000000, // format has checkoffs, but don't do for this section
|
DSS_DontDoCheckOffs = 0x100000000, // format has checkoffs, but don't do for this section
|
||||||
DSS_PageListSpBckgrnd = 0x200000000, // this background document style has special formatting: margins, title with cont and non underlined header (IP2BCK)
|
DSS_PageListSpBckgrnd = 0x200000000, // this background document style has special formatting: margins, title with cont and non underlined header (IP2BCK)
|
||||||
|
DSS_PageListAddSectCont = 0x400000000, // for this section, add the top continue message when doing the ATTACHTITLECONT pagelist token (Calvert/Landscape word docs)
|
||||||
};
|
};
|
||||||
public enum E_DocStyleUse : uint
|
public enum E_DocStyleUse : uint
|
||||||
{
|
{
|
||||||
|
@ -667,6 +667,7 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
float origYoff = (float)mySection.MyDocStyle.Layout.TopMargin;
|
float origYoff = (float)mySection.MyDocStyle.Layout.TopMargin;
|
||||||
|
bool resetSvgForCont = true;
|
||||||
for (int ii = 0; ii < sectPageCount; ii++)
|
for (int ii = 0; ii < sectPageCount; ii++)
|
||||||
{
|
{
|
||||||
int pageNumber = 1 + ii;
|
int pageNumber = 1 + ii;
|
||||||
@ -737,6 +738,18 @@ namespace Volian.Print.Library
|
|||||||
// if this document style has another style that is for pages other than first, we need to
|
// if this document style has another style that is for pages other than first, we need to
|
||||||
// reset the document style off of this section AND reset docstyle values used.
|
// reset the document style off of this section AND reset docstyle values used.
|
||||||
_MyHelper.DidFirstPageDocStyle = true;
|
_MyHelper.DidFirstPageDocStyle = true;
|
||||||
|
|
||||||
|
// Calvert has a case in their stp landscape word docs where a ' (Continued)' message
|
||||||
|
// appears in their pagelist item for printing the section title, {ATTACHTITLECONT} pagelist
|
||||||
|
// However, other sections use this token, but do NOT have the continue message - so
|
||||||
|
// the docstyle was added to flag the difference between them (STP-Landscape Attachments has it,
|
||||||
|
// STP-Attachments do not)
|
||||||
|
if (resetSvgForCont && (mySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PageListAddSectCont) == E_DocStructStyle.DSS_PageListAddSectCont)
|
||||||
|
{
|
||||||
|
_MyHelper.ResetSvg();
|
||||||
|
resetSvgForCont = false; // only need to reset it once (for all pages after 1st page)
|
||||||
|
}
|
||||||
|
|
||||||
//DebugPagination.WriteLine("CreateWordDocPdf");
|
//DebugPagination.WriteLine("CreateWordDocPdf");
|
||||||
if ((mySection.MyDocStyle.StructureStyle.Where & E_DocStyleUse.UseOnFirstPage) > 0)
|
if ((mySection.MyDocStyle.StructureStyle.Where & E_DocStyleUse.UseOnFirstPage) > 0)
|
||||||
_MyHelper.MySection = mySection; // this resets the docstyle/pagestyle in pagehelper
|
_MyHelper.MySection = mySection; // this resets the docstyle/pagestyle in pagehelper
|
||||||
|
@ -1488,7 +1488,14 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
if (printsectlevel)
|
if (printsectlevel)
|
||||||
{
|
{
|
||||||
plstr = SplitTitle(svgGroup, pageItem, section.DisplayText, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr);
|
string stitle = section.DisplayText;
|
||||||
|
if (((section.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PageListAddSectCont) == E_DocStructStyle.DSS_PageListAddSectCont)
|
||||||
|
&& token.Contains("ATTACHTITLECONT") && DidFirstPageDocStyle)
|
||||||
|
{
|
||||||
|
string myMsg = section.MyDocStyle.Continue.Top.Message;
|
||||||
|
if (myMsg != null && myMsg != "")stitle = stitle + myMsg;
|
||||||
|
}
|
||||||
|
plstr = SplitTitle(svgGroup, pageItem, stitle, section.ActiveFormat.PlantFormat.FormatData.SectData.SectionTitleLength, token, plstr);
|
||||||
PrintedSectionPage = (int)pageItem.Row - _sectLevelNumTtlDiff;
|
PrintedSectionPage = (int)pageItem.Row - _sectLevelNumTtlDiff;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user