Commit Graph
769 Commits
Author SHA1 Message Date
Aditya Bhatt b02e11f1cc Make image insertion respect review mode constraints. 2014-06-06 15:11:31 +02:00
Aditya Bhatt 052a3cf04a Move image insertion code from EditorSession to ImageInserter.
This allows access to controllers directly in the widget, as is
the convention.
2014-06-06 15:11:31 +02:00
Aditya Bhatt 58cbeabf19 Make hyperlink editing respect review mode constraints. 2014-06-06 15:11:31 +02:00
Aditya Bhatt 1467ea6d2a Introduce "Review Mode".
Let DirectFormattingController obey this "edit.reviewMode"
constraint by not creating any operations or processing any
action to format text when the cursor is not within the local
user's annotation.

Signals are exposed to toolbar widgets so they may
enable/disable themselves on the fly depending on the cursor
context.
2014-06-06 15:11:29 +02:00
Aditya Bhatt 51ee5624c4 Add a constraint to disallow deleting others' annotations.
This introduces SessionConstraints into SessionController
and AnnotationController. The latter comes with a new
permission, namely "edit.annotations.onlyDeleteOwn".

Code is added into AnnotationController to check
for the author name of the annotation node to be deleted,
and do nothing if it matches the name of the current
user.
2014-06-06 14:30:44 +02:00
Aditya Bhatt 7c98fbaa8a Do not disable paragraph alignment buttons on image selection. 2014-06-05 14:20:19 +02:00
Friedrich W. H. Kossebau 8c350e927b Add license header also to all CSS and big test data xml files 2014-06-03 12:37:12 +02:00
Friedrich W. H. Kossebau 7f80e8e163 Normalize license headers of editor/benchmark/tests/firefox-addon/viewer source files
* remove @license tag, for consistency with library source files
* use copyright@kogmbh.com email address everywhere
* remove "additional permission", to be added only to released stuff
* separate license header by empty line from following content
2014-06-02 17:49:46 +02:00
Friedrich W. H. Kossebau 5e3d2d708f Add gui.MetadataController 2014-05-27 15:03:53 +02:00
Friedrich W. H. Kossebau c05c4220f4 deduplicate tool creation code in Tools 2014-05-27 14:35:01 +02:00
Friedrich W. H. Kossebau b91a97c21f add flags to enable/disable all editor (toolbar) action sets 2014-05-27 13:42:28 +02:00
Friedrich W. H. Kossebau 2eb335662b Rename product targets and add consistent prefix "product-" 2014-05-27 11:38:28 +02:00
Friedrich W. H. Kossebau e8d31d454b Move bitrotted programs for iOS, Playbook and Qt to attic/ 2014-05-23 13:45:07 +02:00
Friedrich W. H. Kossebau 14579dc458 WebODF viewer is now part of ViewerJS, so remove outdated README-viewer.odt 2014-05-23 13:29:33 +02:00
Friedrich W. H. Kossebau 0d47fb69c8 Return only operation specs as transformation result, not operation objects 2014-05-21 11:16:37 +02:00
Jos van den Oever 8344b68de2 Simplify the detection of android.
This also makes it more robust.
2014-05-20 23:09:13 +02:00
Aditya Bhatt d6d376f9f4 Add methods setMetadata and getMetadata to Editor. 2014-05-20 14:33:46 +02:00
Aditya Bhatt f0e403748d Add signalling for metadata changes to OdtDocument
and the Editor.
2014-05-20 14:33:46 +02:00
Friedrich W. H. Kossebau 3e05ab28df use the new official name "ViewerJS" consistently everywhere 2014-05-19 10:43:51 +02:00
Aditya Bhatt fc4443eb3c Apply presentation mode styling via classList.add,
and not by setting the className.
2014-05-16 15:56:14 +02:00
Aditya Bhatt 014315ad78 Move slideshow CSS customizations for canvasContainer to viewer.css 2014-05-16 15:50:45 +02:00
Aditya Bhatt 4ae5488699 Center all slideshow pages 2014-05-16 15:50:45 +02:00
Aditya Bhatt 0bd2ee449d Do not show a scrollbar in slideshows in the viewer.
Slideshows are (currently) meant to be navigated by
the nav buttons.
2014-05-16 15:50:45 +02:00
Aditya Bhatt 616824c916 Make canvas overflow hidden.
Even though the sizer is scaled, it's original 'ghost'
size is used to hint scrollbars in Firefox (unlike in Chrome).
Therefore the canvas's overflow needs to be hidden to
prevent this ghost size leak.
2014-05-16 15:50:45 +02:00
Friedrich W. H. Kossebau fb4b2b7ca4 Add about dialog to editor component 2014-05-16 14:57:40 +02:00
Philip Peitsch cd8bf92832 Suppress manual task processing to prevent skewing of benchmark figures
Manually processing the redraw tasks vastly affects the current benchmark
results, dwarfing impacts from most other subsystems. Disabling this for
now to aid tuning of non-UI components.
2014-05-16 21:28:46 +10:00
Francesco Frassinleli 50170cee94 Add italian translation, under MIT license 2014-05-16 13:14:45 +02:00
Friedrich W. H. Kossebau d302b3f07e Make qtjsruntime work on windows and it's C:/foo/bar paths 2014-05-13 19:07:58 +02:00
Friedrich W. H. Kossebau 08e9108ebf Use Qt5 for qtjsruntime 2014-05-13 19:07:58 +02:00
Philip Peitsch ff0e7f8898 Improve avatar alignment to centre better with relation to the caret
The avatar was not staying well centred over the caret, and wouldn't move
vertically when the caret grew to match the text size. The easiest way to
ensure these stay properly aligned is to wrap both inside a sub-container.
2014-05-13 18:38:20 +10:00
Philip Peitsch 234380ef33 Migrate avatar CSS rules from editor to webodf.css
Each css file contained some of the rules required for the avatar display.
There are enough stylistic elements in webodf.css the avatars look strange
if the editor.css rules are not present.

Clean up this problem by merging all the rules into webodf core.
2014-05-13 18:38:19 +10:00
Friedrich W. H. Kossebau 27b533e10e attribute style:display-name is only optional, use style:name as fallback for display 2014-04-30 12:03:14 +02:00
Aditya Bhatt 8d5019d6f5 Add a check for the "webodf" namespace
before looking into it for version information
in the ODFViewerPlugin.
2014-04-23 12:07:53 +02:00
Jos van den Oever 458081302d Merge pull request #542 from vandenoever/datenow
Slight optimization: use Date.now() instead of (new Date()).getTime().
2014-04-17 16:37:18 +02:00
Jos van den Oever 4702b73090 Slight optimization: use Date.now() instead of (new Date()).getTime().
This avoids creating a new date object that is discarded immediately.
2014-04-17 16:36:13 +02:00
Friedrich W. H. Kossebau 545ece257f Fix: disable annotation creation key combo in collab editor 2014-04-14 13:11:38 +02:00
Friedrich W. H. Kossebau 97ff04b0a7 make Webodf version a global property on the new namespace webodf 2014-04-11 15:05:07 +02:00
Aditya Bhatt e68b320448 The editor's body css should not affect the
office:body element.
2014-04-11 14:49:21 +02:00
Friedrich W. H. Kossebau fd020eee3f Use Error objects in callback passed to "destroy" methods
The currently plain undefined objects are not useful at all, because
the properties are undefined.
2014-04-11 13:53:10 +02:00
Jos van den Oever ab63f99ba0 Add dutch translation.
Remove a duplicate entry from the german translation and add some new translation strings in dutch and german.
2014-04-11 13:33:10 +02:00
Friedrich W. H. Kossebau 4da214206a Make html files of editor and viewer HTML5 validated
Check done with http://validator.w3.org/check
2014-04-10 14:17:16 +02:00
Aditya Bhatt c05a752bf0 Slide toolbars in/out on tap on a small device screen.
Use a fixed 5 second duration for such UI animations.
2014-04-09 16:39:00 +02:00
Friedrich W. H. Kossebau c4de5bf17b Use NODE, TOOLS_DIR and RUNTIMEJS vars consistently in CMakeLists.txt 2014-04-09 11:43:15 +02:00
Friedrich W. H. Kossebau cf7a7e6a51 No need to copy webodf.css & ${LIBJSFILES} to touchui build, noone uses it 2014-04-09 11:43:15 +02:00
Friedrich W. H. Kossebau a859033026 No more need to copy webodf.css for nativeQtClient, compiled webodf.js is used 2014-04-09 11:43:15 +02:00
Friedrich W. H. Kossebau cf4ea1ee67 Move var HTML5UIFILES as TOUCHUI_FILES from toplevel CMakeLists.txt into touchui's 2014-04-09 11:43:15 +02:00
Philip Peitsch acef143923 Move ODT-specific logic out of StepsCache into the steps translator
This is purely a refactor laying the groundwork for fixing the failing
operations tests. There are no expected functional impacts.
2014-04-09 17:05:32 +10:00
Friedrich W. H. Kossebau 5503c8698c Fix docnosis by loading also class xmldom.RelaxNGParser 2014-04-08 13:48:38 +02:00
Friedrich W. H. Kossebau a7a827a66a Adapt name of firefox extension build target and file to actual name 2014-04-08 11:51:22 +02:00
Friedrich W. H. Kossebau c9c2f81214 Unix line-endings for playbook/ext/blackberry.custom.filereader/library.xml 2014-04-07 15:23:40 +02:00