If an auto Table of Contents page, initialize Word/Step section boxes and flags to Word section.
This commit is contained in:
parent
a26d292c6a
commit
6b4f9a4ac3
@ -60,6 +60,15 @@ namespace VEPROMS
|
|||||||
// if creating a new section, enable the StepSect and WordSect radio buttons
|
// if creating a new section, enable the StepSect and WordSect radio buttons
|
||||||
rbStepSect.Enabled = rbWordSect.Enabled = !(ii.HasWordContent || ii.HasStepContent);
|
rbStepSect.Enabled = rbWordSect.Enabled = !(ii.HasWordContent || ii.HasStepContent);
|
||||||
|
|
||||||
|
// if this is an auto table of contents (mydocstyle == null if new section, so must check for that first)
|
||||||
|
if (ii.IsAutoTOCSection)
|
||||||
|
{
|
||||||
|
rbWordSect.Checked = true;
|
||||||
|
rbStepSect.Enabled = false;
|
||||||
|
rbWordSect.Enabled = false;
|
||||||
|
_isStepSection = false;
|
||||||
|
}
|
||||||
|
|
||||||
// if this has already been set to be a step section, i.e. HasStepContent, disable the libdoc tab
|
// if this has already been set to be a step section, i.e. HasStepContent, disable the libdoc tab
|
||||||
// also disable if there is no word content yet - the user may want to change from step type to
|
// also disable if there is no word content yet - the user may want to change from step type to
|
||||||
// word type, as long as there is no content yet.
|
// word type, as long as there is no content yet.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user