summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-21 14:00:46 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-21 14:02:45 +0100
commit48bfb52d71e19757da9c90145bbcea8337c411f4 (patch)
tree4ac294a4551cf9183b074b0c5b8b0dd0d33a3fad
parent8b0351023010a2954b6dfe3f6c7aaf2eccd35125 (diff)
expand and remove NS_* macro
-rw-r--r--basic/source/inc/propacc.hxx69
-rw-r--r--unotools/inc/unotools/ucblockbytes.hxx40
-rw-r--r--unotools/inc/unotools/ucbstreamhelper.hxx14
3 files changed, 51 insertions, 72 deletions
diff --git a/basic/source/inc/propacc.hxx b/basic/source/inc/propacc.hxx
index d79c68808a08..f8e91d1f565b 100644
--- a/basic/source/inc/propacc.hxx
+++ b/basic/source/inc/propacc.hxx
@@ -37,15 +37,11 @@
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
-#define NS_BEANS ::com::sun::star::beans
-#define NS_LANG ::com::sun::star::lang
-#define NS_UNO ::com::sun::star::uno
-
-typedef NS_BEANS::PropertyValue* SbPropertyValuePtr;
+typedef ::com::sun::star::beans::PropertyValue* SbPropertyValuePtr;
SV_DECL_PTRARR( SbPropertyValueArr_Impl, SbPropertyValuePtr, 4 )
-typedef ::cppu::WeakImplHelper2< NS_BEANS::XPropertySet,
- NS_BEANS::XPropertyAccess > SbPropertyValuesHelper;
+typedef ::cppu::WeakImplHelper2< ::com::sun::star::beans::XPropertySet,
+ ::com::sun::star::beans::XPropertyAccess > SbPropertyValuesHelper;
//==========================================================================
@@ -53,7 +49,7 @@ typedef ::cppu::WeakImplHelper2< NS_BEANS::XPropertySet,
class SbPropertyValues: public SbPropertyValuesHelper
{
SbPropertyValueArr_Impl _aPropVals;
- NS_UNO::Reference< ::com::sun::star::beans::XPropertySetInfo > _xInfo;
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > _xInfo;
private:
sal_Int32 GetIndex_Impl( const ::rtl::OUString &rPropName ) const;
@@ -63,65 +59,65 @@ public:
virtual ~SbPropertyValues();
// XPropertySet
- virtual NS_UNO::Reference< NS_BEANS::XPropertySetInfo > SAL_CALL
- getPropertySetInfo(void) throw( NS_UNO::RuntimeException );
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
+ getPropertySetInfo(void) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL setPropertyValue(
const ::rtl::OUString& aPropertyName,
- const NS_UNO::Any& aValue)
+ const ::com::sun::star::uno::Any& aValue)
throw (::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::beans::PropertyVetoException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual NS_UNO::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
- throw( NS_BEANS::UnknownPropertyException,
- NS_LANG::WrappedTargetException,
- NS_UNO::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
+ throw( ::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addPropertyChangeListener(
const ::rtl::OUString& aPropertyName,
- const NS_UNO::Reference< NS_BEANS::XPropertyChangeListener >& )
+ const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& )
throw ();
virtual void SAL_CALL removePropertyChangeListener(
const ::rtl::OUString& aPropertyName,
- const NS_UNO::Reference< NS_BEANS::XPropertyChangeListener >& )
+ const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& )
throw ();
virtual void SAL_CALL addVetoableChangeListener(
const ::rtl::OUString& aPropertyName,
- const NS_UNO::Reference< NS_BEANS::XVetoableChangeListener >& )
+ const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& )
throw ();
virtual void SAL_CALL removeVetoableChangeListener(
const ::rtl::OUString& aPropertyName,
- const NS_UNO::Reference< NS_BEANS::XVetoableChangeListener >& )
+ const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& )
throw ();
// XPropertyAccess
- virtual NS_UNO::Sequence< NS_BEANS::PropertyValue > SAL_CALL getPropertyValues(void) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyValues(const NS_UNO::Sequence< NS_BEANS::PropertyValue >& PropertyValues_) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues(void) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setPropertyValues(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& PropertyValues_) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
};
//==========================================================================
-typedef ::cppu::WeakImplHelper1< NS_BEANS::XPropertySetInfo > SbPropertySetInfoHelper;
+typedef ::cppu::WeakImplHelper1< ::com::sun::star::beans::XPropertySetInfo > SbPropertySetInfoHelper;
// AB 20.3.2000 Help Class for XPropertySetInfo implementation
class PropertySetInfoImpl
{
friend class SbPropertySetInfo;
- NS_UNO::Sequence< NS_BEANS::Property > _aProps;
+ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > _aProps;
sal_Int32 GetIndex_Impl( const ::rtl::OUString &rPropName ) const;
public:
PropertySetInfoImpl();
- PropertySetInfoImpl( NS_UNO::Sequence< NS_BEANS::Property >& rProps );
+ PropertySetInfoImpl( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& rProps );
// XPropertySetInfo
- NS_UNO::Sequence< NS_BEANS::Property > SAL_CALL getProperties(void) throw ();
- NS_BEANS::Property SAL_CALL getPropertyByName(const ::rtl::OUString& Name)
- throw( NS_UNO::RuntimeException );
+ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(void) throw ();
+ ::com::sun::star::beans::Property SAL_CALL getPropertyByName(const ::rtl::OUString& Name)
+ throw( ::com::sun::star::uno::RuntimeException );
sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& Name)
- throw ( NS_UNO::RuntimeException );
+ throw ( ::com::sun::star::uno::RuntimeException );
};
class SbPropertySetInfo: public SbPropertySetInfoHelper
@@ -133,12 +129,12 @@ public:
virtual ~SbPropertySetInfo();
// XPropertySetInfo
- virtual NS_UNO::Sequence< NS_BEANS::Property > SAL_CALL getProperties(void)
- throw( NS_UNO::RuntimeException );
- virtual NS_BEANS::Property SAL_CALL getPropertyByName(const ::rtl::OUString& Name)
- throw( NS_UNO::RuntimeException );
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(void)
+ throw( ::com::sun::star::uno::RuntimeException );
+ virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(const ::rtl::OUString& Name)
+ throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& Name)
- throw( NS_UNO::RuntimeException );
+ throw( ::com::sun::star::uno::RuntimeException );
};
//=========================================================================
@@ -148,13 +144,6 @@ class SbxArray;
void RTL_Impl_CreatePropertySet( StarBASIC* pBasic, SbxArray& rPar, sal_Bool bWrite );
-
-#undef NS_BEANS
-#undef NS_LANG
-#undef NS_UNO
-
-
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/inc/unotools/ucblockbytes.hxx b/unotools/inc/unotools/ucblockbytes.hxx
index 141296d8e1e9..9ac68b3d4447 100644
--- a/unotools/inc/unotools/ucblockbytes.hxx
+++ b/unotools/inc/unotools/ucblockbytes.hxx
@@ -97,12 +97,6 @@ public:
SV_DECL_IMPL_REF( UcbLockBytesHandler )
-#define NS_UNO ::com::sun::star::uno
-#define NS_IO ::com::sun::star::io
-#define NS_UCB ::com::sun::star::ucb
-#define NS_BEANS ::com::sun::star::beans
-#define NS_TASK ::com::sun::star::task
-
class UNOTOOLS_DLLPUBLIC UcbLockBytes : public virtual SvLockBytes
{
osl::Condition m_aInitialized;
@@ -113,9 +107,9 @@ class UNOTOOLS_DLLPUBLIC UcbLockBytes : public virtual SvLockBytes
String m_aRealURL;
DateTime m_aExpireDate;
- NS_UNO::Reference < NS_IO::XInputStream > m_xInputStream;
- NS_UNO::Reference < NS_IO::XOutputStream > m_xOutputStream;
- NS_UNO::Reference < NS_IO::XSeekable > m_xSeekable;
+ ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > m_xInputStream;
+ ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > m_xOutputStream;
+ ::com::sun::star::uno::Reference < ::com::sun::star::io::XSeekable > m_xSeekable;
void* m_pCommandThread; // is alive only for compatibility reasons
UcbLockBytesHandlerRef m_xHandler;
@@ -135,21 +129,21 @@ protected:
public:
// properties: Referer, PostMimeType
- static UcbLockBytesRef CreateLockBytes( const NS_UNO::Reference < NS_UCB::XContent >& xContent,
+ static UcbLockBytesRef CreateLockBytes( const ::com::sun::star::uno::Reference < ::com::sun::star::ucb::XContent >& xContent,
const ::rtl::OUString& rReferer,
const ::rtl::OUString& rMediaType,
- const NS_UNO::Reference < NS_IO::XInputStream >& xPostData,
- const NS_UNO::Reference < NS_TASK::XInteractionHandler >& xInter,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream >& xPostData,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::task::XInteractionHandler >& xInter,
UcbLockBytesHandler* pHandler=0 );
- static UcbLockBytesRef CreateLockBytes( const NS_UNO::Reference < NS_UCB::XContent >& xContent,
- const NS_UNO::Sequence < NS_BEANS::PropertyValue >& rProps,
+ static UcbLockBytesRef CreateLockBytes( const ::com::sun::star::uno::Reference < ::com::sun::star::ucb::XContent >& xContent,
+ const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rProps,
StreamMode eMode,
- const NS_UNO::Reference < NS_TASK::XInteractionHandler >& xInter,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::task::XInteractionHandler >& xInter,
UcbLockBytesHandler* pHandler=0 );
- static UcbLockBytesRef CreateInputLockBytes( const NS_UNO::Reference < NS_IO::XInputStream >& xContent );
- static UcbLockBytesRef CreateLockBytes( const NS_UNO::Reference < NS_IO::XStream >& xContent );
+ static UcbLockBytesRef CreateInputLockBytes( const ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream >& xContent );
+ static UcbLockBytesRef CreateLockBytes( const ::com::sun::star::uno::Reference < ::com::sun::star::io::XStream >& xContent );
// SvLockBytes
virtual void SetSynchronMode (sal_Bool bSynchron);
@@ -173,27 +167,27 @@ public:
DateTime GetExpireDate() const;
// calling this method delegates the responsibility to call closeinput to the caller!
- NS_UNO::Reference < NS_IO::XInputStream > getInputStream();
+ ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > getInputStream();
#if _SOLAR__PRIVATE
- sal_Bool setInputStream_Impl( const NS_UNO::Reference < NS_IO::XInputStream > &rxInputStream,
+ sal_Bool setInputStream_Impl( const ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > &rxInputStream,
sal_Bool bSetXSeekable = sal_True );
- sal_Bool setStream_Impl( const NS_UNO::Reference < NS_IO::XStream > &rxStream );
+ sal_Bool setStream_Impl( const ::com::sun::star::uno::Reference < ::com::sun::star::io::XStream > &rxStream );
void terminate_Impl (void);
- NS_UNO::Reference < NS_IO::XInputStream > getInputStream_Impl() const
+ ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > getInputStream_Impl() const
{
osl::MutexGuard aGuard( SAL_CONST_CAST(UcbLockBytes*, this)->m_aMutex );
return m_xInputStream;
}
- NS_UNO::Reference < NS_IO::XOutputStream > getOutputStream_Impl() const
+ ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > getOutputStream_Impl() const
{
osl::MutexGuard aGuard( SAL_CONST_CAST(UcbLockBytes*, this)->m_aMutex );
return m_xOutputStream;
}
- NS_UNO::Reference < NS_IO::XSeekable > getSeekable_Impl() const
+ ::com::sun::star::uno::Reference < ::com::sun::star::io::XSeekable > getSeekable_Impl() const
{
osl::MutexGuard aGuard( SAL_CONST_CAST(UcbLockBytes*, this)->m_aMutex );
return m_xSeekable;
diff --git a/unotools/inc/unotools/ucbstreamhelper.hxx b/unotools/inc/unotools/ucbstreamhelper.hxx
index f309b018cff8..817bd29e9f35 100644
--- a/unotools/inc/unotools/ucbstreamhelper.hxx
+++ b/unotools/inc/unotools/ucbstreamhelper.hxx
@@ -54,10 +54,6 @@ namespace com
}
}
-#define NS_UNO ::com::sun::star::uno
-#define NS_IO ::com::sun::star::io
-#define NS_TASK ::com::sun::star::task
-
class String;
namespace utl
{
@@ -69,15 +65,15 @@ namespace utl
static SvStream* CreateStream( const String& rFileName, StreamMode eOpenMode,
UcbLockBytesHandler* pHandler=0 );
static SvStream* CreateStream( const String& rFileName, StreamMode eOpenMode,
- NS_UNO::Reference < NS_TASK::XInteractionHandler >,
+ ::com::sun::star::uno::Reference < ::com::sun::star::task::XInteractionHandler >,
UcbLockBytesHandler* pHandler=0 );
static SvStream* CreateStream( const String& rFileName, StreamMode eOpenMode,
sal_Bool bFileExists,
UcbLockBytesHandler* pHandler=0 );
- static SvStream* CreateStream( NS_UNO::Reference < NS_IO::XInputStream > xStream );
- static SvStream* CreateStream( NS_UNO::Reference < NS_IO::XStream > xStream );
- static SvStream* CreateStream( NS_UNO::Reference < NS_IO::XInputStream > xStream, sal_Bool bCloseStream );
- static SvStream* CreateStream( NS_UNO::Reference < NS_IO::XStream > xStream, sal_Bool bCloseStream );
+ static SvStream* CreateStream( ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > xStream );
+ static SvStream* CreateStream( ::com::sun::star::uno::Reference < ::com::sun::star::io::XStream > xStream );
+ static SvStream* CreateStream( ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > xStream, sal_Bool bCloseStream );
+ static SvStream* CreateStream( ::com::sun::star::uno::Reference < ::com::sun::star::io::XStream > xStream, sal_Bool bCloseStream );
};
}