Commit Graph
16 Commits
Author SHA1 Message Date
Philip Peitsch 135c8affc9 Support range selection in edit mode
Works similarly to the existing cursor. A node is
placed in for the start and end positions of a cursor.

The window selection is updated based on cursor moved events.
The selection sync logic really belongs in SessionView. However,
as only a single selection is supported in the current
implementation, this has been temporarily put into SessionController.

A new function OdtDocument.getCursorSelection has been added
to make it trivial to support range-selection operations.

* Move responsibility for setting the memberId into Cursor to
  allow proper hiding of anchor node
2013-06-20 02:26:29 +10:00
Friedrich W. H. Kossebau a395556e79 Change the spec of OpMoveCursor to contain the absolute target position, not a relative one 2013-06-19 14:36:52 +02:00
Friedrich W. H. Kossebau 11e1a7666d Make all ops only depend on global ops 2013-04-09 13:45:33 +02:00
Friedrich W. H. Kossebau 263002f70f Update Copyright years of ops code files 2013-04-09 13:45:33 +02:00
Friedrich W. H. Kossebau 16f634ce1a Have ops return the success of their execute 2013-04-09 13:45:33 +02:00
Friedrich W. H. Kossebau 6f5ced4d1e Do not pass session as parameter to the ops contructors, pass odtDocument instead of domroot in the execute method 2013-04-09 13:45:33 +02:00
Friedrich W. H. Kossebau 7868d6bfa3 Move eventNotifier from ops.Session to ops.OdtDocument 2013-04-09 13:45:33 +02:00
Tobias Hintze 66eb0054d0 rename SessionImplementation to Session (and thus remove the Session-interface) 2013-03-26 14:15:02 +01:00
Tobias Hintze c23067a494 removing verbosity on js console 2013-03-20 15:48:21 +01:00
Aditya Bhatt 9d8bd8e063 Add timestamp fields to operation specs 2013-03-14 18:21:03 +05:30
Friedrich W. H. Kossebau 6a568a8f58 Split ops.OdtCursor from core.Cursor & rename ops.Document to ops.OdtDocument
Also:
* rename gui.CaretTests to ops.OdtCursorTests (as it is testing ops.OdtCursor)
* remove test-less CaretTests.js, had broken setup now
2013-03-06 15:44:28 +01:00
Jos van den Oever 8b0c05095b Update iterator position properly for inserting a cursor for another user in the same text node. 2012-11-15 11:24:56 +01:00
Tobias Hintze d570930902 OpMoveCursor: add assertion on cursor-availability 2012-11-11 00:54:03 +01:00
Jos van den Oever 155bf9a4d3 Whitespace fixes. 2012-11-10 11:35:21 +01:00
Friedrich W. H. Kossebau 51570c2838 Unbreak styles combobox in programs/editor
Also
* emit signal for cursor move again
* turn signal names into string objects
* makes Session and Document take odfCanvas instead of just odfContainer
2012-11-09 12:21:08 +01:00
Friedrich W. H. Kossebau af07d10ef4 Use term "cursor" instead of "member" when it is just about a cursor 2012-11-09 12:19:55 +01:00