436 Commits
Author SHA1 Message Date
Andreas Heinisch 970058a668 tdf#170842 - Check for missing table style info on plain database ranges
Change-Id: I8bed747726bd729fcef9b3845c8ba3e62f2ca2a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211786
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2026-10-05 21:15:16 +02:00
Xisco Fauli eb0c65a1a1 UnoApiTest: pass PDFium to parsePDFExport as parameter
so we can check if it's not a nullptr at test level

Change-Id: Icfe580b27f3ad4a28b328f0fac8cf93e05c50b54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210484
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-09-04 15:32:19 +02:00
Caolán McNamara fb7df72df2 add FODP to the test filter list, alongside FODG, FODS and FODT
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I0d5aaac7005588d71939a2dc7230f8aa4ab41552
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9343
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 3e00a1509b44acb7c510c46827f2e840cd1619aa)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209250
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-18 15:55:38 +02:00
Kurt Nordback f201337f3b tdf#165742 Step 5.11: Don't output empty tick mark tags in chartex
Chartex has different tick mark defaults from old-style charts. Don't
output <cx:majorTickmarks> or <cx:minorTickmarks> when no tick marks are
intended, including if there were no such tags on input.

Change-Id: Ib6caecaca917204ddc99208cbece8f6adff8f5ca
Signed-off-by: Kurt Nordback <kurt.nordback@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3067
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
(cherry picked from commit 5353e467dea04ba6b12b616b90e269f0a096375a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208843
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-30 17:13:30 +02:00
Michael Weghorn f26084217a weld: Move weld::Button to own header/Rename weld.hxx
In the past, weld.hxx used to contain the class
definitions for weld::Widget and all subclasses.

By now, weld::Widget and almost all subclasses have
been moved to separate headers, to make it easier
to keep the overview and to avoid having to
recompile ~all UI code when one class changes.

By now, only weld::Button is left in weld.hxx.
Rename the header to Button.hxx.
Drop weld.hxx includes and instead add Button.hxx
includes (or weld::Button forward declarations) where
weld::Button is used.
(Don't simply replace all weld.hxx includes with
Button.hxx ones, since many of them were for the
use of other widgets that have since been moved
to their own headers.)

Add further includes where needed now that the
(direct or transitive) includes of weld.hxx were removed.

Change-Id: I8ea6201446a418d5e38b46337059dcd517ee29d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205937
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-06-05 07:58:07 +02:00
Michael Weghorn 3f1fb9d4b0 weld: Move weld::Window to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: If7cb4403f1861c465f44a1cae4065b0bf8dfad48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205323
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-19 09:10:43 +02:00
Andras Timar 6284d6d8ca tdf#114443 pptx export: write correct content type for PPSX/PPSM
When saving as PPSX (PowerPoint Show), the export always wrote the
content type as presentationml.presentation.main+xml (PPTX) instead
of presentationml.slideshow.main+xml (PPSX). This caused:
- Impress not auto-playing its own PPSX files on re-open
- PowerPoint rejecting PPSX files created by Impress
- Re-saved PPSX files from other apps losing their autoplay ability

Propagate the STARTPRESENTATION filter flag through the export chain
(FilterBase -> PowerPointImport -> PowerPointExport) and use it to
select the correct slideshow content type, following the same pattern
already used for template export.

Change-Id: Idcf6222d3855c587d0dabffe3a345c9ef2bfdcf2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199884
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204105
Tested-by: Jenkins
2026-04-22 18:02:33 +02:00
Xisco Fauli 1ed8bf0011 UnoApiTest: factor out common code for setting LO_IMPORT_USE_PDFIUM
Change-Id: I1b3c66b9098163ce17b6a4c812cc448cc5cd594c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201366
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-03-11 10:47:57 +01:00
Noel Grandin 8459f0be51 XmlWriter::attribute(double) should actually write a double value
And not truncate it to an integer value.

Add additional overload for attribute that takes an enumerated type, otherwise
the compiler will complain about ambiguous conversion because it cannot
choose between the attribute that takes a integral value and the one that
takes a double value.

Change-Id: I9eae22817ec3b26da7b9468d1c8b5e6f3e900538
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201193
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2026-03-10 15:49:17 +01:00
Noel Grandin 4b10710e09 loplugin:passstuffbyref
Change-Id: I559d246b25c99e5cb7a28ba94e04a2acedd3e720
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200943
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-03-04 19:22:19 +01:00
Xisco Fauli d9035e3cbd UnoApiTest: validate PDF/UA, PDF/A-1b, PDF/A-2b or PDF/A-3b by default
Change-Id: I984b5fb16bf36beb9468940a7d34248b17eaa3f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200051
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-23 18:29:05 +01:00
Xisco Fauli 7039373704 tdf#136822: Add VeraPDF as a PDF validator
For now, only validate those tests that are
conformant with the validator

verapdf-cli-1.29.0.jar has been generated using
https://github.com/veraPDF/veraPDF-apps/pull/415
and running 'mvn clean install'
Change-Id: Ic172100a120dc0f43f6de526660961d34dc6b415

Change-Id: Icacc8ccbd938f779b506fb5e1820f10a539ab77b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198556
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-20 08:31:47 +01:00
Xisco Fauli ba3fb9026c merge UnoApiText and UnoApiXmlTest
in preparation for a follow-up commit

Change-Id: I3449c031696fe3ab13d4832e2671da08eb483cdb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199552
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-18 21:17:13 +01:00
Xisco Fauli a69b44ce92 UnoApiTest: drop setImportFilterOptions
and just pass FilterOptions as a parameter

Change-Id: I729a48caad421c98623d0500c70af8af37663b27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199304
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-13 15:57:24 +01:00
Xisco Fauli 6577d2a942 UnoApiTest: merge loadFromURL and loadWithParams into one
Change-Id: Ib58c211542018f07303cadacda86e3419062401e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199297
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-12 20:58:05 +01:00
Xisco Fauli 37032c4eb9 chart2, sfx2: only load one document per test
Add UnoApiTest::disposeAndLoadFromURL for tests where
we need to close the current document and open a new one

Change-Id: Ia9419d0743f4a1c22d8c4d8b91bc168cd43533d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198966
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-09 20:16:37 +01:00
Gabor Kelemen 0bdcfc2900 tdf#146619 Use more forward declarations in include/unotools/
This shaves off some 40M of input

Change-Id: I12e10deb87ceea1f7a23f3de4ea624befe187c3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198238
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-05 17:35:46 +01:00
Xisco Fauli 53d3a02db5 UnoApiTest: drop setFilterOptions
and just pass FilterOptions as a parameter

Change-Id: Ie950bd1565e5e6223b232e723bec75409b96420c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198646
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-04 14:27:23 +01:00
Xisco Fauli 79028582a9 CppunitTest_writerperfect_epubexport: use UnoApiTest::save
and drop member variables. They are used only in some tests

Change-Id: I061bb20c3e7d515affa7d00aad9410a0418dbc84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198618
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-03 21:05:22 +01:00
Xisco Fauli 6985cb97b6 BootstrapFixture: move validate to UnoApiTest and adapt it a bit
it's the only place where it's used

Change-Id: Iaf74e959dcedc27ab1781157e1d2f01a41be5e8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198590
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-03 16:50:18 +01:00
Xisco Fauli d2c12c44fe UnoApiTest: merge save and saveWithParams into one
it allows to simplify the code a bit since the
TestFilter is passed as the first parameter.

In preparation for a follow-up commit

Change-Id: I316c88e1583dc7d9b04876883b971bdfa54e8967
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198588
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-03 16:49:32 +01:00
Mike Kaganski 3a9f1198ab Introduce ScopedConfigValue for easier scoped officecfg manipulation
Helps to reliably restore the correct previous value of a setting:
in many cases, the old restoration code used hardcoded values, which
could get out of sync with current defaults. Also, makes the code
easier to read.

Change-Id: Ia60b4e42192009c16bdbe58c540980c13626d5d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198479
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-01 12:21:11 +01:00
Xisco Fauli eaca892394 sw_ooxmlexport13: Add test for b2dd08c6af
Change-Id: I0cae335f075b785de907c4aa8ec47c9ca086cd12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197436
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-01-16 19:31:01 +01:00
Justin Luth df7e61358b tdf#170261: introduce DOCM 2010 (VBA) filters
This patch primarily allows exporting as an DOCM file
without forcing compatibilityMode = 12 (2007)
Other than that, I don't think there will be any other impact
(although that simple fact has lots of layout implications).

With this patch, the Word 2010-365 (macro-enabled) filter
will be the default for:
- --convert-to (command line) docm
- GUI (save-as) docm
- LOKit download as docm
- TestFilter::DOCM unit tests

Change-Id: Iabc9820096a100774157996b54e325c76d2440c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196789
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-01-10 16:34:57 +01:00
Justin Luth b5b2413db6 tdf#170261: introduce XLSM 2010 (VBA) filters
This patch primarily allows exporting as an XLSM file
without forcing lowestEdited = 4 (2007)
Other than that, I don't think there will be any other impact
(and at this point we don't even know of lowestEdited impacts).

With this patch, the Excel 2010-365 (macro-enabled) filter
will be the default for:
- --convert-to (command line) xlsm
- GUI (save-as) xlsm
- LOKit download as xlsm
- TestFilter::XLSM unit tests

Change-Id: I5c5fac221b6a454a98df9034f59aba0a7d97880d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196788
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-01-10 16:33:57 +01:00
Michael Weghorn 5454b7ed94 weld: Move weld::DialogController and subclasses to own header/source
This is also in preparation of moving weld::Builder to
its own header.

Change-Id: Icb65ee85376d17e1abead2c6339f78b129112d0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195841
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-12-18 19:44:41 +01:00
Michael Weghorn 5b16b3acc6 weld: Move weld.hxx and weldutils.hxx to new include/vcl/weld subdir
This is in preparation of moving code out of weld.hxx
to separate headers/source files, in order to make it
easier to keep an overview and to avoid having to
recompile ~all UI code when anything changes.

Also move weldutils.cxx to a new vcl/source/weld
directory.

Change-Id: Ia75b42f21e560dd248307282a522f186a64cd742
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195777
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-12-17 18:20:13 +01:00
Mike Kaganski 44ab8a915c Simplify XmlTestTools::dumpAndParse for default dumper case
... which is the majority of cases.
Make dumper's methods const, where it makes sense.

Change-Id: I4368a15d18bd0843a3c7b125b03bbbf623cd10c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195424
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-11 15:56:00 +01:00
Justin Luth 0c8944956f related tdf#165180 sc:don't export dateCompatibility - strict-xml only
dateCompatibility is ignored by ECMA 1st edition (Excel 2007)
and ISOIEC29500 (Excel 2010+).

This effectively reverts
25.8.4 commit 990075b668

make CppunitTest_sc_subsequent_export_test2 \
    CPPUNIT_TEST_NAME=testTdf165180_date1904

Change-Id: I1d3beb2d3d14d983ba83edb8b63d05f127a0eaf4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194970
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2025-12-05 21:44:22 +01:00
Gabor Kelemen 663551c5c4 tdf#146619 Run IWYU again on include/test
Change-Id: Ia2fe7435e0fbd6185c40655cd6c5ae93d39c7963
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193916
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-30 18:25:35 +01:00
Xisco Fauli 7e6a1d12d4 sw_ooxmlexport4: do not skip DOCX export validation (last one)
Change-Id: Icfb01d6576e48aef16540bd4164e38d20ff8f4a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194341
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-11-22 08:26:42 +01:00
Xisco Fauli 49f203b628 UnoApiTest: do not skip DOCX export validation
unless it's explicitily specified
For now, turn it off only in those place where it's
already failing.

Change-Id: I6e6d384e2bea3a2a3307b6b1bd5dd8fac260b09b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194223
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-11-20 20:19:50 +01:00
Xisco Fauli 6675e7893e UnoApiTest: use TestFilter enum in setImportFilterName too
Change-Id: I16dae720be9dd9dd4bbc2a691d83fa6339f33c2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194166
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-11-18 21:11:09 +01:00
Xisco Fauli 801dc48c6f UnoApiTest: Add enum for filter names
and use it in save/saveAndReload

Change-Id: I3d82ab54119ab6c35587ea706c82254a5c39dbd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194158
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-11-18 21:11:02 +01:00
Andrea Gelmini c58305fe48 Fix typo
Change-Id: I688a52774b1918ffaf3da43eef9717aa5b7ae1f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192271
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2025-10-15 10:22:38 +02:00
Michael Meeks d124441427 oox: share color hexification code.
Fixup various pieces from 3431c1ee1be1bd33638ffe5ff2e340a692bed9dc
prematurely merged to master with fewer adaptations.

Change-Id: Ib4a430d6d7c32f662a4b3e4f056cea1b11b3ca74
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192012
Tested-by: Jenkins
2025-10-10 12:43:25 +02:00
Michael Meeks ba1de32981 oox: add case-insensitive hex color comparison to the tests.
Change-Id: I1d0f6d5e21a27d45f1a8d3a837ff6094a9e0cf34
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192071
Tested-by: Jenkins
2025-10-09 12:37:15 +02:00
Michael Weghorn 46b99f4010 a11y tests: Switch AccessibleTestBase::Dialog::mxAccessible to OAccessible
Change-Id: I64ce2da7cbee4e82f4fff3766f250a8f1dd8d5f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188636
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-08-01 11:32:15 +02:00
Michael Weghorn dd19b689ee a11y tests: Use OAccessible for Window accessible
Let test::AccessibleTestBase::getWindowAccessible
return an OAccessible and drop
test::AccessibleTestBase::getWindowAccessibleContext,
as OAccessible implements the XAccessibleContext
interface as well.

Change-Id: I50308897a1539521f09fae0b13a56813077c7cc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188635
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-08-01 11:32:09 +02:00
Noel Grandin 74049389b6 BitmapEx->Bitmap in ScreenshotTest
now that Bitmap can handle transparency

Change-Id: Ie12569c0e776d618d1f9dc1303904c5aa2c74fe9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188616
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-07-31 14:13:55 +02:00
Kurt Nordback c84c7b3c81 tdf#165742 Step 4.7: Add support for internal data
Word and Powerpoint store data internal to the chart in .docx and .pptx
formats, respectively. In chartex this uses the <cx:chartData> and <cx:data>
tags, and unlike in pre-2016 charts, is at the chartSpace level rather than
internal to individual series. Provide support for these tags and data
structures.

Note that this does not yet allow .docx and .pptx files with chartex
contents to round-trip successfully (MSO -> LO -> MSO). Additional work
remains needed for this.

Change-Id: I1e91cd0e014787ce19303a906ff76cd6c7c4b0fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187426
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2025-07-11 18:35:29 +02:00
Michael Weghorn 00b7325a50 a11y tests: Port AccessibleFixedText test to C++
Port this Java a11y test to C++.
This mostly ports the existing logic from
Java to C++ and switches to the existing
helpers for testing the XAccessible* interfaces.

Change-Id: Ib39b2d301b98896a5ce29cd90c56c0d97e8cb892
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186679
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-06-19 19:37:04 +02:00
Michael Weghorn 9bec15a39f a11y tests: Allow custom function to generate a11y events
So far, the XAccessibleEventBroadcasterTester logic was
to modify a vcl::Window to generate a11y events for it
that the XAccessibleEventBroadcaster would receive.

Change this to allow passing a function to the ctor that
is responsible for generating accessible events, to
allow using this class for other scenarios in the future as
well.

Move the vcl::Window-specific logic to a new subclass
WindowXAccessibleEventBroadcaster.

Change-Id: I36cd49d40e68127d2d98a6b5c151b1e32c29dd92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186678
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-06-19 19:36:57 +02:00
Michael Weghorn 4005c3d879 a11y tests: Introduce C++ XAccessibleTextTester
Similar to how e.g. XAccessibleContextTester tests
the methods of the XAccessibleContext interface, this
one tests the methods of the XAccessibleText interface.

The logic in this C++ version is in general based on the Java
implementation in
qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java.

This will be used to port the AccessibleFixedTest
Java test to C++ one in an upcoming commit.

Tests that don't test common expectations for all XAccessibleText
implementations but depend on further conditions (like particular
text content, see the tests in the Java version that check whether
or not this is the "SmGraphicAccessible" or "AccessibleStatusBarItem"
test) are not included in the C++ version.
If considered relevant, I think it makes more sense to include those
specific tests in the test suite for the particular classes for which
the corresponding behavior is expected.

In XAccessibleTextTester::testGetCharacterBounds, don't
fail if the character bounds are outside of the
component, but just produce output, as the Java
version (in _XAccessibleText._getSelectedText) does.

Change-Id: Iec0c6a7413181b2f6ea28fdbbf6c0f2d9792fac8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186677
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-06-19 19:36:50 +02:00
Michael Weghorn f52b63ca5f a11y tests: Use vcl::Window in XAccessibleEventBroadcasterTester
... instead of the toolkit counterpart, XWindow.
This allows to use this also for vcl::Window
based tests, without having to involve
the UNO abstraction.

Adjust AccessibleStatusBarTest accordingly to pass the
vcl::Window associated with the XWindow.

To run the test:

    make CppunitTest_toolkit_a11y

Change-Id: Iee77f293338f269a2ad7c631384d5e3797b06152
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186200
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-06-05 07:29:01 +02:00
Michael Weghorn e76a027177 gtk a11y tests: Don't rely on XWindow being XAccessible
See commit messsage of

    Change-Id: Id81ab5f90955ecc600e179164b5f9c7a771182d1
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Wed May 21 11:03:56 2025 +0200

        sw a11y test: Don't rely on XWindow being XAccessible

for more background.

Extract a new helper from the existing
test::AccessibleTestBase::getWindowAccessibleContext
that returns only the XAccessible and use that one
to avoid duplication.

Change-Id: I0f3db88a4754f3ce8de5b02e0a0e41ac9cac9ac2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185602
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-05-22 05:50:10 +02:00
Noel Grandin 6845b8a926 loplugin:constparam in various
Change-Id: I874a95777aed3471675bf03acfcf05ecfcb4f830
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183531
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-03-31 13:18:12 +02:00
Michael Weghorn cadee0d0d9 a11y tests: Introduce XAccessibleActionTester
Similar to how e.g. XAccessibleContextTester tests
the methods of the XAccessibleContext interface, this
one tests the methods of the XAccessibleAction interface.

This C++ version is similar to what the Java implementation in
qadevOOo/tests/java/ifc/accessibility/_XAccessibleAction.java
does.

XAccessibleActionTester::testGetAccessibleActionDescription is
more strict in that it also requires that the action description
is non-empty.

This will be used to replace the existing AccessibleDropDownListBox
Java test with a C++ one in an upcoming commit.

Change-Id: I41e9fe2fb5011cd8f33dbfc2494b04f4833c43cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182983
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-03-16 08:28:29 +01:00
Michael Weghorn 1b704035f5 a11y tests: Move more helpers from toolkit to test
Move the XAccessibleEventBroadcasterTester and
XAccessibleExtendedComponentTester classes from toolkit to test,
so they can be reused for a11y tests in other modules.

Change-Id: I33e9ee43b9652e6cefcea2ee3264114109f8d9f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182982
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-03-16 08:28:20 +01:00
Michael Weghorn f69fa9e372 a11y tests: Move helpers from toolkit to test
Move the XAccessibleComponentTester and XAccessibleContextTester
classes from toolkit to test, so they can be reused for a11y tests
in other modules.

Change-Id: I9a4bb3f96d92b05d58a5e8afe7f86b5eb2fd0c38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182967
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-03-15 20:50:09 +01:00