summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-11-29 21:26:09 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-11-30 14:36:36 +0100
commit66a175834c39ccde9475eac3adb72a843110d01f (patch)
treeef925daaf84a85731525c2b14f0cd4a2ed84e2de /svtools
parent90eac3e69749a9227c4b6902b1f3cef1e338c6d1 (diff)
c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/acceleratorexecute.hxx2
-rw-r--r--svtools/source/config/accessibilityoptions.cxx2
-rw-r--r--svtools/source/config/itemholder2.cxx6
-rw-r--r--svtools/source/config/itemholder2.hxx5
-rw-r--r--svtools/source/config/printoptions.cxx1
-rw-r--r--svtools/source/contnr/DocumentInfoPreview.cxx6
-rw-r--r--svtools/source/dialogs/restartdialog.cxx2
-rw-r--r--svtools/source/edit/svmedit.cxx2
-rw-r--r--svtools/source/edit/textwindowpeer.cxx2
-rw-r--r--svtools/source/misc/acceleratorexecute.cxx2
10 files changed, 0 insertions, 30 deletions
diff --git a/svtools/inc/svtools/acceleratorexecute.hxx b/svtools/inc/svtools/acceleratorexecute.hxx
index b3788d41eea4..b3682858e77e 100644
--- a/svtools/inc/svtools/acceleratorexecute.hxx
+++ b/svtools/inc/svtools/acceleratorexecute.hxx
@@ -36,8 +36,6 @@
#include <osl/mutex.h>
-namespace css = ::com::sun::star;
-
namespace svt
{
diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx
index 2b1911ddcbfe..92ed2bd0f72b 100644
--- a/svtools/source/config/accessibilityoptions.cxx
+++ b/svtools/source/config/accessibilityoptions.cxx
@@ -40,8 +40,6 @@
using namespace utl;
using namespace com::sun::star::uno;
-namespace css = com::sun::star;
-
#define HELP_TIP_TIMEOUT 0xffff // max. timeout setting to pretend a non-timeout
namespace
diff --git a/svtools/source/config/itemholder2.cxx b/svtools/source/config/itemholder2.cxx
index 8248758c411c..beb5e478c585 100644
--- a/svtools/source/config/itemholder2.cxx
+++ b/svtools/source/config/itemholder2.cxx
@@ -37,12 +37,6 @@
#include <tools/debug.hxx>
-//-----------------------------------------------
-// namespaces
-
-namespace css = ::com::sun::star;
-
-
namespace svtools {
//-----------------------------------------------
ItemHolder2::ItemHolder2()
diff --git a/svtools/source/config/itemholder2.hxx b/svtools/source/config/itemholder2.hxx
index 141b57250444..9d39e189e308 100644
--- a/svtools/source/config/itemholder2.hxx
+++ b/svtools/source/config/itemholder2.hxx
@@ -24,11 +24,6 @@
#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/lang/XEventListener.hpp>
-//-----------------------------------------------
-// namespaces
-
-namespace css = ::com::sun::star;
-
namespace svtools {
diff --git a/svtools/source/config/printoptions.cxx b/svtools/source/config/printoptions.cxx
index 3d0c0c0d07bd..84ba19d6b0ff 100644
--- a/svtools/source/config/printoptions.cxx
+++ b/svtools/source/config/printoptions.cxx
@@ -74,7 +74,6 @@ using namespace ::utl;
using namespace ::rtl;
using namespace ::osl;
using namespace ::com::sun::star::uno;
-namespace css = com::sun::star;
// -----------
// - statics -
diff --git a/svtools/source/contnr/DocumentInfoPreview.cxx b/svtools/source/contnr/DocumentInfoPreview.cxx
index 379355b28d65..aa7783b803fc 100644
--- a/svtools/source/contnr/DocumentInfoPreview.cxx
+++ b/svtools/source/contnr/DocumentInfoPreview.cxx
@@ -41,12 +41,6 @@
namespace svtools {
-namespace {
-
-namespace css = com::sun::star;
-
-}
-
ODocumentInfoPreview::ODocumentInfoPreview(Window * pParent, WinBits nBits):
Window(pParent, WB_DIALOGCONTROL), m_pEditWin(this, nBits),
m_pInfoTable(new SvtDocInfoTable_Impl),
diff --git a/svtools/source/dialogs/restartdialog.cxx b/svtools/source/dialogs/restartdialog.cxx
index 2e8428f935cf..faf05df42e4b 100644
--- a/svtools/source/dialogs/restartdialog.cxx
+++ b/svtools/source/dialogs/restartdialog.cxx
@@ -23,8 +23,6 @@
namespace {
-namespace css = com::sun::star;
-
class RestartDialog: public ModalDialog {
public:
RestartDialog(Window * parent, svtools::RestartReason reason):
diff --git a/svtools/source/edit/svmedit.cxx b/svtools/source/edit/svmedit.cxx
index eb4277687130..4c12b6c55c36 100644
--- a/svtools/source/edit/svmedit.cxx
+++ b/svtools/source/edit/svmedit.cxx
@@ -33,8 +33,6 @@ MultiLineEdit::MultiLineEdit( Window* pParent, const ResId& rResId )
{
}
-namespace css = ::com::sun::star;
-
// virtual
::css::uno::Reference< ::css::awt::XWindowPeer >
MultiLineEdit::GetComponentInterface(sal_Bool bCreate)
diff --git a/svtools/source/edit/textwindowpeer.cxx b/svtools/source/edit/textwindowpeer.cxx
index 59eee86937c3..082897854eaa 100644
--- a/svtools/source/edit/textwindowpeer.cxx
+++ b/svtools/source/edit/textwindowpeer.cxx
@@ -22,8 +22,6 @@
#include <vcl/textview.hxx>
#include "svtaccessiblefactory.hxx"
-namespace css = ::com::sun::star;
-
namespace svt
{
TextWindowPeer::TextWindowPeer(::TextView & rView, bool bCompoundControlChild):
diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx
index bcf943045bd0..144a211f25f4 100644
--- a/svtools/source/misc/acceleratorexecute.cxx
+++ b/svtools/source/misc/acceleratorexecute.cxx
@@ -38,8 +38,6 @@
#include <osl/mutex.hxx>
-namespace css = ::com::sun::star;
-
namespace svt
{