Commit graph

449129 commits

Author SHA1 Message Date
Gabor Kelemen
bedba76adb tdf#131733 Show only CN part of X.509 subject info
The problem was that the whole Subject info was returned from
X.509 certs if they did not start with one of "CN", "OU", "O", "E"

Instead of extending this list with random keys, pass the type of cert
and only return the whole Subject info if it's an OpenGPG one, and
process the info unconditionally if it's X.509 like before the OpenGPG
integration

Change-Id: I1aa5d7285e48b0f4a769a073cdfb7732e482792c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92675
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2020-04-29 07:05:36 +02:00
Eike Rathke
14fef32030 Fix typo in code
... and provide a compatibility mechanism for supported service
names, as the typo was long standing since the beginning and
existing extensions may rely on it.

Co-authored-by: Andrea Gelmini <andrea.gelmini@gelma.net>

Change-Id: I289ec8a17b131bd013dd4b69327aed41e488d4f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92938
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2020-04-29 02:13:21 +02:00
Rizal Muttaqin
f845f74afa Sifr Dark: tdf#32490: Missing Set Reminder icons
Change-Id: Ibc5121114db8921932f3225262517bba18014ff4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93072
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-04-28 23:22:50 +02:00
Rizal Muttaqin
7fcc62022d Breeze, elementary, KJ: Add Modify Layer icons
- elementary: Update Step Over, Border Color icons

Change-Id: I7a84f0186a26b873c409eb3c2b79ef4c4f994fb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93093
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-04-28 23:13:13 +02:00
Andrea Gelmini
cafbad6407 Fix typo in code
Change-Id: I6a67206aee0b1844090d86b3fc91dc6c2e650c77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92940
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2020-04-28 22:49:56 +02:00
Xisco Fauli
4abaf53a24 tdf#115030: sw: Add unittest
Change-Id: Ic06c665f9eccfda52f86c5cde00e490ab419edef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93092
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-04-28 21:56:14 +02:00
Caolán McNamara
3fcdb85000 nStartPosition and nEndPosition are always the same
Change-Id: I6129a6696c36e3f907a0e7b5209613cdc858ff4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93084
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-04-28 20:53:03 +02:00
Andrea Gelmini
a5d3ee6b98 Fix typos
Change-Id: I50a80014addf5fb6a3974139249f45f6a2e67d92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92939
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2020-04-28 20:04:35 +02:00
Miklos Vajna
dd52fdba87 sw from-bottom relative orientation: add layout
The implementation is a combination of what "bottom" and "from-top"
already provided.

Change-Id: Id7bac8cbcccbadcca377fe9946a21ccb3e368913
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93086
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-04-28 19:26:17 +02:00
Xisco Fauli
781a1a8223 tdf#132305: sw: Add unittest
Change-Id: I32ad69404b4d6cd25ec887567bb4733a59f267da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93079
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-04-28 19:03:49 +02:00
Thorsten Behrens
e9e1b0f450 pdf export: be a bit less wasteful when jpeg-optimising bitmaps
Before, code was test-compressing every single bitmap coming along.
Let's buffer those SvMemStreams, and keep the last 15 around in
case the same image comes along again.

Change-Id: Ic8da32725ea46b01bd6beacc389abf8f52845d36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93058
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-04-28 18:50:21 +02:00
Rizal Muttaqin
8bd83405b0 Sifr: Fix for tdf32489: missing tiny DB actions icons
Change-Id: Ic9847d4d72b000f0ab9c906b91dc689a010aeead
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93068
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-04-28 17:45:55 +02:00
Andrea Gelmini
3fcdd122a9 Fix typo in code
ARGENTINIA->ARGENTINA

Change-Id: I711f775c1296779630e99e8cfc6db0262afa47ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92941
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-04-28 17:34:50 +02:00
Andrea Gelmini
3af0dfad72 Fix typo in code
Change-Id: I4f882e7eaedb5aea1353faaa7e0797b257816a8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92937
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-04-28 17:34:07 +02:00
Andrea Gelmini
f6b828275a tdf#124176: Use pragma once instead of include guards
Started to fix typo, eventually #pragma

Change-Id: If79b618db5fd50bc8220927ba1866259b203860d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92935
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-04-28 17:32:51 +02:00
Andrea Gelmini
42f1a71227 Fix typo in code
Change-Id: I857308750454f913be574547a9ac4e7437ddf3a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92936
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-04-28 17:32:10 +02:00
andreas kainz
7f10ae03e1 tdf#132138 Update Midnightblue impress template
Change-Id: I83469bfda9ee44ae10b483af56e5aa35187d1917
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93061
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-04-28 17:29:48 +02:00
Andrea Gelmini
d829d522d4 Fix typos
Change-Id: I94d7ce65aebd6b74f214362c466fda38c4808d9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92966
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-04-28 17:29:33 +02:00
andreas kainz
a30d7e2d7f tdf#132138 Update Inspiration impress template
Change-Id: I7873704beab3ebd232209f6df010e03579eab623
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93060
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-04-28 17:29:01 +02:00
Miklos Vajna
79107d3f8d sw from-bottom relative orientation: add UNO API
When it comes to vertical positioning of anchored sw objects, one can
say the position should be "1cm from the top of the page". But measuring
from the bottom of something was not possible.

Add API for this to help working with documents from Word, which
supports the feature.

There is no duplicated C++ enum in sw/ for vertical relative
orientation, so no "doc model" changes are needed for this in sw/.

Change-Id: I3199d3e794bda2f21f92ce3bb7c3c6f04d284db2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93065
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-04-28 17:24:38 +02:00
Pranam Lashkari
fbd8ea5375 remove macro tab for image dialog in online
Change-Id: I02de19e8048fd045a6ef6bdcc655c9911f0f9f01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92971
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-28 17:23:51 +02:00
Xisco Fauli
5750be8cf8 tdf#132282: Revert fix for tdf#131554
912217285b fixed the
root cause of tdf#131554 and
69b83dc2d3 is no longer needed
The unittest still passes

Change-Id: I7c723b0c3cc2b56022978bbeb8bf6b3f6f93f1c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93063
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-04-28 15:50:53 +02:00
andreas kainz
6b8ae0882b tdf#132138 Update Focus impress template
Change-Id: I4a8704b6b4dd15943357d47c71a1bedc15b98c42
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93057
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-04-28 15:23:28 +02:00
andreas kainz
dfd911348d tdf#132138 Update Impress impress theme
Change-Id: Ia396c9aa0cc57a239a4b19f65c3fa76b2e8ef4a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93055
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-04-28 15:23:12 +02:00
Stephan Bergmann
679163845b tdf#115399: Don't kill pre-existing typelib_TypeDescription members
...in typelib_typedescription_register, in case they are already being
referenced from elsewhere.  Instead, only move from *ppNewDescription to
pTDR->pType those members that were not yet initialized in the latter.

Change-Id: I7620219d137f8dd7f24a0f4a04eda30669b6c5a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93062
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-04-28 15:07:45 +02:00
Caolán McNamara
8e7b61c485 IsDropFormatSupported can be const
Change-Id: I8a1c1d862a998fb0bef912bea5b6b4dd058c127f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93059
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-04-28 14:34:10 +02:00
Miklos Vajna
9ee7a841d4 linguistic: make LngSvcMgr::GetAvailableGrammarSvcs_Impl() more readable
It's not exactly clear why, but as a side effect, this makes a crash in
uno::Reference::release() go away in the --enable-macosx-sandbox case.
But it helps readability as well, so why not.

The root cause is probabably either a compiler bug or the old code
depends on a longer lifetime of the temporaries involved in the function
call, but that's not clear to me.

Change-Id: I5f987129d3301d30ebf732757a4f1ba4bdbb8d52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93040
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-04-28 14:28:19 +02:00
Stephan Bergmann
3d62146241 Silence loplugin:cppunitassertequals when comparing pointer against nullptr
I need that for another upcoming commit.

Change-Id: If7e567c731e454070bf8ad9efb5c2f28ff9049e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93031
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-04-28 13:39:01 +02:00
Noel Grandin
1705fbe9da move the castToFastAttributeList function
to the slightly higher namespace, to make it easy and more readable to
use directly in a for-loop-range expression.

And make it return a reference rather than a pointer, since it is never
allowed to be nullptr.

Change-Id: I15d0b32493ef65cfc601b247c272b318f1eadfd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93049
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-28 13:25:27 +02:00
andreas kainz
dfa8e18e8e tdf#132138 Update Blueprint plans impress template
Change-Id: I2a215982cc4a295c837bb609edd7d533d594fae1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92972
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-04-28 13:01:35 +02:00
Noel Grandin
429ef3e94a loplugin:makeshared in slideshow
Change-Id: Ia8991a50afe1889a29456bac8f61c47ca969d23b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92998
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-28 12:07:01 +02:00
Eike Rathke
716655820d Resolves: tdf#127831 implement RAND.NV() and RANDBETWEEN.NV() non-volatile
Same as RAND() and RANDBETWEEN() but not recalculating on every
change, just the normal expression recalculation.

Change-Id: I8ba7099125e487a78bd3d91db8b666c2f36b22fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92994
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2020-04-28 11:26:38 +02:00
Noel Grandin
a02d059d3e loplugin:makeshared in cui
Change-Id: I018df0fc3ee6e07d48d9f30544e7aa8492a6ade0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92997
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-28 11:12:46 +02:00
Attila Bakos
2150fdc7d0 tdf#131539 DOCX export: fix position of OLE objects
Keeping position of OLE objects anchored to text
as a character.

Co-developer: Tibor Nagy (NISZ)
Change-Id: I9699250ae5c418f9994ea2a7a3b102681b042214
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91983
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-04-28 10:18:08 +02:00
Szabolcs
c431661ac7 tdf#131841 DOCX DrawingML shape import: Fixed missing HighlightColor
Implemented highlight color in grouped shapes. It was missing
completely.
Co-Author: Balázs Regényi

Change-Id: I51207d01a205fbb24abc51c0d69042d6747570a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91619
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-04-28 10:08:33 +02:00
Caolán McNamara
0bf3220b91 fix oss-fuzz build
Change-Id: I3ca1676f3f447d720aa9dea28572daff8cff8d87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92992
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-04-28 09:43:29 +02:00
Caolán McNamara
00e90218fd add a get_drop_index for dnd interaction with toolbars
Change-Id: I4c7c5cfa36d43a15509498dc4f28c10bf3fd7344
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92991
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-04-28 09:42:31 +02:00
Miklos Vajna
4ba1909f12 tdf#131729 sw: handle no drawing objects when calculating overlap of objects
Regression from commit d37096f59e
(Related: tdf#124600 sw anchored object allow overlap: add layout,
2019-09-19), we assumed that the anchor frame always has draw objects,
but that may not be the case.

That happens when dragging a to-character anchored object around, before
the object is added to its anchor.

Change-Id: I1271a6e498553838c3851864b7965a1ba28de663
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92989
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-04-28 09:03:18 +02:00
Stephan Bergmann
7cfc983f8f Fix printing rtl_uString*
...broken with ef513fd4b0 "remove unnecessary use
of OString::getStr"

Change-Id: I85f5ccb6c5114ea5e3eab43a3c1821292cf4e994
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92993
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-04-28 08:07:16 +02:00
Tünde Tóth
cbe6c4929c tdf#127811 tdf#127813 Introduce compatibility key for the data series
order of filled net and normal area charts.
The data series of filled net and normal area charts are drawn in
reversed order in LibreOffice but not in Microsoft Office.

Default value is true to keep current behavior.

Change-Id: I07adac814597b756878d74610d028f07327f7214
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/83897
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga991@gmail.com>
2020-04-28 08:02:59 +02:00
Pranam Lashkari
f94caa1ad4 resolved clashing of two ids
Multiple SvxFillAttrBox objects having the same ID 'fillattr' caused
the problem in online making it hard to distinguish for different function

Change-Id: Ic5a29ea75fb442d7e495761faf4a10d6ab212829
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92977
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-28 07:57:34 +02:00
Vasily Melenchuk
7459b9ecb5 tdf#116883: sw: support for lists level format string
Multilevel lists are more flexible in case of DOCX. There is
supported custom format for any level in DOCX unlike in LO
and ODT where we are limited only with prefix and suffix
for hardcoded list levels separated by dot. At the same time
DOCX can have lists not only "1.2.3.4", but "1/2/3/4" or even
"1!2>3)4" and such format can vary on each list level.

Here is basic implementation for list format as a core feature
for all documents and old way (prefix-suffix + ".") is left
as fallback.

Practically its usage is currently implemented only in DOCX
import/export.

Some RTF/OOXML unittests were redesigned: since we are not creating
prefix/suffix for these formats conditions should be checked in
a different way.

Change-Id: I1ec58bcc5874d4fa19aee6a1f42bf1671d853b14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92106
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-04-27 22:36:12 +02:00
Vasily Melenchuk
4ba179eb92 tdf#108496: DOCX: list overrides some cleanups
This is a follow up commit to cf13fe3e fix with some
mostly cosmetic changes. General idea of list overrides
is not modified.

Change-Id: I35937449bd563eacceb3753e62b9ff7245f12b89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92739
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-04-27 22:30:43 +02:00
Eike Rathke
4559ca1a9a Add the few functions without parameters as entries with Bounds
It doesn't really matter, but the assumption is that functions
without entries take at least one and only scalar value arguments.

Change-Id: I6a4cb882c86c50a0c63ddd5fc6a3b885fab32ea3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92990
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2020-04-27 21:49:16 +02:00
Noel Grandin
897be475c1 loplugin:unusedfields
Change-Id: I47034909e6258fc4d65d39f484d71290f793107d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92967
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-27 21:30:45 +02:00
Rizal Muttaqin
ce9caca8da elementary: fix for tdf#125779: object handlers are too faint
Change-Id: If1741e88178205aee9f46b0fa96ca29b61ac4d84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92970
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-04-27 20:56:13 +02:00
Andrea Gelmini
44ede0e8a7 Fix typo
Change-Id: I90152d94067c6ba0daa473fa069dddbc0988e306
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92644
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-04-27 20:31:22 +02:00
Miklos Vajna
6dfb8f480e solenv: handle copying empty directories in the installer
'make test-install -o build' fails without this when
--enable-macosx-sandbox is used. It is harmless in other cases.

Change-Id: Ic62a2c7729402cf45172ccc12fa83b46bee31e78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92985
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-04-27 19:29:43 +02:00
Justin Luth
561fe03e42 tdf#115896 doc import: recognize new version 2013
Now, I don't know for sure that E000 is from
Office 2013, since I don't know where the document
came from and I don't have 2013 readily available.
However, I tried round-tripping the unit
test in Office 2016 and it gave the version
number 0x2000.

Change-Id: Ib02f9440de34225affcb2ccbfd96ed89c717085e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92764
Tested-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2020-04-27 19:20:21 +02:00
Noel Grandin
030d5c2ad2 loplugin:makeshared in dbaccess
Change-Id: Idf5f6179771edaf7af85d95e10b092ce0e3344f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92969
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-27 18:31:21 +02:00