2014-07-29 16:42:52 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
2014-08-12 13:33:13 +00:00
|
|
|
|
using RainmeterStudio.Core.Model;
|
2014-07-29 16:42:52 +00:00
|
|
|
|
|
2014-08-12 13:33:13 +00:00
|
|
|
|
namespace RainmeterStudio.Core.Documents
|
2014-07-29 16:42:52 +00:00
|
|
|
|
{
|
|
|
|
|
public interface IDocumentEditorFactory
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a new editor object
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="document">Document to be edited by the editor</param>
|
|
|
|
|
/// <returns>A new document editor</returns>
|
|
|
|
|
IDocumentEditor CreateEditor(IDocument document);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Tests if this editor can edit this document type
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="type">Document type</param>
|
|
|
|
|
/// <returns>True if the editor can edit the document type</returns>
|
|
|
|
|
bool CanEdit(Type type);
|
|
|
|
|
}
|
|
|
|
|
}
|