Commit graph

1009 commits

Author SHA1 Message Date
Pranav Kant
b2907626ba loleaflet: Add/delete row/column feature
Change-Id: I6dfd68029b5746d6c2907f4195f4647c63387c55
2016-05-13 16:21:44 +05:30
Pranav Kant
cf932d52ec bccu#1788: Center/Align the color feedback under the icon
Change-Id: I985f502e4810ff76d99f4375bd85d6819e64e325
2016-05-13 00:35:01 +05:30
Pranav Kant
fc87000a62 loleaflet: More checking; don't add element if already added
Change-Id: Id0e71b5f100167e39d95cbad6033a42f1111b570
2016-05-13 00:34:07 +05:30
Pranav Kant
870b46be78 bccu#1756: Check for empty input
In case of presentation we are getting an empty value in response
to .uno:CharFontName. While this looks like a bug in LOKit, no harm
in putting a check for empty values here.

In ES5 argument to Object.keys must be an object otherwise it
throws an exception.

Change-Id: I5c2f7963544fda55bab3f314f1b098b3c9e3bd0b
2016-05-13 00:00:49 +05:30
Pranav Kant
268eb615c2 loleaflet: Update scrollbar after resizing the container
Currently, it does get fired, it seems, and vertical scrollbar
does get adjusted automatically according to new size, but
horizontal scrollbar doesn't for some reason/bug. Lets explicitly
tell the plugin to update on every resize we do.

Change-Id: I706228302cb43fb22cf54acfe1b990d3e66d5281
2016-05-12 20:19:26 +05:30
Andras Timar
295163422e bccu#1712 Math.sign is not defined in IE 11 2016-05-12 13:29:28 +02:00
Andras Timar
a4cd9aeebe loleaflet: help text: Calc Select All with Ctrl + A 2016-05-12 11:11:32 +02:00
Jan Holesovsky
ed65c018ef "Comment" -> "Insert Comment" in the toolbar. 2016-05-12 09:35:21 +02:00
Ashod Nakashian
81e2e25ed8 loleaflet: disable fade animation which is distracting and buggy
Change-Id: I4170a9f58f4069cba9c88c85d520574a7fcb3885
Reviewed-on: https://gerrit.libreoffice.org/24907
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-12 01:55:58 +00:00
Feyza Yavuz
20a8652041 loleaflet: Added Comment button to toolbar
Change-Id: Ic79f942babc36f061065b2ef73be204b544f096e
Reviewed-on: https://gerrit.libreoffice.org/24696
Reviewed-by: pranavk <pranavk@collabora.com>
Tested-by: pranavk <pranavk@collabora.com>
2016-05-11 13:32:40 +00:00
Andras Timar
d63d200a23 Bump version to 2.0.0 2016-05-11 09:55:17 +02:00
Ashod Nakashian
8d2a7ab162 loleaflet: translate the part correctly for text documents
Text documents have a single coordinate system, so they
only render in part 0. For others, each page/slide/tab
is a part.

Change-Id: I3c61f4482e5bb535e41ea699147c8c258ca6fb93
Reviewed-on: https://gerrit.libreoffice.org/24850
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-10 13:00:14 +00:00
Pranav Kant
b50b159aed loleaflet: Use Standard styles if Default is missing
'Standard', and 'Default' styles seem to containing same values
anyways. If we do not have 'Default', use 'Standard' ones.

Change-Id: I4402f78fb54c77a7cf6d9868210cb97a9e2c4580
2016-05-10 16:16:01 +05:30
Pranav Kant
6fb9a5becf bccu#1756: Style the presentation list box
Upon creating an .odp file from owncloud, 'Default' styles are
not created which leads to a js error as variable styles go
undefined later in the script.

Change-Id: I30caf980bd924e6329559b36b1f0a5fbe60ecc4b
2016-05-10 16:16:01 +05:30
Lenny Horstink
6d18572c62 Visual improvements to spinner
Change-Id: I54f945867efe5e56c2e6696b905a97f04b832f90
2016-05-10 16:16:01 +05:30
Ashod Nakashian
d5578e30bc loleaflet: prevent viewers from changing Impress slides
Change-Id: I4928d111bde8c712c79ec566b0ca4520995ac598
Reviewed-on: https://gerrit.libreoffice.org/24813
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-10 03:46:04 +00:00
Pranav Kant
c68ba63f88 bccu#1771: Do not select row in calc while cursorvisible
... otherwise, shift + space combination would select the whole
row in calc even while editing. After this, row selection feature
using shift + space would only work while we are not editing,
that is, when text cursor is not visible.

Change-Id: I07ddf045d023487d70fa632edd7c173ed1df610d
2016-05-09 11:29:29 +05:30
Pranav Kant
d08b549adc loleaflet: Package jquery(ui) files
And use these directly from debug/document/loleaflet.html instead
of CDN. Helpful for development when no internet connection.

License: MIT

Change-Id: I4d2086ffc9e9e646164c70481ae74e6c1f7a7062
2016-05-09 11:29:29 +05:30
Ashod Nakashian
50cc60e6f6 loleaflet: invalidate on activation
Invalidation for spreadsheet and presentation
are part-sensitive. The handler will take
care of this distinction and construct the correct
invalidate command.

Also, set active flag before firing invalidation.

Change-Id: I9e897750e0768b54cc1521d47d69b5dbb1a36244
Reviewed-on: https://gerrit.libreoffice.org/24779
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-09 05:21:05 +00:00
Ashod Nakashian
f9d7de86db loleaflet: don't show the start/end selection handles for viewers
The handles imply (and indeed are designed for) changing the
selection by dragging them around. Viewers can't change the
selection, so no reason to give them the selection handles either.

Change-Id: Ifa793ac982fd48be877e7ed7709f70890d8de194
Reviewed-on: https://gerrit.libreoffice.org/24770
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-08 16:14:15 +00:00
Ashod Nakashian
d8f6aa7146 loleaflet: remove unnecessary duplicate message
This message is already sent from CalcTilelayer.js.

Change-Id: I9f84d5f365dbfea38061e206d5d52e2201be22ed
Reviewed-on: https://gerrit.libreoffice.org/24769
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-08 16:13:11 +00:00
Ashod Nakashian
3cefa3c6e4 loleaflet: announce the current part after taking editing
Make sure to sync both lokit and viewers as to which
part is being edited when a previously-viewer takes
editing.

Change-Id: Ia70f647a26029447bb4360633f79233fa9596059
Reviewed-on: https://gerrit.libreoffice.org/24768
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-08 15:50:27 +00:00
Pranav Kant
1864491e23 loleaflet: Enable/Disable buttons for edit/view modes, ccu#1768
Change-Id: Id14ef66adb9bda33246625d89c093cb88927f2bb
2016-05-06 13:59:21 +05:30
Pranav Kant
2d69745d2c loleaflet: Use tabs consistently
Change-Id: I1d24ba1c8956a919eb02347dfc379927f536173e
2016-05-06 13:06:26 +05:30
Ashod Nakashian
376b36b4c8 loleaflet: writer shouldn't signal page change when nothing changed
Change-Id: I1393f0c385f75c07d2024c7045d04eabc6937718
Reviewed-on: https://gerrit.libreoffice.org/24677
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-05 11:39:37 +00:00
Pranav Kant
3d02fb7497 loleaflet: Enable/disable spreadsheet tabs for edit/view mode
Change-Id: I084f676e77fc161c109a5271dd1cad60a3e5474f
2016-05-05 14:30:00 +05:30
Pranav Kant
207f4b5fc9 loleaflet: Emit 'editlock' only if changed
Change-Id: I0d08241b82ad105902ad6ca03f015efd0eb9fb2e
2016-05-05 12:33:57 +05:30
Pranav Kant
caa3ea2348 loleaflet: Don't enable/disable toolbar items based on permission
For the time being, till we have the editlock, only
enable/disable toolbar items based on it.

Change-Id: I71b5be33e2ec706def198471274df60a22d7ee65
2016-05-04 16:50:06 +05:30
Andras Timar
dd21e402d4 Bump version to 1.6.4 2016-05-03 23:32:05 +02:00
Pranav Kant
c7588f0e8c loleaflet: Don't ignore scroll on update size, bccu#1739
This leads to row/column offsets because the document view would
ignore the scroll but row/col header would be scrolled.

Change-Id: Ieec25429dbf698e710ce1f9765c51756f2a75032
2016-05-03 16:50:27 +05:30
Pranav Kant
2ffff6a3cc loleaflet: Fix MaxBounds for the map, bccu#1739
In case of spreadsheets, zooming in and then switching
the sheet to a new one will leave the new sheet in a situation
where panning would not be possible. This is because of incorrect
maximum bounds set on the map.

Further, this often leads to row/col offsets in spreadsheets
because document view is bound under these MaxBounds but row/col
are not.

Change-Id: I468d2fee5424e11c93a0a707fde96e687061fb89
2016-05-03 16:49:46 +05:30
Faruk Uzun
d0906c12d8 loleaflet: make sure double-tap selects words on touch devices
related bccu#1300

Change-Id: I354e7e6f6e3d53aad2cf9396e71ad4a2ad2d1a97
Reviewed-on: https://gerrit.libreoffice.org/24000
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-05-03 10:18:14 +00:00
Pranav Kant
2952cae32b loleaflet: Fix presentation-toolbar
Without padding:0; it would appear with a height of 4px just
above the statusbar.

Change-Id: I4b3058eab656739c26a4ceb02f239c63e27f0e47
2016-05-02 18:28:15 +05:30
Pranav Kant
787bdc276f bccu#1758: Move presentation control below slide sorter
Change-Id: I0f1046f55f4bdc8af209138a51e74e1b637a5a34
2016-04-29 21:51:08 +05:30
Pranav Kant
edd248e25c loleaflet: Fix indentation
Change-Id: I4996f235d20976e969ae48874d0a6c98ee212c43
2016-04-29 21:51:08 +05:30
Jan Holesovsky
786f1381a2 bccu#1761: Revert "Don't send unneccesary "tilecombine" on multiple invalidates"
This reverts commit 033a066ba7.
2016-04-29 15:48:57 +02:00
Pranav Kant
551352e379 bccu#1583: Make scrollbar visible for Impress docs
We use 180x180 px as thumbnail size, and 2px border for selected
thumbnail on top of that which makes its 184x180.
.parts-preview needs to be expanded to 214px for
mCustomScrollbar to work properly without hiding any thumbnails
including borders. With all of this, we also need to shift
impress document offset to 214px from left to make all things fit
nicely.

Change-Id: I446918403cd43fe61f0ebfb358e6a2051014b28a
2016-04-29 13:09:10 +05:30
Pranav Kant
742a8da434 bccu#1749: Fix flashing of spreadsheet-toolbar during doc load
Hide the spreadsheet-toolbar by default, and only show when we
are confirmed that its a spreadsheet, instead of doing
vice-versa.

Change-Id: Iddaca0fb272dbe8dd8b6e73157eb4733762d8a8a
2016-04-29 13:09:10 +05:30
Andras Timar
c00f3535fa silence po2json.py 2016-04-28 14:48:49 +02:00
Pranav Kant
3a42330b05 bccu#1755: Fix 'Cancel' button on password dialog
Change-Id: Icbfd129fa839ac7af868cc2d857fc280ae1ff681
2016-04-28 17:56:02 +05:30
Henry Castro
6c50fa323e loleaflet: progress bar: use socket state 2016-04-27 15:14:11 -04:00
Henry Castro
c3e7d9b6ba loleaflet: do not use setclientpart when received "status:" 2016-04-27 13:58:20 -04:00
Pranav Kant
cc0814df04 loleaflet: Prevent intermixing of multiple timeouts
Clear a timeout before setting it.

Change-Id: Ic808962b880a4c18b24e2f603dc1d351d65419ed
2016-04-27 14:02:37 +05:30
Pranav Kant
f26900399d bccu#1745: Fix Calc blinking due to popup message
Use w2overlay instead of w2popup. The former adjusts itself in
the visible screen region and fixes, and does not introduce any
additional scrollbars for the lifetime of the popup message.

The w2overlay gets removed with mouse events. So instead of
'mousedown' events originally, use 'mouseup', so that there is no
succeeding mouse events to switch the overlay off.

Also point the overlay pointer towards the button, not the label.

Change-Id: Ic6c22fecc2e32075c27b6f4647373c28d2f635ae
2016-04-27 13:50:39 +05:30
Pranav Kant
2913691ed2 bccu#1747: Show tab div only for spreadsheets
Change-Id: I95fcb12d35c94f8640859cfb75c90d81ad21e1af
2016-04-27 12:36:31 +05:30
Pranav Kant
0e3e5e023e loleaflet: Fix AltGr on Windows
On Windows, AltGr events are treated as Alt + Ctrl. Use the
'location' property to distinguish from plain Alt + Ctrl.
It is not present in 'keypress' event, so use
the previous invocation of Alt + Ctrl to detect whether AltGr was
used or not.

Change-Id: Id6b64b6fc0a5300ea5362880536d3b926eb0acce
Reviewed-on: https://gerrit.libreoffice.org/24400
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: pranavk <pranavk@collabora.com>
2016-04-27 05:47:53 +00:00
Pranav Kant
80c48ff579 loleaflet: Fix an obvious typo
Change-Id: Id31d44539f78d8747595340c9bf231bbee262231
2016-04-26 19:59:35 +05:30
Jan Holesovsky
2c5c0d056b loleaflet: Many visual improvements in the spreadsheet.
Sheet buttons better aligned, no overlaps in sheet scrolling buttons, more
consistent colors, no remnants of scrollbars, etc.
2016-04-25 19:05:01 +02:00
Andras Timar
d7d373144d Bump version to 1.6.2 2016-04-25 11:00:46 +02:00
Pranav Kant
c91c2a431f loleaflet: Fix lint errors
'jake test' was complaining a lot. There are still few errors
that needs fixing.

Change-Id: I83bc51c25a3ce3037617378f57dd06f5f9887f77
2016-04-25 13:17:41 +05:30