Don’t allow insert before/after on Table, Figure, or RNO
This commit is contained in:
@@ -434,7 +434,8 @@ namespace Volian.Controls.Library
|
||||
// turn ribbon items on/off base on whether there is text in the edit window
|
||||
rbnSiblings.Enabled = rbnBreaks.Enabled = rbnStepParts.Enabled = allow;
|
||||
// only turn on the Insert Before/After and the CopyStep buttons if on a step part
|
||||
btnInsAftH.Enabled = btnInsBefH.Enabled = btnInsAfter.Enabled = btnInsBefore.Enabled = btnCpyStp.Enabled = allow && !(MyItemInfo.IsProcedure || MyItemInfo.IsSection);
|
||||
btnInsAftH.Enabled = btnInsBefH.Enabled = btnInsAfter.Enabled = btnInsBefore.Enabled = btnCpyStp.Enabled =
|
||||
allow && !(MyItemInfo.IsProcedure || MyItemInfo.IsSection || MyItemInfo.IsFigure || MyItemInfo.IsTable || MyItemInfo.IsRNOPart);
|
||||
rbPdf.Enabled = allow;
|
||||
|
||||
// toggle context menus used with the shortcut key
|
||||
|
Reference in New Issue
Block a user