Commit Graph

496945 Commits

Author SHA1 Message Date
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
Andrea Gelmini
431e3d8a52 Fix typo
Change-Id: Ib6bfd1938d8d2da3d3aa9ccbb7b80750c4671f39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169279
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-06-20 19:22:44 +02:00
Andrea Gelmini
04bd09866f Fix typo
Change-Id: Ia197c0eb16227f1dbee0c0eef65d4c2821edfa83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169170
Tested-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-06-20 19:21:52 +02:00
Stephan Bergmann
321284dde9 -Werror,-Wunused-function
Change-Id: I11af8dfbcdda6bbb77f2ccfaf2c994492bc3f807
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169282
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-06-20 18:32:31 +02:00
Michael Stahl
21279261fd ucb: webdav-curl: don't mash together HTTP_CONNECT and HTTP_TIMEOUT
First a DAVException with DAV_HTTP_CONNECT is thrown, then it's
converted to USC_CONNECTION_TIMED_OUT, then that is converted to
DAVException with DAV_HTTP_TIMEOUT, a bit misleading.

Change-Id: Ie5089d67d363f57eaa9e1ed057b36adb41e846d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169277
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2024-06-20 16:48:56 +02:00
Noel Grandin
1be12e6d29 tdf#144208 speedup doc with lots of redline(13)
Add a custom method to SfxItemSet, to avoid some of the function calling
overhead in a hot loop

Change-Id: I525c9a696af941c6e39aa1677eb2a85f69c621bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169271
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-20 16:20:35 +02:00
Noel Grandin
2ab4c442a5 tdf#144208 speedup doc with lots of redline(4) II
exit early in DelBookmarks if the redlines are not in the range we need
to fix

(Second attempt at landing this)

Change-Id: I371623ad5840e56bc4ed80565befc7b26e3f5e08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169270
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-20 16:20:26 +02:00
Christian Lohmaier
d5a7ae5989 Update git submodules
* Update translations from branch 'master'
  to 755fc723ca53063e9481f8ca26b14e6b00d46d38
  - update translations for 24-8/master
    
    and force-fix errors using pocheck
    
    Change-Id: If076c515de168ad573ccd927faf405d15c6dff34
2024-06-20 16:12:40 +02:00
Michael Stahl
af79ac4bf4 libcmis: don't retry if the connection failed at TLS level
... for example due to bad certificate; it is pointless as it will
fail exactly the same way.

Change-Id: I654261b2691987453e4ac9a3e2f3019dce20da48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169268
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2024-06-20 15:59:27 +02:00
Michael Stahl
31ac510f0d libcmis: fix UAF on invalid certificate
headers_slist may be used again on the 2nd call to curl_easy_perform()
in the CURLE_SSL_CACERT case.

Change-Id: I146d7f5dd72e2abd580a68c8ea4c9e56b7adeca3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169267
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2024-06-20 15:56:46 +02:00
Olivier Hallot
a611a5d107 Update git submodules
* Update helpcontent2 from branch 'master'
  to 1178a2c5645336fa720a1fe6cc023df8a8e7895f
  - Update term Organizer -> General in swriter/ pages
    
    Change-Id: I33ac397dd8c1f831b832c9d385a14e236853a9de
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/169273
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-06-20 15:45:14 +02:00
Olivier Hallot
022ace59fa Update git submodules
* Update helpcontent2 from branch 'master'
  to b0425a000fa79d8152652b031c1be8d3d3b2af56
  - Update term Organizer -> General in shared/ pages
    
    Change-Id: I455cc5e0f115638fb1c9312db8d8cd50e7b1b0cf
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/169272
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-06-20 15:44:36 +02:00
Xisco Fauli
fb8f4b57ce DBTestBase: Add createDBDocument
it can be used later on when porting the java tests
to CppUnittest

Change-Id: I17420fdf490d979392f5aeb90c3b3bfb319d7764
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169274
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-06-20 15:44:26 +02:00
Xisco Fauli
39714d3e66 CppunitTest_dbaccess_embeddeddb_performancetest: use maTempFile
Change-Id: Ib63008ddaf9aeb0ed02dd5cbc9680eda2cefbfac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169269
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-20 15:35:02 +02:00
Heiko Tietze
ec5e0d0cd7 Resolves tdf#64028 - Command to retain source cell on cut
.uno:CopyDelete copies the cell and deletes the content,
assigned to shift+ctrl+X

Misses to block the command while in edit mode, see tdf#161712

Change-Id: I479008b0484ef8ced86b709a0dc2bdbfa6c44cb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169266
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-06-20 15:15:56 +02:00
Andreas Heinisch
8730575016 tdf#161469 - Basic: align implementation now with the now function in calc
Align the implementation of the now function in basic with the now function in calc to include the also nanoseconds. The precision is limited to milliseconds to avoid comparision inaccuracies.

Change-Id: Ia85b653898f5849f67a171749725faab976b2a8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168706
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-06-20 14:36:50 +02:00
Xisco Fauli
4eb9cde4db libxslt: uprade to 1.1.41
Downloaded from https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.41.tar.xz

Change-Id: Ib06a013d85cc47a901fbe55a880f3ad6a5edcea8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169265
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-06-20 14:09:42 +02:00
Tomaž Vajngerl
6289ad39e8 annot: clone annotations in SdrObjects when the page is duplicated
When the page is duplicated we need to clone all SdrObjects and
with that also all the annotations contained in the SdrObjects.
The annotations must also be added to the page, so that we can
find them quickly.

Previously we only cloned the annotations and relied that the
SdrObjects would be automagically be created, but as the SdrObject
are also cloned this creates a mess with duplicated objects with
annotatins for the wrong page or annotation objects with missing
annotation.

Change-Id: I4bf53e4bd387fad9b0a8e4f43edd57c3d0fd34cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169256
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit c3281e071526f7efa9b7646a993476fc3f6ff8db)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169260
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-06-20 14:06:51 +02:00
Noel Grandin
51dfbb1fce tdf#161219 Exporting XML filter as package results in empty jar
regression from
    commit a04bf69bcc
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Mon Jan 16 10:36:59 2023 +0200
    XUnoTunnel->dynamic_cast in ZipPackageEntry

Change-Id: I12915bb093ea050f4290c02cc5a6e1dc2c7b903a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169204
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-20 14:03:31 +02:00
Noel Grandin
86a827da7c loplugin:unusedfields
Change-Id: I4bc67811e228b4806db9f9b9bf9fb0de0eb36de2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169263
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-20 14:03:21 +02:00
Tomaž Vajngerl
50f3443d59 pdf: remove CHECK_RETURN macro from code
Doesn't help with code readability and makes code more complex.

Change-Id: I0c1dc421d5fb173e610ab303d7c4f707dc65a093
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169203
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-06-20 13:18:32 +02:00
Martin Srebotnjak
635add71c4 Update git submodules
* Update translations from branch 'master'
  to cf2e53f45d2727aa4c1b587362eb2e5f1a83f498
  - Updated Slovenian translation
    
    Change-Id: Ifd238155fe7ef5bd93520acb24c0c4f7ad659313
2024-06-20 13:02:13 +02:00
Noel Grandin
4aa2cc878d loplugin:unusedmethods
Change-Id: Ia216da9bd7764f2d21aaee761a02eafda88d892e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169257
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-20 12:21:54 +02:00
Balazs Varga
e74a5bea04 tdf#159906 - A11Y: Add new direct character formatting group level
for Formatted warnings and keep them not expanded (default) to avoid
to many visible warning message on the sidebar.

Change-Id: Ic251909d793198c3c4ce5e132b763c15ac1c9a9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169110
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-06-20 10:59:18 +02:00
Szymon Kłos
494161a9c8 cool#9309 lok: sync language in comphelper::LibreOfficeKit on view creation
If new view is created using createViewWithOptions API call
we pass language of that view. We do a setup of that language
in SfxLokHelper::setViewLanguage but it was only set inside
ViewShell.

Unfortunately just after we create the view we call setView which
later checks if comphelper::LibreOfficeKit::getLanguageTag()
has matching value with ViewShell field.
It was showing warning in the logs:
warn:lok:31748:31654:sfx2/source/view/lokhelper.cxx:206: LANGUAGE mismatch at setView! ... old (wrong) lang:de new lang:fr

Let's check if the view we try to modify is the current one and
in that case synchronize value we can get using global
comphelper::LibreOfficeKit function.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Icddfda003522dda661066c4d1c43ca1dec9e5c55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169107
(cherry picked from commit 800d8580ec8d99f5c610727a9d53ab143019c014)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169144
Tested-by: Jenkins
2024-06-20 10:57:18 +02:00
Miklos Vajna
afb4ea6746 tdf#161652 editeng, RTF copy: only write used paragraph styles
Copy a single world from the Impress bugdoc to Writer, number of
paragraph styles increase from 126 to 221, while only +0 or +1 are
expected.

It seems the problem is that the editeng doc of the shape refers to all
styles of the masterpage and we write the style table before the
content, so we export all styles to be on the safe side.

Fix the problem by iterating the paragraphs of the selection in the
"copy" (not "export") case, assuming that typically the selection
doesn't refer to all available styles in the document, and the number of
paragraphs in a shape is not a large amount.

An alternative would be to limit the style import on the RTF reading
side, but not producing those not needed styles in the first place looks
superior.

Change-Id: I43e4c542e530ff6422357a28399718e89fdbabe9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169251
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-06-20 10:56:44 +02:00
Samuel Mehrbrodt
41d26f14ff tdf#161653 Fix selecting from numbering dropdown
Change-Id: I5ba2133395619ec96b32940a6ceddf0c32615a03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169252
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2024-06-20 09:42:31 +02:00
Samuel Mehrbrodt
63b46c2136 rtf: Don't export changes author/date when in privacy mode
Change-Id: Id8f8dea4563df3cfb0ea9009783886bdabf91b11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168996
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Tested-by: Jenkins
2024-06-20 09:22:30 +02:00
Samuel Mehrbrodt
16c7a6f77e rtf: Don't export notes author/date when in privacy mode
Change-Id: I6dd318fcae9470bb8fc911a8b4d7ff7c7d8f9636
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168984
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2024-06-20 09:22:11 +02:00
Heiko Tietze
baf95a7e8e Resolves tdf#153223 - Suppress variable line height when skia is off
Change-Id: I9194c25bf2fc104574bd27e6b8683b63111e6ad8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169192
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-06-20 09:11:46 +02:00
Kira Tubo
14231e45ce tdf#146468: Match border tooltips in toolbar/sidebar
Update the border tooltips within Calc's toolbar and sidebar so that they
have matching descriptions.

Also update tooltips in Writer toolbar so that descriptions match across
both apps.

Change-Id: Ib7c682ed5035fe61d991209c4f2cf7f0a1a08a5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169052
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Stéphane Guillou <stephane.guillou@libreoffice.org>
2024-06-20 09:11:16 +02:00
Michael Weghorn
dd6bc1243a qt opengl: Drop superfluous check
The `m_pChildWindow` is created in the lines
above if not set before, so there's no need to check
whether it's set. Assert instead.

Change-Id: I1058897bc423b24be0f92c4dcc59c18801da45bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169243
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-20 08:09:46 +02:00
Michael Weghorn
1bde8595bd tdf#161648 sc a11y: Set a11y name for border style button in sidebar
Set accessible name for the button to open the popup
to select a border style.

This is announced by Orca with the gtk3 VCL plugin
when the button gets focused as expected.

Setting accessible names for the items in the
popup still remains to be done, s.a. discussion
in pending Gerrit change [1] that's related.
(If that gets merged, setting a11y names should
probably be done in C++ code, not the corresponding
.ui file.)

[1] https://gerrit.libreoffice.org/c/core/+/169052

Change-Id: I200e160e64735e8701866428bf51e8b955dcc930
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169188
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-20 05:52:36 +02:00
Michael Weghorn
daed96f081 tdf#159835 sfx2: Keep sidebar menu up to date
No longer update the menu for the menu button
in the sidebar in the handler that gets called
when the button gets clicked, but continually
keep the menu up to date instead.

This ensures that the menu is up-to-date when
it gets shown. Updating the menu in the button handler
is too late since

        commit f075fa01cb
        Author: Michael Weghorn <m.weghorn@posteo.de>
        Date:   Tue Aug 22 10:26:32 2023 +0200

            tdf#141101 tdf#101886 a11y: Restore previous focus on col/line popup close

, as the handler is now no more called before the menu
gets shown.

Do the update in method `TabBar::UpdateMenus` instead
and call that one whenever items change or the
sidebar gets docked/undocked, as menu entries
are shown for the items and for (un)docking.

This makes the menu show all entries again
when opened the first time after starting Writer,
which was no longer the case after the
above-mentioned commmit.

Change-Id: I9a7e341e88d2de5f34e8f85ebada3ff2ebf6b47d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169196
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-20 05:51:59 +02:00
Michael Weghorn
c2c6a5d32f tdf#159835 vcl: Notify when floating window toggled
Notify listeners using an `VclEventId::WindowToggleFloating`
event when the floating mode was toggled in
`DockingWindow::SetFloatingMode`.

This will be used in upcoming commit

    Change-Id: I9a7e341e88d2de5f34e8f85ebada3ff2ebf6b47d
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue Jun 18 13:41:03 2024 +0200

        tdf#159835 sfx2: Keep sidebar menu up to date

to react to that toggling.

Change-Id: I5286ab727c30d4dd4bbc3cf5d42f19ff649b39f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169195
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-20 05:51:54 +02:00