Commit graph

447877 commits

Author SHA1 Message Date
Samuel Mehrbrodt
35d3d6bb3b Add missing autogen.input entries to README.cross
Change-Id: I8bb100478d88136d55a9b076464489f5d66c2ad7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91052
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2020-03-25 16:25:14 +01:00
Jan Holesovsky
efff12770f pdfium: Test insertion of PDF into a document.
Change-Id: Ide2643349fbf5cdf79e68c2c504d1cd486c09d7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90996
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-25 15:56:55 +01:00
Caolán McNamara
5bb9086564 Resolves: tdf#131522 sync textview from edit when edit changes
Change-Id: I9a127f5066405225d35dd0590e84168b3bd86790
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91049
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-03-25 15:23:18 +01:00
Stephan Bergmann
eac806e8dc Properly quote $(NINJA)
At least on my Windows machine I had always had

  C:\Program Files (x86)\Ninja 1.7.1

in Path, so that `which ninja` in configure.ac puts

  export NINJA=/cygdrive/c/Program Files (x86)/Ninja 1.7.1/ninja

into config_host.mk, with spaces and parentheses that need to be quoted here.

Change-Id: I938f8914cbc9b7eff7a41009f12cd95abeb4421c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91042
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-25 14:52:05 +01:00
Stephan Bergmann
e90e3d7e9a ValueSet is still needed from the CppunitTest_svtools_dialogs_tests library
...at least in a Windows --enable-mergelibs `make screenshot` build

Change-Id: Id1168d5c0a4c417144a2d10a9ddc8ff1b33525f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91043
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-25 14:51:30 +01:00
Noel Grandin
39fa33d010 fix assert when loading id:000059,sig:11,src:000008,op:havoc,rep:2.lwp
one of caolans test files, which appears to have a row layout which
references a non-existent parent.

Change-Id: I9322ed430aa9edd47db9967a19938b02e4af6bc7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90475
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-03-25 14:36:42 +01:00
Caolán McNamara
cdd4f1cafe Defect type: IDENTIFIER_TYPO
identifier_typo: Using "Libreoffice" appears to be a typo:

"Libreoffice" is only known to be referenced here, or in copies of this code.

Identifier "LibreOffice" is referenced elsewhere at least 19 times.

Change-Id: I201bcc7e226dde52eed2c0281d2b9839a234af1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91033
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-03-25 14:34:07 +01:00
Luboš Luňák
208bb103d3 no reason for the FontAntiAliasing setting being UNX-only (tdf#107744)
This dates back to the ancient times where no revision control history
dares, so no idea why this was so, but it doesn't make sense, as
at least Windows can disable AA for fonts too. And if some platform
really wants to hide the setting, it should be enough just to hide
the UI element, no reason for '#if defined( UNX )' all over the place.

Change-Id: I76fc9ad157358321904573079ace5a3fe556f86a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91041
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-03-25 14:32:17 +01:00
Rizal Muttaqin
cf05c57941 Sukapura: Update many style icons
- Update Curve & Freeform icons
- Add larger Cell Styles icons
- Update Navigation Data icons
- Update Numeric Field icons
- Update to Curve & to Polygon icons
- etc

Change-Id: Iffa13ee13fac13ba5b95f14496efa5419154b1a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91028
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-03-25 14:21:41 +01:00
Rizal Muttaqin
e0ce7b5148 Sifr: :Fix for tdf#131509
Change italic in Spanish from C to K

Change-Id: I5b1da84983827a17565143bda984d7ae3b5e0518
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91040
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-03-25 14:21:30 +01:00
Dennis Francis
d90b0305e0 lokit: Mark document as modified on chart insert/edit...
immediately at least in the case when LOKit is active.
This is to allow prompt emission of .uno:ModifiedStatus=true statechange
message from lokit to the client. Without this, in online the chart
insert/modify related changes may not get saved on client exit.

Change-Id: I8c38a37cc455f74a70d43b6aaa3e5035b283d47f
(cherry picked from commit 75adb624dfff4659e6f3099a1720fbd697560f9c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91036
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
2020-03-25 14:17:17 +01:00
Stephan Bergmann
c2c09e9de7 Fix test for /usr/share/java/flute-1.3.0.jar
The old test was always true (as -f/usr/share/java/flute-1.3.0.jar is not the
null string), so in a --with-system-jfreereport build that did not explicitly
configure --with-flute=..., FLUTE_JAR was always set to
/usr/share/java/libxml-1.0.0.jar, even if that file does not exist (as e.g. on
Fedora, where e.g. flute-1.3.0-22.OOo31.fc32.noarch includes
/usr/share/java/flute.jar instead).

The only use of FLUTE_JAR is in gb_Jar__use_flute in RepositoryExternal.mk, and
the only use of that is in reportbuilder/Jar_reportbuilder.mk, but which seems
to not mind if the given jar doesn't exist?

Change-Id: Iea94ed34b4df61d2abed67b54bd4caa24ede7e80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91039
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-25 14:09:37 +01:00
Tomaž Vajngerl
74ebc6dcbc SdrGrafObj: don't check the primitive sequence for PDF to get metadata
For a PDF we create a BitmapPrimitive2D only, so it doesn't have
any metadata in the primitive sequence itself, but a call to the
getVectorGraphicData() method will render the PDF in order to
create the BitmapPrimitive2D. This is a problem when we have
multiple pages as we want them to be rendered on demand and not
right away on load.
This change short-circuits the gathering of metadata for PDF to
prevent unnecessary early rendering of PDF pages.

Change-Id: If5c286e88e72c4c0ba5083a98c7db707d207b6cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91034
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-03-25 13:41:59 +01:00
Luboš Luňák
d591a682e4 remove a dependency that doesn't make a sense
Change-Id: Idc88476213a01643f5ba6b8ea9fbee78673d7769
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91032
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-03-25 13:26:55 +01:00
Andrea Gelmini
fd75534be2 Fix typo
Change-Id: I959a8bcc133d5f54ce991dff490ef339698be58a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91025
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-03-25 10:55:33 +01:00
Andrea Gelmini
8713236683 Fix typo
Change-Id: I22dad8c614e04da2234746834fffa8365c71d713
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90226
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-03-25 10:54:24 +01:00
Stephan Bergmann
12235d3390 Missing dependency
Change-Id: I877364593025de65695995729a12294748c949ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91010
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-03-25 09:59:59 +01:00
Justin Luth
b2471b8ab6 tdf#106843 docxexport: don't write double docProtect
regression from LO 6.4
commit 2756ed9317

Change-Id: Iaf32974c7282d11bcd9572ed75cf1233ad3f0008
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90321
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-03-25 09:17:34 +01:00
Gabor Kelemen
d3e1ada454 Remove unused using declarations in oox...xmlsecurity
Found by:
run-clang-tidy-10 -checks=-*,misc-unused-using-decls

Change-Id: I3e95791e223ef01e140a6217e29a9efae428a784
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90876
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-03-25 09:13:27 +01:00
Miklos Vajna
e4f938f246 Remove some unused includes
Change-Id: I4897a6f2622e3e219f8b7b93d818d2edca03b117
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91008
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-03-25 09:12:23 +01:00
Stephan Bergmann
23245f723f external/nss: Fix rpath for Linux et al
See CustomTarget_postprocess/check_dynamic_objects (in a
--with-package-format=... build) failing after
8512f4ca09 "build nss using their new build system
(gyp/ninja-based)" with

> instdir/program/libsmime3.so has no RPATH
> instdir/program/libnssutil3.so has no RPATH
> instdir/program/libnssdbm3.so has no RPATH
> instdir/program/libfreeblpriv3.so has no RPATH
> instdir/program/libsqlite3.so has no RPATH
> instdir/program/libfreebl3.so has no RPATH
> instdir/program/libnssckbi.so has no RPATH
> instdir/program/libnss3.so has no RPATH
> instdir/program/libsoftokn3.so has no RPATH
> instdir/program/libssl3.so has no RPATH

workdir/UnpackedTarball/gyp/pylib/gyp/generator/ninja.py already has logic to
add -Wl,-rpath=$ORIGIN/... to certain link command lines, presumably for
building certain executables, but of which we apparently include none in
ExternalPackage_nss, so it shouldn't hurt to keep them using that other
-Wl,-rpath=$ORIGIN/...  I have no idea whether there would be a cleaner way than
this patch to pass an additional -Wl,-rpath=$ORIGIN to all link command lines
via the invocation of build.sh in ExternalProject_nss (even if those executables
mentioned in the previous sentence would then have two -Wl,-rpath=..., that
should not hurt in practice).

(Most, if not all of the rpath-related hunks of external/nss/nss.patch that were
needed for the make-based nss build on Linux et al prior to
8512f4ca09 can probably be removed in a follow-up
commit.)

Change-Id: I65eaf52efeb6feceb8540e0aedf340f9a9a18599
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91012
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-25 08:25:22 +01:00
Muhammet Kara
a504ed7892 Fixes to the Tip Of The Day messages from weblate feedback
Fixes suggested by SteenRønnow

Change-Id: I21e9ec2084baff3fb4cbbf9a3cadcf63662c1da6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91021
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-03-25 07:58:47 +01:00
Muhammet Kara
c10125b34d Remove extra space from the ToTD message
TOTD: Tip Of The Day

Fix suggested by vpanter on weblate instance

Change-Id: I545819bf7581b45776cdc07aa3731e2a69885082
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91015
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-03-25 01:15:41 +01:00
Muhammet Kara
af2567c45e Fix a tip of the day message
Reported by Tuomas Hietala on our weblate instance

Change-Id: I699fa4c231d4a4ad4f474fe72183f89104c1a532
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91014
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-03-25 01:15:14 +01:00
Rizal Muttaqin
d194171917 Sukapura:^ Color related icons & wrap icons,+Chapter Numbering icons
Change-Id: Iea7866df74ad2ea68c8d797f1fa75f384e1e2ac4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90999
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-03-24 22:57:33 +01:00
Jan-Marek Glogowski
642cdf2d83 tdf#131530 keep prepending footnote frame
Fix function name typo and actually prepend the footnote frame,
as the original code did. So much about "easy refactoring" :-(

Regression from commit 24caeee823
("Refactor a bit of the footnote handling code").

Change-Id: I227e30bc169fdfc237a5239d3ade6f035d85ca6e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91004
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2020-03-24 21:00:57 +01:00
Tor Lillqvist
7dcf08fe6f Accept iOS SDK 13.4
Change-Id: I7ef4acfd009c9e7fa0adf31a2f50f507b957bac9
2020-03-24 21:45:18 +02:00
Bartosz Kosiorek
adc7d311de tdf#131542 EMF+ Implement BeginContainer record
Change-Id: If388ef4544001fb9064aed3ce979c2790ab0645f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90997
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2020-03-24 20:37:52 +01:00
Caolán McNamara
c4dab726ca ofz#21168 sw,writerfilter: limit writerfilter hack to writerfilter
The problem is that at the end of WW8 import, a delete redline is
inserted that ends up calling DeleteAndJoin from inside
AppendRedline(). A fly is anchored AT_CHAR at (node 46, offset 0)
and the deletion goes from (node 46, offset 0) to
(node 48, offset 13) hence the special case check in
IsDestroyFrameAnchoredAtChar() for the IsInReading() prevents it
from being deleted, and then its anchor is still registered at the
node 46 when it gets deleted.

So try to restrict the WriterfilterHack to writerfilter, so it won't
affect WW8 import.

Unfortunately this is far less obvious than expected, because import can
happen for creating a new file, in which case it's all done via UNO in
writerfilter, or when inserting into an existing file, in which case
SwReader::Read() is used.

The SwDocShell's pMedium can't be used becuse in insert file case it
will be the loaded file, not the inserted file.

There isn't any obvious alternative to adding a silly UNO property for
the writerfilter to use.

Change-Id: Ia7fdc9bb1925202f6692ebee6e4b6b1fe50e5345
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90384
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-03-24 20:32:16 +01:00
Miklos Vajna
531863e28b vcl: fix startup of a sanitized soffice.bin
warn: sal.osl:19830:19830:sal/osl/unx/module.cxx:162: dlopen(instdir/program/libvclplug_genlo.so, 257): instdir/program/libvclplug_genlo.so: undefined symbol: _ZTI20FreetypeFontInstance

This was originally done in commit
781c4402f1 (make some classes
module-private, 2019-11-02), but it did not cause problems till
recently.

I guess this started to be a problem when the gen vcl plug started to
interact with freetype directly in the skia case.

Change-Id: I05ef0ff4446de32deccff6d7ee1fde991e5a0256
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90995
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-03-24 20:12:46 +01:00
Dennis Francis
f08bbb5648 lokit: unify fill transparency items
Online just listens to .uno:FillFloatTransparence but the set-item
in core it corresponds to, does not represent the fill-transparency
types like 'None' and 'Solid'. This is represented by another item
called XFillTransparencyItem. As a result the mobile wizard does not
show the correct transparency fill type always.
To solve this, this patch encodes the constant transparency percentage
in case of Solid and None(always 0%) as an intensity and stores this
info in the statechange message of .uno:FillFloatTransparence whenever
there is no gradient type and corrects the 'style' attribute of the
message appropriately.

More detailed information is provided as comments at appropriate
places in the patch.

Change-Id: I443ef4ce349badf28f6c2c702b1014868d9c6ed5
(cherry picked from commit 34969e9c04f9305d19826c72a29e38e26794cbe3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90986
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
2020-03-24 18:52:47 +01:00
Adolfo Jayme Barrientos
2176250581 Update git submodules
* Update helpcontent2 from branch 'master'
  to 81a863eb6fe5932e2161266dae6e7bfb4152a0c4
  - README: Add Weblate badge for helpcontent2 l10n
    
    Change-Id: Ieb89f42e51a04bfa73732a779a92b79a755bc644
2020-03-24 18:48:29 +01:00
Caolán McNamara
ff8d505bca sduilo-SdPageListControl doesn't exist anymore
Change-Id: I865ad6e7546b829306ee5c2a8648068ec4c151c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90980
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-03-24 18:23:05 +01:00
Stephan Bergmann
0b9a6cfc44 Set Boost baseline to 1.66, and enforce it
According to the mailing list thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2020-March/084722.html>
"Reasonable boost baseline?", 1.66 should cover --with-system-boost at least for
contemporary Debian, RHEL, and SUSE based distros.

And at least our AX_BOOST_BASE from m4/ax_boost_base.m4 by itself only issues a
AC_MSG_NOTICE if no appropriate Boost is found, so add an explicit AC_MSG_ERROR
to make configure fail in that case.

Change-Id: Ifdf6566af785f613c62f9c5a4b85cf80cec672c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90985
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-24 18:12:24 +01:00
Mike Kaganski
7b122710e8 Initialize buffer
Also assert that correct data type is passed to SbiStringPool::Add.

Change-Id: I774d983be82d702b31de1054d13661e1d0e9c1dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90983
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-03-24 18:06:23 +01:00
Stephan Bergmann
7de7512718 Revert "tdf#95425 follow-up: enable "Source format" checkbox of data label"
This reverts commit 9bf40c635c.

Reason for revert: This apparently causes builds to hang.  Witness all the six failed Jenkins builds for <https://gerrit.libreoffice.org/c/core/+/90079> as well as <https://ci.libreoffice.org/job/lo_tb_master_linux_dbg/29218/> and following.

Change-Id: I441e04cba0f1234cdc200a9aa714b166bda4ab89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90950
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: Jenkins
2020-03-24 16:10:42 +01:00
LibreOfficiant
9163755e9f Update git submodules
* Update helpcontent2 from branch 'master'
  to cf6f0df5ad826b72513b2f1c465518bfe723c72e
  - Fix to Property misleading snippet
    
    Change-Id: Ie96f829d21384a9adab81e9b007d0773c035b97c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/90948
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-03-24 13:25:27 +01:00
Jim Raykowski
4f70e274ee weld writer navigator expand and collapse all support
Makes expand and collapse all work from the outline context menu and
ctrl+* short cut for all vcl plugins

Change-Id: I6cec6f1b4dedfc62216028b24d09d7f402a387cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90973
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-03-24 12:30:29 +01:00
Michael Stahl
002d1152dc icu: add patch to fix CVE-2020-10531
Change-Id: I0aca4af1bd79f28bf1c920a4d05e80948106aaac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90971
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-03-24 11:30:27 +01:00
Balazs Varga
9bf40c635c tdf#95425 follow-up: enable "Source format" checkbox of data label
settings after file opening, if its value is true in the opened
ODF or OOXML document, instead of always showing disabled state.

Testing notes: double click on a data label during chart editing
to see the Data Labels for Data Series... window. On the page
"Data Labels...", click on the Number format... button to see
the checkbox "Source format".

Change-Id: Idb837d9492ad7e83b9020167c47ed52499c070a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90079
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-03-24 11:20:46 +01:00
LibreOfficiant
45435e2ac0 VBA Err object raise method TestCases
Err.Raise(#) enables 'User-Defined Exceptions' 

Std Basic alternative is: Error # 'without  parentheses
which throws pre-defined error codes. 

Change-Id: I76229b237066e33229d4d13e6742c660887fda2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85017
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-03-24 11:16:21 +01:00
Caolán McNamara
5a2c0ab297 weld writer navigator
GtkToggleToolButton are much wider than vcl equivalents.  Split the bottom
toolbar into two toolbars. Rearrange their contents so the layout of each level
visually match.

Notes:

Master documents have two modes, master content tree and the normal content
tree.

You can drag entries from the content tree into the document, drag mode drop
down controls whether its a link or a copy etc that's dropped in.

Documents can be dropped into the content and global trees.

If outline tracking isn't active, then when content changes the tree is cleared
and refilled, typically an effort is made to reselect the same entry that was
previously selected. Additionally, if the amount of content didn't change an
effort is made to scroll back to the location the scrollbar was at before the
clear.

Change-Id: I00c015145eac5b1acc3398d3c40861d830e4264a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89725
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-03-24 11:00:50 +01:00
Rizal Muttaqin
70b9775af7 Breeze, Colibre, elementary, Karasa Jaga :Fix for tdf#131509
Change italic in Spanish to K from C

Change-Id: Ie82625f8a605de67c036a76ce438de1e883203f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90966
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-03-24 10:42:01 +01:00
Andrea Gelmini
f07754b576 Removed duplicated includes
Change-Id: If00e89686210be5f76208a5e3ff366096f4ac9fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90927
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2020-03-24 10:20:56 +01:00
Tor Lillqvist
8a30ff491d Simplify the LibreOfficeKit mobile phone and tablet API
There is not need to ever change the kind of device a view is for, so
why bother with the bool parameter to setMobilePhone() and
setTablet(). Also, make sure just either of them is called, at most
once, for a view.

Change-Id: I9ac872f0ab4772e4a7c40c49f62b32fa7b1e47f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90968
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-24 10:10:04 +01:00
Caolán McNamara
288e02549b Resolves: tdf#131507 createCairoSurface returns nullptr on failure
Change-Id: I05190a6f280ebbe750dfda56ef27d3362222b95f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90940
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-03-24 09:58:02 +01:00
Andreas Heinisch
16b0bbb671 tdf#131296: get numeric value with its data type in StepLOADNC
In order to load numeric values, generate SbiOpcode::NUMBER_ opcodes
including the numeric value and its data type instead of SbiOpcode::CONST_.

The numeric value and its data type will be restored in
SbiRuntime::StepLOADNC. When the new compiled code is stored in documents,
e.g. password-protected libraries, leagcy LO versions will just read up to
non-numeric characters, thus correctly obtaining number value and ignoring
the type, so the change is backward-compatible.

To interpret legacy compiled code, old treatment of SbiRuntime::StepLOADI
is restored, reverting commit 0b4f8bf571.
This change reimplements the fix for tdf#129596.

Change-Id: I46ebfc77f9bea69479968950c0fb7264e4a7ab27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90858
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-03-24 09:30:38 +01:00
Andrea Gelmini
2846686272 Fix typo
Change-Id: I5a430d2e681b0c95476b4b59ca5281da6a05ee8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90924
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-03-24 09:25:14 +01:00
Andrea Gelmini
fbb0221e3d Fix typo
Change-Id: I6fd01def988cf0bb04569f80cad30b96fd868b81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90938
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-03-24 09:24:31 +01:00
Stephan Bergmann
5d56257d9e Clear SbxAppData::m_aGlobErr early
...before the destruction of the

  std::unique_ptr<SbxAppData> xSbxAppData;

member during the destruction of BasicDLLImpl can set that
BasicDLLImpl::xSbxAppData to null.  Because the destruction of
SbxAppData::m_aGlobErr may call into SbxValue::Put -> SbxBase::GetError ->
GetSbxData_Impl, which would recursively access that

  return *BasicDLLImpl::BASIC_DLL->xSbxAppData;

This causes problems with libc++ (i.e., on macOS), where ~std::unique_ptr sets
its internal pointer to null before calling the destructor of the pointed-to
object.  Whereas it happens to not cause problems with e.g. libstdc++, where
~std::unique_ptr calls the destructor of the pointed-to object first before
setting the pointer to null.

The problem showed up with <https://gerrit.libreoffice.org/c/core/+/85017/14>
"VBA Err object raise method TestCases", where CppunitTest_basic_macros kept
failing on macOS with

> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
>     frame #0: 0x00000001119f18e7 libsblo.dylib`SbxValue::Put(this=0x000000014c1cff00, rVal=0x00007ffeefbf1218) + 55 at basic/source/sbx/sbxvalue.cxx:414
>    411 	bool SbxValue::Put( const SbxValues& rVal )
>    412 	{
>    413 	    bool bRes = false;
> -> 414 	    ErrCode eOld = GetError();
>    415 	    if( eOld != ERRCODE_NONE )
>    416 	        ResetError();
>    417 	    if( !CanWrite() )
> Target 0: (cppunittester) stopped.
> (lldb) bt
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
>   * frame #0: 0x00000001119f18e7 libsblo.dylib`SbxValue::Put(this=0x000000014c1cff00, rVal=0x00007ffeefbf1218) + 55 at basic/source/sbx/sbxvalue.cxx:414
>     frame #1: 0x00000001119f2399 libsblo.dylib`SbxValue::Clear(this=0x000000014c1cff00) + 553 at basic/source/sbx/sbxvalue.cxx:176
>     frame #2: 0x00000001119f20d0 libsblo.dylib`SbxValue::~SbxValue(this=0x000000014c1cff00, vtt=0x0000000111a2af70) + 80 at basic/source/sbx/sbxvalue.cxx:139
>     frame #3: 0x00000001119f825d libsblo.dylib`SbxVariable::~SbxVariable(this=0x000000014c1cff00, vtt=0x0000000111a2af68) + 381 at basic/source/sbx/sbxvar.cxx:125
>     frame #4: 0x00000001119e619a libsblo.dylib`SbxProperty::~SbxProperty(this=0x000000014c1cff00, vtt=0x0000000111a2af60) + 42 at basic/source/sbx/sbxobj.cxx:861
>     frame #5: 0x000000011188ce81 libsblo.dylib`SbUnoProperty::~SbUnoProperty(this=0x000000014c1cff00, vtt=0x0000000111a2af58) + 97 at basic/source/classes/sbunoobj.cxx:2591
>     frame #6: 0x000000011188ceb3 libsblo.dylib`SbUnoProperty::~SbUnoProperty(this=0x000000014c1cff00) + 35 at basic/source/classes/sbunoobj.cxx:2591
>     frame #7: 0x000000011188cf0c libsblo.dylib`SbUnoProperty::~SbUnoProperty(this=0x000000014c1cff00) + 28 at basic/source/classes/sbunoobj.cxx:2591
>     frame #8: 0x000000011180c235 libsblo.dylib`SvRefBase::ReleaseRef(this=0x000000014c1cffa0) + 197 at include/tools/ref.hxx:163
>     frame #9: 0x000000011184fda7 libsblo.dylib`tools::SvRef<SbxVariable>::~SvRef(this=0x000000014c1d2490) + 55 at include/tools/ref.hxx:56
>     frame #10: 0x000000011184a545 libsblo.dylib`tools::SvRef<SbxVariable>::~SvRef(this=0x000000014c1d2490) + 21 at include/tools/ref.hxx:55
>     frame #11: 0x00000001119be5af libsblo.dylib`SbxVarEntry::~SbxVarEntry(this=0x000000014c1d2490) + 47 at basic/source/sbx/sbxarray.cxx:31
>     frame #12: 0x00000001119bc3d5 libsblo.dylib`SbxVarEntry::~SbxVarEntry(this=0x000000014c1d2490) + 21 at basic/source/sbx/sbxarray.cxx:31
>     frame #13: 0x00000001119bed29 libsblo.dylib`std::__1::allocator<SbxVarEntry>::destroy(this=0x000000014c1940a0, __p=0x000000014c1d2490) + 25 at c++/v1/memory:1931
>     frame #14: 0x00000001119becfd libsblo.dylib`void std::__1::allocator_traits<std::__1::allocator<SbxVarEntry> >::__destroy<SbxVarEntry>((null)=std::__1::true_type @ 0x00007ffeefbf1448, __a=0x000000014c1940a0, __p=0x000000014c1d2490) + 29 at c++/v1/memory:1793
>     frame #15: 0x00000001119beccd libsblo.dylib`void std::__1::allocator_traits<std::__1::allocator<SbxVarEntry> >::destroy<SbxVarEntry>(__a=0x000000014c1940a0, __p=0x000000014c1d2490) + 29 at c++/v1/memory:1630
>     frame #16: 0x00000001119bec7b libsblo.dylib`std::__1::__vector_base<SbxVarEntry, std::__1::allocator<SbxVarEntry> >::__destruct_at_end(this=0x000000014c194090, __new_last=0x000000014c1d2490) + 91 at c++/v1/vector:426
>     frame #17: 0x00000001119bebab libsblo.dylib`std::__1::__vector_base<SbxVarEntry, std::__1::allocator<SbxVarEntry> >::clear(this=0x000000014c194090) + 27 at c++/v1/vector:369
>     frame #18: 0x00000001119bea47 libsblo.dylib`std::__1::__vector_base<SbxVarEntry, std::__1::allocator<SbxVarEntry> >::~__vector_base(this=0x000000014c194090) + 39 at c++/v1/vector:463
>     frame #19: 0x00000001119be958 libsblo.dylib`std::__1::vector<SbxVarEntry, std::__1::allocator<SbxVarEntry> >::~vector(this=0x000000014c194090 size=3) + 40 at c++/v1/vector:555
>     frame #20: 0x00000001119bafa5 libsblo.dylib`std::__1::vector<SbxVarEntry, std::__1::allocator<SbxVarEntry> >::~vector(this=0x000000014c194090 size=3) + 21 at c++/v1/vector:550
>     frame #21: 0x00000001119bb457 libsblo.dylib`SbxArray::~SbxArray(this=0x000000014c194080, vtt=0x0000000111a385e8) + 71 at basic/source/sbx/sbxarray.cxx:75
>     frame #22: 0x00000001119bb4a3 libsblo.dylib`SbxArray::~SbxArray(this=0x000000014c194080) + 35 at basic/source/sbx/sbxarray.cxx:74
>     frame #23: 0x00000001119bb4fc libsblo.dylib`SbxArray::~SbxArray(this=0x000000014c194080) + 28 at basic/source/sbx/sbxarray.cxx:74
>     frame #24: 0x000000011180c235 libsblo.dylib`SvRefBase::ReleaseRef(this=0x000000014c194080) + 197 at include/tools/ref.hxx:163
>     frame #25: 0x000000011184dbd7 libsblo.dylib`tools::SvRef<SbxArray>::~SvRef(this=0x000000014c1cfe58) + 55 at include/tools/ref.hxx:56
>     frame #26: 0x000000011184cc25 libsblo.dylib`tools::SvRef<SbxArray>::~SvRef(this=0x000000014c1cfe58) + 21 at include/tools/ref.hxx:55
>     frame #27: 0x00000001119e0d10 libsblo.dylib`SbxObject::~SbxObject(this=0x000000014c1cfdd0, vtt=0x0000000111a37d18) + 288 at basic/source/sbx/sbxobj.cxx:111
>     frame #28: 0x000000011188b73d libsblo.dylib`SbUnoObject::~SbUnoObject(this=0x000000014c1cfdd0, vtt=0x0000000111a37d10) + 221 at basic/source/classes/sbunoobj.cxx:2387
>     frame #29: 0x0000000111990d51 libsblo.dylib`SbxErrObject::~SbxErrObject(this=0x000000014c1cfdd0, vtt=0x0000000111a37d08) + 113 at basic/source/classes/errobject.cxx:184
>     frame #30: 0x0000000111990d83 libsblo.dylib`SbxErrObject::~SbxErrObject(this=0x000000014c1cfdd0) + 35 at basic/source/classes/errobject.cxx:183
>     frame #31: 0x0000000111990dfc libsblo.dylib`SbxErrObject::~SbxErrObject(this=0x000000014c1cfdd0) + 28 at basic/source/classes/errobject.cxx:183
>     frame #32: 0x000000011180c235 libsblo.dylib`SvRefBase::ReleaseRef(this=0x000000014c1cfee8) + 197 at include/tools/ref.hxx:163
>     frame #33: 0x00000001119bcac6 libsblo.dylib`tools::SvRef<SbxVariable>::clear(this=0x0000000110e365a8) + 70 at include/tools/ref.hxx:64
>     frame #34: 0x00000001119ca764 libsblo.dylib`SbxAppData::~SbxAppData(this=0x0000000110e365a0) + 84 at basic/source/sbx/sbxbase.cxx:49
>     frame #35: 0x00000001119ca965 libsblo.dylib`SbxAppData::~SbxAppData(this=0x0000000110e365a0) + 21 at basic/source/sbx/sbxbase.cxx:45
>     frame #36: 0x000000011199272b libsblo.dylib`std::__1::default_delete<SbxAppData>::operator(this=0x0000000110e2cfb0, __ptr=0x0000000110e365a0)(SbxAppData*) const + 43 at c++/v1/memory:2363
>     frame #37: 0x00000001119926af libsblo.dylib`std::__1::unique_ptr<SbxAppData, std::__1::default_delete<SbxAppData> >::reset(this=0x0000000110e2cfb0, __p=0x0000000000000000) + 95 at c++/v1/memory:2618
>     frame #38: 0x0000000111992649 libsblo.dylib`std::__1::unique_ptr<SbxAppData, std::__1::default_delete<SbxAppData> >::~unique_ptr(this=0x0000000110e2cfb0) + 25 at c++/v1/memory:2572
>     frame #39: 0x0000000111992625 libsblo.dylib`std::__1::unique_ptr<SbxAppData, std::__1::default_delete<SbxAppData> >::~unique_ptr(this=0x0000000110e2cfb0) + 21 at c++/v1/memory:2572
>     frame #40: 0x00000001119925f5 libsblo.dylib`(anonymous namespace)::BasicDLLImpl::~BasicDLLImpl(this=0x0000000110e2cfa0) + 53 at basic/source/runtime/basrdll.cxx:33
>     frame #41: 0x0000000111992415 libsblo.dylib`(anonymous namespace)::BasicDLLImpl::~BasicDLLImpl(this=0x0000000110e2cfa0) + 21 at basic/source/runtime/basrdll.cxx:33
>     frame #42: 0x000000011199243c libsblo.dylib`(anonymous namespace)::BasicDLLImpl::~BasicDLLImpl(this=0x0000000110e2cfa0) + 28 at basic/source/runtime/basrdll.cxx:33
>     frame #43: 0x000000011180c235 libsblo.dylib`SvRefBase::ReleaseRef(this=0x0000000110e2cfa0) + 197 at include/tools/ref.hxx:163
>     frame #44: 0x0000000111992039 libsblo.dylib`tools::SvRef<SvRefBase>::clear(this=0x00007ffeefbf1bb0) + 57 at include/tools/ref.hxx:64
>     frame #45: 0x0000000111991f0b libsblo.dylib`BasicDLL::~BasicDLL(this=0x00007ffeefbf1bb0) + 123 at basic/source/runtime/basrdll.cxx:69
>     frame #46: 0x0000000111992055 libsblo.dylib`BasicDLL::~BasicDLL(this=0x00007ffeefbf1bb0) + 21 at basic/source/runtime/basrdll.cxx:66
>     frame #47: 0x0000000110f07a5a libtest_basic_macros.dylib`MacroSnippet::~MacroSnippet(this=0x00007ffeefbf1ba8) + 74 at basic/qa/cppunit/basictest.hxx:23
>     frame #48: 0x0000000110f07a05 libtest_basic_macros.dylib`MacroSnippet::~MacroSnippet(this=0x00007ffeefbf1ba8) + 21 at basic/qa/cppunit/basictest.hxx:23
>     frame #49: 0x0000000110f269b7 libtest_basic_macros.dylib`(anonymous namespace)::VBATest::testMiscVBAFunctions(this=0x0000000100651890) + 1319 at basic/qa/cppunit/test_vba.cxx:168
[...]

Change-Id: I776b7f0686e0915b69119b2e6a513e2a4b40822f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90967
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-24 09:18:39 +01:00