Kaydet (Commit) 3847676c authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

tdf#42949 Fix IWYU warnings in include/svx/[h-r]*

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: Ib7e1d0f7483aa8b5cab320278714f2d5f36fdbd9
Reviewed-on: https://gerrit.libreoffice.org/72534
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst 9bd5ba2d
......@@ -23,6 +23,7 @@
#include <unotools/lingucfg.hxx>
#include <editeng/langitem.hxx>
#include <svl/intitem.hxx>
#include <svl/itempool.hxx>
#include <svx/obj3d.hxx>
#include <svx/svdpagv.hxx>
......
......@@ -27,6 +27,7 @@
#include <editeng/numdef.hxx>
#include <editeng/svxenum.hxx>
#include <svtools/ctrlbox.hxx>
#include <vcl/customweld.hxx>
#define MN_GALLERY_ENTRY 100
......
......@@ -19,6 +19,7 @@
#include <unotools/pathoptions.hxx>
#include "optchart.hxx"
#include <svx/SvxColorValueSet.hxx>
#include <vcl/weld.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
......
......@@ -69,6 +69,7 @@
#include <cppuhelper/interfacecontainer.h>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <unotools/syslocale.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
......
......@@ -34,6 +34,7 @@
#include <QueryDesignView.hxx>
#include <vcl/settings.hxx>
#include <cppuhelper/implbase.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
......
......@@ -53,6 +53,7 @@
#include <UITools.hxx>
#include <querycontainerwindow.hxx>
#include <sqlmessage.hxx>
#include <unotools/localedatawrapper.hxx>
#include <unotools/syslocale.hxx>
#include <memory>
#include <set>
......
......@@ -41,6 +41,7 @@
#include <sqlmessage.hxx>
#include <UITools.hxx>
#include <osl/diagnose.h>
#include <i18nlangtag/languagetag.hxx>
#include <vcl/treelistentry.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/svapp.hxx>
......
......@@ -96,6 +96,7 @@
#include <svx/numinf.hxx>
#include <svx/svxdlg.hxx>
#include <svx/svxids.hrc>
#include <vcl/graph.hxx>
#include <vcl/unohelp.hxx>
#include <tools/diagnose_ex.h>
#include <vcl/stdtext.hxx>
......
......@@ -100,6 +100,7 @@
#include <svx/svdopath.hxx>
#include <svx/xlntrit.hxx>
#include <svx/xflbmtit.hxx>
#include <svx/xflclit.hxx>
#include <svx/xfltrit.hxx>
#include <svx/xflbmsxy.hxx>
#include <svx/xflbmsli.hxx>
......
......@@ -56,6 +56,7 @@
#include <svx/svdotable.hxx>
#include <svx/xflbstit.hxx>
#include <svx/xflbmtit.hxx>
#include <svx/xflclit.hxx>
#include <svx/xfltrit.hxx>
#include <editeng/outlobj.hxx>
#include <editeng/numdef.hxx>
......
......@@ -974,3 +974,9 @@ blacklist:
include/svx/fmtools.hxx:
# base class has to be a complete type
- com/sun/star/lang/XEventListener.hpp
include/svx/ifaceids.hxx:
# Keep for macro define
- sfx2/shell.hxx
include/svx/measctrl.hxx:
# Needed for template class
- svx/svdobj.hxx
......@@ -22,6 +22,7 @@
#include <sal/types.h>
#include <svx/msdffdef.hxx>
#include <svx/svxdllapi.h>
#include <o3tl/typed_flags_set.hxx>
struct SvxMSDffVertPair
......
......@@ -20,6 +20,7 @@
#ifndef INCLUDED_SVX_ENHANCEDCUSTOMSHAPETYPENAMES_HXX
#define INCLUDED_SVX_ENHANCEDCUSTOMSHAPETYPENAMES_HXX
#include <svx/msdffdef.hxx>
#include <svx/svxdllapi.h>
#include <rtl/ustring.hxx>
namespace EnhancedCustomShapeTypeNames
......
......@@ -20,10 +20,13 @@
#ifndef INCLUDED_SVX_IACCESSIBLEPARENT_HXX
#define INCLUDED_SVX_IACCESSIBLEPARENT_HXX
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/drawing/XShape.hpp>
#include <sal/types.h>
#include <svx/AccessibleControlShape.hxx>
#include <com/sun/star/uno/Reference.hxx>
namespace accessibility { class AccessibleControlShape; }
namespace com::sun::star::accessibility { class XAccessible; }
namespace com::sun::star::beans { class XPropertySet; }
namespace com::sun::star::drawing { class XShape; }
namespace accessibility {
class AccessibleShape;
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_SVX_IACCESSIBLEVIEWFORWARDER_HXX
#define INCLUDED_SVX_IACCESSIBLEVIEWFORWARDER_HXX
#include <sal/types.h>
#include <tools/gen.hxx>
......
......@@ -20,13 +20,9 @@
#ifndef INCLUDED_SVX_IACCESSIBLEVIEWFORWARDERLISTENER_HXX
#define INCLUDED_SVX_IACCESSIBLEVIEWFORWARDERLISTENER_HXX
#include <sal/types.h>
namespace accessibility {
class IAccessibleViewForwarder;
/** <p>The purpose of this interface is to notify a user of an
IAccessibleViewForwarder when that view forwarder changes its
properties. Such a change may be one of the following:
......
......@@ -19,11 +19,12 @@
#ifndef INCLUDED_SVX_PALETTE_HXX
#define INCLUDED_SVX_PALETTE_HXX
#include <svx/SvxColorValueSet.hxx>
#include <svx/xtable.hxx>
#include <rtl/ustring.hxx>
#include <svx/svxdllapi.h>
class Color;
class ColorValueSet;
class SvxColorValueSet;
typedef std::pair<Color, OUString> NamedColor;
......
......@@ -19,19 +19,19 @@
#ifndef INCLUDED_SVX_PALETTEMANAGER_HXX
#define INCLUDED_SVX_PALETTEMANAGER_HXX
#include <svx/SvxColorValueSet.hxx>
#include <svx/Palette.hxx>
#include <rtl/ustring.hxx>
#include <svx/tbxcolorupdate.hxx>
#include <tools/urlobj.hxx>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
#include <svx/xtable.hxx>
#include <deque>
#include <vector>
#include <memory>
class SvxColorValueSet;
namespace com::sun::star::uno { class XComponentContext; }
namespace svx { class ToolboxButtonColorUpdater; }
namespace weld { class Window; }
class SVX_DLLPUBLIC PaletteManager
{
const sal_uInt16 mnMaxRecentColors;
......
......@@ -19,12 +19,8 @@
#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARALINESPACINGPOPUP_HXX
#define INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARALINESPACINGPOPUP_HXX
#include <editeng/lspcitem.hxx>
#include <vcl/EnumContext.hxx>
#include <sfx2/tbxctrl.hxx>
#include <svl/poolitem.hxx>
#include <svx/svxdllapi.h>
#include <tools/fldunit.hxx>
namespace svx {
......
......@@ -21,10 +21,11 @@
#include <sfx2/tbxctrl.hxx>
#include <svx/svxdllapi.h>
#include <vcl/window.hxx>
#include <com/sun/star/ui/XContextChangeEventListener.hpp>
#include <com/sun/star/ui/ContextChangeEventMultiplexer.hpp>
#include <com/sun/star/ui/XContextChangeEventMultiplexer.hpp>
namespace com::sun::star::ui { class XContextChangeEventMultiplexer; }
namespace com::sun::star::ui { struct ContextChangeEventObject; }
namespace vcl { class Window; }
namespace svx {
......
......@@ -19,10 +19,11 @@
#ifndef INCLUDED_SVX_PARSECONTEXT_HXX
#define INCLUDED_SVX_PARSECONTEXT_HXX
#include <com/sun/star/lang/Locale.hpp>
#include <connectivity/IParseContext.hxx>
#include <rtl/ustring.hxx>
#include <svx/svxdllapi.h>
#include <unotools/localedatawrapper.hxx>
#include <vector>
namespace svxform
......
......@@ -20,27 +20,16 @@
#ifndef INCLUDED_SVX_CTREDLIN_HXX
#define INCLUDED_SVX_CTREDLIN_HXX
#include <comphelper/string.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <svx/svxdllapi.h>
#include <svtools/simptabl.hxx>
#include <svtools/ctrlbox.hxx>
#include <vcl/svlbitm.hxx>
#include <vcl/svtabbx.hxx>
#include <vcl/treelistbox.hxx>
#include <vcl/treelistentry.hxx>
#include <tools/color.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
#include <tools/link.hxx>
#include <tools/time.hxx>
#include <tools/wintypes.hxx>
#include <vcl/builder.hxx>
#include <vcl/vclptr.hxx>
#include <vcl/tabpage.hxx>
#include <vcl/tabctrl.hxx>
#include <vcl/weld.hxx>
#include <memory>
namespace utl {
......@@ -48,16 +37,11 @@ namespace utl {
class TextSearch;
}
namespace vcl { class Window; }
namespace comphelper::string { class NaturalStringSorter; }
class DateField;
class Edit;
class FixedText;
class ListBox;
class Point;
class SvViewDataEntry;
class TimeField;
struct SvSortData;
class SvtCalendarBox;
enum class SvxRedlinDateMode
{
......
......@@ -20,6 +20,7 @@
#ifndef INCLUDED_SVX_E3DUNDO_HXX
#define INCLUDED_SVX_E3DUNDO_HXX
#include <svl/itemset.hxx>
#include <svx/svdundo.hxx>
#include <svx/obj3d.hxx>
#include <svx/svxdllapi.h>
......
......@@ -20,8 +20,14 @@
#ifndef INCLUDED_SVX_EXTRUD3D_HXX
#define INCLUDED_SVX_EXTRUD3D_HXX
#include <svl/intitem.hxx>
#include <svl/itemset.hxx>
#include <svx/obj3d.hxx>
#include <svx/svxdllapi.h>
#include <svx/svddef.hxx>
#include <svx/svx3ditems.hxx>
class E3dDefaultAttributes;
/*************************************************************************
|*
......
......@@ -21,16 +21,14 @@
#include <sfx2/tabdlg.hxx>
#include <vcl/customweld.hxx>
#include <vcl/fixed.hxx>
#include <vcl/field.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <svx/pagectrl.hxx>
#include <svx/svxdllapi.h>
#include <memory>
namespace weld { class CustomWeld; }
namespace svx
{
SVX_DLLPUBLIC bool ShowBorderBackgroundDlg(weld::Window* pParent, SfxItemSet* pBBSet);
......
......@@ -21,7 +21,6 @@
#define INCLUDED_SVX_HELPERHITTEST3D_HXX
#include <svx/svxdllapi.h>
#include <sal/types.h>
#include <vector>
......
......@@ -20,13 +20,13 @@
#ifndef INCLUDED_SVX_HEXCOLOR_HXX
#define INCLUDED_SVX_HEXCOLOR_HXX
#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <vcl/weld.hxx>
#include <sot/exchange.hxx>
#include <sax/tools/converter.hxx>
#include <svx/svxdllapi.h>
#include <tools/color.hxx>
#include <tools/link.hxx>
namespace weld { class Entry; }
struct ImplSVEvent;
namespace weld {
......
......@@ -20,19 +20,25 @@
#ifndef INCLUDED_SVX_IMAPDLG_HXX
#define INCLUDED_SVX_IMAPDLG_HXX
#include <svtools/inettbc.hxx>
#include <sfx2/childwin.hxx>
#include <sfx2/ctrlitem.hxx>
#include <sfx2/basedlgs.hxx>
#include <vcl/customweld.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/status.hxx>
#include <vcl/weld.hxx>
#include <svx/svxdllapi.h>
#include <memory>
#include <vector>
namespace vcl { class Window; }
namespace weld { class Button; }
namespace weld { class ComboBox; }
namespace weld { class CustomWeld; }
namespace weld { class Entry; }
namespace weld { class Label; }
namespace weld { class Toolbar; }
namespace weld { class Widget; }
namespace weld { class Window; }
class ImageMap;
class URLBox;
/*************************************************************************
|*
......
......@@ -23,7 +23,6 @@
#include <sal/config.h>
#include <sal/types.h>
#include <svx/svxdllapi.h>
// Defines
......
......@@ -19,13 +19,11 @@
#ifndef INCLUDED_SVX_ITEMWIN_HXX
#define INCLUDED_SVX_ITEMWIN_HXX
#include <vcl/bitmap.hxx>
#include <vcl/field.hxx>
#include <svx/dlgctrl.hxx>
#include <svx/svxdllapi.h>
class XLineColorItem;
class XLineWidthItem;
class SfxObjectShell;
......
......@@ -20,8 +20,14 @@
#ifndef INCLUDED_SVX_LATHE3D_HXX
#define INCLUDED_SVX_LATHE3D_HXX
#include <svl/intitem.hxx>
#include <svl/itemset.hxx>
#include <svx/obj3d.hxx>
#include <svx/svxdllapi.h>
#include <svx/svddef.hxx>
#include <svx/svx3ditems.hxx>
class E3dDefaultAttributes;
/*************************************************************************
|*
......
......@@ -20,17 +20,12 @@
#define INCLUDED_SVX_LINECTRL_HXX
#include <svtools/valueset.hxx>
#include <svl/lstner.hxx>
#include <sfx2/tbxctrl.hxx>
#include <svx/svxdllapi.h>
#include <svx/xtable.hxx>
#include <memory>
class XLineStyleItem;
class XLineDashItem;
class SvxLineBox;
class SvxMetricField;
// SvxLineStyleController:
......
......@@ -22,7 +22,6 @@
#include <limits.h>
#include <sal/types.h>
#include <svx/svxdllapi.h>
#define DFF_COMMON_RECORD_HEADER_SIZE 8
......
......@@ -26,7 +26,6 @@
#include <svl/zforlist.hxx>
#include <vector>
#include <map>
class Color;
......
......@@ -19,7 +19,6 @@
#ifndef INCLUDED_SVX_NUMINF_HXX
#define INCLUDED_SVX_NUMINF_HXX
#include <memory>
#include <svl/poolitem.hxx>
#include <svx/numfmtsh.hxx>
#include <svx/svxdllapi.h>
......
......@@ -21,7 +21,6 @@
#include <vcl/idle.hxx>
#include <svtools/valueset.hxx>
#include <limits.h>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/lang/Locale.hpp>
......@@ -39,9 +38,6 @@ namespace com{namespace sun{ namespace star{
}
}}}
class SvxBrushItem;
class SvxNumRule;
enum class NumberingPageType
{
BULLET,
......
......@@ -22,29 +22,16 @@
#include <svx/svdoattr.hxx>
#include <svx/svdobj.hxx>
#include <svx/def3d.hxx>
#include <svx/svdpage.hxx>
#include <svx/deflt3d.hxx>
#include <vcl/bitmap.hxx>
#include <svx/svx3ditems.hxx>
#include <svx/xflclit.hxx>
#include <svl/itemset.hxx>
#include <basegfx/matrix/b3dhommatrix.hxx>
#include <basegfx/range/b3drange.hxx>
#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/vector/b2enums.hxx>
#include <svx/svxdllapi.h>
// Forward declarations
class SfxPoolItem;
class Viewport3D;
class E3dScene;
namespace basegfx { class B3DPolyPolygon; }
namespace sdr { namespace properties {
class BaseProperties;
class E3dProperties;
class E3dCompoundProperties;
class E3dExtrudeProperties;
class E3dLatheProperties;
......
......@@ -30,7 +30,6 @@
|*
\************************************************************************/
class SdrObjFactory;
class SdrObject;
struct SdrObjCreatorParams;
......
......@@ -20,11 +20,13 @@
#define INCLUDED_SVX_OPTGRID_HXX
#include <sfx2/tabdlg.hxx>
#include <svl/eitem.hxx>
#include <vcl/weld.hxx>
#include <svx/svxdllapi.h>
class SvxGridTabPage;
namespace weld { class CheckButton; }
namespace weld { class MetricSpinButton; }
namespace weld { class SpinButton; }
namespace weld { class ToggleButton; }
namespace weld { class Widget; }
class SVX_DLLPUBLIC SvxOptionsGrid
{
......
......@@ -20,11 +20,9 @@
#define INCLUDED_SVX_PAGECTRL_HXX
#include <vcl/customweld.hxx>
#include <vcl/window.hxx>
#include <svx/svxdllapi.h>
#include <svx/sdr/attribute/sdrallfillattributeshelper.hxx>
class SvxBoxItem;
enum class SvxPageUsage;
enum class SvxFrameDirection;
......
......@@ -20,7 +20,6 @@
#define INCLUDED_SVX_PARAPREV_HXX
#include <vcl/customweld.hxx>
#include <vcl/window.hxx>
#include <editeng/svxenum.hxx>
#include <svx/svxdllapi.h>
......
......@@ -19,7 +19,6 @@
#ifndef INCLUDED_SVX_POSTATTR_HXX
#define INCLUDED_SVX_POSTATTR_HXX
#include <svl/intitem.hxx>
#include <svl/stritem.hxx>
#include <svx/svxdllapi.h>
......
......@@ -23,7 +23,6 @@
#include <sfx2/stbitem.hxx>
#include <svx/svxdllapi.h>
class SvxSizeItem;
struct SvxPosSizeStatusBarControl_Impl;
class SVX_DLLPUBLIC SvxPosSizeStatusBarControl : public SfxStatusBarControl
......
......@@ -19,7 +19,6 @@
#ifndef INCLUDED_SVX_RULER_HXX
#define INCLUDED_SVX_RULER_HXX
#include <vcl/menu.hxx>
#include <svtools/ruler.hxx>
#include <svl/lstner.hxx>
#include <svx/svxdllapi.h>
......@@ -27,6 +26,7 @@
#include <memory>
class Menu;
class SvxProtectItem;
class SvxRulerItem;
class SfxBindings;
......
......@@ -22,8 +22,10 @@
#include <svx/camera3d.hxx>
#include <tools/b3dtrans.hxx>
#include <svx/svdpage.hxx>
#include <svx/svxdllapi.h>
#include <svx/obj3d.hxx>
#include <svx/svx3ditems.hxx>
#include <memory>
namespace sdr { namespace properties {
......
......@@ -20,8 +20,13 @@
#ifndef INCLUDED_SVX_SPHERE3D_HXX
#define INCLUDED_SVX_SPHERE3D_HXX
#include <svl/intitem.hxx>
#include <svl/itemset.hxx>
#include <svx/obj3d.hxx>
#include <svx/svxdllapi.h>
#include <svx/svddef.hxx>
class E3dDefaultAttributes;
/**
* SphereObject with diameter r3DSize.
......
......@@ -138,6 +138,8 @@ class SdrVertShearAllItem;
class SdrVertShearOneItem;
class SdrYesNoItem;
class SfxBoolItem;
class SfxUInt16Item;
class SfxUInt32Item;
class SfxStringItem;
class SfxVoidItem;
class Svx3DCharacterModeItem;
......
......@@ -23,6 +23,7 @@
#include <unotools/collatorwrapper.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/basedlgs.hxx>
#include <vcl/commandevent.hxx>
#include <acredlin.hxx>
#include <global.hxx>
......
......@@ -28,6 +28,7 @@
#include <units.hrc>
#include <appoptio.hxx>
#include <scmod.hxx>
#include <svl/eitem.hxx>
#include <svx/colorbox.hxx>
#include <svtools/unitconv.hxx>
......
......@@ -45,6 +45,7 @@
#include <rtl/ustrbuf.hxx>
#include <vcl/svapp.hxx>
#include <osl/diagnose.h>
#include <tools/stream.hxx>
using namespace com::sun::star;
......
......@@ -18,6 +18,7 @@
*/
#include <fusldlg.hxx>
#include <svl/eitem.hxx>
#include <svl/itemset.hxx>
#include <svl/stritem.hxx>
#include <svl/intitem.hxx>
......
......@@ -44,6 +44,7 @@
#include <svx/svdorect.hxx>
#include <svx/svdograf.hxx>
#include <svl/eitem.hxx>
#include <svl/intitem.hxx>
#include <editeng/eeitem.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
......
......@@ -20,6 +20,8 @@
#define INCLUDED_SVX_INC_PALETTE_HXX
#include <svx/Palette.hxx>
#include <svx/SvxColorValueSet.hxx>
#include <svx/xtable.hxx>
class SvFileStream;
......
......@@ -23,6 +23,7 @@
#include "ChildrenManagerImpl.hxx"
#include <svx/ShapeTypeHandler.hxx>
#include <svx/AccessibleControlShape.hxx>
#include <svx/AccessibleShapeInfo.hxx>
#include <svx/IAccessibleViewForwarder.hxx>
#include <vcl/svapp.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include "EnhancedCustomShape3d.hxx"
#include <svx/deflt3d.hxx>
#include <svx/svdetc.hxx>
#include <svx/svdmodel.hxx>
#include <tools/poly.hxx>
......
......@@ -18,10 +18,12 @@
*/
#include <comphelper/processfactory.hxx>