Commit graph

61 commits

Author SHA1 Message Date
Henry Castro
4379d2fc3b loleaflet: bccu#1798 Choice of styles in listbox limited to a few in presentation 2016-05-25 19:34:46 -04:00
Pranav Kant
92aed1fffd bccu#1825: Make 'Editing'/'Viewing' text also sensitive
Change-Id: Ice52dd5d7a459127df18307aad0b7d8f2ef5825e
2016-05-25 16:47:32 +05:30
Jan Holesovsky
0545001add bccu#1833: Fix closing button in the help. 2016-05-24 14:27:04 +02:00
Andras Timar
8f35af5821 loleaflet: unify casing of tooltips of toolbar buttons 2016-05-24 08:09:19 +02:00
Pranav Kant
37b71b2289 loleaflet: Leave 125px from left for branding logo
Change-Id: I92dbf92e4d140c8975198b14f6560c1d309202a8
2016-05-24 11:32:54 +05:30
Andras Timar
63cbf9e4bb loleaflet: enable l10n of 'Document saved' message 2016-05-24 07:38:58 +02:00
Andras Timar
131ed8420d loleaflet: Set font of editlock popup message 2016-05-24 07:24:29 +02:00
Andras Timar
c90bd39b2e loleaflet: remove obsoleted dialog for menu:file:saveas 2016-05-23 22:40:30 +02:00
Christian Lohmaier
2bc0f09a22 typo: horizontaly → horizontally 2016-05-23 15:12:00 +02:00
Andras Timar
5271a91069 loleaflet: add l10n support to VIEVING/EDITING labels 2016-05-23 13:25:26 +02:00
Andras Timar
d173a21b28 loleaflet: hide 'Insert Table' for spreadsheets, get it right finally 2016-05-23 12:48:38 +02:00
Andras Timar
c3b55e40fa loleaflet: hide 'Insert Table' for spreadsheets, disable 'Insert Table' in view mode 2016-05-23 11:51:59 +02:00
Andras Timar
cb24e246cc loleaflet: hide 'Insert Table' for spreadsheets, disable 'Insert Table' in view mode 2016-05-23 11:30:14 +02:00
Andras Timar
7126135146 loleaflet: Enable l10n for 'take edit' note 2016-05-23 11:27:15 +02:00
Andras Timar
c091cd20eb loleaflet: Set font for table picker 2016-05-23 11:09:33 +02:00
Andras Timar
491a41933d loleaflet: Set font for zoom percentage 2016-05-23 10:59:04 +02:00
Andras Timar
624823f721 loleaflet: Set font for Search label and enable l10n 2016-05-23 10:42:10 +02:00
Pranav Kant
ffd230e1f9 loleaflet: Use same font-family wherever possible
"Segoe UI", Tahoma, Arial, Helvetica, sans-serif; 12px

Change-Id: I8927c31ca4641eaa3181e4f76bac2e112893fcd8
2016-05-23 13:41:38 +05:30
Pranav Kant
461d88e38d loleaflet: Fix errors in new draggable table grid toolbar button
Change-Id: Ic5c1ecbe0753017ad4b4c57ef74ae28d724c00a4
2016-05-23 13:41:38 +05:30
Faruk Uzun
5846748e2a loleaflet: add draggable table grid button to toolbar
You can insert tables to text documents and
it is working same as the desktop version.

Change-Id: I5d516e31c8b7453ca7f8306df3b9c17764e94098
2016-05-23 13:41:38 +05:30
Pranav Kant
93ef7aae3f loleaflet: Align toolbar to the left
Change-Id: I07650734b3c4a771d8fc3b9f0d968dc5df700045
2016-05-23 13:41:38 +05:30
Pranav Kant
da69451afe loleaflet: Kill old filemenu as we have whole menubar now
Change-Id: Idec0f41fa5ce94cf152535772d9c7ea822f1ac1e
2016-05-23 13:41:38 +05:30
Jan Holesovsky
3b6cdcb790 loleaflet: Don't check the 'Take edit' button, only enable/disable. 2016-05-19 08:48:40 +02:00
Jan Holesovsky
58e7bfd971 loleaflet: Adjust various css values to the large icons. 2016-05-19 00:50:17 +02:00
Pranav Kant
37145f9969 loleaflet: command was an undefined variable
... which leads to a JS error making font size list box not
workable sometimes.

Change-Id: I7452960c05a655ebdf48e3170987c29a37a7c2a6
2016-05-13 17:07:40 +05:30
Pranav Kant
1a918d8781 loleaflet: Fix incorrect variable access
Change-Id: I11981c002808257d39aea70a632039a40839397b
2016-05-13 16:42:39 +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
Jan Holesovsky
ed65c018ef "Comment" -> "Insert Comment" in the toolbar. 2016-05-12 09:35:21 +02: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
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
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
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
Pranav Kant
787bdc276f bccu#1758: Move presentation control below slide sorter
Change-Id: I0f1046f55f4bdc8af209138a51e74e1b637a5a34
2016-04-29 21:51:08 +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
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
b825cd391f bccu#1693: Empty item is not an object
Treating empty item as an object expects `id` attribute on which
toString method would be invoked. In case of object without `id`, it
would throw an error trying to call toString on undefined
attribute.

Change-Id: I44e591044487b0d236760cc79438ccfcf0f53846
2016-04-25 12:59:43 +05:30
Pranav Kant
616cb5f451 bccu#1689: Show a popup when non-editlock view tries to edit
Show a popup on 'mousedown' and 'keypress' events for
non-editlock modes.

Change-Id: I3a8a964d6a507549f521f3f831a4c623d202c86c
2016-04-20 16:50:36 +05:30
Pranav Kant
14b672bf5f bccu#1707: Do not mix editlock with permissions
For some reason, text cursor gets stuck making it impossible to
type in the document. This only happens with firefox + owncloud.

Lets keep the editlock state separately in map, and do not yet
mix the permissions with editlock state.

Change-Id: If4193d08b7228cde510321ec5b4c892b8617d8a7
2016-04-20 16:50:36 +05:30
Pranav Kant
da7dd6f634 loleaflet: Remove bunch of warnings from the console
It is incorrect to add the <div> elements with parent as w2ui
toolbar outside of onRefresh() method because toolbar can
refresh multiple times during its lifetime meaning that all such
added elements will be removed after first refresh breaking the
font/back color feedback javascript code.

Hence, this also fixes the font/back color feedback.

Change-Id: Iacd4f8a5c8ebb64e5bba5e7f05ceef8b77051534
2016-04-19 22:13:36 +05:30
Pranav Kant
0597a1873d loleaflet: Disable toolbar buttons without editlock
Change-Id: I18b067e99ff04073a4065536534fdb0db00285dd
2016-04-14 21:04:56 +05:30
Pranav Kant
95b9674022 loleaflet: Remove leftover code for enable editing/selection
Buttons are removed in e228817a8c

Change-Id: I3a4994d8e3c34ac49c466434d62264e86e11c3a1
2016-04-14 15:08:01 +05:30
Pranav Kant
8f9d812806 loleaflet: We do not use underscores in identifier names
Change-Id: Ic466bb3067353c9d271ea264a323502a03ed2c2b
2016-04-13 11:47:22 +05:30
Pranav Kant
df0315f317 loleaflet: Change message on status bar when document is saved
... and empty the status bar when document is modified and not
yet saved on server.

Change-Id: I976405783f744b875b9f6ee7e700006bddf5bc6f
2016-04-13 11:45:56 +05:30
Jan Holesovsky
b76140cb7b loleaflet: Trigger locontextmenu event with the context menu structure. 2016-04-08 19:15:08 +02:00
Jan Holesovsky
fa4ea0200b loleaflet: Show the 'More' button only when there are more items. 2016-04-06 09:00:48 +02:00
Jan Holesovsky
560dc6c6ab loleaflet: It is not necessary to inform about EDITING, that's the default. 2016-04-05 17:55:05 +02:00