Kaydet (Commit) 4b04eae8 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Michael Stahl

tdf#42949 Fix IWYU warnings in include/svx/[e-g]*

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

Change-Id: I861d3f0fa15ee3b7e0e830c4fac2e5794ea4071b
Reviewed-on: https://gerrit.libreoffice.org/72213
Tested-by: Jenkins
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
üst e875a317
......@@ -39,6 +39,7 @@
#include <unotools/localedatawrapper.hxx>
#include <unotools/syslocale.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
#include <comphelper/processfactory.hxx>
......
......@@ -23,6 +23,7 @@
#include <sal/config.h>
#include <salhelper/thread.hxx>
#include <tools/urlobj.hxx>
#include <vcl/graph.hxx>
#include <vcl/idle.hxx>
#include <svl/slstitm.hxx>
......
......@@ -47,6 +47,7 @@
#include <com/sun/star/form/runtime/XFormController.hpp>
#include <com/sun/star/form/runtime/FormOperations.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/NoSupportException.hpp>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdb/ErrorCondition.hpp>
......
......@@ -944,3 +944,33 @@ blacklist:
include/svx/dbaexchange.hxx:
# Needed for implicit dtor
- com/sun/star/beans/PropertyValue.hpp
include/svx/EnhancedCustomShape2d.hxx:
# Needed for implicit dtor
- com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp
- com/sun/star/drawing/EnhancedCustomShapeSegment.hpp
- com/sun/star/drawing/EnhancedCustomShapeTextFrame.hpp
include/svx/fmgridif.hxx:
# base class has to be a complete type
- com/sun/star/beans/XPropertyChangeListener.hpp
- com/sun/star/container/XContainer.hpp
- com/sun/star/container/XEnumerationAccess.hpp
- com/sun/star/form/XBoundComponent.hpp
- com/sun/star/form/XGridControl.hpp
- com/sun/star/form/XGridPeer.hpp
- com/sun/star/form/XLoadListener.hpp
- com/sun/star/form/XResetListener.hpp
- com/sun/star/frame/XDispatchProvider.hpp
- com/sun/star/frame/XDispatchProviderInterception.hpp
- com/sun/star/frame/XStatusListener.hpp
- com/sun/star/sdbc/XRowSetListener.hpp
- com/sun/star/sdb/XRowSetSupplier.hpp
- com/sun/star/util/XModeSelector.hpp
- com/sun/star/util/XModifyBroadcaster.hpp
- com/sun/star/view/XSelectionSupplier.hpp
- toolkit/awt/vclxwindow.hxx
include/svx/fmsrcimp.hxx:
# base class has to be a complete type
- com/sun/star/beans/XPropertyChangeListener.hpp
include/svx/fmtools.hxx:
# base class has to be a complete type
- com/sun/star/lang/XEventListener.hpp
......@@ -24,14 +24,13 @@
#include <svx/sdasitm.hxx>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/beans/PropertyValues.hpp>
#include <com/sun/star/awt/Point.hpp>
#include <com/sun/star/awt/Size.hpp>
#include <svl/itemset.hxx>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameter.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeTextFrame.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
#include <svx/EnhancedCustomShapeFunctionParser.hxx>
#include <tools/gen.hxx>
#include <o3tl/typed_flags_set.hxx>
......@@ -40,6 +39,9 @@
#include <memory>
#include <vector>
namespace com::sun::star::awt { struct Point; }
namespace com::sun::star::awt { struct Size; }
class Color;
class SdrObject;
class SdrPathObj;
......
......@@ -22,7 +22,6 @@
#include <sal/config.h>
#include <com/sun/star/drawing/EnhancedCustomShapeParameter.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterType.hpp>
#include <memory>
#include <ostream>
#include <vector>
......
......@@ -24,8 +24,6 @@
#include <basegfx/vector/b3dvector.hxx>
#include <svx/svxdllapi.h>
class SvStream;
class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxB3DVectorItem : public SfxPoolItem
{
basegfx::B3DVector aVal;
......
......@@ -21,7 +21,7 @@
#define INCLUDED_SVX_E3DUNDO_HXX
#include <svx/svdundo.hxx>
#include <svx/scene3d.hxx>
#include <svx/obj3d.hxx>
#include <svx/svxdllapi.h>
/************************************************************************\
......
......@@ -21,7 +21,6 @@
#define INCLUDED_SVX_EXTRUSIONBAR_HXX
#include <sfx2/shell.hxx>
#include <sfx2/module.hxx>
#include <svx/ifaceids.hxx>
#include <svx/svxdllapi.h>
......
......@@ -21,7 +21,6 @@
#define INCLUDED_SVX_FILLCTRL_HXX
#include <memory>
#include <svl/lstner.hxx>
#include <sfx2/tbxctrl.hxx>
#include <svx/svxdllapi.h>
#include <com/sun/star/drawing/FillStyle.hpp>
......
......@@ -29,10 +29,7 @@
#include <vcl/layout.hxx>
#include <svx/svxdllapi.h>
#include <svx/f3dchild.hxx>
#include <svx/dlgctl3d.hxx>
#include <svx/dlgctrl.hxx>
#include <svx/svdmodel.hxx>
enum class ViewType3D
......@@ -45,9 +42,6 @@ enum class ViewType3D
};
class FmFormModel;
class VirtualDevice;
class E3dView;
class SdrPageView;
class Svx3DCtrlItem;
class SvxConvertTo3DItem;
class SvxColorListBox;
......
......@@ -21,7 +21,6 @@
#define INCLUDED_SVX_FMGLOB_HXX
#include <com/sun/star/form/FormComponentType.hpp>
#include <svx/svdobj.hxx>
const sal_uInt16 OBJ_FM_CONTROL = css::form::FormComponentType::CONTROL;
// for form components
......
......@@ -19,14 +19,14 @@
#ifndef INCLUDED_SVX_FMGRIDCL_HXX
#define INCLUDED_SVX_FMGRIDCL_HXX
#include <com/sun/star/container/XIndexContainer.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <svx/gridctrl.hxx>
#include <vcl/transfer.hxx>
#include <svx/svxdllapi.h>
#include <memory>
namespace com::sun::star::beans { class XPropertySet; }
namespace com::sun::star::container { class XIndexContainer; }
namespace com::sun::star::container { class XNameAccess; }
// FmGridHeader
......
......@@ -22,14 +22,13 @@
#include <svx/svxdllapi.h>
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XContainer.hpp>
#include <com/sun/star/container/XContainerListener.hpp>
#include <com/sun/star/sdbc/XRowSetListener.hpp>
#include <com/sun/star/sdb/XRowSetSupplier.hpp>
#include <com/sun/star/form/XReset.hpp>
#include <com/sun/star/form/XResetListener.hpp>
#include <com/sun/star/form/XBoundComponent.hpp>
#include <com/sun/star/form/XLoadListener.hpp>
#include <com/sun/star/form/XGridControl.hpp>
......@@ -38,7 +37,6 @@
#include <com/sun/star/frame/XStatusListener.hpp>
#include <com/sun/star/frame/XDispatchProviderInterception.hpp>
#include <com/sun/star/view/XSelectionChangeListener.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/util/XModeSelector.hpp>
#include <com/sun/star/util/XModifyListener.hpp>
#include <com/sun/star/util/XModifyBroadcaster.hpp>
......@@ -51,6 +49,9 @@
#include <cppuhelper/implbase10.hxx>
#include <memory>
namespace com::sun::star::beans { class XPropertySet; }
namespace com::sun::star::uno { class XComponentContext; }
class DbGridColumn;
enum class DbGridControlNavigationBarState;
......
......@@ -27,10 +27,6 @@
class SfxObjectShell;
class SfxItemPool;
class FmXUndoEnvironment;
class SfxObjectShell;
class SbxObject;
class SbxArray;
class SbxValue;
struct FmFormModelImplData;
class SVX_DLLPUBLIC FmFormModel :
......
......@@ -23,7 +23,6 @@
#include <tools/link.hxx>
#include <svx/svxdllapi.h>
class SdrObjFactory;
class SdrObject;
struct SdrObjCreatorParams;
......
......@@ -23,9 +23,7 @@
#include <memory>
#include <svx/svdpage.hxx>
#include <svx/svxdllapi.h>
#include <tools/contnr.hxx>
class StarBASIC;
class FmFormModel;
class FmFormPageImpl; // contains a list of all forms
......
......@@ -20,15 +20,14 @@
#ifndef INCLUDED_SVX_FMSEARCH_HXX
#define INCLUDED_SVX_FMSEARCH_HXX
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <rtl/ustring.hxx>
#include <svx/svxdllapi.h>
namespace com { namespace sun { namespace star {
namespace util {
class XNumberFormatsSupplier;
}
}}}
#include <com/sun/star/uno/Reference.hxx>
#include <vector>
namespace com::sun::star::sdbc { class XResultSet; }
// Helper methods
......
......@@ -24,24 +24,23 @@
// ***************************************************************************************************
#include <memory>
#include <rtl/ref.hxx>
#include <sfx2/shell.hxx>
#include <sfx2/module.hxx>
#include <vcl/event.hxx>
#include <vcl/outdev.hxx>
#include <svx/svxids.hrc>
#include <svx/fmview.hxx>
#include <svx/svxdllapi.h>
#include <svx/ifaceids.hxx>
#include <svl/hint.hxx>
#include <com/sun/star/uno/Reference.hxx>
class FmFormModel;
class FmFormPage;
class FmXFormShell;
class FmFormView;
class SdrView;
class SdrPage;
class SdrUnoObj;
class LinkParamNone;
namespace com { namespace sun { namespace star { namespace form {
class XForm;
......@@ -50,6 +49,10 @@ namespace com { namespace sun { namespace star { namespace form {
}
} } } }
namespace com::sun::star::awt { class XControl; }
namespace com::sun::star::awt { class XControlModel; }
template <typename Arg, typename Ret> class Link;
namespace svx
{
class ISdrObjectFilter;
......
......@@ -23,22 +23,23 @@
#include <svx/fmtools.hxx>
#include <svx/svxdllapi.h>
#include <com/sun/star/awt/XCheckBox.hpp>
#include <com/sun/star/awt/XListBox.hpp>
#include <com/sun/star/awt/XTextComponent.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/util/XNumberFormatter.hpp>
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <cppuhelper/implbase.hxx>
#include <osl/mutex.hxx>
#include <unotools/charclass.hxx>
#include <unotools/collatorwrapper.hxx>
#include <osl/thread.hxx>
#include <tools/link.hxx>
#include <deque>
#include <memory>
#include <vector>
namespace com::sun::star::awt { class XCheckBox; }
namespace com::sun::star::awt { class XListBox; }
namespace com::sun::star::awt { class XTextComponent; }
namespace com::sun::star::sdb { class XColumn; }
enum class TransliterationFlags;
/**
......
......@@ -21,47 +21,26 @@
#include <svx/svxdllapi.h>
#include <com/sun/star/sdb/SQLContext.hpp>
#include <com/sun/star/sdb/XSQLQueryComposerFactory.hpp>
#include <com/sun/star/sdbcx/Privilege.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
#include <com/sun/star/sdbc/XRowSet.hpp>
#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
#include <com/sun/star/sdb/XColumn.hpp>
#include <com/sun/star/sdb/XColumnUpdate.hpp>
#include <com/sun/star/sdb/SQLErrorEvent.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/XResultSetUpdate.hpp>
#include <com/sun/star/sdbcx/XRowLocate.hpp>
#include <com/sun/star/sdbc/XDataSource.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexContainer.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XEnumeration.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/awt/XControlModel.hpp>
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/awt/FontSlant.hpp>
#include <com/sun/star/awt/FontDescriptor.hpp>
#include <com/sun/star/awt/FontUnderline.hpp>
#include <com/sun/star/awt/FontStrikeout.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/io/XObjectInputStream.hpp>
#include <com/sun/star/io/XObjectOutputStream.hpp>
#include <com/sun/star/io/XPersistObject.hpp>
#include <com/sun/star/util/XNumberFormatter.hpp>
#include <com/sun/star/util/XNumberFormats.hpp>
#include <com/sun/star/lang/EventObject.hpp>
#include <com/sun/star/lang/XEventListener.hpp>
#include <rtl/ref.hxx>
#include <tools/wintypes.hxx>
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/implbase.hxx>
#include <set>
namespace com::sun::star::beans { class XPropertySet; }
namespace com::sun::star::container { class XIndexAccess; }
namespace com::sun::star::container { class XNameAccess; }
namespace com::sun::star::lang { class XComponent; }
namespace com::sun::star::lang { class XServiceInfo; }
namespace com::sun::star::sdbc { class SQLException; }
namespace com::sun::star::sdbc { class XRowSet; }
namespace com::sun::star::sdb { class SQLContext; }
namespace com::sun::star::sdb { struct SQLErrorEvent; }
namespace vcl { class Window; }
......
......@@ -33,7 +33,6 @@ namespace com { namespace sun { namespace star {
}}}
class OutputDevice;
class FmFormModel;
class FmFormObj;
class FmFormPage;
class FmFormShell;
......
......@@ -20,10 +20,7 @@
#ifndef INCLUDED_SVX_FONTLB_HXX
#define INCLUDED_SVX_FONTLB_HXX
#include <vcl/svtabbx.hxx>
#include <vcl/svlbitm.hxx>
#include <vcl/virdev.hxx>
#include <svx/svxdllapi.h>
/** A list box string item which stores its text and font. */
......
......@@ -23,22 +23,16 @@
#include <vcl/fixed.hxx>
#include <vcl/field.hxx>
#include <vcl/idle.hxx>
#include <svtools/valueset.hxx>
#include <sfx2/dockwin.hxx>
#include <sfx2/ctrlitem.hxx>
#include <svx/xenum.hxx>
#include <svx/dlgctrl.hxx>
#include <svx/svxdllapi.h>
#include <svx/xtextit0.hxx>
class SdrView;
class SdrPageView;
class SdrObject;
class SvxColorListBox;
class XFormTextAdjustItem;
class XFormTextDistanceItem;
class XFormTextStartItem;
class XFormTextStyleItem;
class XFormTextMirrorItem;
class XFormTextHideFormItem;
class XFormTextOutlineItem;
......
......@@ -21,7 +21,6 @@
#define INCLUDED_SVX_FONTWORKBAR_HXX
#include <sfx2/shell.hxx>
#include <sfx2/module.hxx>
#include <svx/ifaceids.hxx>
#include <svx/svxdllapi.h>
......
......@@ -23,16 +23,12 @@
#include <svx/svxdllapi.h>
#include <svtools/valueset.hxx>
#include <sfx2/tbxctrl.hxx>
#include <vcl/weld.hxx>
#include <vector>
class FmFormModel;
class SdrView;
class SdrTextObj;
class SdrObject;
class SdrModel;
class SfxBindings;
namespace svx
{
......
......@@ -20,19 +20,12 @@
#ifndef INCLUDED_SVX_FRAMELINK_HXX
#define INCLUDED_SVX_FRAMELINK_HXX
#include <algorithm>
#include <sal/types.h>
#include <tools/color.hxx>
#include <svx/svxdllapi.h>
#include <vcl/outdev.hxx>
#include <editeng/borderline.hxx>
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
class Point;
namespace tools { class Rectangle; }
class OutputDevice;
namespace svx { namespace frame { class Cell; }}
#include <memory>
namespace svx {
namespace frame {
......
......@@ -20,17 +20,18 @@
#ifndef INCLUDED_SVX_FRAMELINKARRAY_HXX
#define INCLUDED_SVX_FRAMELINKARRAY_HXX
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <svx/framelink.hxx>
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
#include <svx/svxdllapi.h>
#include <svx/rotmodit.hxx>
#include <memory>
#include <vector>
class Color;
namespace svx {
namespace frame {
struct ArrayImpl;
class Style;
/** Stores frame styles of an array of cells, supports merged ranges.
......
......@@ -24,8 +24,6 @@
#include <editeng/frmdir.hxx>
#include <svx/svxdllapi.h>
class SvxFrameDirectionItem;
namespace svx {
/** This listbox contains entries to select horizontal text direction.
......
......@@ -21,9 +21,7 @@
#define INCLUDED_SVX_FRMSEL_HXX
#include <memory>
#include <vcl/ctrl.hxx>
#include <vcl/customweld.hxx>
#include <vcl/bitmap.hxx>
#include <editeng/borderline.hxx>
#include <svx/framebordertype.hxx>
#include <svx/svxdllapi.h>
......@@ -31,10 +29,6 @@
class Color;
namespace editeng {
class SvxBorderLine;
}
enum class FrameSelFlags
{
NONE = 0x0000,
......
......@@ -21,22 +21,16 @@
#define INCLUDED_SVX_GALCTRL_HXX
#include <vcl/graph.hxx>
#include <vcl/fixed.hxx>
#include <vcl/button.hxx>
#include <vcl/menu.hxx>
#include <vcl/edit.hxx>
#include <vcl/combobox.hxx>
#include <vcl/customweld.hxx>
#include <svl/slstitm.hxx>
#include <vcl/transfer.hxx>
#include <svtools/valueset.hxx>
#include <svtools/brwbox.hxx>
#include <vcl/GraphicObject.hxx>
#include <svx/galmisc.hxx>
#include <svx/svxdllapi.h>
class GalleryTheme;
class GalleryBrowser2;
class INetURLObject;
class SVX_DLLPUBLIC GalleryPreview : public vcl::Window, public DropTargetHelper, public DragSourceHelper
{
......
......@@ -21,7 +21,7 @@
#define INCLUDED_SVX_GALLERY_HXX
#include <svx/svxdllapi.h>
#include <tools/urlobj.hxx>
#include <rtl/ustring.hxx>
#include <vector>
// Defines for preinstalled themes
......@@ -92,14 +92,9 @@
#define RID_GALLERY_THEME_FIRST RID_GALLERY_THEME_3D
#define RID_GALLERY_THEME_LAST RID_GALLERY_THEME_TXTSHAPES
class Gallery;
class VCDrawModel;
class FmFormModel;
class SdrModel;
class Graphic;
class FmFormModel;
class BitmapEx;
class OutputDevice;
class SVX_DLLPUBLIC GalleryExplorer
{
......
......@@ -29,8 +29,6 @@
#include <memory>
#include <vector>
class SvStream;
class GalleryThemeEntry
{
......
......@@ -23,8 +23,9 @@
#include <svl/poolitem.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/graphic/XGraphic.hpp>
#include <com/sun/star/lang/XComponent.hpp>
namespace com::sun::star::graphic { class XGraphic; }
namespace com::sun::star::lang { class XComponent; }
// property names map those from css::gallery::GalleryItem
// with exception of "AsLink" and "FilterName"
......
......@@ -20,19 +20,19 @@
#ifndef INCLUDED_SVX_GALMISC_HXX
#define INCLUDED_SVX_GALMISC_HXX
#include <sot/formats.hxx>
#include <tools/urlobj.hxx>
#include <vcl/imap.hxx>
#include <svl/hint.hxx>
#include <vcl/transfer.hxx>
#include <svx/svdobj.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/awt/XProgressMonitor.hpp>
#include <svx/svxdllapi.h>
#include <tools/date.hxx>
#include <tools/time.hxx>
#include <memory>
namespace com::sun::star::awt { class XProgressBar; }
class INetURLObject;
class GalleryTheme;
class SotStorageStream;
......@@ -79,8 +79,6 @@ enum class GalleryGraphicImportRet
class SvStream;
class Graphic;
class FmFormModel;
class ImageMap;
class Gallery;
GalleryGraphicImportRet GalleryGraphicImport( const INetURLObject& rURL, Graphic& rGraphic, OUString& rFilterName );
bool GallerySvDrawImport( SvStream& rIStm, SdrModel& rModel );
......@@ -130,7 +128,6 @@ class SVX_DLLPUBLIC GalleryProgress
void Update( sal_Int32 nVal, sal_Int32 nMaxVal );
};
class Gallery;
class GalleryTheme;
class GraphicObject;
......
......@@ -25,15 +25,13 @@
#include <tools/debug.hxx>
#include <tools/urlobj.hxx>
#include <vcl/salctype.hxx>
#include <vcl/weld.hxx>
#include <svl/SfxBroadcaster.hxx>
#include <svl/lstner.hxx>
#include <vcl/transfer.hxx>
#include <svx/svdmodel.hxx>
#include <svx/galmisc.hxx>
#include <memory>
#include <vector>
namespace weld { class ComboBox; }
class SotStorage;
class SotStorageStream;
......@@ -58,7 +56,6 @@ class SgaObject;
class FmFormModel;