255Q_DECLARE_INTERFACE (
IEditorWidget,
"org.Deviant.LeechCraft.IEditorWidget/1.0")
Interface for plugins implementing a text editor component.
virtual QWidget * GetTextEditor(LC::ContentType type)=0
Creates and returns a new text editor for the given type.
virtual bool SupportsEditor(LC::ContentType type) const =0
Whether this editor plugin supports editing the content type.
EditorAction
Enumeration for some standard editor actions.
@ Replace
Open "Replace" dialog.
@ Bold
Toggle the boldness of the selected text's font.
@ Italic
Toggle the italicness of the selected text's font.
@ ToggleView
Toggle between WYSIWYG and source view, if applicable.
@ Find
Open "Find" dialog.
@ Underline
Toggle underlining of the selected text's font.
@ InsertLink
Open the dialog for inserting a hyperlink.
@ InsertImage
Open the dialog for inserting an image.