Files
WebODF/webodf/tests/test.odt
T
Philip Peitsch 1d6637acc8 Created undo states to revert clumps of operations
These undo rules attempts to implement undo/redo behaviour similar to
how LibreOffice behaves.

An undo state starts on an edit Operation. An undo state can be:
- One or more text inserts in the same direction
- One or more text removes in the same direction
- Any other individual edit operation (e.g., split paragraph, style
text, modify paragraph style)
-An undo state includes any trailing non-edit operations such as cursor
move.

There are challenges going backwards and forwards on separate op stacks
and generating identical states each time. As such, this has been implemented
by storing the operation into the state it's relevant to upon execution (rather
than traversal), and never splitting or modifying these during movements forwards
and backwards.
2013-07-09 15:03:53 +02:00

4.0 KiB