summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-11-12 20:55:41 +0100
committerMiklos Vajna <vmiklos@collabora.com>2018-11-19 09:38:53 +0100
commit492ea7e08571e466e37f870b7642a79df55c2e92 (patch)
tree902686cce366dc110cb46d8164b22658235c575e /sw
parent50e644253f78ab002f180fb8e82ca181b95cb7ff (diff)
tdf#42949 Fix IWYU warnings in include/vcl/[ab]*
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: If18c80fc64e55d797953e24e40e5d5e62bd9c625 Reviewed-on: https://gerrit.libreoffice.org/63453 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/SwNumberTree/SwNodeNum.cxx1
-rw-r--r--sw/source/core/attr/swatrset.cxx1
-rw-r--r--sw/source/core/doc/DocumentListsManager.cxx1
-rw-r--r--sw/source/core/doc/DocumentStylePoolManager.cxx1
-rw-r--r--sw/source/core/doc/acmplwrd.cxx1
-rw-r--r--sw/source/core/doc/dbgoutsw.cxx1
-rw-r--r--sw/source/core/doc/doccomp.cxx1
-rw-r--r--sw/source/core/doc/docglbl.cxx1
-rw-r--r--sw/source/core/doc/docsort.cxx1
-rw-r--r--sw/source/core/doc/fmtcol.cxx1
-rw-r--r--sw/source/core/doc/number.cxx1
-rw-r--r--sw/source/core/doc/swstylemanager.cxx1
-rw-r--r--sw/source/core/docnode/ndcopy.cxx1
-rw-r--r--sw/source/core/docnode/ndnum.cxx1
-rw-r--r--sw/source/core/fields/ddetbl.cxx1
-rw-r--r--sw/source/core/fields/macrofld.cxx1
-rw-r--r--sw/source/core/graphic/grfatr.cxx1
-rw-r--r--sw/source/core/swg/SwXMLTextBlocks1.cxx1
-rw-r--r--sw/source/core/swg/swblocks.cxx1
-rw-r--r--sw/source/core/tox/tox.cxx1
-rw-r--r--sw/source/core/txtnode/fmtatr2.cxx1
-rw-r--r--sw/source/core/txtnode/txtatr2.cxx1
-rw-r--r--sw/source/core/undo/SwUndoField.cxx1
-rw-r--r--sw/source/core/undo/SwUndoPageDesc.cxx1
-rw-r--r--sw/source/core/undo/unnum.cxx1
-rw-r--r--sw/source/core/undo/unspnd.cxx1
-rw-r--r--sw/source/core/unocore/SwXTextDefaults.cxx1
-rw-r--r--sw/source/core/unocore/unoparagraph.cxx1
-rw-r--r--sw/source/core/unocore/unoredlines.cxx1
-rw-r--r--sw/source/core/unocore/unosect.cxx1
-rw-r--r--sw/source/core/unocore/unosrch.cxx1
-rw-r--r--sw/source/filter/ascii/parasc.cxx1
-rw-r--r--sw/source/filter/basflt/fltini.cxx1
-rw-r--r--sw/source/filter/basflt/fltshell.cxx1
-rw-r--r--sw/source/filter/html/htmlatr.cxx2
-rw-r--r--sw/source/filter/html/htmlbas.cxx1
-rw-r--r--sw/source/filter/html/htmlcss1.cxx1
-rw-r--r--sw/source/filter/html/htmlctxt.cxx1
-rw-r--r--sw/source/filter/html/htmlfld.cxx1
-rw-r--r--sw/source/filter/html/htmlfldw.cxx1
-rw-r--r--sw/source/filter/html/htmlfly.cxx1
-rw-r--r--sw/source/filter/html/htmlftn.cxx1
-rw-r--r--sw/source/filter/html/htmlgrin.cxx1
-rw-r--r--sw/source/filter/html/htmlnumreader.cxx1
-rw-r--r--sw/source/filter/html/htmlnumwriter.cxx1
-rw-r--r--sw/source/filter/html/htmlsect.cxx1
-rw-r--r--sw/source/filter/html/htmltabw.cxx1
-rw-r--r--sw/source/filter/html/svxcss1.cxx1
-rw-r--r--sw/source/filter/writer/writer.cxx1
-rw-r--r--sw/source/filter/writer/wrt_fn.cxx1
-rw-r--r--sw/source/filter/writer/wrtswtbl.cxx1
-rw-r--r--sw/source/filter/ww8/needed_cast.hxx2
-rw-r--r--sw/source/filter/xml/xmlexpit.cxx1
-rw-r--r--sw/source/filter/xml/xmlimpit.cxx1
-rw-r--r--sw/source/filter/xml/xmlitemi.cxx1
-rw-r--r--sw/source/filter/xml/xmlmeta.cxx1
-rw-r--r--sw/source/ui/dbui/createaddresslistdialog.cxx1
-rw-r--r--sw/source/ui/dbui/selectdbtabledialog.cxx1
-rw-r--r--sw/source/ui/misc/glosbib.cxx1
-rw-r--r--sw/source/uibase/config/usrpref.cxx1
-rw-r--r--sw/source/uibase/envelp/envimg.cxx1
-rw-r--r--sw/source/uibase/envelp/labelcfg.cxx1
-rw-r--r--sw/source/uibase/envelp/labimg.cxx1
-rw-r--r--sw/source/uibase/globdoc/globdoc.cxx1
-rw-r--r--sw/source/uibase/misc/numberingtypelistbox.cxx1
-rw-r--r--sw/source/uibase/utlui/uiitems.cxx1
-rw-r--r--sw/source/uibase/web/wdocsh.cxx1
67 files changed, 69 insertions, 0 deletions
diff --git a/sw/source/core/SwNumberTree/SwNodeNum.cxx b/sw/source/core/SwNumberTree/SwNodeNum.cxx
index c87759ad97a7..cc0c4732940e 100644
--- a/sw/source/core/SwNumberTree/SwNodeNum.cxx
+++ b/sw/source/core/SwNumberTree/SwNodeNum.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <osl/diagnose.h>
#include <editeng/svxenum.hxx>
#include <svl/stritem.hxx>
#include <svl/intitem.hxx>
diff --git a/sw/source/core/attr/swatrset.cxx b/sw/source/core/attr/swatrset.cxx
index 865907a172a9..51166259b046 100644
--- a/sw/source/core/attr/swatrset.cxx
+++ b/sw/source/core/attr/swatrset.cxx
@@ -38,6 +38,7 @@
#include <numrule.hxx>
#include <pagedesc.hxx>
#include <paratr.hxx>
+#include <osl/diagnose.h>
#include <svl/whiter.hxx>
#include <svx/xtable.hxx>
diff --git a/sw/source/core/doc/DocumentListsManager.cxx b/sw/source/core/doc/DocumentListsManager.cxx
index df335c2d6d9e..38efc60084a7 100644
--- a/sw/source/core/doc/DocumentListsManager.cxx
+++ b/sw/source/core/doc/DocumentListsManager.cxx
@@ -22,6 +22,7 @@
#include <numrule.hxx>
#include <comphelper/random.hxx>
+#include <osl/diagnose.h>
#include <vector>
diff --git a/sw/source/core/doc/DocumentStylePoolManager.cxx b/sw/source/core/doc/DocumentStylePoolManager.cxx
index 09d457056a05..626578f2ad14 100644
--- a/sw/source/core/doc/DocumentStylePoolManager.cxx
+++ b/sw/source/core/doc/DocumentStylePoolManager.cxx
@@ -62,6 +62,7 @@
#include <svx/strings.hrc>
#include <svx/dialmgr.hxx>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
#include <strings.hrc>
#include <frmatr.hxx>
#include <com/sun/star/table/BorderLineStyle.hpp>
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index b804dc578d37..521080f7a251 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.cxx
@@ -32,6 +32,7 @@
#include <calbck.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <editeng/svxacorr.hxx>
+#include <osl/diagnose.h>
#include <editeng/acorrcfg.hxx>
#include <sfx2/docfile.hxx>
diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx
index 9bd9ab22ef08..f1e912b5b1ab 100644
--- a/sw/source/core/doc/dbgoutsw.cxx
+++ b/sw/source/core/doc/dbgoutsw.cxx
@@ -19,6 +19,7 @@
#ifdef DBG_UTIL
+#include <osl/diagnose.h>
#include <rtl/ustring.hxx>
#include <svl/poolitem.hxx>
#include <svl/itemiter.hxx>
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index 7d6e880c605a..86a8e4cfe76d 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <osl/diagnose.h>
#include <hintids.hxx>
#include <rtl/character.hxx>
#include <vcl/vclenum.hxx>
diff --git a/sw/source/core/doc/docglbl.cxx b/sw/source/core/doc/docglbl.cxx
index 4845ed486497..5b60d9056aaf 100644
--- a/sw/source/core/doc/docglbl.cxx
+++ b/sw/source/core/doc/docglbl.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <osl/diagnose.h>
#include <hintids.hxx>
#include <unotools/tempfile.hxx>
#include <svl/urihelper.hxx>
diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx
index e78977830d06..8cf91b73427f 100644
--- a/sw/source/core/doc/docsort.cxx
+++ b/sw/source/core/doc/docsort.cxx
@@ -20,6 +20,7 @@
#include <hintids.hxx>
#include <o3tl/make_unique.hxx>
#include <rtl/math.hxx>
+#include <osl/diagnose.h>
#include <unotools/collatorwrapper.hxx>
#include <unotools/localedatawrapper.hxx>
#include <comphelper/processfactory.hxx>
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index 4810980cf551..2fd4585ec7e7 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.cxx
@@ -21,6 +21,7 @@
#include <libxml/xmlwriter.h>
#include <sal/macros.h>
+#include <osl/diagnose.h>
#include <hintids.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/lrspitem.hxx>
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx
index 50c2ebb3793c..dd44e1ec29d9 100644
--- a/sw/source/core/doc/number.cxx
+++ b/sw/source/core/doc/number.cxx
@@ -51,6 +51,7 @@
#include <libxml/xmlwriter.h>
#include <unotools/saveopt.hxx>
+#include <osl/diagnose.h>
#include <IDocumentListsAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
diff --git a/sw/source/core/doc/swstylemanager.cxx b/sw/source/core/doc/swstylemanager.cxx
index 0bef02b0ae08..6a4a49a2da56 100644
--- a/sw/source/core/doc/swstylemanager.cxx
+++ b/sw/source/core/doc/swstylemanager.cxx
@@ -26,6 +26,7 @@
#include <istyleaccess.hxx>
#include <unordered_map>
#include <o3tl/make_unique.hxx>
+#include <osl/diagnose.h>
typedef std::unordered_map< OUString,
std::shared_ptr<SfxItemSet> > SwStyleNameCache;
diff --git a/sw/source/core/docnode/ndcopy.cxx b/sw/source/core/docnode/ndcopy.cxx
index 4088485a4964..1331c4e5b8a1 100644
--- a/sw/source/core/docnode/ndcopy.cxx
+++ b/sw/source/core/docnode/ndcopy.cxx
@@ -30,6 +30,7 @@
#include <vcl/fmtfield.hxx>
#include <ndindex.hxx>
#include <vector>
+#include <osl/diagnose.h>
#ifdef DBG_UTIL
diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx
index c65986e9145f..c343e022ec2f 100644
--- a/sw/source/core/docnode/ndnum.cxx
+++ b/sw/source/core/docnode/ndnum.cxx
@@ -24,6 +24,7 @@
#include <ndtxt.hxx>
#include <fldbas.hxx>
#include <docary.hxx>
+#include <osl/diagnose.h>
bool CompareSwOutlineNodes::operator()( SwNode* const& lhs, SwNode* const& rhs) const
{
diff --git a/sw/source/core/fields/ddetbl.cxx b/sw/source/core/fields/ddetbl.cxx
index f4abfdb55557..d42b387cb44e 100644
--- a/sw/source/core/fields/ddetbl.cxx
+++ b/sw/source/core/fields/ddetbl.cxx
@@ -31,6 +31,7 @@
#include <fldupde.hxx>
#include <swtblfmt.hxx>
#include <fieldhint.hxx>
+#include <osl/diagnose.h>
/// Ctor moves all lines/boxes from a SwTable into itself.
/// Afterwards the SwTable is empty and must be deleted.
diff --git a/sw/source/core/fields/macrofld.cxx b/sw/source/core/fields/macrofld.cxx
index 705165115ffa..7785717b92c8 100644
--- a/sw/source/core/fields/macrofld.cxx
+++ b/sw/source/core/fields/macrofld.cxx
@@ -25,6 +25,7 @@
#include <com/sun/star/uri/XVndSunStarScriptUrl.hpp>
#include <comphelper/processfactory.hxx>
#include <o3tl/make_unique.hxx>
+#include <osl/diagnose.h>
using namespace ::com::sun::star;
diff --git a/sw/source/core/graphic/grfatr.cxx b/sw/source/core/graphic/grfatr.cxx
index 4b73f2e078c2..a2ac38c150a6 100644
--- a/sw/source/core/graphic/grfatr.cxx
+++ b/sw/source/core/graphic/grfatr.cxx
@@ -23,6 +23,7 @@
#include <swtypes.hxx>
#include <grfatr.hxx>
#include <swunohelper.hxx>
+#include <osl/diagnose.h>
#include <cmdid.h>
#include <unomid.h>
diff --git a/sw/source/core/swg/SwXMLTextBlocks1.cxx b/sw/source/core/swg/SwXMLTextBlocks1.cxx
index 18e7d95970f2..247cab4e6b21 100644
--- a/sw/source/core/swg/SwXMLTextBlocks1.cxx
+++ b/sw/source/core/swg/SwXMLTextBlocks1.cxx
@@ -19,6 +19,7 @@
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
+#include <osl/diagnose.h>
#include <svl/macitem.hxx>
#include <svtools/unoevent.hxx>
#include <sfx2/docfile.hxx>
diff --git a/sw/source/core/swg/swblocks.cxx b/sw/source/core/swg/swblocks.cxx
index b5b3513395e7..d04f2b053205 100644
--- a/sw/source/core/swg/swblocks.cxx
+++ b/sw/source/core/swg/swblocks.cxx
@@ -19,6 +19,7 @@
#include <algorithm>
+#include <osl/diagnose.h>
#include <sfx2/docfilt.hxx>
#include <sot/storage.hxx>
#include <tools/urlobj.hxx>
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index 0a653db9d137..5219bbb3f551 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -35,6 +35,7 @@
#include <boost/optional.hpp>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
#include <algorithm>
diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx
index 534425993cdc..3550c1d1ddea 100644
--- a/sw/source/core/txtnode/fmtatr2.cxx
+++ b/sw/source/core/txtnode/fmtatr2.cxx
@@ -51,6 +51,7 @@
#include <unometa.hxx>
#include <docsh.hxx>
#include <svl/zforlist.hxx>
+#include <osl/diagnose.h>
#include <algorithm>
diff --git a/sw/source/core/txtnode/txtatr2.cxx b/sw/source/core/txtnode/txtatr2.cxx
index ea924809a705..07d6747f6470 100644
--- a/sw/source/core/txtnode/txtatr2.cxx
+++ b/sw/source/core/txtnode/txtatr2.cxx
@@ -19,6 +19,7 @@
#include <hintids.hxx>
#include <hints.hxx>
+#include <osl/diagnose.h>
#include <sfx2/objsh.hxx>
#include <editeng/xmlcnitm.hxx>
#include <editeng/twolinesitem.hxx>
diff --git a/sw/source/core/undo/SwUndoField.cxx b/sw/source/core/undo/SwUndoField.cxx
index 1724baec70d7..fabc4f8e1380 100644
--- a/sw/source/core/undo/SwUndoField.cxx
+++ b/sw/source/core/undo/SwUndoField.cxx
@@ -30,6 +30,7 @@
#include <dbfld.hxx>
#include <docsh.hxx>
#include <pam.hxx>
+#include <osl/diagnose.h>
using namespace ::com::sun::star::uno;
diff --git a/sw/source/core/undo/SwUndoPageDesc.cxx b/sw/source/core/undo/SwUndoPageDesc.cxx
index 01bebbe2de95..9822c2d115cf 100644
--- a/sw/source/core/undo/SwUndoPageDesc.cxx
+++ b/sw/source/core/undo/SwUndoPageDesc.cxx
@@ -27,6 +27,7 @@
#include <strings.hrc>
#include <fmtcntnt.hxx>
#include <fmthdft.hxx>
+#include <osl/diagnose.h>
SwUndoPageDesc::SwUndoPageDesc(const SwPageDesc & _aOld,
const SwPageDesc & _aNew,
diff --git a/sw/source/core/undo/unnum.cxx b/sw/source/core/undo/unnum.cxx
index 480c9008f0bf..958f55139f16 100644
--- a/sw/source/core/undo/unnum.cxx
+++ b/sw/source/core/undo/unnum.cxx
@@ -27,6 +27,7 @@
#include <ndtxt.hxx>
#include <UndoCore.hxx>
#include <rolbck.hxx>
+#include <osl/diagnose.h>
SwUndoInsNum::SwUndoInsNum( const SwNumRule& rOldRule,
const SwNumRule& rNewRule,
diff --git a/sw/source/core/undo/unspnd.cxx b/sw/source/core/undo/unspnd.cxx
index 8edbc9910c2c..cab7026483d6 100644
--- a/sw/source/core/undo/unspnd.cxx
+++ b/sw/source/core/undo/unspnd.cxx
@@ -32,6 +32,7 @@
#include <redline.hxx>
#include <docary.hxx>
#include <IShellCursorSupplier.hxx>
+#include <osl/diagnose.h>
// SPLITNODE
diff --git a/sw/source/core/unocore/SwXTextDefaults.cxx b/sw/source/core/unocore/SwXTextDefaults.cxx
index 82ef158a418d..5f094afb3092 100644
--- a/sw/source/core/unocore/SwXTextDefaults.cxx
+++ b/sw/source/core/unocore/SwXTextDefaults.cxx
@@ -20,6 +20,7 @@
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <vcl/svapp.hxx>
+#include <osl/diagnose.h>
#include <SwXTextDefaults.hxx>
#include <SwStyleNameMapper.hxx>
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx
index f4112d3e48c0..c80adc0a0d72 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -22,6 +22,7 @@
#include <comphelper/interfacecontainer2.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
+#include <osl/diagnose.h>
#include <cmdid.h>
#include <unomid.h>
diff --git a/sw/source/core/unocore/unoredlines.cxx b/sw/source/core/unocore/unoredlines.cxx
index 0f5b5d8a0d4b..5038d261729b 100644
--- a/sw/source/core/unocore/unoredlines.cxx
+++ b/sw/source/core/unocore/unoredlines.cxx
@@ -22,6 +22,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <vcl/svapp.hxx>
+#include <osl/diagnose.h>
#include <unoredlines.hxx>
#include <unoredline.hxx>
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 3014fb905259..661157edd083 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -37,6 +37,7 @@
#include <sfx2/linkmgr.hxx>
#include <sfx2/lnkbase.hxx>
#include <osl/mutex.hxx>
+#include <osl/diagnose.h>
#include <vcl/svapp.hxx>
#include <fmtclds.hxx>
#include <unotextrange.hxx>
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx
index 87f342d231d2..6e11a89aef8a 100644
--- a/sw/source/core/unocore/unosrch.cxx
+++ b/sw/source/core/unocore/unosrch.cxx
@@ -25,6 +25,7 @@
#include <unomid.h>
#include <fchrfmt.hxx>
+#include <osl/diagnose.h>
#include <i18nutil/searchopt.hxx>
#include <o3tl/any.hxx>
#include <vcl/svapp.hxx>
diff --git a/sw/source/filter/ascii/parasc.cxx b/sw/source/filter/ascii/parasc.cxx
index a6b41a588aae..ef7faed07197 100644
--- a/sw/source/filter/ascii/parasc.cxx
+++ b/sw/source/filter/ascii/parasc.cxx
@@ -46,6 +46,7 @@
#include <iodetect.hxx>
#include <vcl/metric.hxx>
+#include <osl/diagnose.h>
#define ASC_BUFFLEN 4096
diff --git a/sw/source/filter/basflt/fltini.cxx b/sw/source/filter/basflt/fltini.cxx
index ac001af12e29..4db87558ecb9 100644
--- a/sw/source/filter/basflt/fltini.cxx
+++ b/sw/source/filter/basflt/fltini.cxx
@@ -56,6 +56,7 @@
#include <osl/module.hxx>
#include <rtl/bootstrap.hxx>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
using namespace utl;
using namespace com::sun::star::uno;
diff --git a/sw/source/filter/basflt/fltshell.cxx b/sw/source/filter/basflt/fltshell.cxx
index 8b219d2b60b3..30109e940402 100644
--- a/sw/source/filter/basflt/fltshell.cxx
+++ b/sw/source/filter/basflt/fltshell.cxx
@@ -20,6 +20,7 @@
#include <memory>
#include <sal/config.h>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
#include <cstddef>
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index 426e3c9c8d72..2edf9a57c5fe 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -78,6 +78,8 @@
#include <numrule.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/character.hxx>
+#include <osl/diagnose.h>
+#include <deque>
#include <svtools/HtmlWriter.hxx>
diff --git a/sw/source/filter/html/htmlbas.cxx b/sw/source/filter/html/htmlbas.cxx
index 4a20f7dd68ca..158884433ab1 100644
--- a/sw/source/filter/html/htmlbas.cxx
+++ b/sw/source/filter/html/htmlbas.cxx
@@ -21,6 +21,7 @@
#include <hintids.hxx>
#include <comphelper/string.hxx>
+#include <osl/diagnose.h>
#include <rtl/strbuf.hxx>
#include <basic/sbx.hxx>
#include <basic/basmgr.hxx>
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index ded8ff86c16b..26b6d2d370fe 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -46,6 +46,7 @@
#include <charfmt.hxx>
#include <docary.hxx>
#include <svx/svxids.hrc>
+#include <osl/diagnose.h>
#include <doc.hxx>
#include <IDocumentStylePoolAccess.hxx>
diff --git a/sw/source/filter/html/htmlctxt.cxx b/sw/source/filter/html/htmlctxt.cxx
index 8ad9815902ce..ff200babd3b7 100644
--- a/sw/source/filter/html/htmlctxt.cxx
+++ b/sw/source/filter/html/htmlctxt.cxx
@@ -26,6 +26,7 @@
#include <editeng/fhgtitem.hxx>
#include <svtools/htmltokn.h>
#include <editeng/boxitem.hxx>
+#include <osl/diagnose.h>
#include <doc.hxx>
#include <pam.hxx>
diff --git a/sw/source/filter/html/htmlfld.cxx b/sw/source/filter/html/htmlfld.cxx
index 9498ca1ffbc8..da9211de08dc 100644
--- a/sw/source/filter/html/htmlfld.cxx
+++ b/sw/source/filter/html/htmlfld.cxx
@@ -20,6 +20,7 @@
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
+#include <osl/diagnose.h>
#include <docsh.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <svtools/htmltokn.h>
diff --git a/sw/source/filter/html/htmlfldw.cxx b/sw/source/filter/html/htmlfldw.cxx
index 4c5911e72090..24eb6bdfa4c4 100644
--- a/sw/source/filter/html/htmlfldw.cxx
+++ b/sw/source/filter/html/htmlfldw.cxx
@@ -23,6 +23,7 @@
#include <svtools/htmlkywd.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/htmltokn.h>
+#include <osl/diagnose.h>
#include <fmtfld.hxx>
#include <doc.hxx>
#include <breakit.hxx>
diff --git a/sw/source/filter/html/htmlfly.cxx b/sw/source/filter/html/htmlfly.cxx
index 80d6be5338a7..8546e8d01721 100644
--- a/sw/source/filter/html/htmlfly.cxx
+++ b/sw/source/filter/html/htmlfly.cxx
@@ -34,6 +34,7 @@
#include <frmfmt.hxx>
#include <ndindex.hxx>
#include <pam.hxx>
+#include <osl/diagnose.h>
using namespace css;
diff --git a/sw/source/filter/html/htmlftn.cxx b/sw/source/filter/html/htmlftn.cxx
index 6319ea9663bf..cfab31225bc6 100644
--- a/sw/source/filter/html/htmlftn.cxx
+++ b/sw/source/filter/html/htmlftn.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <osl/diagnose.h>
#include <svtools/htmlout.hxx>
#include <svtools/htmlkywd.hxx>
#include <rtl/strbuf.hxx>
diff --git a/sw/source/filter/html/htmlgrin.cxx b/sw/source/filter/html/htmlgrin.cxx
index 3565f9115861..9527271c2f11 100644
--- a/sw/source/filter/html/htmlgrin.cxx
+++ b/sw/source/filter/html/htmlgrin.cxx
@@ -42,6 +42,7 @@
#include <svtools/htmlkywd.hxx>
#include <unotools/eventcfg.hxx>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
#include <fmtornt.hxx>
#include <fmturl.hxx>
diff --git a/sw/source/filter/html/htmlnumreader.cxx b/sw/source/filter/html/htmlnumreader.cxx
index 8584297f2b70..81df21aad9be 100644
--- a/sw/source/filter/html/htmlnumreader.cxx
+++ b/sw/source/filter/html/htmlnumreader.cxx
@@ -28,6 +28,7 @@
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
#include <numrule.hxx>
#include <doc.hxx>
#include <docary.hxx>
diff --git a/sw/source/filter/html/htmlnumwriter.cxx b/sw/source/filter/html/htmlnumwriter.cxx
index bd0d2dadab8b..c4fd8ea9bdf7 100644
--- a/sw/source/filter/html/htmlnumwriter.cxx
+++ b/sw/source/filter/html/htmlnumwriter.cxx
@@ -40,6 +40,7 @@
#include <SwNodeNum.hxx>
#include <rtl/strbuf.hxx>
+#include <osl/diagnose.h>
using namespace css;
diff --git a/sw/source/filter/html/htmlsect.cxx b/sw/source/filter/html/htmlsect.cxx
index b084a27d41c7..5ce635e6aa7c 100644
--- a/sw/source/filter/html/htmlsect.cxx
+++ b/sw/source/filter/html/htmlsect.cxx
@@ -28,6 +28,7 @@
#include <svtools/htmltokn.h>
#include <svtools/htmlkywd.hxx>
#include <sfx2/linkmgr.hxx>
+#include <osl/diagnose.h>
#include <hintids.hxx>
#include <fmtornt.hxx>
diff --git a/sw/source/filter/html/htmltabw.cxx b/sw/source/filter/html/htmltabw.cxx
index 600d27c5dc72..d0dd6ca84bfb 100644
--- a/sw/source/filter/html/htmltabw.cxx
+++ b/sw/source/filter/html/htmltabw.cxx
@@ -50,6 +50,7 @@
#endif
#include <rtl/strbuf.hxx>
#include <sal/types.h>
+#include <osl/diagnose.h>
#define MAX_DEPTH (3)
diff --git a/sw/source/filter/html/svxcss1.cxx b/sw/source/filter/html/svxcss1.cxx
index f6b0bc289673..ba523eb0d207 100644
--- a/sw/source/filter/html/svxcss1.cxx
+++ b/sw/source/filter/html/svxcss1.cxx
@@ -53,6 +53,7 @@
#include <vcl/wrkwin.hxx>
#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
#include "css1kywd.hxx"
#include "svxcss1.hxx"
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx
index 05d72841b81e..afd16a3e708f 100644
--- a/sw/source/filter/writer/writer.cxx
+++ b/sw/source/filter/writer/writer.cxx
@@ -28,6 +28,7 @@
#include <editeng/eeitem.hxx>
#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
#include <shellio.hxx>
#include <doc.hxx>
#include <docary.hxx>
diff --git a/sw/source/filter/writer/wrt_fn.cxx b/sw/source/filter/writer/wrt_fn.cxx
index 9f06edcceeb1..b0cbff4212f3 100644
--- a/sw/source/filter/writer/wrt_fn.cxx
+++ b/sw/source/filter/writer/wrt_fn.cxx
@@ -19,6 +19,7 @@
#include <svl/itemiter.hxx>
#include <svl/whiter.hxx>
+#include <osl/diagnose.h>
// tdf#94088 SdrAllFillAttributesHelper needed
#include <svx/unobrushitemhelper.hxx>
diff --git a/sw/source/filter/writer/wrtswtbl.cxx b/sw/source/filter/writer/wrtswtbl.cxx
index f0d42826a9df..55aaa3349d02 100644
--- a/sw/source/filter/writer/wrtswtbl.cxx
+++ b/sw/source/filter/writer/wrtswtbl.cxx
@@ -23,6 +23,7 @@
#include <editeng/brushitem.hxx>
#include <tools/fract.hxx>
#include <sal/log.hxx>
+#include <osl/diagnose.h>
#include <wrtswtbl.hxx>
#include <swtable.hxx>
#include <frmfmt.hxx>
diff --git a/sw/source/filter/ww8/needed_cast.hxx b/sw/source/filter/ww8/needed_cast.hxx
index a7a6a045d758..1fe7ca091e76 100644
--- a/sw/source/filter/ww8/needed_cast.hxx
+++ b/sw/source/filter/ww8/needed_cast.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_NEEDED_CAST_HXX
#define INCLUDED_SW_SOURCE_FILTER_WW8_NEEDED_CAST_HXX
+#include <osl/diagnose.h>
+
namespace ww
{
template<typename Ret, typename Param> Ret checking_cast(Param in, Ret)
diff --git a/sw/source/filter/xml/xmlexpit.cxx b/sw/source/filter/xml/xmlexpit.cxx
index 6daec44d8e37..b04d8f085e13 100644
--- a/sw/source/filter/xml/xmlexpit.cxx
+++ b/sw/source/filter/xml/xmlexpit.cxx
@@ -19,6 +19,7 @@
#include "xmlexpit.hxx"
+#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
#include <sax/tools/converter.hxx>
#include <svl/itempool.hxx>
diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx
index 578d07d0face..184a6e6194f1 100644
--- a/sw/source/filter/xml/xmlimpit.cxx
+++ b/sw/source/filter/xml/xmlimpit.cxx
@@ -30,6 +30,7 @@
#include <xmloff/xmlnmspe.hxx>
#include <editeng/xmlcnitm.hxx>
#include <editeng/memberids.h>
+#include <osl/diagnose.h>
#include <hintids.hxx>
#include <unomid.h>
diff --git a/sw/source/filter/xml/xmlitemi.cxx b/sw/source/filter/xml/xmlitemi.cxx
index 1e1c5f3a9672..68e7ca2f47d7 100644
--- a/sw/source/filter/xml/xmlitemi.cxx
+++ b/sw/source/filter/xml/xmlitemi.cxx
@@ -18,6 +18,7 @@
*/
#include <rtl/ustring.hxx>
+#include <osl/diagnose.h>
#include <com/sun/star/util/MeasureUnit.hpp>
diff --git a/sw/source/filter/xml/xmlmeta.cxx b/sw/source/filter/xml/xmlmeta.cxx
index 360f0c918c2c..350e9d088535 100644
--- a/sw/source/filter/xml/xmlmeta.cxx
+++ b/sw/source/filter/xml/xmlmeta.cxx
@@ -19,6 +19,7 @@
#include <hintids.hxx>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
+#include <osl/diagnose.h>
#include <xmloff/xmlnmspe.hxx>
#include <xmloff/xmlmetai.hxx>
#include <xmloff/xmlmetae.hxx>
diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx
index 08cc3f6d897c..590d208d0d63 100644
--- a/sw/source/ui/dbui/createaddresslistdialog.cxx
+++ b/sw/source/ui/dbui/createaddresslistdialog.cxx
@@ -21,6 +21,7 @@
#include <cstddef>
+#include <osl/diagnose.h>
#include <swtypes.hxx>
#include "createaddresslistdialog.hxx"
#include "customizeaddresslistdialog.hxx"
diff --git a/sw/source/ui/dbui/selectdbtabledialog.cxx b/sw/source/ui/dbui/selectdbtabledialog.cxx
index 5573d8bb2bf9..29d8770f8585 100644
--- a/sw/source/ui/dbui/selectdbtabledialog.cxx
+++ b/sw/source/ui/dbui/selectdbtabledialog.cxx
@@ -22,6 +22,7 @@
#include "dbtablepreviewdialog.hxx"
#include <svtools/simptabl.hxx>
#include <vcl/treelistentry.hxx>
+#include <osl/diagnose.h>
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#include <com/sun/star/sdb/XQueriesSupplier.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index 5066f1eadbce..3e8d9a3f7bde 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -27,6 +27,7 @@
#include <unotools/tempfile.hxx>
#include <unotools/pathoptions.hxx>
#include <vcl/treelistentry.hxx>
+#include <osl/diagnose.h>
#include <swtypes.hxx>
#include <glosbib.hxx>
diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx
index 4b0f4be31c97..9c00526c29a3 100644
--- a/sw/source/uibase/config/usrpref.cxx
+++ b/sw/source/uibase/config/usrpref.cxx
@@ -19,6 +19,7 @@
#include <sal/config.h>
+#include <osl/diagnose.h>
#include <o3tl/any.hxx>
#include <tools/stream.hxx>
#include <unotools/configmgr.hxx>
diff --git a/sw/source/uibase/envelp/envimg.cxx b/sw/source/uibase/envelp/envimg.cxx
index 14bf687ef258..5f5305cad250 100644
--- a/sw/source/uibase/envelp/envimg.cxx
+++ b/sw/source/uibase/envelp/envimg.cxx
@@ -19,6 +19,7 @@
#include <hintids.hxx>
#include <o3tl/any.hxx>
+#include <osl/diagnose.h>
#include <tools/stream.hxx>
#include <sfx2/app.hxx>
#include <editeng/paperinf.hxx>
diff --git a/sw/source/uibase/envelp/labelcfg.cxx b/sw/source/uibase/envelp/labelcfg.cxx
index 8de5f3eb1499..f18d781fd08a 100644
--- a/sw/source/uibase/envelp/labelcfg.cxx
+++ b/sw/source/uibase/envelp/labelcfg.cxx
@@ -26,6 +26,7 @@
#include <rtl/bootstrap.hxx>
#include <unotools/configpaths.hxx>
#include <xmlreader/xmlreader.hxx>
+#include <osl/diagnose.h>
#include <unomid.h>
diff --git a/sw/source/uibase/envelp/labimg.cxx b/sw/source/uibase/envelp/labimg.cxx
index 7227172e9726..3c1e1be14732 100644
--- a/sw/source/uibase/envelp/labimg.cxx
+++ b/sw/source/uibase/envelp/labimg.cxx
@@ -21,6 +21,7 @@
#include <o3tl/any.hxx>
#include <tools/stream.hxx>
+#include <osl/diagnose.h>
#include <com/sun/star/uno/Sequence.hxx>
#include <sfx2/sfxsids.hrc>
#include <unotools/useroptions.hxx>
diff --git a/sw/source/uibase/globdoc/globdoc.cxx b/sw/source/uibase/globdoc/globdoc.cxx
index e33aa1e0c099..edbab35994b7 100644
--- a/sw/source/uibase/globdoc/globdoc.cxx
+++ b/sw/source/uibase/globdoc/globdoc.cxx
@@ -20,6 +20,7 @@
#include <comphelper/fileformat.h>
#include <comphelper/classids.hxx>
#include <unotools/moduleoptions.hxx>
+#include <osl/diagnose.h>
#include <unomid.h>
diff --git a/sw/source/uibase/misc/numberingtypelistbox.cxx b/sw/source/uibase/misc/numberingtypelistbox.cxx
index 66ec98433785..f51f735822e6 100644
--- a/sw/source/uibase/misc/numberingtypelistbox.cxx
+++ b/sw/source/uibase/misc/numberingtypelistbox.cxx
@@ -28,6 +28,7 @@
#include <editeng/numitem.hxx>
#include <svx/dialogs.hrc>
#include <svx/strarray.hxx>
+#include <osl/diagnose.h>
#include <unomid.h>
diff --git a/sw/source/uibase/utlui/uiitems.cxx b/sw/source/uibase/utlui/uiitems.cxx
index 585d48820b88..aa4746fdb26c 100644
--- a/sw/source/uibase/utlui/uiitems.cxx
+++ b/sw/source/uibase/utlui/uiitems.cxx
@@ -19,6 +19,7 @@
#include <editeng/itemtype.hxx>
#include <unosett.hxx>
+#include <osl/diagnose.h>
#include <swtypes.hxx>
#include <cmdid.h>
diff --git a/sw/source/uibase/web/wdocsh.cxx b/sw/source/uibase/web/wdocsh.cxx
index 215583d1e7a6..a36e29cebe86 100644
--- a/sw/source/uibase/web/wdocsh.cxx
+++ b/sw/source/uibase/web/wdocsh.cxx
@@ -24,6 +24,7 @@
#include <comphelper/fileformat.h>
#include <comphelper/classids.hxx>
#include <sfx2/objface.hxx>
+#include <osl/diagnose.h>
#include <sfx2/msg.hxx>
#include <cmdid.h>