Commit graph

10527 commits

Author SHA1 Message Date
Pedro Pinto Silva
a47db54ea5 Mobile: mobileWizard: Impress: add iconpath according to its id from unocomands coming from core for this case specific
Change-Id: I5f91790528a71e8bff5de58b0d3988aa305c02c5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89635
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-02 20:02:39 +01:00
Tomaž Vajngerl
65a19d4e21 android: reuse an already open activity when starting a new one
This sets the "launchMode" of the LOActivity to "singleTask" and
implements "onNewIntent". This is necessary so that we don't
duplicate LOActivity instances, as that isn't handled correctly
and can cause a freeze or in some cases that text input from one
instance is sent to the other. The back button stack isn't ideal
as it still can return us to LibreOfficeUIActivity even when the
activity is started from some other app, but this at least is
consistent with how some other apps work.

Change-Id: Idd11214578ec124661e2612bb49ba7e4bc4f3cea
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89811
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-02 19:04:55 +01:00
Pranam Lashkari
e30b035136 leaflet: removed legacy inertia scrolling implementation
Change-Id: I6be07f1d16ea6bcebfa9c8c2712b713c3f0b1950
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89772
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-03-02 16:53:19 +01:00
Henry Castro
3697315349 loleaflet: makefile: use m4 to bundle src js files
It is a flexible bundling of the loleafet source files
and each platform (ANDROID, IOS, DESKTOP) can prevent to
bundle some files that is not necessary.

(i.e Mouse handling in native mobile devices)

Change-Id: If018bcc8682df5ae4bf5dd9943aa977e18c0de36
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89734
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-03-02 16:51:32 +01:00
Miklos Vajna
c99664b19c StringVector: fix build with gcc-4.9
Debian 8 has gcc-4.9, which emits -Werror in case a parameter and a
member function has the same name. Given that we also use -Werror
unconditionally, this breaks the build. Newer gcc/clang versions relaxed
this warning, so this was not a problem in those cases.

Change-Id: I7ad09370d96aa7384b2c117dd8de421644898b50
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89785
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-03-02 16:25:05 +01:00
Marco Marinello
11c12a2729 Variabilize online git source
Signed-off-by: Marco Marinello <marinello@libreoffice.org>
Change-Id: If8f9103972952b98193ca6d1501844422b8aae54
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89483
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-03-02 01:53:29 +01:00
Jan Holesovsky
0acb00fc24 android: Handle the loading progress directly in the app.
This way we can easily extend the "preparing for the 1st start" to the
follow-up "loading..."

It should also look better while the webview is being initialized etc.

Change-Id: I8de2dd96a726fa8302df558f691b1db82c9c8e71
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89733
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-29 11:03:42 +01:00
Jan Holesovsky
a5410a126f android: No need for a USB device attached/detached receiver any more.
This was needed before we switched to using the Content provider
framework.

Change-Id: I3906069ad3dc04a957f768b9ed02463aeaa4470f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89732
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-29 11:03:14 +01:00
Jan Holesovsky
48283deca5 Just try to catch everything in the getSafeConfig().
Poco::Exception is derived from std::exception, yet there were cases
where it was not caught - no idea why:

I/DEBUG   (24700):     #00 pc 000371e4  /system/lib/libc.so (tgkill+12)
I/DEBUG   (24700):     #01 pc 00013fb9  /system/lib/libc.so (pthread_kill+52)
I/DEBUG   (24700):     #02 pc 00014bd7  /system/lib/libc.so (raise+10)
I/DEBUG   (24700):     #03 pc 00011519  /system/lib/libc.so (__libc_android_abort+36)
I/DEBUG   (24700):     #04 pc 0000fca4  /system/lib/libc.so (abort+4)
I/DEBUG   (24700):     #05 pc 000126e9  /system/lib/libc.so (__libc_fatal+16)
I/DEBUG   (24700):     #06 pc 0001159d  /system/lib/libc.so (__assert2+20)
I/DEBUG   (24700):     #07 pc 00064fed  /data/app/com.collabora.libreoffice-1/lib/arm/libc++_shared.so
I/DEBUG   (24700):     #08 pc 00065183  /data/app/com.collabora.libreoffice-1/lib/arm/libc++_shared.so
I/DEBUG   (24700):     #09 pc 0006cb79  /data/app/com.collabora.libreoffice-1/lib/arm/libc++_shared.so
I/DEBUG   (24700):     #10 pc 0006c527  /data/app/com.collabora.libreoffice-1/lib/arm/libc++_shared.so
I/DEBUG   (24700):     #11 pc 0006c4ef  /data/app/com.collabora.libreoffice-1/lib/arm/libc++_shared.so (__cxa_throw+74)
I/DEBUG   (24700):     #12 pc 001be25c  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so (_ZNK4Poco4Util21AbstractConfiguration7getBoolERKNSt6__ndk112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+208)
I/DEBUG   (24700):     #13 pc 001847fd  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so (_ZN7LOOLWSD17ConfigValueGetterclERb+12)
I/DEBUG   (24700):     #14 pc 001847c3  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so (_ZN7LOOLWSD13getSafeConfigIbEEbRN4Poco4Util20LayeredConfigurationERKNSt6__ndk112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERT_+22)
I/DEBUG   (24700):     #15 pc 00184747  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so (_ZN7LOOLWSD14getConfigValueIbEET_RN4Poco4Util20LayeredConfigurationERKNSt6__ndk112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEES1_+38)
I/DEBUG   (24700):     #16 pc 0018748b  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so (_ZN7LOOLWSD10initializeERN4Poco4Util11ApplicationE+1334)
I/DEBUG   (24700):     #17 pc 001c7274  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so (_ZN4Poco4Util11Application3runEv+28)
I/DEBUG   (24700):     #18 pc 00134fbf  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so
I/DEBUG   (24700):     #19 pc 00134df7  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so
I/DEBUG   (24700):     #20 pc 00134dc5  /data/app/com.collabora.libreoffice-1/lib/arm/libandroidapp.so
I/DEBUG   (24700):     #21 pc 000137a3  /system/lib/libc.so (_ZL15__pthread_startPv+30)
I/DEBUG   (24700):     #22 pc 00011883  /system/lib/libc.so (__start_thread+6)

Change-Id: Ica643f88d572b239b9a124e31cb4552f86439bf6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89715
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-29 11:02:52 +01:00
Jan Holesovsky
09005eb1cf android: Don't even try to read these values, seem to trigger an exception.
All the code that is using them is compiled out on Android anyway.

Change-Id: Ica349135202211ecdcb095bb82aa677f2dee19ba
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89714
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-29 11:01:00 +01:00
Miklos Vajna
7193699742 libfuzzer: don't require a core.git installation set
The fuzzer focuses on catching protocol parsing problems, it's not an
end-to-end test.

Change-Id: I1edc308134f365749339790f242614332b54dce4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89720
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-28 18:31:53 +01:00
Miklos Vajna
547f9ea731 Rework StringVector to have a single underlying string
This is meant to reduce lots of small allocations and instead have
pointers into the single string for the various tokens instead.

This has a few requirements, though:

1) It's no longer OK to modify the tokens, changing their length would
invalidate the start/length of other tokens. Rework
DocumentBroker::load() to avoid such mutation.

2) The iterators no longer expose zero-terminated strings, so
Poco::cat() doesn't work anymore: add an own cat() instead and use that
in e.g. ChildSession. The own cat() has the benefit that it won't read
past the end of the array if the begin index is out of bounds to add
more safety.

(This nicely works towards killing Poco usage in general.)

3) If zero-terminated strings for all individual tokens is needed, a
copy has to be made, as done in spawnProcess().

(For all of these requirements, the build fails if there are problems.)

Change-Id: Iea40e4400e630b2d669f5c72aea85cb40edf9a2c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89711
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-02-28 18:31:37 +01:00
Miklos Vajna
b8bd1990aa Rework LOOLProtocol::tokenize() to return a StringVector object
The bulk of this commit just changes std::vector<std::string> to
StringVector when we deal with tokens from a websocket message.

The less boring part of it is the new StringVector class, which is a
wrapper around std::vector<std::string>, and provides the same API,
except that operator[] returns a string, not a string&, and this allows
returning an empty string in case that prevents reading past the end of
the underlying array.

This means in case client code forgets to check size() before invoking
operator[], we don't crash. (See the ~3 previous commits which fixed
such crashes.)

Later the ctor could be changed to take a single underlying string to
avoid lots of tiny allocations, that's not yet done in this commit.

Change-Id: I8a6082143a8ac0b65824f574b32104d7889c184f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89687
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-28 16:07:56 +01:00
Henry Castro
133dee2980 loleaflet: makefile: avoid to execute javascript to get a list file
We are in state to bundle Javacript files for different platforms:
Android, IOS, desktop. And each platform could add specific chunk
Javascript code according its specific requirements.

Change-Id: Ib52ae816cb9443c8605fdf70aaa4c5e4c81b962d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89557
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-28 13:46:18 +01:00
Dennis Francis
c22b29f864 Fix js crash when jsdialog invoked on piecharts
For some reason, the parsed jsdialog message for piecharts
in calc has element(s) with children that evaluates to undefined.
Although we need to fix why there is such an child for any ui object,
this is a quick fix that skips such entries, so that the chart dialog
is shown without a crash in the console. Else the dialog wont appear.

Change-Id: Iff11051bf775ece63ac9f0ca180b3c76d7d14e84
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89563
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-27 18:12:00 +01:00
Miklos Vajna
d129979822 wsd: fix crash with read-only documents + uno command without param
==15956==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000007cd2f7 bp 0x7ffe96c7cd70 sp 0x7ffe96c7c4e8 T0)
...
    #7 0x11a9d31 in ClientSession::filterMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const wsd/ClientSession.cpp:977:27
    #8 0x11925d6 in ClientSession::_handleInput(char const*, int) wsd/ClientSession.cpp:741:14
    #9 0x19395d0 in Session::handleMessage(bool, WSOpCode, std::vector<char, std::allocator<char> >&) common/Session.cpp:230:13

This seems to be a recurring pattern, I'll consider reworking
LOOLProtocol::tokenize() in a follow-up commit to have a return value
that is safer than std::vector<std::string>.

Change-Id: I0e71214a55af2e71e4787cb0dba0ddf7825bf9d9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89637
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-27 17:59:59 +01:00
Pedro Pinto Silva
ade9bcb454 mobileWizard: context actions were not aligned in some browsers
Change-Id: Ibea92fcce449eea9651e6d84e44e47924b116f2e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89544
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-27 16:04:51 +01:00
Pedro Pinto Silva
c8b355bf1b Mobile: Toolbar-up: make sure that there is no background being applied to any icon on checked status
Change-Id: I1f419d485cefa387c35a9c42c9ac6671df909434
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89639
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-27 15:55:32 +01:00
Miklos Vajna
1016de956a fuzzer: fix OOM with an ever-growing SocketPoll::_newCallbacks
Admin::instance().dumpState(std::cerr) at the end of a run shows:
 Poll [0] - wakeup r: 11 w: 12
        callbacks: 103
        fd      events  rsize   wsize

This is more a problem in the fuzzer itself than in the code, the
unprocessed callbacks reached the intentionally set 2GB limit in about
20 mins, so process them at the end of each run.

Change-Id: Ic12d3e8555417371f4ca44228fc1ff515d704592
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89632
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-27 15:11:31 +01:00
Miklos Vajna
bbcfd8fad2 UnitRenderShape: update Writer reference SVG
Now that we don't re-compress PNG images since core.git commit
8fc1b60f62c213a0476f3acc9f89cd5eccbf335d (sw SVG export: try to reuse
original bitmap data for JPG and PNG bitmaps, 2020-02-27).

Change-Id: I869ae0a21f834e6f05bf9b897b15cf3392320cd8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89621
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-27 11:57:07 +01:00
Tamás Zolnai
bd83d6f0a6 cypress: mobile: this is not needed anymore.
After this commit:
b77cd954e0

Change-Id: I90e9a6eebb774b7c9ad1780fbfab0528772142a3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89599
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-26 22:32:16 +01:00
Tamás Zolnai
f2a6c287d4 cypress: mobile: enable writing direction related test.
Change-Id: Ia48d716d2ac2eaba0a3fbf1f2a8e4f9c084e8505
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89600
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-26 22:32:02 +01:00
Aron Budea
1173d8df30 Replace 'includes' with '$.inArray' for IE11
Regression from 864749bb16.

Change-Id: Ie4fdc673f9e08fbfce24220656380cc3e183da37
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89593
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
2020-02-26 22:13:13 +01:00
Aron Budea
ecafb84258 Use '$.inArray' correctly
Follow-up to 6fdad3ba94.

Change-Id: I0829ab27fa6b095f5e5bfa6587b221fc0169407e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89594
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
2020-02-26 22:12:44 +01:00
Tamás Zolnai
892e29377a cypress: mobile: enable spellcheck related tests.
Change-Id: I198c4abb43426cb6a6d4e8e9b43f1c7ed83f1d81
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89595
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-26 22:01:03 +01:00
Tamás Zolnai
8265fab93f test: remove redundant shape related C++ test.
This test case is covered by cypress tests. See
shape_properties_spec.js. Those tests will fail if
SVG rendering is broken.

Change-Id: I1a3434f9696c6a323a23ded0b1b2816d74373c7a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89590
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-26 21:38:09 +01:00
Aron Budea
6fdad3ba94 Replace 'includes' with '$.inArray' for IE11
Regression from b36d56bf5b.

Change-Id: I270afb92366fa8992c08a79bd1c561117a18bb9c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89560
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
2020-02-26 17:39:16 +01:00
Andras Timar
86ac72e6f3 android: include French spellchecking dictionary
Change-Id: Iea4845b557d32ec3f97b9dd2803807fee27cc745
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89529
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2020-02-26 17:21:13 +01:00
Pranam Lashkari
7bbd1dbffd leaflet-CSS: Increased the sheet tab height
Change-Id: Idf1d732700853d237339c16d991b32ec86ce90de
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89535
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-26 17:10:01 +01:00
Michael Meeks
e6c880b1af remove less-useful / non-functioning impress fields.
Change-Id: Ie3e4a118c3069abf928c93b03a9e3a1c60b1d251
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89555
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-26 17:06:32 +01:00
Pedro Pinto Silva
5bdf841a8f Spreadsheet mobile: add missing ( originated from 364623c87f
Change-Id: I2b6a96865f770315d5a0b990ecc24b839271f763
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89547
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-26 14:48:22 +01:00
Pedro Pinto Silva
f401f1f714 Hamburger menu: adding ids (so it uses the respective icon) and adjusting cypress file
Change-Id: I33ad1671cc859ea1af1350f3e3d3a83b33c355c5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89532
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-26 12:41:57 +01:00
Pedro Pinto Silva
367c6f9588 mobileWizard: ui-header-left: remove hard width and replace it with min-width
Change-Id: Ib10f93b66ab2f3f5f50e8ae520ec8755361ae0cf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89534
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-26 12:34:59 +01:00
nienzu
51c840249e tdf#130798 admin: Use original data to create network traffic graph
Instead of using the data of rolling average, using original data would
reflect the real network traffic.

Change-Id: I3f5a277b6ee8e7d760f5623eb4aae9f6c999e10f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89494
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-26 10:53:25 +01:00
Ashod Nakashian
23f4848131 leaflet: don't hide the keyboard when changing selection
We now don't change the keyboard state when the user
drags the selection markers.

Change-Id: Ic3dec8011808df8d1028e1925190854a50588e1c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89492
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-26 02:57:33 +01:00
Ashod Nakashian
16f1c624ea leaflet: don't lose focus when the dialog cursor is hiden
The cursor visibility can change rapidly, and the formula-bar
seems to do this when typing into it. The result is that
because of losing the input focus we lose some of the input.

Instead, we only use the dialog cursor update to show the keyboard
rather than to hide it. For hiding, other messages will do it.

Change-Id: I0e8674170aa9d05b6ddc15de8d35792377b6725b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89490
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-26 01:35:30 +01:00
Ashod Nakashian
8ad7c4790c leaflet: fix searching in document functionality
This makes searching work again, but typing 'r'
still triggers F3, which simply matches the next
hit (on desktop, on mobile it works fine).

So (on desktop) typing 'your' will match the first 'you'
and the 'r' will move the search results to the
second 'you' (assuming there are at least two 'you'
entries in the document and one 'your').

Change-Id: Iab425afdfb3848ecff97f5599ceb7cae160b097d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89357
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-26 01:33:30 +01:00
Ashod Nakashian
af58e19750 leaflet: remove redundant check
Map.editorHasFocus() implies map.getWinId === 0.

Change-Id: I522a377df095683453d2499a87485465437f9abb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89356
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-26 01:32:38 +01:00
Marco Marinello
0326037cbf Add a README for docker directory
Signed-off-by: Marco Marinello <marinello@libreoffice.org>
Change-Id: I0cc9da9945763c48afd01ea231d9dfb5bb384d71
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89482
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-25 22:45:43 +01:00
Tor Lillqvist
3de577d2c2 Use the loolkitconfig-mobile.xcu on iOS, too
We can't rename a file in the Xcode project, so copy it to
ios/Mobile/loolkitconfig.xcu in the configure script, and use from
there.

Change-Id: I1e50235c06f528dd24d0d968aaccc994418b57d8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89466
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-02-25 21:40:03 +01:00
Jan Holesovsky
6f3f52304f Don't bind the slideshow downloading to the richdocuments...
... decide based on the DownloadAsPostMessage wopi value instead.

The idea is that the Nextcloud app actually sets the DownloadAsPostMessage
wopi value to true, which means that all the downloading (including
slideshow) is passed as Download_As postMessage anyway.

So deciding here based on the existence of the Nextcloud app is
not necessary, because there might be others who set the
DownloadAsPostMessage and rely on the Download_As postMessage,
but would get a non-functional iframe over the top of the editing
window.

Change-Id: I4a5c1d9ef6276908a1b3910a4269091955cdc490
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89382
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-25 21:03:37 +01:00
Tamás Zolnai
4ca5089d56 mobile: fix-up non-breaking space insertion.
Make it to have the icon, but also trigger the right
uno command.

Change-Id: Ic762fee0eee0f1a6bc793edc98ed2217075364f7
2020-02-25 12:15:23 +01:00
Pedro Pinto Silva
f3b8455aaa Mobile: Insert: Add missing icons, add missing ids, create missing icons, also add sub level icns for footerandheader and formattingmark (fixing cypress)
Change-Id: Id3ca33095b5eae7d13129f4b9629e2c0faf302fb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89371
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-25 12:06:31 +01:00
Weblate
6f72298026 update translations
LibreOffice Online/android-app (Czech)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: Ic104628d67d59f73041eb106ac50d50848cbde6e

update translations

LibreOffice Online/android-app (Lower Sorbian)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: I143fa07f1cbfeb73d3b1833f16dc26550db7e43e

update translations

LibreOffice Online/android-app (Basque)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: I1887ef80e1f1cd243ab870e44adb174b15a88368

update translations

LibreOffice Online/android-app (Upper Sorbian)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: Idaeda0a44b3143cf10459b80225bd2d49b888f40

update translations

LibreOffice Online/android-app (Portuguese)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: I1468acbb78f393081eba42fc385732f4c31712f6

update translations

LibreOffice Online/android-app (Hungarian)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: Ida536ad1b0a194eb37bddaae056f335f3d7e8a65

update translations

LibreOffice Online/android-lib (Hungarian)
Currently translated at 100.0% (8 of 8 strings)

Change-Id: I2bc806914e12e3fce7cfb5840448b544bc70c315

update translations

LibreOffice Online/loleaflet-ui (Chinese (Traditional))
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I2c396e85bfbac4ebc48d75738082f9522a40b487

update translations

LibreOffice Online/loleaflet-ui (Ukrainian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I705356ab54afae9aaee238e078ea432c3410bbcd

update translations

LibreOffice Online/loleaflet-ui (Turkish)
Currently translated at 97.2% (280 of 288 strings)

Change-Id: Ida18a8145a8e2bb718f7ca87e35427b21a74f11c

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Ib583b1efe8aefe154eb286e5cfda350c0438654e

update translations

LibreOffice Online/loleaflet-ui (Russian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I9f1b78c644f3f15a25e218b84eefb0f0e3ce4548

update translations

LibreOffice Online/loleaflet-ui (Portuguese (Brazil))
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I7e8026c4fb0c0a24186681f5ea3ebf19a7edcebe

update translations

LibreOffice Online/loleaflet-ui (Portuguese)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I7034f98bddbd0d6839907d68d2852feb7cd6852f

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Ic6b8e91bc6857b2135fa8fee7e6b5a576f39a5f9

update translations

LibreOffice Online/loleaflet-ui (Dutch)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Ie74c18a72f44c778be4e02ca4b9a42f76efc7e38

update translations

LibreOffice Online/loleaflet-ui (Italian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Ibc5496109cccb4c004de4f2590edb85faeef2318

update translations

LibreOffice Online/loleaflet-ui (Icelandic)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Ieb4fe8939e8289540d085c6e2ebabde79ca20b04

update translations

LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: If0bdc8119f683ea4141048dc51c33cdf314a8cb7

update translations

LibreOffice Online/loleaflet-ui (Upper Sorbian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I48723bfd30552592327a352c1f3e8ceb12a9d54f

update translations

LibreOffice Online/loleaflet-ui (Galician)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I613b95666c292573016ad03b0d1c83681cb2fa63

update translations

LibreOffice Online/loleaflet-ui (French)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I6cff25e2bc5518ad1f0db7443a3d8b7a55658947

update translations

LibreOffice Online/loleaflet-ui (Basque)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I797ed20d4bf8c8171db1c513a3b89614248eb26a

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Iff004d986a01a23a5cc697f6ccfa8a4c76920d64

update translations

LibreOffice Online/loleaflet-ui (English (United Kingdom))
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I9db41be6c2bb1f6199c10f97c9ddf06cc1f08a03

update translations

LibreOffice Online/loleaflet-ui (Greek)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I9268cfde7471fbcce2cbfbb537002d8510946c9e

update translations

LibreOffice Online/loleaflet-ui (Lower Sorbian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I1344fee7081904e557e8d0c0ad74f02f4d31f351

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 92.4% (266 of 288 strings)

Change-Id: I86358814a0cfe996770c26f9a38f0c99cc77045e

update translations

LibreOffice Online/loleaflet-ui (Welsh)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I09fbc1a9426da78b16cc12eea4dddc67d29dc4a7

update translations

LibreOffice Online/loleaflet-ui (Czech)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Ia7a0a3e3f33db47a41b40e1113caaf8870ed28ba

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Iff5450e53315781614b73545cc6f6386b98f8b08

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I4196eb780fa8be4ac9ce23c8210074897bd18b6c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89306
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-25 11:21:10 +01:00
Tamás Zolnai
907a23bf0c cypress: mobile: improve shape geometry tests.
Change-Id: I46b2384da6c406c66e3f5d19838df1e87804b2a9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89390
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-25 00:37:42 +01:00
Tamás Zolnai
b77cd954e0 cypress: use different test files for different test suits.
Change-Id: I29ad09ce99128fe6700070e23cf66dfc0c553b70
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89389
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-25 00:33:32 +01:00
mert
04dc25bfe0 android: reduce the dictionary files
we copy dictionary files more than necessary
only the required ones are included

Change-Id: I200a95b2593109ff10e7214476fe6ddd2e792ae5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89384
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-25 00:16:51 +01:00
Michael Meeks
7d4580733f Un-break the XML by adding missing closing tag.
Also get the path right in the CMake .in file.

Change-Id: Ib0f02c5e4a71d04e40b7c353caea872a5ea9cfd6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89386
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-25 00:11:43 +01:00
Tomaž Vajngerl
97aef78355 android: log the used language when loading a document
Change-Id: If9255b2c6c63e46ee64823d8c49f6704c2300ef3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89322
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-24 23:10:01 +01:00
Tamás Zolnai
ca2fe5fa91 cypress: mobile: disable an unstable focus related tests.
It's unstable now, how focus behaves with shape.

Change-Id: If429420852599315bff5d71f33f263f1d79a356c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89380
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 22:14:25 +01:00