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.TextEditorPlugin { /// /// A blank text document template /// [PluginExport] public class TextDocumentTemplate : IDocumentTemplate { /// /// Gets the document template name /// public string Name { get { return "Text"; } } /// /// Gets the default extension of this template /// public string DefaultExtension { get { return "txt"; } } /// /// Gets or sets the properties of this template /// public IEnumerable Properties { get { return Enumerable.Empty(); } } /// /// Creates a document using this template /// /// Created document. public IDocument CreateDocument() { return new TextDocument(); } } }