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

Add missing sal/log.hxx headers

rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it.
This is a continuation of commit 6ff2d84a to be able to remove those unneeded includes.

This commit adds missing headers to every file found by:
grep -FwL sal/log.hxx $(git grep -Elw 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF|SAL_DETAIL_LOG_STREAM|SAL_WHERE|SAL_STREAM|SAL_DEBUG')
to directories scripting, sd, sdext

Change-Id: I47889cd889cf1d68353184229bfd4712f1528fbf
Reviewed-on: https://gerrit.libreoffice.org/58220
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 05ae22e9
......@@ -30,6 +30,7 @@
#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <rtl/uri.hxx>
#include <sal/log.hxx>
#include <osl/process.h>
#include <osl/file.hxx>
#include <osl/mutex.hxx>
......
......@@ -39,6 +39,7 @@
#include <sfx2/sfxdlg.hxx>
#include <vcl/abstdlg.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/factory.hxx>
......
......@@ -36,6 +36,7 @@
#include <com/sun/star/document/XScriptInvocationContext.hpp>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include "BrowseNodeFactoryImpl.hxx"
#include "MasterScriptProvider.hxx"
......
......@@ -41,6 +41,7 @@
#include <com/sun/star/script/provider/ScriptFrameworkErrorType.hpp>
#include <util/MiscUtils.hxx>
#include <sal/log.hxx>
#include "ActiveMSPList.hxx"
#include "MasterScriptProvider.hxx"
......
......@@ -20,6 +20,7 @@
#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/factory.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/macros.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/uno3.hxx>
#include <comphelper/proparrhlp.hxx>
......
......@@ -35,6 +35,7 @@
#include <comphelper/anytostring.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <rtl/ref.hxx>
#include <sal/log.hxx>
#include <animations/animationnodehelper.hxx>
#include <svx/svditer.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <tools/debug.hxx>
#include <sal/log.hxx>
#include <com/sun/star/animations/AnimationNodeType.hpp>
#include <com/sun/star/animations/AnimateColor.hpp>
#include <com/sun/star/animations/AnimateMotion.hpp>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/util/XCloneable.hpp>
......
......@@ -22,6 +22,7 @@
#include <sdpage.hxx>
#include <tools/debug.hxx>
#include <svx/svdmodel.hxx>
#include <sal/log.hxx>
void ImpPageListWatcher::ImpRecreateSortedPageListOnDemand()
{
......
......@@ -36,6 +36,7 @@
#include <rtl/uri.hxx>
#include <rtl/instance.hxx>
#include <sal/log.hxx>
#include <CustomAnimationPreset.hxx>
#include <TransitionPreset.hxx>
......
......@@ -20,6 +20,7 @@
#include <vcl/wrkwin.hxx>
#include <vcl/settings.hxx>
#include <sal/log.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/app.hxx>
#include <Outliner.hxx>
......
......@@ -56,6 +56,7 @@
#include <com/sun/star/xml/dom/XNodeList.hpp>
#include <com/sun/star/xml/dom/XNamedNodeMap.hpp>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <basegfx/utils/tools.hxx>
#include <o3tl/enumarray.hxx>
#include <xmloff/autolayout.hxx>
......
......@@ -23,6 +23,7 @@
#include <com/sun/star/style/XStyle.hpp>
#include <osl/mutex.hxx>
#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
......
......@@ -33,6 +33,7 @@
#include <vcl/virdev.hxx>
#include <rtl/ustring.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <vcl/fltcall.hxx>
#include <vcl/wmf.hxx>
#include <sfx2/docfile.hxx>
......
......@@ -35,6 +35,7 @@
#include <cppuhelper/factory.hxx>
#include <sax/fshelper.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <filter/msfilter/escherex.hxx>
#include <tools/poly.hxx>
......
......@@ -25,6 +25,7 @@
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <rtl/uri.hxx>
#include <sal/log.hxx>
#include <rtl/tencinfo.h>
#include <comphelper/processfactory.hxx>
#include <osl/file.hxx>
......
......@@ -24,6 +24,7 @@
#include <tools/debug.hxx>
#include <tools/stream.hxx>
#include <svx/unoapi.hxx>
#include <sal/log.hxx>
#include <EffectMigration.hxx>
#include <CustomAnimationPreset.hxx>
#include <com/sun/star/drawing/XShape.hpp>
......
......@@ -19,6 +19,7 @@
#include <editeng/numitem.hxx>
#include <osl/file.hxx>
#include <sal/log.hxx>
#include <unotools/configmgr.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <vcl/wrkwin.hxx>
......
......@@ -21,6 +21,7 @@
#include "propread.hxx"
#include <rtl/tencinfo.h>
#include <rtl/textenc.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <o3tl/make_unique.hxx>
......
......@@ -19,6 +19,7 @@
#include <vcl/errinf.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
......
......@@ -21,6 +21,7 @@
#include <com/sun/star/uno/RuntimeException.hpp>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <new>
......
......@@ -33,6 +33,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
#include <rtl/ustring.h>
#include <sal/log.hxx>
#include <sfx2/viewfrm.hxx>
#include <svx/AccessibleShape.hxx>
......
......@@ -28,6 +28,7 @@
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <rtl/ustring.h>
#include <sal/log.hxx>
#include <sfx2/viewfrm.hxx>
#include <svx/AccessibleShape.hxx>
......
......@@ -21,6 +21,7 @@
#include <svx/AccessibleShapeInfo.hxx>
#include <svx/IAccessibleViewForwarder.hxx>
#include <tools/gen.hxx>
#include <sal/log.hxx>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
......
......@@ -35,6 +35,7 @@
#include <comphelper/accessibleeventnotifier.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <unotools/accessiblestatesethelper.hxx>
#include <sal/log.hxx>
#include <sdpage.hxx>
#include <sdresid.hxx>
......
......@@ -44,6 +44,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <unotools/accessiblestatesethelper.hxx>
#include <rtl/ref.hxx>
#include <sal/log.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
......
......@@ -35,6 +35,7 @@
#include <DrawController.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <sal/log.hxx>
#include <svtools/controldims.hxx>
#include <svx/gallery.hxx>
#include <unotools/pathoptions.hxx>
......
......@@ -20,6 +20,7 @@
#include <sfx2/filedlghelper.hxx>
#include <tools/urlobj.hxx>
#include <sal/log.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/useroptions.hxx>
#include <unotools/ucbstreamhelper.hxx>
......
......@@ -19,6 +19,7 @@
#include <editeng/outliner.hxx>
#include <sal/log.hxx>
#include <svx/dialogs.hrc>
#include <svx/svxdlg.hxx>
#include <editeng/flstitem.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/types.h>
#include <sal/log.hxx>
#include <sot/formats.hxx>
#include <sot/storage.hxx>
#include <vcl/weld.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <memory>
#include <utility>
......
......@@ -25,6 +25,7 @@
#include "ConfigurationUpdater.hxx"
#include <vcl/svapp.hxx>
#include <sal/log.hxx>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/drawing/framework/XConfiguration.hpp>
#include <com/sun/star/drawing/framework/ConfigurationChangeEvent.hpp>
......
......@@ -23,6 +23,7 @@
#include <comphelper/sequence.hxx>
#include <facreg.hxx>
#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
......
......@@ -20,6 +20,7 @@
#include "ConfigurationClassifier.hxx"
#include <framework/FrameworkHelper.hxx>
#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
......
......@@ -34,6 +34,7 @@
#include <com/sun/star/drawing/framework/XControllerManager.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <sal/log.hxx>
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
#include <memory>
......
......@@ -23,6 +23,7 @@
#include <framework/FrameworkHelper.hxx>
#include <com/sun/star/lang/DisposedException.hpp>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <algorithm>
using namespace ::com::sun::star;
......
......@@ -26,6 +26,7 @@
#include <comphelper/scopeguard.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
using namespace ::com::sun::star;
......
......@@ -24,6 +24,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
#include <comphelper/processfactory.hxx>
#include <sal/log.hxx>
#include <algorithm>
......
......@@ -19,6 +19,7 @@
#include <memory>
#include <sal/config.h>
#include <sal/log.hxx>
#include <utility>
......
......@@ -41,6 +41,7 @@
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
......
......@@ -24,6 +24,7 @@
#include <unordered_map>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <facreg.hxx>
......
......@@ -27,6 +27,7 @@
#include <editeng/outlobj.hxx>
#include <svx/svdetc.hxx>
#include <xmloff/autolayout.hxx>
#include <sal/log.hxx>
#include <app.hrc>
#include <strings.hrc>
......
......@@ -9,6 +9,7 @@
#include "BufferedStreamSocket.hxx"
#include <sal/log.hxx>
#include <algorithm>
#ifdef _WIN32
......
......@@ -17,6 +17,7 @@
#include <config_version.h>
#include <rtl/string.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include "Communicator.hxx"
#include "Listener.hxx"
......
......@@ -16,6 +16,7 @@
#include <rtl/strbuf.hxx>
#include <config_features.h>
#include <sal/log.hxx>
#include "DiscoveryService.hxx"
......
......@@ -25,6 +25,7 @@
#include <rtl/ustrbuf.hxx>
#include <sax/tools/converter.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <unotools/streamwrap.hxx>
#include <svl/itemset.hxx>
......
......@@ -8,6 +8,7 @@
*/
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include "Listener.hxx"
......
......@@ -20,6 +20,7 @@
#include <osl/file.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
using namespace sd;
......
......@@ -7,6 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "Transmitter.hxx"
#include <sal/log.hxx>
using namespace std;
using namespace osl; // Sockets etc.
......
......@@ -37,6 +37,7 @@
#include <svx/svdundo.hxx>
#include <tools/diagnose_ex.h>
#include <xmloff/autolayout.hxx>
#include <sal/log.hxx>
using namespace ::com::sun::star;
......
......@@ -38,6 +38,7 @@
#include <SlideSorterViewShell.hxx>
#include <ViewShellBase.hxx>
#include <sfx2/sidebar/Theme.hxx>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <sfx2/app.hxx>
......
......@@ -30,6 +30,7 @@
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/StorageFactory.hpp>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
......
......@@ -23,6 +23,7 @@
#include "DocumentHelper.hxx"
#include <sdpage.hxx>
#include <tools/urlobj.hxx>
#include <sal/log.hxx>
namespace sd { namespace sidebar {
......
......@@ -31,6 +31,7 @@
#include <helpids.h>
#include <strings.hrc>
#include <sal/log.hxx>
#include <vcl/settings.hxx>
#include <vcl/virdev.hxx>
......
......@@ -25,6 +25,7 @@
#include <cppuhelper/bootstrap.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <svx/svdpool.hxx>
......
......@@ -67,6 +67,7 @@
#include <comphelper/anytostring.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <rtl/ref.hxx>
#include <sal/log.hxx>
#include <canvas/elapsedtime.hxx>
#include <avmedia/mediawindow.hxx>
#include <svtools/colrdlg.hxx>
......
......@@ -25,6 +25,7 @@
#include <sdpage.hxx>
#include <drawdoc.hxx>
#include <sal/log.hxx>
// Define the default value for the maximal cache size that is used for
// previews that are currently not visible. The visible previews are all
......
......@@ -25,6 +25,7 @@
#include "SlsCacheConfiguration.hxx"
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <set>
......
......@@ -20,6 +20,8 @@
#include "SlsRequestQueue.hxx"
#include <sdpage.hxx>
#include <sal/log.hxx>
#include <set>
namespace sd { namespace slidesorter { namespace cache {
......
......@@ -20,6 +20,7 @@
#include <model/SlideSorterModel.hxx>
#include <SlideSorter.hxx>
#include <sal/log.hxx>
#include <model/SlsPageDescriptor.hxx>
#include <model/SlsPageEnumerationProvider.hxx>
#include <controller/SlideSorterController.hxx>
......
......@@ -46,6 +46,7 @@
#include <sdpage.hxx>
#include <Window.hxx>
#include <sal/log.hxx>
#include <svl/itempool.hxx>
#include <svx/svdpagv.hxx>
#include <svx/svdopage.hxx>
......
......@@ -21,6 +21,7 @@
#include <vcl/window.hxx>
#include <vcl/virdev.hxx>
#include <sal/log.hxx>
#include <tools/gen.hxx>
#include <tools/fract.hxx>
......
......@@ -26,6 +26,7 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
......
......@@ -25,6 +25,7 @@
#include <DrawController.hxx>
#include <SlideSorterViewShell.hxx>
#include <framework/FrameworkHelper.hxx>
#include <sal/log.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/frame/XFrame.hpp>
......
......@@ -27,6 +27,7 @@
#include <com/sun/star/frame/Desktop.hpp>
#include <rtl/instance.hxx>
#include <sal/log.hxx>
#include <algorithm>
#include <memory>
......
......@@ -42,6 +42,7 @@
#include <slideshow.hxx>
#include <sal/log.hxx>
#include <svx/fmshell.hxx>
#include <vcl/svapp.hxx>
#include <vcl/EnumContext.hxx>
......
......@@ -39,6 +39,7 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/profilezone.hxx>
#include <sal/log.hxx>
#include <editeng/unofield.hxx>
#include <notifydocumentevent.hxx>
#include <unomodel.hxx>
......
......@@ -27,6 +27,7 @@
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/ui/UIElementType.hpp>
#include <sal/log.hxx>
#include <osl/mutex.hxx>
#include <o3tl/deleter.hxx>
#include <o3tl/enumrange.hxx>
......
......@@ -63,6 +63,7 @@
#include <com/sun/star/drawing/framework/ResourceId.hpp>
#include <framework/FrameworkHelper.hxx>
#include <sal/log.hxx>
#include <rtl/ref.hxx>
#include <sfx2/msg.hxx>
#include <sfx2/objface.hxx>
......
......@@ -24,6 +24,7 @@
#include <DrawDocShell.hxx>
#include <FormShellManager.hxx>
#include <sal/log.hxx>
#include <sfx2/dispatch.hxx>
#include <svx/svxids.hrc>
#include <svx/fmshell.hxx>
......
......@@ -35,6 +35,7 @@
#include <svl/itempool.hxx>
#include <editeng/numitem.hxx>
#include <svl/whiter.hxx>
#include <sal/log.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/objface.hxx>
......
......@@ -27,6 +27,7 @@
#include <comphelper/scopeguard.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <rtl/ref.hxx>
#include <sal/log.hxx>
#include <svx/svxids.hrc>
#include <svx/svdpagv.hxx>
......
......@@ -46,6 +46,7 @@
#include <editeng/CustomPropertyField.hxx>
#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
......
......@@ -27,6 +27,7 @@
#include <vcl/scrbar.hxx>
#include <vcl/settings.hxx>
#include <sdcommands.h>
#include <sal/log.hxx>
#include <tools/poly.hxx>
#include <svx/fmshell.hxx>
......
......@@ -20,6 +20,7 @@
#include <memory>
#include <sal/config.h>
#include <sal/log.hxx>
#include <utility>
......
......@@ -23,6 +23,7 @@
#include <sfx2/request.hxx>
#include <svx/svxids.hrc>
#include <sal/log.hxx>
#include <svx/fmshell.hxx>
#include <sfx2/dispatch.hxx>
#include <comphelper/lok.hxx>
......
......@@ -44,6 +44,7 @@
#include <vcl/scrbar.hxx>
#include <vcl/settings.hxx>
#include <sal/log.hxx>
#include <svl/whiter.hxx>
#include <editeng/editstat.hxx>
#include <svl/itempool.hxx>
......
......@@ -41,6 +41,7 @@
#include <ViewShellBase.hxx>
#include <uiobject.hxx>
#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
......
......@@ -35,6 +35,7 @@
#include <sdabstdlg.hxx>
#include <sal/log.hxx>
#include <fupoor.hxx>
#include <sfx2/dispatch.hxx>
#include <svx/svdopage.hxx>
......