Commit graph

1464 commits

Author SHA1 Message Date
Henry Castro
947f1d3d86 loleaflet: fix extra height for optimal row
Also increase setTimeout to 400 for dblclick auto fit
2016-08-31 15:52:23 -04:00
Jan Holesovsky
c3a3d81365 Breeze icon for the 'Document repair'. 2016-08-31 19:26:23 +02:00
Pranav Kant
d223f2a0e4 loleaflet: Notifications when new user joins, leaves
Change-Id: I71b9ffb82fa2a0104df6f2600558b1b094f1195f
2016-08-30 20:39:01 +05:30
Pranav Kant
394054ecbf loleaflet: Include username in removeview signal
Change-Id: I6b9cdf2712d130d09c7bddcbe68042eacfacb8bb
2016-08-30 20:39:01 +05:30
Pranav Kant
aca73d2ac5 loleaflet: Don't use input for userlist; use menu list
Change-Id: I29244e3989fa5ca52c701c05996669cd548a0109
2016-08-30 20:39:01 +05:30
Pranav Kant
491876b537 loleaflet: Show cursor name on hover
Change-Id: Ibca3a5e80a21c83e27ba47a6fe39f788a261c1e5
2016-08-30 20:38:42 +05:30
Pranav Kant
c4a01564e6 loleaflet: Cursor name timeout increased to 3s
Change-Id: I9fb36c90669af91a9da557e43de263a7900d66d9
2016-08-30 20:38:42 +05:30
Andras Timar
56370e60e8 loleaflet: font + l10n for Users dropdown 2016-08-30 11:50:53 +02:00
Pranav Kant
5e4af61658 loleaflet: Use names echoed from loolwsd for cursors
Change-Id: Ibcb513889c41aa9ec34903fbe68e3dc28d2d1802
Reviewed-on: https://gerrit.libreoffice.org/28483
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-08-30 07:46:00 +00:00
Pranav Kant
3d29df6f99 loleaflet: Show a user list in bottom toolbar
Change-Id: I5aa87a6da3c6af9da0138bdfe51fbb707a47ba3e
Reviewed-on: https://gerrit.libreoffice.org/28480
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-08-30 07:45:28 +00:00
Pranav Kant
10d4c96b51 remove edit lock from UI
Change-Id: Ib437e1576efae45ca717b7eef8e3c535165b0c16
Reviewed-on: https://gerrit.libreoffice.org/28479
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-08-30 07:44:58 +00:00
Pranav Kant
7536deab8e loleaflet: addView and removeView map methods
Change-Id: I6ad2013f3378969822ba20e578d5b2b1cc26ec60
Reviewed-on: https://gerrit.libreoffice.org/28478
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-08-30 07:44:47 +00:00
Pranav Kant
3d8b73da8b loleaflet: Infrastructure for user list
Change-Id: If06d014174479d3d05397422c000ca47c51c819e
Reviewed-on: https://gerrit.libreoffice.org/28477
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-08-30 07:44:35 +00:00
Ashod Nakashian
f3ca27e512 loleaflet: double-click on repair entry to jump to state
Change-Id: I19dc530df0e36b83b6e19922a1a32d495324c3a8
Reviewed-on: https://gerrit.libreoffice.org/28443
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-28 22:37:27 +00:00
Henry Castro
f87edc7367 loleaflet: update menu repair 2016-08-28 10:06:00 -04:00
Henry Castro
ab780acd0a loleaflet: add document repair toolbar item 2016-08-28 09:08:18 -04:00
Henry Castro
fa96352881 loleaflet: add L.Control.DocumentRepair 2016-08-28 08:57:27 -04:00
Ashod Nakashian
78d4c7706d loleaflet: Repair command and dialog handler
Change-Id: I68853b2d4ec269c7f3d275f6bb7c192bd8ea41d7
Reviewed-on: https://gerrit.libreoffice.org/28408
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-26 12:47:44 +00:00
Ashod Nakashian
960e0521bc Formatting
Change-Id: Iad77e0f69cdb186da35cf3b2d1c0e9020df31870
Reviewed-on: https://gerrit.libreoffice.org/28407
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-26 12:46:51 +00:00
Oliver Specht
5902700922 Add footnote and text wrap functions 2016-08-26 10:36:04 +02:00
Pranav Kant
620b322bd2 loleaflet: Give hats the names
Put a placeholder for now; replace with real names when we have
them from loolwsd.
2016-08-25 19:17:45 +05:30
Pranav Kant
79aa4d5e06 loleaflet: Hide the hat after 1.5s of inactivity in cursor 2016-08-25 19:17:45 +05:30
Pranav Kant
3ff170a194 loleaflet: Adjust the hat a bit; don't make it change cursor pos 2016-08-25 19:17:45 +05:30
Pranav Kant
73f7e48c90 loleaflet: A hat for colored cursors 2016-08-25 19:17:45 +05:30
Jan Iversen
4af3b8546d update of pootle strings
This is a manual update, as a prelude to the automatic
pootle update.
2016-08-24 11:07:24 +00:00
Andras Timar
ff3c15fd40 loleaflet: expose Wrap and Anchor context menus for images 2016-08-23 15:36:59 +02:00
Ashod Nakashian
169fb52a4b loleaflet: remove view selection when closed
Change-Id: Ia822a00bab13be12e327aee936ed9fb0d3d211b0
Reviewed-on: https://gerrit.libreoffice.org/28303
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:45:24 +00:00
Ashod Nakashian
dd4ccbafa8 loleaflet: make admin graph container just wide enough not to trim the labels
Change-Id: I5ecc22b9dc9d09a3129c0d948ac51c3fd7e1447d
Reviewed-on: https://gerrit.libreoffice.org/28298
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:22:57 +00:00
Henry Castro
23a71ac35b loleaflet: add L.Control.MetricInput 2016-08-21 16:08:40 -04:00
Pranav Kant
77be7d6e18 loleaflet: Prevent double-decoding utf8; fixes context menu
Text messages are already utf8 decoded, so we only need to decode
if its a binary message, not otherwise.

This also fixes context menu invocation on the UI as in some
cases double-decoding of utf8 strings would throw a URI malformed
error. This problem started to appear after we explicitly started
sending context menu payload as text message rather than binary
message in ecd33e1b07
2016-08-21 19:41:33 +05:30
Andras Timar
a68274c1de loleaflet: spinner l10n 2016-08-19 14:34:30 +02:00
Marco Cecchetti
26fa0651d6 loleaflet: initial support for multiple cursor in Calc 2016-08-18 10:08:26 +02:00
Henry Castro
2757adc3c6 loleaflet: add dblclick row/column to process optimal height/width 2016-08-17 09:15:42 -04:00
Pranav Kant
f41b947960 loleaflet: Disable pointer events on graphic marker boundary 2016-08-16 22:43:48 +05:30
Pranav Kant
9ec2aba359 loleaflet: Disable pointer events on cell cursor
otherwise, it would invoke browser's context menu upon
right-clicking on the cell cursor (border of the cell; on black
lines)
2016-08-16 22:41:31 +05:30
Andras Timar
ab1d022598 fix jake lint indentation errors 2016-08-16 10:59:36 +02:00
Pranav Kant
449861fa12 loleaflet: multi-view; better handling of polygons 2016-08-16 13:34:42 +05:30
Pranav Kant
eac8f32eda loleaflet: Prevent creating Polygon instances unnecessarily
L.Polygon can take array of latlng pairs. Lets pass the full
array instead of passing each array element one by one and
creating Polygon instances everytime.
2016-08-16 13:34:41 +05:30
Pranav Kant
1b92b481ee loleaflet: reference; add missing method to PolyUtil 2016-08-16 13:34:39 +05:30
Pranav Kant
93c114d0f4 Update README 2016-08-16 11:17:00 +05:30
Pranav Kant
e86e7a73f8 loleaflet: performance improvements in build process
Minifiying the js code was taking too much time. Minifying is not
really needed on developer's machine, so lets disable it by
default, otherwise it gets annoying during development having to
wait for so many seconds for it to build.

A simple 'make' now means no debug-info and non-minified
bundle.js. To add debug-info(source-maps), do 'make DEBUG=true'.
And to minify, similarly use the MINIFY=true variable with make.

'make dist' forcefully minifies the js code.
2016-08-16 11:11:16 +05:30
Pranav Kant
82e1769fe8 loleaflet: textviewcallback support; colored text selections 2016-08-15 20:33:30 +05:30
Ashod Nakashian
59ed1bd2ff loleaflet: new command remallviews to remove all views
This command is intended to be used when re-activating a
client. It is intended to be sent prior to sending the
list of active views, including the re-activating
client's own view.

A client UI must maintain its own view ID and info
when receiving this command.

Change-Id: Iea58c01fb30af139888e746b5cf9e7ba7e7eeab1
Reviewed-on: https://gerrit.libreoffice.org/28132
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-15 03:15:47 +00:00
Ashod Nakashian
fbcce1b803 loleaflet+loolwsd: new commands addview and remview
The new commands help the UI update the cursors and other
visual elements that track views and clients.

Currently, when remview is received loleaflet removes
the associated cursor from the screen.

Change-Id: I03e2f9e3485166adae31de84ae7ac6bd1c85b05d
Reviewed-on: https://gerrit.libreoffice.org/28131
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-15 03:15:01 +00:00
Henry Castro
817cacde84 loleaflet: drag & drop to unhide column/row 2016-08-13 12:16:03 -04:00
Henry Castro
1de001e283 loleaflet: fix small column/row resize 2016-08-12 13:51:25 -04:00
Pranav Kant
461e1d5cb0 loleaflet: Externalize source-maps only if debug=true
Otherwise, running exorcist when debug is off gives a broken
bundle.js
2016-08-11 21:38:53 +05:30
Pranav Kant
ef878326b7 loleaflet: Remove hack for viewid=0
This is not needed now, as fixed in loolwsd.
2016-08-11 17:34:36 +05:30
Pranav Kant
8a55ab1ee5 loleaflet: Remove 'black' color from list of cursor dark colors
Black is reserved for current view's cursor.
2016-08-11 17:33:15 +05:30
Pranav Kant
af36ebeae2 loleaflet: Update README regarding source-maps and .gitignore 2016-08-11 16:39:54 +05:30
Pranav Kant
a28203424d loleaflet: Separate source map files from the bundle 2016-08-11 16:29:08 +05:30
Pranav Kant
26ff7ce80e loleaflet: Add exorcist to dependency tree
This is required for separating source maps from our bundles.
2016-08-11 16:27:21 +05:30
Pranav Kant
8c74346a6f loleaflet: colon -> comma 2016-08-11 16:20:27 +05:30
Pranav Kant
bedb546714 loleaflet: Update npm-shrinkwrap.json with updated module name
s/leaflet/loleaflet/ in 2b7bd99fcd
2016-08-11 15:55:49 +05:30
Pranav Kant
65b83c0409 loleaflet: Minify our js bundle 2016-08-11 15:55:49 +05:30
Pranav Kant
3cab3e0d34 loleaflet: Add uglifyify for minifying js code 2016-08-11 15:55:49 +05:30
Pranav Kant
a08f05e938 loleaflet: Port to new API based build process; remove older ones 2016-08-11 14:55:23 +05:30
Pranav Kant
ebaecafdeb loleaflet: Add debug support to API based build process 2016-08-11 14:46:55 +05:30
Pranav Kant
1156a9534f loleaflet: build: Use API to bundle, instead of commands
This should give more fine-grained control as now we are sure
what version of browserify, or any other tool we are using to bundle
our assets. Installing browserify globally is also not required now.

This will also be helpful when we add more complicated transforms
and other tools to our build process, as otherwise it would keep
complicating our command used currently for the build process.
2016-08-11 14:36:47 +05:30
Pranav Kant
e09da0d764 loleaflet: Superfluous colon 2016-08-11 13:46:11 +05:30
Henry Castro
216ff61baf loleaflet: limit vertical/horizontal line movement 2016-08-10 17:05:45 -04:00
Henry Castro
d32f4e824b loleaflet: fix offset while moving vertical/horizontal line 2016-08-10 11:33:20 -04:00
Jan Iversen
ff1b071a8f pot file update, to help automate the pootle connection
Added more explanation in the README.
Corrected template -> templates
2016-08-10 10:36:57 +00:00
Henry Castro
a0499e4a65 loleaflet: fix vertical center text of row header 2016-08-09 15:50:35 -04:00
Henry Castro
5c75f31305 loleaflet: add Vertical/Horizontal line when dragging Column/Row 2016-08-09 15:15:54 -04:00
Pranav Kant
bdc4b61ba7 loleaflet: Remove irrelevant inherited files from upstream Leflet 2016-08-09 20:36:03 +05:30
Pranav Kant
9b9e5199e0 loleaflet: Update README 2016-08-09 20:28:10 +05:30
Pranav Kant
2b7bd99fcd loleaflet: Update package.json 2016-08-09 20:23:24 +05:30
Pranav Kant
5f44c55011 loleaflet: npm-sify d3.js
Don't use external CDN for this library, rather 'require()' it
from our local npm modules.
2016-08-09 20:18:59 +05:30
Pranav Kant
6c69b63be5 loleaflet: Browserify admin, more modularization, npm-isation
Use browserify for admin console scripts too.

Modularize needed files such as l10n strings for console.

Use npm for managing bootstrap as dependency of admin console.
2016-08-09 20:18:59 +05:30
Pranav Kant
f75de86c6d loleaflet: Modularize admin console scripts
Let the whole compiled admin bundle export a variable 'Admin' and
attach various classes to this global variable, similar to how we
have in Leaflet having a global L variable and other things
attached to this variable.
2016-08-09 20:18:59 +05:30
Jan Iversen
7839aecac6 Changed Makefile and po directory, to prepare for automatic pootle commit
Changed "make pot" to deliver files in po/template, so the .pot files
are committed as well as the resulting .po files.

Added a README to explain, that styles is not part of translation.
2016-08-09 07:18:09 +00:00
Pranav Kant
3761e5e9c2 loleaflet: Debug mode bundle.js with source maps 2016-08-08 11:15:10 +05:30
Ashod Nakashian
045f0b6388 loleaflet: npm requirement and upgrade instructions added
Change-Id: Id769931cfef8c6c1cc291b12ed399484f6b19f97
Reviewed-on: https://gerrit.libreoffice.org/27972
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:54:06 +00:00
Pranav Kant
3fdd2cb151 loleaflet: Handle 'viewcursorvisible' message 2016-08-07 21:39:54 +05:30
Pranav Kant
d307315f75 loleaflet: Ignore irrelevant view messages coming from server
View callbacks with viewid = 0 seems strange; it always lurks
around but is never attached to any view.

Also, view callbacks with viewid = our own viewid should not be
sent from the server, lets ignore them for now.
2016-08-07 21:39:54 +05:30
Pranav Kant
6ff4cd69f0 loleaflet: Handle 'invalidateviewcursor' and show colored cursors
... for different views based on view ids received from the
server.
2016-08-07 21:39:54 +05:30
Pranav Kant
0284235da1 loleaflet: Support for non-blinking colored cursors 2016-08-07 21:39:54 +05:30
Pranav Kant
726b213dcf loleaflet: Add viewId to color mapping; using colordata.hxx 2016-08-07 21:39:54 +05:30
Pranav Kant
8dd2987871 loleaflet: Store viewId of the view received in 'status:' command 2016-08-07 21:39:54 +05:30
Pranav Kant
d144d4ac47 loleaflet: Separate blinking-cursor property from cursor
... so that it is possibe to make cursor non-blinking whenever we
want. This will be used in subsequent commits for view cursors.
2016-08-07 21:39:54 +05:30
Henry Castro
77224486f2 loleaflet: add drag & drop Column/Row resize 2016-08-07 11:13:59 -04:00
Henry Castro
3336af0804 loleaflet: add Column/Row cursor resize 2016-08-04 16:52:00 -04:00
Jan Holesovsky
d60a8848d2 Pull translations from Pootle.
(cherry picked from commit ed0861c9c00a20dd4f9c35725860a409f2e52a92)
2016-08-04 10:34:18 +02:00
Jan Holesovsky
3b3c8760c2 We are using large icons from the Breeze theme, update the Calc toolbar. 2016-08-04 10:03:16 +02:00
Jan Holesovsky
b7619f93d5 Remove unused images: we don't use small images any more.
It was a bad idea keeping them around, apparently they are confusing people...
2016-08-04 10:03:07 +02:00
Pranav Kant
1350ac3ee9 loleaflet: Expose more global variables
'title' is accessed by loleaflet, so need to expose this too.
2016-08-03 18:27:23 +05:30
Pranav Kant
b99d51616c loleaflet: Update README for updating dependencies 2016-08-03 15:45:01 +05:30
Pranav Kant
5014cb8cc2 loleaflet: Bump jquery-contextmenu to 2.2.3
With current version, position of context menu is not set at
specified position. 2.2.3 fixes the issue.

Also udpate tarballs in node_shrinkwrap and dep. tree in
npm-shrinkwrap.json
2016-08-03 15:45:01 +05:30
Pranav Kant
484c664445 loleaflet: Shrinkwrap and shrinkpack; local dependencies tarballs
Using npm-shrinkwrap, we are locking in our dependency tree
completely, leaving no scope of being affected by any
regression in any of the dependencies. In other words, all of the
dependency tree is dumped in npm-shrinkwrap.json file.

Using shrinkpack, we are also committing these tarballs of
dependencies in node_shrinkwrap/, so that, we are not
depending on npm registry at all during our build process. Since these
are just tarballs, its also better space-wise than committing
node_modules/ per se.

Developers when want to update any dependency should bump the
version in package.json, and also commit the new copy of
tarballs in node_shrinkwrap/.

See: https://github.com/JamieMason/shrinkpack for more info.
2016-08-03 15:45:01 +05:30
Pranav Kant
ebacc6624a loleaflet: Bump jquery version to 2.2.4
Mainly because one of the dependency depends on it, so why have
two different versions of jquery in our dep tree.
2016-08-03 15:45:01 +05:30
Pranav Kant
38d574476b loleaflet: Remove unused dependencies
Commented out devDependencies; these are required for testing framework
inherited from upstream leaflet, but we do not have such tests as of
now for loleaflet.

Move them to devDependencies when need arises.
2016-08-03 15:45:01 +05:30
Pranav Kant
9ebb23aa77 loleaflet: Ununsed dependency
Can't find it being used anywhere.
2016-08-03 15:45:01 +05:30
Pranav Kant
51590125de loleaflet: Bump select2 version
We need https://github.com/select2/select2/issues/3287 which is
fixed in 4.0.1
2016-08-03 15:45:01 +05:30
Pranav Kant
0a7d6d7794 loleaflet: Remove unused files; bower config and publish scripts
This is only leaflet related, not needed in loleaflet.
2016-08-03 15:45:01 +05:30
Pranav Kant
d85127eda3 loleaflet: These are not needed now as we browserify
... and use them from node_modules/ directly now.
2016-08-03 15:45:01 +05:30
Pranav Kant
a69eea3d58 loleaflet: Modularize all of the CSS; browersify-css
Follow the same approach to bundle everything into a single file
as done for the js files in previous commit.
2016-08-03 15:45:01 +05:30
Pranav Kant
5b6df600a7 loleaflet: Modularize all of the js; use browserify
Don't include each third party script in a separate <script> tag,
rather have one single main.js file require'ing these different
scripts. Then `browserify' on main.js which bundles everything
into a single bundle.js containing all of the dependencies.

Also add these 3rd party scripts such as jquery, jquery-ui,
select2 etc. using npm, rather than manually downloading their
files from the internet. This should ease the process of managing
these front-end dependencies; upgrade process should be very easy
now.
2016-08-03 15:45:01 +05:30
Pranav Kant
1410f34d0f loleaflet: Consistency, start url with /loleaflet 2016-08-03 15:45:01 +05:30
Pranav Kant
2b5418a151 loleaflet: Typo; Colon -> comma operator 2016-08-03 15:45:01 +05:30
Pranav Kant
7f84b2eb4c loleaflet: Update license field
specifying the type and URL is deprecated:

https://docs.npmjs.com/files/package.json#license
http://npm1k.org/

(inspired from 6a6d833a2f407bad37587f5e30bf56fb539e7f8d in
upstream Leaflet)
2016-08-03 15:45:01 +05:30
Pranav Kant
efbd0a4940 loleaflet: Fix incorrect info in README 2016-08-03 15:45:01 +05:30
Ashod Nakashian
b04f29b679 loleaflet: dim the UI after 30 seconds of losing focus
Change-Id: I28239eb92e758b45d10e260c7a8f616062b22839
Reviewed-on: https://gerrit.libreoffice.org/27681
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-29 11:59:56 +00:00
Pranav Kant
b8ef017610 Move JWT auth to inside websocket to prevent CSRF
... instead of setting a httpOnly cookie for admin websocket
endpoint which can be CSRFed.

With this, we remove the httpOnly tag on jwt cookie so that
scripts in admin html pages can access the jwt cookie and
authenticates after opening websocket endpoint. Until
authenticated using 'auth authToken' command, admin will not
respond to any admin command.

Also, adapt admin test these changes
2016-07-29 12:03:14 +05:30
Henry Castro
7f5eed80a0 loleaflet: remove styles toolbar from spreadsheets 2016-07-24 10:55:51 -04:00
Ashod Nakashian
e685f6a306 loleaflet: disable grey-out when debug-tools is open
Change-Id: Id3d2502fc7a38303395e70b710adaeaf7fae92a6
Reviewed-on: https://gerrit.libreoffice.org/27451
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-23 02:57:49 +00:00
Henry Castro
fa02df7ad3 loleaflet: avoid Uncaught TypeError: Cannot read property
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
2016-07-22 20:39:29 -04:00
Pranav Kant
6457d779da loleaflet: admin console: Refactor and fix potential XSS
Use jquery instead of plain html methods.

Change-Id: I6f70ef81ca7f021f8b42a1e4faea055ef1f15e37
2016-07-19 15:54:42 +05:30
Andras Timar
35f0ba3c5b Pull translations from Pootle 2016-07-18 16:47:19 +02:00
Pranav Kant
c9f0f81a1a loleaflet: Convert Ctrl + s to .uno:Save
Saving this way, key sequences are forwarded to core directly, so
loolwsd is not aware if a save operation is going on or not. This
leads to problem as loolwsd might want to upload to storage.

Change-Id: I32d10012064a0dda7fff0c3ac4848f140b1b6fb8
2016-07-18 12:10:25 +05:30
Henry Castro
d57c5758fd loleaflet: add a menu drop down toolbar item 2016-07-14 22:24:50 -04:00
Henry Castro
ddfd0a3341 loleaflet: add more toolbar items
.uno:SortAscending
.uno:SortDescending
2016-07-14 13:49:35 -04:00
Henry Castro
7fd9d334af loleaflet: cleanup unused statusbar items 2016-07-13 14:26:54 -04:00
Henry Castro
0202479687 loleaflet: l10n of 'Slide %1 of %2' 2016-07-13 10:45:23 -04:00
Henry Castro
3e2d81f37b loleaflet: l10n of '%1 words, %2 characters' 2016-07-13 10:02:59 -04:00
Henry Castro
374c288800 loleaflet: l10n of 'Page %1 of %2' 2016-07-13 09:18:00 -04:00
Henry Castro
e5a6ea3421 loleaflet: l10n of '$1 rows, $2 columns selected' 2016-07-12 18:04:37 -04:00
Henry Castro
111c660d46 loleaflet: l10n of 'Sheet 1% of %2' 2016-07-12 16:54:49 -04:00
Pranav Kant
1265032896 loleaflet: Separate document URL from query params
Change-Id: I9b8381b8c0d92796aadabe0bc63e5a1b144f8b41
2016-07-11 11:24:19 +05:30
Pranav Kant
62814d29cf loolwsd: Introduce a readonly mode
Specified when websocket is initialized. Documents once
opened in readonly mode cannot edit throughout the life of the session.
This is very much like present view mode except the ability to
change to edit mode.

Change-Id: I176e3bbf210c3383268d1a5b50dc17f0cbfb26b8
2016-07-11 11:24:16 +05:30
Henry Castro
71efcf2b28 loleaflet: l10n of insert modes 2016-07-09 22:10:34 -04:00
Henry Castro
7137c9ef8e loleaflet: remove PageStyleName
It always return "Default"
2016-07-09 20:11:03 -04:00
Henry Castro
5905d25a41 loleaflet: fix state table cell
In cp-5.1 branch, the state table cell reports the string "Sum=0"
for empty cells, the client side splits the string with a separator '=',
so the status item shows "Sum".
2016-07-09 19:26:44 -04:00
Henry Castro
c6745cba8e loleaflet: l10n of selection modes 2016-07-09 18:07:55 -04:00
Andras Timar
3d80e2a263 Write translation to json, even when translation is the same as original string
A bug was found: Slide was translated to Slide in pt_BR, while Slide was
translated to Diapositivo in pt. The identical translation was ignored,
and browser fell back to pt translation, which was wrong in pt_BR UI.
2016-07-07 22:53:48 +02:00
Henry Castro
fdebaf6070 loleaflet: spreadsheet: add number format toolbar items 2016-07-07 14:03:30 -04:00
Henry Castro
4fb0869504 loleaflet: spreadsheet: add toolbaritems
Wrap Text
Merge and Center Cells
2016-07-06 14:38:17 -04:00
Henry Castro
e480aa86d6 loleaflet: spreadsheet: remove toolbar items 2016-07-05 14:03:55 -04:00
Pranav Kant
f3b263be27 loleaflet: Fix incorrect assignment
Assigning this._graphicMarker to visibleCursor leads to problems
as graphicMarker is not the same kind of object as visibleCursor.

Change-Id: Ic0aa1d7d2a8d11fa38a86e2c143342c9a16d507e
2016-07-05 20:56:16 +05:30
Pranav Kant
528707b334 loleaflet: Fire file chooser dialog even if same file is selected
OnInsertFile is triggered on onchange event, but this event is
not triggered if same image is choosen again from file chooser
dialog. Reset the value everytime so that onchange event is
always triggered.

Change-Id: I1efb76122b3a9437622754d28d0c55d4adbf32e8
2016-07-05 18:54:24 +05:30
Henry Castro
5442be5208 loleaflet: add status bar items css loleaflet-font 2016-07-03 11:02:24 -04:00
Henry Castro
1a6b102469 loleaflet: remove status bar item 'Signature'
They always report the same value
2016-07-03 10:49:36 -04:00
Henry Castro
c6af7d4a06 loleaflet: add status bar items for Impress 2016-07-03 10:33:22 -04:00
Andras Timar
c8144cdd01 loleaflet: Pull translations from Pootle 2016-07-03 13:08:25 +02:00
Henry Castro
dcf9839a0d loleaflet: add status bar items for Writer 2016-07-02 23:58:02 -04:00
Henry Castro
b3ff83251f loleaflet: replace '_' for ' ', to avoid ugly effect 2016-07-02 14:35:51 -04:00
Henry Castro
cc8f9f4c64 loleaflet: add status bar items for Calc 2016-06-30 18:25:57 -04:00
Pranav Kant
277c191eb0 loleaflet: Disable revision history option by default
Hosts are supposed to provide 'revisionhistory' parameter when
calling loleaflet.html

Change-Id: I6c1a89b602a739c0d30b7aeea680b4c577b37cc4
2016-06-29 19:44:31 +05:30
Pranav Kant
1106c0a5ac loleaflet: Simplify enable/disable logic in menubar
There is still one problem though, that if already opened
document is opened in a different browser window, it doesn't
receive any command states which shows enable/disable states of
menubar items incorrectly.

Change-Id: Ib03f1becfb6585fed075bb5f1bf9c587063323a6
2016-06-27 16:50:13 +05:30
Pranav Kant
f0812c14f0 Use new event doclayerinit in menubar init for menubar
This event was introduced in
c39045b1e4ece3eabbf9a9dbf24d8d4df7651e87

Change-Id: Icacb6584ac9e3ab7aaaef55c2c7f7cf2ea2393a7
2016-06-27 16:50:13 +05:30
Pranav Kant
8e023584ea loleaflet: Ask my host to show revision-history
Change-Id: If1ed5fc03c6504e22c565b0278983bb168bb6fc8
2016-06-27 16:50:13 +05:30
Pranav Kant
b2acd1cfbc Remove invalid placeholder
This is no longer valid since context menus are implemented in
loleaflet already.

Change-Id: Ic2e21a92c5fdd87a2f3c34a3ff16628337184e1d
2016-06-27 16:50:13 +05:30
Pranav Kant
454999fa57 loleaflet: Resurrect loleaflet permission model for readonly mode
Remove direct usage of editlock; instead change loleaflet
permission from view to edit when editlock message is received.
By default, map would be in 'view' mode and only get to 'edit'
when server asks it to switch to.

Use a new event 'doclayerinit' for actions that are directly
dependent on intialization of doclayer.

Change-Id: Iaceb95ad85721ddcd675c75cfeb1504ab2759ad4
2016-06-27 16:50:13 +05:30
Pranav Kant
29f2f3ec54 loleaflet: Lint before building
Change-Id: I5e38373959574b3a72fbfe0715a8758de9765438
2016-06-27 16:50:13 +05:30
Andras Timar
f540fb087c loolwsd: document new command line options in READMEs 2016-06-27 09:41:41 +02:00
Andras Timar
c3db6d719e reserve version 2.0.0 for actual release... 2016-06-27 09:20:09 +02:00
Pranav Kant
ce6866b0e5 loleaflet: Allow 'about', 'keyboard-shortcuts' in non-edit modes
Change-Id: I2def7a17d05ec7834290b94a51edfd589f6187ed
2016-06-24 23:33:42 +05:30
Andras Timar
95684540ea loleaflet: avoid ReferenceError exception when brandProductName is undefined 2016-06-22 23:46:39 +02:00
Andras Timar
80a81abc46 loleaflet: remove extra dist/ from URL 2016-06-22 23:38:06 +02:00
Andras Timar
17abf005a8 loleaflet: Collabora Office version x.y-z style in About box
LibreOffice is unaffected
2016-06-22 23:35:10 +02:00
Pranav Kant
10a5f8c08b loleaflet: l10n: Placeholder for product name
Change-Id: I883ff7e42cf37cd457b6cfcc065fff47b3dc469d
Reviewed-on: https://gerrit.libreoffice.org/26573
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-06-22 20:36:36 +00:00
Pranav Kant
55ead88236 loleaflet: Kill simplemodal library
Its use has been superceded by vex now

Change-Id: I4b032dd6e5de61548b76b56e946ced6fc86734d3
2016-06-22 20:09:35 +05:30
Pranav Kant
a789cff8e8 loleaflet: Migrate about dialog to vex
Change-Id: Id853ec14d817b2f4312dee70a087a4ac526e951b
2016-06-22 20:09:32 +05:30
Pranav Kant
1a46db62bd loleaflet: Workaround for an upstream bug in vex
https://github.com/HubSpot/vex/issues/43

Change-Id: Id26be54a3a1120119bddad442e30b5f71f1e2605
2016-06-22 20:00:26 +05:30
Pranav Kant
c632cf5716 loleaflet: Migrate keyboard-shortcuts dialog to vex
Change-Id: I82324405ee1205becea00fc1de97c248988ab378
2016-06-22 20:00:23 +05:30
Pranav Kant
e48a36816e loleaflet: Remove Help button from toolbar
... as we have this as 'Keyboard shortcuts' in menubar now.

Change-Id: I01f3735c6b1ac07d8bced2f98fc9dd514a178ce0
2016-06-22 14:43:47 +05:30
Pranav Kant
8bba9da761 Make new version string as a JSON string
... easy to differentiate on client side among various version
info parts, especially for LOKit version information.

Change-Id: I4ba18c60367fb9166462b535bc46953a82a8435d
2016-06-21 22:12:48 +05:30
Andras Timar
9e7b978f9f loleaflet: bccu#1901 Control.RowHeader.js and Control.ColumnHeader.js for l10n 2016-06-21 16:44:20 +02:00
Pranav Kant
b460769eed loleaflet: 'Keyboard shortcuts' in new 'Help' menubar item
Change-Id: I0a924505970e9ed13ea45ebc85ef14a618646b2d
2016-06-21 19:16:20 +05:30
Pranav Kant
90aee41c70 loleaflet: Dialog to show loolwsd, lokit version information
Change-Id: Ie05f0597d3464b5e7705bd1d1ff4ab5c03af013f
2016-06-21 15:05:11 +05:30
Pranav Kant
7701de1e48 bccu#1894: Don't show any outline for menubar selection
Change-Id: Ifa3095247a0c18c599c2c294a473add8f6d48104
2016-06-20 14:11:52 +05:30
Pranav Kant
76178f22e5 loleaflet: bccu#1887: Enable keyevents on menubar
Make it focusable. This also enables ESC key to reset the opened
menu.

Change-Id: Ia7be49af45b25ae7d29a5ba95b83591af0d82dca
2016-06-17 09:10:12 +05:30
Pranav Kant
3de264c3fd loleaflet: Hide its submenu when clicked over highlighted menu
Change-Id: Id1249e5d4a0d2013e1dd2a5f8833b3b787b1a137
2016-06-17 09:10:12 +05:30
Pranav Kant
50a237dd29 loleaflet: bccu#1867: Do not scroll first time after doc resizes
This was removed in c7588f0e8c in
an effort to fix calc row/col offset where it must not be ignored to
have aligned row/col offset without any side-effects that one can
have in single-part documents like writer.

Earlier approach using a timer of 200 ms for 'scroll ignore' also
doesn't seem very effective, so change it to: ignoring the first
'whileScrolling' invocation.

Change-Id: Ic3a6868a279fc200b8f9fee74bb40aebad5d9646
2016-06-17 09:10:12 +05:30
Pranav Kant
be6acfcd4e loleaflet: Remove superfluous call
Option 'updateOnContentResize' is true by default, which means
this method is called automatically when scroll container is
resized, so no need to manually call it again.

Change-Id: Ie80e90239752acb119e3a92c09a1f77dd61b2ad4
2016-06-17 09:10:12 +05:30
Andras Timar
69924630cf loleaflet: Pull translations from Pootle 2016-06-18 13:38:31 +02:00
Andras Timar
cd67dc7022 loleaflet: update translations from Pootle 2016-06-12 16:06:13 +02:00
Andras Timar
445f97a0c7 loleaflet: hide context menu after pressing ESC key 2016-06-10 23:42:11 +02:00
Andras Timar
ec15d9e9ff loleaflet: l10n of src/control/Toolbar.js 2016-06-09 15:26:08 +02:00
Pranav Kant
257b95f01f bccu#1871: Add url prefix, lool, to post requests
All post requests will now have to be prefixed with /lool/

This is necessary to ease proxy url redirection setup.

Change-Id: I04fbc211879722f6433cb9eb17786f394187a1b9
Reviewed-on: https://gerrit.libreoffice.org/26091
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-06-09 11:22:05 +00:00
Pranav Kant
8cc367638f bccu#1871: Add url prefix to websocket urls
Normal websocket connections are now :
/lool/ws/filename

Admin websocket is now :
/lool/adminws/

Change-Id: If39382cb852d89ed0394adbd7fe168fe4767a075
Reviewed-on: https://gerrit.libreoffice.org/26029
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-06-08 14:06:20 +00:00
Andras Timar
c5198fa855 loleaflet: unclosed tag in loleaflet/spec/loadtest.html 2016-06-08 14:56:08 +02:00
Pranav Kant
2e2373dfa0 loleaflet: Fix loadtest
Change-Id: I6307a12858478b42d3a3253e7d01a52b7ea42282
2016-06-08 15:47:53 +05:30
Pranav Kant
b230dcb26f loleaflet: Kill modules.zip
... and save ~3MB of space.

Change-Id: Iaa5cb62936d66044b657e6a507237a90f1d0a537
2016-06-06 16:28:57 +05:30
Pranav Kant
a32ded9752 loleaflet: Move websocket module to devDependencies
This module is only used from tests. These are not hard
depedencies.

Change-Id: I9b63562de827f9d2e12fa108555cc783a5689db2
2016-06-06 16:24:54 +05:30
Pranav Kant
3ec6c6b662 loleaflet: Reduce z-index of auxiliary toolbar
Otherwise, when the screen becomes inactive, it is the only
widget to shine separately.

Change-Id: Idf22e2cece3fd465ff37e7304f4776dbfdef66a8
2016-06-06 11:50:59 +05:30
Ashod Nakashian
d73167b734 bccu#1826 writer: jump to top when switch editor
Change-Id: I9d6f64d1e17f9dd5fb4e7d1b3ac8416be4623822
Reviewed-on: https://gerrit.libreoffice.org/25944
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-06-05 23:58:01 +00:00
Andras Timar
c3fe386dc0 loleaflet: enable l10n of Color picker widget 2016-06-03 12:25:54 +02:00
Pranav Kant
26d5614b89 loleaflet: bccu#1777: bccu#1555: formula bar fixes
* Use new param DontCommit in .uno:EnterString to not trigger
recalculation until enter is pressed.
* On pressing 'ESC', reset the current content
* Range selection is now possible when formula is entered in
* formula bar
* Forward 'enter' key events to `map` from formula bar

Change-Id: I073eca2fa08520faa9f679b1c986e10805da0ad6
2016-06-01 21:24:46 +05:30
Andras Timar
4b72613447 loleaflet: bccu#1649 l10n of Admin Console 2016-05-31 23:31:16 +02:00
Andras Timar
fdc109d002 loleaflet: l10n of loading.html 2016-05-31 16:57:20 +02:00
Andras Timar
611bbe3814 loleaflet: mark-up strings for l10n in src/map/Map.js 2016-05-31 16:36:29 +02:00
Andras Timar
2e035ee2cc loleaflet: fix wrong uno command name for opening hyperlink 2016-05-31 14:50:39 +02:00
Andras Timar
a5d79702a7 loleaflet: bccu#1862 remove Table -> Delete -> Table from impress menu
Apparently it does not work. In desktop version I cannot delete a table by
Select All + Cut, or Select All + Delete/Backspace key. Only Select All +
Delete Rows/Columns works...
2016-05-31 11:22:20 +02:00
Pranav Kant
7e1d3fe87e loleaflet: Consistency
Change-Id: I5962af5731199cf507da0eece0adc7b480f48ce0
2016-05-31 14:33:31 +05:30
Pranav Kant
d9019a2e79 loleaflet: Reuse html canvas spinner for slideshows
Move the spinner initialization to a separate class L.LOUtil.
Other similar LO related functions should also go there.

Also remove superfluous class leaflet-slideshow-spinner. It was
not being used anyway due to wrong spelling.

Change-Id: Ie8fac0391a9c6a3771900539e8f08d1b73b9be28
2016-05-31 14:30:22 +05:30
Henry Castro
0fe4c89e55 loleaflet: adjust partName and partHash 2016-05-30 20:23:54 -04:00
Pranav Kant
08636e6c67 bccu#1768: loleaflet: Disable row/col headers menu while viewing
Change-Id: I89e0853b2a5e59ecf3e33c785991c5589d9c0864
2016-05-30 16:52:43 +05:30
Andras Timar
a4c8ceb1ac loleaflet: bccu#1856 disable View - Full screen on Edge, too 2016-05-30 00:43:04 +02:00
Andras Timar
6b57831673 loleaflet: fix js lint error 2016-05-30 00:29:47 +02:00
Andras Timar
1395d604dd loleaflet: bccu#1804 related: do not try to localize user defined style names 2016-05-30 00:13:19 +02:00
Henry Castro
2731e1fc02 loleaflet: bccu#1804 Style listbox does not get css styling 2016-05-29 17:19:51 -04:00
Andras Timar
c0098e5edd loleaflet: bccu#1836 disable View - Full screen menu item in IE11 2016-05-29 22:11:12 +02:00
Andras Timar
055ab8d317 loleaflet: typo dcoument->document 2016-05-29 18:25:11 +02:00
Pranav Kant
3516f31031 bccu#1841 - Remove selection uno commands from impress menubar
... temporarily, till we have them.

Change-Id: I5f35e54a33a7a1c96359de59e326a286af655ddf
2016-05-29 15:16:12 +05:30
Pranav Kant
6831385c05 bccu#1850 - Help shadows all but menu bar
Change-Id: I156fde8e70421292e0bd134340eb01e1950853b7
2016-05-29 15:14:01 +05:30
Pranav Kant
eaf3461873 loleaflet: fix indent errors reported by bumped eslint
Change-Id: I49e274e1d4869d9d0a39342d9c3b64747a1fc870
2016-05-29 14:59:52 +05:30
Pranav Kant
6e45f4fbfb loleaflet: Bump eslint version to 2.8.0
Adjust config file, .eslintrc, accordingly; remove deprecated
options

Change-Id: I113606c5d1fdc4c46216b1fa340c957fd0e69308
2016-05-29 14:59:52 +05:30
Pranav Kant
3414ab2754 loleaflet: linting: fix errors in toolbar.js
Such a huge confusing diff is mainly due to moving of functions from bottom
to top because a function should be defined before it is used.

Other changes include using single quotes for strings, and other
minor style fixes.

Change-Id: Ieb8e5054a9c8113ec211973e086111d91759f80b
2016-05-29 14:58:38 +05:30
Pranav Kant
a7d3a8e9c3 loleaflet: Enable toolbar linting
Till now we have only been linting our src/ directory. toolbar.js
is the only file we edit directly in dist/. Lets keep a check on
it too.

Change-Id: I3e8a6e675a1d0c508339db1363600b5fe8f9c2cd
2016-05-29 14:36:25 +05:30