Commit Graph
557 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau de1103fcfe Add gui.DirectParagraphStyler, a UI-less tool specialized on direct styling of paragraphs 2013-09-10 15:52:39 +02:00
Friedrich W. H. Kossebau eb57ef2def Add gui.DirectTextStyler, a UI-less tool specialized on direct styling of text 2013-09-10 13:02:28 +02:00
Philip Peitsch 15f4bba862 Clarified document signals (common style created/deleted)
Creating an automatic style was firing signalStyleCreated/Deleted events
unexpectedly. Renamed these to signalCommonParagraphStyle* instead to
clarify that this signal only fires when "common" styles are created.

Terminology was taken from ODF specs:
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415058_253892949
2013-09-09 19:58:44 +10:00
Philip Peitsch d1cdcfb2cb Add direct font family and size styling support to Editor
* tweak fontPicker wrapper to be a little easier to use within other
  widgets
* keep annotation button stays in same position
2013-09-09 09:16:04 +02:00
Friedrich W. H. Kossebau e58eb93ffb Allow download of last saved session state in SessionListView 2013-09-08 18:16:14 +02:00
Friedrich W. H. Kossebau 0187905b3d Have MemberModel define the temporary data for members, not the UI 2013-09-07 17:00:58 +02:00
Friedrich W. H. Kossebau ed86ae77de Only enable direct styling of paragraph if args.directStylingEnabled is set
(still need to check OT)
2013-09-07 17:00:58 +02:00
Friedrich W. H. Kossebau 0a87345d71 German translation for UI strings of buttons for modifying paragraph alignment and indentation 2013-09-06 18:30:53 +02:00
Philip Peitsch 0d7aa91424 Forward on paragraph change events for all paragraphs within the user's selection 2013-09-06 18:30:53 +02:00
Philip Peitsch c7eac5bd5e Added buttons to editor for modifying paragraph alignment and indentation 2013-09-06 18:30:53 +02:00
Friedrich W. H. Kossebau 679eccd2f9 fix wrong memberId -> memberid in opspecs created in EditorSession (too aggressive CamelCasing...) 2013-09-03 13:40:21 +02:00
Friedrich W. H. Kossebau 1f7469884f redo class Editor (for proper re-usage and also destruction)
* Editor can have three states: without a document/session, with a document/session, destroyed
* Editor is created without any document/session initially
* document/session has to be closed before loading another one
* EditorSession/Session are bound to a document/session, recreated for another one
* all other objects are reused with another document/session
* destroy() cleans up the Editor from the webpage it is embedded (at least good enough for now)
* startEditing/endEditing have to be done by the user of Editor
2013-09-03 01:02:48 +02:00
Friedrich W. H. Kossebau d12da85554 Add an optional Close button to the toolbar 2013-09-03 01:02:48 +02:00
Friedrich W. H. Kossebau a41f1138ed Split boot_editor.js/*index.html into separate files for local editor and collaboration editor 2013-09-03 01:02:47 +02:00
Friedrich W. H. Kossebau 870aba86ab Add argument unstableFeaturesEnabled to Editor, disable direct styling & annotations for collab sessions 2013-09-03 01:02:47 +02:00
Friedrich W. H. Kossebau 479ecd79f8 Turn widgets.js into Tools.js, make tools work without a editorSession object set 2013-09-03 01:02:47 +02:00
Friedrich W. H. Kossebau 626e919fca enable stopping the sessionlist updates, e.g. when a session is selected 2013-09-02 16:38:34 +02:00
Friedrich W. H. Kossebau 11d94bb98e Support PageDown/PageUp buttons in viewer 2013-08-30 18:55:09 +02:00
Friedrich W. H. Kossebau ba10c691e0 Make UI strings for style cloning/deleting translatable 2013-08-28 17:38:59 +02:00
Friedrich W. H. Kossebau 279241f3f2 Clean up left-over traces of the chat area 2013-08-28 16:50:59 +02:00
Friedrich W. H. Kossebau c3545d7d4f Clean up left-over traces of the menubar 2013-08-28 16:49:30 +02:00
Friedrich W. H. Kossebau f2b56083e6 add a ops.Server interface + a ServerFactory interface, move Nowjs-based server stuff into programs/editor/server/nowjs
MemberModel, SessionList, and OperationRouter are proxy classes which use
the server object to communicate with the server, while the server does
not always need to know about them
e.g. some server could not provide a SessionList, while another could have
that and more, while sharing the same basic server protocol.
Thus the serverfactory instance is separated from the server instance.
2013-08-28 16:33:49 +02:00
Aditya Bhatt 57ef0fa0c7 Add some guidelines for using custom CSS (such as fonts) in the viewer
by way of a commented reference to a local.css and a
boilerplate-ish example file
2013-08-28 16:11:19 +02:00
Friedrich W. H. Kossebau b01f70441e Remove unused namespace-prefix "text" in editor.css 2013-08-26 16:19:29 +02:00
Aditya Bhatt f02711c8b1 Don't hide fullscreen and download buttons for small screens 2013-08-21 09:14:04 +02:00
Friedrich W. H. Kossebau 6c1864c574 Rename MemberList to MemberListView 2013-08-18 20:13:29 +02:00
Friedrich W. H. Kossebau a6b3edfbde Transform usage of SessionListView to AMD 2013-08-18 20:12:54 +02:00
Tobias Hintze 1c0f899211 reindent and add a missing closing </div> 2013-08-17 11:17:58 +02:00
Friedrich W. H. Kossebau f4d293645d Rename OpDeleteParagraphStyle to OpRemoveParagraphStyle 2013-08-08 16:26:03 +02:00
Friedrich W. H. Kossebau 4322b22858 Rename everything with "[Uu]ser|[Ppeople]" to "[Mm]ember"
consolidates the terms used a little
2013-08-07 18:03:19 +02:00
Friedrich W. H. Kossebau de12e14614 Remove unset var userid and legacy code for ensuring a memberid in Editor constructor 2013-08-07 15:38:57 +02:00
Aditya Bhatt 825a44affc * OpAddAnnotation that lets you create annotations. This only creates an
annotation-end node if the length of the selection > 0.
* Adds a button to the editor to add an annotation at the given cursor position
or selection
* A bad hack in AnnotationViewManager: The dc:creator of
a created annotation is initially empty because the operation has no
way to access the user model even if it knows the memberid. The
SessionView has a new rule for editinfo:memberid attributes that sets
the CSS content: attribute to the user name. AnnotationViewManager,
for now, will read this CSS property and set the text of dc:creator to
that; at least till we have a better way to access the usermodel in
the future
* Rerenders annotations when an annotation is added for tracking (like upon creation)
* SessionView gets a way to concretely specify the CSS pseudo-class for a rule (:before, :after, etc)
* enableAnnotations only allows handles annotations if the allow value
changes
* Add translation strings for annotate
2013-08-05 19:16:32 +02:00
Friedrich W. H. Kossebau cce094b2c1 turn OpCloneParagraphStyle into OpAddParagraphStyle
having all the data in the spec not only helps/enables OT, but also
makes it possible to create styles in documents without any prior existing
2013-08-01 20:00:44 +02:00
Aditya Bhatt d618dd44f0 Add another note to welcome.odt to demonstrate the angular connectors 2013-08-01 19:05:23 +02:00
Aditya Bhatt 374ffc2fbc * Allow annotations to be enabled/disabled via OdfCanvas
* Documentation++
* Enable annotations by default in editor and viewer.
* Detach range in highlighter after use

Also: Annotation handling is broken when annotations overlap. Add TODO for
that.
2013-08-01 16:17:08 +02:00
Aditya Bhatt 302cc7a283 *Add an annotationsPane and position annotations onto it by styling them
via CSS
*Refactoring: Move common functions from TextStyleApplicator to DomUtils
and OdfUtils.
*Allow application of 'gui' style (with an annotation: namespace) in
TextStyleApplicator and Formatting.
*More CSS for annotations.
*Make OdfCanvas handle annotations.

Add an annotation:connector element to the highlight span for a dotted
line
2013-08-01 16:14:58 +02:00
Friedrich W. H. Kossebau e1dcfbdec5 Revert "Do not set an undoManager if there is a server, no server yet integrated with local undo"
This reverts commit 7c381891ba.
2013-07-31 20:32:10 +02:00
Friedrich W. H. Kossebau 7c381891ba Do not set an undoManager if there is a server, no server yet integrated with local undo 2013-07-31 19:59:17 +02:00
Friedrich W. H. Kossebau 0ad093545b set cursor to "pointer" for the session items in the SessionListView 2013-07-31 19:29:23 +02:00
Aditya Bhatt a478b71e66 Disable -webkit-box and siblings to avoid horizontal scrolling 2013-07-31 19:04:16 +02:00
Friedrich W. H. Kossebau b10f41de7b Rename "OpApplyStyle" to "OpApplyDirectStyling" and its spec elemnt "info" to "setProperties" 2013-07-30 12:05:09 +02:00
Friedrich W. H. Kossebau ac2cb8c005 Change spec of ops.OpUpdateParagraphStyle to take real ODF properties as payload for "setProperties" 2013-07-29 16:10:52 +02:00
Philip Peitsch f25d936355 Removing a cursor will now cause the associated caret to be removed
Removing the local cursor (e.g., calling SessionController.endEditing)
previously left behind an orphaned caret that would continue to receive
focus/blur commands and attempt to remain visible. This would cause an
error to be thrown after most operations.

This change turns CaretFactory into a manager that is responsible for
proper disposal of carets unpon the corresponding cursor's removal from
the document.
2013-07-26 22:26:11 +10:00
Lu Li c75f303cfb handle shortcuts for applying bold, italic & underline 2013-07-24 09:58:17 +02:00
Philip Peitsch cf3445e493 Added configurable option to suppress the caret when a range is selected
Various editors have inconsistent behaviour on this front.
* LibreOffice (Mac) - always blinks even with range select
* Firefox, Chrome, Word (Mac) - hides the caret on range
2013-07-24 01:26:58 +02:00
Lu Li 0eff2c6a0a Refactor odf.Formatting class
* move getTextNode from OdfUtils to StyleHelper
* move some of the unit tests under FormattingTests to StyleHelperTests
2013-07-22 16:47:42 +02:00
Friedrich W. H. Kossebau 455839d83b Add german translations for new strings 2013-07-22 12:15:00 +02:00
Aditya Bhatt 17717c7f8d Add touchable overlays!
* Close button in presentation mode
* Left and right navigation buttons in small screen fit-to-page modes
that fade in when interaction happens and then fade out
2013-07-16 20:06:09 +02:00
Aditya Bhatt ad2d6f9cd5 Move the presentation, fullscreen, and download buttons to the top 2013-07-16 14:37:54 +02:00
Aditya Bhatt 07cb8426b0 Center align the displayed document both vertically and horizontally 2013-07-15 18:46:39 +02:00