Kaydet (Commit) b5867945 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 from sfx2 to starmath

Change-Id: I40ee7bfae6efdadd862319b7b693ad22c648e1c4
Reviewed-on: https://gerrit.libreoffice.org/58222
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 1bf7bc6f
......@@ -18,6 +18,7 @@
*/
#include <config_features.h>
#include <sal/log.hxx>
#include <sfx2/app.hxx>
#include <sfx2/frame.hxx>
......
......@@ -51,6 +51,7 @@
#include <vcl/toolbox.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <vcl/idle.hxx>
#include <sfx2/app.hxx>
......
......@@ -19,6 +19,7 @@
#include <config_features.h>
#include <rtl/character.hxx>
#include <sal/log.hxx>
#include <vcl/wrkwin.hxx>
#include <svl/rectitem.hxx>
#include <svl/eitem.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/log.hxx>
#include <vcl/toolbox.hxx>
#include <sfx2/app.hxx>
......
......@@ -72,6 +72,7 @@
#include <vcl/help.hxx>
#include <vcl/stdtext.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <osl/file.hxx>
#include <vcl/EnumContext.hxx>
......
......@@ -38,6 +38,7 @@
#include <sfxtypes.hxx>
#include <sal/config.h>
#include <sal/log.hxx>
#include <basic/basmgr.hxx>
#include <basic/sberrors.hxx>
#include <basic/sbmeth.hxx>
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/util/XCloseable.hpp>
#include <comphelper/string.hxx>
#include <cppuhelper/implbase.hxx>
#include <sal/log.hxx>
#include <sfx2/childwin.hxx>
#include <sfx2/app.hxx>
......
......@@ -21,6 +21,7 @@
#include <tools/urlobj.hxx>
#include <tools/stream.hxx>
#include <sot/formats.hxx>
#include <sal/log.hxx>
#include <vcl/graphicfilter.hxx>
#include <sfx2/lnkbase.hxx>
#include <sfx2/app.hxx>
......
......@@ -30,6 +30,7 @@
#include <srchdlg.hxx>
#include <sfx2/sfxhelp.hxx>
#include <svtools/treelistentry.hxx>
#include <sal/log.hxx>
#include <sfx2/strings.hrc>
#include <helpids.h>
......
......@@ -22,6 +22,7 @@
#include <set>
#include <algorithm>
#include <sal/log.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/UnknownModuleException.hpp>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <cassert>
......
......@@ -21,6 +21,7 @@
#endif
#include <sal/macros.h>
#include <sal/log.hxx>
#include <unotools/moduleoptions.hxx>
#include <unotools/dynamicmenuoptions.hxx>
......
......@@ -39,6 +39,7 @@
#include <vcl/weld.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <svl/eitem.hxx>
#include <svl/intitem.hxx>
#include <svl/stritem.hxx>
......
......@@ -20,6 +20,7 @@
#include <svtools/htmlkywd.hxx>
#include <rtl/tencinfo.h>
#include <sal/log.hxx>
#include <unotools/configmgr.hxx>
#include <svl/urihelper.hxx>
......
......@@ -37,6 +37,7 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <unotools/localedatawrapper.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <tools/urlobj.hxx>
......
......@@ -26,6 +26,7 @@
#include <svl/eitem.hxx>
#include <tools/time.hxx>
#include <sal/log.hxx>
#include <appdata.hxx>
#include <sfx2/request.hxx>
......
......@@ -28,6 +28,7 @@
#include <unotools/securityoptions.hxx>
#include <rtl/ustring.h>
#include <sal/log.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <comphelper/processfactory.hxx>
#include <sfx2/evntconf.hxx>
......
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/log.hxx>
#include <svl/itempool.hxx>
#include <sfx2/ctrlitem.hxx>
......
......@@ -38,6 +38,7 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <sfx2/app.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/childwin.hxx>
......
......@@ -13,6 +13,7 @@
#include <tools/urlobj.hxx>
#include <vcl/layout.hxx>
#include <rtl/bootstrap.hxx>
#include <sal/log.hxx>
#include <config_folders.h>
#include <officecfg/Office/Common.hxx>
#include <comphelper/processfactory.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <sfx2/minfitem.hxx>
#include <sal/log.hxx>
SfxPoolItem* SfxMacroInfoItem::CreateDefault() { SAL_WARN( "sfx", "No SfxMacroInfItem factory available"); return nullptr; }
......
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/log.hxx>
#include <tools/stream.hxx>
#include <svl/style.hxx>
......
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/log.hxx>
#include <comphelper/base64.hxx>
#include <sax/tools/converter.hxx>
#include <sfx2/recentdocsview.hxx>
......
......@@ -27,6 +27,7 @@
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/frame/XDispatchRecorderSupplier.hpp>
#include <svl/itemiter.hxx>
#include <sal/log.hxx>
#include <svl/itempool.hxx>
#include <itemdel.hxx>
......
......@@ -30,6 +30,7 @@
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <drawinglayer/processor2d/processorfromoutputdevice.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <svtools/optionsdrawinglayer.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <vcl/decoview.hxx>
......
......@@ -25,6 +25,7 @@
#include <unotools/accessiblestatesethelper.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <sal/log.hxx>
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
......
......@@ -20,6 +20,7 @@
#include "backingwindow.hxx"
#include <sfx2/inputdlg.hxx>
#include <sal/log.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
......
......@@ -31,6 +31,7 @@
#include <svtools/controldims.hxx>
#include <svtools/imagemgr.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <sal/log.hxx>
#include <memory>
......
......@@ -91,6 +91,7 @@
#include <helpids.h>
#include <sfx2/strings.hrc>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <comphelper/sequence.hxx>
#ifdef UNX
......
......@@ -25,6 +25,7 @@
#include <sfx2/sfxresid.hxx>
#include <osl/thread.h>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <com/sun/star/ui/dialogs/XFilterGroupManager.hpp>
#include <com/sun/star/beans/StringPair.hpp>
#include <com/sun/star/uno/Sequence.hxx>
......
......@@ -25,6 +25,7 @@
#include <vcl/wrkwin.hxx>
#include <unotools/viewoptions.hxx>
#include <sal/log.hxx>
#include <vcl/menu.hxx>
#include <vcl/timer.hxx>
......
......@@ -38,6 +38,7 @@
#include <unotools/viewoptions.hxx>
#include <vcl/builder.hxx>
#include <vcl/IDialogRenderable.hxx>
#include <sal/log.hxx>
#include <sfx2/strings.hrc>
#include <helpids.h>
......
......@@ -35,6 +35,7 @@
#include <com/sun/star/frame/UnknownModuleException.hpp>
#include <officecfg/Office/Common.hxx>
#include <sal/log.hxx>
#include <sfx2/sfxhelp.hxx>
#include <sfx2/app.hxx>
#include <sfx2/dispatch.hxx>
......
......@@ -39,6 +39,7 @@
#include <rtl/ustrbuf.hxx>
#include <rtl/uri.hxx>
#include <rtl/bootstrap.hxx>
#include <sal/log.hxx>
#include <comphelper/interaction.hxx>
#include <unotools/mediadescriptor.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <sfx2/Metadatable.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/exc_hlp.hxx>
......
......@@ -44,6 +44,7 @@
#include <osl/security.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <tools/globname.hxx>
#include <assert.h>
......
......@@ -93,6 +93,7 @@
#include <svl/intitem.hxx>
#include <svtools/svparser.hxx>
#include <cppuhelper/weakref.hxx>
#include <sal/log.hxx>
#include <unotools/streamwrap.hxx>
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/document/XCompatWriterDocProperties.hpp>
#include <com/sun/star/uno/Exception.hpp>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <comphelper/string.hxx>
#include <sot/storage.hxx>
......
......@@ -22,6 +22,7 @@
#include <com/sun/star/uno/Any.h>
#include <osl/mutex.hxx>
#include <osl/thread.hxx>
#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
......
......@@ -22,6 +22,7 @@
#include <tools/urlobj.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <unotools/pathoptions.hxx>
......
......@@ -52,6 +52,7 @@
#include <guisaveas.hxx>
#include <sal/log.hxx>
#include <unotools/pathoptions.hxx>
#include <svl/itemset.hxx>
#include <svl/eitem.hxx>
......
......@@ -42,6 +42,7 @@
#include <tools/datetime.hxx>
#include <rtl/uri.hxx>
#include <math.h>
#include <sal/log.hxx>
#include <unotools/saveopt.hxx>
#include <unotools/useroptions.hxx>
......
......@@ -27,6 +27,7 @@
#include <svl/intitem.hxx>
#include <svtools/svparser.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <sal/log.hxx>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
......
......@@ -53,6 +53,7 @@
#include <vcl/wrkwin.hxx>
#include <svtools/sfxecode.hxx>
#include <svtools/ehdl.hxx>
#include <sal/log.hxx>
#include <comphelper/string.hxx>
#include <basic/sbx.hxx>
......
......@@ -20,6 +20,7 @@
#include <config_features.h>
#include <sal/config.h>
#include <sal/log.hxx>
#include <cassert>
......
......@@ -34,6 +34,7 @@
#include <com/sun/star/frame/XTitle.hpp>
#include <osl/file.hxx>
#include <rtl/instance.hxx>
#include <sal/log.hxx>
#include <vcl/weld.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/svapp.hxx>
......
......@@ -26,6 +26,7 @@
#include <tools/datetime.hxx>
#include <rtl/tencinfo.h>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#define STREAM_BUFFER_SIZE 2048
......
......@@ -83,6 +83,7 @@
#include <svtools/ehdl.hxx>
#include <svtools/sfxecode.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <framework/configimporter.hxx>
#include <framework/interaction.hxx>
#include <framework/titlehelper.hxx>
......
......@@ -31,6 +31,7 @@
#include <sfx2/sfxbasemodel.hxx>
#include <sfx2/evntconf.hxx>
#include <unotools/eventcfg.hxx>
#include <sal/log.hxx>
#include <unotools/securityoptions.hxx>
#include <comphelper/processfactory.hxx>
......
......@@ -31,6 +31,7 @@
#include <vcl/dockwin.hxx>
#include <vcl/scrbar.hxx>
#include <tools/svborder.hxx>
#include <sal/log.hxx>
using namespace css;
using namespace css::uno;
......
......@@ -29,6 +29,7 @@
#include <rtl/ustrbuf.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/ui/XUpdateModel.hpp>
......
......@@ -45,6 +45,7 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/ui/ContextChangeEventMultiplexer.hpp>
......
......@@ -20,6 +20,7 @@
#include <com/sun/star/xml/sax/SAXParseException.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <sal/log.hxx>
#include <sfx2/infobar.hxx>
#include <sfx2/objsh.hxx>
#include <o3tl/make_unique.hxx>
......
......@@ -49,6 +49,7 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/diagnose_ex.h>
#include <vcl/syswin.hxx>
#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
......
......@@ -58,6 +58,7 @@
#include <framework/interaction.hxx>
#include <rtl/ref.hxx>
#include <rtl/ustring.h>
#include <sal/log.hxx>
#include <sot/storinfo.hxx>
#include <svtools/ehdl.hxx>
#include <svl/eitem.hxx>
......
......@@ -53,6 +53,7 @@
#include <guisaveas.hxx>
#include <cppuhelper/implbase.hxx>
#include <svtools/ehdl.hxx>
#include <sal/log.hxx>
#include <vcl/timer.hxx>
#include <vcl/window.hxx>
......
......@@ -66,6 +66,7 @@
#include <com/sun/star/container/XIndexContainer.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <unotools/ucbhelper.hxx>
#include <comphelper/lok.hxx>
......
......@@ -22,6 +22,7 @@
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/view/XRenderable.hpp>
#include <sal/log.hxx>
#include <svl/itempool.hxx>
#include <vcl/weld.hxx>
#include <svtools/prnsetup.hxx>
......
......@@ -19,6 +19,7 @@
#include <config_features.h>
#include <sal/log.hxx>
#include <svl/stritem.hxx>
#include <svl/eitem.hxx>
#include <svl/whiter.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/beans/Optional.hpp>
#include <com/sun/star/beans/PropertyVetoException.hpp>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <cassert>
#include <limits>
......
......@@ -19,6 +19,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include "wininetbackend.hxx"
......
......@@ -25,6 +25,7 @@
#include <osl/file.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include "cmdmailsuppl.hxx"
#include "cmdmailmsg.hxx"
#include <com/sun/star/system/SimpleMailClientFlags.hpp>
......
......@@ -24,6 +24,7 @@
#include <osl/file.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <rtl/uri.hxx>
#include "shellexec.hxx"
......
......@@ -19,6 +19,7 @@
#include "recently_used_file.hxx"
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <osl/process.h>
#include <osl/security.hxx>
#include <osl/thread.h>
......
......@@ -20,6 +20,7 @@
#include <algorithm>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include "SysShExec.hxx"
#include <osl/file.hxx>
#include <sal/macros.h>
......
......@@ -22,6 +22,7 @@
#include "simplecontinuousactivitybase.hxx"
#include <sal/log.hxx>
namespace slideshow
{
......
......@@ -21,6 +21,7 @@
#include <comphelper/anytostring.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <slideshowexceptions.hxx>
#include <activity.hxx>
......
......@@ -19,6 +19,7 @@
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <animationfactory.hxx>
#include <attributemap.hxx>
......
......@@ -20,6 +20,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <comphelper/anytostring.hxx>
#include <sal/log.hxx>
#include <com/sun/star/presentation/ParagraphTarget.hpp>
#include <com/sun/star/animations/Timing.hpp>
#include <com/sun/star/animations/AnimationAdditiveMode.hpp>
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/presentation/ParagraphTarget.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <basegfx/numeric/ftools.hxx>
#include <sal/log.hxx>
#include <animationnodefactory.hxx>
#include "paralleltimecontainer.hxx"
......
......@@ -23,6 +23,7 @@
#include <tools.hxx>
#include "nodetools.hxx"
#include <delayevent.hxx>
#include <sal/log.hxx>
#include <functional>
#include <algorithm>
......
......@@ -34,6 +34,8 @@
#include "nodetools.hxx"
#include "generateevent.hxx"
#include <sal/log.hxx>
#include <vector>
#include <algorithm>
#include <iterator>
......
......@@ -22,6 +22,7 @@
#include <attributemap.hxx>
#include <tools.hxx>
#include <sal/log.hxx>
namespace slideshow
......
......@@ -19,6 +19,7 @@
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <comphelper/anytostring.hxx>
#include <cppuhelper/exc_hlp.hxx>
......
......@@ -30,6 +30,7 @@
#include <glm/gtc/type_ptr.hpp>
#include <vcl/opengl/OpenGLHelper.hxx>
#include <vcl/opengl/OpenGLContext.hxx>
#include <sal/log.hxx>
#include <algorithm>
#include <array>
......
......@@ -53,6 +53,7 @@
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/factory.hxx>
#include <rtl/ref.hxx>
#include <sal/log.hxx>
#include <comphelper/servicedecl.hxx>
......
......@@ -22,6 +22,7 @@
#include <comphelper/anytostring.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <sal/log.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/vector/b2dvector.hxx>
......
......@@ -28,6 +28,7 @@
#include <cppcanvas/vclfactory.hxx>
#include <cppcanvas/basegfxfactory.hxx>