summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2022-01-16 15:29:00 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2022-01-17 01:33:35 +0100
commite3206e67402f623bac17ca94a20dfb45391dcb48 (patch)
tree9760a8e135bd39a916a1931445a04df26c1fe324 /framework
parent52443996eff721e612ac4afc1eb1a53bb8a3e06f (diff)
Recheck modules [e-f]* with IWYU
See tdf#42949 for motivation Change-Id: I49a3ce10dee4b03f99156f5b641f69448e1d5617 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128479 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/acceleratorconst.h2
-rw-r--r--framework/inc/helper/tagwindowasmodified.hxx1
-rw-r--r--framework/inc/protocols.h1
-rw-r--r--framework/inc/stdtypes.h2
-rw-r--r--framework/inc/targets.h2
-rw-r--r--framework/inc/taskcreatordefs.hxx2
-rw-r--r--framework/inc/uielement/fontsizemenucontroller.hxx2
-rw-r--r--framework/inc/xml/toolboxconfigurationdefines.hxx2
-rw-r--r--framework/source/dispatch/windowcommanddispatch.cxx1
-rw-r--r--framework/source/fwe/helper/actiontriggerhelper.cxx2
-rw-r--r--framework/source/fwe/helper/titlehelper.cxx3
-rw-r--r--framework/source/fwe/xml/statusbardocumenthandler.cxx1
-rw-r--r--framework/source/fwe/xml/toolboxdocumenthandler.cxx2
-rw-r--r--framework/source/helper/tagwindowasmodified.cxx1
-rw-r--r--framework/source/helper/wakeupthread.cxx2
-rw-r--r--framework/source/services/autorecovery.cxx2
-rw-r--r--framework/source/services/frame.cxx1
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx1
-rw-r--r--framework/source/uiconfiguration/uiconfigurationmanager.cxx1
-rw-r--r--framework/source/uielement/controlmenucontroller.cxx2
-rw-r--r--framework/source/uielement/fontmenucontroller.cxx1
-rw-r--r--framework/source/uielement/thesaurusmenucontroller.cxx2
-rw-r--r--framework/source/uielement/toolbarmodemenucontroller.cxx2
-rw-r--r--framework/source/uielement/toolbarsmenucontroller.cxx3
-rw-r--r--framework/source/uifactory/addonstoolbarfactory.cxx1
-rw-r--r--framework/source/xml/acceleratorconfigurationreader.cxx2
-rw-r--r--framework/source/xml/acceleratorconfigurationwriter.cxx1
-rw-r--r--framework/source/xml/imagesdocumenthandler.cxx2
28 files changed, 11 insertions, 36 deletions
diff --git a/framework/inc/acceleratorconst.h b/framework/inc/acceleratorconst.h
index 83fd40ac77f7..55f9435ffa51 100644
--- a/framework/inc/acceleratorconst.h
+++ b/framework/inc/acceleratorconst.h
@@ -19,6 +19,8 @@
#pragma once
+#include <rtl/ustring.hxx>
+
namespace framework{
inline constexpr OUStringLiteral ATTRIBUTE_TYPE_CDATA = u"CDATA";
diff --git a/framework/inc/helper/tagwindowasmodified.hxx b/framework/inc/helper/tagwindowasmodified.hxx
index 1528c63c5b18..e8c9fff22da9 100644
--- a/framework/inc/helper/tagwindowasmodified.hxx
+++ b/framework/inc/helper/tagwindowasmodified.hxx
@@ -26,7 +26,6 @@
#include <com/sun/star/util/XModifiable.hpp>
#include <cppuhelper/implbase.hxx>
-#include <cppuhelper/weakref.hxx>
#include <vcl/window.hxx>
namespace framework{
diff --git a/framework/inc/protocols.h b/framework/inc/protocols.h
index 30d87cc59336..bbadb7e71888 100644
--- a/framework/inc/protocols.h
+++ b/framework/inc/protocols.h
@@ -26,7 +26,6 @@
#include <string_view>
#include <o3tl/string_view.hxx>
-#include <rtl/ustring.hxx>
namespace framework{
diff --git a/framework/inc/stdtypes.h b/framework/inc/stdtypes.h
index 0ccc056cf605..265daba7786e 100644
--- a/framework/inc/stdtypes.h
+++ b/framework/inc/stdtypes.h
@@ -21,8 +21,6 @@
#include <com/sun/star/awt/KeyEvent.hpp>
-#include <rtl/ustring.hxx>
-
namespace framework{
/**
diff --git a/framework/inc/targets.h b/framework/inc/targets.h
index 5627a07cf2a5..9d7ffb9ef4d5 100644
--- a/framework/inc/targets.h
+++ b/framework/inc/targets.h
@@ -19,6 +19,8 @@
#pragma once
+#include <rtl/ustring.hxx>
+
namespace framework{
// Values for special frame search ... sTargetFrameName of findFrame() or queryDispatch() or loadComponentFromURL()
diff --git a/framework/inc/taskcreatordefs.hxx b/framework/inc/taskcreatordefs.hxx
index e07c03d6dd2b..262de19f56fb 100644
--- a/framework/inc/taskcreatordefs.hxx
+++ b/framework/inc/taskcreatordefs.hxx
@@ -19,6 +19,8 @@
#pragma once
+#include <rtl/ustring.hxx>
+
/// [XFrame] if it's set, it will be used as parent frame for the new created frame.
inline constexpr OUStringLiteral ARGUMENT_PARENTFRAME = u"ParentFrame"; // XFrame
diff --git a/framework/inc/uielement/fontsizemenucontroller.hxx b/framework/inc/uielement/fontsizemenucontroller.hxx
index 16d29a885db0..d04bc637a388 100644
--- a/framework/inc/uielement/fontsizemenucontroller.hxx
+++ b/framework/inc/uielement/fontsizemenucontroller.hxx
@@ -27,8 +27,6 @@
#include <rtl/ustring.hxx>
#include <tools/long.hxx>
-#include <memory>
-
namespace framework
{
class FontSizeMenuController final : public svt::PopupMenuControllerBase
diff --git a/framework/inc/xml/toolboxconfigurationdefines.hxx b/framework/inc/xml/toolboxconfigurationdefines.hxx
index 4d2eaffd2a0a..399693044ec3 100644
--- a/framework/inc/xml/toolboxconfigurationdefines.hxx
+++ b/framework/inc/xml/toolboxconfigurationdefines.hxx
@@ -18,6 +18,8 @@
*/
#pragma once
+#include <rtl/ustring.hxx>
+
#define XMLNS_TOOLBAR "http://openoffice.org/2001/toolbar"
#define XMLNS_XLINK "http://www.w3.org/1999/xlink"
inline constexpr OUStringLiteral XMLNS_TOOLBAR_PREFIX = u"toolbar:";
diff --git a/framework/source/dispatch/windowcommanddispatch.cxx b/framework/source/dispatch/windowcommanddispatch.cxx
index 2764cff556ff..d82ace76f304 100644
--- a/framework/source/dispatch/windowcommanddispatch.cxx
+++ b/framework/source/dispatch/windowcommanddispatch.cxx
@@ -28,7 +28,6 @@
#include <vcl/window.hxx>
#include <vcl/svapp.hxx>
#include <vcl/commandevent.hxx>
-#include <osl/mutex.hxx>
#include <toolkit/helper/vclunohelper.hxx>
namespace framework{
diff --git a/framework/source/fwe/helper/actiontriggerhelper.cxx b/framework/source/fwe/helper/actiontriggerhelper.cxx
index fdacff5e3327..82f5d558f3be 100644
--- a/framework/source/fwe/helper/actiontriggerhelper.cxx
+++ b/framework/source/fwe/helper/actiontriggerhelper.cxx
@@ -28,8 +28,6 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <toolkit/awt/vclxmenu.hxx>
#include <tools/stream.hxx>
-#include <comphelper/servicehelper.hxx>
-#include <cppuhelper/weak.hxx>
#include <vcl/dibtools.hxx>
#include <vcl/graph.hxx>
#include <vcl/svapp.hxx>
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx
index ac3a8d830cc4..740d98a753ec 100644
--- a/framework/source/fwe/helper/titlehelper.cxx
+++ b/framework/source/fwe/helper/titlehelper.cxx
@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <config_features.h>
-
#include <framework/titlehelper.hxx>
#include <classes/fwkresid.hxx>
#include <strings.hrc>
@@ -38,7 +36,6 @@
#include <rtl/ustrbuf.hxx>
#include <osl/mutex.hxx>
#include <tools/urlobj.hxx>
-#include <vcl/skia/SkiaHelper.hxx>
#include <vcl/svapp.hxx>
diff --git a/framework/source/fwe/xml/statusbardocumenthandler.cxx b/framework/source/fwe/xml/statusbardocumenthandler.cxx
index eb1542287d2b..c982267d834b 100644
--- a/framework/source/fwe/xml/statusbardocumenthandler.cxx
+++ b/framework/source/fwe/xml/statusbardocumenthandler.cxx
@@ -27,7 +27,6 @@
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/container/XIndexContainer.hpp>
-#include <vcl/svapp.hxx>
#include <vcl/status.hxx>
#include <comphelper/attributelist.hxx>
diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
index 57e28628273e..9efcc76db60c 100644
--- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx
+++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
@@ -30,8 +30,8 @@
#include <sal/config.h>
#include <sal/macros.h>
-#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
+#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
#include <comphelper/attributelist.hxx>
diff --git a/framework/source/helper/tagwindowasmodified.cxx b/framework/source/helper/tagwindowasmodified.cxx
index 33a722a725eb..b113c4b96f6d 100644
--- a/framework/source/helper/tagwindowasmodified.cxx
+++ b/framework/source/helper/tagwindowasmodified.cxx
@@ -21,7 +21,6 @@
#include <com/sun/star/awt/XWindow.hpp>
-#include <com/sun/star/util/XModifyBroadcaster.hpp>
#include <com/sun/star/frame/FrameAction.hpp>
#include <toolkit/helper/vclunohelper.hxx>
diff --git a/framework/source/helper/wakeupthread.cxx b/framework/source/helper/wakeupthread.cxx
index 556d59dbb581..40487c83b88f 100644
--- a/framework/source/helper/wakeupthread.cxx
+++ b/framework/source/helper/wakeupthread.cxx
@@ -21,8 +21,6 @@
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/util/XUpdatable.hpp>
-#include <osl/mutex.hxx>
-#include <osl/time.h>
#include <helper/wakeupthread.hxx>
#include <chrono>
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index 107ce2e2afa5..e63c13073a90 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -96,8 +96,6 @@
#include <officecfg/Office/Recovery.hxx>
#include <officecfg/Setup.hxx>
-#include <stdtypes.h>
-
using namespace css::uno;
using namespace css::document;
using namespace css::frame;
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx
index fde9da72234a..a1e0e745cf54 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -37,7 +37,6 @@
#include <pattern/window.hxx>
#include <properties.h>
-#include <stdtypes.h>
#include <targets.h>
#include <com/sun/star/awt/Toolkit.hpp>
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index fd18bb9b7c06..c60e7d3c1dd2 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -39,7 +39,6 @@
#include <vcl/graph.hxx>
#include <vcl/svapp.hxx>
#include <o3tl/enumrange.hxx>
-#include <osl/mutex.hxx>
#include <comphelper/sequence.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <vcl/filter/PngImageReader.hxx>
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
index d44f4a45d418..b3b443b99d5c 100644
--- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
@@ -33,7 +33,6 @@
#include <com/sun/star/embed/StorageWrappedTargetException.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/lang/IllegalAccessException.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/io/XStream.hpp>
diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx
index a656a9b3846f..2c31081bbe6b 100644
--- a/framework/source/uielement/controlmenucontroller.cxx
+++ b/framework/source/uielement/controlmenucontroller.cxx
@@ -32,8 +32,6 @@
#include <vcl/image.hxx>
#include <svtools/popupmenucontrollerbase.hxx>
#include <osl/mutex.hxx>
-#include <memory>
-#include <string_view>
#include <unordered_map>
#include <classes/fwkresid.hxx>
diff --git a/framework/source/uielement/fontmenucontroller.cxx b/framework/source/uielement/fontmenucontroller.cxx
index 5dfdb4cb7f72..c0dd19e2e71a 100644
--- a/framework/source/uielement/fontmenucontroller.cxx
+++ b/framework/source/uielement/fontmenucontroller.cxx
@@ -26,7 +26,6 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
-#include <toolkit/awt/vclxmenu.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/i18nhelp.hxx>
diff --git a/framework/source/uielement/thesaurusmenucontroller.cxx b/framework/source/uielement/thesaurusmenucontroller.cxx
index efc7f76204f6..fb7f3175ae5d 100644
--- a/framework/source/uielement/thesaurusmenucontroller.cxx
+++ b/framework/source/uielement/thesaurusmenucontroller.cxx
@@ -23,7 +23,7 @@
#include <sal/log.hxx>
#include <svl/lngmisc.hxx>
#include <svtools/popupmenucontrollerbase.hxx>
-#include <toolkit/awt/vclxmenu.hxx>
+#include <tools/diagnose_ex.h>
#include <unotools/lingucfg.hxx>
#include <vcl/commandinfoprovider.hxx>
diff --git a/framework/source/uielement/toolbarmodemenucontroller.cxx b/framework/source/uielement/toolbarmodemenucontroller.cxx
index 0a52ac084ccb..0bc41af3e05c 100644
--- a/framework/source/uielement/toolbarmodemenucontroller.cxx
+++ b/framework/source/uielement/toolbarmodemenucontroller.cxx
@@ -30,11 +30,9 @@
#include <vcl/svapp.hxx>
#include <vcl/EnumContext.hxx>
#include <rtl/ustrbuf.hxx>
-#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/types.hxx>
-#include <svtools/miscopt.hxx>
#include <unotools/confignode.hxx>
#include <cppuhelper/supportsservice.hxx>
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx
index 5ac74c19ea86..73e3689e4714 100644
--- a/framework/source/uielement/toolbarsmenucontroller.cxx
+++ b/framework/source/uielement/toolbarsmenucontroller.cxx
@@ -44,15 +44,12 @@
#include <comphelper/propertyvalue.hxx>
#include <officecfg/Office/Common.hxx>
#include <vcl/svapp.hxx>
-#include <vcl/image.hxx>
#include <vcl/settings.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <rtl/ustrbuf.hxx>
-#include <sal/log.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/window.hxx>
#include <unotools/cmdoptions.hxx>
-#include <svtools/miscopt.hxx>
#include <unotools/collatorwrapper.hxx>
#include <unotools/syslocale.hxx>
#include <cppuhelper/supportsservice.hxx>
diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx
index 399f2e50872d..655cf1843491 100644
--- a/framework/source/uifactory/addonstoolbarfactory.cxx
+++ b/framework/source/uifactory/addonstoolbarfactory.cxx
@@ -26,7 +26,6 @@
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/frame/XModuleManager2.hpp>
#include <com/sun/star/frame/XFrame.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/ui/XUIElementFactory.hpp>
diff --git a/framework/source/xml/acceleratorconfigurationreader.cxx b/framework/source/xml/acceleratorconfigurationreader.cxx
index ea31cd6b1d0d..ad6bc7259a4a 100644
--- a/framework/source/xml/acceleratorconfigurationreader.cxx
+++ b/framework/source/xml/acceleratorconfigurationreader.cxx
@@ -27,8 +27,6 @@
#include <com/sun/star/awt/KeyModifier.hpp>
#include <com/sun/star/awt/KeyEvent.hpp>
-#include <rtl/ustrbuf.hxx>
-
namespace framework{
/* Throws a SaxException in case a wrong formatted XML
diff --git a/framework/source/xml/acceleratorconfigurationwriter.cxx b/framework/source/xml/acceleratorconfigurationwriter.cxx
index 6092d40d5b54..19d09ce97993 100644
--- a/framework/source/xml/acceleratorconfigurationwriter.cxx
+++ b/framework/source/xml/acceleratorconfigurationwriter.cxx
@@ -25,7 +25,6 @@
#include <acceleratorconst.h>
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <com/sun/star/awt/KeyModifier.hpp>
#include <comphelper/attributelist.hxx>
diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx
index 2c0716d8eb47..30f178416cae 100644
--- a/framework/source/xml/imagesdocumenthandler.cxx
+++ b/framework/source/xml/imagesdocumenthandler.cxx
@@ -22,7 +22,7 @@
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
#include <com/sun/star/xml/sax/SAXException.hpp>
-#include <vcl/svapp.hxx>
+#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
#include <comphelper/attributelist.hxx>