Commit Graph
19 Commits
Author SHA1 Message Date
Aditya Bhatt 46f89dbe6f Use a bit more specific signals for styleChanged and styleDeleted. Make
the paragraphStyles selector dynamically add/remove styles instead of
reloading everytime. Pass style name in signal argument.
2013-02-18 14:41:31 +05:30
Aditya Bhatt 3307555380 Make cursor move to the beginning of the first text node upon addition.
Also, track a cursor in the editor upone addition, so that we know it's
paragraph style and various such info.
2013-02-18 14:41:31 +05:30
Aditya Bhatt 3f1b552ddf Some jsdoc for EditorSession 2013-02-11 14:29:30 +05:30
Aditya Bhatt 8a7e9ad586 Use OpDeleteStyle in editor 2013-02-11 14:29:30 +05:30
Aditya Bhatt 694def8fb3 Add a method hasDerivedStyles to StyleInfo.js, and use a method
isStyleUsed to Formatting.js and EditorSession, and test it in the
styles dialog when a new style is picked
2013-02-11 14:29:30 +05:30
Aditya Bhatt f6e2edcdd4 Add style change signals 2013-02-01 23:57:31 +05:30
Aditya Bhatt 8d26c25dde Add a new operation, OpCloneStyle.js, and use it in the editor 2013-02-01 23:30:53 +05:30
Aditya Bhatt 3cdf580200 Add wrapper method for getParagraphStyleAttributes to EditorSession 2013-01-22 15:31:14 +05:30
Friedrich W. H. Kossebau fa9504bb73 Adapt UserList view to usermodel now signalling userdata changes
(and remove unneeded parameters from internal methods)
2012-12-28 12:05:07 +01:00
Aditya Bhatt 01634286bc Linted everything in editor/ 2012-12-28 12:05:06 +01:00
Aditya Bhatt 5333f98f99 Bind dialog to paragraph style, updates on changes to the style
Conflicts:

	programs/editor/widgets/paragraphStylesDialog.js
2012-12-28 12:05:06 +01:00
Aditya Bhatt 847114c271 Some changes to get accessing of paragraph styles by the dialog working
Conflicts:

	programs/editor/CMakeLists.txt
	programs/editor/index.html
	programs/editor/widgets/dialogWidgets/alignmentPane.js
	programs/editor/widgets/paragraphStylesDialog.js
2012-12-28 12:05:06 +01:00
Tobias Hintze f2667f043f cleanup, whitespace, and cosmetics 2012-12-03 16:56:04 +01:00
Tobias Hintze 20accd4fd2 apply AMD pattern to programs/editor
* allows use either in src or in build dir (cdn-index.html / index.html)
* creates dojo-amalgamation.js which includes selected languages
2012-12-03 16:24:08 +01:00
Aditya Bhatt 98e72a0e77 Add method to retrieve odfDocument 2012-11-30 13:07:05 +01:00
Aditya Bhatt 81fa5d47be New Editor API - add subscriptions for various signals. EditorSession.js is now supposed to only expose information about the editor instance's own User instead of all others. Signals generated by other users are filtered out before forwarding signals to any subscribers in the editor. Introduce Users instead of 'avatars'. Add several methods for tracking cursor and paragraph styles for our own user, which can be used by other widgets in the Editor. 2012-11-30 13:06:15 +01:00
Aditya Bhatt c3d18fd4c3 Lint 2012-11-30 13:05:54 +01:00
Aditya Bhatt aa1b888640 Handle avatars properly in EditorSession.js and add startEditing and endEditing 2012-11-16 17:51:31 +05:30
Aditya Bhatt c858fae99c EditorSession as a controller between session and editor 2012-11-16 16:21:41 +05:30