sw: fix some IWYU warnings

Change-Id: I0241707fcdf1d22131ce35fb64488fcf6d669675
Reviewed-on: https://gerrit.libreoffice.org/52750
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
Miklos Vajna 2018-04-11 23:06:28 +02:00
parent d5ed07d2a2
commit 189d3e10c7
40 changed files with 60 additions and 71 deletions

View file

@ -62,3 +62,13 @@ blacklist:
sw/inc/unotxdoc.hxx:
# sw::UnoImplPtr typedef
- unobaseclass.hxx
sw/inc/breakit.hxx:
# std::unique_ptr dtor requires complete type
- com/sun/star/i18n/ForbiddenCharacters.hpp
sw/inc/dbmgr.hxx:
# uno::Sequence ctor needs the complete type
- com/sun/star/beans/PropertyValue.hpp
sw/inc/dlelstnr.hxx:
# base class has to be a complete type
- com/sun/star/frame/XTerminateListener.hpp
- com/sun/star/linguistic2/XLinguServiceEventListener.hpp

View file

@ -22,10 +22,11 @@
#include <config_features.h>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <svl/itemset.hxx>
#include <svl/ownlist.hxx>
namespace com { namespace sun { namespace star { namespace embed { class XEmbeddedObject; } } } }
enum class SwHtmlOptType {
IGNORE = 0,
TAG = 1,

View file

@ -23,12 +23,12 @@
#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/text/XTextContent.hpp>
#include <com/sun/star/text/XTextField.hpp>
struct SwPosition;
class SwDoc;
namespace com { namespace sun { namespace star { namespace text { class XTextContent; } } } }
namespace com { namespace sun { namespace star { namespace text { class XTextField; } } } }
/// Undo/Redo Paragraph Signature.
class SwUndoParagraphSigning : public SwUndo
{

View file

@ -20,7 +20,6 @@
#define INCLUDED_SW_INC_ACCMAP_HXX
#include <cppuhelper/weakref.hxx>
#include <com/sun/star/accessibility/XAccessible.hpp>
#include <rtl/ref.hxx>
#include <osl/mutex.hxx>
#include <svx/IAccessibleViewForwarder.hxx>
@ -35,7 +34,6 @@
class SwAccessibleParagraph;
class SwViewShell;
namespace tools { class Rectangle; }
class SwFrame;
class SwTextFrame;
class SwPageFrame;
@ -55,6 +53,7 @@ class SwFEShell;
class Fraction;
struct PreviewPage;
namespace vcl { class Window; }
namespace com { namespace sun { namespace star { namespace accessibility { class XAccessible; } } } }
// The shape list is filled if an accessible shape is destroyed. It
// simply keeps a reference to the accessible shape's XShape. These

View file

@ -22,13 +22,13 @@
#include <memory>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/i18n/ForbiddenCharacters.hpp>
#include <i18nlangtag/languagetag.hxx>
#include "swdllapi.h"
enum class SvtScriptType;
namespace com { namespace sun { namespace star { namespace i18n { class XBreakIterator; } } } }
namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
class SW_DLLPUBLIC SwBreakIt
{

View file

@ -22,7 +22,7 @@
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/i18n/XExtendedInputSequenceChecker.hpp>
namespace com { namespace sun { namespace star { namespace i18n { class XExtendedInputSequenceChecker; } } } }
// Wrapper for the XInputSequenceChecker
class SwCheckIt

View file

@ -29,8 +29,7 @@
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/embed/XStorage.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <memory>
#include <vector>
@ -45,7 +44,6 @@ namespace com{namespace sun{namespace star{
namespace beans{
class XPropertySet;
struct PropertyValue;
}
namespace sdbcx{
class XColumnsSupplier;
@ -56,6 +54,8 @@ namespace com{namespace sun{namespace star{
namespace mail{
class XSmtpService;
}
namespace embed { class XStorage; }
namespace frame { class XStorable; }
}}}
namespace svx {
class ODataAccessDescriptor;
@ -74,7 +74,6 @@ namespace weld {
class SwView;
class SwWrtShell;
class SfxProgress;
class ListBox;
class Button;
class SvNumberFormatter;
@ -232,7 +231,6 @@ struct SwMergeDescriptor
}
};
class AbstractMailMergeDlg;
class SwDoc;
class SW_DLLPUBLIC SwDBManager

View file

@ -21,17 +21,16 @@
#define INCLUDED_SW_INC_DLELSTNR_HXX
#include <com/sun/star/linguistic2/XLinguServiceEventListener.hpp>
#include <com/sun/star/frame/XDesktop2.hpp>
#include <com/sun/star/frame/XTerminateListener.hpp>
#include <cppuhelper/implbase.hxx>
namespace com { namespace sun { namespace star {
namespace linguistic2 {
class XDictionaryList;
class XLinguServiceManager2;
class XProofreadingIterator;
}
namespace frame {
class XTerminateListener;
class XDesktop2;
}
} } }

View file

@ -20,7 +20,6 @@
#define INCLUDED_SW_INC_DOC_HXX
// SwDoc interfaces
#include <com/sun/star/embed/XStorage.hpp>
#include <o3tl/deleter.hxx>
#include <vcl/idle.hxx>
#include "swdllapi.h"
@ -29,13 +28,9 @@
#include "flyenum.hxx"
#include "flypos.hxx"
#include "swdbdata.hxx"
#include <com/sun/star/linguistic2/XSpellChecker1.hpp>
#include <com/sun/star/linguistic2/XHyphenatedWord.hpp>
#include <sfx2/objsh.hxx>
#include <svl/style.hxx>
#include <editeng/numitem.hxx>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <com/sun/star/script/vba/XVBAEventProcessor.hpp>
#include "tox.hxx"
#include "frmfmt.hxx"
#include "charfmt.hxx"
@ -51,11 +46,8 @@
namespace editeng { class SvxBorderLine; }
class SvxForbiddenCharactersTable;
class SwExtTextInput;
class DateTime;
class EditFieldInfo;
class Color;
class Outliner;
class OutputDevice;
class Point;
@ -68,49 +60,30 @@ class SwAutoCompleteWord;
class SwAutoCorrExceptWord;
class SwCellFrame;
class SwCellStyleTable;
class SwCharFormat;
class SwCharFormats;
class SwConditionTextFormatColl;
class SwCursorShell;
class SwCursor;
class SwDocShell;
class SwDocUpdateField;
class SwDrawFrameFormat;
class SwDrawView;
class SwEditShell;
class SwFieldType;
class SwField;
class SwTextField;
class SwFieldTypes;
class SwFlyFrameFormat;
class SwFormatsBase;
class SwFormat;
class SwFormatINetFormat;
class SwFormatRefMark;
class SwFrameFormat;
class SwFrameFormats;
class SwFootnoteIdxs;
class SwFootnoteInfo;
class SwEndNoteInfo;
class SwGrfFormatColl;
class SwGrfFormatColls;
class SwLineNumberInfo;
class SwDBManager;
class SwNodeIndex;
class SwNodeRange;
class SwNodes;
class SwNumRule;
class SwNumRuleTable;
class SwPagePreviewPrtData;
class SwRootFrame;
class SwRubyListEntry;
class SwSectionFormat;
class SwSectionFormats;
class SwSectionData;
class SwSelBoxes;
class SwTableAutoFormatTable;
class SwTOXBaseSection;
class SwTOXTypes;
class SwTabCols;
class SwTable;
class SwTableAutoFormat;
@ -120,14 +93,10 @@ class SwTableFormat;
class SwTableLineFormat;
class SwTableNode;
class SwTextBlocks;
class SwTextFormatColl;
class SwTextFormatColls;
class SwURLStateChanged;
class SwUnoCursor;
class SwViewShell;
class SetGetExpField;
class SwDrawContact;
class SwLayouter;
class SdrView;
class SdrMarkList;
class SwAuthEntry;
@ -135,23 +104,12 @@ class SwLayoutCache;
class IStyleAccess;
struct SwCallMouseEvent;
struct SwDocStat;
struct SwHash;
struct SwSortOptions;
struct SwDefTOXBase_Impl;
class SwPrintData;
class SwPrintUIOptions;
class SdrPageView;
struct SwConversionArgs;
class SwRewriter;
class SwMsgPoolItem;
class SwChartDataProvider;
class SwChartLockController_Helper;
class IGrammarContact;
class SwPrintData;
class SwRenderData;
class SwPageFrame;
class SwViewOption;
class SwList;
class IDocumentUndoRedo;
class IDocumentSettingAccess;
class IDocumentDeviceAccess;
@ -203,21 +161,18 @@ namespace sw {
}
namespace com { namespace sun { namespace star {
namespace i18n {
struct ForbiddenCharacters; //< comes from the I18N UNO interface
}
namespace uno {
template < class > class Sequence;
}
namespace container {
class XNameContainer; //< for getXForms()/isXForms()/initXForms() methods
}
namespace embed { class XStorage; }
namespace linguistic2 { class XHyphenatedWord; }
namespace linguistic2 { class XProofreadingIterator; }
namespace linguistic2 { class XSpellChecker1; }
namespace script { namespace vba { class XVBAEventProcessor; } }
}}}
namespace sfx2 {
class SvLinkSource;
class IXmlIdRegistry;
class LinkManager;
}
void SetAllScriptItem( SfxItemSet& rSet, const SfxPoolItem& rItem );

View file

@ -21,7 +21,6 @@
#include <memory>
#include <rtl/ref.hxx>
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/uno/Sequence.h>
#include <sfx2/docfac.hxx>
#include <sfx2/objsh.hxx>
@ -34,7 +33,6 @@
class SwDoc;
class SfxDocumentInfoDialog;
class SfxStyleSheetBasePool;
class SfxInPlaceClient;
class FontList;
class SwEditShell;
@ -47,9 +45,7 @@ class SwCursorShell;
class SwSrcView;
class SwPaM;
class SwgReaderOption;
class SwOLEObj;
class IDocumentDeviceAccess;
class IDocumentSettingAccess;
class IDocumentChartDataProviderAccess;
class SwDocShell;
class SwDrawModel;
@ -57,6 +53,7 @@ namespace svt
{
class EmbeddedObjectRef;
}
namespace com { namespace sun { namespace star { namespace frame { class XController; } } } }
// initialize DrawModel (in form of a SwDrawModel) and DocShell (in form of a SwDocShell)
// as needed, one or both parameters may be zero

View file

@ -32,6 +32,7 @@ class SwAttrSetChg;
class SwDocPosUpdate;
class SwFormatMeta;
class SvXMLAttrContainerItem;
class SwMsgPoolItem;
// For SwTextHints without end index the following char is added:

View file

@ -20,6 +20,7 @@
#include "accportions.hxx"
#include <rtl/ustring.hxx>
#include <com/sun/star/i18n/Boundary.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <txttypes.hxx>
// for portion replacement in Special()

View file

@ -19,6 +19,7 @@
#include <hintids.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <fmtcntnt.hxx>
#include <txatbase.hxx>
#include <frmatr.hxx>

View file

@ -20,6 +20,7 @@
#include <hintids.hxx>
#include <editeng/protitem.hxx>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <unotools/charclass.hxx>
#include <svl/ctloptions.hxx>
#include <swmodule.hxx>

View file

@ -77,6 +77,7 @@
#include <editeng/formatbreakitem.hxx>
#include <o3tl/make_unique.hxx>
#include <com/sun/star/i18n/Boundary.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <memory>

View file

@ -20,6 +20,7 @@
#include <config_features.h>
#include <doc.hxx>
#include <com/sun/star/script/vba/XVBAEventProcessor.hpp>
#include <DocumentFieldsManager.hxx>
#include <DocumentSettingManager.hxx>
#include <DocumentDrawModelManager.hxx>

View file

@ -47,6 +47,7 @@
#include <frmfmt.hxx>
#include <vector>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
using namespace ::com::sun::star;
using namespace ::com::sun::star::linguistic2;

View file

@ -34,6 +34,7 @@
#include <unotools/configmgr.hxx>
#include <unotools/misccfg.hxx>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <fmtpdsc.hxx>
#include <fmthdft.hxx>
#include <fmtcntnt.hxx>

View file

@ -23,6 +23,7 @@
#include <dcontact.hxx>
#include <proofreadingiterator.hxx>
#include <com/sun/star/text/XFlatParagraphIteratorProvider.hpp>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/random.hxx>

View file

@ -22,6 +22,7 @@
#include <com/sun/star/i18n/UnicodeType.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <unotools/charclass.hxx>

View file

@ -22,6 +22,7 @@
#include <editeng/protitem.hxx>
#include <tools/gen.hxx>
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <fmtcntnt.hxx>
#include <fmtanchr.hxx>
#include <frmfmt.hxx>

View file

@ -23,6 +23,7 @@
#include <editeng/lrspitem.hxx>
#include <editeng/scripttypeitem.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <txatbase.hxx>
#include <txtftn.hxx>
#include <fmtftn.hxx>

View file

@ -28,6 +28,7 @@
#include <tgrditem.hxx>
#include <com/sun/star/i18n/BreakType.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <unotools/charclass.hxx>
#include "porfld.hxx"
#include <paratr.hxx>

View file

@ -56,6 +56,7 @@
#include "itrtxt.hxx"
#include <breakit.hxx>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <editeng/lrspitem.hxx>
#include <calbck.hxx>

View file

@ -20,6 +20,7 @@
#include <hintids.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <vcl/graph.hxx>
#include <editeng/brushitem.hxx>
#include <vcl/metric.hxx>

View file

@ -33,6 +33,7 @@
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <com/sun/star/i18n/CTLScriptType.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <paratr.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/scripttypeitem.hxx>

View file

@ -18,6 +18,7 @@
*/
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <i18nlangtag/mslangid.hxx>
#include <hintids.hxx>
#include <EnhancedPDFExportHelper.hxx>

View file

@ -33,6 +33,7 @@
#include <breakit.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <editeng/langitem.hxx>
#include <charatr.hxx>
#include <editeng/fhgtitem.hxx>

View file

@ -20,6 +20,7 @@
#include <hintids.hxx>
#include <editeng/unolingu.hxx>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <viewopt.hxx>
#include <viewsh.hxx>
#include <SwPortionHandler.hxx>

View file

@ -32,6 +32,7 @@
#include <vcl/lazydelete.hxx>
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <breakit.hxx>
#include <paintfrm.hxx>
#include <viewsh.hxx>

View file

@ -24,6 +24,7 @@
#include <vcl/outdev.hxx>
#include <com/sun/star/i18n/CharType.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <vcl/print.hxx>
#include <fntcache.hxx>

View file

@ -20,6 +20,7 @@
#include <txatritr.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <fchrfmt.hxx>
#include <charfmt.hxx>
#include <breakit.hxx>

View file

@ -72,6 +72,7 @@
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <vector>
#include <utility>

View file

@ -30,6 +30,7 @@
#include <unicode/ubidi.h>
#include <tools/tenccvt.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <unotools/fontcvt.hxx>
#include <editeng/paperinf.hxx>

View file

@ -78,6 +78,7 @@
#include "ww8par.hxx"
#include <breakit.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include "ww8attributeoutput.hxx"
#include "writerhelper.hxx"
#include "writerwordglue.hxx"

View file

@ -114,6 +114,7 @@
#include <fmtftntx.hxx>
#include <breakit.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <unotools/localedatawrapper.hxx>
#include <svx/unobrushitemhelper.hxx>
#include <svx/xenum.hxx>

View file

@ -119,6 +119,7 @@
#include <com/sun/star/sdb/XDocumentDataSource.hpp>
#include <com/sun/star/uri/UriReferenceFactory.hpp>
#include <com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <unomid.h>
#include <unotextrange.hxx>

View file

@ -26,6 +26,7 @@
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/InputSequenceCheckMode.hpp>
#include <com/sun/star/i18n/XExtendedInputSequenceChecker.hpp>
#include <com/sun/star/i18n/UnicodeScript.hpp>
#include <com/sun/star/i18n/CalendarFieldIndex.hpp>

View file

@ -29,6 +29,7 @@
#include <editeng/fontitem.hxx>
#include <rtl/ustring.hxx>
#include <com/sun/star/text/RubyAdjust.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <hhcwrp.hxx>
#include "sdrhhcwrap.hxx"
#include <doc.hxx>

View file

@ -27,6 +27,7 @@
#include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp>
#include <com/sun/star/ui/dialogs/ListboxControlActions.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <svl/aeitem.hxx>
#include <SwStyleNameMapper.hxx>
#include <docary.hxx>