using System; using System.Collections.Generic; using System.Linq; using System.Text; using RainmeterStudio.Storage; namespace RainmeterStudio.Model { public interface IDocumentEditorFactory { /// /// Name of the editor /// string EditorName { get; } /// /// Formats that will be used to populate the 'create document' dialog /// IEnumerable CreateDocumentFormats { get; } /// /// Creates a new editor object /// /// Document to be edited by the editor /// A new document editor IDocumentEditor CreateEditor(IDocument document); /// /// Creates a new document /// /// A new document IDocument CreateDocument(DocumentTemplate format, string path); /// /// Gets the storage of this factory /// IDocumentStorage Storage { get; } } }