B2016-282: remove new subsection menu item off of V-Button when selected section is a Word Section

B2016-236: for global search – add ‘Figure’ to Results style as Document Text & change ‘AER’ to ‘Left’ in list of step types for figures.
B2016-282: remove new subsection menu item off of a Word Section from
This commit is contained in:
2017-01-12 15:23:27 +00:00
parent e6fbb77546
commit 4744bcd450
4 changed files with 19 additions and 5 deletions

View File

@@ -3393,15 +3393,21 @@ namespace VEPROMS
}
ButtonItem sbbtn = new ButtonItem("sbbtn", "Section Before");
ButtonItem sabtn = new ButtonItem("sabtn", "Section After");
ButtonItem subbtn = new ButtonItem("subbtn", "SubSection");
btnNew.SubItems.Add(sbbtn);
btnNew.SubItems.Add(sabtn);
btnNew.SubItems.Add(subbtn);
sbbtn.Click += new EventHandler(sbbtn_Click);
sabtn.Click += new EventHandler(sabtn_Click);
subbtn.Click += new EventHandler(subbtn_Click);
if (si.IsStepSection)
{
// B2016-282: Don't allow insert of subsections off Word Section.
if (si.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)
{
ButtonItem subbtn = new ButtonItem("subbtn", "SubSection");
btnNew.SubItems.Add(subbtn);
subbtn.Click += new EventHandler(subbtn_Click);
}
ButtonItem stpbtn = new ButtonItem("stpbtn", "New Step");
btnNew.SubItems.Add(stpbtn);
stpbtn.Click += new EventHandler(stpbtn_Click);