2020-06-27 09:47:30 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "PlainTextDocument.h"
|
2023-12-27 12:20:02 +00:00
|
|
|
#include "Pointer.h"
|
2020-06-27 09:47:30 +00:00
|
|
|
|
|
|
|
class TextEditorModel
|
|
|
|
{
|
|
|
|
PlainTextDocumentUPtr mDocument;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
TextEditorModel();
|
|
|
|
|
2023-12-21 09:18:44 +00:00
|
|
|
static Ptr<TextEditorModel> Create();
|
2020-06-27 09:47:30 +00:00
|
|
|
|
|
|
|
PlainTextDocument* GetDocument() const;
|
|
|
|
};
|
|
|
|
|
2023-12-21 09:18:44 +00:00
|
|
|
using TextEditorModelUPtr = Ptr<TextEditorModel>;
|