Commit graph

4857 commits

Author SHA1 Message Date
Pranav Kant
77b27255f1 loleaflet: No need of resizebreak now
... as we have a mobile mode now where we remove drop downs
anyways.

Change-Id: Ic08634d25d6a3ae272e50642f34d2124c0472bf5
2017-01-12 20:30:30 +05:30
Pranav Kant
54e2b237b6 Position row/col headers absolutely inside header frame
... so that its easy to move all of it when we switch from mobile
mode and vice versa.

Change-Id: If2db351aafc4a8fefa05bc88f73c0046a3f887b8
2017-01-12 19:41:04 +05:30
Pranav Kant
15ed828698 loleaflet: Put row column in a container
Change-Id: Ib271a690783c51d19e3fd6c1634620740051e3bc
2017-01-12 19:29:55 +05:30
Pranav Kant
c20ff7adda loleaflet: Collapse to a single row in mobile mode, more doc space
Change-Id: Ic6ad9dd78e8710497e33069cd7121f31f240f035
2017-01-12 19:29:55 +05:30
Pranav Kant
fb967d998b loleaflet: Use tab here, not space
otherwise our linting tool will shout.

Change-Id: Ia43b0a4bfc3a1d3406a89e9bb71b05f884cce2a2
2017-01-12 19:26:03 +05:30
Pranav Kant
8afcc582be loleaflet: Avoid a race condition
There was a race condition here between our toolbar doing its
stuff and loolwsd sending us websocket messages, noticeable on
slow networks.

Change-Id: I5ae174e94561dd427d22389e443c80b2a6be4ec4
2017-01-12 19:10:12 +05:30
Pranav Kant
fd619e969e loleaflet: Override fontsize in lo-menu class
We want to be consistent with our font in whole of the UI.

Change-Id: I102e66411e4fad8d2d49c1b113ac250807716a12
2017-01-12 17:07:07 +05:30
Tor Lillqvist
13fcb10f91 Do the oldhash thing for Impress documents, too
(Copy-pasta here, too.)

Change-Id: I0327889d05a8d7294499849cb0a2b2dcca60ecff
2017-01-12 13:14:55 +02:00
Tor Lillqvist
b35d708006 Bin superfluous semicolon
Change-Id: I2319ef9badfa50f645af3bedd2a589de61f6d2b3
2017-01-12 13:14:55 +02:00
Pranav Kant
fac3c3aafc loleaflet: Move this logic to updateCommandValues()
Change-Id: I64e96f87e56c1b14dd2085d552eebd40977cd7e9
2017-01-12 16:44:36 +05:30
Pranav Kant
1566ae634d loleaflet: Update dropdowns on refresh everytime
Change-Id: I39071f1c6249e6ecf71684d3b93cc88f1f859510
2017-01-12 16:37:31 +05:30
Pranav Kant
905b077243 loleaflet: Don't hide prev/next buttons for calc
Primary reason we are bringing it back is because in mobile mode
userlist icon goes to the right most edge of the screen which
leads to userlist popup not being shown (which seems to be the
bug in library we are using)

Change-Id: Ie5b93c41f54ffeeb8615f90fa0e71c74de5ed92c
2017-01-12 16:37:31 +05:30
Tor Lillqvist
e8f55142ef Do the oldhash thing for Calc documents, too
(Some serious copy-pasta here.)

Change-Id: Icb5a7b6783b75d67f00cfbdccbba8c402008ff99
2017-01-12 12:26:13 +02:00
Tor Lillqvist
6370143a4b Slight re-factoring: introduce getParameterValue() function
I started changing the cases for all the parameters to use similar
code as for the 'hash=' one: Check the parameter name with
startsWith() instead of fragile substring() function call where the
length parameter must match the length of a string literal that the
substring() result is compared to.

But then I got bored and gave up. It would be even better to not have
to tediously check for all defined parameter names, but instead just
parse each parameter using the same code that sets the property whose
name we found. Except that we have special cases where the parameter
name in the protocol doesn't match our coresponding property name, and
those that consist of a list of comma-separated values.

Maybe we indeed should just switch to JSON (or some binary
representation of JSON or somesuch).

Change-Id: Ibcdb26d7228b75f6f23c186f0b17cb46a12f3cec
2017-01-12 12:11:16 +02:00
Tor Lillqvist
23db565b5b Add Emacs mode lines
Change-Id: I208407f3017f71a4dfb2b86055a9bc639ee2f23c
2017-01-12 12:11:16 +02:00
Andras Timar
76d365651d Update translations from Pootle
Change-Id: I4e765cbf6793f2563230cd17d3d90ab4161d8ccd
2017-01-12 10:38:56 +01:00
Tor Lillqvist
bc19f90dd4 Don't send a tile that hasn't changed even if client asks for it
The server tells the client the hash of each tile it sends (calculated
from the contents of the tile, not its PNG encoding). When the client
asks for a tile to be refreshed, it tells the server what the hash of
the existing tile is. If the server notices that the tile contents
hasn't actually changed, it doesn't PNG encode it and doesn't send it
to the client.

The intent is that this will reduce load on the server and also avoid
unnecessary tile traffic.

Change-Id: Ia06ca68655ea984ed4319f24f4470afda322eccf
2017-01-11 23:25:21 +02:00
Tor Lillqvist
29fc49acf2 Bump the message first line abbreviation limit to 500 characters
If we are logging a message, we want to see the first line of it in
its entirety if possible. Especially now with more parameters being
added to tile messages, 120 was not enough to see the added
interesting ones.

Bin the silly test that used knowledge of what the limit is. We should
not test a coindidental arbitrary number that is not a documented part
of an API. If we want to test the default abbreviation functionality,
we need to at least make that default limit (now 500) public in
Protocol.hpp.

Change-Id: Iea59ba46e8331e2a839c792146f123fed9df2b82
2017-01-11 23:25:21 +02:00
Tor Lillqvist
d12a0258d8 Add Emacs mode line
Change-Id: I5ba2b8d5bc3c8b9b75fd357224422079f7ec91f9
2017-01-11 23:25:21 +02:00
Pranav Kant
3233ccee4c loleaflet: Mobilify the statusbar
Reduce userlist text to now only show the number of users in
mobile mode instead of 'x users' string. Drop the 'Document
saved' string notification.

Change-Id: Ife20a5fcea01301601912c734dae6c3d6504c4f5
2017-01-11 20:14:26 +05:30
Pranav Kant
11ed522806 loleaflet: Mobilify for less than 768, not less than equal
Change-Id: I3c499e847674e57ba33859459ace794ff1b97c57
2017-01-11 18:34:46 +05:30
Tor Lillqvist
7d7e5a4bfe Remove assert as this function can also be called with a non-empty output vector
Change-Id: Idff29a5bd298ada7b6d8fe3e76fd2e25d8f25c79
2017-01-11 14:02:40 +02:00
Tor Lillqvist
2eb40ab43c Drop an unneeded (and defaulted) parameter
Change-Id: I788080db53507604accd97dacc2d74e614b80641
2017-01-11 13:44:57 +02:00
Tor Lillqvist
3f7cca78eb Indentation fixes
Change-Id: I72010aeff7fb65f9dc18613d0cfc53b5154e07c1
2017-01-11 13:44:57 +02:00
Pranav Kant
d6af42eae0 loleaflet: Remove items from statusbar in mobile mode
Change-Id: I8dbc356a2968764c72edf401d33399c92f9f73e4
2017-01-11 17:05:38 +05:30
Pranav Kant
aa7ef0337c Fix specificity and hide slide sorter for smaller screen width
Using !important always is not a good idea. You can't override an
!important with another !important and we have started to face
such situations now where we want to adjust element's alignment
based on media-screen width. Instead lets fix the specificity to
make this work.

.parts-preview-document or .spreadsheet-document would be
0-0-1-0. Use #document-container.parts-preview-document to
increase its specificity to 0-1-1-0 so that we can do without the
!important flag and use !important flag for media-screen blocks.

Change-Id: I1d15df492cdc7cd1cd09c3b43c8ea84295a07205
2017-01-11 17:05:38 +05:30
Pranav Kant
b34f5a38a2 loleaflet: Wrap slide sorter and related refactoring
Slide sorter and presentation toolbar are now contained in a
presentation-controls-wrapper and alignment values are now
factored out and only present in the container now.

Also, position the presentation-toolbar absolutely outside of
container so that slidesorter scrollbar doesn't go behind the
toolbar hindering some view of the slide thumbnails.

This would also make the job of hiding/showing the whole control
easier.

Change-Id: I080e854906ef0635aba02cfeb687bf87463ef756
2017-01-11 17:05:38 +05:30
Pranav Kant
90d48ee3c4 loleaflet: Fix close button alignment
Change-Id: I0a63229f37e0ea1c8e3c770afac0527890c328e1
2017-01-11 17:05:38 +05:30
Pranav Kant
b8fae54184 loleaflet: On touch devices, don't disable dragging
Change-Id: I722070a7768d89b7b861df4afc37f68098ca9321
2017-01-11 17:05:38 +05:30
Pranav Kant
e7101b6f93 loleaflet: No min-width, we want to mobilify
Change-Id: Ifa52f03683c32939369f0ab97e456f10b954ccf9
2017-01-11 17:05:38 +05:30
Pranav Kant
70bbe20f95 tdf#100329: responsive menubar floating on left
Change-Id: I6089ed44a7920a79de7e89f1b0d884c2881d4c7c
2017-01-11 17:05:35 +05:30
Pranav Kant
4becb5b7e9 Remove irrelevant toolbars
Change-Id: Ib8a8ea4fb597a5aaee802cb7ad04e893cd6eab75
2017-01-11 17:05:22 +05:30
Pranav Kant
bf7df9fa66 loleaflet: Get rid of all fixed position
Change-Id: I104882d995722c14ddefeecf579d1233f37371d6
2017-01-11 17:05:22 +05:30
Pranav Kant
fac33f7a2f loleaflet: Introduce div wrappers
Change-Id: I19ae5daaa11e810b23a1d12b81c510ce96527ac7
2017-01-11 17:05:22 +05:30
Pranav Kant
da11a1fd94 tdf#100329: Hide some toolbar buttons when screen width is low
Most of these can easily be accessed from the menu bar. Lets keep
only most commonly used and simple toolbar items here.

Change-Id: If9ad379c6491b907a980e0ef5b4a46a60266fafe
2017-01-11 17:05:17 +05:30
Pranav Kant
da36bfc520 loleaflet: New class lo-menu to override sm-simple theme
We can now directly use sm-simple.css from node_modules in its
pristine form and then use custom css rules to override to make
it look like LO menu bar instead of directly making changes in
sm-simple.css

Change-Id: I0773ca27fdf549d5c7df0bc781dfc019225d7cb6
2017-01-11 17:03:53 +05:30
Pranav Kant
d0e8d4544d loleaflet: Different css file for menubar
Change-Id: Ic7cf8445c52d3a87de0631d6317674d959d60cf4
2017-01-11 17:03:53 +05:30
Pranav Kant
e3e814fbf5 loleaflet: Set mobile mode if width < 768px
Change-Id: I4732208d354b574218185c2693fd92d8e071307a
2017-01-11 17:03:53 +05:30
Pranav Kant
3c1804e3b6 loleaflet: Add main-menu to main html rather than dynamically
Change-Id: I3f3a8709104ee0805f509f2c1b5eae2194c5de72
2017-01-11 17:03:53 +05:30
Tomaž Vajngerl
d24fb462d7 Test password protected OOXML and Binary MSO documents
Change-Id: Ie871ea72f2670bcb23c25697bb669128ded851d9
2017-01-10 12:44:20 +01:00
Tomaž Vajngerl
903dc8e458 Use svg instead of png icons - looks great on HiDPI screen 2017-01-10 12:44:20 +01:00
Ashod Nakashian
09fe0b689a wsd: templatized MessageQueue
Change-Id: Ieb6b6c289d8348cafc82041e6e719409cc329edd
Reviewed-on: https://gerrit.libreoffice.org/32919
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-01-10 05:40:37 +00:00
Ashod Nakashian
f41c4c6e83 loleaflet: on invalidation check the part before intersection
Shortcircuiting when the part doesn't match is
much faster than intersecting rects first.

Change-Id: I9038eb5cafd141e75e8b18a5308b30216e4c9653
Reviewed-on: https://gerrit.libreoffice.org/32918
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-01-10 05:40:10 +00:00
Ashod Nakashian
89bd85fbba wsd: put_time is not supported by gcc4.8
Change-Id: Ib3b6a115ba669051474e327944cb4677575d15f3
Reviewed-on: https://gerrit.libreoffice.org/32917
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-01-10 05:39:48 +00:00
Andras Timar
f25f434be3 change version to 'master'
Change-Id: Ic842f811e86d3d910226fcd07ec44981917b8303
2017-01-09 21:17:25 +01:00
Andras Timar
fdb71825c4 loleaflet: use --duplicates=merge option of html2po
Change-Id: Id2bba4580910a7dd02c0a11302e4ae1dd2c15acb
2017-01-09 15:48:16 +01:00
Andras Timar
eea6a7c6d5 loleaflet: pot update
Change-Id: I99d88b563cb0254d472887ea2f93c5b16baa7217
2017-01-09 13:00:34 +01:00
Ashod Nakashian
f861a9e1a7 wsd: new unittest for multiview tiles when disconnecting
When there are many views requesting tiles,
disconnecting any should not cancel tiles
for other views.

Change-Id: I6029432c4b9ab931811dcb3b03b0441b413a9971
Reviewed-on: https://gerrit.libreoffice.org/32872
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-01-09 06:27:43 +00:00
Ashod Nakashian
a775f5e585 wsd: split testStateUnoCommand one for each app
Change-Id: I4f6275e289c1a64a05df5b5e4c2708b8ab5b3f83
Reviewed-on: https://gerrit.libreoffice.org/32871
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-01-09 06:26:30 +00:00
Ashod Nakashian
b8949715e8 wsd: split testGraphicViewSelection one for each app
Change-Id: I8da3470d4ad9cd666bb4cd18cb8d66a0f6b0c8cb
Reviewed-on: https://gerrit.libreoffice.org/32870
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-01-09 06:25:27 +00:00