977 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
Andrea Gelmini e8fa15e0d6 Fix typos in code and comments
Change-Id: I48caad6ed035a1e46e434a685fc40376e0276fe5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210576
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-10 16:27:50 +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
Andrea Gelmini e482f993c1 Fix typos
Change-Id: I2043f25bd44bf25e485a7e2b58ec0165ed28f301

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209810
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 15:10:40 +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
Tomaž Vajngerl 4efc11357b sc: round-trip dynamic array spill state through XLSX
Make the spill state of a dynamic array survive a saveAndReload
to XLSX and make the XLSX be properly accepted by MSO. There is a
special way, with dynamic array extension to the format, which
must be written to the file.

Export:
- Emit xl/metadata.xml with an XLDAPR dynamicArrayProperties block,
  and register it in [Content_Types].xml and workbook rels.
- Mark the master cell with cm="1" and write aca="1" + ca="1" on f.
  A 1x1 collapsed master is written as a single cell reference.
- Map the SPILL cell error to "#VALUE!", since OOXML has no #SPILL!
  literal. Recalc on reload reclassifies it back to SPILL.

Import:
- Remember "cm" on the cell. A cached "#VALUE!" on an array master
  with "cm" set is treated as a SPILL hint so the blocker survives.

Extend the XLSX round-trip tests in subsequent_export_test2.

Change-Id: I9209e43f3a398e23fc7ca46daf58a88546687dba
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2865
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit eb85edc75e5100beb7802381175de914f4102a81)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205803
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-28 20:09:47 +02:00
Tomaž Vajngerl 2b8fedb4ec sc: add elements and parsing of namedSheetView*.xml files
This adds parsing of elements (namedSheetView) and sub-elements
contained in namedSheetView*.xml files. The data is contained in
NamedSheetViewData, but for now we don't do anything with this
data yet.

Change-Id: I9757bc4e7001a338e7e746ebc663eb3b9837519f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197706
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201947
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 7135df7768579bef1655923a125de2f440caf463)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205287
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-21 18:07:35 +02:00
Saburo Yoshida c06f65fed5 tdf#161794 fix:Row grouping does not work on Row number 1
Because GetCurrentRow returns 0, the Group started from Row number 2.
While there is a solution to fix GetCurrentRow, it seemed likely to affect
other code, so I decided to get the row position the same way as bHeader.
This change also resolves tdf#102154.

Change-Id: Iadf140082e8dda98aa959baaa27226a19c30da9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204815
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-05 23:00:32 +02:00
Michael Weghorn c60458d60e a11y tests: Don't use SystemClipboard service ctor
Instead of going via this UNO abstraction, call
GetSystemClipboard() to get access to the system
clipboard.

Change-Id: I8ef1d7b0c76b3a154ff8b1bddeed0a0ad57f5709
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200653
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-28 09:41:36 +01:00
Stephan Bergmann cdf292b4db Don't direct veraPDF stderr into output file
This redirection was introduced in ba8fe774a1
"test: capture stderr of odfvalidator too", so it probably doesn't make much
sense for veraPDF.  And at least with Java 26, invocations of bin/verapdf.sh
start off with writing

> WARNING: Final field flavour in class org.verapdf.pdfa.validation.profiles.ValidationProfileImpl has been mutated reflectively by class com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection in unnamed module @67117f44 (file:/home/sberg/lo-external-tarballs/verapdf-cli-1.29.0.jar)
> WARNING: Use --enable-final-field-mutation=ALL-UNNAMED to avoid a warning
> WARNING: Mutating final fields will be blocked in a future release unless final field mutation is enabled

to stderr, so that e.g. CppunitTest_vcl_pdfexport failed with various

> Entity: line 1: parser error : Start tag expected, '<' not found
> WARNING: Final field flavour in class org.verapdf.pdfa.validation.profiles.Valid
> ^
> /home/sberg/lo/core/test/source/unoapi_test.cxx:217:(anonymous namespace)::testTdf142806::TestBody
> assertion failed
> - Expression: pXmlDoc

Change-Id: I83970406d7ac8a4d4be98a7fc1e7da530075685c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200359
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-02-26 18:22:21 +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
Mike Kaganski 99c2cc0673 fix assorted VirtualDevice GDI handle leaks
Similar to commit e9392c0c86fcf373e00ede92f8ceeee2c7efd233 (fix
VirtualDevice GDI handle leaks across IconView callers, 2026-02-21).

Change-Id: I5d0566a2d6c7285c6efde5560f13c1efd22cdc55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199942
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199950
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-21 19:58:29 +01:00
Xisco Fauli b800fe7802 tdf#157517: vcl_pdfexport2: Add test
Change-Id: I9084c5b57e1d59064f026b3f391444ce60fad552
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199899
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-21 07:31:04 +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
Armin Le Grand (collabora) 609d3192d3 SmartArt: Replace PointNameMap & optimize some stuff
Replaced PointNameMap in DiagramModel, too unsafe with
needed StateUpdates. Simplified some stuff dependent on
that. More stable now with changes. Embedding of
DiagramModelID back to ObjectName, that's just better.

Re-activated locked state for SdrObject members of
Diagrams for now due to UnitTests, but see comment
there.

Had to add an exceptional case to
XMLDiff::compareAttributes due to usage of GuidString,
see comment there. DiagramNodes do save their
GuidString in the name attribute of XShape. That
ID can change at every usage, thus when extracting
it *cannot* be compared to something saved/checked
in in a given state.

Change-Id: I112425d1efde58cfde8792cf2ee8c0c688d517e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199502
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
2026-02-17 17:57:59 +01:00
Xisco Fauli 3696d3d9b9 UnoApiTest: deactivate lok in tearDown
Change-Id: I8fbacbb7fe0e3ec3e9fc4801e345b2ffbdc9c8cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199537
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-17 16:29:31 +01:00
Xisco Fauli a89f887d16 UnoApiTest: check no document is open before opening a new one
Change-Id: I8abe65f88b63446dd8bfe2465c9a8d2d4aff31ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199508
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-17 08:34:57 +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
Michael Weghorn fbcfd00fb7 weld: Move weld::Dialog to own header/source
Move the class out of weld.hxx into its own header and source
file, 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: Ic47dac553fc065c5c9cddbf31e33012314dbe43d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199073
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-11 07:32:57 +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 4d8fd94eb4 UnoApiTest: set password for pdf files inside save()
Change-Id: Ic0456a24774e8b7d65163714670510d1c37027c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198670
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-04 15:52:06 +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
Michael Weghorn 7efb65c7ef weld: Move weld::Notebook 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: I56cea12845bc906a8b7aff13abe033e9723b85c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198614
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-03 23:09:35 +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
Xisco Fauli ba6cab4beb UnoApiTest: call validate from saveWithParams
Some tests call saveWithParams directly

Change-Id: I5a0cfaaa0693c6a7a41d69a8863d90f209021abc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198549
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-02 16:45:22 +01:00
Gabor Kelemen 495fa42afa tdf#146619 Use more forward declarations in include/vcl/weld/
after recent split of these headers

This shaves off another 150M input

Change-Id: Ia4e42781cdc6fd6e795c9fb55c6c24dd641b8f0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197339
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-31 11:06:42 +01:00
Xisco Fauli 374e7cd1a4 resolves tdf#149567: odfvalidator: do not validate password protected files
Running "java -jar odfvalidator-0.9.0-jar-with-dependencies.jar test.odt"
it fails with
ene 30, 2026 1:09:49 P. M. org.odftoolkit.odfdom.pkg.ZipHelper entriesToMap
INFORMACIÓN: ZIP ENTRY not found
/home/xisco/Descargas/test.odt:  Fatal: ZIP entry 'mimetype': only DEFLATED entries can have EXT descriptor
/home/xisco/Descargas/test.odt:  Fatal: The document is encrypted. Validation of encrypted documents is not supported.
/home/xisco/Descargas/test.odt/META-INF/manifest.xml[2,194]:  Error: unexpected attribute "manifest:version"
/home/xisco/Descargas/test.odt/META-INF/manifest.xml[6,136]:  Error: tag name "manifest:start-key-generation" is not allowed. Possible tag names are: <key-derivation>

Change-Id: I185e9cd5227a07cd7fd07379c8925b9a8296d0a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198426
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-01-30 14:51:36 +01:00
Xisco Fauli b2cbeda648 related tdf#149567: odfvalidator: do not validate FODT files
Running "java -jar odfvalidator-0.9.0-jar-with-dependencies.jar test.odt"
it fails with
org.odftoolkit.odfdom.pkg.OdfValidationException; The ODF package 'file:///home/xisco/Descargas/test.fodt' shall be a ZIP file!
	at org.odftoolkit.odfdom.pkg.OdfPackage.readZip(OdfPackage.java:542)
	at org.odftoolkit.odfdom.pkg.OdfPackage.initializeZip(OdfPackage.java:519)
	at org.odftoolkit.odfdom.pkg.OdfPackage.<init>(OdfPackage.java:293)
	at org.odftoolkit.odfdom.pkg.OdfPackage.loadPackage(OdfPackage.java:456)
	at org.odftoolkit.odfvalidator.ODFFileValidator.getPackage(ODFFileValidator.java:58)
	at org.odftoolkit.odfvalidator.ODFRootPackageValidator.getPackage(ODFRootPackageValidator.java:59)
	at org.odftoolkit.odfvalidator.ODFPackageValidator._validate(ODFPackageValidator.java:101)
	at org.odftoolkit.odfvalidator.ODFPackageValidator.validate(ODFPackageValidator.java:86)
	at org.odftoolkit.odfvalidator.ODFValidator.validateFile(ODFValidator.java:180)
	at org.odftoolkit.odfvalidator.ODFValidator.validate(ODFValidator.java:129)
	at org.odftoolkit.odfvalidator.Main.main(Main.java:230)

Change-Id: I0df2dcaa195ca4b145e870b276eef6962db7dad6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198410
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-01-30 14:18:29 +01:00
Noel Grandin 093d1a22e4 improve unit test assert message when diffing
Change-Id: Icffb187e004852ddfd190b42318ff53ba6a0f859
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197788
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-01-23 10:25:12 +01:00
Gabor Kelemen 31ea498486 tdf#146619 Use more forward declarations in include/vcl/[q-w]*
Found after running bin/find-unneeded-includes --headersfwd include/vcl/[q-w]*

This shaves off about 100M input

Change-Id: Ib4d0af44b383d34d856a9797fe70a974b359402f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196398
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-18 00:33:10 +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
Noel Grandin 4da8f78016 we dont need this officeotron workaround anymore
ever since
    commit e4978f9079cda7abb7bb424503d780566c728adf
    Author: Karthik Godha <karthik.godha@collabora.com>
    Date:   Mon Nov 24 19:16:51 2025 +0530
    Update OOXML schema to follow ECMA-376 5th edition

which was part of officeotron 0.8.1

Change-Id: I0b9f8ff0d513ced06cda9f4257454ee756b28322
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197175
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2026-01-14 07:43:29 +01:00
Noel Grandin 49a1acfd91 update to officeotron 0.8.8
which means we no longer need the workaround

Change-Id: Ibdc47750a7d5eacc9a1e2251e145379f0464b7f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197174
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-01-14 07:43:17 +01:00
Gabor Kelemen b63115f3fa tdf#146619 Use more forward declarations in include/vcl/[d-g]*
Found after running bin/find-unneeded-includes --headersfwd include/vcl/[d-g]*

This shaves off about 150M input

Change-Id: I2b15257451d4b392dca3e5d07f4a443ee653b04c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196395
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-11 21:38:37 +01:00
Gabor Kelemen c0b14ab9aa tdf#146619 Use more forward declarations in include/vcl/[A-Z]*
Found after running bin/find-unneeded-includes --headersfwd include/vcl/[A-Z]*

This shaves off about 100M input, not bad for such a small amount
of files checked

This time --headersfwd skips files that contain #if defs,
in hope of not breaking builds that are not checked by CI

(...except for include/vcl/BitmapTools.hxx - this was cleaned accidentally,
due to a bug in the bin/find-unneeded-includes script that is fixed
by the previous commit 930ff2b830
- but let's keep this anyway, it seems fine)

Change-Id: Ia8e49d94f6adb3cdbedbc40ffa56dbf846c9b6e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196235
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-05 11:10:28 +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
Vincent CARPENTIER 02996d6249 tdf#143148 Use pragma once instead of include guards
Change-Id: Iea5704522938ee13938ffaa4598a95531d5ba069
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194906
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-12-13 07:51:34 +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
Mike Kaganski 7f198b27f4 Drop class utl::MediaDescriptor, and use comphelper::SequenceAsHashMap
utl::MediaDescriptor was just a SequenceAsHashMap with a few added
methods. It made it more difficult to assign a SequenceAsHashMap to
MediaDescriptor, without real upsides. In many places, the class was
used not as media descriptor, but just as helper to create sequences.

This change puts the string constants and the former methods into a
namespace utl::MediaDescriptor.

It would be also good to drop comphelper::NamedValueCollection, which
is basically a twin of comphelper::SequenceAsHashMap (TODO).

Change-Id: Ia9b69c5a2ad153ecc654944c419c1880252ed86e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195163
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-06 18:18:32 +01:00
Justin Luth de25c6c546 tdf#165207 xlsx/pptx: always use errata uri in docProps/core.xml
This fixes a longstanding bug that has gone unnoticed
since nobody saves to the "Office Open XML" filters
and the problem is only seen in MS Office.

So what does this patch fix?
Basically, all of the meta-data was not being read by MS Office,
which primarily means no create/modify dates, subject, title etc.
Every time we saved to OOXML formats (except OOXML 2007),
we caused MS Office to be incapable
of understanding anything in docProps/core.xml.
Telltale sign: when MS Office round-trips
with an added docProps/core0.xml.

The spec says that ISO 29500 formats should be using
    officedocuments/2006/relationships/metadata/core-properties
and thus our untouched 2010-era coding
specified all of that for export (and more recently for import).

> 2.1.33 Part 1 Section 15.2.11.1, Core File Properties Part
> The standard specifies a source relationship
> for the Core File Properties part as follows:
> .../officedocument/.../core-properties.
> HOWEVER: Office uses the following source relationship
> for the Core File Properties part:
> .../package/.../core-properties.

Thus reality is much different than the spec,
so throw the spec out the window and always write
    package/2006/relationships/metadata/core-properties

Bug 165207 doesn't affect LO in any way - it only affect MSOffice.
If there was already a unit test writing out to _rels/.rels
I would have added a test for this, but since there isn't
I won't bother since I don't see any value in doing so.

Change-Id: I582448adb568ecb630f2fd64712ce372875f71df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195014
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2025-12-05 23:30:13 +01:00
Noel Grandin 4e2b089020 loplugin:stringloop
resurrect the plugin and run it over the codebase

Change-Id: I443a75961124aabd1e62b3c4bc166d52e4621b52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194870
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-12-01 14:25:01 +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