2014-07-26 07:12:56 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using RainmeterStudio.Model;
|
|
|
|
|
|
|
|
|
|
namespace RainmeterStudio.Documents.Text
|
|
|
|
|
{
|
2014-07-29 20:35:59 +00:00
|
|
|
|
public class TextEditor : IDocumentEditor
|
2014-07-26 07:12:56 +00:00
|
|
|
|
{
|
|
|
|
|
private TextDocument _document;
|
|
|
|
|
private TextEditorControl _control;
|
|
|
|
|
|
|
|
|
|
public TextEditor(TextDocument document)
|
|
|
|
|
{
|
|
|
|
|
_document = document;
|
|
|
|
|
_control = new TextEditorControl(document);
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-29 20:35:59 +00:00
|
|
|
|
public IDocument AttachedDocument
|
|
|
|
|
{
|
|
|
|
|
get { return _document; }
|
|
|
|
|
}
|
2014-07-26 07:12:56 +00:00
|
|
|
|
|
2014-07-29 20:35:59 +00:00
|
|
|
|
public System.Windows.UIElement EditorUI
|
|
|
|
|
{
|
|
|
|
|
get { return _control; }
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-07-26 07:12:56 +00:00
|
|
|
|
}
|