sw/qa/core/test_ToxMiscTest.cxx                        |    2 --
 sw/qa/extras/accessibility/accessible_relation_set.cxx |    1 -
 sw/qa/extras/uiwriter/uiwriter6.cxx                    |    1 -
 sw/source/core/access/accpara.cxx                      |    1 -
 sw/source/core/bastyp/SwSmartTagMgr.cxx                |    1 -
 sw/source/core/crsr/crsrsh.cxx                         |    1 -
 sw/source/core/doc/docdraw.cxx                         |    1 -
 sw/source/core/doc/docedt.cxx                          |    1 -
 sw/source/core/doc/docfld.cxx                          |    2 --
 sw/source/core/doc/docfmt.cxx                          |    1 -
 sw/source/core/doc/poolfmt.cxx                         |    1 -
 sw/source/core/doc/tblrwcl.cxx                         |    1 -
 sw/source/core/edit/edtab.cxx                          |    1 -
 sw/source/core/edit/edtox.cxx                          |    1 -
 sw/source/core/fields/reffld.cxx                       |    1 -
 sw/source/core/text/txthyph.cxx                        |    1 -
 sw/source/core/txtnode/thints.cxx                      |    2 --
 sw/source/core/undo/unovwr.cxx                         |    1 -
 sw/source/filter/ww8/wrtw8esh.cxx                      |    1 -
 sw/source/filter/ww8/wrtw8num.cxx                      |    2 --
 sw/source/filter/ww8/ww8par3.cxx                       |    1 -
 sw/source/filter/xml/wrtxml.cxx                        |    1 -
 sw/source/filter/xml/xmlexp.cxx                        |    3 ---
 sw/source/filter/xml/xmlfmte.cxx                       |    3 ---
 sw/source/filter/xml/xmlfonte.cxx                      |    4 ----
 sw/source/filter/xml/xmlimp.cxx                        |    1 -
 sw/source/filter/xml/xmliteme.cxx                      |    1 -
 sw/source/filter/xml/xmlmeta.cxx                       |    3 ---
 sw/source/filter/xml/xmlscript.cxx                     |    2 --
 sw/source/filter/xml/xmltble.cxx                       |    2 --
 sw/source/filter/xml/xmltexte.cxx                      |    2 --
 sw/source/ui/chrdlg/chardlg.cxx                        |    1 -
 sw/source/ui/chrdlg/drpcps.cxx                         |    1 -
 sw/source/ui/config/mailconfigpage.cxx                 |    2 --
 sw/source/ui/config/optcomp.cxx                        |    1 -
 sw/source/ui/dbui/mailmergewizard.cxx                  |    1 -
 sw/source/ui/dbui/mmdocselectpage.cxx                  |    1 -
 sw/source/ui/dbui/mmgreetingspage.cxx                  |    1 -
 sw/source/ui/dbui/mmlayoutpage.cxx                     |    2 --
 sw/source/ui/dbui/mmresultdialogs.cxx                  |    1 -
 sw/source/ui/envelp/envlop1.cxx                        |    2 --
 sw/source/ui/envelp/labelexp.cxx                       |    1 -
 sw/source/ui/envelp/labfmt.cxx                         |    2 --
 sw/source/ui/fldui/changedb.cxx                        |    1 -
 sw/source/ui/index/cntex.cxx                           |    2 --
 sw/source/ui/misc/contentcontrollistitemdlg.cxx        |    2 --
 sw/source/ui/misc/glossary.cxx                         |    1 -
 sw/source/ui/misc/srtdlg.cxx                           |    1 -
 sw/source/uibase/app/docsh2.cxx                        |    1 -
 sw/source/uibase/app/swmodul1.cxx                      |    2 --
 sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx   |    2 --
 sw/source/uibase/docvw/romenu.cxx                      |    3 ---
 sw/source/uibase/fldui/fldmgr.cxx                      |    1 -
 sw/source/uibase/fldui/xfldui.cxx                      |    1 -
 sw/source/uibase/lingu/hhcwrp.cxx                      |    1 -
 sw/source/uibase/shells/basesh.cxx                     |    1 -
 sw/source/uibase/shells/drawdlg.cxx                    |    2 --
 sw/source/uibase/shells/drwbassh.cxx                   |    1 -
 sw/source/uibase/shells/grfshex.cxx                    |    2 --
 sw/source/uibase/shells/textsh2.cxx                    |    3 ---
 sw/source/uibase/uiview/view.cxx                       |    1 -
 sw/source/uibase/uiview/view2.cxx                      |    1 -
 sw/source/uibase/uiview/viewmdi.cxx                    |    2 --
 sw/source/uibase/uiview/viewsrch.cxx                   |    2 --
 sw/source/uibase/utlui/numfmtlb.cxx                    |    3 ---
 65 files changed, 99 deletions(-)

New commits:
commit 1a91641fd6fd84eb0bfae75db54f35c7771a2a1c
Author:     Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
AuthorDate: Mon Apr 1 10:33:57 2024 +0200
Commit:     Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
CommitDate: Wed Apr 10 09:19:42 2024 +0200

    tdf#146619 Drop unused 'using namespace' in: sw/
    
    Change-Id: I56463130ab617b0e11e237718cb8456913373818
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165696
    Tested-by: Jenkins
    Reviewed-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>

diff --git a/sw/qa/core/test_ToxMiscTest.cxx b/sw/qa/core/test_ToxMiscTest.cxx
index c7e6223b927b..3e75f06b16bd 100644
--- a/sw/qa/core/test_ToxMiscTest.cxx
+++ b/sw/qa/core/test_ToxMiscTest.cxx
@@ -12,8 +12,6 @@
 #include <cppunit/TestFixture.h>
 #include <cppunit/extensions/HelperMacros.h>
 
-using namespace sw;
-
 class ToxMiscTest : public CppUnit::TestFixture
 {
 public:
diff --git a/sw/qa/extras/accessibility/accessible_relation_set.cxx 
b/sw/qa/extras/accessibility/accessible_relation_set.cxx
index fcee6d965a24..d23b5432af10 100644
--- a/sw/qa/extras/accessibility/accessible_relation_set.cxx
+++ b/sw/qa/extras/accessibility/accessible_relation_set.cxx
@@ -39,7 +39,6 @@
 using namespace com::sun::star;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::accessibility;
-using namespace css::lang;
 
 class AccessibleRelationSet : public UnoApiTest
 {
diff --git a/sw/qa/extras/uiwriter/uiwriter6.cxx 
b/sw/qa/extras/uiwriter/uiwriter6.cxx
index 826cf40b4d58..dbc115356cca 100644
--- a/sw/qa/extras/uiwriter/uiwriter6.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter6.cxx
@@ -63,7 +63,6 @@
 
 #include <workctrl.hxx>
 
-using namespace osl;
 using namespace com::sun::star;
 using namespace com::sun::star::beans;
 using namespace com::sun::star::lang;
diff --git a/sw/source/core/access/accpara.cxx 
b/sw/source/core/access/accpara.cxx
index c1d04758269d..b128b475809d 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -97,7 +97,6 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::accessibility;
-using namespace ::com::sun::star::container;
 
 using beans::PropertyValue;
 using beans::UnknownPropertyException;
diff --git a/sw/source/core/bastyp/SwSmartTagMgr.cxx 
b/sw/source/core/bastyp/SwSmartTagMgr.cxx
index 7eb3f9fa58ed..d730c50706cb 100644
--- a/sw/source/core/bastyp/SwSmartTagMgr.cxx
+++ b/sw/source/core/bastyp/SwSmartTagMgr.cxx
@@ -25,7 +25,6 @@
 #include <vcl/svapp.hxx>
 
 using namespace com::sun::star;
-using namespace com::sun::star::uno;
 
 rtl::Reference<SwSmartTagMgr> SwSmartTagMgr::spTheSwSmartTagMgr;
 
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 3e9ca93b3380..58aa478d4d43 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -80,7 +80,6 @@
 #include <redline.hxx>
 
 using namespace com::sun::star;
-using namespace util;
 
 /**
  * Check if pCurrentCursor points into already existing ranges and delete 
those.
diff --git a/sw/source/core/doc/docdraw.cxx b/sw/source/core/doc/docdraw.cxx
index 2f1459aa787a..f5a37d00ab21 100644
--- a/sw/source/core/doc/docdraw.cxx
+++ b/sw/source/core/doc/docdraw.cxx
@@ -54,7 +54,6 @@
 #include <vector>
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::linguistic2;
 
 /** local method to determine positioning and alignment attributes for a 
drawing
  *  object, which is newly connected to the layout.
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 2a5aad64de21..98b53aa05457 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -47,7 +47,6 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::linguistic2;
-using namespace ::com::sun::star::i18n;
 
 
 void RestFlyInRange( SaveFlyArr & rArr, const SwPosition& rStartPos,
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index c3ee9cfbf17b..1a92bd8dd19f 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -60,8 +60,6 @@
 #include <fmtcntnt.hxx>
 #include <utility>
 
-using namespace ::com::sun::star::uno;
-
 // the StartIndex can be supplied optionally (e.g. if it was queried before - 
is a virtual
 // method otherwise!)
 SetGetExpField::SetGetExpField(
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index 66a61ebb02c6..a5c1e4c29c55 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -82,7 +82,6 @@
 #include <functional>
 
 using namespace ::com::sun::star::i18n;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::uno;
 
 /*
diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx
index 6e6f2a5fd11c..b5533f192d9d 100644
--- a/sw/source/core/doc/poolfmt.cxx
+++ b/sw/source/core/doc/poolfmt.cxx
@@ -35,7 +35,6 @@
 #include <tblafmt.hxx>
 #include <hints.hxx>
 
-using namespace ::editeng;
 using namespace ::com::sun::star;
 
 void SetAllScriptItem( SfxItemSet& rSet, const SfxPoolItem& rItem )
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index ef4b023d4fee..8d3f9d5562b2 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -60,7 +60,6 @@
 #include <docary.hxx>
 
 using namespace com::sun::star;
-using namespace com::sun::star::uno;
 
 #define COLFUZZY 20
 #define ROWFUZZY 10
diff --git a/sw/source/core/edit/edtab.cxx b/sw/source/core/edit/edtab.cxx
index 5e318ea74820..abc039874386 100644
--- a/sw/source/core/edit/edtab.cxx
+++ b/sw/source/core/edit/edtab.cxx
@@ -45,7 +45,6 @@
 #include <vcl/uitest/eventdescription.hxx>
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::uno;
 namespace {
 
 void collectUIInformation(const OUString& rAction, const OUString& aParameters)
diff --git a/sw/source/core/edit/edtox.cxx b/sw/source/core/edit/edtox.cxx
index 602224c80efd..624e66bdde30 100644
--- a/sw/source/core/edit/edtox.cxx
+++ b/sw/source/core/edit/edtox.cxx
@@ -45,7 +45,6 @@
 #include <iodetect.hxx>
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::util;
 
diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx
index 0ee5b7c9fb62..3f762f6a8ad1 100644
--- a/sw/source/core/fields/reffld.cxx
+++ b/sw/source/core/fields/reffld.cxx
@@ -70,7 +70,6 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::text;
-using namespace ::com::sun::star::lang;
 
 static std::pair<OUString, bool> MakeRefNumStr(SwRootFrame const* pLayout,
       const SwTextNode& rTextNodeOfField,
diff --git a/sw/source/core/text/txthyph.cxx b/sw/source/core/text/txthyph.cxx
index e9f6a9d0e64a..a718296e8a2e 100644
--- a/sw/source/core/text/txthyph.cxx
+++ b/sw/source/core/text/txthyph.cxx
@@ -32,7 +32,6 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::linguistic2;
 using namespace ::com::sun::star::i18n;
 
diff --git a/sw/source/core/txtnode/thints.cxx 
b/sw/source/core/txtnode/thints.cxx
index 5b78ea29eb84..60161c3b8f89 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -90,8 +90,6 @@
 #define CHECK_NOTMERGED
 #endif
 
-using namespace ::com::sun::star::i18n;
-
 SwpHints::SwpHints(const SwTextNode& rParent)
     : m_rParent(rParent)
     , m_pHistory(nullptr)
diff --git a/sw/source/core/undo/unovwr.cxx b/sw/source/core/undo/unovwr.cxx
index 7d14c8977933..a669831b51ab 100644
--- a/sw/source/core/undo/unovwr.cxx
+++ b/sw/source/core/undo/unovwr.cxx
@@ -37,7 +37,6 @@
 #include <utility>
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::uno;
 
 SwUndoOverwrite::SwUndoOverwrite( SwDoc& rDoc, SwPosition& rPos,
diff --git a/sw/source/filter/ww8/wrtw8esh.cxx 
b/sw/source/filter/ww8/wrtw8esh.cxx
index c910d1e28bc8..c13d06106286 100644
--- a/sw/source/filter/ww8/wrtw8esh.cxx
+++ b/sw/source/filter/ww8/wrtw8esh.cxx
@@ -96,7 +96,6 @@
 using ::editeng::SvxBorderLine;
 using namespace com::sun::star;
 using namespace sw::util;
-using namespace sw::types;
 using ::com::sun::star::beans::XPropertySet;
 using ::com::sun::star::drawing::XShape;
 
diff --git a/sw/source/filter/ww8/wrtw8num.cxx 
b/sw/source/filter/ww8/wrtw8num.cxx
index 681961a3770c..4c56472bb6b3 100644
--- a/sw/source/filter/ww8/wrtw8num.cxx
+++ b/sw/source/filter/ww8/wrtw8num.cxx
@@ -35,8 +35,6 @@
 #include "ww8par.hxx"
 
 using namespace ::com::sun::star;
-using namespace sw::types;
-using namespace sw::util;
 
 SwNumRule* MSWordExportBase::DuplicateNumRuleImpl(const SwNumRule *pRule)
 {
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index 3af2f3dc4f9d..83436369d75c 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -75,7 +75,6 @@
 #include <officecfg/Office/Common.hxx>
 
 using namespace com::sun::star;
-using namespace sw::util;
 using namespace sw::types;
 using namespace sw::mark;
 
diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx
index bfb1366566fb..17bffab2ca10 100644
--- a/sw/source/filter/xml/wrtxml.cxx
+++ b/sw/source/filter/xml/wrtxml.cxx
@@ -65,7 +65,6 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::document;
 using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::lang;
diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx
index 5523b40cce78..9137749820ba 100644
--- a/sw/source/filter/xml/xmlexp.cxx
+++ b/sw/source/filter/xml/xmlexp.cxx
@@ -69,14 +69,11 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::xml::sax;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::container;
-using namespace ::com::sun::star::document;
 using namespace ::com::sun::star::drawing;
 using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::xforms;
 using namespace ::xmloff::token;
 
diff --git a/sw/source/filter/xml/xmlfmte.cxx b/sw/source/filter/xml/xmlfmte.cxx
index 8e20f46e4299..fc8932e8bb2f 100644
--- a/sw/source/filter/xml/xmlfmte.cxx
+++ b/sw/source/filter/xml/xmlfmte.cxx
@@ -48,11 +48,8 @@
 #include <docmodel/theme/Theme.hxx>
 
 
-using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::drawing;
-using namespace ::com::sun::star::lang;
 using namespace ::xmloff::token;
 
 void SwXMLExport::ExportFormat(const SwFormat& rFormat, enum XMLTokenEnum 
eFamily,
diff --git a/sw/source/filter/xml/xmlfonte.cxx 
b/sw/source/filter/xml/xmlfonte.cxx
index 740bab6af288..8566a1a69497 100644
--- a/sw/source/filter/xml/xmlfonte.cxx
+++ b/sw/source/filter/xml/xmlfonte.cxx
@@ -25,10 +25,6 @@
 #include "xmlimp.hxx"
 #include <IDocumentSettingAccess.hxx>
 
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::text;
-
 namespace {
 
 class SwXMLFontAutoStylePool_Impl: public XMLFontAutoStylePool
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index fc9f4a1e1e38..febdff27872b 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -90,7 +90,6 @@ using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::container;
-using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::drawing;
 using namespace ::com::sun::star::xforms;
 using namespace ::xmloff::token;
diff --git a/sw/source/filter/xml/xmliteme.cxx 
b/sw/source/filter/xml/xmliteme.cxx
index 3d19a9d6dc96..84ea82ab3017 100644
--- a/sw/source/filter/xml/xmliteme.cxx
+++ b/sw/source/filter/xml/xmliteme.cxx
@@ -36,7 +36,6 @@
 #include <editeng/prntitem.hxx>
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::uno;
 using namespace ::xmloff::token;
 
 namespace {
diff --git a/sw/source/filter/xml/xmlmeta.cxx b/sw/source/filter/xml/xmlmeta.cxx
index 925fea5d9aea..21f79d61f474 100644
--- a/sw/source/filter/xml/xmlmeta.cxx
+++ b/sw/source/filter/xml/xmlmeta.cxx
@@ -33,9 +33,6 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::text;
-using namespace ::xmloff::token;
 
 uno::Reference<document::XDocumentProperties>
 SwXMLImport::GetDocumentProperties() const
diff --git a/sw/source/filter/xml/xmlscript.cxx 
b/sw/source/filter/xml/xmlscript.cxx
index 07a94e8a5af4..ebe0680e17e7 100644
--- a/sw/source/filter/xml/xmlscript.cxx
+++ b/sw/source/filter/xml/xmlscript.cxx
@@ -20,8 +20,6 @@
 #include <xmloff/xmlscripti.hxx>
 #include "xmlimp.hxx"
 
-using namespace ::com::sun::star;
-
 SvXMLImportContext* SwXMLImport::CreateScriptContext()
 {
     SvXMLImportContext* pContext = nullptr;
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx
index ab61f071ce79..e34a900def70 100644
--- a/sw/source/filter/xml/xmltble.cxx
+++ b/sw/source/filter/xml/xmltble.cxx
@@ -59,8 +59,6 @@ using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::container;
 using namespace ::xmloff::token;
 using table::XCell;
 using std::vector;
diff --git a/sw/source/filter/xml/xmltexte.cxx 
b/sw/source/filter/xml/xmltexte.cxx
index 9c68a12f7055..c5cba4dae173 100644
--- a/sw/source/filter/xml/xmltexte.cxx
+++ b/sw/source/filter/xml/xmltexte.cxx
@@ -45,11 +45,9 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::style;
 using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::document;
-using namespace ::com::sun::star::io;
 using namespace ::xmloff::token;
 
 namespace {
diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx
index c54d6970dd8f..14833d719282 100644
--- a/sw/source/ui/chrdlg/chardlg.cxx
+++ b/sw/source/ui/chrdlg/chardlg.cxx
@@ -54,7 +54,6 @@
 #include <svx/dialogs.hrc>
 
 using namespace ::com::sun::star::ui::dialogs;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::uno;
 using namespace ::sfx2;
 
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx
index 15bdd270a0ef..9c84eb7a97fe 100644
--- a/sw/source/ui/chrdlg/drpcps.cxx
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -53,7 +53,6 @@
 
 using namespace css;
 using namespace css::uno;
-using namespace css::lang;
 
 const WhichRangesContainer 
SwDropCapsPage::s_aPageRg(svl::Items<RES_PARATR_DROP, RES_PARATR_DROP>);
 
diff --git a/sw/source/ui/config/mailconfigpage.cxx 
b/sw/source/ui/config/mailconfigpage.cxx
index 0bf9633abd1d..7bd8b994368c 100644
--- a/sw/source/ui/config/mailconfigpage.cxx
+++ b/sw/source/ui/config/mailconfigpage.cxx
@@ -31,9 +31,7 @@
 #include <strings.hrc>
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::mail;
-using namespace ::com::sun::star::beans;
 
 class SwTestAccountSettingsDialog : public SfxDialogController
 {
diff --git a/sw/source/ui/config/optcomp.cxx b/sw/source/ui/config/optcomp.cxx
index 783dddb57e49..bfbf1c841ff7 100644
--- a/sw/source/ui/config/optcomp.cxx
+++ b/sw/source/ui/config/optcomp.cxx
@@ -39,7 +39,6 @@
 
 using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::document;
-using namespace ::com::sun::star::uno;
 
 namespace
 {
diff --git a/sw/source/ui/dbui/mailmergewizard.cxx 
b/sw/source/ui/dbui/mailmergewizard.cxx
index 7090d5c3e2ec..f163a19f9041 100644
--- a/sw/source/ui/dbui/mailmergewizard.cxx
+++ b/sw/source/ui/dbui/mailmergewizard.cxx
@@ -33,7 +33,6 @@
 
 #include <helpids.h>
 
-using namespace svt;
 using namespace ::com::sun::star;
 
 SwMailMergeWizard::SwMailMergeWizard(SwView& rView, 
std::shared_ptr<SwMailMergeConfigItem> xItem)
diff --git a/sw/source/ui/dbui/mmdocselectpage.cxx 
b/sw/source/ui/dbui/mmdocselectpage.cxx
index fa613ee9bb48..2cd6ce67274d 100644
--- a/sw/source/ui/dbui/mmdocselectpage.cxx
+++ b/sw/source/ui/dbui/mmdocselectpage.cxx
@@ -35,7 +35,6 @@
 using namespace ::com::sun::star::ui::dialogs;
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace svt;
 
 SwMailMergeDocSelectPage::SwMailMergeDocSelectPage(weld::Container* pPage, 
SwMailMergeWizard* pWizard)
     : vcl::OWizardPage(pPage, pWizard, "modules/swriter/ui/mmselectpage.ui", 
"MMSelectPage")
diff --git a/sw/source/ui/dbui/mmgreetingspage.cxx 
b/sw/source/ui/dbui/mmgreetingspage.cxx
index c75a01ee8dfe..a7184e1c9f9c 100644
--- a/sw/source/ui/dbui/mmgreetingspage.cxx
+++ b/sw/source/ui/dbui/mmgreetingspage.cxx
@@ -30,7 +30,6 @@
 #include <swmodule.hxx>
 #include <view.hxx>
 
-using namespace svt;
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 
diff --git a/sw/source/ui/dbui/mmlayoutpage.cxx 
b/sw/source/ui/dbui/mmlayoutpage.cxx
index 2e01e49ec90a..95d7879ebdf7 100644
--- a/sw/source/ui/dbui/mmlayoutpage.cxx
+++ b/sw/source/ui/dbui/mmlayoutpage.cxx
@@ -55,12 +55,10 @@
 #include <dbui.hrc>
 
 using namespace osl;
-using namespace svt;
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::frame;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::view;
 
 constexpr tools::Long DEFAULT_LEFT_DISTANCE = o3tl::toTwips(25, 
o3tl::Length::mm); // 2,5 cm
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx 
b/sw/source/ui/dbui/mmresultdialogs.cxx
index 013628d7fb03..669cf695c359 100644
--- a/sw/source/ui/dbui/mmresultdialogs.cxx
+++ b/sw/source/ui/dbui/mmresultdialogs.cxx
@@ -75,7 +75,6 @@
 #include <comphelper/string.hxx>
 #include <iodetect.hxx>
 
-using namespace svt;
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 
diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx
index ddffac09a61a..4cd0b1b66040 100644
--- a/sw/source/ui/envelp/envlop1.cxx
+++ b/sw/source/ui/envelp/envlop1.cxx
@@ -36,8 +36,6 @@
 
 #include <comphelper/string.hxx>
 
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star;
 
diff --git a/sw/source/ui/envelp/labelexp.cxx b/sw/source/ui/envelp/labelexp.cxx
index ba4f37b1e040..5ab0467c6444 100644
--- a/sw/source/ui/envelp/labelexp.cxx
+++ b/sw/source/ui/envelp/labelexp.cxx
@@ -25,7 +25,6 @@
 #include <unoprnms.hxx>
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::uno;
 
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
index b90397ab28b5..ef047470861a 100644
--- a/sw/source/ui/envelp/labfmt.cxx
+++ b/sw/source/ui/envelp/labfmt.cxx
@@ -37,8 +37,6 @@
 #include <strings.hrc>
 
 using namespace utl;
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::beans;
 
 #define ROUND(x) static_cast<tools::Long>((x) + .5)
 
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx
index 1d4d763dfbae..97bd44809114 100644
--- a/sw/source/ui/fldui/changedb.cxx
+++ b/sw/source/ui/fldui/changedb.cxx
@@ -36,7 +36,6 @@
 #include <bitmaps.hlst>
 
 using namespace ::com::sun::star::container;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::sdb;
 using namespace ::com::sun::star::uno;
 
diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx
index d2e6b751cfef..ccf1ba5c0d25 100644
--- a/sw/source/ui/index/cntex.cxx
+++ b/sw/source/ui/index/cntex.cxx
@@ -45,9 +45,7 @@ using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::ucb;
 using namespace ::com::sun::star::uno;
-using namespace com::sun::star::ui::dialogs;
 
 static void lcl_SetProp( uno::Reference< XPropertySetInfo > const & xInfo,
                            uno::Reference< XPropertySet > const & xProps,
diff --git a/sw/source/ui/misc/contentcontrollistitemdlg.cxx 
b/sw/source/ui/misc/contentcontrollistitemdlg.cxx
index 6ac160aebb10..624f0bd23dda 100644
--- a/sw/source/ui/misc/contentcontrollistitemdlg.cxx
+++ b/sw/source/ui/misc/contentcontrollistitemdlg.cxx
@@ -21,8 +21,6 @@
 
 #include <formatcontentcontrol.hxx>
 
-using namespace com::sun::star;
-
 SwContentControlListItemDlg::SwContentControlListItemDlg(weld::Widget* pParent,
                                                          
SwContentControlListItem& rItem)
     : GenericDialogController(pParent, 
"modules/swriter/ui/contentcontrollistitemdlg.ui",
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index c68d4d75f86f..9508c62c518d 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -67,7 +67,6 @@
 #include <officecfg/Office/Writer.hxx>
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::ucb;
diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx
index 49ffa058636f..97f2c1dc9b6e 100644
--- a/sw/source/ui/misc/srtdlg.cxx
+++ b/sw/source/ui/misc/srtdlg.cxx
@@ -58,7 +58,6 @@ static bool   bCsSens= false;
 
 static sal_Unicode    cDeli  = '       ';
 
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star;
 
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx
index 0ec9c84f97c6..0261e30952ee 100644
--- a/sw/source/uibase/app/docsh2.cxx
+++ b/sw/source/uibase/app/docsh2.cxx
@@ -125,7 +125,6 @@
 #include <memory>
 
 using namespace ::com::sun::star::ui::dialogs;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star;
 using namespace ::sfx2;
diff --git a/sw/source/uibase/app/swmodul1.cxx 
b/sw/source/uibase/app/swmodul1.cxx
index 64bd38f44458..8c08c1f11781 100644
--- a/sw/source/uibase/app/swmodul1.cxx
+++ b/sw/source/uibase/app/swmodul1.cxx
@@ -62,10 +62,8 @@
 using namespace ::svx;
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::frame;
 using namespace ::com::sun::star::view;
-using namespace ::com::sun::star::lang;
 
 static void lcl_SetUIPrefs(const SwViewOption &rPref, SwView* pView, 
SwViewShell* pSh )
 {
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx 
b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
index 869a0fba0025..5cf2fb6edf04 100644
--- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
@@ -48,9 +48,7 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::linguistic2;
-using namespace ::com::sun::star::beans;
 
 SFX_IMPL_CHILDWINDOW_WITHID(SwSpellDialogChildWindow, FN_SPELL_GRAMMAR_DIALOG)
 
diff --git a/sw/source/uibase/docvw/romenu.cxx 
b/sw/source/uibase/docvw/romenu.cxx
index bcbe76f9ef39..7baea26be154 100644
--- a/sw/source/uibase/docvw/romenu.cxx
+++ b/sw/source/uibase/docvw/romenu.cxx
@@ -41,10 +41,7 @@
 
 #include <cmdid.h>
 
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star;
-using namespace ::sfx2;
 
 SwReadOnlyPopup::~SwReadOnlyPopup()
 {
diff --git a/sw/source/uibase/fldui/fldmgr.cxx 
b/sw/source/uibase/fldui/fldmgr.cxx
index ec509c92cd0c..c23c8eb8c93c 100644
--- a/sw/source/uibase/fldui/fldmgr.cxx
+++ b/sw/source/uibase/fldui/fldmgr.cxx
@@ -79,7 +79,6 @@
 
 using namespace com::sun::star::uno;
 using namespace com::sun::star::container;
-using namespace com::sun::star::lang;
 using namespace com::sun::star::beans;
 using namespace com::sun::star::text;
 using namespace com::sun::star::style;
diff --git a/sw/source/uibase/fldui/xfldui.cxx 
b/sw/source/uibase/fldui/xfldui.cxx
index e5532f89454b..711276d59ad7 100644
--- a/sw/source/uibase/fldui/xfldui.cxx
+++ b/sw/source/uibase/fldui/xfldui.cxx
@@ -34,7 +34,6 @@
 
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::container;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::sdb;
 using namespace ::com::sun::star::sdbc;
 using namespace ::com::sun::star::sdbcx;
diff --git a/sw/source/uibase/lingu/hhcwrp.cxx 
b/sw/source/uibase/lingu/hhcwrp.cxx
index 813f9d043c8b..3ac53b6da31a 100644
--- a/sw/source/uibase/lingu/hhcwrp.cxx
+++ b/sw/source/uibase/lingu/hhcwrp.cxx
@@ -45,7 +45,6 @@
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::linguistic2;
 using namespace ::com::sun::star::i18n;
 
 //     Description: Turn off frame/object shell if applicable
diff --git a/sw/source/uibase/shells/basesh.cxx 
b/sw/source/uibase/shells/basesh.cxx
index aa9cfce3a15a..cf36bcd7e076 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -156,7 +156,6 @@ namespace
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::frame;
-using namespace ::com::sun::star::lang;
 
 SFX_IMPL_SUPERCLASS_INTERFACE(SwBaseShell, SfxShell)
 
diff --git a/sw/source/uibase/shells/drawdlg.cxx 
b/sw/source/uibase/shells/drawdlg.cxx
index 6c9aee83debd..b778ea9b806e 100644
--- a/sw/source/uibase/shells/drawdlg.cxx
+++ b/sw/source/uibase/shells/drawdlg.cxx
@@ -41,8 +41,6 @@
 #include <comphelper/lok.hxx>
 #include <textboxhelper.hxx>
 
-using namespace com::sun::star::drawing;
-
 void SwDrawShell::ExecDrawDlg(SfxRequest& rReq)
 {
     SwWrtShell*     pSh     = &GetShell();
diff --git a/sw/source/uibase/shells/drwbassh.cxx 
b/sw/source/uibase/shells/drwbassh.cxx
index 09f85b7ccbc9..39d5882c9666 100644
--- a/sw/source/uibase/shells/drwbassh.cxx
+++ b/sw/source/uibase/shells/drwbassh.cxx
@@ -63,7 +63,6 @@
 
 using namespace ::com::sun::star;
 using namespace css::beans;
-using namespace css::drawing;
 using namespace css::uno;
 
 SFX_IMPL_SUPERCLASS_INTERFACE(SwDrawBaseShell, SwBaseShell)
diff --git a/sw/source/uibase/shells/grfshex.cxx 
b/sw/source/uibase/shells/grfshex.cxx
index a9af8799b009..654fb8364daf 100644
--- a/sw/source/uibase/shells/grfshex.cxx
+++ b/sw/source/uibase/shells/grfshex.cxx
@@ -36,8 +36,6 @@
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::ui::dialogs;
-using namespace ::sfx2;
 
 bool SwTextShell::InsertMediaDlg( SfxRequest const & rReq )
 {
diff --git a/sw/source/uibase/shells/textsh2.cxx 
b/sw/source/uibase/shells/textsh2.cxx
index 566c8d357a4a..feba747ebf6a 100644
--- a/sw/source/uibase/shells/textsh2.cxx
+++ b/sw/source/uibase/shells/textsh2.cxx
@@ -45,12 +45,9 @@
 using namespace ::svx;
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::container;
-using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::sdb;
 using namespace ::com::sun::star::sdbc;
 using namespace ::com::sun::star::sdbcx;
-using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::frame;
 
 struct DBTextStruct_Impl
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index 24f2d08c4403..3df6f2f49c3f 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -126,7 +126,6 @@ using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::scanner;
 using namespace ::com::sun::star::sdb;
-using namespace ::com::sun::star::sdbc;
 
 #define SWVIEWFLAGS SfxViewShellFlags::HAS_PRINTOPTIONS
 
diff --git a/sw/source/uibase/uiview/view2.cxx 
b/sw/source/uibase/uiview/view2.cxx
index 4957ba03c522..0ac3f7b1ba3e 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -167,7 +167,6 @@ const char sStatusDelim[] = " : ";
 
 using namespace sfx2;
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::util;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
diff --git a/sw/source/uibase/uiview/viewmdi.cxx 
b/sw/source/uibase/uiview/viewmdi.cxx
index d0ef1ba29dc0..8ded09973e91 100644
--- a/sw/source/uibase/uiview/viewmdi.cxx
+++ b/sw/source/uibase/uiview/viewmdi.cxx
@@ -53,8 +53,6 @@
 sal_uInt16  SwView::s_nMoveType = NID_PGE;
 sal_Int32 SwView::s_nActMark = 0;
 
-using namespace ::com::sun::star::uno;
-
 namespace {
 
 void collectUIInformation(const OUString& aFactor)
diff --git a/sw/source/uibase/uiview/viewsrch.cxx 
b/sw/source/uibase/uiview/viewsrch.cxx
index 5fc92d517b1b..3eaf8a419d9f 100644
--- a/sw/source/uibase/uiview/viewsrch.cxx
+++ b/sw/source/uibase/uiview/viewsrch.cxx
@@ -55,9 +55,7 @@
 #include <PostItMgr.hxx>
 
 using namespace com::sun::star;
-using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::util;
 
 //Search Parameter
 
diff --git a/sw/source/uibase/utlui/numfmtlb.cxx 
b/sw/source/uibase/utlui/numfmtlb.cxx
index 87f03d234048..8a1895f47212 100644
--- a/sw/source/uibase/utlui/numfmtlb.cxx
+++ b/sw/source/uibase/utlui/numfmtlb.cxx
@@ -36,9 +36,6 @@
 #include <swabstdlg.hxx>
 #include <memory>
 
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::lang;
-
 /**
  *  Description:
  *     nFormatType: Display the formats of this Type

Reply via email to