20 lines
324 B
C
20 lines
324 B
C
|
#pragma once
|
||
|
|
||
|
#include "PlainTextDocument.h"
|
||
|
#include <memory>
|
||
|
|
||
|
class TextEditorModel
|
||
|
{
|
||
|
PlainTextDocumentUPtr mDocument;
|
||
|
|
||
|
public:
|
||
|
|
||
|
TextEditorModel();
|
||
|
|
||
|
static std::unique_ptr<TextEditorModel> Create();
|
||
|
|
||
|
PlainTextDocument* GetDocument() const;
|
||
|
};
|
||
|
|
||
|
using TextEditorModelUPtr = std::unique_ptr<TextEditorModel>;
|