private void OnDamageOccured(DamageEvent e)
 {
     if (DamageOccured != null)
         DamageOccured(_editorControl, e);
 }
 public void HandleDamageOccured(object source, DamageEvent evt)
 {
     DumpDamagedRegions(evt.DamageRegions);
 }
 public void HandleDamageOccured(object source, DamageEvent evt)
 {
     DumpDamagedRegions(evt.DamageRegions);
 }
        protected void HandleSpellingDamage(object source, DamageEvent evt)
        {
            if (_spellingContext.CanSpellCheck)
            {
                foreach (MarkupRange range in evt.DamageRegions)
                {
                    if (!range.Positioned)
                        continue;

                    foreach (MarkupRange targetRange in IntersectWithEditableElements(range))
                        _spellingManager.DamagedRange(targetRange, _realTimeSpellCheckingStarted);
                }
            }
        }
        protected void HandleSpellingDamage(object source, DamageEvent evt)
        {
            //ToDo: OLW Spell Checker
            //if (_spellingContext.CanSpellCheck)
            //{
            //    foreach (MarkupRange range in evt.DamageRegions)
            //    {
            //        if (!range.Positioned)
            //            continue;

            //        foreach (MarkupRange targetRange in IntersectWithEditableElements(range))
            //            _spellingManager.DamagedRange(targetRange, _realTimeSpellCheckingStarted);
            //    }
            //}
        }