Commit graph

6055 commits

Author SHA1 Message Date
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
Miklos Vajna
8568f47667 wsd: fix -Werror,-Wunused-private-field
Change-Id: I4522caa338d874628509f4382914b39406797da5
2017-11-10 09:45:03 +01:00
Pranav Kant
768b0c0404 Bin some duplicate 404 handling
Change-Id: Ibf3ed6c5558492b122662f25f31d321a6bbc151c
2017-11-10 12:35:45 +05:30
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
fea82f5d48 Update bundled headers
Change-Id: I3480b7465c19203699a68a148dde20dc7d36f47a
2017-11-09 14:57:09 +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
Tor Lillqvist
4ab070ec38 Sort #include and using lines for consistency
... but did not have the time or energy to do it in all files.

Change-Id: I92ea101cae1ad7be0fd2f31ce5a8d4b4149332c9
2017-11-08 10:34:37 +02: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
Miklos Vajna
bb7ac21d44 Make sure that loop index type is never narrower than the length type
Change-Id: I19aac80850c0371085ca6364412d5ac9207220d0
2017-11-06 09:14:38 +01: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
Miklos Vajna
a3d6dee503 Remove unused strings
Change-Id: I621c462bca38222dcf26dfa1e414cf27e1a3e088
2017-11-03 15:25:09 +01:00
Tor Lillqvist
12aaff7d1a Bin some superfluous vertical whitespace
Change-Id: I770342c34c87e38597d5eb3695c432af69273ce1
2017-10-31 12:09:52 +02:00
Pranav Kant
8c0e94c57a lokdialog: Rename dialogs and distribute to appropriate places
Change-Id: I1d92830dd77bbe77765aa44fb9044726b45f21a6
2017-10-31 04:02:01 +05:30
Pranav Kant
3483a51973 Update bundled headers
Change-Id: I292dac1d6c801914960b73e951b6565cc36df1e9
2017-10-30 17:10:53 +05:30
Andras Timar
61a2d94f2b copy system hyphenation dictionaries to systemplate
Change-Id: Ie7e5a2644436d5de61f65b2d8ec5201471100787
2017-10-30 11:01:14 +01:00
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
Jan Holesovsky
bf1aa3326f Fix convert-to after the Save As work.
Change-Id: I1871dd8331367798ee42b2ca35505847b43b639d
Reviewed-on: https://gerrit.libreoffice.org/43881
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-26 17:52:55 +02:00
Tor Lillqvist
396c1488b4 Avoid test: : integer expression expected
Change-Id: I87f087a29ab4dc5cf94b0eee2a115b77c8283552
2017-10-26 16:56:25 +03: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
Jan Holesovsky
d3bf2638ea SaveAs: Fix unit test when used without ssl.
Change-Id: Ic48908c9e7449fc13458d9211fa743310834bd6b
2017-10-26 13:21:18 +03:00
Jan Holesovsky
343c5bc690 tdf#99744 SaveAs: Extend test to check that the Save As result was sent.
Change-Id: I3788b87d2599c01000af97f496ee2b840c0cae3e
2017-10-26 11:11:38 +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
6fe4484395 tdf#99744 SaveAs: Use X-WOPI-SuggestedTarget instead of X-WOPI-RelativeTarget.
And the correct encoding - UTF-7 (huh).

Change-Id: I6634fedb598c620128cc25a3e8fdc46e4096a756
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
Tor Lillqvist
a0b82c9fdb Avoid warning: ‘%s’ directive output may be truncated writing up to 255 bytes
... into a region of size 58

Change-Id: I725c537ed21553e9dc34ba006a39917e1549b6a7
2017-10-26 12:03:38 +03:00
Tor Lillqvist
a806655e59 Fix makedev warning
g++ says: In the GNU C Library, "makedev" is defined by
<sys/sysmacros.h>. For historical compatibility, it is currently
defined by <sys/types.h> as well, but we plan to remove this soon. To
use "makedev", include <sys/sysmacros.h> directly. If you did not
intend to use a system-defined macro "makedev", you should undefine it
after including <sys/types.h>.

Change-Id: If5cd1ec0ca34b00b1248e9b2650d4d13e6d3bf64
2017-10-26 11:53:35 +03:00
Tor Lillqvist
73d77a9f67 More -Werror=implicit-fallthrough=
Change-Id: I62164eef3a4f95bfe505b3b1a866495bde6c19b1
2017-10-26 11:51:53 +03:00
Tor Lillqvist
6b0faf9d97 Avoid warning "this statement may fall through" when intentional
Change-Id: I8d8bcb4747a1933e4ecefe1220a80a355e60317f
2017-10-26 11:38:43 +03:00
Pranav Kant
6e86fefc4e tdf#99744: Check if params exist before accessing them
Change-Id: I5a36281f281b5d1fa4a8b7a3551ce1d49c2efaad
2017-10-25 13:22:02 -07: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