internal void _fireComponentCreated(RmlWysiwygComponent component) { if (ComponentCreated != null) { ComponentCreated.Invoke(this, component); } }
/// <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 }
/// <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); }
public virtual bool delete(Element element, RmlElementEditor editor, RmlWysiwygComponent component) { return(false); }
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; }