include/IwyuFilter_include.yaml             |    3 +++
 include/sfx2/filedlghelper.hxx              |    1 -
 include/sfx2/lokunocmdlist.hxx              |    1 +
 include/sfx2/module.hxx                     |    1 -
 include/sfx2/msg.hxx                        |    1 -
 include/sfx2/notebookbar/SfxNotebookBar.hxx |    2 --
 include/sfx2/sfxbasemodel.hxx               |    2 +-
 include/sfx2/sidebar/ResourceManager.hxx    |    1 -
 sfx2/source/sidebar/ResourceManager.cxx     |    1 +
 9 files changed, 6 insertions(+), 7 deletions(-)

New commits:
commit 11f2f77266695de5447354e5f26313defd83dd9b
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Fri Nov 7 00:18:16 2025 +0100
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Sat Nov 29 11:35:04 2025 +0100

    tdf#146619 Run IWYU again on include/sfx2/
    
    Change-Id: Ib45adb64f9da6e54ecf204332a43d7fb23dacf8f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193912
    Reviewed-by: Gabor Kelemen <[email protected]>
    Tested-by: Jenkins

diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml
index f085ca521c0a..039fa82a8152 100644
--- a/include/IwyuFilter_include.yaml
+++ b/include/IwyuFilter_include.yaml
@@ -545,6 +545,9 @@ excludelist:
     include/drawinglayer/primitive3d/baseprimitive3d.hxx:
     # base class has to be a complete type
     - com/sun/star/graphic/XPrimitive3D.hpp
+    include/sfx2/childwin.hxx:
+    # Needed in macro #define
+    - comphelper/lok.hxx
     include/sfx2/dinfdlg.hxx:
     # Needed for implicit dtor
     - com/sun/star/document/CmisProperty.hpp
diff --git a/include/sfx2/filedlghelper.hxx b/include/sfx2/filedlghelper.hxx
index 253c86e057bb..123f16531aa4 100644
--- a/include/sfx2/filedlghelper.hxx
+++ b/include/sfx2/filedlghelper.hxx
@@ -33,7 +33,6 @@
 
 #include <memory>
 #include <optional>
-#include <vector>
 
 namespace com::sun::star::ui::dialogs
 {
diff --git a/include/sfx2/lokunocmdlist.hxx b/include/sfx2/lokunocmdlist.hxx
index 34fd3f52985f..44bd72dfdc58 100644
--- a/include/sfx2/lokunocmdlist.hxx
+++ b/include/sfx2/lokunocmdlist.hxx
@@ -10,6 +10,7 @@
 #include <sfx2/dllapi.h>
 #include <string_view>
 #include <map>
+#include <string_view>
 
 enum class PayloadType
 {
diff --git a/include/sfx2/module.hxx b/include/sfx2/module.hxx
index 1d8cc18c405d..07aa35401935 100644
--- a/include/sfx2/module.hxx
+++ b/include/sfx2/module.hxx
@@ -19,7 +19,6 @@
 #pragma once
 
 #include <memory>
-#include <optional>
 #include <sal/config.h>
 #include <sfx2/dllapi.h>
 #include <sfx2/shell.hxx>
diff --git a/include/sfx2/msg.hxx b/include/sfx2/msg.hxx
index 9b84bb62b27e..21e108a4b2e3 100644
--- a/include/sfx2/msg.hxx
+++ b/include/sfx2/msg.hxx
@@ -24,7 +24,6 @@
 #include <sfx2/dllapi.h>
 #include <o3tl/typed_flags_set.hxx>
 #include <sfx2/groupid.hxx>
-#include <functional>
 
 #include <climits>
 
diff --git a/include/sfx2/notebookbar/SfxNotebookBar.hxx 
b/include/sfx2/notebookbar/SfxNotebookBar.hxx
index b19db5d2cf2d..b7d2e769ddb2 100644
--- a/include/sfx2/notebookbar/SfxNotebookBar.hxx
+++ b/include/sfx2/notebookbar/SfxNotebookBar.hxx
@@ -13,10 +13,8 @@
 #include <sfx2/dllapi.h>
 #include <rtl/ustring.hxx>
 #include <vcl/notebookbar/notebookbar.hxx>
-#include <vcl/WeldedTabbedNotebookbar.hxx>
 #include <vcl/EnumContext.hxx>
 
-#include <memory>
 #include <string_view>
 
 namespace com::sun::star::frame
diff --git a/include/sfx2/sfxbasemodel.hxx b/include/sfx2/sfxbasemodel.hxx
index 7f1ca213a7b1..874367b9a4a2 100644
--- a/include/sfx2/sfxbasemodel.hxx
+++ b/include/sfx2/sfxbasemodel.hxx
@@ -47,7 +47,7 @@
 #include <com/sun/star/view/XPrintJobBroadcaster.hpp>
 #include <com/sun/star/frame/XStorable2.hpp>
 #include <com/sun/star/frame/XLoadable.hpp>
-#include <com/sun/star/lang/EventObject.hpp>
+//#include <com/sun/star/lang/EventObject.hpp>
 #include <com/sun/star/datatransfer/XTransferable.hpp>
 #include <com/sun/star/script/provider/XScriptProviderSupplier.hpp>
 #include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
diff --git a/include/sfx2/sidebar/ResourceManager.hxx 
b/include/sfx2/sidebar/ResourceManager.hxx
index c3ea9abbc940..d1566eb8ae55 100644
--- a/include/sfx2/sidebar/ResourceManager.hxx
+++ b/include/sfx2/sidebar/ResourceManager.hxx
@@ -20,7 +20,6 @@
 
 #include <unotools/confignode.hxx>
 #include <map>
-#include <vcl/EnumContext.hxx>
 #include <vector>
 #include <set>
 
diff --git a/sfx2/source/sidebar/ResourceManager.cxx 
b/sfx2/source/sidebar/ResourceManager.cxx
index 2450332bfc0e..620fdd93b2c3 100644
--- a/sfx2/source/sidebar/ResourceManager.cxx
+++ b/sfx2/source/sidebar/ResourceManager.cxx
@@ -30,6 +30,7 @@
 #include <comphelper/namedvaluecollection.hxx>
 #include <comphelper/sequence.hxx>
 #include <comphelper/types.hxx>
+#include <vcl/EnumContext.hxx>
 
 #include <comphelper/diagnose_ex.hxx>
 #include <sal/log.hxx>

Reply via email to