36 #include <QVariantMap>
182 virtual void AppendAction (QAction *action) = 0;
186 virtual void AppendSeparator () = 0;
197 virtual void RemoveAction (QAction *action) = 0;
217 virtual void textChanged () = 0;
319 virtual void InsertHTML (
const QString& html) = 0;
330 virtual void SetCustomTags (
const CustomTags_t& tags) = 0;
349 virtual QAction* AddInlineTagInserter (
const QString& tagName,
const QVariantMap& params) = 0;
355 virtual void ExecJS (
const QString& js) = 0;
std::function< bool(QDomElement &)> FromKnown_
The converter of an instance of the tag from HTML.
QPair< QRegExp, QString > Replacement_t
virtual ~IAdvancedHTMLEditor()
QList< Replacement_t > Replacements_t
Toggle underlining of the selected text's font.
Q_DECLARE_INTERFACE(IEditorWidget,"org.Deviant.LeechCraft.IEditorWidget/1.0")
Open the dialog for inserting a hyperlink.
QString TagName_
The name of the custom tag, like lj.
QList< CustomTag > CustomTags_t
EditorAction
Enumeration for some standard editor actions.
Describes a single custom tag.
Toggle the italicness of the selected text's font.
Interface for plugins implementing a text editor component.
std::function< void(QDomElement &)> ToKnown_
The converter of an instance of the tag to HTML.
Toggle between WYSIWYG and source view, if applicable.
Interface for HTML/WYSIWYG editors with some advanced functionality.
Open the dialog for inserting an image.
Toggle the boldness of the selected text's font.