Commit graph

478022 commits

Author SHA1 Message Date
Stephan Bergmann
fe033eebec tdf#150427 Gracefully handle potentially unset logger
Change-Id: I237e3b5da042cbfa3fde1a02043ab69cc0711296
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138353
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-16 15:14:42 +02:00
Miklos Vajna
7ad44f3dd2 crashtesting: fix DOCX export of forum-mso-de-99522.docx
Export of this document to DOCX wrote not-well-formed XML output,
resulting in an assertion failure in debug builds.

writerfilter/ maps a selection of <w:sdt> tags to Writer content
controls (a safe subset), and leaves the rest unchanged, which means we
continue to map those to grab-bags. The trouble is that a combination of
content controls and grab-bags leads to bad output on export, as we
start the <w:sdt> element twice, but only close it once.

Fix the problem by extending writerfilter/ code to not do any grab-bags
for the richText type, we already did that in the past for dropDowns.

In the long run, we should never do grab-bagging for any <w:sdt>
elements that we map to Writer content controls.

Change-Id: I27a0b814efd667cc0477d8f492f7f956c938c854
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138351
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-08-16 15:06:13 +02:00
Mike Kaganski
0aa2b700aa No need to use throwing Reference ctor from 'this'
Change-Id: I1a9d69d101d3adede0455e94d4026e38131e6c77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138350
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-08-16 14:41:29 +02:00
Mike Kaganski
84fbb174d6 Drop redundant warning after throwing check
Change-Id: I1cc9ce6c415eb8aef9a250b3b5f342a425071b54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138349
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-08-16 14:41:18 +02:00
Julien Nabet
13971f0619 Related tdf#82087: hyphenation: allow 1 character at line begin
The default "Characters at line begin" value is still 2
in Paragraph Styles->Text Flow, but now it's possible to set 1, too.

See end of comment here:
https://bugs.documentfoundation.org/show_bug.cgi?id=82087#c22

Change-Id: Ib10e8a919715666214c7e4ac19f1506f111a6519
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137937
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-08-16 14:32:53 +02:00
xuenhua
d0ab89cd8b Update iOS SDK Current Version to 15.6
Change-Id: I2e6ec0a32b859cead16965284359115db0628f5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137277
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-08-16 14:13:02 +02:00
Caolán McNamara
707f8c1032 cid#1509215 Using a moved object
and

cid#1509294 Using a moved object

Change-Id: Ic4ef9bbc94d7b946d7d1904edf4b5b23278baafd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138348
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 13:58:45 +02:00
Caolán McNamara
bc91ece78e don't try and select position 0 of combobox if combobox is empty
Change-Id: Ie3e128228c3a2d7d17126e743e756d7d3320255c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138309
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 13:38:51 +02:00
Noel Grandin
28a3f31e8c pass SwNode and sal_Int32 to DelFlyInRange
instead of SwNodeIndex and SwContentIndex. Part of the process
of hiding the implementation of SwPosition.

And fix a missing SwPosition constructor.

Change-Id: Idc4d2675a53596e6f2ea53043dc7109b9c7bc2e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138317
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-16 13:28:10 +02:00
Michael Weghorn
a3f3453c00 qt a11y: Implement QtAccessibleWidget::indexOfChild
With this in place, selecting an object in Accerciser's
tree view of the LO a11y hierarchy and then calling
the method to get the child index returns the actual
child index instead of just 0, e.g.:

    In [24]: acc.getIndexInParent()
    Out[24]: 4

Change-Id: Ia3d4811226d6ffc82b86ed5a9abf3332b8b50b0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138347
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-08-16 13:13:46 +02:00
Caolán McNamara
2fbf1082cd cid#1500455 Dereference after null check
Change-Id: I2ef903eaf4df4fbd225d01e394ba11ffa43386e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138346
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 12:58:37 +02:00
Caolán McNamara
6b008de9e4 cid#1500410 Explicit null dereferenced
Change-Id: Idc4e3ca35a0f68ffe8c3b32053c9eea1c6426ff5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138344
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 12:46:59 +02:00
Caolán McNamara
a51c1df3c2 cid#1500395 Dereference after null check
Change-Id: I16b490849d2fa29295e6182e1bbe91836c5655bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138343
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 12:19:05 +02:00
Michael Weghorn
f29e3dbe01 qt a11y: Replace dynamic_cast with static_cast
The Qt doc on implementing accessible plugins [1]
says:

> Note that `object` will always be an instance of `classname`.

Therefore, `static_cast` can be used here to avoid the
cost of `dynamic_cast`.

[1] https://doc.qt.io/qt-6/accessible-qwidget.html#implementing-accessible-plugins

Change-Id: I57721c927808fa710b7d790c54d01bd899146a60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138341
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-08-16 11:43:44 +02:00
Caolán McNamara
da46f3db22 cid#1509285 Use of 32-bit time_t
Change-Id: I5aea4aaa6da8cd974234ab3f0c36212d436e11df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138332
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 09:52:55 +02:00
Noel Grandin
59785c0237 pass SwNode and sal_Int32 to delBookmarks
instead of SwNodeIndex and SwContentIndex. Part of the process
of hiding the implementation of SwPosition.

Change-Id: Ic70cbf9bd72f7544bcc24a2ebc2f588d5efd9231
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138316
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-16 09:51:56 +02:00
Caolán McNamara
4b1a57e075 tdf#94223 always visualize surrounding frame for active text object
Change-Id: I622582c188a32a5df27f3bb5d8382acc2afb089b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128025
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 09:49:59 +02:00
Caolán McNamara
034e8a14f6 ofz: Null-dereference-WRITE
took oss-fuzz about a picosecond to find a crasher, lets just use
sal_uInt32 here

Change-Id: I582377bc30de1c46dce9d3cd659a80237848ed73
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138325
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 09:49:35 +02:00
Caolán McNamara
5be419d91c fix "invalid cast from 'GtkImage' to 'GtkLabel'" warning
Change-Id: I7daa8d75151152c11ad4b1835101921006e2e62b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138326
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-16 09:49:17 +02:00
Arnaud VERSINI
3329bfe698 rtl : use a local std::mutex instead of the global mutex
Change-Id: I95a35fe451e459276dcb8c9b90d515d0a34fe36c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138318
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-16 09:25:31 +02:00
Noel Grandin
a20fa9bbbf unique_ptr->optional in DocumentFieldsManager::UpdateTableFields
Change-Id: I5b4595ea04d5e1a28007008b96a684defff744e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138322
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-16 09:11:34 +02:00
Noel Grandin
1920eb7843 improve SwContentIndexReg::Update...UpdateMode::Negative
the indexes in the linked list are stored in-order.
So
(a) there is no need to overwrite a value with the same value
and
(b) there is no need to walk the list backwards before going
forwards

Change-Id: I77d6b227c5c2eb8e70ce3975963ec2d1826d0246
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138321
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-16 09:11:16 +02:00
Tomaž Vajngerl
81a5f33101 chart2: always set text props. of the first paragraph and not cell
When setting the properties of the data table it is important to
differentiate when we set the properties of the text of the (first
and only) paragraph or set the properties for the current cell.

In this chage we refactor the code so that we always set the text
via UNO text::XText call for the current cell, and in the next step
get the XPropertySet of the first paragraph and set the properties
relevant for the text from the DataTable model.

Change-Id: Ibe82b21c3416083cfe8e86b95443d77984da05f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138330
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-16 08:16:27 +02:00
Tomaž Vajngerl
e0599e403b chart2: add "font effects" tab page to the data table dialog
Change-Id: I5530477dc86ba2174ba6e553dfe77f8fa355a863
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138329
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-16 08:16:13 +02:00
Tomaž Vajngerl
e4e5d77bcc chart2: render line legend symbols better in a data table
Change-Id: I556b4f249688a3836bbeeb3f554cb9ecf1d31f65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138301
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-16 08:15:56 +02:00
Tomaž Vajngerl
5dcfa8f375 chart2: fix rendering of table borders of row/column headers
The row/column headers didn't enable/disable the table borders
correctly when outline was enabled and horizontal and vertical
borders properties were disabled.

Change-Id: Ifcb059dd7d39890bbcaf55d3a68dce41eef586cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138300
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-16 08:15:33 +02:00
Tomaž Vajngerl
9d6ffcc057 chart2: Data table rendering of keys (legend symbols)
Change-Id: Iff13b188df18fe8f9919274869774f53f2ea323b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138299
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-16 08:15:00 +02:00
Miklos Vajna
777f1dbb96 pdfium: replace windows arm64 patch with a backport from upstream
No functional changes intended, just this way the patch can be dropped
trivially the next time we update pdfium.

Change-Id: I3259e98ddd20a51e109e860e1a3ab4c138597436
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138323
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-08-16 08:12:25 +02:00
Tomaž Vajngerl
fcf839cd4b chart2: Add undo/redo for the data table
Change-Id: I6b25a7a82957705481952bc3cd181a6d0c1fce0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138298
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-16 08:12:16 +02:00
Xisco Fauli
3dec8709c1 tdf#150151: sw: Add UItest
Change-Id: I59da074531d4545ea80096db2b00376b632eddbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138295
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-08-16 07:53:29 +02:00
Xisco Fauli
c1446da82b tdf#103492: vcl_pdfexport: Add unittest
Change-Id: I426ace3f1272b2cb5f40d627c9c701b903c3e632
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138272
Reviewed-by: خالد حسني <khaled@aliftype.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-08-16 00:26:28 +02:00
Tomaž Vajngerl
f448de22e0 correct the description of NumberingRules
duplicated text - "@see NumberingLevel"

Change-Id: I210c392dba738e65ed22b8c66e16a6bafb1c4265
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138261
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-15 22:43:48 +02:00
Miklos Vajna
251589c17c tdf#148289 sw clearing breaks: fix vertical layout
There were 3 problems here:

1) SwTextFly::GetMaxBottom() gets an already swapped frame, so going via
   the aRectFnSet abstraction is not correct, need to use Left() and
   similar functions directly.

2) SwTextCursor::AdjustBaseLine() centers portions in the vertical case,
   so a clearing break portion with larger height will push the other
   portions towards the left, and this is not wanted. Fix this by
   filtering out the (logic) height of the clearing break portions in
   the vertical case.

3) The fix for 2) has the side effect that the non-printable line break
   indicator character now has the wrong (logic) top position in
   SwBreakPortion::Paint(). Fix this by compensating for the offset done in
   AdjustBaseLine().

No functional changes intended for the horizontal layout.

Change-Id: I9ea27b4247944cbab8e96c5c5e2c8f82bbbd731c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138314
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-08-15 20:43:03 +02:00
Caolán McNamara
f3b0a95f9c fix "invalid class cast from 'OOoAtkObj' to 'GtkWidgetAccessible'"
and similar

Change-Id: I8a989465057a5b7810f6cedf370fc1cd77f5af0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138311
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-15 20:22:24 +02:00
Noel Grandin
077cbb5fae pass SwNode and sal_Int32 to deleteMarks
instead of SwNodeIndex and SwContentIndex. Part of the process
of hiding the implementation of SwPosition.

Change-Id: I290fbc14d738d1bbf5d3f613eae6d114fc7cda17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138271
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-15 16:54:05 +02:00
Caolán McNamara
895d6716ba Resolves: tdf#149858 embedded starmath not using correct initial zoom
since...

commit ea21b870f8
Date:   Mon Apr 19 15:22:22 2021 +0100

    weld SmGraphicWindow

where the outer Window is not directly drawn into any more

Change-Id: I70f45590f0fb7ff2f7af80da8873d580d219aca4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138297
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-15 15:09:30 +02:00
Samuel Mehrbrodt
8750c812c9 Fix mispositioning when only quickstarter is active
When positioning a dialog via external UNO connection,
and no LibreOffice window is visible (only quickstarter is running),
the window was mispositioned.

The ClientToScreen call changes the requested position, so skip that
for dialogs too.

Change-Id: I7656ec66b6aeccdc1fa306f5e05cf72b3cb87214
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138135
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2022-08-15 14:00:50 +02:00
Stephan Bergmann
5b5f6b147f external/nss: Fix -Wincompatible-function-pointer-types
...with recent Clang 16 trunk since
<af01f717c4>
"Default implicit function pointer conversions diagnostic to be an error",
causing

> ../../../pr/tests/testfile.c:126:41: error: incompatible function pointer types passing 'void (*)(void *)' to parameter of type 'void *(*)(void *)' [-Wincompatible-function-pointer-types]
>         if (!pthread_create(&tid, NULL, start, arg)) {
>                                         ^~~~~
> /usr/include/pthread.h:204:15: note: passing argument to parameter '__start_routine' here
>                            void *(*__start_routine) (void *),
>                                    ^

and

> ../../../pr/tests/testfile.c:576:31: error: incompatible function pointer types passing 'PRInt32 (void *)' (aka 'int (void *)') to parameter of type 'void (*)(void *)' [-Wincompatible-function-pointer-types]
>                               DirTest, &thrarg,
>                               ^~~~~~~
> ../../../pr/tests/testfile.c:93:36: note: passing argument to parameter 'start' here
>                             void (*start)(void *arg),
>                                    ^

Change-Id: I642e5ca69289993c86abafded65ac23a63fd837e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138267
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-15 13:38:14 +02:00
Thierry Emery
dbd104083d tdf#133299 Anchor pasted images 'to cell' by default
This is already the default when inserting images via menu,
do this also when pasting images from other applications
(currently it would anchor 'to page').

Change-Id: I5e1d010b026fc8eba2d3a7cca80ea96814a2ebe8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138005
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2022-08-15 13:17:04 +02:00
Tomaž Vajngerl
203eaefb4a xmloff: import and export for the chart data table
This change adds import and export code for the the chart's data
table properties to the ODF format for chart documents. The data
table properties are exported to a new element "data-table", which
then references a auto style with all the properties of a data
table + new data table specific properties: HBorder, VBorder,
Outline, Keys which are mapped to "show-horizontal-border",
"show-vertical-border", "show-outline" and "show-keys" chart
attributes.

Also adds a test for the import and export:
imports xlsx -> exports to ods -> imports ods

Change-Id: Id45d9369fd619959e4d6eba7ca51c8ddce9c8f56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138260
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-15 13:08:17 +02:00
Tomaž Vajngerl
5861af0da5 chart2: DataTable set properties to default to false
Change-Id: If8caf59629327b623b2630776b1e650cbe4fbed1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138259
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-15 13:08:04 +02:00
Tomaž Vajngerl
0c984c4dbe chart2: InsertDataTable and DeleteDataTable for context menu
Change-Id: I8ef0698252209af01b0741a59dec70f845f0c965
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138258
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-08-15 13:07:53 +02:00
Mark Hung
1bf82b26ae tdf#135991 fix unexpected hidden RTL sections.
SwLayoutFrame::MakeAll tried to manipulate the height instead of the
width for SwCellFrame and SwColumnFrame ( i.e. when IsNeghbourFrame()
is true. ), by selecting a wrong SwRectFn.

SwRectFn fnRect = bVert == IsNeighbourFrame() ? fnRectHori :
( IsVertLR() ? (IsVertLRBT() ? fnRectVertL2RB2T : fnRectVertL2R) : fnRectVert );

It doesn't make sense to select among fnRectVertL2RBT, fnRectVertL2R,
and fnRectVert if the layout is horizontal.
The frame position got a negative top value and make the frame invisble.

Check he following commit for reference:

commit c90b6806d1
Author: Andreas Martens <ama@openoffice.org>
Date:   Wed Sep 19 07:45:10 2001 +0000

    Chg: Moving vertical help functions from SwFrm to SwRect

Change-Id: I2f6da9cdbc2947de95a6fb9ce8fa94a79360c83a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138250
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-08-15 11:39:09 +02:00
Stephan Bergmann
ae7efecd24 external/lxml: Fix -Wincompatible-function-pointer-types
...with recent Clang 16 trunk since
<af01f717c4>
"Default implicit function pointer conversions diagnostic to be an error",
causing

> src/lxml/etree.c:175589:60: error: incompatible function pointer types passing 'void (void *, void *, xmlChar *)' (aka 'void (void *, void *, unsigned char *)') to parameter of type 'xmlHashScanner' (aka 'void (*)(void *, void *, const unsigned char *)') [-Wincompatible-function-pointer-types]
>   xmlHashScan(__pyx_v_self->__pyx_base._xpathCtxt->nsHash, __pyx_f_4lxml_5etree__registerExsltFunctionsForNamespaces, __pyx_v_self->__pyx_base._xpathCtxt);
>                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> workdir/UnpackedTarball/libxml2/include/libxml/hash.h:213:22: note: passing argument to parameter 'f' here
>                                          xmlHashScanner f,
>                                                         ^

Change-Id: I2a359ed0dfdfa83b49fb03f447967a6d0ff73989
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138266
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-15 11:17:41 +02:00
Stephan Bergmann
49f392feb9 external/cairo: Fix -Wincompatible-function-pointer-types
...with recent Clang 16 trunk since
<af01f717c4>
"Default implicit function pointer conversions diagnostic to be an error",
causing

> pixman-bits-image.c:1184:39: error: incompatible function pointer types passing 'const float (int, int)' to parameter of type 'dither_factor_t' (aka 'float (*)(int, int)') [-Wincompatible-function-pointer-types]
>         buffer = dither_apply_ordered (iter, dither_factor_blue_noise_64);
>                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> pixman-bits-image.c:1130:60: note: passing argument to parameter 'factor' here
> dither_apply_ordered (pixman_iter_t *iter, dither_factor_t factor)
>                                                            ^
> pixman-bits-image.c:1189:39: error: incompatible function pointer types passing 'const float (int, int)' to parameter of type 'dither_factor_t' (aka 'float (*)(int, int)') [-Wincompatible-function-pointer-types]
>         buffer = dither_apply_ordered (iter, dither_factor_bayer_8);
>                                              ^~~~~~~~~~~~~~~~~~~~~
> pixman-bits-image.c:1130:60: note: passing argument to parameter 'factor' here
> dither_apply_ordered (pixman_iter_t *iter, dither_factor_t factor)
>                                                            ^

Change-Id: I3e28280c9c25dfb7cee5155719a71655db00e344
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138265
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-15 11:17:16 +02:00
Michael Stahl
6f42a2c863 tdf#150382 writerfilter,sw: RTF import of paragraph border override
The style (default unnamed \s0, applied via \pard) defines green
borders, which are overridden at the 2nd paragraph and cleared.

Of course there isn't a single border control word to be found on the
2nd paragraph, the override happens by omitting the borders of the
implicitly applied style.

Hence handle LN_CT_PrBase_pBdr in getDefaultSPRM().

The export of the override relies on changes from commit
967a03eb8760fb498c5ea6c32d03d1eea486bbe2.

Change-Id: I081eb2908d76123e7828cab6c31ceb7b11760183
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138193
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-08-15 11:14:38 +02:00
Michael Stahl
f6a0ca0e92 tdf#149921 ucb: webdav-curl: WNT: certificate revocation check
- don't require it to be successful.

Trying to connect to a server with self-signed CA results in:

warn:ucb.ucp.webdav.curl:6796:6568:ucb/source/ucp/webdav-curl/CurlSession.cxx:946:
curl_easy_perform failed: (35) schannel: next InitializeSecurityContext failed:
Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.

Apparently schannel wants to check by default (called with
SCH_CRED_REVOCATION_CHECK_CHAIN) that all the certificates aren't
revoked, but the self-signed CA doesn't specify how to check.

Set it to only check revocation when the way to do so actually works,
via CURLSSLOPT_REVOKE_BEST_EFFORT, which sets these flags:
SCH_CRED_IGNORE_NO_REVOCATION_CHECK | SCH_CRED_IGNORE_REVOCATION_OFFLINE | SCH_CRED_REVOCATION_CHECK_CHAIN

Change-Id: I6d77ca23fe2012d8a5d65000b14775070b5c9a0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138204
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-08-15 10:34:27 +02:00
Noel Grandin
e83daa9ff1 pass content offset into FieldsToCalc instead of SwContentIndex
part of the process of hiding the internals of SwPosition

Change-Id: I76aee9e18f37f70648c181af0c2bbc4d4f2dfd2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138264
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-15 09:16:04 +02:00
Miklos Vajna
dd4d55b48c sw: prefix members of SwAddPrinterTabPage, SwCaptionOptPage, ...
... SwMarkPreview and SwParaDlg

See tdf#94879 for motivation.

Change-Id: I13d2961f46ebfd608176798be5a91ac0cd6c9d4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138263
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-08-15 09:07:19 +02:00
Andrea Gelmini
cb954e21aa Fix typo
Change-Id: I1bc4d4649fbf4d2cfe8e93bc3a4fca64804de6b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138241
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-08-15 08:40:47 +02:00