Hide checkbox items used only for step sections when looking at properties of a Word section
This commit is contained in:
@@ -281,14 +281,17 @@ namespace VEPROMS
|
|||||||
// 'editable data', the steps are not shown in editor or print.
|
// 'editable data', the steps are not shown in editor or print.
|
||||||
// show the automatic indent checkbox.
|
// show the automatic indent checkbox.
|
||||||
ppCbEditableData.Enabled = _SectionConfig.MySection.MySectionInfo.Sections != null && _SectionConfig.MySection.MySectionInfo.Sections.Count > 0;
|
ppCbEditableData.Enabled = _SectionConfig.MySection.MySectionInfo.Sections != null && _SectionConfig.MySection.MySectionInfo.Sections.Count > 0;
|
||||||
|
ppCbEditableData.Visible = _isStepSection; // only display if we are on a step editor section
|
||||||
//ppCbAutoIndent.Enabled = _SectionConfig.MySection.MySectionInfo.Sections != null && _SectionConfig.MySection.MySectionInfo.Sections.Count > 0;
|
//ppCbAutoIndent.Enabled = _SectionConfig.MySection.MySectionInfo.Sections != null && _SectionConfig.MySection.MySectionInfo.Sections.Count > 0;
|
||||||
ppCbAutoIndent.Enabled = pf.FormatData.SectData.UseMetaSections;
|
ppCbAutoIndent.Enabled = pf.FormatData.SectData.UseMetaSections;
|
||||||
|
ppCbAutoIndent.Visible = _isStepSection; // only display if we are on a step editor section
|
||||||
|
|
||||||
// Check for the print section num/title config item to determine whether that checkbox should
|
// Check for the print section num/title config item to determine whether that checkbox should
|
||||||
// be checked.
|
// be checked.
|
||||||
ppCbPrnSecNumTitle.Enabled = true; // pf.FormatData.SectData.UseMetaSections;
|
ppCbPrnSecNumTitle.Enabled = _isStepSection;//true; // pf.FormatData.SectData.UseMetaSections;
|
||||||
//ppCbPrnSecNumTitle.Checked = ppCbPrnSecNumTitle.Enabled && _SectionConfig.Section_PrintHdr != "N";
|
//ppCbPrnSecNumTitle.Checked = ppCbPrnSecNumTitle.Enabled && _SectionConfig.Section_PrintHdr != "N";
|
||||||
ppCbPrnSecNumTitle.Checked = _SectionConfig.Section_PrintHdr != "N";
|
ppCbPrnSecNumTitle.Checked = (_isStepSection &&_SectionConfig.Section_PrintHdr != "N");
|
||||||
|
ppCbPrnSecNumTitle.Visible = _isStepSection; // only display if we are on a step editor section
|
||||||
|
|
||||||
// check if format has automated table of contents, if so, check if config flag is set that this
|
// check if format has automated table of contents, if so, check if config flag is set that this
|
||||||
// section should be included.
|
// section should be included.
|
||||||
|
Reference in New Issue
Block a user