Commit graph

1684 commits

Author SHA1 Message Date
Jan Holesovsky
fbf3249fce Debug console: Add a setting to disable going to inactive state.
Combined with the automatic typing, very useful for testing with many users
connected.

Change-Id: Ia3dd9ff59b81849a740d65e8e1ee8ce9918ce843
2017-01-20 13:18:45 +01:00
Jan Holesovsky
717e0fb4d4 Rename Close -> Close document.
Change-Id: I7e10e4e8f24f863483f9332719cdc1a00d766f25
2017-01-19 11:44:41 +01:00
Andras Timar
ee1b291a91 loleaflet: updated pot files
Change-Id: Ia19360f624ad9a6fc4aa2db459d95f107ce5261b
2017-01-19 11:02:26 +01:00
Andras Timar
f9beb022e6 loleaflet: l10n of RecalcPivotTable and ReplyToComment commands
Change-Id: Ic322e1559858e7338074d0f85761f272b47f5ce2
2017-01-19 11:00:06 +01:00
Marco Cecchetti
c466c77fe2 Loleaflet - Calc - Added context menu command RecalcPivotTable
Change-Id: Idc750b37dddfee3b8c451aa31a679e4869f5a6ee
Reviewed-on: https://gerrit.libreoffice.org/33272
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2017-01-18 15:26:44 +00:00
Andras Timar
7c111a4be2 loleaflet: update pot files
Change-Id: Ie81b9c7b4fb5f3d74f63c15d3b1e64661afc5b9f
2017-01-17 14:57:25 +01:00
Andras Timar
48b14a5240 loleaflet: grammar, '0 user' -> '0 users'
Change-Id: If2251c0dc302752820f7a6f70a4a81431a9fc6f2
2017-01-17 14:55:56 +01:00
Pranav Kant
962cc570cd loleaflet: More document space, use space reserved for scrollbars
Don't give extra pixels to scrollbars and reduce the document
area that is visible on the screen. Instead put these scrollbars
on top of the content and show them only when user hovers over
the scrollbar.

Change-Id: I7f7b34d0efde24bfad04324f5dfe3e3e35c752fc
2017-01-16 20:27:46 +05:30
Pranav Kant
f182c53a66 loleaflet: Override default evo-pop z-index
... so that these pop ups doesn't come over the inactive overlay.

Change-Id: I2e4ff68da7549e42283211ef4aed04d0efe7e6f5
2017-01-16 13:45:18 +05:30
Pranav Kant
84c73eccb2 Fix fontcolor, backcolor popup getting truncated
Open them from the right edge of the popup to the left and wrap
them inside wrappers to make it possible.

Change-Id: Ib97fe6a3e306c8cc8612304b53ec42607234d5a7
2017-01-16 13:45:18 +05:30
Pranav Kant
6901ad9251 tdf#103777: Fix inserttable popup truncates when no space on right
Easy solution is move the popup to open from its right edge
instead of the left.

This also overrides overflow: hidden from w2ui-toolbar class,
that doesn't seem to have any side-effect, hopefully there really
isn't.

Change-Id: Iab258cf7e3473b178aa9acdb746b51a5ca582b46
2017-01-16 13:45:06 +05:30
Pranav Kant
ebd5b377d7 Fix z-index of insertable popup
Reduce it to 1000, its sufficient and also allow inactive overlay
to come over the popup, not under it as was before this commit.

Change-Id: If078dc929027dfb938000c5a0135c83704da7d6f
2017-01-16 12:45:57 +05:30
Ashod Nakashian
6b3d2bd7ce wsd: notify the user when document loading fails
Also do not segfault in the event.

Change-Id: I80c4c5c0d1d5f1a4cde9a6a3458f69a3df9dc647
Reviewed-on: https://gerrit.libreoffice.org/33140
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-01-16 06:26:04 +00:00
Tomaž Vajngerl
724cac1d97 fix Chrome Android and Firefox Android text input
- Change from textarea to input (type="text") to prevent Firefox
to auto-capitalize.

- Clean the text input content after each word so that the soft
keyboard spellcheck suggestions are correct and that backspace
doesn't delete long IME suggestions before it has effect.

- Workaround on Chrome Android 'space' and applying spell-check
corrections.
2017-01-15 23:59:21 +01:00
Pranav Kant
35e904ecf9 loleaflet: Don't focus on map if search is going on
... and part is changed.

Change-Id: Icebcfc9924a6891787d08476ba37a0174ae9b67d
2017-01-13 20:33:45 +05:30
Pranav Kant
64835bec90 loleaflet: Allow search expansion as you type
Change-Id: I648721a0ed9e4d66db45956657398a4834ac45ce
2017-01-13 20:33:45 +05:30
Pranav Kant
582bfbeb7f Update path
Change-Id: Ic0654f64ee5ba9e4678cca42ceea4a5958a01c66
2017-01-13 20:33:45 +05:30
Pranav Kant
9a4aba717a loleaflet: Remove this hamburger <-> closebutton animation
Change-Id: I0c5a4ad2ee0b1d7041091d54c21f538c1a2912f8
2017-01-12 21:45:47 +05:30
Pranav Kant
456afb50bd loleaflet: Move closebutton to menu bar option in mobile mode
Change-Id: Ie6b9f507862e36ada44fda88acd96b1b495ae002
2017-01-12 21:38:13 +05:30
Pranav Kant
9b564af003 loleaflet: Set toolbar-up-more width to auto in low screen width
Change-Id: I10c41630da3a3003db1663bea211b42335f468c8
2017-01-12 21:38:13 +05:30
Pranav Kant
17e2d42e9e loleaflet: Remove useless rule
This seems to be superfluous. w2ui library automatically set the
width of the toolbar overriding this value always.

Change-Id: Ia87018533f99769ef1dc48463ac58d32cbf40d9d
2017-01-12 21:38:13 +05:30
Pranav Kant
21d3ef8c33 loleaflet: right padding for hamburger option menu
Change-Id: I1d946f537e66d637e82354ff3af80353a930d8eb
2017-01-12 21:38:09 +05:30
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
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
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