summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-07-28 17:45:04 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-08-02 17:58:40 +0200
commit82828c6c4030ccc8b7af8ee4e7eebd9c6d32fdf9 (patch)
treeb538cc5080983812b0f59fe189e8e3694b31ee8b
parentbf3420110cdd21490bc8d49a471340e747585159 (diff)
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 6ff2d84ade299cb3d14d4110e4cf1a4b8070c030 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 test to vbahelper Change-Id: Ia7f773511624099505d6a36a8d6e23c0cde4a737 Reviewed-on: https://gerrit.libreoffice.org/58225 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--test/source/bootstrapfixture.cxx1
-rw-r--r--test/source/vclbootstrapprotector.cxx1
-rw-r--r--toolkit/source/awt/vclxtabpagecontainer.cxx1
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx1
-rw-r--r--toolkit/source/awt/vclxwindow.cxx1
-rw-r--r--toolkit/source/awt/vclxwindows.cxx1
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx1
-rw-r--r--toolkit/source/controls/grid/defaultgridcolumnmodel.cxx1
-rw-r--r--toolkit/source/controls/stdtabcontroller.cxx1
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx1
-rw-r--r--toolkit/source/controls/unocontrols.cxx1
-rw-r--r--toolkit/source/helper/btndlg.cxx1
-rw-r--r--tools/source/datetime/datetime.cxx1
-rw-r--r--tools/source/inet/inetmime.cxx1
-rw-r--r--ucb/source/core/provprox.cxx1
-rw-r--r--ucb/source/core/ucb.cxx1
-rw-r--r--ucb/source/core/ucbstore.cxx1
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx1
-rw-r--r--ucb/source/ucp/cmis/cmis_repo_content.cxx1
-rw-r--r--ucb/source/ucp/expand/ucpexpand.cxx1
-rw-r--r--ucb/source/ucp/ext/ucpext_content.cxx1
-rw-r--r--ucb/source/ucp/ext/ucpext_datasupplier.cxx1
-rw-r--r--ucb/source/ucp/file/bc.cxx1
-rw-r--r--ucb/source/ucp/file/filcmd.cxx1
-rw-r--r--ucb/source/ucp/file/filinpstr.cxx1
-rw-r--r--ucb/source/ucp/file/filprp.cxx2
-rw-r--r--ucb/source/ucp/file/filrow.cxx2
-rw-r--r--ucb/source/ucp/file/filrset.cxx1
-rw-r--r--ucb/source/ucp/file/filstr.cxx1
-rw-r--r--ucb/source/ucp/file/filtask.cxx1
-rw-r--r--ucb/source/ucp/file/prov.cxx1
-rw-r--r--ucb/source/ucp/ftp/ftpurl.cxx1
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx1
-rw-r--r--ucb/source/ucp/gio/gio_provider.cxx1
-rw-r--r--ucb/source/ucp/webdav-neon/LockSequence.cxx1
-rw-r--r--ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx1
-rw-r--r--ucb/source/ucp/webdav-neon/NeonLockStore.cxx1
-rw-r--r--ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx1
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx1
-rw-r--r--ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx1
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.cxx1
-rw-r--r--ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx1
-rw-r--r--ucb/source/ucp/webdav/ContentProperties.cxx2
-rw-r--r--ucb/source/ucp/webdav/DAVResourceAccess.cxx1
-rw-r--r--ucb/source/ucp/webdav/SerfLockReqProcImpl.cxx1
-rw-r--r--ucb/source/ucp/webdav/SerfLockStore.cxx1
-rw-r--r--ucb/source/ucp/webdav/SerfRequestProcessorImpl.cxx1
-rw-r--r--ucb/source/ucp/webdav/SerfSession.cxx1
-rw-r--r--ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx1
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx1
-rw-r--r--ucb/source/ucp/webdav/webdavdatasupplier.cxx1
-rw-r--r--ucb/source/ucp/webdav/webdavresponseparser.cxx1
-rw-r--r--unodevtools/source/unodevtools/options.cxx1
-rw-r--r--unoidl/source/sourcetreeprovider.cxx1
-rw-r--r--unoidl/source/unoidl.cxx1
-rw-r--r--unotools/source/config/compatibility.cxx1
-rw-r--r--unotools/source/config/configmgr.cxx1
-rw-r--r--unotools/source/config/confignode.cxx1
-rw-r--r--unotools/source/config/eventcfg.cxx1
-rw-r--r--unotools/source/config/fontcfg.cxx1
-rw-r--r--unotools/source/config/itemholder1.cxx1
-rw-r--r--unotools/source/config/viewoptions.cxx1
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx1
-rw-r--r--unoxml/qa/unit/domtest.cxx1
-rw-r--r--unoxml/source/dom/attr.cxx1
-rw-r--r--unoxml/source/dom/documentbuilder.cxx1
-rw-r--r--unoxml/source/dom/elementlist.cxx1
-rw-r--r--unoxml/source/dom/node.cxx1
-rw-r--r--unoxml/source/xpath/xpathapi.cxx1
-rw-r--r--uui/source/iahndl-authentication.cxx1
-rw-r--r--uui/source/iahndl.cxx1
-rw-r--r--vbahelper/source/msforms/service.cxx1
-rw-r--r--vbahelper/source/msforms/vbacombobox.cxx1
-rw-r--r--vbahelper/source/msforms/vbatogglebutton.cxx1
-rw-r--r--vbahelper/source/msforms/vbauserform.cxx1
-rw-r--r--vbahelper/source/vbahelper/vbacommandbar.cxx1
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrol.cxx1
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.cxx1
-rw-r--r--vbahelper/source/vbahelper/vbadocumentbase.cxx1
-rw-r--r--vbahelper/source/vbahelper/vbaeventshelperbase.cxx1
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx1
-rw-r--r--vbahelper/source/vbahelper/vbashape.cxx1
82 files changed, 85 insertions, 0 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index d91f7899d80a..a26b79a00c10 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -14,6 +14,7 @@
#include <vcl/errinf.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/bootstrap.hxx>
+#include <sal/log.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <comphelper/processfactory.hxx>
diff --git a/test/source/vclbootstrapprotector.cxx b/test/source/vclbootstrapprotector.cxx
index f0c7581237be..18d9a5fecac2 100644
--- a/test/source/vclbootstrapprotector.cxx
+++ b/test/source/vclbootstrapprotector.cxx
@@ -12,6 +12,7 @@
#include <cppunit/Protector.h>
#include <cppunittester/protectorfactory.hxx>
#include <sal/types.h>
+#include <sal/log.hxx>
#include <test/setupvcl.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/threadpool.hxx>
diff --git a/toolkit/source/awt/vclxtabpagecontainer.cxx b/toolkit/source/awt/vclxtabpagecontainer.cxx
index 24d2d309665f..391072f1cd47 100644
--- a/toolkit/source/awt/vclxtabpagecontainer.cxx
+++ b/toolkit/source/awt/vclxtabpagecontainer.cxx
@@ -20,6 +20,7 @@
#include <toolkit/awt/vclxtabpagecontainer.hxx>
#include <com/sun/star/awt/tab/XTabPageModel.hpp>
#include <com/sun/star/awt/XControl.hpp>
+#include <sal/log.hxx>
#include <vcl/image.hxx>
#include <vcl/tabpage.hxx>
#include <vcl/tabctrl.hxx>
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 57f18a22ad45..5e7c9e823c39 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -55,6 +55,7 @@
#include <osl/mutex.hxx>
#include <rtl/uuid.h>
#include <rtl/process.h>
+#include <sal/log.hxx>
#include <tools/link.hxx>
#include <tools/fract.hxx>
#include <tools/wintypes.hxx>
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 45c7d1dcdc62..f4d2815197ac 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -45,6 +45,7 @@
#include <cppuhelper/typeprovider.hxx>
#include <rtl/uuid.h>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <tools/color.hxx>
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 8484cd5b2e10..504dfa8e8a78 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -38,6 +38,7 @@
#include <com/sun/star/awt/XItemList.hpp>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/processfactory.hxx>
+#include <sal/log.hxx>
#include <vcl/button.hxx>
#include <vcl/graph.hxx>
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index cc50dbd31858..c03a37902a39 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -54,6 +54,7 @@
#include <algorithm>
#include <tools/urlobj.hxx>
#include <osl/file.hxx>
+#include <sal/log.hxx>
#include <toolkit/controls/dialogcontrol.hxx>
#include <helper/tkresmgr.hxx>
diff --git a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
index f8eb9121f2a2..d6eb98d3b0bd 100644
--- a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
+++ b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
@@ -34,6 +34,7 @@
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <vector>
diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx
index 0b1c48045ea9..d337b972ad53 100644
--- a/toolkit/source/controls/stdtabcontroller.cxx
+++ b/toolkit/source/controls/stdtabcontroller.cxx
@@ -30,6 +30,7 @@
#include <cppuhelper/queryinterface.hxx>
#include <rtl/uuid.h>
+#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index 2e7b75ddd0e1..69aaa59d3d19 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -33,6 +33,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <rtl/uuid.h>
+#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <tools/date.hxx>
#include <tools/time.hxx>
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx
index f41ade704374..f470cae677aa 100644
--- a/toolkit/source/controls/unocontrols.cxx
+++ b/toolkit/source/controls/unocontrols.cxx
@@ -57,6 +57,7 @@
#include <tools/diagnose_ex.h>
#include <tools/date.hxx>
#include <tools/time.hxx>
+#include <sal/log.hxx>
#include <algorithm>
diff --git a/toolkit/source/helper/btndlg.cxx b/toolkit/source/helper/btndlg.cxx
index 6364dc48f888..5b7683c9da86 100644
--- a/toolkit/source/helper/btndlg.cxx
+++ b/toolkit/source/helper/btndlg.cxx
@@ -21,6 +21,7 @@
#include <vcl/button.hxx>
#include <helper/btndlg.hxx>
+#include <sal/log.hxx>
struct ImplBtnDlgItem
diff --git a/tools/source/datetime/datetime.cxx b/tools/source/datetime/datetime.cxx
index b92ce702e3cd..6f41e0523c56 100644
--- a/tools/source/datetime/datetime.cxx
+++ b/tools/source/datetime/datetime.cxx
@@ -18,6 +18,7 @@
*/
#include <tools/datetime.hxx>
#include <rtl/math.hxx>
+#include <sal/log.hxx>
#include <systemdatetime.hxx>
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 7d344c060873..aee940a8bc7a 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -24,6 +24,7 @@
#include <memory>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <rtl/ustring.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
diff --git a/ucb/source/core/provprox.cxx b/ucb/source/core/provprox.cxx
index 5441e17086ab..05b59093daac 100644
--- a/ucb/source/core/provprox.cxx
+++ b/ucb/source/core/provprox.cxx
@@ -20,6 +20,7 @@
#include <osl/diagnose.h>
#include <osl/thread.h>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include "provprox.hxx"
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/ucb/IllegalIdentifierException.hpp>
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx
index 45bcea03d7bb..02dccec24ed3 100644
--- a/ucb/source/core/ucb.cxx
+++ b/ucb/source/core/ucb.cxx
@@ -24,6 +24,7 @@
*************************************************************************/
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <comphelper/propertysequence.hxx>
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index 62909dd6c692..7eceac10dc50 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -27,6 +27,7 @@
#include <memory>
#include <list>
#include <unordered_map>
+#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
#include <rtl/ref.hxx>
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index db55e200b6e5..9188a5bb3e11 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -47,6 +47,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <config_oauth2.h>
#include <o3tl/runtimetooustring.hxx>
+#include <sal/log.hxx>
#include <ucbhelper/cancelcommandexecution.hxx>
#include <ucbhelper/content.hxx>
#include <ucbhelper/contentidentifier.hxx>
diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index 2cf797395591..4e9ad24b6f72 100644
--- a/ucb/source/ucp/cmis/cmis_repo_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx
@@ -25,6 +25,7 @@
#include <config_oauth2.h>
#include <rtl/uri.hxx>
+#include <sal/log.hxx>
#include <ucbhelper/cancelcommandexecution.hxx>
#include <ucbhelper/commandenvironment.hxx>
#include <ucbhelper/contentidentifier.hxx>
diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx
index 0dcd493cbc23..61796adc1605 100644
--- a/ucb/source/ucp/expand/ucpexpand.cxx
+++ b/ucb/source/ucp/expand/ucpexpand.cxx
@@ -20,6 +20,7 @@
#include <rtl/uri.hxx>
#include <osl/mutex.hxx>
+#include <sal/log.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx>
diff --git a/ucb/source/ucp/ext/ucpext_content.cxx b/ucb/source/ucp/ext/ucpext_content.cxx
index f036bae95e9d..58fbb8d507db 100644
--- a/ucb/source/ucp/ext/ucpext_content.cxx
+++ b/ucb/source/ucp/ext/ucpext_content.cxx
@@ -41,6 +41,7 @@
#include <rtl/ustrbuf.hxx>
#include <rtl/uri.hxx>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <algorithm>
diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.cxx b/ucb/source/ucp/ext/ucpext_datasupplier.cxx
index 93e2c21d672b..765cdbcf3c86 100644
--- a/ucb/source/ucp/ext/ucpext_datasupplier.cxx
+++ b/ucb/source/ucp/ext/ucpext_datasupplier.cxx
@@ -30,6 +30,7 @@
#include <ucbhelper/propertyvalueset.hxx>
#include <tools/diagnose_ex.h>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <memory>
#include <vector>
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index a236a0871dbf..b457bc87140f 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -19,6 +19,7 @@
#include <rtl/uri.hxx>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <osl/file.hxx>
#include <osl/diagnose.h>
diff --git a/ucb/source/ucp/file/filcmd.cxx b/ucb/source/ucp/file/filcmd.cxx
index a3bdf595d95f..c1de260e86be 100644
--- a/ucb/source/ucp/file/filcmd.cxx
+++ b/ucb/source/ucp/file/filcmd.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <com/sun/star/ucb/UnsupportedCommandException.hpp>
diff --git a/ucb/source/ucp/file/filinpstr.cxx b/ucb/source/ucp/file/filinpstr.cxx
index faa16cd2783a..632758ea794c 100644
--- a/ucb/source/ucp/file/filinpstr.cxx
+++ b/ucb/source/ucp/file/filinpstr.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <com/sun/star/io/IOException.hpp>
diff --git a/ucb/source/ucp/file/filprp.cxx b/ucb/source/ucp/file/filprp.cxx
index a92fd0959854..6d0eb8d0d9d3 100644
--- a/ucb/source/ucp/file/filprp.cxx
+++ b/ucb/source/ucp/file/filprp.cxx
@@ -21,6 +21,8 @@
#include "prov.hxx"
#include "filprp.hxx"
+#include <sal/log.hxx>
+
using namespace fileaccess;
using namespace com::sun::star;
using namespace com::sun::star::uno;
diff --git a/ucb/source/ucp/file/filrow.cxx b/ucb/source/ucp/file/filrow.cxx
index 9e5f067bddcf..330bac6edf56 100644
--- a/ucb/source/ucp/file/filrow.cxx
+++ b/ucb/source/ucp/file/filrow.cxx
@@ -24,6 +24,8 @@
#include <com/sun/star/script/Converter.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
+#include <sal/log.hxx>
+
using namespace fileaccess;
using namespace com::sun::star;
using namespace css::uno;
diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx
index 21e9acdc72c0..00ea869e29c0 100644
--- a/ucb/source/ucp/file/filrset.cxx
+++ b/ucb/source/ucp/file/filrset.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/ucb/ListenerAlreadySetException.hpp>
diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx
index 2ef94c5e6529..a2419042de45 100644
--- a/ucb/source/ucp/file/filstr.cxx
+++ b/ucb/source/ucp/file/filstr.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <com/sun/star/io/IOException.hpp>
diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx
index 32753ba905b0..4ae6cc06e15a 100644
--- a/ucb/source/ucp/file/filtask.cxx
+++ b/ucb/source/ucp/file/filtask.cxx
@@ -20,6 +20,7 @@
#include <config_features.h>
#include <sal/config.h>
+#include <sal/log.hxx>
#if HAVE_FEATURE_MACOSX_SANDBOX
#include <sys/stat.h>
diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx
index e4cd53b40d99..0f63a480b380 100644
--- a/ucb/source/ucp/file/prov.cxx
+++ b/ucb/source/ucp/file/prov.cxx
@@ -20,6 +20,7 @@
#include <osl/security.hxx>
#include <osl/file.hxx>
#include <osl/socket.h>
+#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/ucb/FileSystemNotation.hpp>
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index 90531769bc43..2aa3d4c7a5ff 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -24,6 +24,7 @@
*************************************************************************/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <cstring>
#include <vector>
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index 888a8513f3ff..2b17281d25ab 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -22,6 +22,7 @@
#include <sys/types.h>
#include <sal/macros.h>
#include <osl/time.h>
+#include <sal/log.hxx>
#include <com/sun/star/beans/IllegalTypeException.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx
index 5410a258b549..66bb77f67b77 100644
--- a/ucb/source/ucp/gio/gio_provider.cxx
+++ b/ucb/source/ucp/gio/gio_provider.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/log.hxx>
#include <ucbhelper/contentidentifier.hxx>
#include <ucbhelper/contenthelper.hxx>
#include <com/sun/star/ucb/ContentCreationException.hpp>
diff --git a/ucb/source/ucp/webdav-neon/LockSequence.cxx b/ucb/source/ucp/webdav-neon/LockSequence.cxx
index de145e5727ed..804452af5076 100644
--- a/ucb/source/ucp/webdav-neon/LockSequence.cxx
+++ b/ucb/source/ucp/webdav-neon/LockSequence.cxx
@@ -31,6 +31,7 @@
#include <ne_xml.h>
#include "LockSequence.hxx"
#include <memory>
+#include <sal/log.hxx>
using namespace webdav_ucp;
using namespace com::sun::star;
diff --git a/ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx b/ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx
index ab50eb778bc0..89c8c9175d35 100644
--- a/ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx
@@ -27,6 +27,7 @@
************************************************************************/
#include <osl/mutex.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/PropertyState.hpp>
#include "NeonHeadRequest.hxx"
diff --git a/ucb/source/ucp/webdav-neon/NeonLockStore.cxx b/ucb/source/ucp/webdav-neon/NeonLockStore.cxx
index 390d58c4e8cb..062fb402b885 100644
--- a/ucb/source/ucp/webdav-neon/NeonLockStore.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonLockStore.cxx
@@ -31,6 +31,7 @@
#include <rtl/ustring.hxx>
#include <osl/time.h>
#include <osl/thread.hxx>
+#include <sal/log.hxx>
#include <salhelper/thread.hxx>
#include "NeonSession.hxx"
#include "NeonLockStore.hxx"
diff --git a/ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx b/ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx
index deda65d54321..c22aee8727ab 100644
--- a/ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonPropFindRequest.cxx
@@ -29,6 +29,7 @@
#include <osl/mutex.hxx>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include "NeonSession.hxx"
#include "NeonTypes.hxx"
#include "DAVException.hxx"
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index aac868e3d87a..903ca27a7720 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -30,6 +30,7 @@
#include <unordered_map>
#include <vector>
#include <string.h>
+#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <osl/time.h>
#include <rtl/string.h>
diff --git a/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx b/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
index 29891c3afddb..3ef49ddf0f94 100644
--- a/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
+++ b/ucb/source/ucp/webdav-neon/UCBDeadPropertyValue.cxx
@@ -30,6 +30,7 @@
#include <string.h>
#include <ne_xml.h>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include "UCBDeadPropertyValue.hxx"
#include <memory>
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index db25abd32205..4c72986a0be4 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -37,6 +37,7 @@
#include <osl/diagnose.h>
#include <rtl/uri.hxx>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <officecfg/Inet.hxx>
#include <ucbhelper/contentidentifier.hxx>
#include <ucbhelper/propertyvalueset.hxx>
diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
index 70d380bd1b75..dcb159e9e8be 100644
--- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
@@ -33,6 +33,7 @@
*************************************************************************/
+#include <sal/log.hxx>
#include <o3tl/make_unique.hxx>
#include <com/sun/star/ucb/IllegalIdentifierException.hpp>
#include <com/sun/star/ucb/OpenMode.hpp>
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx
index 15e2f535bbea..7fed92ffa48f 100644
--- a/ucb/source/ucp/webdav/ContentProperties.cxx
+++ b/ucb/source/ucp/webdav/ContentProperties.cxx
@@ -26,6 +26,8 @@
#include "webdavprovider.hxx"
#include "ContentProperties.hxx"
+#include <sal/log.hxx>
+
using namespace com::sun::star;
using namespace http_dav_ucp;
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
index c02efe0e853d..eda8e0fcc8c3 100644
--- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx
+++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
@@ -23,6 +23,7 @@
#include <ucbhelper/simpleauthenticationrequest.hxx>
#include <comphelper/seekableinput.hxx>
+#include <sal/log.hxx>
#include "DAVAuthListenerImpl.hxx"
#include "DAVResourceAccess.hxx"
diff --git a/ucb/source/ucp/webdav/SerfLockReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfLockReqProcImpl.cxx
index d3b6d431d410..713bf52996aa 100644
--- a/ucb/source/ucp/webdav/SerfLockReqProcImpl.cxx
+++ b/ucb/source/ucp/webdav/SerfLockReqProcImpl.cxx
@@ -25,6 +25,7 @@
#include "webdavresponseparser.hxx"
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
namespace http_dav_ucp
{
diff --git a/ucb/source/ucp/webdav/SerfLockStore.cxx b/ucb/source/ucp/webdav/SerfLockStore.cxx
index e67e47b3f1a1..ec8da85476e5 100644
--- a/ucb/source/ucp/webdav/SerfLockStore.cxx
+++ b/ucb/source/ucp/webdav/SerfLockStore.cxx
@@ -18,6 +18,7 @@
*/
#include <rtl/ustring.hxx>
+#include <sal/log.hxx>
#include <osl/time.h>
#include <osl/thread.hxx>
#include "SerfSession.hxx"
diff --git a/ucb/source/ucp/webdav/SerfRequestProcessorImpl.cxx b/ucb/source/ucp/webdav/SerfRequestProcessorImpl.cxx
index 5d638a75b7d7..66e45efc6a52 100644
--- a/ucb/source/ucp/webdav/SerfRequestProcessorImpl.cxx
+++ b/ucb/source/ucp/webdav/SerfRequestProcessorImpl.cxx
@@ -18,6 +18,7 @@
*/
#include "SerfRequestProcessorImpl.hxx"
+#include <sal/log.hxx>
namespace
{
diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx
index ab41f1f5ac0f..41e30b823e96 100644
--- a/ucb/source/ucp/webdav/SerfSession.cxx
+++ b/ucb/source/ucp/webdav/SerfSession.cxx
@@ -20,6 +20,7 @@
#include <vector>
#include <string.h>
#include <rtl/string.h>
+#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <ucbhelper/simplecertificatevalidationrequest.hxx>
diff --git a/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx b/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
index ca1131038bcb..39e9cda4b9c9 100644
--- a/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
+++ b/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
@@ -19,6 +19,7 @@
#include <string.h>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include "UCBDeadPropertyValue.hxx"
using namespace http_dav_ucp;
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index b0ddfd0c3dbf..fac2d5dcced5 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -21,6 +21,7 @@
#include <osl/diagnose.h>
#include <rtl/uri.hxx>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <ucbhelper/contentidentifier.hxx>
#include <ucbhelper/propertyvalueset.hxx>
#include <ucbhelper/simpleinteractionrequest.hxx>
diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.cxx b/ucb/source/ucp/webdav/webdavdatasupplier.cxx
index 3a8a2ea8d8bb..11c951f3bcd8 100644
--- a/ucb/source/ucp/webdav/webdavdatasupplier.cxx
+++ b/ucb/source/ucp/webdav/webdavdatasupplier.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <memory>
#include <utility>
diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx
index daf39eff7d5a..3e38ac91561f 100644
--- a/ucb/source/ucp/webdav/webdavresponseparser.cxx
+++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx
@@ -29,6 +29,7 @@
#include <com/sun/star/ucb/Lock.hpp>
#include <map>
#include <unordered_map>
+#include <sal/log.hxx>
using namespace com::sun::star;
diff --git a/unodevtools/source/unodevtools/options.cxx b/unodevtools/source/unodevtools/options.cxx
index e3650b9dfaed..664cdceca99d 100644
--- a/unodevtools/source/unodevtools/options.cxx
+++ b/unodevtools/source/unodevtools/options.cxx
@@ -22,6 +22,7 @@
#include <codemaker/global.hxx>
#include <rtl/ustring.hxx>
#include <rtl/process.h>
+#include <sal/log.hxx>
#include <options.hxx>
namespace unodevtools {
diff --git a/unoidl/source/sourcetreeprovider.cxx b/unoidl/source/sourcetreeprovider.cxx
index 592ad0e363a6..31294ba1ac06 100644
--- a/unoidl/source/sourcetreeprovider.cxx
+++ b/unoidl/source/sourcetreeprovider.cxx
@@ -8,6 +8,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <map>
#include <vector>
diff --git a/unoidl/source/unoidl.cxx b/unoidl/source/unoidl.cxx
index b0a2fb4a4921..fb21e87c8ee6 100644
--- a/unoidl/source/unoidl.cxx
+++ b/unoidl/source/unoidl.cxx
@@ -8,6 +8,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <set>
#include <vector>
diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx
index b552dc7de5bd..ba5df9a01113 100644
--- a/unotools/source/config/compatibility.cxx
+++ b/unotools/source/config/compatibility.cxx
@@ -22,6 +22,7 @@
#include <unotools/configitem.hxx>
#include <unotools/syslocale.hxx>
#include <tools/debug.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index 1f83a94830d2..664282e289d9 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -32,6 +32,7 @@
#include <rtl/instance.hxx>
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
+#include <sal/log.hxx>
#include <unotools/configitem.hxx>
#include <unotools/configmgr.hxx>
#include <comphelper/processfactory.hxx>
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx
index ef5d5f99066a..66d44cdc8301 100644
--- a/unotools/source/config/confignode.cxx
+++ b/unotools/source/config/confignode.cxx
@@ -21,6 +21,7 @@
#include <unotools/configpaths.hxx>
#include <tools/diagnose_ex.h>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <com/sun/star/container/XHierarchicalName.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index 8451b3a93501..93c74e23f7c4 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -29,6 +29,7 @@
#include <o3tl/enumrange.hxx>
#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include "itemholder1.hxx"
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index be09dc493eec..9dae8a8c79f1 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -34,6 +34,7 @@
#include <rtl/instance.hxx>
#include <osl/diagnose.h>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <string.h>
#include <list>
diff --git a/unotools/source/config/itemholder1.cxx b/unotools/source/config/itemholder1.cxx
index 91a44af5d715..784f2ba7b760 100644
--- a/unotools/source/config/itemholder1.cxx
+++ b/unotools/source/config/itemholder1.cxx
@@ -44,6 +44,7 @@
#include <unotools/viewoptions.hxx>
#include <unotools/options.hxx>
#include <unotools/syslocaleoptions.hxx>
+#include <sal/log.hxx>
ItemHolder1::ItemHolder1()
: ItemHolderMutexBase()
diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx
index 2bef4bb8463c..edc7f6c15e21 100644
--- a/unotools/source/config/viewoptions.cxx
+++ b/unotools/source/config/viewoptions.cxx
@@ -26,6 +26,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <unotools/configpaths.hxx>
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index 868100fe3cc3..aa1357aeacec 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -20,6 +20,7 @@
#include "ucblockbytes.hxx"
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <salhelper/condition.hxx>
#include <osl/thread.hxx>
diff --git a/unoxml/qa/unit/domtest.cxx b/unoxml/qa/unit/domtest.cxx
index 9e46e4c2cb55..15e337772314 100644
--- a/unoxml/qa/unit/domtest.cxx
+++ b/unoxml/qa/unit/domtest.cxx
@@ -19,6 +19,7 @@
#include <rtl/ref.hxx>
#include <rtl/byteseq.hxx>
+#include <sal/log.hxx>
#include <osl/file.hxx>
#include <osl/process.h>
#include <comphelper/seqstream.hxx>
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
index 0e5981555198..b1124549878e 100644
--- a/unoxml/source/dom/attr.cxx
+++ b/unoxml/source/dom/attr.cxx
@@ -24,6 +24,7 @@
#include <memory>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <com/sun/star/xml/dom/DOMException.hpp>
#include <com/sun/star/xml/dom/events/XMutationEvent.hpp>
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index dd0fd4df5a9e..8e373c6576e7 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -31,6 +31,7 @@
#include <rtl/alloc.h>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/implbase.hxx>
diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx
index 01cf55720b78..7f47c7c0856e 100644
--- a/unoxml/source/dom/elementlist.cxx
+++ b/unoxml/source/dom/elementlist.cxx
@@ -23,6 +23,7 @@
#include <cppuhelper/implbase.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include "element.hxx"
#include "document.hxx"
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index 0769c2e5b5ab..c77b761bbf1a 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -30,6 +30,7 @@
#include <rtl/instance.hxx>
#include <osl/mutex.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <com/sun/star/xml/sax/FastToken.hpp>
diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx
index 3dbaa0a2369f..f62be771f611 100644
--- a/unoxml/source/xpath/xpathapi.cxx
+++ b/unoxml/source/xpath/xpathapi.cxx
@@ -28,6 +28,7 @@
#include <libxml/xpathInternals.h>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include "nodelist.hxx"
#include "xpathobject.hxx"
diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx
index ddaaf10e5e52..5aedeba76a04 100644
--- a/uui/source/iahndl-authentication.cxx
+++ b/uui/source/iahndl-authentication.cxx
@@ -37,6 +37,7 @@
#include <vcl/errinf.hxx>
#include <vcl/abstdlg.hxx>
#include <vcl/svapp.hxx>
+#include <sal/log.hxx>
#include "authfallbackdlg.hxx"
#include <strings.hrc>
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 2aec43bf5979..eca18bd79a16 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -61,6 +61,7 @@
#include <com/sun/star/loader/CannotActivateFactoryException.hpp>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include <osl/conditn.hxx>
#include <unotools/resmgr.hxx>
#include <vcl/errinf.hxx>
diff --git a/vbahelper/source/msforms/service.cxx b/vbahelper/source/msforms/service.cxx
index 50de0010a0d3..3da00781514c 100644
--- a/vbahelper/source/msforms/service.cxx
+++ b/vbahelper/source/msforms/service.cxx
@@ -18,6 +18,7 @@
*/
#include <cppuhelper/implementationentry.hxx>
#include <comphelper/servicedecl.hxx>
+#include <sal/log.hxx>
#include "service.hxx"
diff --git a/vbahelper/source/msforms/vbacombobox.cxx b/vbahelper/source/msforms/vbacombobox.cxx
index a026816e4e27..2ff9cc9d991a 100644
--- a/vbahelper/source/msforms/vbacombobox.cxx
+++ b/vbahelper/source/msforms/vbacombobox.cxx
@@ -28,6 +28,7 @@
#include <ooo/vba/msforms/fmEnterFieldBehavior.hpp>
#include <ooo/vba/msforms/fmListStyle.hpp>
#include <ooo/vba/msforms/fmTextAlign.hpp>
+#include <sal/log.hxx>
using namespace com::sun::star;
using namespace ooo::vba;
diff --git a/vbahelper/source/msforms/vbatogglebutton.cxx b/vbahelper/source/msforms/vbatogglebutton.cxx
index c603eb3dc71b..5020873994f4 100644
--- a/vbahelper/source/msforms/vbatogglebutton.cxx
+++ b/vbahelper/source/msforms/vbatogglebutton.cxx
@@ -19,6 +19,7 @@
#include "vbatogglebutton.hxx"
#include "vbanewfont.hxx"
+#include <sal/log.hxx>
using namespace com::sun::star;
using namespace ooo::vba;
diff --git a/vbahelper/source/msforms/vbauserform.cxx b/vbahelper/source/msforms/vbauserform.cxx
index da5f9a99b5c2..fbe1d942aa1a 100644
--- a/vbahelper/source/msforms/vbauserform.cxx
+++ b/vbahelper/source/msforms/vbauserform.cxx
@@ -30,6 +30,7 @@
#include <basic/sbstar.hxx>
#include <basic/sbmeth.hxx>
#include "vbacontrols.hxx"
+#include <sal/log.hxx>
using namespace ::ooo::vba;
using namespace ::com::sun::star;
diff --git a/vbahelper/source/vbahelper/vbacommandbar.cxx b/vbahelper/source/vbahelper/vbacommandbar.cxx
index 1b999557ca2e..afa1fa45c939 100644
--- a/vbahelper/source/vbahelper/vbacommandbar.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbar.cxx
@@ -23,6 +23,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <ooo/vba/office/MsoBarType.hpp>
+#include <sal/log.hxx>
using namespace com::sun::star;
using namespace ooo::vba;
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
index f69bcf822d9a..97c62907b2f4 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
@@ -20,6 +20,7 @@
#include "vbacommandbarcontrols.hxx"
#include <vbahelper/vbahelper.hxx>
#include <filter/msfilter/msvbahelper.hxx>
+#include <sal/log.hxx>
using namespace com::sun::star;
using namespace ooo::vba;
diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
index 5b344dc61225..70c5705b5b72 100644
--- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
@@ -30,6 +30,7 @@
#include <comphelper/random.hxx>
#include <vbahelper/vbahelper.hxx>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <time.h>
#include <map>
diff --git a/vbahelper/source/vbahelper/vbadocumentbase.cxx b/vbahelper/source/vbahelper/vbadocumentbase.cxx
index 466ffba9ad5b..e187d3bfd603 100644
--- a/vbahelper/source/vbahelper/vbadocumentbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentbase.cxx
@@ -38,6 +38,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <tools/urlobj.hxx>
#include <osl/file.hxx>
+#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::ooo::vba;
diff --git a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx
index 2c5a64aecff3..cf30602f5e3c 100644
--- a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx
+++ b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx
@@ -29,6 +29,7 @@
#include <filter/msfilter/msvbahelper.hxx>
#include <unotools/eventcfg.hxx>
#include <vbahelper/vbahelper.hxx>
+#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::ooo::vba;
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index 187e88d5713b..8de423bf2810 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -63,6 +63,7 @@
#include <sfx2/viewsh.hxx>
#include <math.h>
#include <osl/file.hxx>
+#include <sal/log.hxx>
#include <toolkit/awt/vclxwindow.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/window.hxx>
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index 57b76b61d238..2991df012235 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -38,6 +38,7 @@
#include <vcl/svapp.hxx>
#include <svx/unopage.hxx>
#include <svx/unoshape.hxx>
+#include <sal/log.hxx>
#include <vbahelper/vbashape.hxx>
#include <vbahelper/vbatextframe.hxx>