Commit Graph
449 Commits
Author SHA1 Message Date
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
Tobias Hintze 7455add5fc booting the editor: expose saveCallback and loginProcedure 2013-04-08 16:49:47 +02:00
Friedrich W. H. Kossebau 95d923dc26 Remove unused/unneeded property "position" from OpUpdateParagraphStyle 2013-04-03 18:00:20 +02:00
Tobias Hintze 8c13d0da0e boot_editor.js and Editor cleanup round2:
most notable: untangle init_gui_and_doc:
  provide clean chain of callbacks,
  separate collaborative/network hookup from document loading,
  changeSomeNames, comments and declarations
2013-04-03 13:37:17 +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 1a7f6a6dd7 Some avatar handle styling changes.
In webodf, the handle's image's border is set with the user's color
instead of the handle background. Also, the cursor span is changed to
2px width for better visibility.
In editor.css, custom CSS overrides are applied to make the handles look
very much like the avatar 'thumbnails' in the people sidebar.
2013-03-26 13:46:54 +05:30
Aditya Bhatt d543584eea whitespace 2013-03-26 13:46:25 +05:30
Aditya Bhatt aa02bf59c6 Need to enclose the dropdownbutton text span within a span, because dojo
restructures the html upto the first descendant span
2013-03-26 13:46:25 +05:30
Aditya Bhatt eacdba133c Fix wrong alignment when strings are too long 2013-03-26 13:46:25 +05:30
Tobias Hintze 28eaa42dc8 make webodf/Editor a class; change getin.js to boot_editor.js 2013-03-26 09:07:59 +01:00
Aditya Bhatt e8e98928e6 if(value) 2013-03-25 15:52:57 +05:30
Aditya Bhatt 21f7e5fff4 Better handling of undefined font family in fontPicker 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
Aditya Bhatt df17d620c7 Add a getFamily method to fontPicker, which retrieves the family for a
font with a given name. Use this in the font pane so that we can see
previews for fonts.
2013-03-25 15:52:57 +05:30
Tobias Hintze 694a80e6e0 add a README-viewer.odt to programs/viewer/ and in viewer-$ver.zip 2013-03-23 14:01:20 +01:00
Tobias Hintze 7a9e7c50c7 whitespaces 2013-03-20 22:26:01 +01:00
Tobias Hintze e97953f6f1 programs/editor/widgets: make two panes work in a subdir as well 2013-03-20 20:47:03 +01:00
Tobias Hintze c23067a494 removing verbosity on js console 2013-03-20 15:48:21 +01:00
Tobias Hintze be7ba7cd80 yet another update of the welcome.odt, introducing embdedded font 2013-03-20 15:21:15 +01:00
Aditya Bhatt f5dda183da Add dojo/text!resources/fonts/fonts.css explanation 2013-03-20 19:01:21 +05:30
Tobias Hintze 6a7a8043c2 programs/editor: better detection of collab/non-collab mode 2013-03-20 12:35:29 +01:00
Tobias Hintze fb11ddd99a Merge remote-tracking branch 'abheap/master'
Conflicts:
	programs/editor/cdn-index.html
2013-03-20 12:18:17 +01:00
Tobias Hintze 56fe73d424 split programs/editor/index.html into index.html and collab-index.html
only collab-index.html should engage nowjs and play the collaborative
  game.
2013-03-20 12:03:01 +01:00
Tobias Hintze 1a1c0c8de7 update programs/editor/welcome.odt:
* change background color from blueish to white
 * minimal text:span cleanup
2013-03-20 11:50:48 +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 2c2082240e Add resources to cmake 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
Tobias Hintze fa0cd59683 trivial fix for german translation 2013-03-19 15:33:57 +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
Tobias Hintze 132eecce41 dojo translations: only allow supported languages (default to "C") 2013-03-18 23:02:50 +01:00
Tobias Hintze 8f219d2c18 fix editor/index.html to bootstrap dojo paths 2013-03-18 20:36:24 +01:00
Aditya Bhatt 8b8839ee81 Add html restructuring to index.html too 2013-03-18 18:35:15 +05:30
Aditya Bhatt 163a442bbb Some styling changes - check for the availability of window.inviteProxy
to show the invite button, and use a custom button instead of a dojo
button because we need a bit more flexibility
2013-03-18 18:12:35 +05:30
Aditya Bhatt dcef6bf1a5 Partially refactor the avatar button updating code so that there is only
one code path for updating. + some styling
2013-03-16 08:03:31 +05:30
Aditya Bhatt 252d6da87f Remove the chat sidebar and the ExpandoPane, and have a clean sidebar of
avatar buttons to the right. Also some aesthetics styling.
2013-03-16 07:43:19 +05:30
Aditya Bhatt 6eb6762ce9 Make the container + canvas layout in programs/editor similar to the one
in programs/viewer, so now we don't have to deal with a hackish hidden
horizontal scrollbar, and both scrollbars follow the zoom level
perfectly.
2013-03-16 01:44:16 +05:30
Friedrich W. H. Kossebau 4b20ad5c1f Add a button to the toolbar for saving
The button is only shown if there is a method "saveOdtFile" set to the editor object
2013-03-14 12:28:56 +01:00
Friedrich W. H. Kossebau 145fb492a0 Also copy programs/editor/fonts into build directory 2013-03-14 11:35:56 +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 70a21685a0 Sync scope of vars sessionId & userId in getin.js 2013-03-11 18:25:38 +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