Changed CheckOffs
Made DisplayText more generic Added comments - Added parameter to DisplayText - Removed specific OutlineTable
This commit is contained in:
@@ -68,7 +68,6 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
#endregion
|
||||
#region Properties and Variables
|
||||
|
||||
private static FontFamily _MyFontFamily = null;
|
||||
public static FontFamily MyFontFamily
|
||||
{
|
||||
@@ -196,7 +195,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
_InitializingRTB = true;
|
||||
_SelectedRtfSB.Remove(0, _SelectedRtfSB.Length);
|
||||
DisplayText vlntxt = new DisplayText(_MyItemInfo, EpMode, VwMode, !edit, FieldToEdit);
|
||||
DisplayText vlntxt = new DisplayText(_MyItemInfo, EpMode, VwMode, !edit, FieldToEdit, true);
|
||||
//if (_origDisplayText != null && vlntxt.StartText == _origDisplayText.StartText)
|
||||
//{
|
||||
// ReadOnly = !(EpMode == E_EditPrintMode.Edit && VwMode == E_ViewMode.Edit);
|
||||
@@ -243,9 +242,14 @@ namespace Volian.Controls.Library
|
||||
RemoveEventHandlers();
|
||||
if ((!_MyItemInfo.IsSection && !_MyItemInfo.IsProcedure) && (_MyItemInfo.IsTable || _MyItemInfo.IsFigure))
|
||||
{
|
||||
int typ = ((int)_MyItemInfo.MyContent.Type) % 10000;
|
||||
OutlineTable(_MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[typ].Type.IndexOf(@"Borderless")<0);
|
||||
FindAllLinks();
|
||||
int newwidth = (int)_MyStepItem.TableWidth(Font, Text, true);
|
||||
if (_MyStepItem.ItemWidth != newwidth)
|
||||
{
|
||||
_MyStepItem.ItemWidth = newwidth;
|
||||
}
|
||||
// int typ = ((int)_MyItemInfo.MyContent.Type) % 10000;
|
||||
// OutlineTable(_MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[typ].Type.IndexOf(@"Borderless")<0);
|
||||
// FindAllLinks();
|
||||
}
|
||||
SelectAll();
|
||||
if (SelectionHangingIndent !=0) SelectionHangingIndent = 0;
|
||||
@@ -396,7 +400,7 @@ namespace Volian.Controls.Library
|
||||
this.KeyUp += new KeyEventHandler(StepRTB_KeyUp);
|
||||
this.TextChanged += new EventHandler(StepRTB_TextChanged);
|
||||
this.MouseUp += new MouseEventHandler(StepRTB_MouseUp);
|
||||
this.MouseDown += new MouseEventHandler(StepRTB_MouseDown);
|
||||
this.MouseDown += new MouseEventHandler(StepRTB_MouseDown);
|
||||
this.MouseLeave += new EventHandler(StepRTB_MouseLeave);
|
||||
this.SelectionChanged +=new EventHandler(StepRTB_SelectionChanged);
|
||||
this.ContextMenuStripChanged += new EventHandler(StepRTB_ContextMenuStripChanged);
|
||||
@@ -425,7 +429,6 @@ namespace Volian.Controls.Library
|
||||
Console.WriteLine("{0} - {1}", ex.GetType().Name, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetUpStepRTB()
|
||||
{
|
||||
C1SpellChecker2.SetActiveSpellChecking(this, true);
|
||||
@@ -472,7 +475,7 @@ namespace Volian.Controls.Library
|
||||
_MouseDown = false;
|
||||
//Console.WriteLine("^^^^^^^^^^ StepRTB Mouse Up id= {0}", MyItemInfo.ItemID);
|
||||
|
||||
if (this.Focused) // Only HandleSelectionChange if this control has focus.
|
||||
if(this.Focused) // Only HandleSelectionChange if this control has focus.
|
||||
{
|
||||
HandleSelectionChange();
|
||||
// save our context menu to add to the spell checker's context menu
|
||||
|
Reference in New Issue
Block a user