stuff-from-scratch/apps/notes_tk/text_editor/PlainTextDocument.cpp
2023-12-21 09:18:44 +00:00

27 lines
413 B
C++

#include "PlainTextDocument.h"
PlainTextDocument::PlainTextDocument()
: mContent()
{
}
Ptr<PlainTextDocument> PlainTextDocument::Create()
{
return std::make_unique<PlainTextDocument>();
}
String PlainTextDocument::GetContent() const
{
return mContent;
}
void PlainTextDocument::SetContent(const String& content)
{
mContent = content;
}
void PlainTextDocument::Clear()
{
mContent = "";
}