tdf#42949 Fix IWYU warnings in include/sfx2/sidebar/*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: Ic2bd25bcbcc7f5fb6e29ced70fddb74385b5fb2f
Reviewed-on: https://gerrit.libreoffice.org/70077
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index c5560d8e..2ab7690 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -60,6 +60,7 @@
#include <o3tl/functional.hxx>
#include <limits>
#include <unordered_map>
#include <set>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml
index 3595286d..2359fb6 100644
--- a/include/IwyuFilter_include.yaml
+++ b/include/IwyuFilter_include.yaml
@@ -761,3 +761,41 @@
# base class has to be a complete type
- com/sun/star/frame/XStatusListener.hpp
- com/sun/star/lang/XComponent.hpp
include/sfx2/sidebar/Accessible.hxx:
# base class has to be a complete type
- com/sun/star/accessibility/XAccessible.hpp
include/sfx2/sidebar/Paint.hxx:
# Needed for boost::variant
- vcl/gradient.hxx
include/sfx2/sidebar/SidebarController.hxx:
# base class has to be a complete type
- com/sun/star/ui/XContextChangeEventListener.hpp
- com/sun/star/beans/XPropertyChangeListener.hpp
- com/sun/star/ui/XSidebar.hpp
- com/sun/star/frame/XStatusListener.hpp
- com/sun/star/frame/XFrameActionListener.hpp
include/sfx2/sidebar/SidebarPanelBase.hxx:
# base class has to be a complete type
- com/sun/star/ui/XContextChangeEventListener.hpp
- com/sun/star/ui/XUIElement.hpp
- com/sun/star/ui/XToolPanel.hpp
- com/sun/star/ui/XSidebarPanel.hpp
- com/sun/star/ui/XUpdateModel.hpp
include/sfx2/sidebar/Theme.hxx:
# base class has to be a complete type
- com/sun/star/beans/XPropertySet.hpp
include/sfx2/sidebar/UnoDeck.hxx:
# base class has to be a complete type
- com/sun/star/ui/XDeck.hpp
include/sfx2/sidebar/UnoDecks.hxx:
# base class has to be a complete type
- com/sun/star/ui/XDecks.hpp
include/sfx2/sidebar/UnoPanel.hxx:
# base class has to be a complete type
- com/sun/star/ui/XPanel.hpp
include/sfx2/sidebar/UnoPanels.hxx:
# base class has to be a complete type
- com/sun/star/ui/XPanels.hpp
include/sfx2/sidebar/UnoSidebar.hxx:
# base class has to be a complete type
- com/sun/star/ui/XSidebarProvider.hpp
diff --git a/include/sfx2/sidebar/Accessible.hxx b/include/sfx2/sidebar/Accessible.hxx
index 34e4369..a329558 100644
--- a/include/sfx2/sidebar/Accessible.hxx
+++ b/include/sfx2/sidebar/Accessible.hxx
@@ -20,11 +20,12 @@
#define INCLUDED_SFX2_SOURCE_SIDEBAR_ACCESSIBLE_HXX
#include <com/sun/star/accessibility/XAccessible.hpp>
#include <com/sun/star/accessibility/XAccessibleContext.hpp>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
namespace com::sun::star::accessibility { class XAccessibleContext; }
typedef cppu::WeakComponentImplHelper <
css::accessibility::XAccessible
> AccessibleInterfaceBase;
diff --git a/include/sfx2/sidebar/AccessibleTitleBar.hxx b/include/sfx2/sidebar/AccessibleTitleBar.hxx
index 3ed43ab..6172bb4 100644
--- a/include/sfx2/sidebar/AccessibleTitleBar.hxx
+++ b/include/sfx2/sidebar/AccessibleTitleBar.hxx
@@ -20,7 +20,8 @@
#define INCLUDED_SFX2_SOURCE_SIDEBAR_ACCESSIBLETITLEBAR_HXX
#include <toolkit/awt/vclxaccessiblecomponent.hxx>
#include <com/sun/star/accessibility/XAccessible.hpp>
namespace com::sun::star::accessibility { class XAccessible; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/AsynchronousCall.hxx b/include/sfx2/sidebar/AsynchronousCall.hxx
index b42caf5..b05c90d 100644
--- a/include/sfx2/sidebar/AsynchronousCall.hxx
+++ b/include/sfx2/sidebar/AsynchronousCall.hxx
@@ -19,7 +19,6 @@
#ifndef INCLUDED_SFX2_SOURCE_SIDEBAR_ASYNCHRONOUSCALL_HXX
#define INCLUDED_SFX2_SOURCE_SIDEBAR_ASYNCHRONOUSCALL_HXX
#include <tools/solar.h>
#include <tools/link.hxx>
#include <functional>
diff --git a/include/sfx2/sidebar/Context.hxx b/include/sfx2/sidebar/Context.hxx
index aa6b271..05cdf84 100644
--- a/include/sfx2/sidebar/Context.hxx
+++ b/include/sfx2/sidebar/Context.hxx
@@ -21,8 +21,6 @@
#include <rtl/ustring.hxx>
#include <vector>
namespace sfx2 { namespace sidebar {
class Context
diff --git a/include/sfx2/sidebar/ContextList.hxx b/include/sfx2/sidebar/ContextList.hxx
index 08ee70c..fc2f684 100644
--- a/include/sfx2/sidebar/ContextList.hxx
+++ b/include/sfx2/sidebar/ContextList.hxx
@@ -20,7 +20,6 @@
#define INCLUDED_SFX2_SOURCE_SIDEBAR_CONTEXTLIST_HXX
#include <sfx2/sidebar/Context.hxx>
#include <sal/types.h>
#include <rtl/ustring.hxx>
#include <vector>
diff --git a/include/sfx2/sidebar/ControlFactory.hxx b/include/sfx2/sidebar/ControlFactory.hxx
index be010e5..42db108 100644
--- a/include/sfx2/sidebar/ControlFactory.hxx
+++ b/include/sfx2/sidebar/ControlFactory.hxx
@@ -20,16 +20,14 @@
#define INCLUDED_SFX2_SIDEBAR_CONTROLFACTORY_HXX
#include <sfx2/dllapi.h>
#include <sfx2/sidebar/SidebarToolBox.hxx>
#include <vcl/button.hxx>
#include <vcl/vclptr.hxx>
class ToolBox;
class CheckBox;
class ImageRadioButton;
namespace vcl { class Window; }
namespace sfx2 { namespace sidebar {
class ToolBoxBackground;
/** Factory for controls used in sidebar panels.
The reason to use this factory instead of creating the controls
directly is that this way the sidebar has a little more control
diff --git a/include/sfx2/sidebar/ControllerFactory.hxx b/include/sfx2/sidebar/ControllerFactory.hxx
index 83d631a..4dfff75 100644
--- a/include/sfx2/sidebar/ControllerFactory.hxx
+++ b/include/sfx2/sidebar/ControllerFactory.hxx
@@ -20,10 +20,12 @@
#define INCLUDED_SFX2_SIDEBAR_CONTROLLERFACTORY_HXX
#include <sfx2/dllapi.h>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XToolbarController.hpp>
#include <com/sun/star/uno/Reference.hxx>
namespace com::sun::star::awt { class XWindow; }
namespace com::sun::star::frame { class XController; }
namespace com::sun::star::frame { class XFrame; }
namespace com::sun::star::frame { class XToolbarController; }
class ToolBox;
diff --git a/include/sfx2/sidebar/ControllerItem.hxx b/include/sfx2/sidebar/ControllerItem.hxx
index 23a9448..41eec7a9 100644
--- a/include/sfx2/sidebar/ControllerItem.hxx
+++ b/include/sfx2/sidebar/ControllerItem.hxx
@@ -21,7 +21,7 @@
#include <sfx2/ctrlitem.hxx>
#include <com/sun/star/lang/XComponent.hpp>
namespace com::sun::star::lang { class XComponent; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/Deck.hxx b/include/sfx2/sidebar/Deck.hxx
index c8273c5..e3a3570 100644
--- a/include/sfx2/sidebar/Deck.hxx
+++ b/include/sfx2/sidebar/Deck.hxx
@@ -22,8 +22,6 @@
#include <sfx2/sidebar/Panel.hxx>
#include <vcl/window.hxx>
#include <vcl/image.hxx>
#include <com/sun/star/ui/LayoutSize.hpp>
class ScrollBar;
diff --git a/include/sfx2/sidebar/DeckDescriptor.hxx b/include/sfx2/sidebar/DeckDescriptor.hxx
index 086de40..9a20533 100644
--- a/include/sfx2/sidebar/DeckDescriptor.hxx
+++ b/include/sfx2/sidebar/DeckDescriptor.hxx
@@ -19,7 +19,6 @@
#ifndef INCLUDED_SFX2_SOURCE_SIDEBAR_DECKDESCRIPTOR_HXX
#define INCLUDED_SFX2_SOURCE_SIDEBAR_DECKDESCRIPTOR_HXX
#include <vcl/EnumContext.hxx>
#include <sfx2/sidebar/ContextList.hxx>
#include <sfx2/sidebar/Deck.hxx>
diff --git a/include/sfx2/sidebar/DeckLayouter.hxx b/include/sfx2/sidebar/DeckLayouter.hxx
index 27a94dd..1208fb9 100644
--- a/include/sfx2/sidebar/DeckLayouter.hxx
+++ b/include/sfx2/sidebar/DeckLayouter.hxx
@@ -21,19 +21,12 @@
#include <sfx2/sidebar/Panel.hxx>
#include <tools/gen.hxx>
#include <com/sun/star/ui/LayoutSize.hpp>
#include <vector>
class ScrollBar;
namespace vcl { class Window; }
namespace tools { class Rectangle; }
namespace sfx2 { namespace sidebar {
class Panel;
/** Helper for layouting the direct and indirect children of a
deck like title bars, panels, and scroll bars.
*/
diff --git a/include/sfx2/sidebar/DrawHelper.hxx b/include/sfx2/sidebar/DrawHelper.hxx
index f80a0ca..6bf6d17 100644
--- a/include/sfx2/sidebar/DrawHelper.hxx
+++ b/include/sfx2/sidebar/DrawHelper.hxx
@@ -19,11 +19,10 @@
#ifndef INCLUDED_SFX2_SOURCE_SIDEBAR_DRAWHELPER_HXX
#define INCLUDED_SFX2_SOURCE_SIDEBAR_DRAWHELPER_HXX
#include <vcl/window.hxx>
#include <tools/svborder.hxx>
#include <vcl/outdev.hxx>
class Color;
class SvBorder;
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/FocusManager.hxx b/include/sfx2/sidebar/FocusManager.hxx
index a8c5227..5bbb3b0 100644
--- a/include/sfx2/sidebar/FocusManager.hxx
+++ b/include/sfx2/sidebar/FocusManager.hxx
@@ -24,7 +24,6 @@
#include <vcl/keycod.hxx>
class Button;
class VclSimpleEvent;
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/IContextChangeReceiver.hxx b/include/sfx2/sidebar/IContextChangeReceiver.hxx
index b8f6512..a36bb21 100644
--- a/include/sfx2/sidebar/IContextChangeReceiver.hxx
+++ b/include/sfx2/sidebar/IContextChangeReceiver.hxx
@@ -19,9 +19,10 @@
#ifndef INCLUDED_SFX2_SIDEBAR_ICONTEXTCHANGERECEIVER_HXX
#define INCLUDED_SFX2_SIDEBAR_ICONTEXTCHANGERECEIVER_HXX
#include <vcl/EnumContext.hxx>
#include <sfx2/dllapi.h>
namespace vcl { class EnumContext; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/ILayoutableWindow.hxx b/include/sfx2/sidebar/ILayoutableWindow.hxx
index 957601a..ce8b12e 100644
--- a/include/sfx2/sidebar/ILayoutableWindow.hxx
+++ b/include/sfx2/sidebar/ILayoutableWindow.hxx
@@ -20,12 +20,9 @@
#define INCLUDED_SFX2_SIDEBAR_ILAYOUTABLEWINDOW_HXX
#include <sfx2/dllapi.h>
#include <tools/gen.hxx>
#include <sal/types.h>
#include <com/sun/star/ui/LayoutSize.hpp>
namespace vcl { class Window; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/Paint.hxx b/include/sfx2/sidebar/Paint.hxx
index 3328eb4..f693482a 100644
--- a/include/sfx2/sidebar/Paint.hxx
+++ b/include/sfx2/sidebar/Paint.hxx
@@ -21,12 +21,9 @@
#include <vcl/gradient.hxx>
#include <vcl/wall.hxx>
#include <com/sun/star/awt/Gradient.hpp>
#include <boost/variant.hpp>
class Color;
namespace sfx2 { namespace sidebar {
/** Abstraction of different ways to fill outlines.
diff --git a/include/sfx2/sidebar/Panel.hxx b/include/sfx2/sidebar/Panel.hxx
index 119843c..2568745 100644
--- a/include/sfx2/sidebar/Panel.hxx
+++ b/include/sfx2/sidebar/Panel.hxx
@@ -19,22 +19,22 @@
#ifndef INCLUDED_SFX2_SOURCE_SIDEBAR_PANEL_HXX
#define INCLUDED_SFX2_SOURCE_SIDEBAR_PANEL_HXX
#include <sfx2/sidebar/Context.hxx>
#include <sfx2/dllapi.h>
#include <vcl/window.hxx>
#include <com/sun/star/ui/XUIElement.hpp>
#include <com/sun/star/ui/XSidebarPanel.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <vector>
namespace com::sun::star::frame { class XFrame; }
namespace com::sun::star::ui { class XSidebarPanel; }
namespace com::sun::star::ui { class XUIElement; }
namespace com::sun::star::awt { class XWindow; }
namespace sfx2 { namespace sidebar {
class PanelDescriptor;
class TitleBar;
class PanelTitleBar;
class Context;
class SFX2_DLLPUBLIC Panel : public vcl::Window
{
diff --git a/include/sfx2/sidebar/PanelDescriptor.hxx b/include/sfx2/sidebar/PanelDescriptor.hxx
index ad40f6a..2fdf2b1 100644
--- a/include/sfx2/sidebar/PanelDescriptor.hxx
+++ b/include/sfx2/sidebar/PanelDescriptor.hxx
@@ -19,7 +19,6 @@
#ifndef INCLUDED_SFX2_SOURCE_SIDEBAR_PANELDESCRIPTOR_HXX
#define INCLUDED_SFX2_SOURCE_SIDEBAR_PANELDESCRIPTOR_HXX
#include <vcl/EnumContext.hxx>
#include <sfx2/sidebar/ContextList.hxx>
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/PanelTitleBar.hxx b/include/sfx2/sidebar/PanelTitleBar.hxx
index 4a5475a..1965caa 100644
--- a/include/sfx2/sidebar/PanelTitleBar.hxx
+++ b/include/sfx2/sidebar/PanelTitleBar.hxx
@@ -21,7 +21,8 @@
#include <sfx2/sidebar/TitleBar.hxx>
#include <com/sun/star/frame/XFrame.hpp>
namespace com::sun::star::frame { class XController; }
namespace com::sun::star::frame { class XFrame; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/ResourceManager.hxx b/include/sfx2/sidebar/ResourceManager.hxx
index 97c8047..816aacf 100644
--- a/include/sfx2/sidebar/ResourceManager.hxx
+++ b/include/sfx2/sidebar/ResourceManager.hxx
@@ -19,15 +19,16 @@
#ifndef INCLUDED_SFX2_SOURCE_SIDEBAR_RESOURCEMANAGER_HXX
#define INCLUDED_SFX2_SOURCE_SIDEBAR_RESOURCEMANAGER_HXX
#include <sfx2/sidebar/DeckDescriptor.hxx>
#include <sfx2/sidebar/PanelDescriptor.hxx>
#include <sfx2/sidebar/Context.hxx>
#include <unotools/confignode.hxx>
#include <com/sun/star/frame/XController.hpp>
#include <map>
#include <set>
#include <svtools/miscopt.hxx>
namespace com::sun::star::frame { class XController; }
namespace com::sun::star::frame { class XModel; }
namespace sfx2 { namespace sidebar { class DeckDescriptor; } }
namespace sfx2 { namespace sidebar { class PanelDescriptor; } }
namespace sfx2 { namespace sidebar {
class Context;
diff --git a/include/sfx2/sidebar/Sidebar.hxx b/include/sfx2/sidebar/Sidebar.hxx
index b2808dd..427acf9 100644
--- a/include/sfx2/sidebar/Sidebar.hxx
+++ b/include/sfx2/sidebar/Sidebar.hxx
@@ -21,7 +21,10 @@
#define INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
#include <sfx2/dllapi.h>
#include <com/sun/star/frame/XFrame.hpp>
#include <rtl/ustring.hxx>
namespace com::sun::star::frame { class XFrame; }
namespace com::sun::star::uno { template <typename > class Reference; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx
index eaed146..b4521bd 100644
--- a/include/sfx2/sidebar/SidebarController.hxx
+++ b/include/sfx2/sidebar/SidebarController.hxx
@@ -24,24 +24,25 @@
#include <sfx2/sidebar/AsynchronousCall.hxx>
#include <sfx2/sidebar/Context.hxx>
#include <sfx2/sidebar/Deck.hxx>
#include <sfx2/sidebar/FocusManager.hxx>
#include <sfx2/sidebar/Panel.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
#include <sfx2/sidebar/TabBar.hxx>
#include <vcl/menu.hxx>
#include <com/sun/star/awt/XWindowPeer.hpp>
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XStatusListener.hpp>
#include <com/sun/star/frame/XFrameActionListener.hpp>
#include <com/sun/star/ui/XContextChangeEventListener.hpp>
#include <com/sun/star/ui/XUIElement.hpp>
#include <com/sun/star/ui/XSidebar.hpp>
#include <boost/optional.hpp>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
namespace com::sun::star::awt { class XWindowPeer; }
namespace com::sun::star::frame { class XDispatch; }
namespace com::sun::star::ui { class XUIElement; }
typedef cppu::WeakComponentImplHelper <
css::ui::XContextChangeEventListener,
css::beans::XPropertyChangeListener,
@@ -51,16 +52,11 @@
> SidebarControllerInterfaceBase;
class SfxSplitWindow;
class FixedBitmap;
namespace sfx2 { namespace sidebar {
class ContentPanelDescriptor;
class Deck;
class DeckDescriptor;
class SidebarDockingWindow;
class TabBar;
class TabBarConfiguration;
class SFX2_DLLPUBLIC SidebarController
: private ::cppu::BaseMutex,
diff --git a/include/sfx2/sidebar/SidebarDockingWindow.hxx b/include/sfx2/sidebar/SidebarDockingWindow.hxx
index 931cb34..3c3059b 100644
--- a/include/sfx2/sidebar/SidebarDockingWindow.hxx
+++ b/include/sfx2/sidebar/SidebarDockingWindow.hxx
@@ -23,7 +23,7 @@
#include <rtl/ref.hxx>
#include <svtools/acceleratorexecute.hxx>
namespace svt { class AcceleratorExecute; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/SidebarModelUpdate.hxx b/include/sfx2/sidebar/SidebarModelUpdate.hxx
index 981f7fa..3286d75 100644
--- a/include/sfx2/sidebar/SidebarModelUpdate.hxx
+++ b/include/sfx2/sidebar/SidebarModelUpdate.hxx
@@ -10,10 +10,11 @@
#ifndef INCLUDED_INCLUDE_SFX2_SIDEBAR_SIDEBARUPDATEMODEL_HXX
#define INCLUDED_INCLUDE_SFX2_SIDEBAR_SIDEBARUPDATEMODEL_HXX
#include <com/sun/star/frame/XModel.hpp>
#include <sfx2/dllapi.h>
namespace com::sun::star::frame { class XModel; }
namespace com::sun::star::uno { template <typename > class Reference; }
namespace sfx2 { namespace sidebar {
class SFX2_DLLPUBLIC SidebarModelUpdate
diff --git a/include/sfx2/sidebar/SidebarPanelBase.hxx b/include/sfx2/sidebar/SidebarPanelBase.hxx
index 2494be1..f1cc0e2 100644
--- a/include/sfx2/sidebar/SidebarPanelBase.hxx
+++ b/include/sfx2/sidebar/SidebarPanelBase.hxx
@@ -19,8 +19,7 @@
#ifndef INCLUDED_SFX2_SIDEBAR_SIDEBARPANELBASE_HXX
#define INCLUDED_SFX2_SIDEBAR_SIDEBARPANELBASE_HXX
#include <vcl/EnumContext.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/dllapi.h>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
diff --git a/include/sfx2/sidebar/SidebarToolBox.hxx b/include/sfx2/sidebar/SidebarToolBox.hxx
index a19c7af..75aece3 100644
--- a/include/sfx2/sidebar/SidebarToolBox.hxx
+++ b/include/sfx2/sidebar/SidebarToolBox.hxx
@@ -21,11 +21,10 @@
#include <sfx2/dllapi.h>
#include <vcl/toolbox.hxx>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XToolbarController.hpp>
#include <com/sun/star/util/URL.hpp>
#include <map>
namespace com::sun::star::frame { class XToolbarController; }
namespace sfx2 { namespace sidebar {
/** The sidebar tool box has two responsibilities:
diff --git a/include/sfx2/sidebar/TabBar.hxx b/include/sfx2/sidebar/TabBar.hxx
index 1736a47..a6fcf6a 100644
--- a/include/sfx2/sidebar/TabBar.hxx
+++ b/include/sfx2/sidebar/TabBar.hxx
@@ -20,28 +20,20 @@
#define INCLUDED_SFX2_SOURCE_SIDEBAR_TABBAR_HXX
#include <sfx2//dllapi.h>
#include <sfx2/sidebar/DeckDescriptor.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
#include <vcl/button.hxx>
#include <vcl/menu.hxx>
#include <vcl/window.hxx>
#include <com/sun/star/frame/XFrame.hpp>
#include <functional>
#include <svtools/acceleratorexecute.hxx>
class Button;
class CheckBox;
class RadioButton;
namespace svt { class AcceleratorExecute; }
namespace sfx2 { namespace sidebar {
class FocusManager;
class TabBarConfiguration;
class TabItem;
class SidebarController;
/** The tab bar is the container for the individual tabs.
diff --git a/include/sfx2/sidebar/TabItem.hxx b/include/sfx2/sidebar/TabItem.hxx
index ff39fb4..2f4a3c9 100644
--- a/include/sfx2/sidebar/TabItem.hxx
+++ b/include/sfx2/sidebar/TabItem.hxx
@@ -21,8 +21,6 @@
#include <vcl/button.hxx>
#include <sfx2/sidebar/DeckDescriptor.hxx>
namespace vcl { class Window; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/Theme.hxx b/include/sfx2/sidebar/Theme.hxx
index be3a7a2..16a4798 100644
--- a/include/sfx2/sidebar/Theme.hxx
+++ b/include/sfx2/sidebar/Theme.hxx
@@ -26,7 +26,6 @@
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
#include <tools/gen.hxx>
#include <rtl/ref.hxx>
#include <vcl/wall.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -34,8 +33,6 @@
#include <map>
#include <unordered_map>
class SvBorder;
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/TitleBar.hxx b/include/sfx2/sidebar/TitleBar.hxx
index 1812503..2d83637 100644
--- a/include/sfx2/sidebar/TitleBar.hxx
+++ b/include/sfx2/sidebar/TitleBar.hxx
@@ -21,7 +21,6 @@
#include <sfx2/sidebar/Paint.hxx>
#include <vcl/fixed.hxx>
#include <sfx2/sidebar/SidebarToolBox.hxx>
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/Tools.hxx b/include/sfx2/sidebar/Tools.hxx
index 854de39..97b26c3 100644
--- a/include/sfx2/sidebar/Tools.hxx
+++ b/include/sfx2/sidebar/Tools.hxx
@@ -21,15 +21,16 @@
#include <vcl/image.hxx>
#include <vcl/gradient.hxx>
#include <tools/svborder.hxx>
#include <sfx2/dllapi.h>
#include <com/sun/star/awt/Gradient.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/util/URL.hpp>
namespace com::sun::star::frame { class XController; }
namespace com::sun::star::frame { class XDispatch; }
namespace com::sun::star::frame { class XFrame; }
namespace sfx2 { namespace sidebar {
diff --git a/include/sfx2/sidebar/UnoDeck.hxx b/include/sfx2/sidebar/UnoDeck.hxx
index b0e82e6..bf1865c 100644
--- a/include/sfx2/sidebar/UnoDeck.hxx
+++ b/include/sfx2/sidebar/UnoDeck.hxx
@@ -13,14 +13,15 @@
#include <com/sun/star/ui/XDeck.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/ui/XPanels.hpp>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/implbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
namespace com::sun::star::frame { class XFrame; }
namespace com::sun::star::ui { class XPanels; }
namespace sfx2 { namespace sidebar { class SidebarController; } }
/** get the decks
*/
class SfxUnoDeck : public cppu::WeakImplHelper<css::ui::XDeck>
diff --git a/include/sfx2/sidebar/UnoDecks.hxx b/include/sfx2/sidebar/UnoDecks.hxx
index 3f7c623..1e93d8d1 100644
--- a/include/sfx2/sidebar/UnoDecks.hxx
+++ b/include/sfx2/sidebar/UnoDecks.hxx
@@ -14,14 +14,10 @@
#include <com/sun/star/ui/XDecks.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
namespace com::sun::star::frame { class XFrame; }
namespace sfx2 { namespace sidebar { class SidebarController; } }
/** get the decks
*/
diff --git a/include/sfx2/sidebar/UnoPanel.hxx b/include/sfx2/sidebar/UnoPanel.hxx
index b77a0ab..17c25b1 100644
--- a/include/sfx2/sidebar/UnoPanel.hxx
+++ b/include/sfx2/sidebar/UnoPanel.hxx
@@ -12,17 +12,18 @@
#define INCLUDED_SFX2_SIDEBAR_UNOPANEL_HXX
#include <com/sun/star/ui/XPanel.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/implbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/Panel.hxx>
#include <sfx2/sidebar/Deck.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
namespace com::sun::star::awt { class XWindow; }
namespace com::sun::star::frame { class XFrame; }
namespace sfx2 { namespace sidebar { class SidebarController; } }
/** get the Panel
*/
diff --git a/include/sfx2/sidebar/UnoPanels.hxx b/include/sfx2/sidebar/UnoPanels.hxx
index 71aa7d0..aa2ecae 100644
--- a/include/sfx2/sidebar/UnoPanels.hxx
+++ b/include/sfx2/sidebar/UnoPanels.hxx
@@ -13,13 +13,10 @@
#include <com/sun/star/ui/XPanels.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
namespace com::sun::star::frame { class XFrame; }
namespace sfx2 { namespace sidebar { class SidebarController; } }
/** get the decks
*/
diff --git a/include/sfx2/sidebar/UnoSidebar.hxx b/include/sfx2/sidebar/UnoSidebar.hxx
index a60143b..5b67554 100644
--- a/include/sfx2/sidebar/UnoSidebar.hxx
+++ b/include/sfx2/sidebar/UnoSidebar.hxx
@@ -11,20 +11,14 @@
#ifndef INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
#define INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
#include <sfx2/dllapi.h>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/ui/XSidebarProvider.hpp>
#include <com/sun/star/ui/XSidebar.hpp>
#include <com/sun/star/awt/XWindow2.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/SidebarDockingWindow.hxx>
#include <sfx2/sidebar/UnoDecks.hxx>
#include <com/sun/star/ui/XDecks.hpp>
namespace com::sun::star::frame { class XFrame; }
namespace com::sun::star::ui { class XDecks; }
namespace com::sun::star::ui { class XSidebar; }
namespace sfx2 { namespace sidebar { class SidebarController; } }
/** get the sidebar for a given frame
*/
diff --git a/sfx2/source/notebookbar/NotebookbarTabControl.cxx b/sfx2/source/notebookbar/NotebookbarTabControl.cxx
index 20c37dc..eb9eaa4 100644
--- a/sfx2/source/notebookbar/NotebookbarTabControl.cxx
+++ b/sfx2/source/notebookbar/NotebookbarTabControl.cxx
@@ -28,6 +28,7 @@
#include <com/sun/star/ui/ItemType.hpp>
#include <com/sun/star/frame/XModuleManager.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <sfx2/notebookbar/SfxNotebookBar.hxx>
#include <com/sun/star/uno/Reference.h>
#include <toolkit/awt/vclxmenu.hxx>
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx
index c3649aa..1209063 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -32,6 +32,7 @@
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XDesktop2.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/ui/XSidebarPanel.hpp>
using namespace css;
using namespace css::uno;
diff --git a/sfx2/source/sidebar/DrawHelper.cxx b/sfx2/source/sidebar/DrawHelper.cxx
index be369c7..70c04b6 100644
--- a/sfx2/source/sidebar/DrawHelper.cxx
+++ b/sfx2/source/sidebar/DrawHelper.cxx
@@ -21,6 +21,7 @@
#include <sfx2/sidebar/Paint.hxx>
#include <vcl/lineinfo.hxx>
#include <tools/svborder.hxx>
namespace sfx2 { namespace sidebar {
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 028097d..9c7c3f3 100644
--- a/sfx2/source/sidebar/Panel.cxx
+++ b/sfx2/source/sidebar/Panel.cxx
@@ -37,6 +37,8 @@
#include <com/sun/star/awt/XWindowPeer.hpp>
#include <com/sun/star/awt/PosSize.hpp>
#include <com/sun/star/ui/XToolPanel.hpp>
#include <com/sun/star/ui/XSidebarPanel.hpp>
#include <com/sun/star/ui/XUIElement.hpp>
using namespace css;
using namespace css::uno;
diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx
index fd97787..6071da7 100644
--- a/sfx2/source/sidebar/PanelTitleBar.cxx
+++ b/sfx2/source/sidebar/PanelTitleBar.cxx
@@ -32,6 +32,8 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/diagnose_ex.h>
#include <com/sun/star/frame/XDispatch.hpp>
using namespace css;
using namespace css::uno;
diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx
index 3ef85d0..f59efba 100644
--- a/sfx2/source/sidebar/ResourceManager.cxx
+++ b/sfx2/source/sidebar/ResourceManager.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sfx2/sidebar/DeckDescriptor.hxx>
#include <sfx2/sidebar/PanelDescriptor.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
#include <sfx2/sidebar/Tools.hxx>
@@ -30,6 +32,7 @@
#include <rtl/ustrbuf.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <vcl/EnumContext.hxx>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/ui/XUpdateModel.hpp>
diff --git a/sfx2/source/sidebar/Sidebar.cxx b/sfx2/source/sidebar/Sidebar.cxx
index 06420d4..855da31 100644
--- a/sfx2/source/sidebar/Sidebar.cxx
+++ b/sfx2/source/sidebar/Sidebar.cxx
@@ -20,6 +20,7 @@
#include <sfx2/sidebar/Sidebar.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
#include <sfx2/sidebar/PanelDescriptor.hxx>
using namespace css;
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index f2fa554..c9958af 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -18,8 +18,10 @@
*/
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/Deck.hxx>
#include <sfx2/sidebar/DeckDescriptor.hxx>
#include <sfx2/sidebar/DeckTitleBar.hxx>
#include <sfx2/sidebar/Panel.hxx>
#include <sfx2/sidebar/PanelDescriptor.hxx>
#include <sfx2/sidebar/PanelTitleBar.hxx>
#include <sfx2/sidebar/TabBar.hxx>
#include <sfx2/sidebar/Theme.hxx>
@@ -48,6 +50,8 @@
#include <sal/log.hxx>
#include <officecfg/Office/UI/Sidebar.hxx>
#include <com/sun/star/awt/XWindowPeer.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/ui/ContextChangeEventMultiplexer.hpp>
#include <com/sun/star/ui/ContextChangeEventObject.hpp>
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx
index 5748ede..7e4d98e 100644
--- a/sfx2/source/sidebar/SidebarDockingWindow.cxx
+++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx
@@ -19,11 +19,13 @@
#include <sfx2/sidebar/SidebarDockingWindow.hxx>
#include <sfx2/sidebar/SidebarChildWindow.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/PanelDescriptor.hxx>
#include <comphelper/processfactory.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
#include <svtools/acceleratorexecute.hxx>
#include <tools/link.hxx>
#include <tools/gen.hxx>
#include <vcl/event.hxx>
diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx
index 4e9fe79..d040fcd 100644
--- a/sfx2/source/sidebar/SidebarToolBox.cxx
+++ b/sfx2/source/sidebar/SidebarToolBox.cxx
@@ -29,6 +29,9 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <svtools/miscopt.hxx>
#include <com/sun/star/frame/XSubToolbarController.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XToolbarController.hpp>
using namespace css;
using namespace css::uno;
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index ab258a7..8ca65ef 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -38,6 +38,7 @@
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <tools/svborder.hxx>
#include <svtools/acceleratorexecute.hxx>
#include <com/sun/star/graphic/XGraphicProvider.hpp>
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index 90911f1..bc6236d 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -27,6 +27,8 @@
#include <vcl/settings.hxx>
#include <tools/diagnose_ex.h>
#include <com/sun/star/awt/Rectangle.hpp>
using namespace css;
using namespace css::uno;
diff --git a/sfx2/source/sidebar/UnoDeck.cxx b/sfx2/source/sidebar/UnoDeck.cxx
index bd6dfe0..de5e0c8 100644
--- a/sfx2/source/sidebar/UnoDeck.cxx
+++ b/sfx2/source/sidebar/UnoDeck.cxx
@@ -16,6 +16,7 @@
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/DeckTitleBar.hxx>
#include <sfx2/sidebar/Deck.hxx>
#include <sfx2/sidebar/DeckDescriptor.hxx>
#include <vcl/svapp.hxx>
diff --git a/sfx2/source/sidebar/UnoPanel.cxx b/sfx2/source/sidebar/UnoPanel.cxx
index f4f022c..83fb45d 100644
--- a/sfx2/source/sidebar/UnoPanel.cxx
+++ b/sfx2/source/sidebar/UnoPanel.cxx
@@ -13,9 +13,11 @@
#include <sfx2/sidebar/ResourceManager.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/PanelDescriptor.hxx>
#include <sfx2/sidebar/PanelTitleBar.hxx>
#include <sfx2/sidebar/Panel.hxx>
#include <sfx2/sidebar/Deck.hxx>
#include <sfx2/sidebar/DeckDescriptor.hxx>
#include <vcl/svapp.hxx>
diff --git a/sfx2/source/sidebar/UnoSidebar.cxx b/sfx2/source/sidebar/UnoSidebar.cxx
index abf4d42..20b3ed6 100644
--- a/sfx2/source/sidebar/UnoSidebar.cxx
+++ b/sfx2/source/sidebar/UnoSidebar.cxx
@@ -12,7 +12,7 @@
#include <sfx2/sidebar/Tools.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/UnoDecks.hxx>
#include <com/sun/star/frame/XDispatch.hpp>
diff --git a/svx/source/sidebar/line/LinePropertyPanelBase.cxx b/svx/source/sidebar/line/LinePropertyPanelBase.cxx
index 5f21530..0a8c3fc9 100644
--- a/svx/source/sidebar/line/LinePropertyPanelBase.cxx
+++ b/svx/source/sidebar/line/LinePropertyPanelBase.cxx
@@ -20,6 +20,7 @@
#include <memory>
#include <sfx2/sidebar/ControlFactory.hxx>
#include <svx/sidebar/LinePropertyPanelBase.hxx>
#include <sfx2/sidebar/SidebarToolBox.hxx>
#include <svx/strings.hrc>
#include <svx/svxids.hrc>
#include <svx/dialmgr.hxx>
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
index 9705918..0e0d35b 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
@@ -37,6 +37,7 @@
class CheckBox;
class MetricBox;
class Edit;
class ToolBox;
namespace svx {
class DialControl;