Commit Graph
650 Commits
Author SHA1 Message Date
Philip Peitsch bb8daa3a9c Activate the undo manager in the performance benchmark 2014-01-24 10:22:20 +11:00
Philip Peitsch 6a7841d20e Allow background colour in benchmark to be set in the URL
Having different coloured results makes it easier to distinguish between
active instances of a benchmark (e.g., master + branch).
2014-01-24 10:22:20 +11:00
Philip Peitsch 678cc4c36c Redesign benchmark to be more usable on small screens (e.g., mobiles) 2014-01-23 23:55:09 +11:00
Philip Peitsch 23e2a7bd79 Remove non-useful benchmark step
Non-automated steps in a mostly automated benchmark is not the best
idea I ever had...
2014-01-23 23:55:09 +11:00
Philip Peitsch d92d02e510 Add bulk-operation benchmark steps
Add repeated insert, remove and move steps to see how behaviour scales.
2014-01-23 23:55:08 +11:00
lli 32f148930a Preserve the text style when splitting at the end of paragraph.
At the moment, splitting at the end of the following paragraph
<p style-name="standard">hello <span style-name="bold">world|</span></p>
will create a new paragraph like below
<p style-name="standard">|<span style-name="bold"></span></p>

The cursor is moved out of the span due to empty span is not considered as
a valid cursor position in the current design. this causes newly entered
text are not formatted correctly.

Merged DirectTextStyler and DirectParagraphStyler into
DirectFormattingController. These have become closely related concepts as
a result of changes in this patch.
2014-01-20 22:32:24 +11:00
Aditya Bhatt 6921bffe71 Rename TextManipulator to TextController 2014-01-15 13:37:47 +05:30
Aditya Bhatt 1c65c0eeec Rename ImageManager to ImageController 2014-01-15 13:37:47 +05:30
lli cde721f758 Updated the SessionController to use the same virtual selection in both edit and read only mode. 2013-12-19 10:39:42 +11:00
Philip Peitsch 3f2b2f0fb9 Support different selection view renderers
In certain cases it is useful to be able to swap out the technique used
to render cursor selections on the document. For example, SVG polygon
based rendering interacts badly with mouse events on the WebKit build
shipped on MacOS X 10.7.5.
2013-12-19 01:55:51 +11:00
lli 66e25e096d Move selection related operations into the new SelectionController.js 2013-12-18 23:26:30 +11:00
Philip Peitsch d38824ad80 Make cursor sub-element CSS styles component-specific
Previous implementation was using the element type (span or div) to
determine if the element was a handle or caret. This is problematic if
additional elements are placed inside the cursor node (as necessary for
proper IME support)
2013-12-18 11:05:31 +11:00
Aditya Bhatt bce63fe89a Fix de-DE translation for "Insert Image" 2013-12-17 13:19:47 +01:00
Aditya Bhatt b1dbc64d84 Add german translations for hyperlink UI. 2013-12-17 13:19:47 +01:00
Aditya Bhatt 5f056eb079 Fix hyperlink UI translations for english. 2013-12-17 13:19:47 +01:00
lli e1b8b4747d Hook up the HyperlinkClickHandler with ODFViewerPlugin 2013-12-17 17:59:17 +11:00
Friedrich W. H. Kossebau 60626b01dc Fix widget js files to only call runtime.loadClass(...) in the setup method, not at definition time 2013-12-16 23:52:59 +01:00
Philip Peitsch 9ed4ac0db4 Renamed HyperlinkManager to HyperlinkController 2013-12-13 23:35:51 +11:00
lli 353b4b68f1 Added editor buttons for applying or deleting hyperlinks 2013-12-13 17:40:22 +11:00
Friedrich W. H. Kossebau 3758ebf9e5 Add flag "showRemoveButton" to AnnotationViewManager, to not show the button if wanted 2013-12-12 18:07:42 +01:00
Philip Peitsch 2ec3d857ec Re-implement the selection commands using new StepsTranslator interfaces
This re-implementation also addresses problems when navigating passed
annotations as identified in issue #65 & #65.

This also fixes a large performance issue with extending or moving the
cursor via short-cut keys.
2013-12-11 00:50:25 +11:00
Aditya Bhatt c99e4d354e Add NLNet and KO logos to viewer's about dialog. 2013-12-09 18:55:40 +01:00
Philip Peitsch 085f4c2adc Add an apply direct formatting benchmark action
Additionally, the benchmark will now take configuration options via the
query parameters rather than after the hash.
2013-12-06 01:27:20 +11:00
Friedrich W. H. Kossebau 62db9e22fe Add API dox for Editor.addEventListener, with possible event ids and error codes 2013-12-03 18:32:40 +01:00
Friedrich W. H. Kossebau 50f18a109e For OperationRouter turn explicit subscription methods into generic ones + explicit state getters 2013-12-03 18:32:40 +01:00
Friedrich W. H. Kossebau 42c5a7c617 Export errors and other oprouter states in the Editor API, experimental use in collabeditor.js 2013-12-03 18:32:39 +01:00
Friedrich W. H. Kossebau 14bf18d40d Catch any errors in the OperationRouter & calling the server and report in separate callback 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 27461c32fe Add OperationRouter.getHasSessionHostConnectionAndUpdates/OperationRouter.unsubscribeHasSessionHostConnectionUpdates 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau a454cce637 Catch failing playback of operations or unknown ops coming from server 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 53c579b744 make failCb a needed argument to Server.joinSession and Server.leaveSession 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 8aa87de93f Fix collabeditor.js to use the right memberid and sessionid on server.leaveSession(...) call 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 422db0de00 Fix condition when to log on replies to Pullbox servers 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 33c0a580c8 Add OperationRouter.getHasLocalUnsyncedOpsAndUpdates/OperationRouter.unsubscribeHasLocalUnsyncedOpsUpdates 2013-12-03 17:03:55 +01:00
Jos van den Oever cba60732eb Merge pull request #214 from adityab/about-dialog
Add a simple 'about' dialog to viewer.
2013-12-02 12:00:23 -08:00
Jos van den Oever b1f46c4ab3 Fix bug: readFile should be able to return strings too now. 2013-11-29 18:30:23 +01:00
Philip Peitsch 5db32daa9d Ensure expand to word and paragraph boundaries keep selection direction
SessionController had some internal confusion about whether to work in
selection or range+bool. This cleans these up to ensure the direction is
properly preserved throughought.
2013-11-30 00:58:51 +11:00
Aditya Bhatt 1416a8bb7f Let viewer be loaded without a plugin as well. 2013-11-27 19:52:57 +01:00
Aditya Bhatt 5108ee6585 Add "about" information to the viewer,
including an attribution line in the title bar
and plugin information in an about dialog.
2013-11-27 19:52:54 +01:00
Philip Peitsch ebb7462022 Extend step translation interface to allow custom rounding
Step translation from a DOM point to a step usually results in some
rounding. The existing interface provided a simple bool flag to control
this, but this does not provide help for a caller that doesn't know
ahead of time which step is "closer" to the desired node (e.g., asking
for steps at paragraph boundaries should round within the paragraph).

This extension now allows a custom delegate that will be called with the
prev and next position to choose between rounding options.
2013-11-28 00:35:36 +11:00
Aditya Bhatt f5883fe47e Apply paragraph style to all paragraphs in the cursor
selection.

* Modify OdtDocument.convertDomPointToCursorStep(),
which takes a node, an offset, and a boolean, and returns the steps to
that position from the root, rounded to the next allowed
position if the boolean is true, otherwise to the previous.

* Use this method in EditorSession.setCurrentParagraphStyle().
2013-11-26 14:02:36 +01:00
Aditya Bhatt ca3cb713e7 Do not fire onChange in paragraph styles
dropdown when setting the value programmatically.
2013-11-26 12:23:48 +01:00
Jos van den Oever f0a24fb6eb Fix docnosis for the recent changes in runtime file loading. 2013-11-25 13:33:10 +01:00
Aditya Bhatt bfdc14b907 Add isEdit properties to all operation classes
to make life easier by avoiding the need to listen
to various signals or look at optypes when you just
want to know whether any edits have taken place.
2013-11-22 20:35:29 +01:00
Jos van den Oever 092edb44ad JSON is just text, no need to make a binary. 2013-11-22 18:32:21 +01:00
Philip Peitsch 4d1c51feb4 Isolate document download speed from open speed in benchmark 2013-11-22 00:47:38 +11:00
Philip Peitsch 09d16af16b Provide a sourceURL for runtime.js in all programs 2013-11-21 23:41:40 +11:00
Philip Peitsch 0a707b9129 Add required member information to benchmark 2013-11-21 21:35:06 +11:00
Philip Peitsch bbf92720db Add missing constructor docs 2013-11-21 11:43:39 +11:00
Philip Peitsch 9b95f7762b Use SIMPLE_OPTIMIZATIONS when building html-benchmark 2013-11-21 11:43:39 +11:00
Philip Peitsch d6f6437c27 Moved from programs/benchmarking to programs/benchmark 2013-11-21 11:43:39 +11:00