Commit graph

6121 commits

Author SHA1 Message Date
Pranav Kant
99a7f1f992 Fix build; no operator== on std::stringstream
I guess we wanted to match strings there.

Change-Id: I5b76435144ce931718cc758963e79de7d0f5a9ea
2017-12-04 19:04:25 +05:30
Pranav Kant
245cb007af lokdialog: Add FormatCellDialog, EditStyle dialog commands to menubar
There is no exact menubar header as in calc, impress desktop version and
it doesn't look nice to create a new menubar header just for these
commands. So adjust them in most appropriate menubar headers for now.

Change-Id: Id52a2946904f0031168dcffcd0ab445f1a07a5bb
2017-12-04 18:53:40 +05:30
Marco Cecchetti
1943c4b8f1 loleaflet: calc: fix styles fetching in browsers different from Chrome
'font', 'border-width', 'border-color' are shortcut properties that
are available on Chrome but not on other browsers such as Firefox or
Edge.

Change-Id: I22d2a3db87b9d6f888bd345e06e605530358be51
Reviewed-on: https://gerrit.libreoffice.org/45665
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2017-12-04 11:54:00 +01:00
Michael Meeks
886a8a7ab8 loolmap - improve page annotation, and page diffs, count dirty bytes.
Change-Id: Iaaae8fca2bdd11961682d6f8dafa38e4ca51c44c
2017-12-01 17:39:28 +00:00
Marco Cecchetti
29a233e5a9 calc: set outline state
use a specific message from the client for set the visibility state of
a group instead of hijacking the update row/column header message

Change-Id: I69d66b30db0b4d8a0082cbd2524120491d4f97cb
Reviewed-on: https://gerrit.libreoffice.org/45446
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2017-12-01 01:10:43 +01:00
Michael Meeks
26876e6165 loolmap - read the parent's page data for unshared pages too.
Change-Id: I23bb319fa4694638efc82c7af86224d2e041160c
2017-11-30 13:33:25 +00:00
Jan Holesovsky
5032529cb9 Don't crash when ssl.cipher_list is not present in loolwsd.xml.
Change-Id: I3834550328ebd8627fc130c6ac2d0fccd2505311
Reviewed-on: https://gerrit.libreoffice.org/45525
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-11-29 20:07:40 +01:00
Pranav Kant
87e5d25471 lokdialog: Add some initial spreadsheet, presentation dialogs
Change-Id: I726601533cc8a33d912d42284d5585710036a817
2017-11-29 19:15:07 +05:30
Pranav Kant
c6a69901fa lokdialog: Kill Find&Replace js code; add/remove dialogs for writer
Change-Id: I3a7bb1ffdb4f50776868fee6eade44f194d290e0
2017-11-29 19:14:55 +05:30
Marco Cecchetti
550de38648 calc: outline and groups handling
Change-Id: Ie7dcb9a742344e6b0a8813faebc589167a457261
Reviewed-on: https://gerrit.libreoffice.org/45360
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2017-11-29 12:42:53 +01:00
Marco Cecchetti
94591b22f2 loleaflet: sc: handle header data subdiveded in ranges
Change-Id: I54b8bc80af91414d8a804e54a478a2eb452510e3
Reviewed-on: https://gerrit.libreoffice.org/44674
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2017-11-29 12:42:29 +01:00
Pranav Kant
a91f022e42 lokdialog: Remove getDialogInfo call; ncorrect dialog size handling
Change-Id: Ieff59baa984982bd8126102dafc5a97f673a4150
2017-11-29 13:35:12 +05:30
Michael Meeks
0778b72697 Dump hex contents of un-shared memory.
Change-Id: I47dfa8a0b48d0ba34b7462301b83e2721617814d
2017-11-29 03:33:16 +00:00
Michael Meeks
16898cbffc RLE compress sharing bitmap for display.
Change-Id: Ib47e2ceb481c0a9b4c36fc6f5304bf03acec128b
2017-11-29 02:38:33 +00:00
Michael Meeks
65f3d658cb Collect anonymous and file backed mappings too.
Change-Id: I7bf23917436bdffb483b288414409ccc53ed540c
2017-11-28 18:46:09 +00:00
Michael Meeks
2fb4521a9c Dump unshared heap memory ascii-art map by page..
Change-Id: I21ef386958e651b53b4d8eef434958a20adcbe68
2017-11-28 18:08:26 +00:00
Michael Meeks
5540fc0b7f Cleanup, memory map dumper, add <pid> mode, and collect heap pages.
Change-Id: I14e428b96c591e84ec9f50f0a75782c97660944b
2017-11-28 17:27:34 +00:00
Pranav Kant
c996c04d8e lokdialog: Remove dialog artifacts after socket disconnection
Change-Id: I199178761cfa715043185964142c9156e1a0b50f
2017-11-28 22:18:21 +05:30
Pranav Kant
b6117c2182 lokdialog: Handle size_changed; factor out common code
Change-Id: Ie4374ae1e2f5ba29b239cb37eb9fe4c5991094b0
2017-11-28 22:18:21 +05:30
Pranav Kant
6942536c67 lokdialog: Make sure you always send the bounds with paint request
... otherwise, in the backend we use a larger buffer to paint the dialog
which is a memory waste.

Change-Id: I2e97087f54b1a5340af6db216bfc7c40c0574b60
2017-11-28 22:18:21 +05:30
Pranav Kant
a98d0f6f2f lokdialog: request paint without mentioning bounds for the first time
Ideally, we should get the bounds of the dialog from the backend and we
do but those bounds are not correct for some reason. Till it's fixed in
core, we better not mention any bounds.

Change-Id: I88928df624948f991656f37b1a7c4f0c3bdd46a6
2017-11-28 22:18:21 +05:30
Pranav Kant
91d6755781 Bringing it to the top of the world
I don't have much idea how the vex overlay's z-index is 1111. We don't
set it anywhere. Anyhow, the dialog still needs to be lower than vex.
Hence, the 1105.

Change-Id: Idbd9beeb84d626a80580a7f7ca75f73edb89f06b
2017-11-28 22:18:21 +05:30
Pranav Kant
e6dbbef8f5 lokdialog: Restore dialog container size to original
Change-Id: I3a7bb1ffdb4f50776868fee6eade44f194d290e0
2017-11-28 22:18:21 +05:30
Pranav Kant
8ad03c61ee lokdialog: Change the dialog container width too
Change-Id: If3f937da472db20c39f402562ad559080509956d
2017-11-28 22:18:21 +05:30
Pranav Kant
a19121bbbc Adapt to dialog API changes in LOK
... and bypass some unncessary DocumentBroker handling of dialog
messages.

Change-Id: I378dff7a9786479baaa43f5fde9d30f35bc7f948
2017-11-28 22:18:21 +05:30
Pranav Kant
5355c52e10 Allow sending binary websocket frames from IDocument interface
Change-Id: I89f304e69e0c7b5f87bd2883a775d5c256674ef0
2017-11-28 22:18:21 +05:30
Rene Engelhard
276e7d640f add missing kit/Delta.hpp to kit_header 2017-11-28 01:34:18 +01:00
Rene Engelhard
385008947d Revert "include <sys/sysmacros.h>"
This reverts commit af7685e499.
2017-11-28 01:10:18 +01:00
Pranav Kant
483a5d68e5 tdf#114073: Potential fix for crash with openssl1.1
Using null ssl context to set options is surely not a good idea:

unsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op)
{
    return ctx->options |= op;
}

Change-Id: I2700350e0c3928e372488c81b8111c9ab0b48e06
2017-11-27 16:31:21 +05:30
Rene Engelhard
af7685e499 include <sys/sysmacros.h>
kit/Kit.cpp:1688:13: warning: 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>.
2017-11-26 14:15:21 +01:00
Michael Meeks
43e2c98d7c Disable word autocomplete by default.
The feature is problematic in terms of editing anyway, and burns RAM.

Change-Id: I3a078c16fb450e7b38e15ad1c76563d130d2b277
2017-11-25 19:13:34 +00:00
Henry Castro
dd2e4df683 loleaflet: fix text selectable in version dialog
Change-Id: Ia1f8aa5fc1a03d0ee39e663a7bbd865ba301b38c
2017-11-23 20:53:08 -04:00
Aron Budea
f6ec965dff rlimits: Friendlier and more precise logging of numbers
Unlimited settings were logged as huge numbers.
In two cases settings were logged via LOG_SYS (and as errors)
instead of LOG_INF.

Change-Id: I1da493c0126ecf9d2382956ac1e60e57988696ee
Reviewed-on: https://gerrit.libreoffice.org/44731
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-11-23 21:15:39 +01:00
Andras Timar
f3ab71e4b3 fix error: unused parameter ‘bufferHeight’ [-Werror=unused-parameter]
Change-Id: I6a1f64796d3304e12f0159bed03b5f95a760ce6a
2017-11-23 15:01:25 +01:00
Henry Castro
f5620db55f loleaflet: replace title parameter with wopi BaseFileName
Change-Id: I4807eec44dd481edc8bc4f8f360b8780c2575c8a
Reviewed-on: https://gerrit.libreoffice.org/45056
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-11-22 21:01:26 +01:00
Michael Meeks
ec80d623b8 Edit the right configuration XML file.
Change-Id: If72006918550ee5c440ad6b2ff26a5bd0d1efef1
2017-11-22 16:47:05 +00:00
Michael Meeks
92379ffbf2 Make the WSD SSL cipher list configurable.
Change-Id: If79b9efc9438cf0a2345b8e81385adafef63ce22
2017-11-22 15:55:03 +00:00
Michael Meeks
74f44251b7 Deltas - collapse multiple rows to a single row.
Change-Id: Ia2a617c2adbbc4e66b7c773c2280ec609aead16e
2017-11-22 15:55:03 +00:00
Michael Meeks
fa86ba9ec5 Convert Javascript to row deltas.
Change-Id: I2ec612c2bc047dc36f86c2935178c964f9feae11
2017-11-22 15:55:03 +00:00
Michael Meeks
5efb59db50 Make delta-builder row-based.
Change-Id: Ic59324535c4f412abc4e83774073eb8f57290704
2017-11-22 15:55:03 +00:00
Michael Meeks
42d264eeb0 Start of Delta unit-tests.
Change-Id: I1a25f5347c0d7430000146bb585a041d363bcf37
2017-11-22 15:55:03 +00:00
Michael Meeks
78398d4482 Move the Delta generator out into its own file.
Change-Id: I7f7553c292970b1a52879b6d6c14e67172022310
2017-11-22 15:55:03 +00:00
Michael Meeks
ed8807a1a5 Insert pixels from 'new' not 'old'.
Change-Id: I117348885073b740ed8b2df84d805854b2f00767
2017-11-22 15:55:03 +00:00
Michael Meeks
b1124c05a8 Deltas should be pixel based, add debugging.
Change-Id: I3b47b738ee71d015911e3d77b59b5f3cb34ecd75
2017-11-22 15:55:03 +00:00
Michael Meeks
0bfbbf9851 Start of delta creator.
Change-Id: Idf186cda4f11e2418d9ff9f435825832c6b10294
2017-11-22 15:55:03 +00:00
Henry Castro
9ef99e9270 loleaflet: clean up logs that no longer need it
Change-Id: I26d47b1fc73748a3e7e0e824b1596da43e57555c
2017-11-21 18:03:32 -04:00
Henry Castro
4d6a74421b loleaflet: fix initialization of unused variable location
Change-Id: I1cf537a7e50b6bf40ebb2b309e112b536a8971c5
2017-11-21 16:58:10 -04:00
Henry Castro
82e976bc5f loleaflet: fix initialization of unused variable docLayer
Change-Id: I73aac201a26c8bf60b3a7d17fd4cb4b4b17ae4b1
2017-11-21 16:51:37 -04:00
Tor Lillqvist
269ee2f0f5 Most distros should provide usable Poco packages by now surely
Drop the mention of /opt/poco as the place where to put a self-built
Poco as that seems to make some people think /opt would be a
recommended place to do a clone of the LibreOffice repository, too.
Which is a weird place for it.

Change-Id: I17543a915a7f9ea4716379283b0a51723d39b376
2017-11-20 18:32:07 +02:00
Fabian Jucker
3b82f62084 correct help message for with-max-connections, with-max-documents
Change-Id: Ib7244a6ee55284b36d874a101505e2fe04377c9c
Reviewed-on: https://gerrit.libreoffice.org/43121
Reviewed-by: Fabian Jucker <jucker@gyselroth.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-11-20 10:14:45 +01:00