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:
@@ -869,7 +869,7 @@ namespace Volian.Controls.Library
|
||||
cm.MenuItems.Add(string.Format("Document Checked Out to {0}", oi.SessionUserID), new EventHandler(mi_Click));
|
||||
cm.MenuItems.Add("Insert Section Before", new EventHandler(mi_Click));
|
||||
cm.MenuItems.Add("Insert Section After", new EventHandler(mi_Click));
|
||||
if (!si.IsAutoTOCSection)
|
||||
if (!si.IsAutoTOCSection && si.IsStepSection) // B2016-282: Don't allow insert of subsections off Word Section.
|
||||
{
|
||||
bool meta = si.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections;
|
||||
if (meta) cm.MenuItems.Add("New Subsection", new EventHandler(mi_Click));
|
||||
@@ -2013,7 +2013,9 @@ namespace Volian.Controls.Library
|
||||
else if (p.IndexOf("After") > -1)
|
||||
PasteBeforeOrAfter(MenuSelections.StepAfter, tn, iiClipboard.ItemID);
|
||||
else if (p.IndexOf("Replace") > -1)
|
||||
{
|
||||
PasteReplace(tn, iiClipboard.ItemID);
|
||||
}
|
||||
else // paste as child
|
||||
PasteAsChild(tn, iiClipboard.ItemID);
|
||||
this.Cursor = Cursors.Default;
|
||||
@@ -3691,12 +3693,14 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public VETreeNode RefreshRelatedNode(IVEDrillDownReadOnly selectedItem)
|
||||
{
|
||||
Console.WriteLine("vlntreeview:refreshrelatednote:start");
|
||||
VETreeNode child = FindNode(selectedItem, this.Nodes);
|
||||
if (child == null) return null;
|
||||
if (!child.IsExpanded)
|
||||
child.Expand();
|
||||
child.ChildrenLoaded = false;
|
||||
child.RefreshNode();
|
||||
Console.WriteLine("vlntreeview:refreshrelatednote:end");
|
||||
return child;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user