MD::Text Class
class MD::TextText item in Paragraph. More...
| Header: | #include <md4qt/doc.h> |
| CMake: | find_package(md4qt REQUIRED COMPONENTS md4qt)target_link_libraries(mytarget PRIVATE md4qt::md4qt) |
| Inherits: | MD::ItemWithOpts |
| Inherited By: |
Public Functions
| Text() | |
| void | applyText(const MD::Text &t) |
| const QString & | markdownContent() const |
| void | setMarkdownContent(const QString &v) |
| void | setText(const QString &t) |
| const QString & | text() const |
Reimplemented Public Functions
| virtual Item::SharedPointer | clone(MD::Document *doc = nullptr) const override |
| virtual MD::ItemType | type() const override |
| virtual void | write(QTextStream &stream, MD::SerialiseHelper *helper) const override |
Detailed Description
Regular text in paragraph. Information in these items in paragraph is a subject for custom plugins implementation.
Member Function Documentation
Text::Text()
Default constructor.
See also setText().
void Text::applyText(const MD::Text &t)
Apply other text to this.
t Value to apply.
[override virtual] Item::SharedPointer Text::clone(MD::Document *doc = nullptr) const
Reimplements: Item::clone(MD::Document *doc) const.
Clone this text item.
doc Parent of new item.
const QString &Text::markdownContent() const
Returns original Markdown content.
See also setMarkdownContent().
void Text::setMarkdownContent(const QString &v)
Set original Markdown content.
v Value.
See also markdownContent().
void Text::setText(const QString &t)
Set text content.
t New value.
See also text().
const QString &Text::text() const
Returns text content.
See also setText().
[override virtual] MD::ItemType Text::type() const
Reimplements: Item::type() const.
Returns type of the item.
[override virtual] void Text::write(QTextStream &stream, MD::SerialiseHelper *helper) const
Reimplements: Item::write(QTextStream &stream, MD::SerialiseHelper *helper) const.
Serialise item into Markdown.
stream Stream.
helper Serialisation helper.