weld: Drop not directly used includes/fwd-decls from weld.hxx

These are not needed inside weld.hxx itself. Instead
add the required includes/forward-declarations to those
files actually needing them, instead of relying on the
now dropped ones.

Change-Id: I5e4cea030867d14057b2bdcc2a2a4cd98843651d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205906
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-06-04 05:57:14 +02:00
parent acb6b066dc
commit ba7331747f
16 changed files with 27 additions and 16 deletions
@@ -24,6 +24,8 @@
#include <vcl/weld/Frame.hxx>
#include <vcl/weld/RadioButton.hxx>
#include <com/sun/star/uno/Sequence.hxx>
class SvNumberFormatter;
namespace chart
@@ -30,6 +30,11 @@
namespace chart { class TabPageNotifiable; }
namespace weld
{
class TreeView;
}
namespace chart
{
class ChartTypeTemplateProvider;
+1
View File
@@ -25,6 +25,7 @@
#include <svx/langbox.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/EntryTreeView.hxx>
#include <vcl/weld/Frame.hxx>
#include <vcl/weld/Label.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
+1
View File
@@ -32,6 +32,7 @@
#include <vcl/weld/Entry.hxx>
#include <vcl/weld/Menu.hxx>
#include <vcl/weld/MenuButton.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/SpinButton.hxx>
#include <vcl/weld/customweld.hxx>
+1
View File
@@ -23,6 +23,7 @@
#include <sfx2/basedlgs.hxx>
#include <sfx2/tabdlg.hxx>
#include <vcl/weld/TreeIter.hxx>
#include <vcl/weld/TreeView.hxx>
namespace svx
{
+4
View File
@@ -1,3 +1,4 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
@@ -34,6 +35,9 @@
#include <rtl/strbuf.hxx>
#include <utility>
#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/uno/Sequence.hxx>
namespace dbaui
{
using namespace ::com::sun::star::uno;
@@ -24,6 +24,8 @@
#include <vcl/weld/Toolbar.hxx>
#include <vcl/weld/TreeView.hxx>
#include <com/sun/star/uno/Any.hxx>
namespace svx::sidebar
{
struct TreeNode
+2
View File
@@ -15,6 +15,8 @@
namespace weld
{
class DialogController;
class VCL_DLLPUBLIC Dialog : virtual public Window
{
private:
+2
View File
@@ -12,6 +12,8 @@
#include <vcl/dllapi.h>
#include <vcl/weld/weld.hxx>
#include <com/sun/star/accessibility/XAccessibleRelationSet.hpp>
class InputContext;
class OutputDevice;
enum class PointerStyle;
-15
View File
@@ -16,10 +16,6 @@
#include <vcl/weld/Toggleable.hxx>
#include <vcl/weld/Widget.hxx>
#include <com/sun/star/accessibility/XAccessibleRelationSet.hpp>
#include <assert.h>
namespace com::sun::star::graphic
{
class XGraphic;
@@ -32,21 +28,10 @@ namespace vcl
class Font;
}
namespace tools
{
class JsonWriter;
}
class LOKTrigger;
namespace weld
{
class DialogController;
class EntryTreeView;
class IconView;
class MetricSpinButton;
class TreeView;
inline OUString toId(const void* pValue)
{
return OUString::number(reinterpret_cast<sal_uIntPtr>(pValue));
@@ -24,6 +24,7 @@
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/TextView.hxx>
#include <vcl/weld/TreeIter.hxx>
#include <vcl/weld/TreeView.hxx>
#include "viewdata.hxx"
#include <dpobject.hxx>
+2 -1
View File
@@ -19,6 +19,7 @@
#pragma once
#include "types.hxx"
#include "utility.hxx"
#include <string_view>
@@ -26,7 +27,7 @@
#include <svl/SfxBroadcaster.hxx>
#include <unotools/configitem.hxx>
#include "types.hxx"
#include <com/sun/star/uno/Sequence.hxx>
class SmSym;
class SmSymbolManager;
@@ -24,6 +24,7 @@
#include <comphelper/diagnose_ex.hxx>
#include <com/sun/star/ui/dialogs/WizardTravelType.hpp>
#include <com/sun/star/uno/Sequence.hxx>
using vcl::RoadmapWizardTypes::WizardPath;
using vcl::RoadmapWizardTypes::PathId;
+1
View File
@@ -23,6 +23,7 @@
#include <sharedconnection.hxx>
#include <vcl/weld/Label.hxx>
#include <vcl/weld/TreeIter.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/weld.hxx>
namespace com::sun::star{
+1
View File
@@ -24,6 +24,7 @@
#include <svx/colorbox.hxx>
#include <svx/frmdirlbox.hxx>
#include <vcl/weld/ComboBox.hxx>
#include <vcl/weld/IconView.hxx>
#include <vcl/weld/ItemView.hxx>
#include <vcl/weld/Label.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
+1
View File
@@ -26,6 +26,7 @@
#include <vcl/weld/Label.hxx>
#include <vcl/weld/MenuButton.hxx>
#include <vcl/weld/SpinButton.hxx>
#include <vcl/weld/TreeView.hxx>
#include <swtypes.hxx>
#include "numprevw.hxx"
#include "numberingtypelistbox.hxx"