Commit Graph
443 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 3224e5495d Use relative paths in dojoConfig 2014-02-19 12:44:51 +01:00
Friedrich W. H. Kossebau e0c240cdeb Remove unused old avatar images flower and pigeon 2014-02-19 12:44:42 +01:00
Friedrich W. H. Kossebau 7f20c22627 Set runtime.currentDirectory/libraryPaths in faked webodf.js for out-of-source runs
Frees "production" code from adjustments for out-of-source developer code
2014-02-17 17:19:46 +01:00
Aditya Bhatt 4214259c6a Editor: Remove window event listeners on destroy(). 2014-02-17 14:51:32 +01:00
Aditya Bhatt ca2135d34f Make canvasContainer dodge the overlapping toolbar. 2014-02-17 14:51:32 +01:00
Aditya Bhatt 2b41f5b328 Toolbar polish:
* Make the toolbar absolutely positioned and full-width.
This should let it's contents properly reflow when the
screen is not wide enough.
* Add a little shadow.
2014-02-17 14:51:32 +01:00
Aditya Bhatt 61831d8e2d Fix toolbar positioning on body scroll.
When, after clicking in the text, the iOS keyboard
pops up, the entire editor body is scrolled upwards
because the window is shrunk, even if there was
no way to scroll it before.
This means that the toolbar slides upwards and out
of the visible part of the viewport.

This is unacceptable, therefore this commit introduces
a fix:
CSS-translate the toolbar when detecting a scroll. focusout,
or touchmove event.
2014-02-17 14:51:32 +01:00
Aditya Bhatt fe8fff71b8 Let the canvas's container have bouncy webkit scroll,
disable pinch-to-zoom on the editor and viewer.
2014-02-17 14:51:32 +01:00
Friedrich W. H. Kossebau dd6f6fa2eb Fix file headers missing AGPL copy note & @source not yet pointing to github 2014-02-12 15:58:15 +01:00
Friedrich W. H. Kossebau cb691213e6 No longer cursor insertion in SessionController.startEditing, fix cursor removal where missing 2014-02-12 01:22:26 +01:00
Friedrich W. H. Kossebau 927fcb7e8d Remove unmaintained adapter to nowjs-based server 2014-02-06 12:32:32 +01:00
Friedrich W. H. Kossebau 4824548860 Adapt PullboxOperationRouter to batch processing signals
Missing from 26a9252edb
2014-02-05 16:32:48 +01:00
Jos van den Oever f376bbfb78 Update EditorSession to the new document API. 2014-02-05 14:24:25 +01:00
Friedrich W. H. Kossebau d2671e2a00 @returns -> @return 2014-01-31 15:33:43 +01:00
Friedrich W. H. Kossebau 142052b986 Add link to editor's welcome.odt (for webodf.org of course :) ) 2014-01-31 13:22:48 +01: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
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
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
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
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
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 09d16af16b Provide a sourceURL for runtime.js in all programs 2013-11-21 23:41:40 +11:00
Aditya Bhatt ec5567bd09 Remove all occurrences of MemberModel and TrivialMemberModel 2013-11-20 22:26:02 +01:00
Aditya Bhatt e16cc38edb == Op-ify member data handling ==
* New operations: OpAddMember, OpRemoveMember,
OpUpdateMember.
* Member data is now handled in a memberDataManager
instance inside OdtDocument.
* Any operations must be executed only if a member
is present within this model.
* All polling code for member data has been removed;
colors, names, and images now instantly update
whenever a member data operation is executed.
* Added relevant entries to the OT Matrix.
2013-11-20 18:56:47 +01:00
Friedrich W. H. Kossebau 6d9fa2108b Remove no longer needed spans for menubar (slipped the last cleanup it seems) 2013-11-20 18:46:38 +01:00
Friedrich W. H. Kossebau 248e35ad8b Rename AnnotationManager to AnnotationController
also call do not call AnnotationViewManager objects not annotationManager
2013-11-19 19:56:15 +01:00
Friedrich W. H. Kossebau db0ecac6ee Make directTextStyler no longer optional, now that it works also in collab mode 2013-11-15 15:30:32 +01:00
Aditya Bhatt 2dcd55205b Have dedicated Editor.closeDocument and Editor.closeSession
methods to correspond to openDocument and openSession.
Remove unused EditorSession.close method, not sure what it was
used for.
2013-11-14 21:47:26 +01:00