Commit Graph
38 Commits
Author SHA1 Message Date
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
Friedrich W. H. Kossebau 020fe22a0c Prevent the own cursor to be moved to end/begin of document on mouseclicks onto avatarcaretflags or carets 2013-02-13 13:47:53 +01:00
Friedrich W. H. Kossebau 6e80cacefc Use the canvas element to grab all input, ensure caret visibility ourselves 2013-02-11 17:59:59 +01:00
Friedrich W. H. Kossebau 78a3e573e0 Add (for now disabled) code to ops.SessionController to set next-style on paragraph-splitting 2013-01-07 15:21:54 +01:00
Friedrich W. H. Kossebau 94e5408106 improve OpSplitParagraph to also handle any text:spans
also moves implementation from Document to the op class

unsolved: own cursor loses focus if moved into split paragraph
2012-12-28 13:21:40 +01:00
Friedrich W. H. Kossebau 3c59cdb3c0 Be greedy and eat the key event for the "End" button, so the browser does not have it 2012-12-28 12:05:06 +01:00
Friedrich W. H. Kossebau 2a7fb73489 Disable creation of OpSplitParagraph ops, are broken ATM 2012-12-28 12:05:06 +01:00
Jos van den Oever bc3e2f9f08 Update to newer Closure Compiler. 2012-12-28 11:59:47 +01:00
Jos van den Oever 2d11ccdd65 Add very buggy implementation of SplitParagraph.
There is more work ahead.
2012-11-16 18:55:19 +01:00
Jos van den Oever 9f1658a806 Add boilerplate for the operation to split a paragraph. 2012-11-16 17:51:49 +01:00
Tobias Hintze 6c027c33ac OpRemoveText: change semantic (negative length); workaround delete
the semantic of a negative length for a delete operation is
to encode the "direction" of the delete or put in other words
the cursor position before the remove operation.
a length of -1 means backwards delete of 1 character;
length of 1 means forward-delete of 1 character

delete did not work because the to-be-deleted text was always
out of the avatar's textnode (because it is RIGHT AFTER it, in
the next textnode sibling)
also removed "text" property of OpRemoveText, as it is incorrect
after the second operation when not playing operations locally
(before receiving them back from the server)
2012-11-13 00:54:02 +01:00
Jos van den Oever 155bf9a4d3 Whitespace fixes. 2012-11-10 11:35:21 +01:00
Friedrich W. H. Kossebau cbe11f8e7b Support home key, by going to begin of paragraph for now
though in empty paragraphs a bug in the counter moves the cursor to the begin
2012-11-09 12:30:13 +01:00
Friedrich W. H. Kossebau 9985bb5a12 Fix paragraphstyle selector to only show named styles for a paragraph
Also use "___" as separator because the memberId is used directly in CSS
2012-11-09 12:23:12 +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
Friedrich W. H. Kossebau a058242e6b Split ops.Document from ops.Session (initial step)
Idea here is to create abstraction as much as possible for all ODF-related
objects, e.g. the cursor objects now belong to and know the ODF document model
they run around in.

Some avatar tests still need fixing/adaption, but from manually testing it
looks good, so commiting now to prevent too much differences.
2012-11-09 12:19:08 +01:00
Friedrich W. H. Kossebau 8369aacb78 Make closure compiler happy (well, she better than us) 2012-11-09 12:13:22 +01:00
Friedrich W. H. Kossebau a788288991 Create a simple RemoveText operation on backspace 2012-11-09 12:13:04 +01:00
Friedrich W. H. Kossebau c61c699227 Fix cursor input handling for firefox 2012-11-09 12:12:05 +01:00
Friedrich W. H. Kossebau 34c32fa25c Get normal characters from keyboard events in SessionController 2012-11-09 12:11:20 +01:00
Friedrich W. H. Kossebau ae0dfcb91b Remove property localMemberId from usermodel, instead have the controller know which is the local user
Also have the caret care for its focus itself on e.g. moving
2012-11-09 12:11:02 +01:00
Friedrich W. H. Kossebau 53a81cc1e8 Make Avatar and Caret unaware of a registerInputListener 2012-11-09 12:10:56 +01:00
Friedrich W. H. Kossebau 389d1c4759 Move last remaining event handling from Caret to SessionController 2012-11-09 11:58:41 +01:00
Friedrich W. H. Kossebau 36b6891d14 Remove SessionImplementation.getLocalMemberid, should not be a property of the session object 2012-11-09 11:57:36 +01:00
Friedrich W. H. Kossebau add136763c Create OpRemoveMember for removing cursors/avatars 2012-11-09 11:57:23 +01:00
Tobias Hintze dbc33f4852 use runtime.getWindow() instead of global window 2012-11-09 11:56:33 +01:00
Friedrich W. H. Kossebau b69a7d94ac Restore old text input state, but now with SessionController and OpInsertText 2012-11-09 11:56:19 +01:00
Friedrich W. H. Kossebau fb46e0b011 Move click handling to SessionController (with a workaround for no cursors yet in Session object) 2012-11-09 11:55:40 +01:00
Friedrich W. H. Kossebau 84045fdeb8 Move input keyhandling from Avatar to SessionController
also implements OpMoveMemberCursor
2012-11-09 11:52:34 +01:00
Tobias Hintze 78e0ba98c5 some dependency and strictness fixes 2012-11-09 11:49:13 +01:00
Tobias Hintze bf8abb5c5c fix some closure-compiler strictnesses 2012-11-09 11:48:16 +01:00
Tobias Hintze 8582948d41 OpAddMember: hotfix missing manifesting 2012-11-09 11:40:46 +01:00
Tobias Hintze e28dfe91b8 whitespace / expandtab 2012-11-09 11:40:29 +01:00
Tobias Hintze be21d97995 SessionController: pass a memberid to OpAddMember 2012-11-09 11:40:19 +01:00
Tobias Hintze 01d58f5500 collabtest: create SessionView; startEditing 2012-11-09 11:36:35 +01:00
Friedrich W. H. Kossebau def456a6ca Extract creation of avatar from SessionImplementation.addMemberToSession into factory method
for now just test.js, breaks other usages of SessionImplementation
2012-11-09 11:27:11 +01:00
Tobias Hintze f4ad9986c6 wip-snapshot: start factory passing 2012-11-09 11:18:47 +01:00
Tobias Hintze c2abff25a0 first bits of refactoring SessionController / SessionImplementation 2012-11-09 11:14:10 +01:00