diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-04-11 23:06:28 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-04-12 09:08:08 +0200 |
commit | 189d3e10c7d25138c58f28ca4f5c041f1a9f4494 (patch) | |
tree | 847b492819f180fe88986193e3ddb6fc5b1c88cd /sw/inc | |
parent | d5ed07d2a249e61937dd42a4b2efb7e7fbef02d6 (diff) |
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>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/SwAppletImpl.hxx | 3 | ||||
-rw-r--r-- | sw/inc/UndoParagraphSignature.hxx | 6 | ||||
-rw-r--r-- | sw/inc/accmap.hxx | 3 | ||||
-rw-r--r-- | sw/inc/breakit.hxx | 4 | ||||
-rw-r--r-- | sw/inc/checkit.hxx | 2 | ||||
-rw-r--r-- | sw/inc/dbmgr.hxx | 8 | ||||
-rw-r--r-- | sw/inc/dlelstnr.hxx | 5 | ||||
-rw-r--r-- | sw/inc/doc.hxx | 55 | ||||
-rw-r--r-- | sw/inc/docsh.hxx | 5 | ||||
-rw-r--r-- | sw/inc/hintids.hxx | 1 |
10 files changed, 21 insertions, 71 deletions
diff --git a/sw/inc/SwAppletImpl.hxx b/sw/inc/SwAppletImpl.hxx index 046893f70803..a12d8ed7f1fb 100644 --- a/sw/inc/SwAppletImpl.hxx +++ b/sw/inc/SwAppletImpl.hxx @@ -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, diff --git a/sw/inc/UndoParagraphSignature.hxx b/sw/inc/UndoParagraphSignature.hxx index 30b6ddbf4555..c75eb4679a67 100644 --- a/sw/inc/UndoParagraphSignature.hxx +++ b/sw/inc/UndoParagraphSignature.hxx @@ -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 { diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx index f4ed96f3fc59..12ccb97b7111 100644 --- a/sw/inc/accmap.hxx +++ b/sw/inc/accmap.hxx @@ -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 diff --git a/sw/inc/breakit.hxx b/sw/inc/breakit.hxx index 525c896ddb35..aad3d4757caa 100644 --- a/sw/inc/breakit.hxx +++ b/sw/inc/breakit.hxx @@ -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 { diff --git a/sw/inc/checkit.hxx b/sw/inc/checkit.hxx index d00485dec30a..99de92166ce3 100644 --- a/sw/inc/checkit.hxx +++ b/sw/inc/checkit.hxx @@ -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 diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx index 2f4ee8735cd5..863af57b4562 100644 --- a/sw/inc/dbmgr.hxx +++ b/sw/inc/dbmgr.hxx @@ -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 diff --git a/sw/inc/dlelstnr.hxx b/sw/inc/dlelstnr.hxx index 7f58e9ba2db6..87e768466f37 100644 --- a/sw/inc/dlelstnr.hxx +++ b/sw/inc/dlelstnr.hxx @@ -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; } } } } diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 145267775ca2..88a510de05f7 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -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 ); diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx index cbee1542e559..0dd2b669d0c9 100644 --- a/sw/inc/docsh.hxx +++ b/sw/inc/docsh.hxx @@ -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 diff --git a/sw/inc/hintids.hxx b/sw/inc/hintids.hxx index 2ffa595abe28..8af4d54fb95f 100644 --- a/sw/inc/hintids.hxx +++ b/sw/inc/hintids.hxx @@ -32,6 +32,7 @@ class SwAttrSetChg; class SwDocPosUpdate; class SwFormatMeta; class SvXMLAttrContainerItem; +class SwMsgPoolItem; // For SwTextHints without end index the following char is added: |