Пример #1
0
 internal void _fireComponentCreated(RmlWysiwygComponent component)
 {
     if (ComponentCreated != null)
     {
         ComponentCreated.Invoke(this, component);
     }
 }
Пример #2
0
 /// <summary>
 /// Delete the element from the document if needed. Returns true if changes have been made and the document needs refreshing.
 /// </summary>
 /// <param name="component"></param>
 /// <returns>True if changes are made.</returns>
 public bool deleteIfNeeded(RmlWysiwygComponent component)
 {
     if (checkDeleteOnClose)
     {
         return(elementStrategy.delete(element, this, component));
     }
     return(false); //No changes made
 }
Пример #3
0
        /// <summary>
        /// Apply the changes this editor has to the element. Returns true if changes have been made and the document needs refreshing.
        /// </summary>
        /// <param name="component"></param>
        /// <returns>True if changes are made.</returns>
        public bool applyChanges(RmlWysiwygComponent component, out TwoWayCommand additionalUndoOperations)
        {
            if (hasChanges)
            {
                hasChanges = false;
                return(elementStrategy.applyChanges(element, this, component, out additionalUndoOperations));
            }

            additionalUndoOperations = null;
            return(false);
        }
Пример #4
0
 public virtual bool delete(Element element, RmlElementEditor editor, RmlWysiwygComponent component)
 {
     return(false);
 }
Пример #5
0
 public virtual bool applyChanges(Element element, RmlElementEditor editor, RmlWysiwygComponent component, out TwoWayCommand additionalUndoOperations)
 {
     additionalUndoOperations = null;
     return(false);
 }
 public DraggingElementManager(RmlWysiwygComponent rmlComponent)
 {
     this.rmlComponent       = rmlComponent;
     this.dragIconPreview    = (ImageBox)Gui.Instance.createWidgetT("ImageBox", "ImageBox", 0, 0, 32, 32, Align.Default, "Info", "");
     dragIconPreview.Visible = false;
 }