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

tdf#42949 Fix IWYU warnings in include/vcl/[f-h]*

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

Change-Id: Ice2eb8c5994bf2ccb88972332ca4a1d3ed41752a
Reviewed-on: https://gerrit.libreoffice.org/63826
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst 87646341
......@@ -25,6 +25,7 @@
#include <vcl/font.hxx>
#include <map>
#include <vector>
// class CharacterAttributesHelper
......
......@@ -34,6 +34,7 @@
#include <svl/stritem.hxx>
#include <svl/srchdefs.hxx>
#include <vcl/weld.hxx>
#include <tools/stream.hxx>
namespace basctl
{
......
......@@ -24,6 +24,7 @@
#include <canvas/canvastools.hxx>
#include <rtl/instance.hxx>
#include <tools/diagnose_ex.h>
#include <tools/stream.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/dibtools.hxx>
......
......@@ -23,6 +23,7 @@
#include <canvas/canvastools.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/dibtools.hxx>
#include <tools/stream.hxx>
#include "canvasbitmap.hxx"
#include "spritecanvas.hxx"
......
......@@ -16,6 +16,8 @@
#include <test/unoapi_test.hxx>
#include <vcl/bitmapaccess.hxx>
#include <vcl/pngwrite.hxx>
#include <vcl/gdimtf.hxx>
#include <tools/stream.hxx>
using namespace com::sun::star;
......
......@@ -11,6 +11,7 @@
#include <FontFeaturesDialog.hxx>
#include <vcl/font/FeatureParser.hxx>
#include <svx/dialmgr.hxx>
#include <unordered_set>
using namespace css;
......
......@@ -41,6 +41,7 @@
#include <sal/log.hxx>
#include <tools/urlobj.hxx>
#include <tools/debug.hxx>
#include <tools/stream.hxx>
#include <svl/urihelper.hxx>
#include <vcl/weld.hxx>
#include <vcl/svapp.hxx>
......
......@@ -19,6 +19,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <tools/stream.hxx>
#include <tools/debug.hxx>
#include <sal/log.hxx>
#include "cfgchart.hxx"
#include <dialmgr.hxx>
......
......@@ -19,6 +19,7 @@
#include <rtl/bootstrap.hxx>
#include <rtl/strbuf.hxx>
#include <tools/urlobj.hxx>
#include <tools/stream.hxx>
#include <vcl/edit.hxx>
#include <vcl/fixed.hxx>
#include <vcl/fixedhyper.hxx>
......
......@@ -115,6 +115,7 @@
#include <svl/eitem.hxx>
#include <basic/sbstar.hxx>
#include <desktop/crashreport.hxx>
#include <tools/urlobj.hxx>
#include <svtools/fontsubstconfig.hxx>
#include <svtools/accessibilityoptions.hxx>
......
......@@ -46,6 +46,7 @@
#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <vcl/gradient.hxx>
#include <vcl/hatch.hxx>
#include <emfplushelper.hxx>
......
......@@ -43,6 +43,7 @@
#include <comphelper/fileformat.h>
#include <comphelper/processfactory.hxx>
#include <tools/mapunit.hxx>
#include <tools/stream.hxx>
#include <unotools/configmgr.hxx>
#include <libxml/xmlwriter.h>
#include <editeng/unonrule.hxx>
......
......@@ -31,6 +31,7 @@
#include <editeng/memberids.h>
#include <svl/itempool.hxx>
#include <vcl/unohelp.hxx>
#include <tools/gen.hxx>
#include <editeng/unofdesc.hxx>
#include <editeng/svxfont.hxx>
......
......@@ -40,6 +40,7 @@
#include <vcl/floatwin.hxx>
#include <svtools/svmedit.hxx>
#include <svtools/colorcfg.hxx>
#include <svl/zforlist.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/datetime.hxx>
#include <i18nlangtag/languagetag.hxx>
......
......@@ -23,6 +23,7 @@
#include "commoncontrol.hxx"
#include <vcl/fmtfield.hxx>
#include <svtools/fileurlbox.hxx>
#include <svl/zforlist.hxx>
#include "standardcontrol.hxx"
class SvNumberFormatsSupplierObj;
......
......@@ -14,6 +14,7 @@
#include <test/bootstrapfixture.hxx>
#include <unotools/mediadescriptor.hxx>
#include <unotools/streamwrap.hxx>
#include <tools/stream.hxx>
namespace com
{
......
......@@ -18,12 +18,14 @@
*/
#include <tools/stream.hxx>
#include <vcl/graph.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <svl/solar.hrc>
#include <vcl/fltcall.hxx>
#include <vcl/FilterConfigItem.hxx>
#include <com/sun/star/task/XStatusIndicator.hpp>
#include "giflzwc.hxx"
#include <memory>
......
......@@ -41,6 +41,7 @@
#include <vcl/weld.hxx>
#include <strings.hrc>
#include <osl/diagnose.h>
#include <com/sun/star/task/XStatusIndicator.hpp>
#include <math.h>
#include <memory>
......
......@@ -18,12 +18,14 @@
*/
#include <tools/stream.hxx>
#include <vcl/graph.hxx>
#include <vcl/svapp.hxx>
#include <vcl/bitmapaccess.hxx>
#include <svl/solar.hrc>
#include <vcl/fltcall.hxx>
#include <vcl/FilterConfigItem.hxx>
#include <com/sun/star/task/XStatusIndicator.hpp>
#define NewSubfileType 254
#define ImageWidth 256
......
......@@ -21,11 +21,13 @@
#include <o3tl/safeint.hxx>
#include <tools/poly.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <sal/log.hxx>
#include <vcl/graph.hxx>
#include <vcl/dibtools.hxx>
#include <vcl/virdev.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/gdimtf.hxx>
#include <math.h>
#include <algorithm>
......
......@@ -22,6 +22,7 @@
#include <sal/log.hxx>
#include <vcl/BitmapTools.hxx>
#include <vcl/graph.hxx>
#include <vcl/gdimtf.hxx>
#include <tools/poly.hxx>
#include <tools/fract.hxx>
#include <vcl/virdev.hxx>
......
......@@ -39,6 +39,7 @@
#include <vcl/wrkwin.hxx>
#include <tools/stream.hxx>
#include <tools/zcodec.hxx>
#include <tools/urlobj.hxx>
#include <svx/svdopath.hxx>
#include <stdlib.h>
#include <vcl/graphicfilter.hxx>
......
......@@ -36,6 +36,7 @@
#include <vcl/weld.hxx>
#include <sfx2/filedlghelper.hxx>
#include <vcl/treelistentry.hxx>
#include <tools/stream.hxx>
#include <rtl/uri.hxx>
......
......@@ -17,6 +17,7 @@
#include <com/sun/star/frame/XInterceptorInfo.hpp>
#include <comphelper/processfactory.hxx>
#include <rtl/ref.hxx>
using namespace ::com::sun::star;
......
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <i18nlangtag/languagetag.hxx>
#include <svl/lngmisc.hxx>
#include <svtools/popupmenucontrollerbase.hxx>
#include <unotools/lingucfg.hxx>
......
......@@ -35,6 +35,8 @@
#include <vcl/bitmap.hxx>
#include <vcl/graphicfilter.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/menu.hxx>
#include <vcl/combobox.hxx>
#include <svtools/miscopt.hxx>
using namespace ::com::sun::star;
......
......@@ -313,3 +313,9 @@ blacklist:
include/vcl/event.hxx:
# Needed for enum type
- vcl/window.hxx
include/vcl/fntstyle.hxx:
# Needed for template
- o3tl/typed_flags_set.hxx
include/vcl/help.hxx:
# Needed for template
- o3tl/typed_flags_set.hxx
......@@ -32,6 +32,7 @@
#include <tools/contnr.hxx>
#include <vcl/graph.hxx>
#include <vcl/outdev.hxx>
#include <vcl/errcode.hxx>
#include <tools/link.hxx>
#include <svl/style.hxx>
#include <editeng/editengdllapi.h>
......
......@@ -21,6 +21,7 @@
#include <memory>
#include <vcl/graphicfilter.hxx>
#include <vcl/weld.hxx>
#include <sfx2/dllapi.h>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
......
......@@ -27,6 +27,7 @@
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <svx/svxdllapi.h>
#include <rtl/ref.hxx>
#include <map>
#include <memory>
......
......@@ -23,6 +23,7 @@
#include <cppuhelper/compbase.hxx>
#include <osl/mutex.hxx>
#include <vcl/GraphicObject.hxx>
#include <rtl/ref.hxx>
#include <vector>
#include <set>
#include <unordered_map>
......
......@@ -21,6 +21,7 @@
#define INCLUDED_SVX_XOUTBMP_HXX
#include <vcl/graph.hxx>
#include <vcl/errcode.hxx>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <svx/svxdllapi.h>
......
......@@ -24,13 +24,14 @@
#include <vcl/dllapi.h>
#include <rtl/ustring.hxx>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/uno/Any.h>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertyAccess.hpp>
#include <com/sun/star/task/XStatusIndicator.hpp>
#include <com/sun/star/uno/Sequence.hxx>
namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } }
namespace com { namespace sun { namespace star { namespace task { class XStatusIndicator; } } } }
namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
class VCL_DLLPUBLIC FilterConfigItem
{
......
......@@ -10,8 +10,8 @@
#ifndef INCLUDED_VCL_GRAPHIC_EXTERNAL_LINK_HXX
#define INCLUDED_VCL_GRAPHIC_EXTERNAL_LINK_HXX
#include <memory>
#include <vcl/dllapi.h>
#include <rtl/ustring.hxx>
class VCL_DLLPUBLIC GraphicExternalLink
{
......
......@@ -20,7 +20,10 @@
#ifndef INCLUDED_VCL_GRAPHICNATIVETRANSFORM_HXX
#define INCLUDED_VCL_GRAPHICNATIVETRANSFORM_HXX
#include <vcl/graph.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <vcl/dllapi.h>
class Graphic;
class VCL_DLLPUBLIC GraphicNativeTransform final
{
......
......@@ -23,11 +23,9 @@
#include <memory>
#include <vcl/graph.hxx>
#include <vcl/dllapi.h>
#include <o3tl/typed_flags_set.hxx>
#include <com/sun/star/graphic/XGraphic.hpp>
#include <unordered_set>
namespace com { namespace sun { namespace star { namespace graphic { class XGraphic; } } } }
namespace o3tl { template <typename T> struct typed_flags; }
enum class GraphicManagerDrawFlags
{
......@@ -64,9 +62,6 @@ enum class GraphicDrawMode
Watermark = 3
};
class GraphicManager;
class SvStream;
class GraphicCache;
class VirtualDevice;
struct GrfSimpleCacheObj;
struct ImplTileInfo;
......
......@@ -23,6 +23,7 @@
#include <vcl/dllapi.h>
#include <tools/link.hxx>
#include <vcl/salctype.hxx>
#include <vcl/errcode.hxx>
class Graphic;
......
......@@ -15,8 +15,6 @@
#include <map>
#include <vector>
#include <com/sun/star/uno/Reference.h>
#include <tools/stream.hxx>
#include <vcl/dllapi.h>
......@@ -35,12 +33,25 @@ class XCertificate;
}
}
namespace com
{
namespace sun
{
namespace star
{
namespace uno
{
template <class interface_type> class Reference;
}
}
}
}
namespace vcl
{
namespace filter
{
class PDFTrailerElement;
class PDFHexStringElement;
class PDFReferenceElement;
class PDFDocument;
class PDFDictionaryElement;
......
......@@ -20,15 +20,12 @@
#ifndef INCLUDED_VCL_FIXED_HXX
#define INCLUDED_VCL_FIXED_HXX
#include <tools/solar.h>
#include <vcl/dllapi.h>
#include <vcl/bitmapex.hxx>
#include <vcl/ctrl.hxx>
#include <vcl/edit.hxx>
#include <vcl/image.hxx>
class UserDrawEvent;
class VCL_DLLPUBLIC FixedText : public Control
{
......
......@@ -20,12 +20,12 @@
#ifndef INCLUDED_VCL_FLOATWIN_HXX
#define INCLUDED_VCL_FLOATWIN_HXX
#include <tools/solar.h>
#include <vcl/dllapi.h>
#include <vcl/syswin.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <memory>
namespace o3tl { template <typename T> struct typed_flags; }
class ToolBox;
......
......@@ -19,16 +19,10 @@
#ifndef INCLUDED_VCL_FLTCALL_HXX
#define INCLUDED_VCL_FLTCALL_HXX
#include <sal/types.h>
#include <vcl/field.hxx>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <vcl/FilterConfigItem.hxx>
class FilterConfigItem;
class SvStream;
class Graphic;
namespace vcl { class Window; }
typedef bool (*PFilterCall)(SvStream & rStream, Graphic & rGraphic,
FilterConfigItem* pConfigItem);
......
......@@ -20,11 +20,11 @@
#ifndef INCLUDED_VCL_FMTFIELD_HXX
#define INCLUDED_VCL_FMTFIELD_HXX
#include <svtools/svtdllapi.h>
#include <vcl/spinfld.hxx>
#include <svl/zforlist.hxx>
#include <memory>
class SvNumberFormatter;
namespace validation { class NumberValidator; }
enum class FORMAT_CHANGE_TYPE
......
......@@ -23,13 +23,14 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <vcl/dllapi.h>
#include <i18nlangtag/languagetag.hxx>
#include <tools/color.hxx>
#include <tools/gen.hxx>
#include <vcl/vclenum.hxx>
#include <tools/fontenum.hxx>
#include <i18nlangtag/lang.h>
#include <vcl/fntstyle.hxx>
#include <o3tl/cow_wrapper.hxx>
class Size;
class LanguageTag;
class SvStream;
#define FontAlign TextAlign
......
......@@ -12,10 +12,7 @@
#include <vcl/dllapi.h>
#include <rtl/ustring.hxx>
#include <rtl/string.hxx>
#include <memory>
#include <vector>
#include <unordered_map>
namespace vcl
{
......
......@@ -12,11 +12,8 @@
#include <vcl/dllapi.h>
#include <rtl/ustring.hxx>
#include <rtl/string.hxx>
#include <memory>
#include <vector>
#include <unordered_map>
#include <vcl/font/Feature.hxx>
namespace vcl
{
......
......@@ -11,11 +11,8 @@
#define INCLUDED_VCL_FONTCAPABILITIES_HXX
#include <boost/optional.hpp>
#include <vector>
#include <bitset>
#include <sal/types.h>
//See OS/2 table, i.e. http://www.microsoft.com/typography/otspec/os2.htm#ur
namespace vcl
{
......
......@@ -21,11 +21,12 @@
#define INCLUDED_FONTCHARMAP_HXX
#include <vcl/dllapi.h>
#include <vcl/font.hxx>
#include <vcl/outdev.hxx>
#include <tools/ref.hxx>
class ImplFontCharMap;
class CmapResult;
class FontCharMap;
class OutputDevice;
typedef sal_uInt32 sal_UCS4;
typedef tools::SvRef<ImplFontCharMap> ImplFontCharMapRef;
......
......@@ -19,7 +19,8 @@
#ifndef INCLUDED_VCL_GDIMETAFILETOOLS_HXX
#define INCLUDED_VCL_GDIMETAFILETOOLS_HXX
#include <vcl/gdimtf.hxx>
#include <vcl/dllapi.h>
class GDIMetaFile;
// #i121267# Added tooling to be able to support old exporters which are based on
......
......@@ -29,7 +29,6 @@
class OutputDevice;
class MetaAction;
class MetaCommentAction;
class SvStream;
class Color;
class BitmapEx;
......
......@@ -22,7 +22,6 @@
#include <rtl/ustring.hxx>
#include <tools/gen.hxx>
#include <tools/solar.h>
#include <vcl/dllapi.h>
#include <vcl/mapmod.hxx>
#include <memory>
......
......@@ -20,9 +20,11 @@
#ifndef INCLUDED_VCL_GLYPHITEM_HXX
#define INCLUDED_VCL_GLYPHITEM_HXX
#include <sal/types.h>
#include <vcl/dllapi.h>
typedef sal_uInt16 sal_GlyphId;
struct GlyphItem;
class SalLayoutGlyphsImpl;
class VCL_DLLPUBLIC SalLayoutGlyphs final
......
......@@ -21,14 +21,11 @@
#define INCLUDED_VCL_GRAPH_HXX
#include <memory>
#include <tools/stream.hxx>
#include <vcl/dllapi.h>
#include <tools/solar.h>
#include <rtl/ustring.hxx>
#include <vcl/bitmap.hxx>
#include <vcl/bitmapex.hxx>
#include <vcl/animate.hxx>
#include <vcl/gdimtf.hxx>
#include <vcl/gfxlink.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <vcl/vectorgraphicdata.hxx>
......@@ -47,7 +44,9 @@ enum class GraphicType
namespace com { namespace sun { namespace star { namespace graphic { class XGraphic;} } } }
namespace vcl { class Font; }
class GfxLink;
class Bitmap;
class GDIMetaFile;
class SvStream;
class ImpGraphic;
class OutputDevice;
class ReaderData;
......
......@@ -21,17 +21,18 @@
#define INCLUDED_VCL_GRAPHICFILTER_HXX
#include <tools/gen.hxx>
#include <tools/urlobj.hxx>
#include <vcl/dllapi.h>
#include <vcl/field.hxx>
#include <vcl/graph.hxx>
#include <vcl/errcode.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <memory>
namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } }
namespace com { namespace sun { namespace star { namespace uno { template <class E> class Sequence; } } } }
namespace o3tl { template <typename T> struct typed_flags; }
class INetURLObject;
class FilterConfigCache;
class SvStream;
struct WmfExternal;
......
......@@ -22,12 +22,10 @@
#include <vcl/dllapi.h>
#include <sal/types.h>
#include <rtl/string.hxx>
#include <tools/color.hxx>
#include <tools/poly.hxx>
#include <vcl/graph.hxx>
#include <memory>
#include <vector>
class SvStream;
......
......@@ -171,7 +171,6 @@ HeaderBarItemBits::CLICKABLE, but HeaderBarItemBits::FIXEDPOS.
*************************************************************************/
class Accelerator;
class ImplHeadItem;
#define WB_BOTTOMBORDER (WinBits(0x0400))
......@@ -209,8 +208,6 @@ namespace o3tl
#define HEADERBAR_TEXTOFF 2
class VCLXHeaderBar;
class VCL_DLLPUBLIC HeaderBar : public vcl::Window
{
......
......@@ -21,7 +21,6 @@
#define INCLUDED_VCL_HELP_HXX
#include <rtl/ustring.hxx>
#include <tools/solar.h>
#include <vcl/dllapi.h>
#include <o3tl/typed_flags_set.hxx>
......
......@@ -21,6 +21,7 @@
#include <vcl/dllapi.h>
#include <tools/gen.hxx>
#include <tools/solar.h>
#include <vcl/imapobj.hxx>
class Fraction;
......
......@@ -23,6 +23,7 @@
#include <sal/config.h>
#include <cstddef>
#include <vector>
#include <vcl/dllapi.h>
#include <vcl/vclptr.hxx>
......
......@@ -32,6 +32,7 @@
class ImplLayoutArgs;