![]() |
LeechCraft
0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
|
Describes a single custom tag. More...
#include "itexteditor.h"
Public Attributes | |
QString | TagName_ |
The name of the custom tag, like lj. More... | |
std::function< void(QDomElement &)> | ToKnown_ |
The converter of an instance of the tag to HTML. More... | |
std::function< bool(QDomElement &)> | FromKnown_ |
The converter of an instance of the tag from HTML. More... | |
Describes a single custom tag.
Definition at line 250 of file itexteditor.h.
std::function<bool (QDomElement&)> IAdvancedHTMLEditor::CustomTag::FromKnown_ |
The converter of an instance of the tag from HTML.
This function is invoked to convert an instance of the tag (passed as a QDomElement) from HTML. The conversion should be done in-place: the resulting XML should be contained in the passed QDomElement.
An example function that turns back the boldified <lj user="$username"/>
got from CustomTag::ToKnown_:
One can leave this function unset, in this case the tag will marked as non-modifyable.
This function should return true if the convertation succeeded, otherwise it should return false.
Definition at line 308 of file itexteditor.h.
QString IAdvancedHTMLEditor::CustomTag::TagName_ |
The name of the custom tag, like lj.
Definition at line 254 of file itexteditor.h.
std::function<void (QDomElement&)> IAdvancedHTMLEditor::CustomTag::ToKnown_ |
The converter of an instance of the tag to HTML.
This function is invoked to convert an instance of the tag (passed as a QDomElement) to HTML. The conversion should be done in-place: the resulting HTML should be contained in the passed QDomElement.
An example function that boldifies <lj user="$username"/>
:
Definition at line 276 of file itexteditor.h.