using System; using System.Collections.Generic; using System.Linq; using System.Text; using RainmeterStudio.Core; using RainmeterStudio.Core.Documents; using RainmeterStudio.Core.Model; namespace RainmeterStudio.SkinDesignerPlugin { /// /// Skin designer factory /// [PluginExport] public class SkinDesignerFactory : IDocumentEditorFactory { /// /// Creates a new editor object /// /// Document to be edited by the editor /// A new document editor public IDocumentEditor CreateEditor(IDocument document) { return new SkinDesigner((SkinDocument)document); } /// /// Tests if this editor can edit this document type /// /// Document type /// True if the editor can edit the document type public bool CanEdit(Type type) { return type.Equals(typeof(SkinDocument)); } } }