Commit graph

496979 commits

Author SHA1 Message Date
Hossein
1305edfbc2 tdf#149256 Ship LibreOfficeKit headers in packages
With LibreOfficeKit (LOK) headers in place, it would be possible to
create C++ applications that can access LibreOffice functionality
without building LibreOffice, only by installing SDK and build tools.

Change-Id: I8efc8ac1cec7b3b89e4d7eb2c8d15afeb595672c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134863
Tested-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-06-23 19:57:30 +02:00
Olivier Hallot
ecb0d08e3c Update git submodules
* Update helpcontent2 from branch 'master'
  to 9acd72cd9faa94ec85826293f1e95da3e6175d35
  - tdf#159596 tdf#159771 Update XMATCH and XLOOKUP pages
    
    + Added 3 as matchtype
    + removed reference for "search-criteria-must-apply-to-whole-cell"
    + set that matchtype 2 and 3 cannot be combined with binary search.
    
    Change-Id: I1fd2171aa92fb0a2df1c9ee85a1fb5f7f755efdb
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/169334
    Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-06-23 09:20:17 +02:00
Bogdan Buzea
4420d77a50 Resave with newer Glade version
Change-Id: Ia9330a82d3dd6796cb613e6244c3149de872a852
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169372
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-06-23 08:17:42 +02:00
Bogdan Buzea
547167a27c Resave with newer Glade version
Change-Id: Ib3b198c2030b86cdd2cc9558407feefdde0b40dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169374
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-06-23 08:17:06 +02:00
Bogdan Buzea
4bba6c0ef4 Resave with newer Glade version
Change-Id: I1edfac23ae17ffcdf8959265bce51322a34c4f24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169373
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2024-06-23 08:16:36 +02:00
Bogdan Buzea
cb2dffae80 Resave with newer Glade version
Change-Id: I6de6bacbdccd83b08e5e0b41adef23efd51d80dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169371
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2024-06-23 08:15:51 +02:00
Bogdan Buzea
6daffa1d9c Resave with newer Glade version
Change-Id: I3b06e8341b71d816df2cfa1f4343d48d4156cfbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169370
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-06-23 08:04:04 +02:00
Bogdan Buzea
25287c44b6 Resave with newer Glade version
Change-Id: Ibebe4caede19886e47a9ebbbcaf53c79df8511cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169369
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-06-23 08:01:05 +02:00
Tibor Nagy
513c2bdbb1 tdf#157529 PPTX import: fix transparency value
if the paragraph, which uses transformation (Arch, Circle, etc.),
contains multiple texts and the first text is only a space character,
then we use the transparency value of the following text.

Change-Id: Ia87242e34b495802cbecf5dc0dd13d490312f435
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169351
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Tested-by: Jenkins
2024-06-22 21:08:52 +02:00
Rafael Lima
c3e80cbaaa tdf#161658 Limit new selection overlay to Calc only
Previous patches [1] and [2] introduced a contrast white line to the selection overlay that was supposed to affect only Calc, but it ended up affecting other areas of LO, such as the star math editor as well as Writer.

This patch makes sure the changes only affect cell selection in Calc.

[1] dc243f0122
[2] 3c0db89809

Change-Id: Ie910120e4b71c55ad8c00a905e1204e291a711f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169292
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
Tested-by: Jenkins
2024-06-22 14:38:54 +02:00
Noel Grandin
40e0885130 fix O(n^2) behaviour when fetching field info from EditEngine
Change-Id: I324a1814fc1b3321eed5b29922790600e7092c17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169344
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-22 14:00:49 +02:00
Noel Grandin
858bc4d76b no need to call FormatDoc() after calling CheckIdleFormatter()
CheckIdleFormatter() already does that

Change-Id: Ie6b9e3285303899e3f67cccb0fc5f5625c8db684
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169343
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-22 14:00:41 +02:00
Justin Luth
b7fce2b26e NFC sw textfld.cxx: make rDoc an actual reference
Change-Id: I84d65e80f27cdc2cbfc4f56c89e5a391e0fd9e1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169350
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2024-06-22 03:26:18 +02:00
RMZeroFour
4031659233 .NET Bindings: Switch for old windows CLI bindings
This commit adds an --enable-cli/--disable-cli switch to autoconf to
control generation of the old CLI bindings (Windows only). It is
enabled by default, to not be a breaking change to users just yet.
Over time, when the old bindings are deprecated in favor of the new
.NET bindings, it could be set to disabled by default.

Change-Id: Ib60b372459cb0c735275ed17d004d037279357eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168751
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-06-22 00:11:16 +02:00
Michael Weghorn
89372e6245 tdf#149461 qt5: Provide a QWindow for OpenGL rendering on X11
When using the qt5 or kf5 VCL plugins on X11/XWayland
(as can be forced using QT_QPA_PLUGIN=xcb on Wayland),
ensure that a QWindow exists for the QtObjectWidget
created in the QtObject ctor, as that is needed for
OpenGL rendering.

This makes OpenGL Impress slide transitions like the
"Tiles" one work.

Don't force native windows on Wayland, as that causes
other issues, see also QtFrame::ResolveWindowHandle
and the bugs referenced in there.

Change-Id: I8fac34d2f1cc7cc723ad4570546276a05641dd88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169348
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-06-21 23:19:09 +02:00
Michael Weghorn
b296b33cfb tdf#149461 qt6: Provide a QWindow for OpenGL rendering
As described at [1], "QWindow supports rendering using
OpenGL [...]".

Using a QWindow for OpenGL rendering had been introduced
in

    commit 56b19f9a81
    Date:   Fri Dec 14 12:44:20 2018 +0300

        tdf#121247, tdf#121266 KDE5: Add basic support for OpenGL

, but then

    commit 4366e06052
    Date:   Tue May 24 11:34:59 2022 +0200

        tdf#148864 Qt switch QtObjectWindow to QWidget

had switched from QWindow to QWidget, and OpenGL slide
transitions like the "Tiles" one stopped working.

At least for qt6, which now uses QtMultimedia for video
playback (see the tdf#145735 commits), issues like tdf#148864
("Kubuntu 22.04 LTS LibreOffice Impress 7.3.3 Fails to Play Embedded
 Videos") and tdf#125517 ("LO Impress: Can't stop presentation
with video and go to the next slide") related to video playback
appear to be no problem, so switch back to using QWindow there.

Explicitly set the window background to transparent
in `QtOpenGLContext::ImplInit`, as not doing so
caused slide content in presentation mode to not
be updated properly when testing with the attachment 183972
from tdf#149461 on Wayland.
(This was not an issue when running on XWayland, i.e.
with QT_QPA_PLATFORM=xcb).

With this in place, OpenGL transitions work with qt6.
With QT_QPA_PLATFORM=xcb, it looks all fine in my tests
on Debian testing.

With QT_QPA_PLATFORM=wayland, the slide text from attachment 183972
sometimes incorrectly showed up for a fraction of a second after
the slide transition finished, then disappeared again until
it was triggered to show as it should (e.g. by pressing the right
arrow key), s. screencast attachment 194899 in tdf#149461.
A multitude of warnings like the following are shown on stderr
in that case, which don't show up for xcb:

    warn:vcl.opengl:47352:47352:vcl/source/opengl/OpenGLHelper.cxx:709: GL Error 0506 (invalid framebuffer operation) in file /home/michi/development/git/libreoffice/slideshow/source/engine/opengl/TransitionImpl.cxx at line 398

That looks like a separate issue to me, however which would
need further analysis.

Keep using the QtObjectWindow approach for qt5 to
not regress on video playback.

[1] https://doc.qt.io/qt-5/qtgui-index.html#opengl-and-opengl-es-integration

Change-Id: I6e1eb989254e2cbbfada6f719ee0518571df4c42
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169347
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-21 23:19:02 +02:00
Michael Weghorn
22270a54a2 tdf#149461 qt: Move setting layout to QtObject ctor
Move setting the layout for the QtObjectWidget
from the QtObjectWidget ctor to the QtObject ctor,
in preparation to also use that for QWidgets other
than the QtObjectWidget.

Change-Id: Ifbb0d853659bc8099bed40db2bbe8a8778077aa2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169346
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-21 23:18:52 +02:00
Noel Grandin
6e3cefc89e move ensureDocumentFormatted from EditEngine to ImpEditEngine
so we have the implementation in one class, instead of bouncing
back and forth between two.

Change-Id: I851578ff553b01fb7d48cf5aa8f7a2d795496751
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169340
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-21 20:51:41 +02:00
Theppitak Karoonboonyanan
76c96ca7c9 tdf#158454 Add Thai Autocorrect Support, coding part
SvxAutoCorrDoc::ChgAutoCorrWord() implementations: correct multiple patterns

* include/editeng/svxacorr.hxx, editeng/source/misc/svxacorr.cxx:
  - Add classes SvxAutocorrWordList::{Iterator,WordSearchStatus}.
  - Make SvxAutocorrWordList::SearchWordsInList() return WordSearchStatus
    so the search can be continued with the added
    SvxAutocorrWordList::SearchWordsNext() method.
  - Make SvxAutoCorrect::SearchWordsInList(), and its lcl_SearchWordsInList()
    companion, return WordSearchStatus propagated from
    SvxAutocorrWordList::SearchWordsInList().
  - SvxAutocorrWordList::WordMatches():
      The existing mechanism of preventing collision of patterns like in
    tdf#83037 (→ and ← and ↔ autocorrect collisions) was by storing
    the matched string of wildcard pattern back to the list without
    overwriting existing one. If the matched string was found in the list,
    it would just be treated as no matching.
      While this worked well for collision prevention, it caused failure
    on the new exhaustive wildcard pattern visiting method when autocorrecting
    the second text chunk with the same content. In such situation,
    all intermediate stages of corrections of the first text chunk would be
    recorded into the list. And, in the second chunk, the first stage would
    just be applied from the recorded pattern, but all the next stages
    would be refused due to the "collision" with the recorded patterns.
    Moreover, the new method would cause the list to grow more quickly
    as the autocorrections are done.
      To solve the problem, just "peek" for the collision instead of
    actually storing it. And SvxAutocorrWordList::ContainsPattern()
    is added for this purpose.
* editeng/qa/unit/core-test.cxx:
  - Modify TestAutoCorrDoc::ChgAutoCorrWord() to iterate through all patterns,
    instead of finishing at the first one.
* editeng/source/editeng/edtspell.cxx:
  - Ditto for EdtAutoCorrDoc::ChgAutoCorrWord().
* sw/source/core/edit/acorrect.cxx:
  - Ditto for SwAutoCorrDoc::ChgAutoCorrWord().
  - SwAutoCorrDoc::ChgAutoCorrWord(): Remove old dead code for autocorrection
    on text with redlines.
* sw/qa/extras/uiwriter/uiwriter6.cxx,
  +sw/qa/extras/uiwriter/data/tdf158454.odt:
  - Add unit test "testTdf158454".

Change-Id: I8fb4a628a977b79b0ed2f239fd3749f15823b5df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160160
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-06-21 20:34:22 +02:00
Xisco Fauli
a820696263 tdf#161631: sw_ooxmlexport21: Add unittest
Change-Id: I1496b82e67c5f408bd682b4998e3afaf74c37318
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169339
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-21 19:37:49 +02:00
Jim Raykowski
c5bbbe9873 tdf#161537 fix Filter Navigator no longer shows the name of the field
Change-Id: I3dae3458ac5795b217743b1e6897345a22f1bf61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169310
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Tested-by: Jenkins
2024-06-21 18:29:40 +02:00
Jim Raykowski
28438a5b1f Resave with newer Glade version
Change-Id: I2b3adc322b4dc928069f306ccb673fa23fba70a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169309
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2024-06-21 18:27:52 +02:00
Noel Grandin
7b807a6b79 tdf#161086 bitmap location wrong with SVG with an embedded PNG
we need to transform the location of the wallpaper rect to match where
we want the wallpaper to start tiling from.

regression from
    commit 3cbe3a0259
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Mon Jun 14 15:05:59 2021 +0200
    tdf#101083 speed up SVG rendering with pattern fill

Change-Id: I624edd63135875fdc9526015f0f5642d5c694934
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169332
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-21 18:25:10 +02:00
Michael Stahl
f91effb36b libcmis,ucb: get more informative error messages for CMIS UCP
Currently it reports pretty much everything as
"The specified device is invalid."
but clearly we can do better.

Try not to change the public API of libcmis too much; it has 2 string
members in libcmis::Exception, add a bunch more type values such as
"dnsFailed", "connectFailed", "connectTimeout", "transferFailed".

Also there were 2 HttpSession functions that convert libcmis::Exception
to CurlException - very odd, was apparently done to appease Coverity,
but the exception specifications that caused Coverity to complain were
removed from libcmis anyway; let's remove that, every caller of these
functions i looked at would immediately convert it back to
libcmis::Exception anyway.

Change-Id: Iee853af8bb541e6b071b75d593b6c031f67a886d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169335
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-06-21 17:56:37 +02:00
Jonathan Clark
c7f1e41ca6 tdf#107209 Writer correct vertical text break after fly portions
This change fixes an issue causing Writer to corrupt layout for vertical
text following a fly-out. This bug manifested as overlapping or
incorrectly-reordered lines of text, sometimes appearing many pages
after the initial fly-out.

Change-Id: I05abdbf3ff122398b995220ec4e410434931fdf9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169307
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2024-06-21 17:54:28 +02:00
Miklos Vajna
4499e12361 sw doc model xml dump: show parent of para styles
At some stage needs an SwFormat::dumpAsXml() but that's not yet done
here.

Change-Id: I10d2e0f653fc6d0e351bc0aa17f98de8f01766fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169337
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-06-21 17:28:41 +02:00
Balazs Varga
a3bcf0840d tdf#159907 - A11Y - Fix highlighted text does not show its attributes
in the Style inspector.

Set the cursor at the end of the highlighted text.

Change-Id: I68af50d5bcf91c3cfe603aeef9e88c088b391590
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169259
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2024-06-21 17:23:17 +02:00
Noel Grandin
60e8446323 tsan: fix data race in VCLXWindowImpl
Change-Id: I68894dabdaa22ac3733d08ae85df5c82e3b9654c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169333
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-21 16:45:21 +02:00
Zainab Abbasi
b00183ebb2 tdf#158237 Use C++20 contains() instead of find() and end()
Change-Id: I9ebe5e8c966a21b99a5229a4418738e4178716a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169312
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-06-21 16:42:11 +02:00
Mike Kaganski
bbd32b39ea LOK: Introduce LOK_CALLBACK_STATUS_UPDATE
This allows to send status messages separately from statechanged;
this is needed in Impress to notify about any mode update, not only
masterview-related.

Also send SlideMasterPage updates automatically from core.

Change-Id: I0a50dbe61a5f2f28cd418eb4416819a6a76810b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169314
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-06-21 15:46:17 +02:00
Mike Kaganski
319e62915b LOK: differentiate page kinds in sd::ViewShellBase::setEditMode
A follow-up to commit 4ff2e148fa (LOK:
differentiate page kinds in sd::ViewShellBase::getEditMode, 2024-06-16).

Change-Id: Ib982c9ee45ca71445f09d56f9165bc33b43e8540
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169313
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-06-21 15:10:38 +02:00
Xisco Fauli
5a7283a0eb libgpg-error: upgrade to 1.50
Add external/libgpg-error/undeclared-environ-macOS.patch
from a59e902b88
to fix

spawn-posix.c:345:5: error: use of undeclared identifier 'environ'
    environ = act->environ;
    ^
1 error generated.

on macOS.

Downloaded from https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.50.tar.bz2

Change-Id: Ica3a181626429da39651c29482326134ba25d556
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169200
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-21 12:24:16 +02:00
Michael Stahl
d2d973950b libcmis: improve Sharepoint authentication
Sharepoint 16 apparently won't authenticate with NTLM unless the header
"X-FORMS_BASED_AUTH_ACCEPTED: f" is sent.

Change-Id: I13fe658a1fc5a18c22a49488dd634cbc07607aef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169306
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2024-06-21 11:36:33 +02:00
Michael Stahl
b02eb998c1 uui,ucb: webdav-curl: display curl error message on connection failure
Show this in the dialog, which requires extending DAVException to store
2 strings for this case.

Store it in the Exception::Message member of
InteractiveNetworkConnectException, which appears to be unused.

Add another UI string ERRCODE_INET_CONNECT_MSG so that the text can be
shown optionally in the dialog.

Change-Id: Iaf139d77051e7480113eb4df82ef40eb498f329e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169278
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2024-06-21 11:35:51 +02:00
Stephan Bergmann
eedbe966bb Embind: Fix C++ UNO exception catching
...with a new Module.catchUnoException JS function that can be used in a JS
catch block to provide the thrown UNO exception as an Any.  (For a non-C++
exception, it rethrows the exception, and for a non-UNO C++ exception it maps it
to css.uno.RuntimeException.)

The implementation reuses parts of bridges/source/cpp_uno/gcc3_wasm/, which have
been moved to a new StaticLibrary_emscriptencxxabi.

Change-Id: I708fe6121c43a1b9736de5dff449f6c4f32a45f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169325
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-06-21 11:29:59 +02:00
Michael Weghorn
54f7308641 tdf#161648 sc a11y: Set a11y names for items in border style control
Set accessible names for the items in the "Borders"
control in the Calc Sidebar, "Properties" deck, section
"Cell Appearance". Use the same text as is used for the tooltip.

With this in place, Orca now announces what each item
is about when using the gtk3 VCL plugin, instead of just saying
"Button".

Move the gla11y suppressions to the .false file, as they
have been dealt with now, see doc at [1].

[1] https://wiki.documentfoundation.org/Development/Accessibility

Change-Id: Id1856e4b116acad9bf6d14132bc6d9c91a01ae06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169321
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-21 11:17:24 +02:00
Michael Weghorn
ad3b33d01b tdf#161648 vcl a11y: Add weld::Toolbar::set_item_accessible_name
Add API to set the accessible name of toolbar items
and implement it for the VCL, gtk3 and gtk4 implementations.

This will be used in an upcoming commit to set a11y names
for the border items in Calc's sidebar.

Change-Id: I958390d8736da8f1281f91586cacbefb5975e229
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169320
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-21 11:17:17 +02:00
Miklos Vajna
0f165b7f2f tdf#161708 sw content controls: handle font color when exporting to PDF form
Export the bugdoc to PDF, the orange "date" lost its font color.

This went wrong in commit 82d90529dc (sw
content controls, rich text: add initial PDF export, 2022-09-12), we
export the content control as a PDF form widget by default since then.
Various properties like checkbox status and dropdown items were handled
already, but not text color.

Fix the problem by mapping the SwFont color to the widget descriptor
color, this fixes the color of the already filled in content of the
widget.

Note that given this is a property of the form widget, the color is
correctly applied also to strings filled in via PDF readers, interacting
with the form.

Change-Id: Id3e8611e415c0d571afe1cd14561c97b8a910ce9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169317
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-06-21 10:23:33 +02:00
Balazs Varga
17d578ba91 Related: tdf#127293 Add new Match_mode option for XLOOKUP and
XMATCH functions.

Introduce a value "3" for parameter Match_mode for Regular Expression mode
in XMATCH and XLOOKUP, to seperate the original Match_mode value "2",
which was used for both, Wildcard and Regular Expression mode as well.

Note: "The ODF TC will follow that in the specification of these functions and
at the same time specify, that the host dependent properties HOST-USE-REGULAR-EXPRESSIONS
and HOST-USE-WILDCARDS (file format table:use-regular-expressions and table:use-wildcards)
will be ignored by these functions."
https://issues.oasis-open.org/browse/OFFICE-4154

Also Microsoft Office will introduce this new value for Match_mode in XLOOKUP and XMATCH:
https://insider.microsoft365.com/en-us/blog/new-regular-expression-regex-functions-in-excel

Follow-up commit: 0ca20dca33
(Related: tdf#127293 Add unit test for xlookup regex search mode)

Change-Id: Ibcbfa4cf227ab9a9d317d94c1bab8254b1f91822
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169275
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Tested-by: Jenkins
2024-06-21 10:04:55 +02:00
Stephan Bergmann
d9d63ba765 Don't expect _LIBCXXABI_DTOR_FUNC to be available
...as apparently happens to be the case with some older emsdk versions, see
<https://ci.libreoffice.org//job/lo_daily_tb_linux_wasm/743/> choking on that

Change-Id: Ie2f4b9684c794fdd51142eb81d96dd3332911272
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169319
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-06-21 09:51:16 +02:00
Mike Kaganski
d32153d321 Make sure to clear the guard around OleEmbeddedObject::changeState
The method itself clears its own guard; the caller still holding the
guard results in hangs seen in some Java code.

See also commit e2bfc34d14 (Reimplement
OleComponentNative_Impl to use IGlobalInterfaceTablem 2024-03-11).

Change-Id: Ib22e71e7500ccceb946f7b1d6606f8f61ae2afe8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169315
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-06-21 08:57:08 +02:00
Andrea Gelmini
6958d226e6 Fix typo
Change-Id: I05003d690d10ad03aa498a69063368e33340596d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169210
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2024-06-21 07:48:01 +02:00
Andrea Gelmini
c51d428510 Fix typo in code
Change-Id: I2d9c6e1c90c445bc6b2df257ed5c2e845225e987
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169152
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-06-21 07:43:42 +02:00
Kira Tubo
e5c55b2cfc tdf#146468: Fix typo and move comments
Fix typo on variable RID_SVXSTR_TABLE_PRESET_OUTER and move comments
about consolidating border tooltip strings to solenv/sanitizers/ui/modules/scalc.suppr

See comments on Gerrit for more information: https://gerrit.libreoffice.org/c/core/+/169052

Change-Id: Ic5283e568e13023242858850dbce8922e2c80d8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169308
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-06-21 07:40:37 +02:00
Andrea Gelmini
151d997365 Fix translation
Change-Id: I9a3fd130260b2db4a19830465035a51c25ace041
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169219
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-06-20 23:50:41 +02:00
Andrea Gelmini
d5e00871de Fix typo
Change-Id: I7faabbb1906ce12978de4c8ddad7b1edf5bad4e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169230
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-06-20 23:50:10 +02:00
Stephan Bergmann
f4ec967599 Fix redefinion of Emscripten __cxxabiv1::__cxa_exception
<https://github.com/emscripten-core/emscripten/>
system/lib/libcxxabi/src/cxa_exception.h has two different definitions of that
struct, a short one for when __USING_EMSCRIPTEN_EXCEPTIONS__ is defined, and a
long one for the other case.  In 7175431a4b
"Implement exception catching", I had naively copied the short version, assuming
that __USING_EMSCRIPTEN_EXCEPTIONS__ was something that sounded like it would be
defined with --enable-wasm-exceptions.  But some debugging of actual exception
handling now showed that the assumption had apparently been wrong (though I
still have no idea about the semantics of that __USING_EMSCRIPTEN_EXCEPTIONS__
define, and when it would or would not be defined), and that I had copied the
wrong version.

The relevant test code

>         try {
>             const ret = invoke.invoke('throwRuntimeException', params, outparamindex, outparam);
>             console.assert(false);
>             ret.delete();
>         } catch (e) {
>             const [type, message] = getExceptionMessage(e);
>             console.assert(type === 'com::sun::reflection::InvocationTargetException');
>             console.assert(message === undefined); //TODO
>             //TODO: inspect wrapped css.uno.RuntimeException
>             decrementExceptionRefcount(e);
>         }

in unotest/source/embindtest/embindtest.js had apparently happened to not cause a
crash with the wrong version of __cxxabiv1::__cxa_exception, but had also
happened to not detect the mistake due to the relevant parts being commented out
with TODO (because, in turn, proper UNO exception catching is still lacking in
our Embind-based JS binding).

Change-Id: I718087c7ed2c17808696267ece17237d5cdf2f54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169305
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-06-20 21:49:23 +02:00
Patrick Luby
dd86e0a51a tdf#161461 stop crashing by retaining NSString
OUStringToNSString() returns an autoreleased NSString so it
needs to be retained for the life of maOfficeOnlyTypes.

Change-Id: Ic3777f818b7cada8e88e97965531fc0a7f2e825c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169284
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-06-20 20:16:27 +02:00
Stephan Bergmann
9288a75f71 Fix build
...after 4eb9cde4db "libxslt: uprade to 1.1.41",

> external/libxslt/ExternalPackage_libxslt.mk:28: *** file workdir_for_build/UnpackedTarball/libxslt/libexslt/.libs/libexslt.so.0.8.21 does not exist in the tarball.  Stop.

at least during an Emscripten cross-build

Change-Id: I7fcde7f8708fba68d5d9b751420e402c5da41f3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169280
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-06-20 20:14:28 +02:00
Miklos Vajna
b49c6551fc CppunitTest_sw_writerfilter_ooxml: turn on set_non_application_font_use
Similar to commit dc4d7500c9 (Fix
CppunitTest_sd_import_tests-smartart non_application_font_use,
2023-10-23):

- sw/qa/writerfilter/ooxml/data/recursive_header_rels.docx: Aptos ->
  Calibri

Change-Id: I6bcf3f39861426f2e94d0d88e301007501636e1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169283
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-06-20 19:40:47 +02:00