Added logic to allow grouping of sections that are defined in the format docsyle to automatically be included on the Table of Contents
This commit is contained in:
@@ -384,11 +384,17 @@ namespace VEPROMS
|
|||||||
if ((pf.FormatData.PurchaseOptions & E_PurchaseOptions.AutoTableOfContents) == E_PurchaseOptions.AutoTableOfContents && _SectionConfig.MySection.MyContent.Text.ToUpper() != "TABLE OF CONTENTS")
|
if ((pf.FormatData.PurchaseOptions & E_PurchaseOptions.AutoTableOfContents) == E_PurchaseOptions.AutoTableOfContents && _SectionConfig.MySection.MyContent.Text.ToUpper() != "TABLE OF CONTENTS")
|
||||||
{
|
{
|
||||||
ppCbIncTOC.Enabled = true;
|
ppCbIncTOC.Enabled = true;
|
||||||
if (_SectionConfig.MySection.MySectionInfo.MyDocStyle.IncludeInTOC)
|
|
||||||
ppCbIncTOC.Text = "Exclude from Table of Contents";
|
|
||||||
else
|
|
||||||
ppCbIncTOC.Text = "Include in Table of Contents";
|
|
||||||
ppCbIncTOC.Checked = _SectionConfig.Section_TOC == "Y";
|
ppCbIncTOC.Checked = _SectionConfig.Section_TOC == "Y";
|
||||||
|
if (_SectionConfig.MySection.MySectionInfo.MyDocStyle.IncludeInTOC)
|
||||||
|
{
|
||||||
|
ppCbIncTOC.Text = "Exclude from Table of Contents";
|
||||||
|
gpTOC.Visible = !ppCbIncTOC.Checked; // show grouping box if including on auto TOC
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ppCbIncTOC.Text = "Include in Table of Contents";
|
||||||
|
gpTOC.Visible = ppCbIncTOC.Checked; // show grouping box if including on auto TOC
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!_SectionConfig.MySection.MySectionInfo.IsStepSection)
|
if (!_SectionConfig.MySection.MySectionInfo.IsStepSection)
|
||||||
cbKeepWordDocMargins.Checked = _SectionConfig.Section_WordMargin == "Y";
|
cbKeepWordDocMargins.Checked = _SectionConfig.Section_WordMargin == "Y";
|
||||||
@@ -1104,7 +1110,7 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
private void ppCbIncTOC_CheckedChanged(object sender, EventArgs e)
|
private void ppCbIncTOC_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
bool isInToc = ppCbIncTOC.Checked;
|
bool isInToc = (_SectionConfig.MySection.MySectionInfo.MyDocStyle.IncludeInTOC) ? !ppCbIncTOC.Checked : ppCbIncTOC.Checked;
|
||||||
if (!_Initializing)
|
if (!_Initializing)
|
||||||
_SectionConfig.Section_TOC = isInToc ? "Y" : "N";
|
_SectionConfig.Section_TOC = isInToc ? "Y" : "N";
|
||||||
gpTOC.Visible = isInToc;
|
gpTOC.Visible = isInToc;
|
||||||
|
Reference in New Issue
Block a user