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

tdf#42949 Fix IWYU warnings in sw/source/core/*/*hxx

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

Change-Id: Idbd13674578be9d4edce5d2a5f45df145474d86d
Reviewed-on: https://gerrit.libreoffice.org/72579
Tested-by: Jenkins
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
üst c4efffba
......@@ -250,6 +250,20 @@ blacklist:
- com/sun/star/text/XRedline.hpp
# sw::UnoImplPtr typedef
- unobaseclass.hxx
sw/source/core/access/acccontext.hxx:
# Base class needs complete type
- com/sun/star/accessibility/XAccessibleComponent.hpp
- com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp
- com/sun/star/lang/XServiceInfo.hpp
sw/source/core/access/acchyperlink.hxx:
# Base class needs complete type
- com/sun/star/accessibility/XAccessibleHyperlink.hpp
sw/source/core/access/accnotexthyperlink.hxx:
# Base class needs complete type
- com/sun/star/accessibility/XAccessibleHyperlink.hpp
sw/source/core/docnode/cancellablejob.hxx:
# Base class needs complete type
- com/sun/star/util/XCancellable.hpp
sw/source/core/inc/acorrect.hxx:
# Needed for implicit dtor
- svl/itemset.hxx
......
......@@ -24,15 +24,12 @@
#include <accmap.hxx>
#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <memory>
namespace vcl { class Window; }
class SwAccessibleMap;
class SwCursorShell;
class SdrObject;
class SwPaM;
......
......@@ -26,8 +26,6 @@
#include <com/sun/star/accessibility/XAccessibleGetAccFlowTo.hpp>
#include "accselectionhelper.hxx"
class VclSimpleEvent;
// base class for SwAccessibleDocument (in this same header file) and
// SwAccessiblePreview
class SwAccessibleDocumentBase : public SwAccessibleContext
......
......@@ -31,9 +31,6 @@
class SwAccessibleMap;
class SwFrame;
class SwViewShell;
namespace sw { namespace access {
class SwAccessibleChild;
}}
// Any method of this class must be called with an acquired solar mutex!
......
......@@ -22,7 +22,7 @@
#include "acccontext.hxx"
#include <calbck.hxx>
#include <pam.hxx>
#include <ndtyp.hxx>
class SwFlyFrame;
......
......@@ -25,8 +25,7 @@
#include <cppuhelper/implbase.hxx>
#include <svl/listener.hxx>
#include <fmtinfmt.hxx>
class SwFormatINetFormat;
class SwAccessibleParagraph;
class SwTextAttr;
......
......@@ -24,14 +24,8 @@
#include <com/sun/star/accessibility/XAccessibleImage.hpp>
#include <com/sun/star/accessibility/XAccessibleHypertext.hpp>
namespace utl { class AccessibleRelationSetHelper; }
namespace com { namespace star {
namespace accessibility { struct AccessibleRelation; }
} }
class SwFlyFrame;
class SwNoTextNode;
class SwAccessibleNoTextHyperlink;
class SwAccessibleNoTextFrame : public SwAccessibleFrameBase,
public css::accessibility::XAccessibleImage,
......
......@@ -20,10 +20,7 @@
#define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCNOTEXTHYPERLINK_HXX
#include <com/sun/star/accessibility/XAccessibleHyperlink.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <cppuhelper/implbase.hxx>
#include <fmtinfmt.hxx>
#include <frame.hxx>
#include <layfrm.hxx>
#include "accnotextframe.hxx"
......
......@@ -42,6 +42,7 @@
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/beans/UnknownPropertyException.hpp>
#include <breakit.hxx>
#include "accpara.hxx"
......
......@@ -26,16 +26,13 @@
#include <com/sun/star/accessibility/XAccessibleTextMarkup.hpp>
#include <com/sun/star/accessibility/XAccessibleMultiLineText.hpp>
#include <com/sun/star/accessibility/XAccessibleTextSelection.hpp>
#include <txmsrt.hxx>
#include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
#include <com/sun/star/accessibility/XAccessibleTextAttributes.hpp>
#include "accselectionhelper.hxx"
#include <calbck.hxx>
#include <unordered_map>
#include <svl/lstner.hxx>
class SwField;
class SwTextFrame;
class SwTextNode;
class SwPaM;
class SwAccessiblePortionData;
class SwAccessibleHyperTextData;
......
......@@ -22,7 +22,8 @@
#include <sal/types.h>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/accessibility/XAccessible.hpp>
namespace com::sun::star::accessibility { class XAccessible; }
class SwAccessibleContext;
class SwFEShell;
......
......@@ -25,10 +25,6 @@
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
class SwFlyFrame;
namespace utl { class AccessibleRelationSetHelper; }
namespace com { namespace star {
namespace accessibility { struct AccessibleRelation; }
} }
class SwAccessibleTextFrame : public SwAccessibleFrameBase,
public css::accessibility::XAccessibleSelection
......
......@@ -25,6 +25,8 @@
#include <com/sun/star/text/TextMarkupType.hpp>
#include <com/sun/star/accessibility/TextSegment.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <osl/diagnose.h>
#include <ndtxt.hxx>
......
......@@ -20,9 +20,6 @@
#define INCLUDED_SW_SOURCE_CORE_ACCESS_TEXTMARKUPHELPER_HXX
#include <sal/types.h>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/uno/Sequence.h>
namespace com { namespace sun { namespace star { namespace accessibility {
......
......@@ -19,12 +19,13 @@
#ifndef INCLUDED_SW_SOURCE_CORE_CRSR_BLOCKCURSOR_HXX
#define INCLUDED_SW_SOURCE_CORE_CRSR_BLOCKCURSOR_HXX
#include <crsrsh.hxx>
#include <boost/optional.hpp>
#include <tools/gen.hxx>
#include <viscrs.hxx>
class SwCursorShell;
struct SwPosition;
class Point;
/** Access to the block cursor
......
......@@ -26,7 +26,7 @@
#include <rtl/ref.hxx>
class ObservableThread;
#include <observablethread.hxx>
class CancellableJob : public ::cppu::WeakImplHelper<css::util::XCancellable>
{
......
......@@ -16,12 +16,17 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "cancellablejob.hxx"
#include "threadmanager.hxx"
#include <threadlistener.hxx>
#include <osl/diagnose.h>
#include <algorithm>
#include <com/sun/star/util/XJobManager.hpp>
using namespace ::com::sun::star;
/** class to manage threads
......
......@@ -19,23 +19,23 @@
#ifndef INCLUDED_SW_SOURCE_CORE_DOCNODE_THREADMANAGER_HXX
#define INCLUDED_SW_SOURCE_CORE_DOCNODE_THREADMANAGER_HXX
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <osl/mutex.hxx>
#include <osl/interlck.h>
#include <rtl/ref.hxx>
#include <deque>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/weakref.hxx>
#include <com/sun/star/util/XJobManager.hpp>
#include <observablethread.hxx>
#include "cancellablejob.hxx"
#include <threadlistener.hxx>
#include <memory>
#include <ifinishedthreadlistener.hxx>
namespace com::sun::star::util { class XCancellable; }
namespace com::sun::star::util { class XJobManager; }
class IFinishedThreadListener;
class ThreadListener;
class Timer;
/** class to manage threads
......
......@@ -22,6 +22,9 @@
#include <swrect.hxx>
#include <tools/solar.h>
#include <memory>
#include <vector>
#include <deque>
......@@ -29,7 +32,6 @@ class SwDoc;
class SwFrame;
class SwLayoutFrame;
class SwPageFrame;
class SwFlyFrame;
class SwSectionFrame;
class SwSectionNode;
class SvStream;
......
......@@ -21,7 +21,6 @@
#include <vcl/virdev.hxx>
#include <swtypes.hxx>
#include <swrect.hxx>
class SwViewShell;
......
......@@ -24,9 +24,9 @@
#define NUM_ATTRIBUTE_STACKS 44
#include <memory>
#include <txatbase.hxx>
#include <swfntcch.hxx>
class SwTextAttr;
class SwAttrSet;
class IDocumentSettingAccess;
class SwViewShell;
......
......@@ -18,6 +18,7 @@
*/
#include <editeng/unolingu.hxx>
#include <breakit.hxx>
#include <dlelstnr.hxx>
#include <swmodule.hxx>
#include <IDocumentSettingAccess.hxx>
......
......@@ -19,12 +19,13 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_GUESS_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_GUESS_HXX
#include <memory>
#include <com/sun/star/linguistic2/XHyphenatedWord.hpp>
#include <swtypes.hxx>
#include <breakit.hxx>
#include "porrst.hxx"
#include <com/sun/star/uno/Reference.hxx>
namespace com::sun::star::linguistic2 { class XHyphenatedWord; }
class SwTextFormatInfo;
class SwTextGuess
......
......@@ -19,7 +19,6 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_INFTXT_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_INFTXT_HXX
#include <memory>
#include <com/sun/star/linguistic2/XHyphenatedWord.hpp>
#include <com/sun/star/beans/PropertyValues.hpp>
#include <map>
......@@ -34,22 +33,16 @@
#include <editeng/paravertalignitem.hxx>
#include <sal/log.hxx>
namespace vcl { class Font; }
class OutputDevice;
namespace com::sun::star::linguistic2 { class XHyphenatedWord; }
class SvxBrushItem;
class SvxLineSpacingItem;
class SvxTabStop;
class SvxTabStopItem;
class SwAttrSet;
class SwFieldPortion;
class SwFlyPortion;
class SwFormatDrop;
class SwLineLayout;
class SwLinePortion;
class SwParaPortion;
class SwTabPortion;
class SwTextFrame;
class SwTextSizeInfo;
class SwViewOption;
class SwViewShell;
class SwAttrIter;
......
......@@ -20,16 +20,10 @@
#define INCLUDED_SW_SOURCE_CORE_TEXT_ITRATR_HXX
#include <o3tl/deleter.hxx>
#include "atrhndl.hxx"
#include <swtypes.hxx>
#include <swfont.hxx>
#include "porlay.hxx"
namespace sw { struct MergedPara; }
class OutputDevice;
class SwFont;
class SwpHints;
class SwTextAttr;
class SwAttrSet;
class SwTextNode;
class SwRedlineItr;
class SwViewShell;
......
......@@ -21,7 +21,6 @@
#include "itrpaint.hxx"
class SwFlyCntPortion;
class SwInterHyphInfo;
class SwDropPortion;
class SwFormatDrop;
class SwTextAttr;
......@@ -31,8 +30,6 @@ class SwExpandPortion;
class SwMultiPortion;
class SwFootnotePortion;
namespace sw { class MergedAttrIterByEnd; }
class SwTextFormatter : public SwTextPainter
{
const SwFormatDrop *pDropFormat;
......
......@@ -19,6 +19,7 @@
#include <ndtxt.hxx>
#include <flyfrm.hxx>
#include <txatbase.hxx>
#include <paratr.hxx>
#include <vcl/outdev.hxx>
#include <editeng/paravertalignitem.hxx>
......
......@@ -22,7 +22,6 @@
#include "itratr.hxx"
#include "inftxt.hxx"
class SwTextFrame;
struct SwPosition;
struct SwCursorMoveState;
class SwMarginPortion;
......
......@@ -31,6 +31,7 @@
#include "porfld.hxx"
#include "inftxt.hxx"
#include <blink.hxx>
#include <fmtornt.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <viewsh.hxx>
......
......@@ -22,10 +22,8 @@
#include <swtypes.hxx>
#include <swfont.hxx>
#include "porexp.hxx"
#include <fmtornt.hxx>
#include <o3tl/enumarray.hxx>
class SwFont;
class SvxBrushItem;
class SwFormatVertOrient;
......
......@@ -25,7 +25,6 @@
#include <flyfrms.hxx>
class SwDrawContact;
class SwFlyInContentFrame;
class SwTextFrame;
struct SwCursorMoveState;
......
......@@ -21,7 +21,6 @@
#include "porfld.hxx"
class SwTextFrame;
class SwTextFootnote;
class SwFootnotePortion : public SwFieldPortion
......
......@@ -53,6 +53,7 @@
#include <calbck.hxx>
#include <doc.hxx>
#include <swscanner.hxx>
#include <txatbase.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentContentOperations.hxx>
......
......@@ -19,19 +19,17 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_PORLAY_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_PORLAY_HXX
#include <tools/fract.hxx>
#include <scriptinfo.hxx>
#include <swrect.hxx>
#include <swtypes.hxx>
#include "portxt.hxx"
#include <swfont.hxx>
#include <vector>
#include <deque>
class SwMarginPortion;
class SwDropPortion;
class SvStream;
class SwTextFormatter;
class SwCharRange
......
......@@ -22,10 +22,7 @@
#include "possiz.hxx"
#include <txttypes.hxx>
#include <TextFrameIndex.hxx>
#ifdef DBG_UTIL
#include <libxml/xmlwriter.h>
#endif
#include <rtl/ustring.hxx>
class SwTextSizeInfo;
class SwTextPaintInfo;
......
......@@ -21,13 +21,11 @@
#include <memory>
#include "porlay.hxx"
#include "porexp.hxx"
#include <com/sun/star/text/RubyAdjust.hpp>
class IDocumentSettingAccess;
class SwTextFormatInfo;
class SwFieldPortion;
class SwTextCursor;
class SwLineLayout;
class SwTextPaintInfo;
class SwTextAttr;
class SfxPoolItem;
......
......@@ -18,8 +18,19 @@
*/
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_PORRST_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_PORRST_HXX
#include "porlay.hxx"
#include "porexp.hxx"
#include <tools/gen.hxx>
#include <TextFrameIndex.hxx>
#include <txttypes.hxx>
#include "porlin.hxx"
#include "portxt.hxx"
#include "possiz.hxx"
class SwPortionHandler;
class SwTextPaintInfo;
class SwTextSizeInfo;
#define LINE_BREAK_WIDTH 150
#define SPECIAL_FONT_HEIGHT 200
......
......@@ -20,6 +20,7 @@
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <i18nlangtag/mslangid.hxx>
#include <breakit.hxx>
#include <hintids.hxx>
#include <EnhancedPDFExportHelper.hxx>
#include <SwPortionHandler.hxx>
......
......@@ -24,6 +24,7 @@
#include <hintids.hxx>
#include <svl/whiter.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <scriptinfo.hxx>
#include <swmodule.hxx>
#include <redline.hxx>
#include <txtatr.hxx>
......
......@@ -19,8 +19,6 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_REDLNITR_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_REDLNITR_HXX
#include <ndhints.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <swfont.hxx>
......@@ -28,6 +26,7 @@
#include <vcl/commandevent.hxx>
#include <cstddef>
#include <deque>
#include <memory>
#include <vector>
......
......@@ -19,11 +19,10 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_TXTCACHE_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_TXTCACHE_HXX
#include <sal/types.h>
#include <swcache.hxx>
#include "porlay.hxx"
#include <memory>
class SwParaPortion;
class SwTextFrame;
class SwTextLine : public SwCacheObj
......
......@@ -27,6 +27,7 @@
#include <swregion.hxx>
#include <dflyobj.hxx>
#include <flyfrm.hxx>
#include <fmtornt.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include "porfly.hxx"
......
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <breakit.hxx>
#include <hintids.hxx>
#include <editeng/unolingu.hxx>
#include <com/sun/star/i18n/WordType.hpp>
......
......@@ -18,6 +18,7 @@
*/
#include "txtpaint.hxx"
#include <txtfrm.hxx>
#include <swrect.hxx>
#include <rootfrm.hxx>
......
......@@ -21,7 +21,7 @@
#include <vcl/outdev.hxx>
class SwRect; // SwSaveClip
#include <txtfrm.hxx>
class SwTextFrame;
class SwSaveClip final
{
......
......@@ -23,6 +23,7 @@
#include "porlay.hxx"
#include "portxt.hxx"
#include <sortedobjs.hxx>
#include <swfont.hxx>
#include <anchoredobject.hxx>
#include <libxml/xmlwriter.h>
#include <SwPortionHandler.hxx>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment