Added project templates, work on document template

This commit is contained in:
2014-08-16 00:39:31 +03:00
parent ef8aec25b7
commit 5f4dead9ec
30 changed files with 373 additions and 130 deletions

View File

@ -0,0 +1,34 @@
using System.Collections.Generic;
using System.Linq;
using RainmeterStudio.Core.Model;
namespace RainmeterStudio.Core.Model
{
/// <summary>
/// Represents a document template
/// </summary>
public interface IDocumentTemplate
{
/// <summary>
/// Gets the document template name
/// </summary>
string Name { get; }
/// <summary>
/// Gets the default extension of this template
/// </summary>
string DefaultExtension { get; }
/// <summary>
/// Gets or sets the properties of this template
/// </summary>
/// <remarks>Properties are used to display a form dialog after the "New item" dialog closes.</remarks>
IEnumerable<Property> Properties { get; }
/// <summary>
/// Creates a document using this template
/// </summary>
/// <returns>Created document.</returns>
IDocument CreateDocument();
}
}

View File

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RainmeterStudio.Core.Model
{
/// <summary>
/// Project template interface
/// </summary>
public interface IProjectTemplate
{
/// <summary>
/// Gets or sets the name of the template
/// </summary>
string Name { get; }
/// <summary>
/// Gets or sets the properties of this template
/// </summary>
/// <remarks>Properties are used to display a form dialog after the "New project" dialog closes.</remarks>
IEnumerable<Property> Properties { get; }
/// <summary>
/// Creates a project.
/// </summary>
/// <returns>Created project</returns>
Project CreateProject();
}
}