Kaydet (Commit) e43f0657 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Michael Stahl

tdf#42949 Fix IWYU warnings in sot/

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

Change-Id: I202a98d76a37a564315374893b44ec25ef7798b3
Reviewed-on: https://gerrit.libreoffice.org/73005
Tested-by: Jenkins
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
üst c6b7f555
---
assumeFilename: sot/source/base/object.cxx
blacklist:
sot/source/unoolestorage/xolesimplestorage.hxx:
# Base class needs complete type
- com/sun/star/embed/XOLESimpleStorage.hpp
- com/sun/star/lang/XServiceInfo.hpp
sot/source/sdstor/stgcache.hxx:
# OSL_BIGENDIAN is being checked
- osl/endian.h
sot/source/sdstor/stgcache.cxx:
# OSL_BIGENDIAN is being checked
- osl/endian.h
......@@ -10,8 +10,6 @@
#include <unotest/filters-test.hxx>
#include <unotest/bootstrapfixturebase.hxx>
#include <osl/file.hxx>
#include <osl/process.h>
#include <sot/storage.hxx>
#include <sot/storinfo.hxx>
#include <sysformats.hxx>
......
......@@ -20,15 +20,12 @@
#include <sal/config.h>
#include <tools/debug.hxx>
#include <tools/solar.h>
#include <tools/globname.hxx>
#include <sot/exchange.hxx>
#include <sot/formats.hxx>
#include <sysformats.hxx>
#include <comphelper/classids.hxx>
#include <rtl/instance.hxx>
#include <com/sun/star/datatransfer/DataFlavor.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <comphelper/documentconstants.hxx>
#include <memory>
......
......@@ -19,9 +19,7 @@
#include <rtl/ustrbuf.hxx>
#include <tools/stream.hxx>
#include <sot/exchange.hxx>
#include <sot/filelist.hxx>
#include <osl/thread.h>
/* Stream operators */
......
......@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <tools/solar.h>
#include <config_features.h>
#include <sot/exchange.hxx>
......
......@@ -19,7 +19,6 @@
#include <sot/storinfo.hxx>
#include <sot/exchange.hxx>
#include <osl/file.hxx>
#include <unotools/tempfile.hxx>
#include <tools/stream.hxx>
......@@ -27,14 +26,10 @@
#include <sot/stg.hxx>
#include "stgelem.hxx"
#include "stgcache.hxx"
#include "stgstrms.hxx"
#include "stgdir.hxx"
#include "stgio.hxx"
#include "stgole.hxx"
#include <memory>
static long nTmpCount = 0;
// The internal open mode is StreamMode::READ | StreamMode::TRUNC, which is silly
......
......@@ -20,6 +20,8 @@
#ifndef INCLUDED_SOT_SOURCE_SDSTOR_STGAVL_HXX
#define INCLUDED_SOT_SOURCE_SDSTOR_STGAVL_HXX
#include <sal/types.h>
// This is an abstract base class for nodes.
// Especially, the compare function must be implemented.
......
......@@ -23,11 +23,7 @@
#include <tools/solar.h>
#include <sot/stg.hxx>
#include "stgelem.hxx"
#include "stgcache.hxx"
#include "stgstrms.hxx"
#include "stgdir.hxx"
#include "stgio.hxx"
#include <algorithm>
......
......@@ -22,18 +22,15 @@
#include <osl/endian.h>
#include <rtl/ref.hxx>
#include <tools/solar.h>
#include <tools/stream.hxx>
#include "stgelem.hxx"
#include <salhelper/simplereferenceobject.hxx>
#include <memory>
#include <unordered_map>
#include <functional>
class UCBStorageStream;
class StgPage;
class StgDirEntry;
class StorageBase;
class StgCache
......
......@@ -18,11 +18,8 @@
*/
#include <string.h>
#include <sot/stg.hxx>
#include "stgelem.hxx"
#include "stgcache.hxx"
#include "stgstrms.hxx"
#include "stgdir.hxx"
#include "stgio.hxx"
......
......@@ -25,8 +25,6 @@
#include "stgstrms.hxx"
class StgIo;
class StgEntry;
class StgDirEntry;
class StgDirStrm;
class BaseStorageStream;
......
......@@ -24,9 +24,6 @@
#include <unotools/charclass.hxx>
#include <sot/stg.hxx>
#include "stgelem.hxx"
#include "stgcache.hxx"
#include "stgstrms.hxx"
#include "stgdir.hxx"
#include "stgio.hxx"
static const sal_uInt16 nMaxLegalStr = 31;
......
......@@ -18,14 +18,12 @@
*/
#include <sot/stg.hxx>
#include "stgelem.hxx"
#include "stgcache.hxx"
#include "stgstrms.hxx"
#include "stgdir.hxx"
#include "stgio.hxx"
#include <o3tl/safeint.hxx>
#include <rtl/instance.hxx>
#include <sal/log.hxx>
#include <memory>
......
......@@ -22,8 +22,6 @@
#include "stgcache.hxx"
#include "stgelem.hxx"
#include <tools/link.hxx>
#include <tools/solar.h>
class StgFATStrm;
class StgDataStrm;
......
......@@ -20,10 +20,9 @@
#include <memory>
#include <algorithm>
#include <rtl/string.h>
#include "stgelem.hxx"
#include "stgole.hxx"
#include <sot/storinfo.hxx>
#include <sot/exchange.hxx>
///////////////////////// class StgInternalStream
......
......@@ -21,10 +21,8 @@
#define INCLUDED_SOT_SOURCE_SDSTOR_STGOLE_HXX
#include <memory>
#include <string.h>
#include <sot/stg.hxx>
#include "stgelem.hxx"
class StgInternalStream : public SvStream
{
......
......@@ -24,9 +24,7 @@
#include <o3tl/safeint.hxx>
#include <osl/file.hxx>
#include <unotools/tempfile.hxx>
#include <set>
#include <sot/stg.hxx>
#include "stgelem.hxx"
#include "stgcache.hxx"
#include "stgstrms.hxx"
......
......@@ -24,7 +24,6 @@
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <rtl/digest.h>
#include <osl/file.hxx>
#include <sot/stg.hxx>
#include <sot/storinfo.hxx>
......@@ -37,8 +36,6 @@
#include <unotools/ucbhelper.hxx>
#include <comphelper/fileformat.h>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <ucbhelper/content.hxx>
#include <memory>
......
......@@ -18,9 +18,10 @@
*/
#include <sot/stg.hxx>
#include <sot/storinfo.hxx>
#include <sot/exchange.hxx>
#include <tools/stream.hxx>
#include <vcl/errcode.hxx>
#include <memory>
/************** class SvStorageInfo **************************************
......
......@@ -20,11 +20,9 @@
#include <com/sun/star/io/NotConnectedException.hpp>
#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <ucbhelper/content.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/ucb/NameClash.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <unotools/tempfile.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <com/sun/star/io/XInputStream.hpp>
......@@ -32,7 +30,6 @@
#include <com/sun/star/ucb/ResultSetException.hpp>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/ucb/XContentAccess.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/ucb/CommandAbortedException.hpp>
#include <com/sun/star/datatransfer/DataFlavor.hpp>
......@@ -45,16 +42,13 @@
#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <memory>
#include <rtl/digest.h>
#include <osl/diagnose.h>
#include <osl/file.hxx>
#include <sal/log.hxx>
#include <tools/ref.hxx>
#include <tools/debug.hxx>
#include <unotools/streamhelper.hxx>
#include <unotools/streamwrap.hxx>
#include <unotools/ucbhelper.hxx>
#include <unotools/localfilehelper.hxx>
#include <tools/urlobj.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/implbase.hxx>
......@@ -62,13 +56,14 @@
#include <sot/stg.hxx>
#include <sot/storinfo.hxx>
#include <sot/storage.hxx>
#include <sot/exchange.hxx>
#include <sot/formats.hxx>
#include <comphelper/classids.hxx>
#include <vector>
namespace com::sun::star::ucb { class XCommandEnvironment; }
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
......
......@@ -22,7 +22,6 @@
#include <com/sun/star/embed/OLESimpleStorage.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/NoSupportException.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/io/XInputStream.hpp>
......@@ -30,10 +29,12 @@
#include <com/sun/star/io/XTruncate.hpp>
#include <com/sun/star/io/TempFile.hpp>
#include <comphelper/interfacecontainer2.hxx>
#include <comphelper/storagehelper.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <sot/stg.hxx>
#include <sot/storinfo.hxx>
using namespace ::com::sun::star;
......
......@@ -22,21 +22,21 @@
#include <sal/config.h>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/embed/XOLESimpleStorage.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/embed/XClassifiedObject.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/implbase.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <osl/mutex.hxx>
#include <sot/stg.hxx>
namespace com::sun::star::container { class XNameAccess; }
namespace com::sun::star::io { class XInputStream; }
namespace com::sun::star::io { class XStream; }
namespace com::sun::star::lang { class XEventListener; }
namespace com::sun::star::uno { class XComponentContext; }
namespace comphelper { class OInterfaceContainerHelper2; }
class BaseStorage;
class SvStream;
class OLESimpleStorage : public cppu::WeakImplHelper<css::embed::XOLESimpleStorage, css::lang::XServiceInfo>
{
......
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