stuff-from-scratch/apps/notes_tk/text_editor/PlainTextDocument.cpp

28 lines
413 B
C++
Raw Normal View History

2020-06-27 09:47:30 +00:00
#include "PlainTextDocument.h"
PlainTextDocument::PlainTextDocument()
: mContent()
{
}
2023-12-21 09:18:44 +00:00
Ptr<PlainTextDocument> PlainTextDocument::Create()
2020-06-27 09:47:30 +00:00
{
return std::make_unique<PlainTextDocument>();
}
2023-12-21 09:18:44 +00:00
String PlainTextDocument::GetContent() const
2020-06-27 09:47:30 +00:00
{
return mContent;
}
2023-12-21 09:18:44 +00:00
void PlainTextDocument::SetContent(const String& content)
2020-06-27 09:47:30 +00:00
{
mContent = content;
}
void PlainTextDocument::Clear()
{
mContent = "";
}