Kaydet (Commit) 6f45e696 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: fix some IWYU warnings

Change-Id: Idff219e1c8f18adaa0f445a5469650c7793cae3a
Reviewed-on: https://gerrit.libreoffice.org/53066Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 773191d7
......@@ -72,3 +72,23 @@ blacklist:
# base class has to be a complete type
- com/sun/star/frame/XTerminateListener.hpp
- com/sun/star/linguistic2/XLinguServiceEventListener.hpp
sw/inc/finalthreadmanager.hxx:
# base class has to be a complete type
- com/sun/star/frame/XTerminateListener2.hpp
- com/sun/star/lang/XServiceInfo.hpp
- com/sun/star/util/XJobManager.hpp
- o3tl/deleter.hxx
sw/inc/splargs.hxx:
# inline dtor, complete type is needed
- com/sun/star/linguistic2/XSpellAlternatives.hpp
- com/sun/star/linguistic2/XSpellChecker1.hpp
sw/inc/unocoll.hxx:
# base class has to be a complete type
- com/sun/star/container/XEnumerationAccess.hpp
- com/sun/star/container/XIndexAccess.hpp
- com/sun/star/container/XNameAccess.hpp
- com/sun/star/lang/XServiceInfo.hpp
sw/inc/unobaseclass.hxx:
# base class has to be a complete type
- com/sun/star/lang/XServiceInfo.hpp
- com/sun/star/container/XEnumeration.hpp
......@@ -29,16 +29,12 @@
#include "tblenum.hxx"
#include "tox.hxx"
#include <com/sun/star/linguistic2/ProofreadingResult.hpp>
#include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
#include <memory>
#include <vector>
#include <set>
namespace tools { class PolyPolygon; }
class SwDoc;
class DateTime;
class CommandExtTextInputData;
class SvNumberFormatter;
......@@ -47,8 +43,6 @@ class SfxItemSet;
class SfxWatermarkItem;
class SvxAutoCorrect;
class SwField;
class SwFieldType;
class SwDDEFieldType;
class SwDBManager;
......@@ -61,11 +55,7 @@ class SwNumRule;
class SwTextFormatColl;
class SwGrfNode;
class SwFlyFrameFormat;
class SwFrameFormat;
class SwCharFormat;
class SwExtTextInput;
class Graphic;
class GraphicObject;
class GraphicAttr;
......@@ -103,6 +93,8 @@ enum class GraphicType;
namespace com { namespace sun { namespace star { namespace uno {
template < class > class Sequence;
}}}}
namespace com { namespace sun { namespace star { namespace linguistic2 { class XSpellAlternatives; } } } }
namespace com { namespace sun { namespace star { namespace linguistic2 { struct ProofreadingResult; } } } }
namespace svx{
struct SpellPortion;
......
......@@ -20,7 +20,6 @@
#define INCLUDED_SW_INC_FESH_HXX
#include <com/sun/star/text/RelOrientation.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <svx/svdobj.hxx>
#include "swdllapi.h"
......@@ -45,10 +44,7 @@ class SwTableAutoFormat;
class SwFrame;
class SwFormatFrameSize;
class SwFormatRowSplit;
class SdrObject;
class Color;
class Outliner;
class SotDataObject;
class SwFrameFormat;
struct SwSortOptions;
class SdrMarkList;
......@@ -58,6 +54,7 @@ namespace svx
{
class ISdrObjectFilter;
}
namespace com { namespace sun { namespace star { namespace embed { class XEmbeddedObject; } } } }
// return values for GetFrameType() and GetSelFrameType().
//! values can be combined via logical or
......
......@@ -25,12 +25,13 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/util/XJobManager.hpp>
#include <com/sun/star/frame/XTerminateListener2.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <o3tl/deleter.hxx>
#include <osl/mutex.hxx>
#include <list>
#include <memory>
namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
class CancelJobsThread;
class TerminateOfficeThread;
class SwPauseThreadStarting;
......
......@@ -22,14 +22,14 @@
#include <i18nlangtag/lang.h>
#include "swdllapi.h"
#include "calbck.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <cppuhelper/weakref.hxx>
#include <editeng/svxenum.hxx>
#include <vector>
class SwDoc;
class SvNumberFormatter;
namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
enum class SwFieldIds : sal_uInt16 {
/// For old documents the Field-Which IDs must be preserved !!!
......
......@@ -20,8 +20,6 @@
#ifndef INCLUDED_SW_INC_FMTFLD_HXX
#define INCLUDED_SW_INC_FMTFLD_HXX
#include <com/sun/star/text/XTextField.hpp>
#include <cppuhelper/weakref.hxx>
#include <svl/poolitem.hxx>
#include <svl/SfxBroadcaster.hxx>
......@@ -33,6 +31,7 @@ class SwField;
class SwTextField;
class SwView;
class SwFieldType;
namespace com { namespace sun { namespace star { namespace text { class XTextField; } } } }
// ATT_FLD
class SW_DLLPUBLIC SwFormatField
......
......@@ -24,7 +24,6 @@
#include <rtl/ustring.hxx>
#include <tools/lineend.hxx>
#include <tools/solar.h>
#include <com/sun/star/embed/XStorage.hpp>
#include "swdllapi.h"
#define FILTER_RTF "RTF" ///< RTF filter
......@@ -48,6 +47,8 @@ class SfxFilter;
class SfxFilterContainer;
class SotStorage;
class SvStream;
namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
namespace com { namespace sun { namespace star { namespace uno { template <typename> class Reference; } } } }
struct SwIoDetect
{
......
......@@ -23,15 +23,13 @@
#include <sfx2/lnkbase.hxx>
#include <vcl/GraphicObject.hxx>
#include "ndnotxt.hxx"
#include <com/sun/star/embed/XStorage.hpp>
#include <memory>
class SwAsyncRetrieveInputStreamThreadConsumer;
class SwGrfFormatColl;
class SwDoc;
class GraphicAttr;
class SotStorage;
namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
// SwGrfNode
class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
......
......@@ -22,7 +22,6 @@
#include <memory>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/embed/XStorage.hpp>
#include <sot/storage.hxx>
#include <tools/date.hxx>
#include <tools/time.hxx>
......@@ -53,6 +52,7 @@ namespace mark
class IMark;
}
}
namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
// Defines the count of chars at which a paragraph read via ASCII/W4W-Reader
// is forced to wrap. It has to be always greater than 200!!!
......
......@@ -24,7 +24,6 @@
#include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
#include <com/sun/star/linguistic2/XSpellChecker1.hpp>
#include <com/sun/star/linguistic2/XHyphenatedWord.hpp>
#include <functional>
......@@ -32,6 +31,7 @@ class SwTextFrame;
class SwTextNode;
class SwIndex;
namespace vcl { class Font; }
namespace com { namespace sun { namespace star { namespace linguistic2 { class XHyphenatedWord; } } } }
struct SwArgsBase // used for text conversion (Hangul/Hanja, ...)
{
......
......@@ -23,9 +23,6 @@
#include <sfx2/sfxdlg.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <boost/optional.hpp>
#include "dbmgr.hxx"
#include <cnttab.hxx>
......@@ -34,15 +31,11 @@
class SfxViewFrame;
class SfxBindings;
class SfxItemSet;
class ResId;
namespace vcl { class Window; }
class SfxItemPool;
class SfxStyleSheetBase;
class SwGlossaryHdl;
class SwField;
class SwLabFormatPage;
class SwLabRec;
class SwAsciiOptions;
class SwDocShell;
class SvStream;
......@@ -51,16 +44,12 @@ class SfxRequest;
class SwView;
class SwTableAutoFormat;
class SwTOXMgr;
class SwForm;
struct CurTOXType;
class SwTOXDescription;
class SwTOXBase;
class SwSectionData;
struct SwDBData;
class SwField;
class Printer;
class SwLabItem;
class SwDBManager;
class SwTableFUNC;
class SwChildWinWrapper;
struct SfxChildWinInfo;
......@@ -73,7 +62,7 @@ enum class SfxStyleFamily;
namespace com{namespace sun{namespace star{
namespace frame{
class XFrame;
class XModel;
}
namespace sdbcx{
class XColumnsSupplier;
......@@ -83,6 +72,8 @@ namespace com{namespace sun{namespace star{
class XConnection;
class XResultSet;
}
namespace container { class XNameAccess; }
namespace container { class XNamed; }
}}}
typedef void (*SwLabDlgMethod) (css::uno::Reference< css::frame::XModel> const & xModel, const SwLabItem& rItem);
......@@ -351,7 +342,6 @@ public:
#define RET_TARGET_CREATED 103
#define RET_REMOVE_TARGET 104
class SwView;
class SwMailMergeConfigItem;
class AbstractMailMergeWizard : public VclAbstractDialog2
......
......@@ -23,11 +23,11 @@
#include <editeng/svxacorr.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/embed/XStorage.hpp>
#include "swdllapi.h"
class SwXMLTextBlocks;
namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
class SW_DLLPUBLIC SwAutoCorrect : public SvxAutoCorrect
{
......
......@@ -31,8 +31,6 @@
#include "swdllapi.h"
#include "shellid.hxx"
#include "fldupde.hxx"
#include <com/sun/star/linguistic2/XLinguServiceEventListener.hpp>
#include <com/sun/star/linguistic2/XLanguageGuessing.hpp>
class Color;
class SfxItemSet;
......@@ -68,6 +66,8 @@ enum class SvViewOpt {
namespace com{ namespace sun{ namespace star{ namespace scanner{
class XScannerManager2;
}}}}
namespace com { namespace sun { namespace star { namespace linguistic2 { class XLanguageGuessing; } } } }
namespace com { namespace sun { namespace star { namespace linguistic2 { class XLinguServiceEventListener; } } } }
class SW_DLLPUBLIC SwModule final : public SfxModule, public SfxListener, public utl::ConfigurationListener
{
......
......@@ -14,7 +14,6 @@
#include <set>
#include <vector>
#include <com/sun/star/drawing/XShape.hpp>
#include <com/sun/star/uno/Any.h>
#include <com/sun/star/uno/Type.h>
......@@ -32,7 +31,19 @@ namespace tools
class Rectangle;
}
class ZSortFly;
class SwNode;
namespace com
{
namespace sun
{
namespace star
{
namespace drawing
{
class XShape;
}
}
}
}
/**
* A TextBox is a TextFrame, that is tied to a drawinglayer shape.
......
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