summaryrefslogtreecommitdiff
path: root/cppu/inc/com/sun/star/uno
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/inc/com/sun/star/uno')
-rw-r--r--cppu/inc/com/sun/star/uno/Any.h102
-rw-r--r--cppu/inc/com/sun/star/uno/Any.hxx14
-rw-r--r--cppu/inc/com/sun/star/uno/Reference.h138
-rw-r--r--cppu/inc/com/sun/star/uno/Reference.hxx8
-rw-r--r--cppu/inc/com/sun/star/uno/Sequence.h90
-rw-r--r--cppu/inc/com/sun/star/uno/Sequence.hxx20
-rw-r--r--cppu/inc/com/sun/star/uno/Type.h144
-rw-r--r--cppu/inc/com/sun/star/uno/Type.hxx8
-rw-r--r--cppu/inc/com/sun/star/uno/genfunc.h16
-rw-r--r--cppu/inc/com/sun/star/uno/genfunc.hxx10
10 files changed, 275 insertions, 275 deletions
diff --git a/cppu/inc/com/sun/star/uno/Any.h b/cppu/inc/com/sun/star/uno/Any.h
index eb29273c16aa..e4d1a559b574 100644
--- a/cppu/inc/com/sun/star/uno/Any.h
+++ b/cppu/inc/com/sun/star/uno/Any.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,13 +36,13 @@
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
-{
+{
/** C++ class representing an IDL any.
This class is used to transport any type defined in IDL. The class inherits from the
@@ -68,101 +68,101 @@ public:
/** @internal */
inline static void SAL_CALL operator delete ( void *, void * ) SAL_THROW( () )
{}
-
+
/** Default constructor: Any holds no value; its type is void.
*/
inline Any() SAL_THROW( () );
-
+
/** Templated ctor. Sets a copy of the given value.
-
+
@param value value of the Any
*/
template <typename T>
explicit inline Any( T const & value );
/// Ctor support for C++ bool.
explicit inline Any( bool value );
-
+
/** Copy constructor: Sets value of the given any.
-
+
@param rAny another any
*/
inline Any( const Any & rAny ) SAL_THROW( () );
-
+
/** Constructor: Sets a copy of the given data.
-
+
@param pData_ value
@param rType type of value
*/
inline Any( const void * pData_, const Type & rType ) SAL_THROW( () );
-
+
/** Constructor: Sets a copy of the given data.
-
+
@param pData_ value
@param pTypeDescr type of value
*/
inline Any( const void * pData_, typelib_TypeDescription * pTypeDescr ) SAL_THROW( () );
-
+
/** Constructor: Sets a copy of the given data.
-
+
@param pData_ value
@param pType type of value
*/
inline Any( const void * pData_, typelib_TypeDescriptionReference * pType ) SAL_THROW( () );
-
+
/** Destructor: Destructs any content and frees memory.
*/
inline ~Any() SAL_THROW( () );
-
+
/** Assignment operator: Sets the value of the given any.
-
+
@param rAny another any (right side)
@return this any
*/
inline Any & SAL_CALL operator = ( const Any & rAny ) SAL_THROW( () );
-
+
/** Gets the type of the set value.
-
+
@return a Type object of the set value
*/
inline const Type & SAL_CALL getValueType() const SAL_THROW( () )
{ return * reinterpret_cast< const Type * >( &pType ); }
/** Gets the type of the set value.
-
+
@return the UNacquired type description reference of the set value
*/
inline typelib_TypeDescriptionReference * SAL_CALL getValueTypeRef() const SAL_THROW( () )
{ return pType; }
-
+
/** Gets the type description of the set value. Provides ownership of the type description!
Call an explicit typelib_typedescription_release() to release afterwards.
-
+
@param a pointer to type description pointer
*/
inline void SAL_CALL getValueTypeDescription( typelib_TypeDescription ** ppTypeDescr ) const SAL_THROW( () )
{ ::typelib_typedescriptionreference_getDescription( ppTypeDescr, pType ); }
-
+
/** Gets the type class of the set value.
-
+
@return the type class of the set value
*/
inline TypeClass SAL_CALL getValueTypeClass() const SAL_THROW( () )
{ return (TypeClass)pType->eTypeClass; }
-
+
/** Gets the type name of the set value.
-
+
@return the type name of the set value
*/
inline ::rtl::OUString SAL_CALL getValueTypeName() const SAL_THROW( () );
-
+
/** Tests if any contains a value.
-
+
@return true if any has a value, false otherwise
*/
inline sal_Bool SAL_CALL hasValue() const SAL_THROW( () )
{ return (typelib_TypeClass_VOID != pType->eTypeClass); }
-
+
/** Gets a pointer to the set value.
-
+
@return a pointer to the set value
*/
inline const void * SAL_CALL getValue() const SAL_THROW( () )
@@ -185,66 +185,66 @@ public:
template <typename T>
inline T get() const;
#endif // ! defined(EXCEPTIONS_OFF)
-
+
/** Sets a value. If the any already contains a value, that value will be destructed
and its memory freed.
-
+
@param pData_ pointer to value
@param rType type of value
*/
inline void SAL_CALL setValue( const void * pData_, const Type & rType ) SAL_THROW( () );
/** Sets a value. If the any already contains a value, that value will be destructed
and its memory freed.
-
+
@param pData_ pointer to value
@param pType type of value
*/
inline void SAL_CALL setValue( const void * pData_, typelib_TypeDescriptionReference * pType ) SAL_THROW( () );
/** Sets a value. If the any already contains a value, that value will be destructed
and its memory freed.
-
+
@param pData_ pointer to value
@param pTypeDescr type description of value
*/
inline void SAL_CALL setValue( const void * pData_, typelib_TypeDescription * pTypeDescr ) SAL_THROW( () );
-
+
/** Clears this any. If the any already contains a value, that value will be destructed
and its memory freed. After this has been called, the any does not contain a value.
*/
inline void SAL_CALL clear() SAL_THROW( () );
-
+
/** Tests whether this any is extractable to a value of given type.
Widening conversion without data loss is taken into account.
-
+
@param rType destination type
@return true if this any is extractable to value of given type (e.g. using >>= operator)
*/
inline sal_Bool SAL_CALL isExtractableTo( const Type & rType ) const SAL_THROW( () );
-
+
/** Tests whether this any can provide a value of specified type.
Widening conversion without data loss is taken into account.
-
+
@return true if this any can provide a value of specified type
(e.g. using >>= operator)
*/
template <typename T>
inline bool has() const;
-
+
/** Equality operator: compares two anys.
The values need not be of equal type, e.g. a short integer is compared to a long integer.
-
+
@param rAny another any (right side)
@return true if both any contains equal values
*/
inline sal_Bool SAL_CALL operator == ( const Any & rAny ) const SAL_THROW( () );
/** Unequality operator: compares two anys.
The values need not be of equal type, e.g. a short integer is compared to a long integer.
-
+
@param rAny another any (right side)
@return true if both any contains unequal values
*/
inline sal_Bool SAL_CALL operator != ( const Any & rAny ) const SAL_THROW( () );
-
+
private:
// not impl: forbid use with ambiguous type (sal_Unicode, sal_uInt16)
explicit Any( sal_uInt16 );
@@ -293,7 +293,7 @@ inline void SAL_CALL operator <<= ( Any & rAny, bool const & value )
/** Template binary >>= operator to assign a value from an any.
If the any does not contain a value that can be assigned without data loss, then this
operation will fail returning false.
-
+
@tplparam C value type
@param rAny source any (left side)
@param value destination value (right side)
@@ -301,12 +301,12 @@ inline void SAL_CALL operator <<= ( Any & rAny, bool const & value )
*/
template< class C >
inline sal_Bool SAL_CALL operator >>= ( const Any & rAny, C & value ) SAL_THROW( () );
-
+
/** Template equality operator: compares set value of left side any to right side value.
The values need not be of equal type, e.g. a short integer is compared to a long integer.
This operator can be implemented as template member function, if all supported compilers
can cope with template member functions.
-
+
@tplparam C value type
@param rAny another any (left side)
@param value a value (right side)
@@ -318,7 +318,7 @@ inline sal_Bool SAL_CALL operator == ( const Any & rAny, const C & value ) SAL_T
The values need not be of equal type, e.g. a short integer is compared to a long integer.
This operator can be implemented as template member function, if all supported compilers
can cope with template member functions.
-
+
@tplparam C value type
@param rAny another any (left side)
@param value a value (right side)
@@ -369,10 +369,10 @@ inline sal_Bool SAL_CALL operator == ( const Any & rAny, const BaseReference & v
}
/** Gets the meta type of IDL type any.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type any
*/
diff --git a/cppu/inc/com/sun/star/uno/Any.hxx b/cppu/inc/com/sun/star/uno/Any.hxx
index 8ea8c437dde2..da95bb8393b2 100644
--- a/cppu/inc/com/sun/star/uno/Any.hxx
+++ b/cppu/inc/com/sun/star/uno/Any.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,13 +36,13 @@
#include "cppu/unotype.hxx"
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
-{
+{
//__________________________________________________________________________________________________
inline Any::Any() SAL_THROW( () )
@@ -183,7 +183,7 @@ inline sal_Bool Any::operator != ( const Any & rAny ) const SAL_THROW( () )
//__________________________________________________________________________________________________
template< class C >
inline Any SAL_CALL makeAny( const C & value ) SAL_THROW( () )
-{
+{
return Any( &value, ::cppu::getTypeFavourUnsigned(&value) );
}
@@ -199,7 +199,7 @@ inline Any SAL_CALL makeAny( bool const & value ) SAL_THROW( () )
//__________________________________________________________________________________________________
template< class C >
inline void SAL_CALL operator <<= ( Any & rAny, const C & value ) SAL_THROW( () )
-{
+{
const Type & rType = ::cppu::getTypeFavourUnsigned(&value);
::uno_type_any_assign(
&rAny, const_cast< C * >( &value ), rType.getTypeLibType(),
diff --git a/cppu/inc/com/sun/star/uno/Reference.h b/cppu/inc/com/sun/star/uno/Reference.h
index 071cadcfde7b..1ed01fcc7782 100644
--- a/cppu/inc/com/sun/star/uno/Reference.h
+++ b/cppu/inc/com/sun/star/uno/Reference.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,13 +32,13 @@
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
-{
+{
class RuntimeException;
class XInterface;
@@ -66,9 +66,9 @@ protected:
/** the interface pointer
*/
XInterface * _pInterface;
-
+
/** Queries given interface for type rType.
-
+
@param pInterface interface pointer
@param rType interface type
@return interface of demanded type (may be null)
@@ -78,7 +78,7 @@ protected:
#ifndef EXCEPTIONS_OFF
/** Queries given interface for type rType.
Throws a RuntimeException if the demanded interface cannot be queried.
-
+
@param pInterface interface pointer
@param rType interface type
@return interface of demanded type
@@ -86,54 +86,54 @@ protected:
inline static XInterface * SAL_CALL iquery_throw( XInterface * pInterface, const Type & rType )
SAL_THROW( (RuntimeException) );
#endif
-
+
public:
/** Gets interface pointer. This call does not acquire the interface.
-
+
@return UNacquired interface pointer
*/
inline XInterface * SAL_CALL get() const SAL_THROW( () )
{ return _pInterface; }
-
+
/** Checks if reference is null.
-
+
@return true if reference acquires an interface, i.e. true if it is not null
*/
inline sal_Bool SAL_CALL is() const SAL_THROW( () )
{ return (0 != _pInterface); }
-
+
/** Equality operator: compares two interfaces
Checks if both references are null or refer to the same object.
-
+
@param rRef another interface
@return true if both references are null or refer to the same object, false otherwise
*/
inline sal_Bool SAL_CALL operator == ( XInterface * pInterface ) const SAL_THROW( () );
/** Unequality operator: compares two interfaces
Checks if both references are null or refer to the same object.
-
+
@param rRef another interface
@return false if both references are null or refer to the same object, true otherwise
*/
inline sal_Bool SAL_CALL operator != ( XInterface * pInterface ) const SAL_THROW( () );
-
+
/** Equality operator: compares two interfaces
Checks if both references are null or refer to the same object.
-
+
@param rRef another reference
@return true if both references are null or refer to the same object, false otherwise
*/
inline sal_Bool SAL_CALL operator == ( const BaseReference & rRef ) const SAL_THROW( () );
/** Unequality operator: compares two interfaces
Checks if both references are null or refer to the same object.
-
+
@param rRef another reference
@return false if both references are null or refer to the same object, true otherwise
*/
inline sal_Bool SAL_CALL operator != ( const BaseReference & rRef ) const SAL_THROW( () );
/** Needed by some STL containers.
-
+
@param rRef another reference
@return true, if this reference is less than rRef
*/
@@ -183,7 +183,7 @@ template< class interface_type >
class Reference : public BaseReference
{
/** Queries given interface for type interface_type.
-
+
@param pInterface interface pointer
@return interface of demanded type (may be null)
*/
@@ -192,14 +192,14 @@ class Reference : public BaseReference
#ifndef EXCEPTIONS_OFF
/** Queries given interface for type interface_type.
Throws a RuntimeException if the demanded interface cannot be queried.
-
+
@param pInterface interface pointer
@return interface of demanded type
*/
inline static XInterface * SAL_CALL iquery_throw( XInterface * pInterface )
SAL_THROW( (RuntimeException) );
/** Returns the given interface if it is not <NULL/>, throws a RuntimeException otherwise.
-
+
@param pInterface interface pointer
@return pInterface
*/
@@ -236,7 +236,7 @@ class Reference : public BaseReference
static inline XInterface * castToXInterface(interface_type * p) {
return static_cast< XInterface * >(static_cast< void * >(p));
}
-
+
public:
// these are here to force memory de/allocation to sal lib.
/** @internal */
@@ -251,55 +251,55 @@ public:
/** @internal */
inline static void SAL_CALL operator delete ( void *, void * ) SAL_THROW( () )
{}
-
+
/** Destructor: Releases interface if set.
*/
inline ~Reference() SAL_THROW( () );
-
+
/** Default Constructor: Sets null reference.
*/
inline Reference() SAL_THROW( () );
-
+
/** Copy constructor: Copies interface reference.
-
+
@param rRef another reference
*/
inline Reference( const Reference< interface_type > & rRef ) SAL_THROW( () );
/** Constructor: Sets given interface pointer.
-
+
@param pInterface an interface pointer
*/
inline Reference( interface_type * pInterface ) SAL_THROW( () );
-
+
/** Constructor: Sets given interface pointer without acquiring it.
-
+
@param pInterface another reference
@param dummy SAL_NO_ACQUIRE to force obvious distinction to other constructors
*/
inline Reference( interface_type * pInterface, __sal_NoAcquire ) SAL_THROW( () );
/** Constructor: Sets given interface pointer without acquiring it.
Deprecated, please use SAL_NO_ACQUIRE version.
-
+
@deprecated
@param pInterface another reference
@param dummy UNO_REF_NO_ACQUIRE to force obvious distinction to other constructors
*/
inline Reference( interface_type * pInterface, UnoReference_NoAcquire ) SAL_THROW( () );
-
+
/** Constructor: Queries given interface for reference interface type (interface_type).
-
+
@param rRef another reference
@param dummy UNO_QUERY or UNO_REF_QUERY to force obvious distinction to other constructors
*/
inline Reference( const BaseReference & rRef, UnoReference_Query ) SAL_THROW( (RuntimeException) );
/** Constructor: Queries given interface for reference interface type (interface_type).
-
+
@param pInterface an interface pointer
@param dummy UNO_QUERY to force obvious distinction to other constructors
*/
inline Reference( XInterface * pInterface, UnoReference_Query ) SAL_THROW( (RuntimeException) );
/** Constructor: Queries given any for reference interface type (interface_type).
-
+
@param rAny an any
@param dummy UNO_QUERY to force obvious distinction to other constructors
*/
@@ -307,7 +307,7 @@ public:
#ifndef EXCEPTIONS_OFF
/** Constructor: Queries given interface for reference interface type (interface_type).
Throws a RuntimeException if the demanded interface cannot be queried.
-
+
@param rRef another reference
@param dummy UNO_QUERY_THROW or UNO_REF_QUERY_THROW to force obvious distinction
to other constructors
@@ -315,7 +315,7 @@ public:
inline Reference( const BaseReference & rRef, UnoReference_QueryThrow ) SAL_THROW( (RuntimeException) );
/** Constructor: Queries given interface for reference interface type (interface_type).
Throws a RuntimeException if the demanded interface cannot be queried.
-
+
@param pInterface an interface pointer
@param dummy UNO_QUERY_THROW or UNO_REF_QUERY_THROW to force obvious distinction
to other constructors
@@ -323,7 +323,7 @@ public:
inline Reference( XInterface * pInterface, UnoReference_QueryThrow ) SAL_THROW( (RuntimeException) );
/** Constructor: Queries given any for reference interface type (interface_type).
Throws a RuntimeException if the demanded interface cannot be queried.
-
+
@param rAny an any
@param dummy UNO_QUERY_THROW or UNO_REF_QUERY_THROW to force obvious distinction
to other constructors
@@ -348,47 +348,47 @@ public:
*/
inline Reference( interface_type * pInterface, UnoReference_SetThrow ) SAL_THROW( (RuntimeException) );
#endif
-
+
/** Cast operator to Reference< XInterface >: Reference objects are binary compatible and
any interface must be derived from com.sun.star.uno.XInterface.
This a useful direct cast possibility.
*/
inline SAL_CALL operator const Reference< XInterface > & () const SAL_THROW( () )
{ return * reinterpret_cast< const Reference< XInterface > * >( this ); }
-
+
/** Dereference operator: Used to call interface methods.
-
+
@return UNacquired interface pointer
*/
inline interface_type * SAL_CALL operator -> () const SAL_THROW( () )
{ return castFromXInterface(_pInterface); }
-
+
/** Gets interface pointer. This call does not acquire the interface.
-
+
@return UNacquired interface pointer
*/
inline interface_type * SAL_CALL get() const SAL_THROW( () )
{ return castFromXInterface(_pInterface); }
-
+
/** Clears reference, i.e. releases interface. Reference is null after clear() call.
*/
- inline void SAL_CALL clear() SAL_THROW( () );
-
+ inline void SAL_CALL clear() SAL_THROW( () );
+
/** Sets the given interface. An interface already set will be released.
-
+
@param rRef another reference
@return true, if non-null interface was set
*/
inline sal_Bool SAL_CALL set( const Reference< interface_type > & rRef ) SAL_THROW( () );
/** Sets the given interface. An interface already set will be released.
-
+
@param pInterface another interface
@return true, if non-null interface was set
*/
inline sal_Bool SAL_CALL set( interface_type * pInterface ) SAL_THROW( () );
-
+
/** Sets interface pointer without acquiring it. An interface already set will be released.
-
+
@param pInterface an interface pointer
@param dummy SAL_NO_ACQUIRE to force obvious distinction to set methods
@return true, if non-null interface was set
@@ -403,10 +403,10 @@ public:
@return true, if non-null interface was set
*/
inline sal_Bool SAL_CALL set( interface_type * pInterface, UnoReference_NoAcquire ) SAL_THROW( () );
-
+
/** Queries given interface for reference interface type (interface_type) and sets it.
An interface already set will be released.
-
+
@param pInterface an interface pointer
@param dummy UNO_QUERY or UNO_REF_QUERY to force obvious distinction to set methods
@return true, if non-null interface was set
@@ -414,16 +414,16 @@ public:
inline sal_Bool SAL_CALL set( XInterface * pInterface, UnoReference_Query ) SAL_THROW( (RuntimeException) );
/** Queries given interface for reference interface type (interface_type) and sets it.
An interface already set will be released.
-
+
@param rRef another reference
@param dummy UNO_QUERY or UNO_REF_QUERY to force obvious distinction to set methods
@return true, if non-null interface was set
*/
inline sal_Bool SAL_CALL set( const BaseReference & rRef, UnoReference_Query ) SAL_THROW( (RuntimeException) );
-
+
/** Queries given any for reference interface type (interface_type)
and sets it. An interface already set will be released.
-
+
@param rAny
an Any containing an interface
@param dummy
@@ -433,12 +433,12 @@ public:
true, if non-null interface was set
*/
inline bool set( Any const & rAny, UnoReference_Query );
-
+
#ifndef EXCEPTIONS_OFF
/** Queries given interface for reference interface type (interface_type) and sets it.
An interface already set will be released.
Throws a RuntimeException if the demanded interface cannot be set.
-
+
@param pInterface an interface pointer
@param dummy UNO_QUERY_THROW or UNO_REF_QUERY_THROW to force obvious distinction
to set methods
@@ -447,17 +447,17 @@ public:
/** Queries given interface for reference interface type (interface_type) and sets it.
An interface already set will be released.
Throws a RuntimeException if the demanded interface cannot be set.
-
+
@param rRef another reference
@param dummy UNO_QUERY_THROW or UNO_REF_QUERY_THROW to force obvious distinction
to set methods
*/
inline void SAL_CALL set( const BaseReference & rRef, UnoReference_QueryThrow ) SAL_THROW( (RuntimeException) );
-
+
/** Queries given any for reference interface type (interface_type) and
sets it. An interface already set will be released.
Throws a RuntimeException if the demanded interface cannot be set.
-
+
@param rAny
an Any containing an interface
@param dummy
@@ -468,7 +468,7 @@ public:
/** sets the given interface
An interface already set will be released.
Throws a RuntimeException if the source interface is <NULL/>.
-
+
@param pInterface an interface pointer
@param dummy UNO_SET_THROW to force obvious distinction to other set methods
@@ -478,39 +478,39 @@ public:
/** sets the given interface
An interface already set will be released.
Throws a RuntimeException if the source interface is <NULL/>.
-
+
@param rRef an interface reference
@param dummy UNO_SET_THROW to force obvious distinction to other set methods
@since UDK 3.2.8
*/
inline void SAL_CALL set( const Reference< interface_type > & rRef, UnoReference_SetThrow ) SAL_THROW( (RuntimeException) );
-
+
#endif
-
+
/** Assignment operator: Acquires given interface pointer and sets reference.
An interface already set will be released.
-
+
@param pInterface an interface pointer
@return this reference
*/
inline Reference< interface_type > & SAL_CALL operator = ( interface_type * pInterface ) SAL_THROW( () );
/** Assignment operator: Acquires given interface reference and sets reference.
An interface already set will be released.
-
+
@param rRef an interface reference
@return this reference
*/
inline Reference< interface_type > & SAL_CALL operator = ( const Reference< interface_type > & rRef ) SAL_THROW( () );
-
+
/** Queries given interface reference for type interface_type.
-
+
@param rRef interface reference
@return interface reference of demanded type (may be null)
*/
inline static Reference< interface_type > SAL_CALL query( const BaseReference & rRef ) SAL_THROW( (RuntimeException) );
/** Queries given interface for type interface_type.
-
+
@param pInterface interface pointer
@return interface reference of demanded type (may be null)
*/
diff --git a/cppu/inc/com/sun/star/uno/Reference.hxx b/cppu/inc/com/sun/star/uno/Reference.hxx
index 39e9614f20d8..d2a16a149a47 100644
--- a/cppu/inc/com/sun/star/uno/Reference.hxx
+++ b/cppu/inc/com/sun/star/uno/Reference.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,11 +34,11 @@
#include <com/sun/star/uno/genfunc.hxx>
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
{
diff --git a/cppu/inc/com/sun/star/uno/Sequence.h b/cppu/inc/com/sun/star/uno/Sequence.h
index 942050866eae..8b6cda8f322e 100644
--- a/cppu/inc/com/sun/star/uno/Sequence.h
+++ b/cppu/inc/com/sun/star/uno/Sequence.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,19 +44,19 @@ class ByteSequence;
}
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
-{
+{
/** Template C++ class representing an IDL sequence. Template argument is the
sequence element type. C++ Sequences are reference counted and shared,
so the sequence keeps a handle to its data. To keep value semantics,
copies are only generated if the sequence is to be modified (new handle).
-
+
@tplparam E element type of sequence
*/
template< class E >
@@ -66,7 +66,7 @@ class Sequence
@internal
*/
uno_Sequence * _pSequence;
-
+
public:
// these are here to force memory de/allocation to sal lib.
/** @internal */
@@ -85,135 +85,135 @@ public:
inline static void SAL_CALL operator delete ( void *, void * )
SAL_THROW( () )
{}
-
+
/** Static pointer to typelib type of sequence.
Don't use directly, call getCppuType().
@internal
*/
static typelib_TypeDescriptionReference * s_pType;
-
+
/** typedefs the element type of the sequence
*/
typedef E ElementType;
-
+
/** Default constructor: Creates an empty sequence.
*/
inline Sequence() SAL_THROW( () );
-
+
/** Copy constructor: Creates a copy of given sequence.
-
+
@param rSeq another sequence of same type
*/
inline Sequence( const Sequence< E > & rSeq ) SAL_THROW( () );
-
+
/** Constructor: Takes over ownership of given sequence.
-
+
@param pSequence a sequence
@param dummy SAL_NO_ACQUIRE to force obvious distinction to other
constructors
*/
inline Sequence( uno_Sequence * pSequence, __sal_NoAcquire )
SAL_THROW( () );
-
+
/** Constructor: Creates a copy of given elements.
-
+
@param pElement an array of elements
@param len length of array
*/
inline Sequence( const E * pElements, sal_Int32 len );
-
+
/** Constructor: Creates a default constructed sequence of given length.
-
+
@param len initial sequence length
*/
inline Sequence( sal_Int32 len );
-
+
/** Destructor: Releases sequence handle. Last handle will destruct
elements and free memory.
*/
inline ~Sequence() SAL_THROW( () );
-
+
/** Assignment operator: Acquires given sequence handle and releases
previously set handle.
-
+
@param rSeq another sequence of same type
@return this sequence
*/
inline Sequence< E > & SAL_CALL operator = ( const Sequence< E > & rSeq )
SAL_THROW( () );
-
+
/** Gets length of the sequence.
-
+
@return length of sequence
*/
inline sal_Int32 SAL_CALL getLength() const SAL_THROW( () )
{ return _pSequence->nElements; }
-
+
/** Tests whether the sequence has elements, i.e. elements count is
greater than zero.
-
+
@return true, if elements count is greater than zero
*/
inline sal_Bool SAL_CALL hasElements() const SAL_THROW( () )
{ return (_pSequence->nElements > 0); }
-
+
/** Gets a pointer to elements array for reading.
If the sequence has a length of 0, then the returned pointer is
undefined.
-
+
@return pointer to elements array
*/
inline const E * SAL_CALL getConstArray() const SAL_THROW( () )
{ return reinterpret_cast< const E * >( _pSequence->elements ); }
-
+
/** Gets a pointer to elements array for reading and writing.
In general if the sequence has a handle acquired by other sequences
(reference count > 1), then a new sequence is created copy constructing
all elements to keep value semantics!
If the sequence has a length of 0, then the returned pointer is
undefined.
-
+
@return pointer to elements array
*/
inline E * SAL_CALL getArray();
-
+
/** Non-const index operator: Obtains a reference to element indexed at
given position.
The implementation does not check for array bounds!
In general if the sequence has a handle acquired by other sequences
(reference count > 1), then a new sequence is created copy constructing
all elements to keep value semantics!
-
+
@param nIndex index
@return non-const C++ reference to element
*/
inline E & SAL_CALL operator [] ( sal_Int32 nIndex );
-
+
/** Const index operator: Obtains a reference to element indexed at
given position. The implementation does not check for array bounds!
-
+
@param nIndex index
@return const C++ reference to element
*/
inline const E & SAL_CALL operator [] ( sal_Int32 nIndex ) const
SAL_THROW( () );
-
+
/** Equality operator: Compares two sequences.
-
+
@param rSeq another sequence of same type (right side)
@return true if both sequences are equal, false otherwise
*/
inline sal_Bool SAL_CALL operator == ( const Sequence< E > & rSeq ) const
SAL_THROW( () );
-
+
/** Unequality operator: Compares two sequences.
-
+
@param rSeq another sequence of same type (right side)
@return false if both sequences are equal, true otherwise
*/
inline sal_Bool SAL_CALL operator != ( const Sequence< E > & rSeq ) const
SAL_THROW( () );
-
+
/** Reallocates sequence to new length.
If the new length is smaller than the former, then upper elements will
be destructed (and their memory freed). If the new length is greater
@@ -221,13 +221,13 @@ public:
If the sequence has a handle acquired by other sequences
(reference count > 1), then the remaining elements are copy constructed
to a new sequence handle to keep value semantics!
-
+
@param nSize new size of sequence
*/
inline void SAL_CALL realloc( sal_Int32 nSize );
-
+
/** Provides UNacquired sequence handle.
-
+
@return UNacquired sequence handle
*/
inline uno_Sequence * SAL_CALL get() const SAL_THROW( () )
@@ -235,7 +235,7 @@ public:
};
/** Creates a UNO byte sequence from a SAL byte sequence.
-
+
@param rByteSequence a byte sequence
@return a UNO byte sequence
*/
@@ -251,7 +251,7 @@ inline ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL toUnoSequence(
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@tplparam E element type of sequence
@param dummy typed pointer for function signature
@return type of IDL sequence
@@ -265,7 +265,7 @@ SAL_CALL getCppuType( const ::com::sun::star::uno::Sequence< E > * )
This function has been introduced, because one cannot get the (templated)
cppu type out of C++ array types. Array types have special
getCppuArrayTypeN() functions.
-
+
@attention
the given element type must be the same as the template argument type!
@tplparam E element type of sequence
@@ -279,7 +279,7 @@ SAL_CALL getCppuSequenceType( const ::com::sun::star::uno::Type & rElementType )
/** Gets the meta type of IDL sequence< char >.
This function has been introduced due to ambiguities with unsigned short.
-
+
@param dummy typed pointer for function signature
@return type of IDL sequence< char >
*/
diff --git a/cppu/inc/com/sun/star/uno/Sequence.hxx b/cppu/inc/com/sun/star/uno/Sequence.hxx
index 8a9b43d1339e..ca94d0acbea9 100644
--- a/cppu/inc/com/sun/star/uno/Sequence.hxx
+++ b/cppu/inc/com/sun/star/uno/Sequence.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,11 +37,11 @@
#include "cppu/unotype.hxx"
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
{
@@ -82,8 +82,8 @@ inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len )
{
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
#if ! defined EXCEPTIONS_OFF
- sal_Bool success =
-#endif
+ sal_Bool success =
+#endif
::uno_type_sequence_construct(
&_pSequence, rType.getTypeLibType(),
const_cast< E * >( pElements ), len, (uno_AcquireFunc)cpp_acquire );
@@ -99,8 +99,8 @@ inline Sequence< E >::Sequence( sal_Int32 len )
{
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
#if ! defined EXCEPTIONS_OFF
- sal_Bool success =
-#endif
+ sal_Bool success =
+#endif
::uno_type_sequence_construct(
&_pSequence, rType.getTypeLibType(),
0, len, (uno_AcquireFunc)cpp_acquire );
@@ -158,7 +158,7 @@ inline E * Sequence< E >::getArray()
{
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
#if ! defined EXCEPTIONS_OFF
- sal_Bool success =
+ sal_Bool success =
#endif
::uno_type_sequence_reference2One(
&_pSequence, rType.getTypeLibType(),
@@ -197,7 +197,7 @@ inline void Sequence< E >::realloc( sal_Int32 nSize )
{
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
#if !defined EXCEPTIONS_OFF
- sal_Bool success =
+ sal_Bool success =
#endif
::uno_type_sequence_realloc(
&_pSequence, rType.getTypeLibType(), nSize,
diff --git a/cppu/inc/com/sun/star/uno/Type.h b/cppu/inc/com/sun/star/uno/Type.h
index 6490fa4ab7f1..56cf94aed642 100644
--- a/cppu/inc/com/sun/star/uno/Type.h
+++ b/cppu/inc/com/sun/star/uno/Type.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
************************************************************************/
#ifndef _COM_SUN_STAR_UNO_TYPE_H_
#define _COM_SUN_STAR_UNO_TYPE_H_
-
+
#include <typelib/typedescription.h>
#ifndef _COM_SUN_STAR_UNO_TYPECLASS_HDL_
#include <com/sun/star/uno/TypeClass.hdl>
@@ -38,13 +38,13 @@
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
-{
+{
/** Enum defining UNO_TYPE_NO_ACQUIRE for type description reference transfer.
*/
@@ -69,7 +69,7 @@ class Type
@internal
*/
typelib_TypeDescriptionReference * _pType;
-
+
public:
// these are here to force memory de/allocation to sal lib.
/** @internal */
@@ -84,118 +84,118 @@ public:
/** @internal */
inline static void SAL_CALL operator delete ( void *, void * ) SAL_THROW( () )
{}
-
+
/** Default Constructor: Type is set to void.
*/
inline Type() SAL_THROW( () );
-
+
/** Constructor: Type is constructed by given name and type class.
-
+
@param eTypeClass type class of type
@param rTypeName name of type
*/
inline Type( TypeClass eTypeClass, const ::rtl::OUString & rTypeName ) SAL_THROW( () );
-
+
/** Constructor: Type is constructed by given name and type class.
-
+
@param eTypeClass type class of type
@param pTypeName name of type
*/
inline Type( TypeClass eTypeClass, const sal_Char * pTypeName ) SAL_THROW( () );
-
+
/** Constructor: Type is (copy) constructed by given C type description reference.
-
+
@param pType C type description reference
*/
inline Type( typelib_TypeDescriptionReference * pType ) SAL_THROW( () );
-
+
/** Constructor: Type is (copy) constructed by given C type description reference
without acquiring it.
-
+
@param pType C type description reference
@param dummy UNO_TYPE_NO_ACQUIRE to force obvious distinction to other constructors
*/
inline Type( typelib_TypeDescriptionReference * pType, UnoType_NoAcquire ) SAL_THROW( () );
/** Constructor: Type is (copy) constructed by given C type description reference
without acquiring it.
-
+
@param pType C type description reference
@param dummy SAL_NO_ACQUIRE to force obvious distinction to other constructors
*/
inline Type( typelib_TypeDescriptionReference * pType, __sal_NoAcquire ) SAL_THROW( () );
-
+
/** Copy constructor: Type is copy constructed by given type.
-
+
@param rType another type
*/
inline Type( const Type & rType ) SAL_THROW( () );
-
+
/** Destructor: Releases acquired C type description reference.
*/
inline ~Type() SAL_THROW( () )
{ ::typelib_typedescriptionreference_release( _pType ); }
-
+
/** Assignment operator: Acquires right side type and releases previously set type.
-
+
@param rType another type (right side)
@return this type
*/
inline Type & SAL_CALL operator = ( const Type & rType ) SAL_THROW( () );
-
+
/** Gets the type class of set type.
-
+
@return type class of set type
*/
inline TypeClass SAL_CALL getTypeClass() const SAL_THROW( () )
{ return (TypeClass)_pType->eTypeClass; }
-
+
/** Gets the name of the set type.
-
+
@return name of the set type
*/
inline ::rtl::OUString SAL_CALL getTypeName() const SAL_THROW( () );
-
+
/** Obtains a full type description of set type.
-
+
@param ppDescr [inout] type description
*/
inline void SAL_CALL getDescription( typelib_TypeDescription ** ppDescr ) const SAL_THROW( () )
{ ::typelib_typedescriptionreference_getDescription( ppDescr, _pType ); }
-
+
/** Gets the C typelib type description reference pointer. Does not acquire the reference!
-
+
@return UNacquired type description reference
*/
inline typelib_TypeDescriptionReference * SAL_CALL getTypeLibType() const SAL_THROW( () )
{ return _pType; }
-
+
/** Tests if values of this reflected type can be assigned by values of given type.
This includes widening conversion (e.g., long assignable from short), as long as there
is no data loss.
-
+
@param rType another type
@return true if values of this type can be assigned from values of given type,
false otherwise
*/
inline sal_Bool SAL_CALL isAssignableFrom( const Type & rType ) const SAL_THROW( () )
{ return ::typelib_typedescriptionreference_isAssignableFrom( _pType, rType._pType ); }
-
+
/** Compares two types.
-
+
@param rType another type
@return true if both types refer the same type, false otherwise
*/
inline sal_Bool SAL_CALL equals( const Type & rType ) const SAL_THROW( () )
{ return ::typelib_typedescriptionreference_equals( _pType, rType._pType ); }
/** Equality operator: Compares two types.
-
+
@param rType another type
@return true if both types refer the same type, false otherwise
*/
inline sal_Bool SAL_CALL operator == ( const Type & rType ) const SAL_THROW( () )
{ return ::typelib_typedescriptionreference_equals( _pType, rType._pType ); }
/** Unequality operator: Compares two types.
-
+
@param rType another type
@return false if both types refer the same type, true otherwise
*/
@@ -221,7 +221,7 @@ public:
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type "type"
*/
@@ -232,35 +232,35 @@ inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const ::com::su
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuVoidType() SAL_THROW( () );
/** Gets the meta type of IDL type void.
-
+
@return type of IDL type void
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getVoidCppuType() SAL_THROW( () );
/** Gets the meta type of IDL type boolean.
-
+
@return type of IDL type boolean
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuBooleanType() SAL_THROW( () );
/** Gets the meta type of IDL type boolean.
-
+
@return type of IDL type boolean
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getBooleanCppuType() SAL_THROW( () );
/** Gets the meta type of IDL type boolean.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type boolean
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const sal_Bool * ) SAL_THROW( () );
/** Gets the meta type of IDL type boolean.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type boolean
*/
@@ -268,153 +268,153 @@ inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType(
bool const * ) SAL_THROW( () );
/** Gets the meta type of IDL type char.
-
+
@return type of IDL type char
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCharCppuType() SAL_THROW( () );
/** Gets the meta type of IDL type char.
-
+
@return type of IDL type char
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuCharType() SAL_THROW( () );
/** Gets the meta type of IDL type byte.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type byte
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const sal_Int8 * ) SAL_THROW( () );
/** Gets the meta type of IDL type string.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type string
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const ::rtl::OUString * ) SAL_THROW( () );
/** Gets the meta type of IDL type short.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type short
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const sal_Int16 * ) SAL_THROW( () );
/** Gets the meta type of IDL type unsigned short.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type unsigned short
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const sal_uInt16 * ) SAL_THROW( () );
/** Gets the meta type of IDL type long.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type long
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const sal_Int32 * ) SAL_THROW( () );
/** Gets the meta type of IDL type unsigned long.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type unsigned long
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const sal_uInt32 * ) SAL_THROW( () );
/** Gets the meta type of IDL type hyper.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type hyper
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const sal_Int64 * ) SAL_THROW( () );
/** Gets the meta type of IDL type unsigned hyper.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type unsigned hyper
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const sal_uInt64 * ) SAL_THROW( () );
/** Gets the meta type of IDL type float.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type float
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const float * ) SAL_THROW( () );
/** Gets the meta type of IDL type double.
-
+
There are cases (involving templates) where uses of getCppuType are known to
not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.
-
+
@param dummy typed pointer for function signature
@return type of IDL type double
*/
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuType( const double * ) SAL_THROW( () );
/** Array template function to get meta type for one-dimensional arrays.
-
+
@param pT array pointer
@return type of array
*/
template< class T >
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuArrayType1( T * pT ) SAL_THROW( () );
/** Array template function to get meta type for two-dimensional arrays.
-
+
@param pT array pointer
@return type of array
*/
template< class T >
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuArrayType2( T * pT ) SAL_THROW( () );
/** Array template function to get meta type for three-dimensional arrays.
-
+
@param pT array pointer
@return type of array
*/
template< class T >
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuArrayType3( T * pT ) SAL_THROW( () );
/** Array template function to get meta type for four-dimensional arrays.
-
+
@param pT array pointer
@return type of array
*/
template< class T >
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuArrayType4( T * pT ) SAL_THROW( () );
/** Array template function to get meta type for five-dimensional arrays.
-
+
@param pT array pointer
@return type of array
*/
template< class T >
inline const ::com::sun::star::uno::Type & SAL_CALL getCppuArrayType5( T * pT ) SAL_THROW( () );
/** Array template function to get meta type for six-dimensional arrays.
-
+
@param pT array pointer
@return type of array
*/
diff --git a/cppu/inc/com/sun/star/uno/Type.hxx b/cppu/inc/com/sun/star/uno/Type.hxx
index 46fd86329424..83f7aff9789c 100644
--- a/cppu/inc/com/sun/star/uno/Type.hxx
+++ b/cppu/inc/com/sun/star/uno/Type.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,11 +33,11 @@
#include "cppu/unotype.hxx"
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
{
diff --git a/cppu/inc/com/sun/star/uno/genfunc.h b/cppu/inc/com/sun/star/uno/genfunc.h
index 1b0dbd2c4cce..168a98fdcf04 100644
--- a/cppu/inc/com/sun/star/uno/genfunc.h
+++ b/cppu/inc/com/sun/star/uno/genfunc.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,28 +33,28 @@
typedef struct _typelib_TypeDescriptionReference typelib_TypeDescriptionReference;
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
-{
+{
/** Function to acquire a C++ interface.
-
+
@param pCppI C++ interface pointer
*/
inline void SAL_CALL cpp_acquire( void * pCppI )
SAL_THROW( () );
/** Function to release a C++ interface.
-
+
@param pCppI C++ interface pointer
*/
inline void SAL_CALL cpp_release( void * pCppI )
SAL_THROW( () );
/** Function to query for a C++ interface.
-
+
@param pCppI C++ interface pointer
@param pType demanded interface type
@return acquired C++ interface pointer or null
diff --git a/cppu/inc/com/sun/star/uno/genfunc.hxx b/cppu/inc/com/sun/star/uno/genfunc.hxx
index 88234bd81389..097fb87aef09 100644
--- a/cppu/inc/com/sun/star/uno/genfunc.hxx
+++ b/cppu/inc/com/sun/star/uno/genfunc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,13 +33,13 @@
namespace com
-{
+{
namespace sun
-{
+{
namespace star
-{
+{
namespace uno
-{
+{
//==================================================================================================
inline void SAL_CALL cpp_acquire( void * pCppI )