Home | History | Annotate | Download | only in Api

Lines Matching refs:Editor

54 #include "Editor.h"
159 // Lookup table mapping QWebPage::WebActions to the associated Editor commands
247 // Lookup the appropriate editor command to use for WebAction \a action
532 WebCore::Editor *editor = page->focusController()->focusedOrMainFrame()->editor();
557 case QWebPage::SelectAll: // editor command is always enabled
562 enabled = editor->canEdit();
566 // see if it's an editor command
569 // if it's an editor command, let it's logic determine state
571 Editor::Command command = editor->command(commandName);
749 if (focusFrame && (focusFrame->editor()->canCopy() || focusFrame->editor()->canDHTMLCopy())) {
750 Pasteboard::generalPasteboard()->writeSelection(focusFrame->editor()->selectedRange().get(), focusFrame->editor()->canSmartCopyOrDelete(), focusFrame);
754 if (focusFrame && (focusFrame->editor()->canPaste() || focusFrame->editor()->canDHTMLPaste())) {
755 focusFrame->editor()->paste();
907 // to trigger editor commands via triggerAction().
1056 WebCore::Editor *editor = frame->editor();
1058 if (!editor->canEdit()) {
1097 editor->setComposition(ev->preeditString(), underlines, qMin(a.start, (a.start + a.length)), qMax(a.start, (a.start + a.length)));
1101 if (editor->hasComposition() && (a.start + a.length == 0))
1102 editor->setComposition(QString(), underlines, 0, 0);
1114 editor->confirmComposition(ev->commitString());
1116 if (editor->hasComposition())
1117 editor->confirmComposition(ev->commitString());
1119 editor->insertText(ev->commitString(), 0);
1121 editor->setComposition(ev->preeditString(), underlines, 0, 0);
1122 else if (ev->preeditString().isEmpty() && editor->hasComposition())
1123 editor->confirmComposition(String());
1231 WebCore::Editor* editor = frame->editor();
1232 if (editor->canEdit()) {
1385 WebCore::Editor* editor = frame->editor();
1413 if (editor->hasComposition())
1420 RefPtr<Range> range = editor->compositionRange();
1428 if (!editor->hasComposition() && renderTextControl) {
1438 if (editor->hasComposition())
2320 WebCore::Editor *editor = frame->editor();
2347 editor->copyURL(d->hitTestResult.linkUrl(), d->hitTestResult.linkText());
2350 editor->copyURL(d->hitTestResult.linkUrl(), d->hitTestResult.linkText());
2387 editor->setBaseWritingDirection(NaturalWritingDirection);
2390 editor->setBaseWritingDirection(LeftToRightWritingDirection);
2393 editor->setBaseWritingDirection(RightToLeftWritingDirection);
2421 editor->command(command).execute();
2689 return frame->editor()->selectedText();
2704 return d->page->focusController()->focusedOrMainFrame()->editor()->selectedRange()->toHTML();
3179 frame->editor()->applyEditingStyleToBodyElement();