Commit graph

465206 commits

Author SHA1 Message Date
Luboš Luňák
5d051f443b build Skia also on Mac
This only builds the library, without using it.

Change-Id: I54e940bcaa61852b831dbe7ae5660a5daf5fe609
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119356
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-07-26 13:32:37 +02:00
Luboš Luňák
2fb06e18ae add gbuild support for ObjC/C++ sources from tarballs
Change-Id: I49632bf9dedf9603449fb5bc9e6a819586258b05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119355
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2021-07-26 13:32:16 +02:00
Noel Grandin
57ee7deddd UBSAN fix
after
    commit 28993c0a8d
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Sun Jul 25 15:05:51 2021 +0200
    use officecfg for drawing options

I had the IsAAPossibleOnThisSystem() check inverted, and I didn't quite
translate the existing IsAntiAliasing()/SetAntAliasing() logic correctly

Fixes CppunitTest_sc_jumbosheets_test failure noted at
    https://gerrit.libreoffice.org/c/core/+/119481/5#message-747bde6ad4bdcf90d2ff51e8daa03cb0189e6355

Change-Id: I5408da2e46f1f68646a74bd674b164ccfafdeb71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119495
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-26 12:49:48 +02:00
Rafael Lima
7458f19a25 Update git submodules
* Update helpcontent2 from branch 'master'
  to 1cd02ab17dec63054396dfddb675334f2963a533
  - Adapt SF_Array to the new method signature notation
    
    This patch updates the syntax and arguments in all methods according to the new notation used in other SF services. It also introduces the ImportFromCSVFile method to Python scripts.
    
    This patch also updates a few examples in Basic.
    
    Change-Id: Ib565f31ad13f5455ff1df260ec60cae5d8848cd9
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/119437
    Tested-by: Jenkins
    Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-07-26 11:48:14 +02:00
Miklos Vajna
1cca6ad35e sw: prefix members of SwXMLTableColContext_Impl, SwXMLTableColumn_Impl, ...
... SwXMLTableItemMapper_Impl and SwXMLTextImportHelper

See tdf#94879 for motivation.

Change-Id: Iddb5f25ba54b877be494f915ae0ae2eebc3abb3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119491
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-07-26 11:12:44 +02:00
Noel Grandin
6bb901a128 use officecfg for default options
Change-Id: I5241c21fa097c104f1131db61787191d019a5de4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119485
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-26 10:58:14 +02:00
Miklos Vajna
5e93753ca6 sw bibliography, local copy: add initial UI / browse button
The entry was working out of the box in the Define Bibliography Entry
dialog, add the matching browse button as a start.

Change-Id: I414079f0e52bd665a8e3fd8d1ef29f06847c6507
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119493
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-07-26 10:17:08 +02:00
Noel Grandin
4df9835813 simplify SvtDynamicMenuOptions
Change-Id: I8892b8a51fcecd84ea1fedcd71b6d1a2febabee1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119484
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-26 10:10:47 +02:00
Kevin Suo
2ee3d40764 sdext.pdfimport: Restore to read font file for the determination...
of font attributes, as suggested by Mike Kaganski in
https://gerrit.libreoffice.org/c/core/+/118977.

This partially reverts da59686672
but did some modification of the previous code with some
explanationary comments.

Change-Id: I224d9e717bf374a90f4834cbd9e11bf1138b41ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-26 08:28:20 +02:00
Noel Grandin
131759a3db use officecfg for menu options
Change-Id: I94c9cf310ed6975f158548913439445faf6d178f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119483
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-26 08:26:18 +02:00
Tomaž Vajngerl
6e155959de indexing: search result locator to return the rect of the result
Returns the rectangle(s) where the search result is located in the
document.

Change-Id: Ib2333584fbc460cc16b1bf205fc3d674a1c06957
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118668
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-07-26 05:55:58 +02:00
Tomaž Vajngerl
2a151d1d5b vcl: bitmap::CreateFromData add option to reverse alpha (0xff - a)
Change-Id: If69225f86afb315ad432789178188a66264ab3ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118669
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-07-26 01:53:09 +02:00
Stephan Bergmann
3f88c646a9 Avoid some division by zero
...as seen when running under UBSan `instdir/program/soffice --headless
--convert-to epub` of caolan/SIGSEGV-270412-142321-SIGSEGV-150412-121455-91.pptx
from the crash-testing corpus

Change-Id: I7ce0151689f90b8cba7cd86d053f327fdccc82d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119487
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-07-25 22:35:46 +02:00
Noel Grandin
134f40136a use officecfg to retrieve OdfDefaultVersion
Change-Id: Id54b98d978965e7ce304b83d5eff7d6c844a41d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119474
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 20:05:30 +02:00
Noel Grandin
28993c0a8d use officecfg for drawing options
Change-Id: Idba40d9816f29c0e4bc4a468b8c0a2cbb74d09d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119481
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 20:05:10 +02:00
Noel Grandin
2b71e0683c use officecfg to retrieve LoadUserSettings
Change-Id: I9680c02207ff2d21785a20061b784066ead07a8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119473
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 16:50:03 +02:00
Caolán McNamara
5d83e940f7 ofz#36481 Timeout
Change-Id: I0de9bf0a8b83af83ba31bdb75497e13ada4f7f4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119480
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-25 15:42:16 +02:00
Noel Grandin
60fc68e547 use officecfg to retrieve UseUserData
Change-Id: Ic77555520f2451b12c01423179d3f201daad35b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119472
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 15:31:25 +02:00
Caolán McNamara
1d2fb25e26 ofz#36537 Invalid-enum-value
Change-Id: I39b8350766b3585424a6d247392a30c834d01fa3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119479
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-25 14:29:18 +02:00
Noel Grandin
f4fc908d00 use officecfg to retrieve CreateBackup
Change-Id: I4aeb1224f0d42dadd5a69dd49b8df9ee2f776b04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119471
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 13:40:07 +02:00
Noel Grandin
293c1a629a use officecfg to retrieve LoadDocumentPrinter
Change-Id: Ie9c164fb9c95989035ef769d0dd539521400e38e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119463
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 12:56:18 +02:00
Noel Grandin
c05adac922 use officecfg for print options
Change-Id: I2a85d802b9edda638da467e273ad3d24cbf2bcf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119476
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 12:55:51 +02:00
Andrea Gelmini
67e47070a7 Fix typo
Change-Id: I3439e53db44ec8aade2df96375ac89379a3bea5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119285
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-07-25 10:57:02 +02:00
Noel Grandin
be683ad849 use officecfg to retrieve WarnAlienFormat
Change-Id: Id7ca2ffa237cb8fda58af60ee5d296f492c5a47e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119462
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 09:40:36 +02:00
Noel Grandin
9117fb44bc use officecfg for help options
Change-Id: I2d19541cff07bf8159715d8f32d771cbf201ece4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119475
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 09:06:38 +02:00
Noel Grandin
d5b9283985 use officecfg to retrieve AutoSaveTime
Change-Id: I003be64cc46d6e781ab03d83bae0a3114ab6d56e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119460
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 08:37:08 +02:00
Noel Grandin
84f4f7f99f simplify SvFontSubst
in the process, needed to expose some functionality in ConfigManager
and ConfigItem, to avoid repeating code

Change-Id: Ic0256a010070a79cd649dfd11267bec2f77e5221
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119470
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 08:23:54 +02:00
Noel Grandin
e192e1542a use officecfg to retrieve UserAutoSave
Change-Id: I11f45c43bed9ea9a380026d84a91f48629dffac7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119461
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-25 08:22:59 +02:00
Noel Grandin
6f07012a34 use officecfg to retrieve AutoSave
Change-Id: I613ca68123cfd316cd4e6384f743aa6756d9291d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119459
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 22:52:27 +02:00
Noel Grandin
d904a21d55 use officecfg to retrieve AutoSavePrompt
Change-Id: I918e31064064664df7364d7c3093d3cefdb4067a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119458
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 22:09:52 +02:00
Ilmari Lauhakangas
86aa626bb1 Update git submodules
* Update helpcontent2 from branch 'master'
  to 36052eea4f7977303088774c3299a7c721ca2608
  - tdf#95394 Help: Bitmap -> Image
    
    Change-Id: I6faefd33fe3cded67bae3a2b7d4dc7ef790271cf
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/119469
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-07-24 22:05:43 +02:00
Noel Grandin
966cc80a8f use officecfg to retrieve DocInfoSave
Change-Id: I0a9e8b21b0c5937567273155cd5b5f773fe26b8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119457
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 21:00:51 +02:00
Julien Nabet
d8beefc5d3 tdf#143528 Use triple backquotes+xml to markdown xml part in oox/README.md
Change-Id: Iee9fb4beb898f9c9fb7e95433b7aa5ff2b614742
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119468
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-07-24 20:09:27 +02:00
Andrea Gelmini
9d340a3210 Fix typo
Change-Id: Ia9f0965a26defed4d68cb4fdce82ca860d36bd29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119398
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-07-24 19:35:41 +02:00
Andrea Gelmini
5c3128f5e6 Fix typo
Change-Id: I3b564e59f980cb6011d6a6ab5ddd143ee2a28d27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119453
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-07-24 19:35:05 +02:00
Andrea Gelmini
dbffbafe12 Update git submodules
* Update helpcontent2 from branch 'master'
  to 65c742c487136afeb38c6d5352ba35a1d88194c4
  - Fix typo
    
    Change-Id: I6edfb252552d59aef329e071e41aa609b6339cc7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/119452
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-07-24 19:34:45 +02:00
Noel Grandin
8690061b7d use officecfg to retrieve SaveWorkingSet
Change-Id: I9f4e4c2caffa828670ddedb1c6fc324e28162b9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119456
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 19:32:09 +02:00
Noel Grandin
10277e2be5 use officecfg to retrieve SaveRelInet
Change-Id: Ife062fabdfc95253c71388ca9594b1530bc40783
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119455
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 18:04:26 +02:00
Huilin
c5dcf48789 tdf#143148: Use pragma once instead of include guards
Change-Id: I5ac5ac09474b9e05b17a9c5b191ab2808eca2660
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119431
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2021-07-24 17:13:54 +02:00
Ilmari Lauhakangas
20c2d7deaa tdf#95394 ToTD: Bitmap -> Image
Change-Id: Ifc0ae0719b30086febf9a203d70a55da837135f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119467
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2021-07-24 17:08:32 +02:00
Noel Grandin
095e3ac51e use officecfg to retrieve SaveRelFSys
Change-Id: If4e943153080e1c8fea02e712038dd6dee92c5a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119454
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 16:52:52 +02:00
Andrzej Hunt
4e511cc7df sdremote: remove useless comment
It's been there since the beginning, but doesn't help us much:
  e4239e0414 (Initial checkin of remote control., 2012-07-09)

Change-Id: I57425001cd0b9d0d035916405bd6d94329964b4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119466
Tested-by: Jenkins
Reviewed-by: Andrzej Hunt <andrzej@ahunt.org>
2021-07-24 16:05:19 +02:00
dante
2d9ca45e0e Addition of OpenSymbol2
Remaining lines have been uploaded via amend.
The other day was discussed in the IRC chat if OpenSymbol was actually removable. The actual problem with open symbol is that there are too many characters missing characters and it supposes a ballast for starmath.
This responds to: Bug tdf#134214
Some of the problems caused by this are WON'T FIX: mathhbb, fractur, setp tdf#49990 and much more.
However replacing the font was actually impossible. If changed the layouts old documents may break. For that reason the new font had to support what already was implemented in a way it won't change the layout: the old symbols had to be conservated.
Result: we are creating a new font, containing opensymbol just for personal use of starmath module.
For now the changes with opensymbol are:
  - Reencoded as ISO 10466-1 ( unicode32 full ) with fontforge.
  - Added quadruple integral with fontforge.
  - Do not use it outside starmath. Changes will be made in private chars area. IT MAY BREAK.
In order to complete it, characters from anothers fonts will be added. For now the best option is libertinus math. This font final name might end beeing something like LO Libertinus math.
I have already contacted the maintainer in order to get permission and waiting for answer. In case of no will look for other fonts.
The other option would be to make opensymbol2 a subproduct of libertinus because:

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

Change-Id: Ia33a0181b0d28b65680d8df9ffa3d0c37078df18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105769
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 15:21:11 +02:00
Noel Grandin
4e89b710c0 fix incorrect read-only check in save options
ever since
    commit 1417101095
    Date:   Sat Nov 26 17:00:43 2016 +0100
respect read-only config items in Options - Load/Save - General
dialog

Change-Id: Ib830fbee23a06e8788c9916f8d5a923139540e8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119465
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 15:18:34 +02:00
Noel Grandin
cde00e11db use officecfg to retrieve offlinehelppopup
Change-Id: I2441dc1c508ceb4805a98b7e45863bbda4af0b18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119415
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 13:17:39 +02:00
Noel Grandin
e271fce82e use officecfg to retrieve PrettyPrinting
Change-Id: Ia815acdb8050316293e23801d3ed5bfbeb3ab386
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119417
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-24 09:57:08 +02:00
Andrzej Hunt
2855f12072 sdremote: close BufferedStreamSocket on destruction
This follows the pattern in osl::Socket which also cleans up on
destruction if necessary.

By closing on destruction we can avoid leaking the underlying socket or
filedescriptor in the numerous scenarios where we throw away the socket
without bothering to call close(). This isn't a big deal in normal
usage - we don't use many sockets in the first place - but you can
quickly run out of filedescriptors when running sufficiently complex
tests.

We also need to make BufferedStreamSocket final to avoid triggering
loplugin:fragiledestructor - BufferedStreamSocket probably should
have been final anyway, so there's no reason not to do so.

Change-Id: I90c271df4b598a6c2b326fde13543e6b27d7a110
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119093
Tested-by: Jenkins
Reviewed-by: Andrzej Hunt <andrzej@ahunt.org>
2021-07-24 09:51:36 +02:00
Tomaž Vajngerl
77a192aa01 sw: define to constexpr, use MM50 from svx and use o3tl::convert
MM50 is a constant representing 0.5cm in twips. Use o3tl::convert
for to init the constant instead. It matches the constant which I
checked with a static_assert.

Change-Id: Ib6c37a44ef5b22258e913fd3809a37ab0d18671b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119396
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-07-24 07:10:31 +02:00
Julien Nabet
cb2827f5f6 Fix SvtHelpOptions_Impl::GetPropertyNames (svtools)
Regression from https://cgit.freedesktop.org/libreoffice/core/commit/?id=ba4f191300779cbd9e536d11c02895541fef24be
use officecfg to retrieve help system

Change-Id: Id42c5ee06d2231dc690a4f6f81eecddb0b1a2073
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119429
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2021-07-23 23:49:30 +02:00
Noel Grandin
04389e2e55 use officecfg to retrieve SaveDocView
Change-Id: I1a758137000359d2448f8c5877d7b2e75f3869b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119416
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-23 22:19:09 +02:00