100 Commits
Author SHA1 Message Date
Gabor Kelemen 3fcdf7093c tdf#162563 Drop AppletShape import-export support from xmloff
Change-Id: I9fc94cf361bb8df706c4a8a289b36c541edac5d4
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3207
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 89887378e63cb33a4d675817e39fd30d59580ff2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206301
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-10 16:21:04 +02:00
Gabor Kelemen c72c31de14 tdf#162563 Drop Applet support from slideshow
Change-Id: I48aa6e8d0b7d97914bf14947a5ce1b18ca6844e4
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3203
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 37fda958ab6ccb5fb0cab528fcc305ccf7ac6065)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205874
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-02 10:28:44 +02:00
Gabor Kelemen ccbbb20630 tdf#162563 Drop Applet and Plug-in object support in Writer filters
Change-Id: I3ddd4ed7629756506321edf51e747241b2d3e81d
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3202
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 3abdb40559d69265100acf1b1c5c96596933c994)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205873
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-01 16:30:00 +02:00
Gabor Kelemen 555e00bc55 [API CHANGE] Remove unused ooO::Inet::Settings::ooInetFTPProxyName/Port keys
Deprecated since 2023 commit d343a2b639

Change-Id: I39359e4abfff7e39f191fad70527d7093541ee82
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1976
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 15bfca0f935599c16d75f2a84cd6aa90cff108bf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205525
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-22 14:02:28 +02:00
Gabor Kelemen 60a1d21386 [API CHANGE] Drop unused ooO::Calc::Filter::Import::MS_Excel group
as noted in commit 95b4adadad87f721e9de1b1d57ad42d1a7826370
these are long dead:

    related code was removed in 2017:
            commit 98c4cd372b
            loplugin:unusedfields improve write-only analysis
    and 2015:
            commit 96d44c9b07
            loplugin:unusedmethods sc

Change-Id: Ia083bbe32fd9a789ebf27972fc580c4e6def48e1
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1973
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 0f5a0e3d53c743220fe422147b83bfb4eb4aff90)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205524
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 14:02:20 +02:00
Gabor Kelemen ce60bdcdae Drop unused Impress/Draw::Snap::Object::Grid key
Seems to have been already unused in 2002
commit abbee0cf48

Change-Id: I6a69839f38a0bc0b66ad79866c2f1bd1f9d355a3
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1974
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit f0e0009f5ab3729e1253bb72507e8c88c066a988)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167808
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 14:01:59 +02:00
Gabor Kelemen 4892c84107 [API CHANGE] Drop unused property ooO::Writer::FilterFlags::WinWord::WWFT
This was added in 2000
commit 7b0b5cdfee
and its use already disappeared by 2002
commit c4e41d5678
where the nIniFtSiz variable whose value
could have been changed with this key, was removed

Change-Id: I5364ecea0fc824b486d26843de42944656f5dc39
Signed-off-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1643
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit ee70deb7a1bc0b88b6ba27431d8593887e1a52bf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205503
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-22 01:07:25 +02:00
Gabor Kelemen 3fa3e42945 [API CHANGE] Drop unused property ooO::Writer::FilterFlags::WinWord::WWWR
Not used since 2004:
commit 7dccaf478c

Change-Id: I24e3cd9663fe44dd2787ab968f70851942a2a817
Signed-off-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1641
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 64c7a2fda10186b6d8ba7d89eeb1256d64ab8f78)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205502
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 01:07:09 +02:00
Gabor Kelemen b6ebe9bc7f Drop unused property ooO::Writer::FilterFlags::WinWord::WW1F
Not used since 2014:
commit deb9dd0648
"remove original and unused word for windows 1 filter"

Change-Id: I3e6e6ec667b410df904c9da3b667a99eee8f6409
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1640
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit f9c06be78f37d972f09a4b54fb6b9877010baecd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205501
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 01:06:56 +02:00
Gabor Kelemen 6614d453b3 Remove SwFilterOptions in favor of officecfg calls
also improve readability a bit

Change-Id: I2087db966eb7bcecc0bbe768ba64c469e6a84c33
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1639
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 49ab60f14acd6597b84bdae1e73f153bd564422a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205500
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 01:06:42 +02:00
Gabor Kelemen ab6f22b162 sw: fix missing include in --with-yrs mode
Change-Id: I960891d006eb8e8939d99083bfafac1d6863a9fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201170
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-03-07 19:13:40 +01:00
Gabor Kelemen 997007a1bc Drop #define, use the method call directly
Change-Id: I1e49dfde7b9fb6e1999952919a670c63efc57cdc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199389
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-03-07 19:11:33 +01:00
Gabor Kelemen a9e9175ba6 tdf#146619 Use more forward declarations in include/sfx2
This shaves off some 300M of input
Change-Id: I2fae9ff6c6dab31010986e55365676d4a01f402d

Change-Id: I3b2551a1937929100f25c01c0c416a419e7fbb51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199388
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-23 12:19:48 +01:00
Gabor Kelemen 765b62d331 Remove obsolete IWYU exclusions related to include/cppcanvas
Found with bin/find-unneeded-includes --headersfwd --recursive include/cppcanvas

Change-Id: I292d25511db4805920cb7420faec5bd2558e6d09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199385
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-22 20:59:16 +01:00
Gabor Kelemen eb087d25b3 tdf#146619 Use more forward declarations in include/drawinglayer
Change-Id: I5911dfb1cfc2bfd291758334b69123cfbce559a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199387
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-22 12:08:33 +01:00
Gabor Kelemen 0a42ddbdf1 tdf#146619 Use more forward declarations in include/xmloff
Change-Id: I49e39d669ba77a99b77322275d2e54e211da5b11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199386
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-22 10:42:36 +01:00
Gabor Kelemen 1d9b441da8 tdf#146619 Use more forward declarations in include/framework
Change-Id: I7a41c72fbd16fcde45c59ec19814be7962ded194
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199384
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-21 14:59:51 +01:00
Gabor Kelemen 8017995ea3 tdf#146619 Use more forward declarations in include/sax
Change-Id: I3223a9e8a804c33fe98b0e72e435654f3ccadd88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199382
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-20 21:00:17 +01:00
Gabor Kelemen 49875a0162 Remove obsolete IWYU exclusions related to include/connectivity/
Found with bin/find-unneeded-includes --headersfwd --recursive include/connectivity/

There were no new replacement suggestions

Change-Id: I1548849490d1bad36c46c8dca0f914dfb4960bc0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199383
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-18 19:51:24 +01:00
Gabor Kelemen 77048c10d2 bin/find-unneeded-includes: warn about obsolete header exclusions...
only in headersfwd mode.
This check ran in --headers mode as well, giving contradicting advice
compared to headersfwd mode.

Apply the check only in headersfwd mode for consistency

Change-Id: Icf58bbb6c47d0a736c2da5d253fe292d6e58a427
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199381
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-18 19:51:12 +01:00
Gabor Kelemen 6e9fa580f0 tdf#146619 Use more forward declarations in include/svtools
Change-Id: If91cce7bf7ece7d1c125509118cbbe1a9ee65397
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198971
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-17 09:13:52 +01:00
Gabor Kelemen 94d987edc2 tdf#146619 Use more forward declarations in include/toolkit
Change-Id: I46b4f8c398662b2826f7e4bf90f43750e3569667
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198240
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-07 00:41:15 +01:00
Gabor Kelemen bce3ef60a8 tdf#146619 Use more forward declarations in include/sot/
Change-Id: I6706c7009432d0d8d7bc6f9193d8f020e9aedf25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198239
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-06 19:33:51 +01:00
Gabor Kelemen 2acbedf268 Presenter console: Remove MaskFileName bitmap type
Seems to be unused ever since it was added in 2008
commit a0fe5db965

Change-Id: I709527132997087aae25eb7917f7a6a4523c763c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198071
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-06 16:46:22 +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
Gabor Kelemen d01da6c315 Presenter console: Remove ButtonDownFileName bitmap type
Seems to be unused ever since it was added in 2008
commit b56e182db9

Change-Id: I31b987ed85de973bfdbcc432df98621df9938e82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198070
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-05 17:34:47 +01:00
Gabor Kelemen dd619d0e8d Presenter Console: Drop unused PaneStyle ActiveBottomCalloutPaneStyle & HotSpot
Seems to be unused ever since its 2008 addition in
commit e48a6ceb3f

Drop the related image from icon themes as well.

Also drop the XHotSpot/YHotspot bitmap property, which is also unused now.

Last place "using" them in code was removed in 2025 with
commit b363e27529
"loplugin:unusedfields"

Change-Id: I44950026390f51aa4c498428041a4422d762af53
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198069
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-04 23:28:27 +01:00
Gabor Kelemen eadbdfcb1a Presenter console: simplify configuration access (PresenterScreenFullScreen)
for key
officecfg::Office::Impress::Misc::Start::PresenterScreenFullScreen

Change-Id: I0bb82f799de46398b9ff30d63dde29decfab253f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198068
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-01 22:04:41 +01:00
Gabor Kelemen c511c65434 tdf#146619 Use more forward declarations in include/tools
Change-Id: Iab2938f82a9fd7ef3334d69c4fd07a9d963a9e24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198237
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-01 09:23:01 +01:00
Gabor Kelemen a2ac0b8a27 Presenter console: simplify configuration access (EnablePresenterScreen)
for key officecfg::Office::Impress::Misc::Start::EnablePresenterScreen

Change-Id: I635f6ba593ada4fcc4b2f6c4ba66684ddb98f6b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198067
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-31 23:33:31 +01:00
Gabor Kelemen 8215006a9d tdf#146619 Use more forward declarations in include/ucbhelper/
Change-Id: I233162bb69e95c4b128e8189d1eb490a67c19ffa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198236
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-31 20:55:03 +01:00
Gabor Kelemen 4048c36c29 tdf#146619 Use more forward declarations in include/i18nlangtag/
Change-Id: If59fc8ae20dd1d935adbd17c3cac1b2db142b555
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198235
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-31 20:53:46 +01:00
Gabor Kelemen 384f2a0f46 Presenter console: simplify configuration access (StartAlways)
for key officecfg::Office::PresenterScreen::Presenter::StartAlways

Change-Id: I391ae947aed260eb996144e9a420380fd5fc998f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198066
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-31 19:04:22 +01:00
Gabor Kelemen 7da01c7737 Presenter console: simplify configuration access (InitialViewMode)
for key officecfg::Office::PresenterScreen::Presenter::InitialViewMode

Change-Id: I0af8f0193828149abade00af96df0a98de3f8ee7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198065
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-31 19:04:07 +01:00
Gabor Kelemen 76eb42c5aa tdf#146619 Use more forward declarations in include/svl
This shaves off some 40M of input

Change-Id: I89411ee8d94963ec6bc16fe155c885d2c78ee3a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198233
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-31 16:36:16 +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
Gabor Kelemen 08a5c48853 sc: Remove ScFilterOptions class
- replace its last config key use with officecfg call
- other keys MS_Excel/ColScale and MS_Excel/RowScale seem to be unused,
related code was removed in 2017:
	commit 98c4cd372b
	loplugin:unusedfields improve write-only analysis
and 2015:
	commit 96d44c9b07
	loplugin:unusedmethods sc

Change-Id: I36c8c6e2a99599ad15d722b096fa90718bdc9abc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198440
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-31 11:06:15 +01:00
Gabor Kelemen c765ee9d1a bin/find-unneeded-includes: check if hdl files are considered necessary
spotted while rechecking include/toolkit, some hpp headers are now
not suggested to be replaced by fw declarations incorrectly,
but to be replaced by their matching hdl files.

There is already a rule to skip these automatically, no need to keep such
in exception files

Change-Id: I5df654a9bca3aaaecb4dce444264a6464ca8f3b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198277
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-28 16:53:01 +01:00
Gabor Kelemen eeec01881a bin/find-unneeded-includes: more generic way to avoid versioned namespaces
Spotted with include/i18nlangtag/languagetagicu.hxx:
iwyu wants to replace unicode/locid.h with namespace icu_78 { class Locale; }
but this is super fragile

Now this works for both this and the older example:
bin/find-unneeded-includes --headersfwd i18npool/inc/breakiterator_unicode.hxx  include/i18nlangtag/languagetagicu.hxx
should give no suggestions

Change-Id: I7d534f106f45bf78f768abbb9d57389c7f413d74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198234
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-28 16:52:44 +01:00
Gabor Kelemen c880d2bec8 Fix some non self contained headers in module sw
Change-Id: I9d6e3fbf5e1cdfe6818662823b5ef6cd25fb96d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196638
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-25 18:56:12 +01:00
Gabor Kelemen f8dad0daf9 tdf#146619 Use more forward declarations in include/vcl/svapp.hxx
this was skipped in previous runs, since it contains some code behind #if

After inspecting these, it seems like the removals should not cause trouble.

Change-Id: If1e3e3c7c0fc14ed6e8b51174a0e7f1220fdbc8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197496
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-25 13:31:57 +01:00
Gabor Kelemen 6178cb8e6f tdf#146619 Use more forward declarations in include/vcl/pdfread.hxx
this was skipped in previous runs, since it contains some code behind #if

After inspecting these, it seems like the removals should not cause trouble.

Change-Id: I8b856cbf7ded7c62634286a53f1ef41e99adb286
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197495
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-24 13:23:19 +01:00
Gabor Kelemen 49cb3077fb tdf#146619 Use more forward declarations in include/vcl/outdev.hxx
these were skipped in previous runs, since they contain some code behind #if

After inspecting these, it seems like the removals should not cause trouble.

This also shaves off some 140M input

Change-Id: Ie1f57174dd6fec3ba5b0b91eb0688acdc1a8143d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197494
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-23 21:27:08 +01:00
Gabor Kelemen 50a7ed2138 Fix some non self contained headers in module vcl
Change-Id: I2bbfd2034333277d7e1e776b5e802c2de9384eb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196640
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-22 23:05:15 +01:00
Gabor Kelemen 3fa280fe1a Fix some non self contained headers in module svl, svtools, svx
Change-Id: I626f88d92236659f53b0b867d9047b33aa5efaea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196637
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-22 11:49:22 +01:00
Gabor Kelemen 96cb87ca01 tdf#146619 Use more forward declarations in include/vcl/[a-o]
these were skipped in previous runs, since they contain some code behind #if

After inspecting these, it seems like the removals should not cause trouble.

Change-Id: I867ffc53254057e4bae43690214a2ab7ce0caa8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197493
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-22 09:42:36 +01:00
Gabor Kelemen 1ebbe671ec Fix some non self contained headers in module toolkit, ucb, xmloff
Change-Id: Icedeb3f714e6da21d256f5ee26638b327e2c09d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196639
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-21 22:50:37 +01:00
Gabor Kelemen 08e020f4d7 Fix some non self contained headers in module sfx2, starmath
Change-Id: I7f604730a758a69a84d489a97f1b0dc85a63208a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196636
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-18 23:46:15 +01:00
Gabor Kelemen d1d399ab50 Presenter Console: simplify Help string handling
No need to store these in the configuration

Change-Id: I1790f544e337854d1e921bc4fc98aa37952ad067
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197052
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-18 17:49:35 +01:00
Gabor Kelemen c8cc15d483 Fix some non self contained headers in module sd sdext
Change-Id: Ib574b48a30baa4d7bd7609cf31063fe860703a8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196635
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-18 17:46:26 +01:00
Gabor Kelemen c1caac6cd6 Fix some non self contained headers in module sal sc
Change-Id: I9c3d383cbe205ec1b11f9e61b299d76fd079ea57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196634
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-18 17:46:12 +01:00
Gabor Kelemen 808c3ace57 Simplify string access in Presenter Console
No need to store static UI strings in the registry

Change-Id: Ief7ab77a8e854a89a9f8b28a4b56dda13e8c8774
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197017
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-18 14:39:20 +01:00
Gabor Kelemen 3fc666e120 Fix some non self contained headers in modules [a-r]*
Change-Id: I844cfcfa2bc31fae0256e0c7b757b6223ac8ac35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196633
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-18 00:34:04 +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
Gabor Kelemen beb6cd86c9 [API CHANGE] Remove ooO::PresenterScreen::Presenter::Accessibility set
This is a followup to commit e896bbbd55
where use of these strings was removed, now the API can go as well

The DUMMY_NO_MORE_USED strings were also picked up for translation,
this issue is gone too.

Change-Id: I28736125f68615bd1612ee013cf5f8d5b3d5c85f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197016
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-17 14:38:31 +01:00
Gabor Kelemen 47fe1cce1b tdf#146619 Use more forward declarations in include/vcl/[h-p]*
Found after running bin/find-unneeded-includes --headersfwd include/vcl/[n-p]*

Change-Id: If6436f3ef8300693c3869c2521e2fa2aa8a4edc8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196397
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-14 10:19:31 +01:00
Gabor Kelemen 2a9fd078ff Add some customAssumeFilenames to yaml files
After checking all modules with
bin/find-unneeded-includes --finderrors --headers --recursive

these subdirectories seemed to need custom assumes for an
error free run of IWYU

Change-Id: I8e0553355809e49e3ec3d06aa4404e6cd7b72aff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196631
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-12 11:21:38 +01:00
Gabor Kelemen 0941cb8a0b bin/find-unneeded-includes: Improve exclusion lists
Add several paths to skip checking under Linux

This is preparation to integrate this script into CI,
so that it does not report error on headers that are
entirely Win/Mac/IOS/Android/... specific.

Change-Id: Ia1493b57e0e7eef70770d4a5b4b634dd82611c05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196632
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2026-01-12 09:46:16 +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 3792b5f59a Remove Presenter Console extension dependency info
Since it is not an independent extension anymore
it makes no sense to check for Office version

Change-Id: I660e437356e68934f74feaaeeb6cd96979056daf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196941
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-01-11 14:40:42 +01:00
Gabor Kelemen e24f4a74b6 find-unusedheaders.sh: give less false warnings
- filter out two modules without relevant files
- search for files in include not in path/file.h
format, but only as file.h as seen with basctl/basctldllapi.h

Change-Id: I42192cc6d923132778ad46271c725bd7049b1bb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193423
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-07 12:19:29 +01:00
Gabor Kelemen 8ada5793ce Drop ImplDbgCheckWindow method
Last use of this was removed in 2013 with
commit c0125d64cb

"VCL : Remove usage of DBG_CTOR and DBG_DTOR."

Change-Id: Ibb2f02a1ede6eee2bcc76da22b429e600e347c8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196530
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-06 10:02:55 +01:00
Gabor Kelemen 4a9c718382 tdf#146619 Use more forward declarations in include/vcl/[a-c]*
Found after running bin/find-unneeded-includes --headersfwd include/vcl/[a-c]*

Change-Id: Ib54f3eb80d6575d6a120fedbdbd9e1ad77b229ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196394
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-06 10:02:26 +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
Gabor Kelemen 189b453f0d tdf#146619 Run IWYU again on include/vcl
Change-Id: Ifc2e059e7ea3f47a795a24505643ef52d2350023
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196233
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-03 17:32:04 +01:00
Gabor Kelemen e57189f9c1 bin/find-unneeded-includes: improve headersfwd mode
- give warning if a header is skipped because it contains #if defs
- give an option to still check those (together with --noexclude)

Change-Id: I9e878b213300a53b6236325f2bafb280f8b0290f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196396
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-03 14:26:42 +01:00
Gabor Kelemen 930ff2b830 bin/find-unneeded-includes: make --headersfwd work without --recursive
Also add text=True for good output - previously, this did not work at all
(it let include/vcl/BitmapTools.hxx checked, see it in subsequent patch)

Previously this check was placed a bit incorrectly, which made
it run only if both --headersfwd and --recursive was provided

Now it runs with simple glob patterns too, such as:
bin/find-unneeded-includes --headersfwd include/vcl/[A-Z]*

Change-Id: Ib8a5209bac553a74137e3a4ac6fdf88319b03982
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196234
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-02 19:57:07 +01:00
Gabor Kelemen beb52a2679 tdf#146619 Run IWYU again on include/vbahelper
Change-Id: I95704033b0c79ee64375fc383edfc2aecabcc970
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193919
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-30 23:08:44 +01:00
Gabor Kelemen 8439cf1292 tdf#146619 Run IWYU again on include/xmloff
Change-Id: I8d66d58c1c421724d8e6df7e9a045d518da85f38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193921
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-30 23:08:31 +01:00
Gabor Kelemen 3f934b915b tdf#146619 Run IWYU again on include/vcl
Change-Id: Ib5d14de3736629d5879a4f808361a221ede6ddd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193920
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-30 23:08:20 +01:00
Gabor Kelemen 3db02bc3eb tdf#146619 Run IWYU again on include/tools
Change-Id: I5110d7dd84914ee95ce9170e9b872b2184bc0d9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193917
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-30 23:08:05 +01:00
Gabor Kelemen b8e479587e tdf#146619 Run IWYU again on include/svtools/
Change-Id: I72523eb80910c808bef4be44d2efa0eec567cb14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193915
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-30 19:40:38 +01:00
Gabor Kelemen c244774744 tdf#146619 Run IWYU again on include/u*
Change-Id: Iaa4b507049ae33fb300a86075b69534bb0588c17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193918
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2025-11-30 18:26:00 +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
Gabor Kelemen b42aef5df3 tdf#146619 Run IWYU again on include/sot/
Change-Id: I10ac9a7bcd0727a549943227a454475148f36b97
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193913
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2025-11-29 14:12:45 +01:00
Gabor Kelemen 4d24007632 tdf#146619 Run IWYU again on include/svl/
Change-Id: I5dc8757a6d06ab6917a9af733550295008fde5b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193914
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2025-11-29 13:59:05 +01:00
Gabor Kelemen 0e23c51d58 tdf#146619 Run IWYU again on include/oox/
Change-Id: I9fa88811687e4109e5708bd1925b60844ff7f6d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193911
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-29 13:28:01 +01:00
Gabor Kelemen 11f2f77266 tdf#146619 Run IWYU again on include/sfx2/
Change-Id: Ib45adb64f9da6e54ecf204332a43d7fb23dacf8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193912
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2025-11-29 11:35:04 +01:00
Gabor Kelemen 3bc5f3beb8 bin/find-unneeded-includes: drop --continue option
I find it nowadays rather inconvenient to use it
almost always

Change-Id: Ibcc196c12ec128eac7ec6fee3f4ba8eba7f43b1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194388
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2025-11-24 08:57:51 +01:00
Gabor Kelemen 4b1ef239c4 Revert "Unbreak build on sdext translations"
This reverts commit e72efd1527.

Reason for revert: translations repo update added the missing sdext.po 
files in commit 510e00c2a2d916e56a05a6d09ba28633ec9f23f1

Change-Id: Ib409fbb9f2d9e36940d5d77aab6a7c48f422438d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194291
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2025-11-23 20:01:05 +01:00
Gabor Kelemen c1946a911f tdf#146619 Run IWYU again on include/o3tl
Change-Id: Ied0d3675a517df858d4d50340abb53636b2d450f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192746
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-23 19:25:21 +01:00
Gabor Kelemen 57f62d87f1 bin/find-unneeded-includes: stop checking for debug and bits
prefixes of standard library headers

I'm not seeing these errors anymore in fresh v0.24+ IWYU's output

Change-Id: I5e5917641bf9b00309fa9dafebebf70176ece4ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192751
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-14 10:03:30 +01:00
Gabor Kelemen a0b1ef4836 tdf#169397 Don't crash if SecureURL setting is locked down
Change-Id: I7525d46ded0eac7572e8e49809c85e3721586570
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193844
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2025-11-12 14:51:24 +01:00
Gabor Kelemen ae6920c194 tdf#169367 Don't crash on dialog close if ShowTipOfTheDay is locked down
Change-Id: Ib8ba4f24fdd5ba4ca4e10578fbc26d084bf0b0bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193745
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2025-11-11 09:01:29 +01:00
Gabor Kelemen e72efd1527 Unbreak build on sdext translations
Change-Id: I1280b736c14b4d26048462212b713340608d783d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193771
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2025-11-11 06:24:26 +01:00
Gabor Kelemen f86a784f8f tdf#61950 Move Presentation Minimizer UI strings out of officecfg
Change-Id: I8a9bba8cdde89a87340ed9dd46dbac53b6806e9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193654
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2025-11-10 15:32:38 +01:00
Gabor Kelemen 3896908d68 tdf#146619 Run IWYU again on include/[f-i]*
Change-Id: Id9ee32e8583c3917fbe927a070f5ad3b5f6f3b9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192745
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-08 22:01:12 +01:00
Gabor Kelemen 861614d753 [API CHANGE] Remove SnapGrid groups and SizeToGrid option
in Impress/Draw and Calc respectively.
org.openoffice.Office.Calc/Grid/Option/SizeToGrid
org.openoffice.Office.Draw/Grid/SnapGrid/Size
org.openoffice.Office.Impress/Grid/SnapGrid/Size

Seems like ever since "initial import" these were doing nothing
useful.

Change-Id: I5cf6bb7e4c4f91e57b6dba3c9ad7e7774f05e87b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191852
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2025-11-08 22:00:30 +01:00
Gabor Kelemen 93f7837306 Fix some non self contained headers in include/
for future IWYU treatment

Change-Id: I0261f2c8b2597f0144a3a2a3d6bfdff13492da01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192752
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-08 09:37:47 +01:00
Gabor Kelemen fd2e467ba3 tdf#146619 Run IWYU in fw decl mode on include/[a-c]*
After recent commit 851fb75779
recheck these directories in include/ again
to test drive the new --headersfwd mode of bin/find-unneeded-includes

Change-Id: I0ede437c4f9958cd98210ed1760a5b98ea8bd1ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192377
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-08 09:37:19 +01:00
Gabor Kelemen 980437e738 bin/find-unneeded-includes: exclude some paths from checking
individual files and dirs with many files as well,
if they are related to any non-linux build, such as
Win, Mac, Emscripten, IOS, Android

Preparation for making this everybody elses problem,
but for now, only on linux builders

Change-Id: I94b0c76a8d7043538df930379e0703af7416bb3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192750
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-11-07 08:36:42 +01:00
Gabor Kelemen 1216a0e465 Add some customAssumeFilenames to include/
to increase IWYU coverage to some silently failing corner cases
found with bin/find-unneeded-includes --finderrors mode

Change-Id: Ifd85fceb56ff60c6e33229c36a427c3987778f67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192749
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-06 20:52:23 +01:00
Gabor Kelemen fc989238e5 bin/find-unneeded-includes: another method against obsolete exclusions
Spotted with include/o3tl/vector_utils.hxx
it can happen that IWYU starts to consider a header having
all correct includes, in this case it does not give a list of
proposals.

This makes the previous method of spotting obsolete exclusions
ineffective in these cases.

Start watching for the "foo.hxx has correct #includes/fwd-decls"
announcement and consider every exclusion as obsolete

Change-Id: I46dd8dd4e2765a972ceaa7aa950d92c9e0a2d1b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192747
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-06 19:28:39 +01:00
Gabor Kelemen fdcc566a01 tdf#169097 Add "Text along Path" command
to connector objects context menu in Impress/Draw

Change-Id: Iefdb46c3b6589d0b6ab4611717049d699082d4c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193123
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
2025-11-03 09:38:07 +01:00
Gabor Kelemen ccfebc2718 bin/find-unneeded-includes: add assumeDirs support in yaml file
There are cases when a modules certain header files need
some other include search path than the single assumeFile provides

This is visible when one runs in the --finderrors mode
and the detailed IWYU run complains like:

include/oox/export/drawingml.hxx:39:10: fatal error: 'oox/token/tokens.hxx' file not found

Solve this by introducing assumeDirs in the yaml files, which provides
a different assumeFile for headers in certain directories

Demo on vcl/inc/qt[56] and sw/source/writerfilter;
also with fixing the few identified non-self contained headers there

Change-Id: Idf7cc38fe7d96d89dabcad9d5abd65283622ab96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192748
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-10-30 10:07:22 +01:00
Gabor Kelemen 607cb95dd5 bin/find-unneeded-includes: bring back forward declaration suggestions
In headers only, in order to shave off even more headers from build

Put this behind a new option and skip headers that have '#if' in them, indicating
config or platform dependent code of any kind - this is fragile, so let's skip it.

Change-Id: I74777a2a2b0aef9c17fd7542f2c405f7536fe4ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192182
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-10-16 12:00:19 +02:00
Gabor Kelemen 85148426ab bin/find-unneeded-includes: skip versioned namespace
This has led to
commit 62a9df7473
"find-unneded-includes: avoid replacing includes with forward-declarations"

now the replacement of unicode/regex.h with a versioned namespace is not suggested

Change-Id: Ic30954561739591bd483382ed75a56f5901ac993
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192428
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2025-10-15 13:26:27 +02:00
Gabor Kelemen a20e7520c3 Sanity check all IwyuFilter files
This should not complain anymore:

for i in $(ls -1 */*yaml) ; do mod=$(echo "$i" | cut -d '/' -f1 ) ; bin/find-unneeded-includes --sanitycheck "$mod"; done

Change-Id: I5c4b99f5cb58c6f696b127c81edd6d323104cd7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191829
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-10-14 19:44:19 +02:00
Gabor Kelemen a103d92643 bin/find-unneeded-includes: don't trip on BOX2D_HEADER in --sanitycheck
This is tricky because a header name is defined in a macro
and I had an exclusion for this external libs wrapper header.

But --sanitycheck does not see that, as it looks for presence of
exclusion list items.

Move the exclusion into the script, so that find-unneeded-includes
ignores it when checking the IWYU output and --sanitycheck does not
have to deal with this special rare case

Change-Id: I55d61630dd63a48d9b264df4b714dad999d1eacd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191827
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
2025-10-14 11:04:01 +02:00
Gabor Kelemen 994e4d464d bin/find-unneeded-includes: better warning message
about obsolete exclusions in --sanitycheck mode

Change-Id: I46cf965bae1f6d5b7d8ca0c5c77c1f5ab2dbe3e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191828
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-10-14 11:03:22 +02:00