Commit graph

2079 commits

Author SHA1 Message Date
Jan Holesovsky
2355f2792f Save As: Reload the newly created document after the Save As.
Change-Id: Ibf979cce4fea13a31ece089394dab296158a159b
Reviewed-on: https://gerrit.libreoffice.org/44283
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-11-10 11:08:53 +01:00
Jan Holesovsky
513ffe36c1 Save As: UI for changing the document name.
Change-Id: I23aba95ff0f8d867b021ba3cf0a6bc5eb4754f9d
Reviewed-on: https://gerrit.libreoffice.org/44282
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-11-10 11:08:53 +01:00
Pranav Kant
377faf3971 loleaflet: Disable selecting <body> element
Change-Id: I13a6fc949a9b419a0669a8c8fe608f9564991eb9
2017-11-10 12:25:04 +05:30
Pranav Kant
7e8d584f1e loleaflet: Focus back to map after closing dialog
Change-Id: Ibc9e62d907922ad1b9824f014dd179d9793e798b
2017-11-10 11:43:02 +05:30
Pranav Kant
66556c1668 Copy jquery-ui image files to dist/ during normal make
No need of dist-hook now to do the same. The good thing is that now
these images will also be available to a developer which was earlier not
possible without manually copying the files left & right. This means no
more annoying errors in developer's browser console.

Change-Id: Ie180720086feace00b61891f56ee3532f5f9df7b
2017-11-10 11:33:45 +05:30
Pranav Kant
0a5549bc6b lokdialog: Cycle TAB key *in* the LOK dialog
With this, TAB key is cycled through properly in the LOK dialog's
buttons.

Change-Id: I9357a5a88b661ac7f90a507071d34dcb05964c43
2017-11-09 17:01:02 +05:30
Pranav Kant
d8e9a35d74 lokdialog: Don't destroy and relaunch when size changed
This has an ugly side effect that when size is changed, the dialog is
centered in the document. With improvements in core.git, this should
work fine now without it.

Change-Id: I1bebc8a652cf6887028b6930363ae7ea137efc94
2017-11-09 15:50:02 +05:30
Pranav Kant
3dd644b1bc lokdialog: Let floating window pop out of the dialog container
Change-Id: If339cdff39137e68a1fb61bb49830f4734485001
2017-11-09 14:44:49 +05:30
Pranav Kant
2b8c4ee3bb lokdialog: Remove padding around dialog canvas completely
Change-Id: Ie6d65ca23936f081c5e2b37fff6f5d90d9fcd06e
2017-11-09 09:49:17 +05:30
Pranav Kant
a2a72572bb lokdialog: Paint only part of the dialog when specified
Change-Id: I5543c95a48fd0192e5c654598991125bcaeb62e4
Reviewed-on: https://gerrit.libreoffice.org/44519
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-11-09 04:25:13 +01:00
Pranav Kant
f1d78c7e62 lokdialog: send invalidate rectangle in dialog command
Change-Id: Iae00498a0ead1ee65dfce0332721e0d0fd2202fb
Reviewed-on: https://gerrit.libreoffice.org/44518
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-11-09 04:24:24 +01:00
Pranav Kant
83cb6270da lokdialog: Strip unnecessary padding from dialog container
No idea yet why there still is a thin padding strip at the bottom of the
dialog.

Change-Id: Ia1347bafbf647385c1771f7af3e755cbf44dd666
Reviewed-on: https://gerrit.libreoffice.org/44517
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-11-09 04:24:13 +01:00
Henry Castro
a8955a3328 loleaflet: add menu accept/reject all tracked changes
Change-Id: I922675bc19158bc17703659da9490750581c6317
2017-11-07 23:29:27 -04:00
Henry Castro
c4e987c3d6 loleaflet: sort translated languages
Change-Id: I35a7fc447939796eb33e4a8fd2df3631ec6db1ae
2017-11-06 17:25:19 -04:00
Aron Budea
bd306e3dbe loleaflet: make char preview work in Special Characters dialog
Previously loading animation was shown if the user clicked below
the glyph.

Change-Id: Ic13eb06139a352e47db8db85ae2948e0fbab282c
Reviewed-on: https://gerrit.libreoffice.org/43895
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2017-11-05 14:44:01 +01:00
Pranav Kant
8c0e94c57a lokdialog: Rename dialogs and distribute to appropriate places
Change-Id: I1d92830dd77bbe77765aa44fb9044726b45f21a6
2017-10-31 04:02:01 +05:30
Marco Cecchetti
7f9cdb2e52 loleflet: calc: canvas styles for headers are fetched from css file
Change-Id: I0423c353d22736aa2edaf45d55112af001d46692
Reviewed-on: https://gerrit.libreoffice.org/44049
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2017-10-30 10:42:11 +01:00
Pranav Kant
4ae3dae8fd lokdialog: No need for transforming dialog names
Now since we already get correct uno names as dialog id in the LOK
dialog callbacks.

Change-Id: Ib4a431c3e769c46069be45afea0672c6c8f5390f
2017-10-28 08:15:16 -07:00
Pranav Kant
6375789611 lokdialog: Support for dialog title
Change-Id: Ie66c74290eb0583882cb9395b01c00f91df50aa0
2017-10-28 08:15:16 -07:00
Jan Holesovsky
9e88e7f727 Add the missing separator in the "Language for paragraph" submenu.
Change-Id: Id389ef7539d69c96c0bbd7d80404bd435d54a8b4
Reviewed-on: https://gerrit.libreoffice.org/43932
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-10-27 09:04:08 +02:00
Jan Holesovsky
ea39bb2552 Use just "Language" in the Calc and Impress Tools menu.
Change-Id: If5bcaf0e7e3aa8867682afaaee87645b05182143
Reviewed-on: https://gerrit.libreoffice.org/43930
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-10-27 08:45:42 +02:00
Marco Cecchetti
3dee70e3c4 loleaflet: now Calc headers are rendered throught Canvas 2d
Change-Id: I5ab0d9a4af7a8bdba3eb0d07e89c811f7b1850b4
Reviewed-on: https://gerrit.libreoffice.org/43880
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2017-10-26 13:12:20 +02:00
Aron Budea
a98727b536 Add 'Repair' menu to spreadsheet/presentation.
Change-Id: I7651418c79c711940438ada53d64970e7674d077
Reviewed-on: https://gerrit.libreoffice.org/43859
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-10-26 11:11:38 +02:00
Jan Holesovsky
58ec841ad1 Move the 'Repair' menu entry under Undo / Redo.
Change-Id: Ic53eec49413de800154ce956747fe0fcf32d96e9
2017-10-26 11:11:38 +02:00
Jan Holesovsky
6745464c70 tdf#99744 SaveAs: Report back to loleaflet that the saveas succeeded.
Change-Id: I670c8b4503c1a4c0a88001a1343f6dec2974e044
2017-10-26 11:11:38 +02:00
Jan Holesovsky
7ff432a370 tdf#99744 SaveAs: Reimplementation of the PutRelativeFile going through Kit.
This is necessary so that changing of the file type works.

Includes a unit test.

Change-Id: Id01d44e555b6bac1002ff950de461fd330602f63
2017-10-26 11:11:38 +02:00
Jan Holesovsky
f4198526ca tdf#99744 SaveAs: Reverts parts of the previous Save As work.
It is necessary to go through the Kit when performing the Save As, so that we
can change the file type, sync with loading the file, etc.
2017-10-26 11:11:38 +02:00
Pranav Kant
e9e162b35e lokdialog: Mouse/key events, canvas use & child window impl.
Change-Id: If8ae5c284e7166d4a01bd664644134f11197f988
2017-10-25 00:39:03 -07:00
Pranav Kant
e68dac855e lokdialog: open, close, paint and invalidate the dialog systematically
This makes simple dialog like word count dialog, which do not require
any key/mouse interaction with the user, work correctly -
responding to invalidation callbacks and painting it again.

Change-Id: I3eee49751ec7815c8a26a687fc1f3915911d6cd4
2017-10-25 00:38:13 -07:00
Pranav Kant
374d6a197d lokdialog: pass the dialog id in dialog command
Change-Id: Ia0e76b1dc93483340361777cf21f23127bac91e1
2017-10-25 00:38:08 -07:00
Pranav Kant
e74a4e2487 lokdialog: wrap the lok dialog image in dialog container
The two test dialogs, Spelling dialog and word count dialog
appear on the screen when invoked from the menubar.

Interaction with dialogs is WIP.
Mouse/key events and floating window still needs to be worked upon.

Change-Id: I2d439465c7536d0b453c8ade503ec181a96c90d2
2017-10-25 00:38:01 -07:00
Pranav Kant
99d7ddc925 lokdialog: loleaflet: infra for receiving lok dialog messages
Change-Id: Id1aa1b31c3f2d4e3a888307d25cd7a8106613156
2017-10-25 00:37:55 -07:00
Pranav Kant
dd3e317a56 lokdialog: Make space for dialog class
Change-Id: Ic3bccac355069491afdc76db70bea8d5c570e086
2017-10-25 00:37:50 -07:00
Pranav Kant
0c2fd7ec1d lokdialog: Add some dialog commands
Change-Id: Id711292814d9cb61271e898422a740408338593d
2017-10-25 00:37:33 -07:00
Henry Castro
2965cebe6c loleaflet: check if languages are an array type
Change-Id: I580ea3c6fe70d1aa3204d2c743fb0a978dda185e
2017-10-24 15:03:36 -04:00
Michael Meeks
7bc510c17a Remove inconsistent copy/paste horror - fixing memory id & hence updating.
Change-Id: I8f92650717a39079dd4ad6ed61655266ba841115
2017-10-22 21:36:16 -07:00
Andras Timar
ea251d34bf loleaflet: updated Slovenian translation
Change-Id: Id38563e13a9c6538e13e6481156dd9a95a08300e
2017-10-22 07:53:42 +02:00
Henry Castro
18867cc98f loleaflet: enable Calc spell checking
Change-Id: I9293335e1da7a3ad35d6ed03caf8289e2f26d066
2017-10-21 13:42:35 -04:00
Emre Öztürk
d10e0bc129 tdf#107562 Enabled replying comments in impress
Change-Id: I55862204ef71f69bc88c79fe2259f7cb8365699a
Reviewed-on: https://gerrit.libreoffice.org/43165
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-10-16 19:56:49 +02:00
Pranav Kant
cf3076a260 [API CHANGE]: loleaflet: postmessage: s/rev-history/UI_FileVersions/
And keep the compatibility with older clients by adding 'Deprecated'
flag to the messages in PostMessage API. The clients must ignore such
messages marked with deprecated flag and should wait for the standard
non-deprecated post message.

Change-Id: Id203c44db5986303c574e66602d8f98b4c04ba50
Reviewed-on: https://gerrit.libreoffice.org/43093
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-10-16 19:50:09 +02:00
Henry Castro
b57a4e9171 loleaflet: enable Impress spell checking
Change-Id: Ie4ae3f683bc55f7ca67b01e65dafea9746784b5a
2017-10-13 20:59:19 -04:00
Pranav Kant
981d810f1d loleaflet: The comment JSON has user name, not userid
We register the full names of the user with libreoffice core, not user
ids. Create a viewinfo map mapping usernames with viewinfo, not userids
with viewinfo.

This fixes the regression: the avatar URL doesn't work.

Change-Id: Ie4cc75168c7480fcb663414f3a082264b42c11d9
2017-10-11 14:47:26 +02:00
Andras Timar
609c52e79c loleaflet: update pot file
Change-Id: I7a58230990a2b7feab90f831880e97a3f0e61d54
2017-10-08 13:10:34 +02:00
Henry Castro
e78d9a0d91 loleaflet: add "None (Do not check spelling)" option
Change-Id: Iae5176cf5b6b87b5c9540e392e6e81db7193e83f
2017-10-06 17:33:26 -04:00
Jan Holesovsky
dec231da0f Move the language menus one level up.
Change-Id: I01f5d985ac3ebd9265200ecc161b861dc582ad69
Reviewed-on: https://gerrit.libreoffice.org/43113
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-10-06 11:39:47 +02:00
Andras Timar
b599bb0a31 loleaflet: l10n update from Pootle
Change-Id: Idead8ba649396abaeda2fb3db2fac5266d82a49c
2017-10-06 11:20:25 +02:00
Andras Timar
6bd9ea1659 loleaflet: es l10n correction: Djibouti->Yibuti
Change-Id: I90ca414e0e0104dc54a56abc6e812d637677d686
2017-10-06 11:12:45 +02:00
Andras Timar
4ef7da3733 loleaflet: updated sl translation
Change-Id: I890f3fe7232a8b5b1708d555344ca65ad6fa188c
Reviewed-on: https://gerrit.libreoffice.org/43155
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-10-05 08:32:46 +02:00
Andras Timar
a9b635a5d0 loleaflet: add language name translations from core (langtab.src)
Change-Id: I7e425cefe68aa4ebb8ba0e6416e4f0bdead37dfd
Reviewed-on: https://gerrit.libreoffice.org/43144
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-10-04 22:58:21 +02:00
Henry Castro
30fd4d2f11 loleaflet: fix statusbar items when refreshed
when the statusbar is refreshed the items are restored to according to
html property

Change-Id: I79f77c5ab4932c10d10dd9780cbd6e6a9b132a38
2017-10-04 09:45:59 -04:00