Bug 24746 - [Qt] Additional editing related QWebPage WebActions
Summary: [Qt] Additional editing related QWebPage WebActions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-21 21:58 PDT by Erik L. Bunce
Modified: 2009-03-27 04:54 PDT (History)
1 user (show)

See Also:


Attachments
Adds editing related WebActions and improves selection / editing tests. (16.30 KB, patch)
2009-03-21 22:03 PDT, Erik L. Bunce
no flags Details | Formatted Diff | Diff
Adds editing related WebActions and improves selection / editing tests. (15.92 KB, patch)
2009-03-26 18:13 PDT, Erik L. Bunce
hausmann: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik L. Bunce 2009-03-21 21:58:23 PDT
Some additional editing related QWebPage WebActions would make Qt WebKit more useful as an embedded editor.
 * Clipboard: PasteAndMatchStyle
 * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and ToggleSuperscript
 * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent
 * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight 

Also the selection / editing related ports of the qwebpage test harness could use some enhancement.
Comment 1 Erik L. Bunce 2009-03-21 22:03:37 PDT
Created attachment 28829 [details]
Adds editing related WebActions and improves selection / editing tests.

Adds the following WebActions:
+ PasteAndMatchStyle - Paste content from the clipboard with current style.
+ RemoveFormat - Removes formatting and style.
+ ToggleStrikethrough - Toggle the formatting between strikethrough and normal style.
+ ToggleSubscript - Toggle the formatting between subscript and baseline.
+ ToggleSuperscript - Toggle the formatting between supercript and baseline.
+ InsertUnorderedList - Toggles the selection between an ordered list and a normal block.
+ InsertOrderedList - Toggles the selection between an ordered list and a normal block.
+ Indent - Increases the indentation of the currently selected format block by one increment.
+ Outdent - Decreases the indentation of the currently selected format block by one increment.
+ AlignCenter - Applies center alignment to content.
+ AlignJustified - Applies full justification to content.
+ AlignLeft - Applies left justification to content.
+ AlignRight - Applies right justification to content.

Improved selection and editing tests.
Comment 2 Erik L. Bunce 2009-03-26 18:13:13 PDT
Created attachment 28996 [details]
Adds editing related WebActions and improves selection / editing tests.

Adjusted to separate out the other test case fix, as per Simon's request.
Comment 3 Simon Hausmann 2009-03-27 04:51:04 PDT
Comment on attachment 28996 [details]
Adds editing related WebActions and improves selection / editing tests.

Thanks Erik :)
Comment 4 Simon Hausmann 2009-03-27 04:54:33 PDT
Landed in r42032