Kaydet (Commit) cc7280ef authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

tdf#42949 Fix IWYU warnings in include/cppuhelper/*

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

Change-Id: Ib420e9216b8313f5ed7634ec375e39ceb741fd45
Reviewed-on: https://gerrit.libreoffice.org/59297
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 433fce65
......@@ -18,6 +18,7 @@
*/
#include <mediamisc.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include "gstmanager.hxx"
using namespace ::com::sun::star;
......
......@@ -19,6 +19,7 @@
#include "macavfcommon.hxx"
#include "manager.hxx"
#include "com/sun/star/lang/XSingleServiceFactory.hpp"
using namespace ::com::sun::star;
......
......@@ -19,6 +19,7 @@
#include "wincommon.hxx"
#include "manager.hxx"
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace ::com::sun::star;
......
......@@ -18,6 +18,7 @@
*/
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <cppuhelper/factory.hxx>
......
......@@ -32,6 +32,7 @@
#include <comphelper/interfacecontainer2.hxx>
#include <comphelper/extract.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/weakref.hxx>
#include <rtl/instance.hxx>
#include <rtl/strbuf.hxx>
......
......@@ -24,6 +24,7 @@
#include <basic/basmgr.hxx>
#include <com/sun/star/script/vba/XVBAModuleInfo.hpp>
#include <comphelper/uno3.hxx>
#include <cppuhelper/implbase1.hxx>
namespace basic
{
......
......@@ -34,6 +34,7 @@
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/task/ErrorCodeIOException.hpp>
#include <com/sun/star/script/ModuleType.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/storagehelper.hxx>
#include <unotools/streamwrap.hxx>
#include <unotools/ucbstreamhelper.hxx>
......
......@@ -53,6 +53,7 @@
#include <osl/mutex.hxx>
#include <rtl/ref.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakagg.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <vcl/GraphicObject.hxx>
......
......@@ -29,6 +29,7 @@
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/util/XCloneable.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <map>
......
......@@ -38,6 +38,7 @@
#include <com/sun/star/lang/XServiceName.hpp>
#include <com/sun/star/chart/ChartSolidType.hpp>
#include <com/sun/star/chart2/CurveStyle.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
......
......@@ -32,6 +32,7 @@
#include <unonames.hxx>
#include <cppuhelper/component_context.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/chart/ChartSolidType.hpp>
#include <com/sun/star/chart2/AxisType.hpp>
#include <com/sun/star/chart2/StackingDirection.hpp>
......
......@@ -24,6 +24,7 @@
#include <map>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <com/sun/star/sdbc/XDriver.hpp>
#include <com/sun/star/sdbc/XDriverManager2.hpp>
......
......@@ -19,6 +19,7 @@
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include "ZPoolCollection.hxx"
......
......@@ -19,6 +19,7 @@
#include <ado/ADriver.hxx>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity::ado;
using ::com::sun::star::uno::Reference;
......
......@@ -19,6 +19,7 @@
#include <calc/CDriver.hxx>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity::calc;
using ::com::sun::star::uno::Reference;
......
......@@ -19,6 +19,7 @@
#include <dbase/DDriver.hxx>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity::dbase;
using ::com::sun::star::uno::Reference;
......
......@@ -19,6 +19,7 @@
#include "NDriver.hxx"
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <osl/diagnose.h>
using namespace connectivity::evoab;
......
......@@ -20,6 +20,7 @@
#include "Driver.hxx"
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <sal/types.h>
using namespace connectivity::firebird;
......
......@@ -19,6 +19,7 @@
#include <flat/EDriver.hxx>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity::flat;
using ::com::sun::star::uno::Reference;
......
......@@ -20,6 +20,7 @@
#include <hsqldb/HDriver.hxx>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity::hsqldb;
using css::uno::Reference;
......
......@@ -19,6 +19,7 @@
#include <java/sql/Driver.hxx>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity;
using ::com::sun::star::uno::Reference;
......
......@@ -20,6 +20,7 @@
#include "MacabDriver.hxx"
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity::macab;
using ::com::sun::star::uno::Reference;
......
......@@ -19,6 +19,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <cppuhelper/supportsservice.hxx>
#include "MMozillaBootstrap.hxx"
#include "MNSFolders.hxx"
......
......@@ -22,6 +22,7 @@
#include <cppuhelper/factory.hxx>
#include <rtl/ustrbuf.hxx>
#include <uno/lbnames.h>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity::mysqlc;
using ::com::sun::star::lang::XMultiServiceFactory;
......
......@@ -20,6 +20,7 @@
#include "ORealDriver.hxx"
#include <odbc/ODriver.hxx>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace connectivity::odbc;
using ::com::sun::star::uno::Reference;
......
......@@ -39,6 +39,8 @@
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include "pq_driver.hxx"
......
......@@ -19,6 +19,7 @@
#include <writer/WDriver.hxx>
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace com::sun::star;
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
namespace connectivity
{
......
......@@ -21,6 +21,7 @@
#include "mdrivermanager.hxx"
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
......
......@@ -24,6 +24,7 @@
#include <com/sun/star/security/RuntimePermission.hpp>
#include <com/sun/star/io/FilePermission.hpp>
#include <com/sun/star/connection/SocketPermission.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
using namespace ::osl;
using namespace ::com::sun::star;
......
......@@ -37,6 +37,7 @@
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/loader/XImplementationLoader.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
......
......@@ -26,6 +26,7 @@
#include <rtl/uuid.h>
#include <sal/log.hxx>
#include <cppuhelper/compbase_ex.hxx>
#include <cppuhelper/implbase_ex.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
......
......@@ -18,6 +18,8 @@
*/
#include <cppuhelper/implementationentry.hxx>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <osl/diagnose.h>
......
......@@ -29,6 +29,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <com/sun/star/util/XMacroExpander.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
......
......@@ -24,6 +24,7 @@
#include <com/sun/star/loader/CannotActivateFactoryException.hpp>
#include <com/sun/star/registry/CannotRegisterImplementationException.hpp>
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/shlib.hxx>
#include <osl/module.hxx>
......
......@@ -23,6 +23,7 @@
#include <com/sun/star/bridge/BridgeFactory.hpp>
#include <com/sun/star/connection/Acceptor.hpp>
#include <com/sun/star/uno/XNamingService.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/supportsservice.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/container/XSet.hpp>
#include <com/sun/star/datatransfer/XMimeContentTypeFactory.hpp>
#include "mcnttfactory.hxx"
......
......@@ -18,6 +18,7 @@
*/
#include <cppuhelper/factory.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include "clipboardmanager.hxx"
#include "generic_clipboard.hxx"
......
......@@ -20,6 +20,7 @@
#include <cppuhelper/factory.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/container/XSet.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include "WinClipboard.hxx"
#define WINCLIPBOARD_SERVICE_NAME "com.sun.star.datatransfer.clipboard.SystemClipboard"
......
......@@ -20,6 +20,7 @@
#include <cppuhelper/factory.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/container/XSet.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include "source.hxx"
#include "target.hxx"
......
......@@ -20,6 +20,7 @@
#include <cppuhelper/factory.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/container/XSet.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/datatransfer/XDataFormatTranslator.hpp>
#include "ftransl.hxx"
......
......@@ -19,6 +19,7 @@
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <com/sun/star/registry/InvalidRegistryException.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <cppuhelper/factory.hxx>
#include "xfactory.hxx"
......
......@@ -24,6 +24,7 @@
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <com/sun/star/awt/XCallback.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <rtl/ref.hxx>
......
......@@ -19,6 +19,7 @@
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <com/sun/star/registry/InvalidRegistryException.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <cppuhelper/factory.hxx>
#include "xolefactory.hxx"
......
......@@ -28,6 +28,7 @@
#include <com/sun/star/frame/XFrame2.hpp>
#include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <rtl/ref.hxx>
......
......@@ -37,6 +37,7 @@
#include <com/sun/star/frame/XFrameLoader.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
......
......@@ -35,6 +35,7 @@
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/inspection/PropertyControlType.hpp>
#include <com/sun/star/ucb/AlreadyInitializedException.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <comphelper/types.hxx>
......
......@@ -34,6 +34,7 @@
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/util/Time.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <connectivity/dbconversion.hxx>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
......
......@@ -22,6 +22,7 @@
#include "scanner.hxx"
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
using namespace com::sun::star::registry;
......
......@@ -19,6 +19,7 @@
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
......
......@@ -39,6 +39,7 @@
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include "OleHandler.hxx"
#include <memory>
......
......@@ -35,6 +35,7 @@
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/EventObject.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/uno/Any.hxx>
......
......@@ -42,6 +42,7 @@
#include <osl/mutex.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <cppuhelper/component.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase8.hxx>
#include <unordered_map>
......
......@@ -19,6 +19,7 @@
#include <cppuhelper/factory.hxx>
#include <com/sun/star/container/XSet.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include "SalAquaFilePicker.hxx"
#include "SalAquaFolderPicker.hxx"
......
......@@ -19,6 +19,7 @@
#include <cppuhelper/factory.hxx>
#include <com/sun/star/container/XSet.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include "FPServiceInfo.hxx"
#include "VistaFilePicker.hxx"
......
......@@ -35,6 +35,7 @@
#include <memory>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <vcl/evntpost.hxx>
#include <vcl/vclptr.hxx>
......
......@@ -31,6 +31,7 @@
#include <com/sun/star/ui/XContextChangeEventListener.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <i18nlangtag/lang.h>
#include <svl/languageoptions.hxx>
......
......@@ -31,6 +31,7 @@
#include <unotools/moduleoptions.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
namespace framework{
......
......@@ -30,6 +30,7 @@
#include <com/sun/star/frame/XFrameActionListener.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
namespace framework{
......
......@@ -29,6 +29,7 @@
#include <com/sun/star/lang/XEventListener.hpp>
#include <unotools/moduleoptions.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <rtl/ustrbuf.hxx>
namespace framework{
......
......@@ -34,6 +34,7 @@
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/propshlp.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
namespace framework
{
......
......@@ -30,6 +30,7 @@
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/propshlp.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
namespace framework
{
......
......@@ -26,6 +26,7 @@
#include <rtl/ustring.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <vector>
......
......@@ -23,6 +23,7 @@
#include <com/sun/star/frame/DispatchResultState.hpp>
#include <com/sun/star/task/XJobExecutor.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <vcl/svapp.hxx>
#include <sal/log.hxx>
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/frame/XSynchronousDispatch.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
namespace framework{
......
......@@ -27,6 +27,8 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/document/XFilter.hpp>
#include <com/sun/star/document/XImporter.hpp>
......
......@@ -21,6 +21,7 @@
#include "levdis.hxx"
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/i18n/BreakIterator.hpp>
#include <com/sun/star/i18n/UnicodeType.hpp>
......
......@@ -49,3 +49,48 @@ blacklist:
include/sfx2/toolbarids.hxx:
# needed for enum definition
- sal/types.h
include/cppuhelper/compbase1.hxx:
# Needed for template functions
- cppuhelper/implbase1.hxx
include/cppuhelper/compbase2.hxx:
# Needed for template functions
- cppuhelper/implbase2.hxx
include/cppuhelper/compbase3.hxx:
# Needed for template functions
- cppuhelper/implbase3.hxx
include/cppuhelper/compbase4.hxx:
# Needed for template functions
- cppuhelper/implbase4.hxx
include/cppuhelper/compbase5.hxx:
# Needed for template functions
- cppuhelper/implbase5.hxx
include/cppuhelper/compbase6.hxx:
# Needed for template functions
- cppuhelper/implbase6.hxx
include/cppuhelper/compbase7.hxx:
# Needed for template functions
- cppuhelper/implbase7.hxx
include/cppuhelper/compbase8.hxx:
# Needed for template functions
- cppuhelper/implbase8.hxx
include/cppuhelper/compbase9.hxx:
# Needed for template functions
- cppuhelper/implbase9.hxx
include/cppuhelper/compbase10.hxx:
# Needed for template functions
- cppuhelper/implbase10.hxx
include/cppuhelper/compbase11.hxx:
# Needed for template functions
- cppuhelper/implbase11.hxx
include/cppuhelper/compbase12.hxx:
# Needed for template functions
- cppuhelper/implbase12.hxx
include/cppuhelper/exc_hlp.hxx:
#Needed for implicit destructor
- com/sun/star/uno/Any.hxx
include/cppuhelper/propertysetmixin.hxx:
#Needed for implicit destructor
- com/sun/star/uno/Sequence.hxx
include/cppuhelper/interfacecontainer.h:
#Needed for implicit destructor
- com/sun/star/uno/Sequence.hxx
......@@ -19,10 +19,11 @@
#ifndef INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
#define INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
#include "com/sun/star/uno/XComponentContext.hpp"
#include "com/sun/star/security/XAccessController.hpp"
#include "cppuhelper/cppuhelperdllapi.h"
#include "com/sun/star/uno/Reference.hxx"
namespace com { namespace sun { namespace star { namespace security { class XAccessController; } } } }
namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
namespace cppu
{
......
......@@ -20,7 +20,7 @@
#define INCLUDED_CPPUHELPER_BOOTSTRAP_HXX
#include "sal/config.h"
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/Reference.h"
#include "rtl/ustring.hxx"
#include "sal/types.h"
#include "cppuhelper/cppuhelperdllapi.h"
......