diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-02-13 23:20:21 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-03-04 17:25:05 +0100 |
commit | 8a1c18823c6e74b62c43cfe4fa72c87c36855d85 (patch) | |
tree | 63b3f3ad1095e8cf252abe6cbff7f46f191035d7 /include | |
parent | e8e274b50658e1f9c2f40ce05249f7c857aeba64 (diff) |
tdf#42949 Fix IWYU warnings in include/linguistic/
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: Iec1ca76e9b3a0896a732ab2b7fd34dd5a7f219fb
Reviewed-on: https://gerrit.libreoffice.org/68367
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/IwyuFilter_include.yaml | 15 | ||||
-rw-r--r-- | include/linguistic/lngprophelp.hxx | 3 | ||||
-rw-r--r-- | include/linguistic/lngprops.hxx | 2 | ||||
-rw-r--r-- | include/linguistic/misc.hxx | 20 | ||||
-rw-r--r-- | include/linguistic/spelldta.hxx | 7 |
5 files changed, 28 insertions, 19 deletions
diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml index 5bfdcf17c53a..c86fba0b1e83 100644 --- a/include/IwyuFilter_include.yaml +++ b/include/IwyuFilter_include.yaml @@ -560,3 +560,18 @@ blacklist: # base class has to be a complete type - com/sun/star/lang/XServiceInfo.hpp - com/sun/star/rendering/XParametricPolyPolygon2D.hpp + include/linguistic/hyphdta.hxx: + # base class has to be a complete type + - com/sun/star/linguistic2/XHyphenatedWord.hpp + - com/sun/star/linguistic2/XPossibleHyphens.hpp + include/linguistic/lngprophelp.hxx: + # base class has to be a complete type + - com/sun/star/beans/XPropertyChangeListener.hpp + - com/sun/star/linguistic2/XLinguServiceEventBroadcaster.hpp + include/linguistic/spelldta.hxx: + # base class has to be a complete type + - com/sun/star/linguistic2/XSetSpellAlternatives.hpp + - com/sun/star/linguistic2/XSpellAlternatives.hpp + include/linguistic/misc.hxx: + # base class has to be a complete type + - com/sun/star/frame/XTerminateListener.hpp diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx index f86d810e159c..8474767488fe 100644 --- a/include/linguistic/lngprophelp.hxx +++ b/include/linguistic/lngprophelp.hxx @@ -24,7 +24,6 @@ #include <comphelper/interfacecontainer2.hxx> #include <com/sun/star/beans/XPropertyChangeListener.hpp> #include <com/sun/star/beans/PropertyValues.hpp> -#include <com/sun/star/linguistic2/XLinguProperties.hpp> #include <com/sun/star/linguistic2/XLinguServiceEventBroadcaster.hpp> #include <linguistic/lngdllapi.h> #include <rtl/ref.hxx> @@ -37,6 +36,8 @@ namespace com { namespace sun { namespace star { namespace linguistic2 { struct LinguServiceEvent; }}}} +namespace com::sun::star::linguistic2 { class XLinguProperties; } + namespace linguistic { diff --git a/include/linguistic/lngprops.hxx b/include/linguistic/lngprops.hxx index af73f3bdb66a..94278fd16947 100644 --- a/include/linguistic/lngprops.hxx +++ b/include/linguistic/lngprops.hxx @@ -20,8 +20,6 @@ #ifndef INCLUDED_LINGUISTIC_LNGPROPS_HXX #define INCLUDED_LINGUISTIC_LNGPROPS_HXX -#include <unotools/linguprops.hxx> - // maximal number of suggestions to be returned in spelling context-menu // (may not include results added by looking up user dictionaries) #define UPN_MAX_NUMBER_OF_SUGGESTIONS "MaxNumberOfSuggestions" diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx index c2d4849e42d3..80b52116ab4f 100644 --- a/include/linguistic/misc.hxx +++ b/include/linguistic/misc.hxx @@ -25,30 +25,30 @@ #include <com/sun/star/beans/PropertyValues.hpp> #include <com/sun/star/frame/XTerminateListener.hpp> #include <com/sun/star/lang/Locale.hpp> -#include <com/sun/star/lang/XComponent.hpp> -#include <com/sun/star/linguistic2/XDictionaryEntry.hpp> -#include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp> -#include <com/sun/star/linguistic2/XHyphenatedWord.hpp> -#include <com/sun/star/linguistic2/XLinguProperties.hpp> #include <cppuhelper/implbase.hxx> -#include <unotools/pathoptions.hxx> #include <i18nlangtag/lang.h> #include <rtl/ustring.hxx> -#include <unotools/charclass.hxx> -#include <osl/thread.h> -#include <osl/mutex.hxx> #include <linguistic/lngdllapi.h> +#include <vector> + namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; - class XFastPropertySet; }}}} namespace com { namespace sun { namespace star { namespace frame { class XDesktop2; }}}} +namespace com::sun::star::linguistic2 { class XDictionary; } +namespace com::sun::star::linguistic2 { class XDictionaryEntry; } +namespace com::sun::star::linguistic2 { class XHyphenatedWord; } +namespace com::sun::star::linguistic2 { class XLinguProperties; } +namespace com::sun::star::linguistic2 { class XSearchableDictionaryList; } +namespace osl { class Mutex; } + +class CharClass; class LocaleDataWrapper; diff --git a/include/linguistic/spelldta.hxx b/include/linguistic/spelldta.hxx index 11bb9a1ec9c1..1f0ecf6b37a7 100644 --- a/include/linguistic/spelldta.hxx +++ b/include/linguistic/spelldta.hxx @@ -23,16 +23,11 @@ #include <vector> #include <com/sun/star/linguistic2/XSpellAlternatives.hpp> #include <com/sun/star/linguistic2/XSetSpellAlternatives.hpp> -#include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp> #include <cppuhelper/implbase.hxx> #include <linguistic/lngdllapi.h> #include <i18nlangtag/lang.h> -namespace com { namespace sun { namespace star { - namespace linguistic2 { - class XDictionaryList; - } -} } } +namespace com::sun::star::linguistic2 { class XSearchableDictionaryList; } namespace linguistic |