KHTML
#include <editor.h>
Public Types | |
enum | TriState { FalseTriState, TrueTriState, MixedTriState } |
Public Member Functions | |
void | appliedEditing (khtml::EditCommandImpl *) |
void | applyStyle (DOM::CSSStyleDeclarationImpl *) |
bool | canPaste () const |
bool | canRedo () const |
bool | canUndo () const |
void | clearTypingStyle () |
void | closeTyping () |
void | copy () |
void | cut () |
bool | execCommand (const DOMString &command, bool userInterface, const DOMString &value) |
bool | execCommand (EditorCommand, bool userInterface, const DOMString &value) |
void | indent () |
WTF::PassRefPtr < khtml::EditCommandImpl > | lastEditCommand () const |
void | outdent () |
void | paste () |
void | print () |
bool | queryCommandEnabled (const DOMString &command) |
bool | queryCommandEnabled (EditorCommand) |
bool | queryCommandIndeterm (const DOMString &command) |
bool | queryCommandIndeterm (EditorCommand) |
bool | queryCommandState (const DOMString &command) |
bool | queryCommandState (EditorCommand) |
bool | queryCommandSupported (const DOMString &command) |
bool | queryCommandSupported (EditorCommand) |
DOMString | queryCommandValue (const DOMString &command) |
DOMString | queryCommandValue (EditorCommand) |
void | reappliedEditing (khtml::EditCommandImpl *) |
void | redo () |
DOM::CSSStyleDeclarationImpl * | selectionComputedStyle (DOM::NodeImpl *&nodeToRemove) const |
TriState | selectionHasStyle (DOM::CSSStyleDeclarationImpl *) const |
bool | selectionStartHasStyle (DOM::CSSStyleDeclarationImpl *) const |
DOM::DOMString | selectionStartStylePropertyValue (int stylePropertyID) const |
void | setTypingStyle (DOM::CSSStyleDeclarationImpl *) |
DOM::CSSStyleDeclarationImpl * | typingStyle () const |
void | unappliedEditing (khtml::EditCommandImpl *) |
void | undo () |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
This class resembles the editing API when the associated khtml document is editable (in design mode), or contains editable elements.
FIXME: document this thoroughly
API to Wysiwyg Markup-Editor.
Member Enumeration Documentation
Member Function Documentation
void Editor::appliedEditing | ( | khtml::EditCommandImpl * | cmd | ) |
Called when editing has been applied.
Definition at line 404 of file editor.cpp.
void Editor::applyStyle | ( | DOM::CSSStyleDeclarationImpl * | ) |
applies the given style to the current selection
Definition at line 230 of file editor.cpp.
bool Editor::canPaste | ( | ) | const |
returns whether clipboard contains data to be pasted
Definition at line 198 of file editor.cpp.
bool Editor::canRedo | ( | ) | const |
returns whether any actions can be redone
Definition at line 220 of file editor.cpp.
bool Editor::canUndo | ( | ) | const |
returns whether any actions can be undone
Definition at line 225 of file editor.cpp.
void Editor::clearTypingStyle | ( | ) |
Clears the typing style for the document.
Definition at line 479 of file editor.cpp.
void Editor::closeTyping | ( | ) |
Definition at line 484 of file editor.cpp.
void Editor::copy | ( | ) |
copy selection to clipboard
Definition at line 175 of file editor.cpp.
void Editor::cut | ( | ) |
cut selection and insert into clipboard
Definition at line 180 of file editor.cpp.
Executes the given editor command.
- Parameters
-
command name of command userInterface whether a user interface should be used to input data. This is command dependent. value value for command. Its semantic depends on the command.
Definition at line 103 of file editor.cpp.
bool Editor::execCommand | ( | EditorCommand | command, |
bool | userInterface, | ||
const DOMString & | value | ||
) |
Executes the given built-in editor command.
- Parameters
-
EditorCommand index of command userInterface whether a user interface should be used to input data. This is command dependent. value value for command. Its semantic depends on the command.
Definition at line 139 of file editor.cpp.
void Editor::indent | ( | ) |
indent/outdent current selection
Definition at line 491 of file editor.cpp.
PassRefPtr< EditCommandImpl > Editor::lastEditCommand | ( | ) | const |
Returns the most recent edit command applied.
Definition at line 399 of file editor.cpp.
void Editor::outdent | ( | ) |
Definition at line 498 of file editor.cpp.
void Editor::paste | ( | ) |
paste into current selection from clipboard
Definition at line 186 of file editor.cpp.
void Editor::print | ( | ) |
prints the current document
Definition at line 193 of file editor.cpp.
Checks whether the given command is enabled.
Definition at line 109 of file editor.cpp.
bool Editor::queryCommandEnabled | ( | EditorCommand | command | ) |
Checks whether the given command is enabled.
Definition at line 145 of file editor.cpp.
Checks whether the given command's style is indeterminate.
Definition at line 115 of file editor.cpp.
bool Editor::queryCommandIndeterm | ( | EditorCommand | command | ) |
Checks whether the given command's style is indeterminate.
Definition at line 151 of file editor.cpp.
Checks whether the given command's style is state.
Definition at line 121 of file editor.cpp.
bool Editor::queryCommandState | ( | EditorCommand | command | ) |
Checks whether the given command's style is state.
Definition at line 157 of file editor.cpp.
Checks whether the given command is supported in the current context.
Definition at line 127 of file editor.cpp.
bool Editor::queryCommandSupported | ( | EditorCommand | command | ) |
Checks whether the given command is supported in the current context.
Definition at line 163 of file editor.cpp.
Returns the given command's value.
Definition at line 133 of file editor.cpp.
DOMString Editor::queryCommandValue | ( | EditorCommand | command | ) |
Returns the given command's value.
Definition at line 169 of file editor.cpp.
void Editor::reappliedEditing | ( | khtml::EditCommandImpl * | cmd | ) |
Called when editing has been reapplied.
Definition at line 447 of file editor.cpp.
void Editor::redo | ( | ) |
redo last undone action
Definition at line 204 of file editor.cpp.
CSSStyleDeclarationImpl * Editor::selectionComputedStyle | ( | DOM::NodeImpl *& | nodeToRemove | ) | const |
computed style of current selection
Definition at line 361 of file editor.cpp.
Editor::TriState Editor::selectionHasStyle | ( | DOM::CSSStyleDeclarationImpl * | ) | const |
returns whether the selection has got applied the given style
Definition at line 271 of file editor.cpp.
bool Editor::selectionStartHasStyle | ( | DOM::CSSStyleDeclarationImpl * | ) | const |
returns whether the selection has got applied the given style
Definition at line 308 of file editor.cpp.
DOMString Editor::selectionStartStylePropertyValue | ( | int | stylePropertyID | ) | const |
?
Definition at line 341 of file editor.cpp.
void Editor::setTypingStyle | ( | DOM::CSSStyleDeclarationImpl * | ) |
Sets the typing style for the document.
Definition at line 469 of file editor.cpp.
CSSStyleDeclarationImpl * Editor::typingStyle | ( | ) | const |
Returns the typing style for the document.
Definition at line 464 of file editor.cpp.
void Editor::unappliedEditing | ( | khtml::EditCommandImpl * | cmd | ) |
Called when editing has been unapplied.
Definition at line 429 of file editor.cpp.
void Editor::undo | ( | ) |
undo last action
Definition at line 212 of file editor.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.