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]
|
|
|
|
|
public class SkinDocumentTemplate : DocumentTemplate
|
2014-08-12 13:33:13 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes this skin template
|
|
|
|
|
/// </summary>
|
2014-08-14 07:06:20 +00:00
|
|
|
|
public SkinDocumentTemplate()
|
2014-08-15 12:31:33 +00:00
|
|
|
|
: base("Skin", "rsskin")
|
2014-08-12 13:33:13 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a new document using this template
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>Newly created document</returns>
|
|
|
|
|
public override IDocument CreateDocument()
|
|
|
|
|
{
|
|
|
|
|
return new SkinDocument();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|