2014-07-29 20:35:59 +00:00
|
|
|
|
using RainmeterStudio.Model;
|
|
|
|
|
namespace RainmeterStudio.Documents
|
2014-07-29 16:42:52 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a document template
|
|
|
|
|
/// </summary>
|
|
|
|
|
public abstract class DocumentTemplate
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the document template name
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the default extension of this template
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DefaultExtension { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes the document template
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">Name of template</param>
|
|
|
|
|
/// <param name="defaultExtension">Default extension</param>
|
|
|
|
|
public DocumentTemplate(string name, string defaultExtension)
|
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
DefaultExtension = defaultExtension;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a document using this template
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public abstract IDocument CreateDocument();
|
|
|
|
|
}
|
|
|
|
|
}
|