Added events to allow keystrokes to toggle change bars, continuous action summary, and placekeeper check boxes.
Made ribbon buttons for Superscript and Subscript public, also improved logic around the insert pagebreak button.
This commit is contained in:
@@ -1650,8 +1650,8 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public void btnInsPgBrk_Click(object sender, EventArgs e)
|
||||
{
|
||||
rtabInsert.Select();
|
||||
if (MyItemInfo.IsProcedure || MyItemInfo.IsSection) return;
|
||||
//rtabInsert.Select(); // insert page break is no longer visible on the ribbon
|
||||
if (MyItemInfo.IsProcedure || MyItemInfo.IsSection || !MyItemInfo.IsHigh) return;
|
||||
MyEditItem.SaveContents();
|
||||
// toggle manual page break
|
||||
StepConfig cfg = MyItemInfo.MyConfig as StepConfig;
|
||||
@@ -1891,14 +1891,14 @@ namespace Volian.Controls.Library
|
||||
btnCMUnderline.Checked = btnUnderline.Checked = RTBAPI.IsUnderline(_MyStepRTB);
|
||||
}
|
||||
|
||||
private void btnSuperscript_Click(object sender, EventArgs e)
|
||||
public void btnSuperscript_Click(object sender, EventArgs e)
|
||||
{
|
||||
StartGridEditing(SelectionOption.All);
|
||||
RTBAPI.ToggleSuperscript(!RTBAPI.IsSuperScript(_MyStepRTB), _MyStepRTB, _MyStepRTB.SelectionLength == 0 ? RTBAPI.RTBSelection.SCF_DEFAULT : RTBAPI.RTBSelection.SCF_SELECTION);
|
||||
btnCMSuperscript.Checked = btnSuperscript.Checked = RTBAPI.IsSuperScript(_MyStepRTB);
|
||||
}
|
||||
|
||||
private void btnSubscript_Click(object sender, EventArgs e)
|
||||
public void btnSubscript_Click(object sender, EventArgs e)
|
||||
{
|
||||
StartGridEditing(SelectionOption.All);
|
||||
RTBAPI.ToggleSubscript(!RTBAPI.IsSubScript(_MyStepRTB), _MyStepRTB, _MyStepRTB.SelectionLength == 0 ? RTBAPI.RTBSelection.SCF_DEFAULT : RTBAPI.RTBSelection.SCF_SELECTION);
|
||||
|
Reference in New Issue
Block a user