Commit Graph
55 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 818e4f3a5a ensure consistency between all code which gets the paragraph element in which a given cursor is inside 2013-05-08 14:48:31 +02:00
Philip Peitsch f709b07228 Implemented OpInsertTable
* No GUI access to feature yet
* New tables are inserted after the current paragraph
2013-04-17 21:28:45 +10:00
Friedrich W. H. Kossebau 6e7e3fe55f Rename OpCloneStyle to OpCloneParagraphStyle, OpDeleteStyle to OpDeleteParagraphStyle 2013-04-10 12:15:07 +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
Friedrich W. H. Kossebau dade008500 Add core.EventNotifier, as generic notification handler for both ops.Session and EditoSession 2013-04-09 13:44:49 +02:00
Friedrich W. H. Kossebau 54b3a1381c move all DOM manipulation code to the ops
Also:
* merge paragraphEdited event of ops.OdtDocument into paragraphChanged event of ops.Session
* remove any event subscription/emitting from ops.OdtDocument
2013-04-09 13:44:49 +02:00
Philip Peitsch 1ecc0ec1f9 JSDoc cleanups and dead code removal
* Removed some unused variables and methods
* Removed redundant variable initialisation
* cursorNode in OdtCursor and Cursor is always set to a valid DOM element. Updated jsdoc accordingly
* Ignore WebStorm project-related files
2013-04-09 12:07:56 +10:00
Philip Peitsch 259b203d21 Avatars and modification markers are hidden by default for a non-networked editing session
* The avatar image will not be loaded if the avatar is not visible. The image will be loaded when the avatar is next shown
2013-04-09 12:07:14 +10:00
Friedrich W. H. Kossebau 95d923dc26 Remove unused/unneeded property "position" from OpUpdateParagraphStyle 2013-04-03 18:00:20 +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 2af73a06bd implement the updated concept of getUserDetailsAndUpdates;
adds quite some comments and asserts
2013-03-26 09:37:14 +01:00
Aditya Bhatt e8e98928e6 if(value) 2013-03-25 15:52:57 +05:30
Aditya Bhatt a1354b010e Some changes to handle undefined font families 2013-03-25 15:52:57 +05:30
Tobias Hintze c23067a494 removing verbosity on js console 2013-03-20 15:48:21 +01:00
Aditya Bhatt f5dda183da Add dojo/text!resources/fonts/fonts.css explanation 2013-03-20 19:01:21 +05:30
Tobias Hintze fb11ddd99a Merge remote-tracking branch 'abheap/master'
Conflicts:
	programs/editor/cdn-index.html
2013-03-20 12:18:17 +01:00
Aditya Bhatt b25ec1d952 Let's also call init() after declaring. :/ 2013-03-20 15:11:46 +05:30
Aditya Bhatt 3a44cb0ac8 Append font css as a text node 2013-03-20 15:11:46 +05:30
Aditya Bhatt 2fa9df09f7 Move style loading of fonts from editor.css to js 2013-03-20 15:11:46 +05:30
Aditya Bhatt a1c0c28866 Move fonts/fonts.css to a resources/ dir, and update the paths
dojoConfig paths accordingly to resolve pathes starting with
'resources/'.
2013-03-20 15:11:46 +05:30
Tobias Hintze bedb9a2c94 improve AMD pattern usage; remove explicit require() calls 2013-03-19 21:44:48 +01:00
Friedrich W. H. Kossebau 51af6f6140 Ensure that style name (id, not the display name) is properly encoded and unique 2013-03-19 10:35:41 +01:00
Friedrich W. H. Kossebau 44db72f74a Stop passing odfCanvas via document.odfCanvas to the zoomSlider, use new EditorSession.getOdfCanvas 2013-03-12 12:00:26 +01:00
Friedrich W. H. Kossebau 78ae8f19af Remove unused EditorSession.getDocument 2013-03-12 11:57:59 +01:00
Friedrich W. H. Kossebau 4942a201bf rename opfDocument to odtDocument in EditorSession 2013-03-06 20:44:40 +01:00
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
Aditya Bhatt 261a530a0a Use better regex matching 2013-03-06 19:51:20 +05:30
Aditya Bhatt 91849f78b1 Return empty array, avoid fontpicker exception 2013-03-06 19:51:20 +05:30
Aditya Bhatt 48fa116ff8 Use dojo's AMD loader for fonts css, avoid manual XHRing and race
problems
2013-03-06 19:51:20 +05:30
Aditya Bhatt 29df7b772a * Move XHR from editor.js to EditorSession, stop making fonts global,
and make this synchronous
* Some explanatory comments about the simple css parsing
* Use a better technique for deduplicating font family declarations,
pick the alphabetically first font name
2013-03-06 19:51:19 +05:30
Aditya Bhatt b03066b7e5 Remove whitespace 2013-03-06 19:51:19 +05:30
Aditya Bhatt fc3f08c1da How did this file get deleted???? Adding back 2013-03-06 19:51:19 +05:30
Aditya Bhatt 3d74878cd1 * getUsedFonts -> getDeclaredFonts renaming.
* documentation
2013-03-06 19:51:19 +05:30
Aditya Bhatt 7ef88fc872 Retrieve the font face declarations map from Style2CSS in Formatting.js.
Expose this map to EditorSession, and add a getUsedFonts method to
EditorSession that removes number-suffixed duplicate font-names like
Arial1, Arial2, etc and returns a reduced font name-to-family map.
2013-03-06 19:51:18 +05:30
Aditya Bhatt 8f526248f3 Add a signalParagraphStyleModified, and make the BIUS buttons listen to
it so that they are updated when a dialog changes the current style's properties
2013-02-20 13:35:47 +05:30
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