2014-08-12 13:33:13 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
2014-08-14 07:06:20 +00:00
|
|
|
|
using RainmeterStudio.Core;
|
2014-08-12 13:33:13 +00:00
|
|
|
|
using RainmeterStudio.Core.Documents;
|
|
|
|
|
using RainmeterStudio.Core.Model;
|
|
|
|
|
|
|
|
|
|
namespace RainmeterStudio.SkinDesignerPlugin
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Template of a skin which will be opened in the designer
|
|
|
|
|
/// </summary>
|
2014-08-14 07:06:20 +00:00
|
|
|
|
[PluginExport]
|
2014-08-15 21:39:31 +00:00
|
|
|
|
public class SkinDocumentTemplate : IDocumentTemplate
|
2014-08-12 13:33:13 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2014-08-15 21:39:31 +00:00
|
|
|
|
/// Gets the document template name
|
2014-08-12 13:33:13 +00:00
|
|
|
|
/// </summary>
|
2014-08-15 21:39:31 +00:00
|
|
|
|
public string Name
|
2014-08-12 13:33:13 +00:00
|
|
|
|
{
|
2014-08-15 21:39:31 +00:00
|
|
|
|
get { return "Skin"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the default extension of this template
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DefaultExtension
|
|
|
|
|
{
|
|
|
|
|
get { return "rsskin"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the properties of this template
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<Property> Properties
|
|
|
|
|
{
|
|
|
|
|
get { return Enumerable.Empty<Property>(); }
|
2014-08-12 13:33:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a new document using this template
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>Newly created document</returns>
|
2014-08-15 21:39:31 +00:00
|
|
|
|
public IDocument CreateDocument()
|
2014-08-12 13:33:13 +00:00
|
|
|
|
{
|
|
|
|
|
return new SkinDocument();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|