summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-07-29 00:31:58 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-08-01 13:46:18 +0200
commit852ef6e2863405318db8a1dcd24666000ce60f2e (patch)
treedbf8b1db0651be7b1bb3d10f0cee74e9f1060187
parentccc0986d9a1c4a90114a38c30fe778ee42c8a8b5 (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 directory sc Change-Id: I988d7d3abaedfb32516a9db88815663bf54da46e Reviewed-on: https://gerrit.libreoffice.org/58266 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sc/qa/extras/macros-test.cxx1
-rw-r--r--sc/qa/unit/helper/qahelper.cxx1
-rw-r--r--sc/source/core/data/attarray.cxx1
-rw-r--r--sc/source/core/data/attrib.cxx1
-rw-r--r--sc/source/core/data/bcaslot.cxx1
-rw-r--r--sc/source/core/data/column4.cxx1
-rw-r--r--sc/source/core/data/conditio.cxx1
-rw-r--r--sc/source/core/data/documen2.cxx1
-rw-r--r--sc/source/core/data/documen4.cxx1
-rw-r--r--sc/source/core/data/documen7.cxx1
-rw-r--r--sc/source/core/data/documen8.cxx1
-rw-r--r--sc/source/core/data/document.cxx1
-rw-r--r--sc/source/core/data/document10.cxx1
-rw-r--r--sc/source/core/data/dpresfilter.cxx1
-rw-r--r--sc/source/core/data/dpsave.cxx1
-rw-r--r--sc/source/core/data/dptabres.cxx1
-rw-r--r--sc/source/core/data/dptabsrc.cxx1
-rw-r--r--sc/source/core/data/formulacell.cxx1
-rw-r--r--sc/source/core/data/global2.cxx1
-rw-r--r--sc/source/core/data/postit.cxx1
-rw-r--r--sc/source/core/data/segmenttree.cxx1
-rw-r--r--sc/source/core/data/table3.cxx1
-rw-r--r--sc/source/core/data/table6.cxx1
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx1
-rw-r--r--sc/source/core/opencl/opbase.cxx1
-rw-r--r--sc/source/core/tool/addincfg.cxx2
-rw-r--r--sc/source/core/tool/addincol.cxx1
-rw-r--r--sc/source/core/tool/address.cxx1
-rw-r--r--sc/source/core/tool/calcconfig.cxx1
-rw-r--r--sc/source/core/tool/compiler.cxx1
-rw-r--r--sc/source/core/tool/dbdata.cxx1
-rw-r--r--sc/source/core/tool/formulagroup.cxx1
-rw-r--r--sc/source/core/tool/formulaopt.cxx1
-rw-r--r--sc/source/core/tool/formularesult.cxx2
-rw-r--r--sc/source/core/tool/grouparealistener.cxx2
-rw-r--r--sc/source/core/tool/interpr1.cxx1
-rw-r--r--sc/source/core/tool/interpr8.cxx1
-rw-r--r--sc/source/core/tool/lookupcache.cxx2
-rw-r--r--sc/source/core/tool/parclass.cxx1
-rw-r--r--sc/source/core/tool/rangelst.cxx1
-rw-r--r--sc/source/core/tool/scmatrix.cxx1
-rw-r--r--sc/source/core/tool/token.cxx1
-rw-r--r--sc/source/filter/excel/excform.cxx1
-rw-r--r--sc/source/filter/excel/excrecds.cxx1
-rw-r--r--sc/source/filter/excel/impop.cxx1
-rw-r--r--sc/source/filter/excel/tokstack.cxx1
-rw-r--r--sc/source/filter/excel/xecontent.cxx1
-rw-r--r--sc/source/filter/excel/xeformula.cxx1
-rw-r--r--sc/source/filter/excel/xelink.cxx1
-rw-r--r--sc/source/filter/excel/xeroot.cxx1
-rw-r--r--sc/source/filter/excel/xichart.cxx1
-rw-r--r--sc/source/filter/excel/xicontent.cxx1
-rw-r--r--sc/source/filter/excel/xiescher.cxx1
-rw-r--r--sc/source/filter/excel/xihelper.cxx1
-rw-r--r--sc/source/filter/excel/xilink.cxx1
-rw-r--r--sc/source/filter/excel/xipivot.cxx1
-rw-r--r--sc/source/filter/excel/xistream.cxx1
-rw-r--r--sc/source/filter/excel/xistring.cxx1
-rw-r--r--sc/source/filter/excel/xistyle.cxx1
-rw-r--r--sc/source/filter/excel/xlpivot.cxx1
-rw-r--r--sc/source/filter/excel/xlroot.cxx1
-rw-r--r--sc/source/filter/excel/xlstyle.cxx1
-rw-r--r--sc/source/filter/excel/xltoolbar.cxx1
-rw-r--r--sc/source/filter/excel/xltools.cxx1
-rw-r--r--sc/source/filter/ftools/fapihelper.cxx1
-rw-r--r--sc/source/filter/lotus/lotattr.cxx1
-rw-r--r--sc/source/filter/lotus/lotform.cxx1
-rw-r--r--sc/source/filter/lotus/lotimpop.cxx1
-rw-r--r--sc/source/filter/lotus/lotread.cxx2
-rw-r--r--sc/source/filter/lotus/tool.cxx1
-rw-r--r--sc/source/filter/oox/condformatbuffer.cxx1
-rw-r--r--sc/source/filter/oox/excelfilter.cxx1
-rw-r--r--sc/source/filter/oox/externallinkbuffer.cxx1
-rw-r--r--sc/source/filter/oox/extlstcontext.cxx1
-rw-r--r--sc/source/filter/oox/formulabuffer.cxx1
-rw-r--r--sc/source/filter/oox/formulaparser.cxx1
-rw-r--r--sc/source/filter/oox/pivotcachebuffer.cxx1
-rw-r--r--sc/source/filter/oox/pivottablebuffer.cxx1
-rw-r--r--sc/source/filter/oox/sheetdatabuffer.cxx1
-rw-r--r--sc/source/filter/oox/sheetdatacontext.cxx1
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx1
-rw-r--r--sc/source/filter/oox/tablebuffer.cxx1
-rw-r--r--sc/source/filter/oox/tablecolumnsbuffer.cxx1
-rw-r--r--sc/source/filter/oox/workbookfragment.cxx1
-rw-r--r--sc/source/filter/orcus/interface.cxx1
-rw-r--r--sc/source/filter/orcus/orcusfiltersimpl.cxx1
-rw-r--r--sc/source/filter/orcus/xmlcontext.cxx1
-rw-r--r--sc/source/filter/qpro/qpro.cxx1
-rw-r--r--sc/source/filter/qpro/qproform.cxx1
-rw-r--r--sc/source/filter/xcl97/XclImpChangeTrack.cxx1
-rw-r--r--sc/source/filter/xcl97/xcl97esc.cxx1
-rw-r--r--sc/source/filter/xcl97/xcl97rec.cxx1
-rw-r--r--sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx1
-rw-r--r--sc/source/filter/xml/XMLDDELinksContext.cxx1
-rw-r--r--sc/source/filter/xml/xmlbodyi.cxx1
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx1
-rw-r--r--sc/source/filter/xml/xmlcondformat.cxx1
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx1
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx1
-rw-r--r--sc/source/filter/xml/xmlsubti.cxx1
-rw-r--r--sc/source/filter/xml/xmltabi.cxx1
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx1
-rw-r--r--sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx1
-rw-r--r--sc/source/ui/Accessibility/DrawModelBroadcaster.cxx1
-rw-r--r--sc/source/ui/dataprovider/dataprovider.cxx1
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx1
-rw-r--r--sc/source/ui/docshell/dbdocimp.cxx1
-rw-r--r--sc/source/ui/docshell/docfunc.cxx1
-rw-r--r--sc/source/ui/docshell/docsh.cxx1
-rw-r--r--sc/source/ui/docshell/docsh3.cxx1
-rw-r--r--sc/source/ui/docshell/docsh4.cxx1
-rw-r--r--sc/source/ui/docshell/docsh8.cxx1
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx1
-rw-r--r--sc/source/ui/docshell/impex.cxx1
-rw-r--r--sc/source/ui/drawfunc/fuins1.cxx1
-rw-r--r--sc/source/ui/drawfunc/fuins2.cxx1
-rw-r--r--sc/source/ui/miscdlgs/dataproviderdlg.cxx3
-rw-r--r--sc/source/ui/miscdlgs/datatableview.cxx1
-rw-r--r--sc/source/ui/miscdlgs/solverutil.cxx1
-rw-r--r--sc/source/ui/navipi/content.cxx1
-rw-r--r--sc/source/ui/pagedlg/scuitphfedit.cxx1
-rw-r--r--sc/source/ui/uitest/uiobject.cxx1
-rw-r--r--sc/source/ui/unoobj/PivotTableDataSequence.cxx1
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx1
-rw-r--r--sc/source/ui/unoobj/condformatuno.cxx1
-rw-r--r--sc/source/ui/unoobj/dapiuno.cxx1
-rw-r--r--sc/source/ui/unoobj/docuno.cxx1
-rw-r--r--sc/source/ui/unoobj/exceldetect.cxx1
-rw-r--r--sc/source/ui/unoobj/textuno.cxx1
-rw-r--r--sc/source/ui/unoobj/tokenuno.cxx1
-rw-r--r--sc/source/ui/vba/vbacomment.cxx1
-rw-r--r--sc/source/ui/vba/vbarange.cxx1
-rw-r--r--sc/source/ui/view/drawvie4.cxx1
-rw-r--r--sc/source/ui/view/formatsh.cxx1
-rw-r--r--sc/source/ui/view/output.cxx1
-rw-r--r--sc/source/ui/view/output2.cxx1
-rw-r--r--sc/source/ui/view/tabview.cxx1
-rw-r--r--sc/source/ui/view/tabview3.cxx1
-rw-r--r--sc/source/ui/view/tabvwshb.cxx1
-rw-r--r--sc/source/ui/view/viewdata.cxx1
-rw-r--r--sc/source/ui/view/viewfun6.cxx1
141 files changed, 147 insertions, 1 deletions
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx
index 085c1e7e5c56..05afe4db3865 100644
--- a/sc/qa/extras/macros-test.cxx
+++ b/sc/qa/extras/macros-test.cxx
@@ -11,6 +11,7 @@
#include <test/unoapi_test.hxx>
#include <rtl/strbuf.hxx>
#include <osl/file.hxx>
+#include <sal/log.hxx>
#include <sfx2/app.hxx>
#include <sfx2/docfilt.hxx>
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index d414b1abfb96..73af82070253 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -22,6 +22,7 @@
#include <formula/errorcodes.hxx>
#include <cppunit/Asserter.h>
#include <cppunit/AdditionalMessage.h>
+#include <sal/log.hxx>
#include <orcus/csv_parser.hpp>
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index d058b7e70b4f..2dd227f0e5cc 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -30,6 +30,7 @@
#include <svl/poolcach.hxx>
#include <editeng/fontitem.hxx>
#include <unotools/fontcvt.hxx>
+#include <sal/log.hxx>
#include <global.hxx>
#include <document.hxx>
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index b257537d29a6..d3337bd09a7c 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -28,6 +28,7 @@
#include <editeng/editeng.hxx>
#include <editeng/editobj.hxx>
#include <editeng/flditem.hxx>
+#include <sal/log.hxx>
#include <libxml/xmlwriter.h>
diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx
index c0d08a3c1deb..da6f1b7a3232 100644
--- a/sc/source/core/data/bcaslot.cxx
+++ b/sc/source/core/data/bcaslot.cxx
@@ -19,6 +19,7 @@
#include <sfx2/objsh.hxx>
#include <svl/listener.hxx>
+#include <sal/log.hxx>
#include <document.hxx>
#include <brdcst.hxx>
diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx
index 34566ac15bb1..608cef4609e2 100644
--- a/sc/source/core/data/column4.cxx
+++ b/sc/source/core/data/column4.cxx
@@ -33,6 +33,7 @@
#include <svl/sharedstringpool.hxx>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
#include <vector>
#include <cassert>
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index a13ccf622e4c..4d0ff28f0441 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -22,6 +22,7 @@
#include <svl/itemset.hxx>
#include <svl/zforlist.hxx>
#include <rtl/math.hxx>
+#include <sal/log.hxx>
#include <unotools/collatorwrapper.hxx>
#include <com/sun/star/sheet/ConditionOperator2.hpp>
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 082a5e164532..caf2df997831 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -43,6 +43,7 @@
#include <tools/urlobj.hxx>
#include <rtl/crc.h>
#include <basic/basmgr.hxx>
+#include <sal/log.hxx>
#include <document.hxx>
#include <table.hxx>
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index 7e7372a40b9d..256fc8c1417d 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -21,6 +21,7 @@
#include <svl/zforlist.hxx>
#include <svl/zformat.hxx>
#include <formula/token.hxx>
+#include <sal/log.hxx>
#include <document.hxx>
#include <table.hxx>
diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx
index c2395210df9d..f5111b16c043 100644
--- a/sc/source/core/data/documen7.cxx
+++ b/sc/source/core/data/documen7.cxx
@@ -18,6 +18,7 @@
*/
#include <vcl/svapp.hxx>
+#include <sal/log.hxx>
#include <document.hxx>
#include <brdcst.hxx>
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 51f7c757c726..69f444bf6112 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -42,6 +42,7 @@
#include <sfx2/app.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <unotools/securityoptions.hxx>
+#include <sal/log.hxx>
#include <vcl/virdev.hxx>
#include <vcl/weld.hxx>
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 44699a55a7b3..ad695bcb3a2c 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -40,6 +40,7 @@
#include <unotools/transliterationwrapper.hxx>
#include <tools/tenccvt.hxx>
#include <tools/urlobj.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/text/WritingMode2.hpp>
#include <com/sun/star/script/vba/XVBACompatibility.hpp>
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index 41a00c7a8a2c..e94bf3d3d0d3 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -27,6 +27,7 @@
#include <patattr.hxx>
#include <refupdatecontext.hxx>
#include <svl/whiter.hxx>
+#include <sal/log.hxx>
#include <editeng/colritem.hxx>
#include <scitems.hxx>
#include <datamapper.hxx>
diff --git a/sc/source/core/data/dpresfilter.cxx b/sc/source/core/data/dpresfilter.cxx
index 9d30ea7bd378..7ce394e1d293 100644
--- a/sc/source/core/data/dpresfilter.cxx
+++ b/sc/source/core/data/dpresfilter.cxx
@@ -12,6 +12,7 @@
#include <unotools/charclass.hxx>
#include <rtl/math.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/sheet/DataPilotFieldFilter.hpp>
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index df375a25f8ea..aa6feb90c8fe 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -29,6 +29,7 @@
#include <generalfunction.hxx>
#include <sal/types.h>
+#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <o3tl/make_unique.hxx>
#include <comphelper/stl_types.hxx>
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index d99c0d493c28..ae0e38ce3da1 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -35,6 +35,7 @@
#include <osl/diagnose.h>
#include <rtl/math.hxx>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include <math.h>
#include <float.h>
diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx
index 6fe17154548c..595979e07879 100644
--- a/sc/source/core/data/dptabsrc.cxx
+++ b/sc/source/core/data/dptabsrc.cxx
@@ -27,6 +27,7 @@
#include <o3tl/any.hxx>
#include <osl/diagnose.h>
#include <rtl/math.hxx>
+#include <sal/log.hxx>
#include <svl/itemprop.hxx>
#include <svl/intitem.hxx>
#include <vcl/svapp.hxx>
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 9ff780be7e6a..2bb71a46b868 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -20,6 +20,7 @@
#include <config_features.h>
#include <sal/config.h>
+#include <sal/log.hxx>
#include <cassert>
#include <cstdlib>
diff --git a/sc/source/core/data/global2.cxx b/sc/source/core/data/global2.cxx
index 52b4b8aeb531..b89daafb5881 100644
--- a/sc/source/core/data/global2.cxx
+++ b/sc/source/core/data/global2.cxx
@@ -28,6 +28,7 @@
#include <unotools/syslocale.hxx>
#include <svl/zforlist.hxx>
#include <formula/errorcodes.hxx>
+#include <sal/log.hxx>
#include <global.hxx>
#include <rangeutl.hxx>
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index 804387cf1467..d4c3372de75f 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -21,6 +21,7 @@
#include <postit.hxx>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <unotools/useroptions.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdocapt.hxx>
diff --git a/sc/source/core/data/segmenttree.cxx b/sc/source/core/data/segmenttree.cxx
index 21f7b0fc890a..4c01deb06172 100644
--- a/sc/source/core/data/segmenttree.cxx
+++ b/sc/source/core/data/segmenttree.cxx
@@ -20,6 +20,7 @@
#include <segmenttree.hxx>
#include <o3tl/safeint.hxx>
#include <mdds/flat_segment_tree.hpp>
+#include <sal/log.hxx>
#include <algorithm>
#include <limits>
#include <address.hxx>
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 05b71c35daa2..edbd2de757fa 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -28,6 +28,7 @@
#include <unotools/collatorwrapper.hxx>
#include <stdlib.h>
#include <unotools/transliterationwrapper.hxx>
+#include <sal/log.hxx>
#include <table.hxx>
#include <scitems.hxx>
diff --git a/sc/source/core/data/table6.cxx b/sc/source/core/data/table6.cxx
index 226d43e06a1e..47a3728b92f2 100644
--- a/sc/source/core/data/table6.cxx
+++ b/sc/source/core/data/table6.cxx
@@ -21,6 +21,7 @@
#include <svl/srchitem.hxx>
#include <editeng/editobj.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <table.hxx>
#include <formulacell.hxx>
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index fa5b37e969f2..3abe8dbc340f 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -18,6 +18,7 @@
#include <comphelper/random.hxx>
#include <formula/vectortoken.hxx>
#include <scmatrix.hxx>
+#include <sal/log.hxx>
#include <opencl/openclwrapper.hxx>
diff --git a/sc/source/core/opencl/opbase.cxx b/sc/source/core/opencl/opbase.cxx
index 9e162ac45fb6..aa4cdf59e4fe 100644
--- a/sc/source/core/opencl/opbase.cxx
+++ b/sc/source/core/opencl/opbase.cxx
@@ -8,6 +8,7 @@
*/
#include <opencl/openclwrapper.hxx>
+#include <sal/log.hxx>
#include "opbase.hxx"
diff --git a/sc/source/core/tool/addincfg.cxx b/sc/source/core/tool/addincfg.cxx
index 92ca222468c6..9e90505ed2ce 100644
--- a/sc/source/core/tool/addincfg.cxx
+++ b/sc/source/core/tool/addincfg.cxx
@@ -19,6 +19,8 @@
#include <com/sun/star/uno/Sequence.hxx>
+#include <sal/log.hxx>
+
#include <global.hxx>
#include <addincol.hxx>
#include <addincfg.hxx>
diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx
index d5a27f22d4e3..4709155ab719 100644
--- a/sc/source/core/tool/addincol.cxx
+++ b/sc/source/core/tool/addincol.cxx
@@ -23,6 +23,7 @@
#include <vcl/settings.hxx>
#include <sfx2/objsh.hxx>
#include <unotools/charclass.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/lang/XServiceName.hpp>
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index 1b4469e707be..35e1dbe69a7d 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -30,6 +30,7 @@
#include <com/sun/star/sheet/ExternalLinkType.hpp>
#include <sfx2/objsh.hxx>
#include <tools/urlobj.hxx>
+#include <sal/log.hxx>
using namespace css;
diff --git a/sc/source/core/tool/calcconfig.cxx b/sc/source/core/tool/calcconfig.cxx
index 165c9a54e07c..5e63d4debf62 100644
--- a/sc/source/core/tool/calcconfig.cxx
+++ b/sc/source/core/tool/calcconfig.cxx
@@ -14,6 +14,7 @@
#include <formula/grammar.hxx>
#include <formula/opcode.hxx>
#include <rtl/ustring.hxx>
+#include <sal/log.hxx>
#include <sfx2/objsh.hxx>
#include <unotools/configmgr.hxx>
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 895a9a9f2994..1cd0cd515f9e 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -28,6 +28,7 @@
#include <svl/zforlist.hxx>
#include <svl/sharedstringpool.hxx>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <tools/solar.h>
#include <unotools/charclass.hxx>
#include <unotools/configmgr.hxx>
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index 4c331d839664..2099a8e51563 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <unotools/transliterationwrapper.hxx>
diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx
index 4304e1b08e04..c007263f68f1 100644
--- a/sc/source/core/tool/formulagroup.cxx
+++ b/sc/source/core/tool/formulagroup.cxx
@@ -29,6 +29,7 @@
#endif
#include <o3tl/make_unique.hxx>
#include <rtl/bootstrap.hxx>
+#include <sal/log.hxx>
#include <cstdio>
#include <unordered_map>
diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx
index 59e297ced427..aba7aa06587a 100644
--- a/sc/source/core/tool/formulaopt.cxx
+++ b/sc/source/core/tool/formulaopt.cxx
@@ -10,6 +10,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <unotools/localedatawrapper.hxx>
#include <formulaopt.hxx>
#include <miscuno.hxx>
diff --git a/sc/source/core/tool/formularesult.cxx b/sc/source/core/tool/formularesult.cxx
index 2431713cffdf..30f8a736852d 100644
--- a/sc/source/core/tool/formularesult.cxx
+++ b/sc/source/core/tool/formularesult.cxx
@@ -11,6 +11,8 @@
#include <scmatrix.hxx>
#include <token.hxx>
+#include <sal/log.hxx>
+
namespace sc {
FormulaResultValue::FormulaResultValue() : meType(Invalid), mfValue(0.0), mnError(FormulaError::NONE) {}
diff --git a/sc/source/core/tool/grouparealistener.cxx b/sc/source/core/tool/grouparealistener.cxx
index 888d0efdbf73..6cd88ffe1ea9 100644
--- a/sc/source/core/tool/grouparealistener.cxx
+++ b/sc/source/core/tool/grouparealistener.cxx
@@ -18,6 +18,8 @@
#include <document.hxx>
#include <table.hxx>
+#include <sal/log.hxx>
+
namespace sc {
namespace {
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 3baa2793d9ad..90b2ae7c5526 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -34,6 +34,7 @@
#include <unotools/collatorwrapper.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <rtl/ustring.hxx>
+#include <sal/log.hxx>
#include <unicode/uchar.h>
#include <patattr.hxx>
diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx
index d838ed110706..2dfec3bf6e8c 100644
--- a/sc/source/core/tool/interpr8.cxx
+++ b/sc/source/core/tool/interpr8.cxx
@@ -14,6 +14,7 @@
#include <scmatrix.hxx>
#include <comphelper/random.hxx>
#include <formula/token.hxx>
+#include <sal/log.hxx>
#include <stack>
#include <cmath>
diff --git a/sc/source/core/tool/lookupcache.cxx b/sc/source/core/tool/lookupcache.cxx
index 95a6d196287f..fa6fbc0a1693 100644
--- a/sc/source/core/tool/lookupcache.cxx
+++ b/sc/source/core/tool/lookupcache.cxx
@@ -22,6 +22,8 @@
#include <queryentry.hxx>
#include <brdcst.hxx>
+#include <sal/log.hxx>
+
ScLookupCache::QueryCriteria::QueryCriteria( const ScQueryEntry& rEntry ) :
mfVal(0.0), mbAlloc(false), mbString(false)
{
diff --git a/sc/source/core/tool/parclass.cxx b/sc/source/core/tool/parclass.cxx
index a4c3e7241087..9f79da716a40 100644
--- a/sc/source/core/tool/parclass.cxx
+++ b/sc/source/core/tool/parclass.cxx
@@ -26,6 +26,7 @@
#include <unotools/charclass.hxx>
#include <osl/diagnose.h>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <string.h>
#if DEBUG_SC_PARCLASSDOC
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index b64af571067b..394d5d5f09f9 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <unotools/collatorwrapper.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <rangelst.hxx>
#include <document.hxx>
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 7f8c8767e917..0292376cead5 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -33,6 +33,7 @@
#include <svl/sharedstring.hxx>
#include <tools/stream.hxx>
#include <rtl/math.hxx>
+#include <sal/log.hxx>
#include <math.h>
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 760e0652f8f2..cdb4bd22a587 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -24,6 +24,7 @@
#include <string.h>
#include <tools/mempool.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <sfx2/docfile.hxx>
#include <officecfg/Office/Calc.hxx>
diff --git a/sc/source/filter/excel/excform.cxx b/sc/source/filter/excel/excform.cxx
index 7f9893f53bd1..933547da7dc6 100644
--- a/sc/source/filter/excel/excform.cxx
+++ b/sc/source/filter/excel/excform.cxx
@@ -27,6 +27,7 @@
#include <formula/errorcodes.hxx>
#include <svl/sharedstringpool.hxx>
+#include <sal/log.hxx>
#include <imp_op.hxx>
#include <namebuff.hxx>
diff --git a/sc/source/filter/excel/excrecds.cxx b/sc/source/filter/excel/excrecds.cxx
index 49988ed954a6..af3a90b75f2d 100644
--- a/sc/source/filter/excel/excrecds.cxx
+++ b/sc/source/filter/excel/excrecds.cxx
@@ -48,6 +48,7 @@
#include <svl/zforlist.hxx>
#include <svl/zformat.hxx>
#include <svtools/ctrltool.hxx>
+#include <sal/log.hxx>
#include <string.h>
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index d206b5d278f3..6bcf3d690caf 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -37,6 +37,7 @@
#include <svx/svxids.hrc>
#include <svl/zforlist.hxx>
#include <unotools/configmgr.hxx>
+#include <sal/log.hxx>
#include <sfx2/objsh.hxx>
#include <tools/urlobj.hxx>
diff --git a/sc/source/filter/excel/tokstack.cxx b/sc/source/filter/excel/tokstack.cxx
index 18fb99aae1e1..5d0595b18119 100644
--- a/sc/source/filter/excel/tokstack.cxx
+++ b/sc/source/filter/excel/tokstack.cxx
@@ -23,6 +23,7 @@
#include <scmatrix.hxx>
#include <svl/sharedstringpool.hxx>
+#include <sal/log.hxx>
#include <algorithm>
#include <string.h>
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 04f3a9c0f2bd..cdc4269f144c 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -46,6 +46,7 @@
#include <xestyle.hxx>
#include <xename.hxx>
#include <rtl/uuid.h>
+#include <sal/log.hxx>
#include <oox/export/utils.hxx>
#include <oox/token/namespaces.hxx>
#include <oox/token/relationship.hxx>
diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx
index dc3297c45ee9..72a7bd7440a5 100644
--- a/sc/source/filter/excel/xeformula.cxx
+++ b/sc/source/filter/excel/xeformula.cxx
@@ -32,6 +32,7 @@
#include <xelink.hxx>
#include <xename.hxx>
#include <xestream.hxx>
+#include <sal/log.hxx>
using namespace ::formula;
diff --git a/sc/source/filter/excel/xelink.cxx b/sc/source/filter/excel/xelink.cxx
index 2d664ed1f3e1..57aa2ed75a3b 100644
--- a/sc/source/filter/excel/xelink.cxx
+++ b/sc/source/filter/excel/xelink.cxx
@@ -25,6 +25,7 @@
#include <oox/token/relationship.hxx>
#include <unotools/collatorwrapper.hxx>
#include <svl/zforlist.hxx>
+#include <sal/log.hxx>
#include <document.hxx>
#include <formulacell.hxx>
#include <scextopt.hxx>
diff --git a/sc/source/filter/excel/xeroot.cxx b/sc/source/filter/excel/xeroot.cxx
index d7957dcc2e08..7dd616b7de93 100644
--- a/sc/source/filter/excel/xeroot.cxx
+++ b/sc/source/filter/excel/xeroot.cxx
@@ -18,6 +18,7 @@
*/
#include <rtl/random.h>
+#include <sal/log.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/request.hxx>
#include <sfx2/frame.hxx>
diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx
index 3ae429f68a90..c42abc33a8db 100644
--- a/sc/source/filter/excel/xichart.cxx
+++ b/sc/source/filter/excel/xichart.cxx
@@ -80,6 +80,7 @@
#include <sfx2/objsh.hxx>
#include <svx/svdpage.hxx>
#include <svx/unoapi.hxx>
+#include <sal/log.hxx>
#include <document.hxx>
#include <drwlayer.hxx>
diff --git a/sc/source/filter/excel/xicontent.cxx b/sc/source/filter/excel/xicontent.cxx
index dce417adea3a..3a00b8c4ef47 100644
--- a/sc/source/filter/excel/xicontent.cxx
+++ b/sc/source/filter/excel/xicontent.cxx
@@ -66,6 +66,7 @@
#include <utility>
#include <o3tl/make_unique.hxx>
#include <oox/helper/helper.hxx>
+#include <sal/log.hxx>
using ::com::sun::star::uno::Sequence;
using ::std::unique_ptr;
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx
index 00433e17c7bb..a3e7e8166d62 100644
--- a/sc/source/filter/excel/xiescher.cxx
+++ b/sc/source/filter/excel/xiescher.cxx
@@ -50,6 +50,7 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
+#include <sal/log.hxx>
#include <svx/svdopath.hxx>
#include <svx/svdocirc.hxx>
diff --git a/sc/source/filter/excel/xihelper.cxx b/sc/source/filter/excel/xihelper.cxx
index 04525d44a47c..6d36c73c9c99 100644
--- a/sc/source/filter/excel/xihelper.cxx
+++ b/sc/source/filter/excel/xihelper.cxx
@@ -38,6 +38,7 @@
#include <scmatrix.hxx>
#include <documentimport.hxx>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
// Excel->Calc cell address/range conversion ==================================
diff --git a/sc/source/filter/excel/xilink.cxx b/sc/source/filter/excel/xilink.cxx
index 1bc3f16fd18c..dd32e55468ae 100644
--- a/sc/source/filter/excel/xilink.cxx
+++ b/sc/source/filter/excel/xilink.cxx
@@ -31,6 +31,7 @@
#include <scmatrix.hxx>
#include <svl/sharedstringpool.hxx>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
#include <vector>
#include <memory>
diff --git a/sc/source/filter/excel/xipivot.cxx b/sc/source/filter/excel/xipivot.cxx
index b0452408054b..78519393c425 100644
--- a/sc/source/filter/excel/xipivot.cxx
+++ b/sc/source/filter/excel/xipivot.cxx
@@ -27,6 +27,7 @@
#include <tools/datetime.hxx>
#include <svl/zformat.hxx>
#include <svl/intitem.hxx>
+#include <sal/log.hxx>
#include <document.hxx>
#include <formulacell.hxx>
diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx
index 546b1edd8a6d..5f6e84a0a310 100644
--- a/sc/source/filter/excel/xistream.cxx
+++ b/sc/source/filter/excel/xistream.cxx
@@ -21,6 +21,7 @@
#include <comphelper/sequenceashashmap.hxx>
#include <osl/thread.h>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <xistream.hxx>
#include <xlstring.hxx>
#include <xiroot.hxx>
diff --git a/sc/source/filter/excel/xistring.cxx b/sc/source/filter/excel/xistring.cxx
index d1ca07c1cc2b..6349a3e0c58b 100644
--- a/sc/source/filter/excel/xistring.cxx
+++ b/sc/source/filter/excel/xistring.cxx
@@ -21,6 +21,7 @@
#include <xlstyle.hxx>
#include <xistream.hxx>
#include <xiroot.hxx>
+#include <sal/log.hxx>
// Byte/Unicode strings =======================================================
diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx
index c6a660e7735d..785857dc0ffa 100644
--- a/sc/source/filter/excel/xistyle.cxx
+++ b/sc/source/filter/excel/xistyle.cxx
@@ -45,6 +45,7 @@
#include <editeng/justifyitem.hxx>
#include <editeng/editids.hrc>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <vcl/fontcharmap.hxx>
#include <document.hxx>
#include <docpool.hxx>
diff --git a/sc/source/filter/excel/xlpivot.cxx b/sc/source/filter/excel/xlpivot.cxx
index b6deec337767..7fc6f46225b2 100644
--- a/sc/source/filter/excel/xlpivot.cxx
+++ b/sc/source/filter/excel/xlpivot.cxx
@@ -25,6 +25,7 @@
#include <xlpivot.hxx>
#include <generalfunction.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <com/sun/star/sheet/DataPilotFieldGroupBy.hpp>
using ::com::sun::star::sheet::GeneralFunction;
diff --git a/sc/source/filter/excel/xlroot.cxx b/sc/source/filter/excel/xlroot.cxx
index 9adf75a83f61..e721e2e94c58 100644
--- a/sc/source/filter/excel/xlroot.cxx
+++ b/sc/source/filter/excel/xlroot.cxx
@@ -20,6 +20,7 @@
#include <memory>
#include <xlroot.hxx>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/awt/XDevice.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XFrame.hpp>
diff --git a/sc/source/filter/excel/xlstyle.cxx b/sc/source/filter/excel/xlstyle.cxx
index e9095b580cad..610736f89a4c 100644
--- a/sc/source/filter/excel/xlstyle.cxx
+++ b/sc/source/filter/excel/xlstyle.cxx
@@ -26,6 +26,7 @@
#include <vcl/settings.hxx>
#include <vcl/font.hxx>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <rtl/tencinfo.h>
#include <svtools/colorcfg.hxx>
#include <vcl/unohelp.hxx>
diff --git a/sc/source/filter/excel/xltoolbar.cxx b/sc/source/filter/excel/xltoolbar.cxx
index c8b2afc08910..b3658661485c 100644
--- a/sc/source/filter/excel/xltoolbar.cxx
+++ b/sc/source/filter/excel/xltoolbar.cxx
@@ -8,6 +8,7 @@
*/
#include "xltoolbar.hxx"
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <stdarg.h>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/document/IndexedPropertyValues.hpp>
diff --git a/sc/source/filter/excel/xltools.cxx b/sc/source/filter/excel/xltools.cxx
index 7d697c016c03..5873270de48d 100644
--- a/sc/source/filter/excel/xltools.cxx
+++ b/sc/source/filter/excel/xltools.cxx
@@ -23,6 +23,7 @@
#include <unotools/fontcvt.hxx>
#include <sfx2/objsh.hxx>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <editeng/editstat.hxx>
#include <filter/msfilter/msvbahelper.hxx>
#include <xestream.hxx>
diff --git a/sc/source/filter/ftools/fapihelper.cxx b/sc/source/filter/ftools/fapihelper.cxx
index 1d40cd44c0aa..dab3b5e112f3 100644
--- a/sc/source/filter/ftools/fapihelper.cxx
+++ b/sc/source/filter/ftools/fapihelper.cxx
@@ -28,6 +28,7 @@
#include <comphelper/processfactory.hxx>
#include <tools/urlobj.hxx>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/request.hxx>
diff --git a/sc/source/filter/lotus/lotattr.cxx b/sc/source/filter/lotus/lotattr.cxx
index ba673aca6cef..16fe863289d7 100644
--- a/sc/source/filter/lotus/lotattr.cxx
+++ b/sc/source/filter/lotus/lotattr.cxx
@@ -24,6 +24,7 @@
#include <editeng/brushitem.hxx>
#include <editeng/justifyitem.hxx>
#include <svx/algitem.hxx>
+#include <sal/log.hxx>
#include <attrib.hxx>
#include <docpool.hxx>
diff --git a/sc/source/filter/lotus/lotform.cxx b/sc/source/filter/lotus/lotform.cxx
index cbf29f667bb7..4371a5587798 100644
--- a/sc/source/filter/lotus/lotform.cxx
+++ b/sc/source/filter/lotus/lotform.cxx
@@ -29,6 +29,7 @@
#include <math.h>
#include <comphelper/string.hxx>
+#include <sal/log.hxx>
#include <memory>
static const sal_Char* GetAddInName( const sal_uInt8 nIndex );
diff --git a/sc/source/filter/lotus/lotimpop.cxx b/sc/source/filter/lotus/lotimpop.cxx
index 99cc7a9dd3be..f93c965efa42 100644
--- a/sc/source/filter/lotus/lotimpop.cxx
+++ b/sc/source/filter/lotus/lotimpop.cxx
@@ -20,6 +20,7 @@
#include "lotfilter.hxx"
#include <lotimpop.hxx>
#include <osl/mutex.hxx>
+#include <sal/log.hxx>
#include <attrib.hxx>
#include <document.hxx>
diff --git a/sc/source/filter/lotus/lotread.cxx b/sc/source/filter/lotus/lotread.cxx
index 6caefd0337d1..ee2ea3a434c6 100644
--- a/sc/source/filter/lotus/lotread.cxx
+++ b/sc/source/filter/lotus/lotread.cxx
@@ -28,6 +28,8 @@
#include <lotattr.hxx>
#include <fprogressbar.hxx>
+#include <sal/log.hxx>
+
class ScFormulaCell;
ErrCode ImportLotus::parse()
diff --git a/sc/source/filter/lotus/tool.cxx b/sc/source/filter/lotus/tool.cxx
index 7b2866918667..616f96808c56 100644
--- a/sc/source/filter/lotus/tool.cxx
+++ b/sc/source/filter/lotus/tool.cxx
@@ -21,6 +21,7 @@
#include <svx/algitem.hxx>
#include <editeng/justifyitem.hxx>
#include <svl/zforlist.hxx>
+#include <sal/log.hxx>
#include <rangenam.hxx>
#include <compiler.hxx>
diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx
index 22f2445aa33c..c136e32be2eb 100644
--- a/sc/source/filter/oox/condformatbuffer.cxx
+++ b/sc/source/filter/oox/condformatbuffer.cxx
@@ -22,6 +22,7 @@
#include <com/sun/star/sheet/ConditionOperator2.hpp>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <svl/intitem.hxx>
#include <svl/sharedstringpool.hxx>
diff --git a/sc/source/filter/oox/excelfilter.cxx b/sc/source/filter/oox/excelfilter.cxx
index 006c4818e48a..2be4d12ce6be 100644
--- a/sc/source/filter/oox/excelfilter.cxx
+++ b/sc/source/filter/oox/excelfilter.cxx
@@ -21,6 +21,7 @@
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <oox/helper/binaryinputstream.hxx>
#include <excelchartconverter.hxx>
diff --git a/sc/source/filter/oox/externallinkbuffer.cxx b/sc/source/filter/oox/externallinkbuffer.cxx
index b79c0606820d..96be62a84684 100644
--- a/sc/source/filter/oox/externallinkbuffer.cxx
+++ b/sc/source/filter/oox/externallinkbuffer.cxx
@@ -27,6 +27,7 @@
#include <com/sun/star/sheet/XExternalDocLinks.hpp>
#include <osl/diagnose.h>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include <oox/core/filterbase.hxx>
#include <oox/helper/attributelist.hxx>
#include <oox/token/namespaces.hxx>
diff --git a/sc/source/filter/oox/extlstcontext.cxx b/sc/source/filter/oox/extlstcontext.cxx
index 05a036d6faaf..56163f520c17 100644
--- a/sc/source/filter/oox/extlstcontext.cxx
+++ b/sc/source/filter/oox/extlstcontext.cxx
@@ -21,6 +21,7 @@
#include <rangeutl.hxx>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
using ::oox::core::ContextHandlerRef;
diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx
index ccd0cf56f357..fa3325298062 100644
--- a/sc/source/filter/oox/formulabuffer.cxx
+++ b/sc/source/filter/oox/formulabuffer.cxx
@@ -24,6 +24,7 @@
#include <oox/token/tokens.hxx>
#include <svl/sharedstringpool.hxx>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sheet;
diff --git a/sc/source/filter/oox/formulaparser.cxx b/sc/source/filter/oox/formulaparser.cxx
index f5d43edf5b17..a6d3c0f7a18d 100644
--- a/sc/source/filter/oox/formulaparser.cxx
+++ b/sc/source/filter/oox/formulaparser.cxx
@@ -24,6 +24,7 @@
#include <com/sun/star/sheet/ReferenceFlags.hpp>
#include <com/sun/star/sheet/SingleReference.hpp>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <oox/core/filterbase.hxx>
#include <oox/token/properties.hxx>
#include <oox/helper/binaryinputstream.hxx>
diff --git a/sc/source/filter/oox/pivotcachebuffer.cxx b/sc/source/filter/oox/pivotcachebuffer.cxx
index 040bab3dad37..2a46606e0111 100644
--- a/sc/source/filter/oox/pivotcachebuffer.cxx
+++ b/sc/source/filter/oox/pivotcachebuffer.cxx
@@ -29,6 +29,7 @@
#include <com/sun/star/sheet/XDataPilotFieldGrouping.hpp>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <oox/core/filterbase.hxx>
#include <oox/helper/attributelist.hxx>
#include <oox/helper/containerhelper.hxx>
diff --git a/sc/source/filter/oox/pivottablebuffer.cxx b/sc/source/filter/oox/pivottablebuffer.cxx
index a8f9b8d01d38..80171ee8c7c4 100644
--- a/sc/source/filter/oox/pivottablebuffer.cxx
+++ b/sc/source/filter/oox/pivottablebuffer.cxx
@@ -39,6 +39,7 @@
#include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp>
#include <com/sun/star/sheet/XSheetOperation.hpp>
#include <osl/diagnose.hxx>
+#include <sal/log.hxx>
#include <oox/helper/binaryinputstream.hxx>
#include <oox/helper/attributelist.hxx>
#include <oox/helper/containerhelper.hxx>
diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx
index cf44072cd9e3..215bfaf8d64e 100644
--- a/sc/source/filter/oox/sheetdatabuffer.cxx
+++ b/sc/source/filter/oox/sheetdatabuffer.cxx
@@ -26,6 +26,7 @@
#include <com/sun/star/util/XNumberFormatTypes.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/editobj.hxx>
#include <svl/eitem.hxx>
diff --git a/sc/source/filter/oox/sheetdatacontext.cxx b/sc/source/filter/oox/sheetdatacontext.cxx
index 5f17d8c419b6..c64bd9e56b42 100644
--- a/sc/source/filter/oox/sheetdatacontext.cxx
+++ b/sc/source/filter/oox/sheetdatacontext.cxx
@@ -27,6 +27,7 @@
#include <formulaparser.hxx>
#include <richstringcontext.hxx>
#include <unitconverter.hxx>
+#include <sal/log.hxx>
namespace oox {
namespace xls {
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index 6f8ad8a82f41..95272cc9349d 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -56,6 +56,7 @@
#include <vcl/unohelp.hxx>
#include <rtl/tencinfo.h>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <oox/core/filterbase.hxx>
#include <oox/helper/attributelist.hxx>
#include <oox/helper/containerhelper.hxx>
diff --git a/sc/source/filter/oox/tablebuffer.cxx b/sc/source/filter/oox/tablebuffer.cxx
index 7df3a7a74f26..8798ca69fbf5 100644
--- a/sc/source/filter/oox/tablebuffer.cxx
+++ b/sc/source/filter/oox/tablebuffer.cxx
@@ -23,6 +23,7 @@
#include <com/sun/star/sheet/XDatabaseRange.hpp>
#include <com/sun/star/sheet/XDatabaseRanges.hpp>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include <oox/helper/attributelist.hxx>
#include <oox/helper/binaryinputstream.hxx>
#include <oox/helper/propertyset.hxx>
diff --git a/sc/source/filter/oox/tablecolumnsbuffer.cxx b/sc/source/filter/oox/tablecolumnsbuffer.cxx
index b3baef6a9d86..9d039efde48b 100644
--- a/sc/source/filter/oox/tablecolumnsbuffer.cxx
+++ b/sc/source/filter/oox/tablecolumnsbuffer.cxx
@@ -20,6 +20,7 @@
#include <tablecolumnsbuffer.hxx>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <oox/helper/attributelist.hxx>
#include <oox/helper/containerhelper.hxx>
#include <oox/helper/propertyset.hxx>
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx
index 162fb3812201..9e351d19ed20 100644
--- a/sc/source/filter/oox/workbookfragment.cxx
+++ b/sc/source/filter/oox/workbookfragment.cxx
@@ -66,6 +66,7 @@
#include <comphelper/threadpool.hxx>
#include <osl/conditn.hxx>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
#include <algorithm>
#include <queue>
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index 113888fbe0ec..dcf3e83d7eae 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -52,6 +52,7 @@
#include <i18nlangtag/lang.h>
#include <vcl/outdev.hxx>
#include <tools/fontenum.hxx>
+#include <sal/log.hxx>
#include <stylesbuffer.hxx>
diff --git a/sc/source/filter/orcus/orcusfiltersimpl.cxx b/sc/source/filter/orcus/orcusfiltersimpl.cxx
index d907b3edfaa4..1b888f220e7a 100644
--- a/sc/source/filter/orcus/orcusfiltersimpl.cxx
+++ b/sc/source/filter/orcus/orcusfiltersimpl.cxx
@@ -19,6 +19,7 @@
#include <svl/itemset.hxx>
#include <rtl/bootstrap.hxx>
#include <rtl/ustring.hxx>
+#include <sal/log.hxx>
#include <orcus/spreadsheet/import_interface.hpp>
#include <orcus/orcus_csv.hpp>
diff --git a/sc/source/filter/orcus/xmlcontext.cxx b/sc/source/filter/orcus/xmlcontext.cxx
index b2405212d8fa..e47b862c2138 100644
--- a/sc/source/filter/orcus/xmlcontext.cxx
+++ b/sc/source/filter/orcus/xmlcontext.cxx
@@ -16,6 +16,7 @@
#include <svtools/treelistentry.hxx>
#include <ucbhelper/content.hxx>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
#include <orcus/spreadsheet/import_interface.hpp>
#include <orcus/xml_structure_tree.hpp>
diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx
index 10cdabe172c0..5f6d04c4a753 100644
--- a/sc/source/filter/qpro/qpro.cxx
+++ b/sc/source/filter/qpro/qpro.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <sfx2/docfile.hxx>
#include <qproform.hxx>
diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx
index 3943cd0c0878..a3a68c649480 100644
--- a/sc/source/filter/qpro/qproform.cxx
+++ b/sc/source/filter/qpro/qproform.cxx
@@ -20,6 +20,7 @@
#include <rtl/strbuf.hxx>
#include <sal/config.h>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <qpro.hxx>
#include <qproform.hxx>
diff --git a/sc/source/filter/xcl97/XclImpChangeTrack.cxx b/sc/source/filter/xcl97/XclImpChangeTrack.cxx
index c7dc9dbb1a8b..4b234b6d2753 100644
--- a/sc/source/filter/xcl97/XclImpChangeTrack.cxx
+++ b/sc/source/filter/xcl97/XclImpChangeTrack.cxx
@@ -21,6 +21,7 @@
#include <sot/storage.hxx>
#include <svl/zforlist.hxx>
#include <svl/sharedstringpool.hxx>
+#include <sal/log.hxx>
#include <chgviset.hxx>
#include <formulacell.hxx>
#include <chgtrack.hxx>
diff --git a/sc/source/filter/xcl97/xcl97esc.cxx b/sc/source/filter/xcl97/xcl97esc.cxx
index ccbc75ae3dd3..4ef21e1b6317 100644
--- a/sc/source/filter/xcl97/xcl97esc.cxx
+++ b/sc/source/filter/xcl97/xcl97esc.cxx
@@ -38,6 +38,7 @@
#include <unotools/ucbstreamhelper.hxx>
#include <svx/sdasitm.hxx>
#include <sfx2/docfile.hxx>
+#include <sal/log.hxx>
#include <sot/exchange.hxx>
#include <xeescher.hxx>
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx
index fa8390f41da6..c6ee84081580 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -34,6 +34,7 @@
#include <rtl/math.hxx>
#include <rtl/uuid.h>
+#include <sal/log.hxx>
#include <svl/zformat.hxx>
#include <formulacell.hxx>
#include <drwlayer.hxx>
diff --git a/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
index 0aebfc49f838..232f0da21566 100644
--- a/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
@@ -37,6 +37,7 @@
#include <tools/datetime.hxx>
#include <svl/zforlist.hxx>
#include <svl/sharedstring.hxx>
+#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace xmloff::token;
diff --git a/sc/source/filter/xml/XMLDDELinksContext.cxx b/sc/source/filter/xml/XMLDDELinksContext.cxx
index e1002df74501..db1c04d4edf8 100644
--- a/sc/source/filter/xml/XMLDDELinksContext.cxx
+++ b/sc/source/filter/xml/XMLDDELinksContext.cxx
@@ -27,6 +27,7 @@
#include <sax/tools/converter.hxx>
#include <svl/sharedstringpool.hxx>
#include <osl/diagnose.h>
+#include <sal/log.hxx>
using namespace com::sun::star;
using namespace xmloff::token;
diff --git a/sc/source/filter/xml/xmlbodyi.cxx b/sc/source/filter/xml/xmlbodyi.cxx
index e7068ce9fcec..686630bfc5c0 100644
--- a/sc/source/filter/xml/xmlbodyi.cxx
+++ b/sc/source/filter/xml/xmlbodyi.cxx
@@ -52,6 +52,7 @@
#include <comphelper/base64.hxx>
#include <sax/tools/converter.hxx>
#include <sal/types.h>
+#include <sal/log.hxx>
#include <memory>
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index c9899457f23c..d3e98f4f25c7 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -100,6 +100,7 @@
#include <com/sun/star/sheet/ValidationAlertStyle.hpp>
#include <rtl/ustrbuf.hxx>
+#include <sal/log.hxx>
#include <tools/date.hxx>
#include <i18nlangtag/lang.h>
#include <o3tl/make_unique.hxx>
diff --git a/sc/source/filter/xml/xmlcondformat.cxx b/sc/source/filter/xml/xmlcondformat.cxx
index 10ff5eda5de7..acf77f54ac42 100644
--- a/sc/source/filter/xml/xmlcondformat.cxx
+++ b/sc/source/filter/xml/xmlcondformat.cxx
@@ -11,6 +11,7 @@
#include "xmlcondformat.hxx"
#include <xmloff/nmspmap.hxx>
#include <xmloff/xmlnmspe.hxx>
+#include <sal/log.hxx>
#include <colorscale.hxx>
#include <conditio.hxx>
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 27c94380fa5c..631abf95cfc3 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <appluno.hxx>
#include "xmlexprt.hxx"
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 20ba58d3c216..631f925e4447 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
+#include <sal/log.hxx>
#include <svl/zforlist.hxx>
#include <sal/macros.h>
diff --git a/sc/source/filter/xml/xmlsubti.cxx b/sc/source/filter/xml/xmlsubti.cxx
index 520d484c28a9..dcaba94ba129 100644
--- a/sc/source/filter/xml/xmlsubti.cxx
+++ b/sc/source/filter/xml/xmlsubti.cxx
@@ -34,6 +34,7 @@
#include <documentimport.hxx>
#include <svx/svdpage.hxx>
+#include <sal/log.hxx>
#include <sax/tools/converter.hxx>
#include <xmloff/xmltkmap.hxx>
diff --git a/sc/source/filter/xml/xmltabi.cxx b/sc/source/filter/xml/xmltabi.cxx
index 82e8c9010aac..3d57c2e92ae1 100644
--- a/sc/source/filter/xml/xmltabi.cxx
+++ b/sc/source/filter/xml/xmltabi.cxx
@@ -41,6 +41,7 @@
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmlnmspe.hxx>
#include <xmloff/XMLEventsImportContext.hxx>
+#include <sal/log.hxx>
#include <tools/urlobj.hxx>
#include <sax/fastattribs.hxx>
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index dcaf6daa29da..89cf3142d368 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -56,6 +56,7 @@
#include <comphelper/documentconstants.hxx>
#include <svx/xmleohlp.hxx>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include <unotools/saveopt.hxx>
#include <document.hxx>
diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
index c7b1ec6160bc..1a707573e78c 100644
--- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
+++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
@@ -33,6 +33,7 @@
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
#include <com/sun/star/accessibility/AccessibleTableModelChangeType.hpp>
+#include <sal/log.hxx>
#include <tools/gen.hxx>
#include <svtools/colorcfg.hxx>
#include <vcl/svapp.hxx>
diff --git a/sc/source/ui/Accessibility/DrawModelBroadcaster.cxx b/sc/source/ui/Accessibility/DrawModelBroadcaster.cxx
index 99322193fe05..602ddc311499 100644
--- a/sc/source/ui/Accessibility/DrawModelBroadcaster.cxx
+++ b/sc/source/ui/Accessibility/DrawModelBroadcaster.cxx
@@ -19,6 +19,7 @@
#include <DrawModelBroadcaster.hxx>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include <svx/svdmodel.hxx>
#include <svx/unomod.hxx>
diff --git a/sc/source/ui/dataprovider/dataprovider.cxx b/sc/source/ui/dataprovider/dataprovider.cxx
index f36f80006303..ade7eeb95f95 100644
--- a/sc/source/ui/dataprovider/dataprovider.cxx
+++ b/sc/source/ui/dataprovider/dataprovider.cxx
@@ -13,6 +13,7 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <officecfg/Office/Calc.hxx>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include "htmldataprovider.hxx"
#include "xmldataprovider.hxx"
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx
index 311fd36031ba..f8089345e891 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -20,6 +20,7 @@
#include <rangelst.hxx>
#include <sfx2/dispatch.hxx>
#include <vcl/waitobj.hxx>
+#include <sal/log.hxx>
#include <uiitems.hxx>
#include <dbdata.hxx>
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx
index 8edf0e7b98c9..bfcdda2608af 100644
--- a/sc/source/ui/docshell/dbdocimp.cxx
+++ b/sc/source/ui/docshell/dbdocimp.cxx
@@ -23,6 +23,7 @@
#include <vcl/weld.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <sfx2/viewfrm.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdb/XCompletedExecution.hpp>
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index d364a03fead4..ca4089b8a448 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -30,6 +30,7 @@
#include <svl/PasswordHelper.hxx>
#include <o3tl/make_unique.hxx>
#include <svx/svdocapt.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/script/ModuleType.hpp>
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index ee8194189d8b..390fb9ab9bee 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -30,6 +30,7 @@
#include <vcl/waitobj.hxx>
#include <rtl/bootstrap.hxx>
#include <rtl/tencinfo.h>
+#include <sal/log.hxx>
#include <svl/PasswordHelper.hxx>
#include <sfx2/app.hxx>
#include <sfx2/bindings.hxx>
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index 0a5da4c4b807..24fe3c674fb6 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -26,6 +26,7 @@
#include <editeng/paperinf.hxx>
#include <editeng/sizeitem.hxx>
#include <rtl/strbuf.hxx>
+#include <sal/log.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/app.hxx>
#include <sfx2/docfile.hxx>
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index dc65831465b9..56e47acad5ec 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -58,6 +58,7 @@ using namespace ::com::sun::star;
#include <svl/slstitm.hxx>
#include <unotools/securityoptions.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
+#include <sal/log.hxx>
#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx
index 5729b12f92cc..faa202a0cf62 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -30,6 +30,7 @@
#include <svx/txenctab.hxx>
#include <unotools/sharedunocomponent.hxx>
#include <rtl/tencinfo.h>
+#include <sal/log.hxx>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index 55334a317871..ed03347ebbf9 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -61,6 +61,7 @@
#include <column.hxx>
#include <com/sun/star/document/MacroExecMode.hpp>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
#include <memory>
#include <algorithm>
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 68789940b77b..b28d7522a746 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -24,6 +24,7 @@
#include <sot/formats.hxx>
#include <sfx2/mieclip.hxx>
#include <com/sun/star/i18n/CalendarFieldIndex.hpp>
+#include <sal/log.hxx>
#include <global.hxx>
#include <scerrors.hxx>
diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx
index 05093e9e3385..84551c0df9fc 100644
--- a/sc/source/ui/drawfunc/fuins1.cxx
+++ b/sc/source/ui/drawfunc/fuins1.cxx
@@ -19,6 +19,7 @@
#include <config_features.h>
+#include <sal/log.hxx>
#include <sfx2/opengrf.hxx>
#include <svx/svdograf.hxx>
#include <svx/svdomedia.hxx>
diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx
index 833ced31405e..2ea92dec0858 100644
--- a/sc/source/ui/drawfunc/fuins2.cxx
+++ b/sc/source/ui/drawfunc/fuins2.cxx
@@ -43,6 +43,7 @@
#include <sfx2/msgpool.hxx>
#include <svx/charthelper.hxx>
#include <scmod.hxx>
+#include <sal/log.hxx>
#include <cppuhelper/component_context.hxx>
#include <comphelper/processfactory.hxx>
diff --git a/sc/source/ui/miscdlgs/dataproviderdlg.cxx b/sc/source/ui/miscdlgs/dataproviderdlg.cxx
index 58414ef4ffca..0318574762c6 100644
--- a/sc/source/ui/miscdlgs/dataproviderdlg.cxx
+++ b/sc/source/ui/miscdlgs/dataproviderdlg.cxx
@@ -14,6 +14,7 @@
#include <datatransformation.hxx>
#include <comphelper/string.hxx>
+#include <sal/log.hxx>
#include <vcl/lstbox.hxx>
@@ -998,4 +999,4 @@ IMPL_LINK_NOARG(ScColumnTextTransformation, DeleteHdl, Button*, void)
maDeleteTransformation(maIndex);
}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/miscdlgs/datatableview.cxx b/sc/source/ui/miscdlgs/datatableview.cxx
index 76fea1d92650..05dacaf2e2a8 100644
--- a/sc/source/ui/miscdlgs/datatableview.cxx
+++ b/sc/source/ui/miscdlgs/datatableview.cxx
@@ -26,6 +26,7 @@
#include <table.hxx>
#include <vcl/builderfactory.hxx>
+#include <sal/log.hxx>
constexpr double nPPTX = 0.06666;
constexpr double nPPTY = 0.06666;
diff --git a/sc/source/ui/miscdlgs/solverutil.cxx b/sc/source/ui/miscdlgs/solverutil.cxx
index f1ac4464b66e..64a982598815 100644
--- a/sc/source/ui/miscdlgs/solverutil.cxx
+++ b/sc/source/ui/miscdlgs/solverutil.cxx
@@ -29,6 +29,7 @@
#include <osl/diagnose.h>
#include <comphelper/processfactory.hxx>
+#include <sal/log.hxx>
using namespace com::sun::star;
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 08c51ae97c4b..9d811e341c50 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -33,6 +33,7 @@
#include <svtools/svlbitm.hxx>
#include <svtools/treelistentry.hxx>
#include <stdlib.h>
+#include <sal/log.hxx>
#include <content.hxx>
#include <navipi.hxx>
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx
index 46d94e7d751d..d43b585c78fe 100644
--- a/sc/source/ui/pagedlg/scuitphfedit.cxx
+++ b/sc/source/ui/pagedlg/scuitphfedit.cxx
@@ -30,6 +30,7 @@
#include <sfx2/objsh.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
+#include <sal/log.hxx>
#include <unotools/useroptions.hxx>
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx
index c38c250db09c..3bbb587ce659 100644
--- a/sc/source/ui/uitest/uiobject.cxx
+++ b/sc/source/ui/uitest/uiobject.cxx
@@ -22,6 +22,7 @@
#include <svx/svdobj.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdoole2.hxx>
+#include <sal/log.hxx>
namespace {
diff --git a/sc/source/ui/unoobj/PivotTableDataSequence.cxx b/sc/source/ui/unoobj/PivotTableDataSequence.cxx
index 7cfc609c6512..dd7cd0297d2f 100644
--- a/sc/source/ui/unoobj/PivotTableDataSequence.cxx
+++ b/sc/source/ui/unoobj/PivotTableDataSequence.cxx
@@ -11,6 +11,7 @@
#include <PivotTableDataSequence.hxx>
#include <sal/config.h>
+#include <sal/log.hxx>
#include <miscuno.hxx>
#include <document.hxx>
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 6231038418bb..0ceb4de7b766 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -19,6 +19,7 @@
#include <memory>
#include <sal/config.h>
+#include <sal/log.hxx>
#include <algorithm>
#include <utility>
diff --git a/sc/source/ui/unoobj/condformatuno.cxx b/sc/source/ui/unoobj/condformatuno.cxx
index 4f1a5e4f0baa..25647bc747b0 100644
--- a/sc/source/ui/unoobj/condformatuno.cxx
+++ b/sc/source/ui/unoobj/condformatuno.cxx
@@ -23,6 +23,7 @@
#include <vcl/svapp.hxx>
#include <rtl/ustring.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/sheet/DataBarAxis.hpp>
#include <com/sun/star/sheet/IconSetType.hpp>
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index fdbb58bc7d5b..7c1f78aad522 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -22,6 +22,7 @@
#include <svl/hint.hxx>
#include <vcl/svapp.hxx>
+#include <sal/log.hxx>
#include <dapiuno.hxx>
#include <datauno.hxx>
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 06a5d3e122d7..464e9b3fcf77 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -50,6 +50,7 @@
#include <tools/multisel.hxx>
#include <toolkit/awt/vclxdevice.hxx>
#include <unotools/saveopt.hxx>
+#include <sal/log.hxx>
#include <float.h>
diff --git a/sc/source/ui/unoobj/exceldetect.cxx b/sc/source/ui/unoobj/exceldetect.cxx
index b4b6d4d85b06..474c9ce96548 100644
--- a/sc/source/ui/unoobj/exceldetect.cxx
+++ b/sc/source/ui/unoobj/exceldetect.cxx
@@ -20,6 +20,7 @@
#include <sfx2/sfxsids.hrc>
#include <unotools/mediadescriptor.hxx>
#include <sot/storage.hxx>
+#include <sal/log.hxx>
using namespace com::sun::star;
using utl::MediaDescriptor;
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index 9bf082c2b184..eedb082d83ab 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -19,6 +19,7 @@
#include <memory>
#include <sal/config.h>
+#include <sal/log.hxx>
#include <scitems.hxx>
#include <editeng/eeitem.hxx>
diff --git a/sc/source/ui/unoobj/tokenuno.cxx b/sc/source/ui/unoobj/tokenuno.cxx
index 5419c1b40833..d8df0b439ec6 100644
--- a/sc/source/ui/unoobj/tokenuno.cxx
+++ b/sc/source/ui/unoobj/tokenuno.cxx
@@ -21,6 +21,7 @@
#include <tokenuno.hxx>
#include <sal/macros.h>
+#include <sal/log.hxx>
#include <com/sun/star/sheet/ComplexReference.hpp>
#include <com/sun/star/sheet/ExternalReference.hpp>
diff --git a/sc/source/ui/vba/vbacomment.cxx b/sc/source/ui/vba/vbacomment.cxx
index b27e73a34733..0d1e2fb73d11 100644
--- a/sc/source/ui/vba/vbacomment.cxx
+++ b/sc/source/ui/vba/vbacomment.cxx
@@ -32,6 +32,7 @@
#include <ooo/vba/office/MsoShapeType.hpp>
#include <vbahelper/vbashape.hxx>
+#include <sal/log.hxx>
#include "vbaglobals.hxx"
#include "vbacomments.hxx"
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 4eceac5ed1b3..04e92c3c314a 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -25,6 +25,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <o3tl/any.hxx>
#include <sfx2/objsh.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/script/ArrayWrapper.hpp>
#include <com/sun/star/script/XTypeConverter.hpp>
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index 5a123aecd2e6..caf786900f96 100644
--- a/sc/source/ui/view/drawvie4.cxx
+++ b/sc/source/ui/view/drawvie4.cxx
@@ -26,6 +26,7 @@
#include <sfx2/docfile.hxx>
#include <tools/urlobj.hxx>
#include <toolkit/helper/vclunohelper.hxx>
+#include <sal/log.hxx>
#include <drawview.hxx>
#include <global.hxx>
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index 8f4bf0e0742e..555fdb4a1b0b 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -56,6 +56,7 @@
#include <editeng/shaditem.hxx>
#include <editeng/justifyitem.hxx>
#include <editeng/fhgtitem.hxx>
+#include <sal/log.hxx>
#include <formatsh.hxx>
#include <sc.hrc>
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index 3d70370187c9..3424d90f7c27 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -41,6 +41,7 @@
#include <vcl/gradient.hxx>
#include <vcl/settings.hxx>
#include <svx/unoapi.hxx>
+#include <sal/log.hxx>
#include <output.hxx>
#include <document.hxx>
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 58992589d93e..812975966ab2 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -54,6 +54,7 @@
#include <vcl/pdfextoutdevdata.hxx>
#include <vcl/settings.hxx>
#include <o3tl/make_unique.hxx>
+#include <sal/log.hxx>
#include <output.hxx>
#include <document.hxx>
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index d6a21853e616..764aa050debf 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -24,6 +24,7 @@
#include <sfx2/bindings.hxx>
#include <vcl/help.hxx>
#include <vcl/settings.hxx>
+#include <sal/log.hxx>
#include <pagedata.hxx>
#include <tabview.hxx>
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index fe4292c7d4e3..cdcd17fdea5e 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -32,6 +32,7 @@
#include <vcl/cursor.hxx>
#include <vcl/uitest/logger.hxx>
#include <vcl/uitest/eventdescription.hxx>
+#include <sal/log.hxx>
#include <tabview.hxx>
#include <tabvwsh.hxx>
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index 9fa70ff0ed0f..342a84755220 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -49,6 +49,7 @@
#include <unotools/moduleoptions.hxx>
#include <sot/exchange.hxx>
#include <tools/diagnose_ex.h>
+#include <sal/log.hxx>
#include <tabvwsh.hxx>
#include <scmod.hxx>
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 1d215f1a2908..d6ac02c82650 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -34,6 +34,7 @@
#include <vcl/svapp.hxx>
#include <rtl/math.hxx>
+#include <sal/log.hxx>
#include <sax/tools/converter.hxx>
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx
index dc94f4a31256..5cfcff798131 100644
--- a/sc/source/ui/view/viewfun6.cxx
+++ b/sc/source/ui/view/viewfun6.cxx
@@ -24,6 +24,7 @@
#include <svl/zforlist.hxx>
#include <svl/zformat.hxx>
#include <editeng/editview.hxx>
+#include <sal/log.hxx>
#include <viewfunc.hxx>
#include <detfunc.hxx>