2014-07-26 07:12:56 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
2014-09-12 10:26:52 +00:00
|
|
|
|
using RainmeterStudio.Core.Editor;
|
2014-08-12 13:33:13 +00:00
|
|
|
|
using RainmeterStudio.Core.Model;
|
2014-07-26 07:12:56 +00:00
|
|
|
|
|
2014-08-12 13:33:13 +00:00
|
|
|
|
namespace RainmeterStudio.TextEditorPlugin
|
2014-07-26 07:12:56 +00:00
|
|
|
|
{
|
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
|
|
|
|
}
|