diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-20 10:44:15 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-21 06:36:03 +0000 |
commit | d4d18b8613ab3ae38fe1ce1e3300e23ee6d42d44 (patch) | |
tree | 0d7342ee6c35add40c0e46999cee1d81f35405de | |
parent | ab4c54662ed0abd8603a35b3c8173adf0be87b3d (diff) |
com::sun::star->css in include/cppu
Change-Id: I85e866fc5b52c3bbedd5b54549dba018b70be2f7
Reviewed-on: https://gerrit.libreoffice.org/19485
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | include/cppu/unotype.hxx | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/include/cppu/unotype.hxx b/include/cppu/unotype.hxx index 4d6194f00212..edacc774f723 100644 --- a/include/cppu/unotype.hxx +++ b/include/cppu/unotype.hxx @@ -96,13 +96,13 @@ template< typename > struct UnoSequenceType; namespace detail { -inline ::com::sun::star::uno::Type const & getTypeFromTypeDescriptionReference( +inline css::uno::Type const & getTypeFromTypeDescriptionReference( ::typelib_TypeDescriptionReference * const * tdr) { - return *reinterpret_cast< ::com::sun::star::uno::Type const * >(tdr); + return *reinterpret_cast< css::uno::Type const * >(tdr); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & getTypeFromTypeClass(::typelib_TypeClass tc) { return getTypeFromTypeDescriptionReference( ::typelib_static_type_getByTypeClass(tc)); @@ -114,32 +114,32 @@ getTypeFromTypeClass(::typelib_TypeClass tc) { namespace cppu { namespace detail { -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::cppu::UnoVoidType const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_VOID); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER bool const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_BOOLEAN); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER sal_Bool const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_BOOLEAN); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::sal_Int8 const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_BYTE); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::sal_Int16 const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_SHORT); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType( SAL_UNUSED_PARAMETER ::cppu::UnoUnsignedShortType const *) { @@ -147,61 +147,61 @@ cppu_detail_getUnoType( ::typelib_TypeClass_UNSIGNED_SHORT); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::sal_Int32 const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_LONG); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::sal_uInt32 const *) { return ::cppu::detail::getTypeFromTypeClass( ::typelib_TypeClass_UNSIGNED_LONG); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::sal_Int64 const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_HYPER); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::sal_uInt64 const *) { return ::cppu::detail::getTypeFromTypeClass( ::typelib_TypeClass_UNSIGNED_HYPER); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER float const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_FLOAT); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER double const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_DOUBLE); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::cppu::UnoCharType const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_CHAR); } -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::rtl::OUString const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_STRING); } -inline ::com::sun::star::uno::Type const & -cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Type const *) +inline css::uno::Type const & +cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::uno::Type const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_TYPE); } -inline ::com::sun::star::uno::Type const & -cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Any const *) +inline css::uno::Type const & +cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::uno::Any const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_ANY); } -template< typename T > inline ::com::sun::star::uno::Type const & +template< typename T > inline css::uno::Type const & cppu_detail_getUnoType( SAL_UNUSED_PARAMETER ::cppu::UnoSequenceType< T > const *) { @@ -214,29 +214,29 @@ cppu_detail_getUnoType( return ::cppu::detail::getTypeFromTypeDescriptionReference(&p); } -template< typename T > inline ::com::sun::star::uno::Type const & +template< typename T > inline css::uno::Type const & cppu_detail_getUnoType( - SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T > const *) + SAL_UNUSED_PARAMETER css::uno::Sequence< T > const *) { return cppu_detail_getUnoType( static_cast< ::cppu::UnoSequenceType< T > * >(0)); } -inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType( - SAL_UNUSED_PARAMETER ::com::sun::star::uno::Exception const *) +inline css::uno::Type const & cppu_detail_getUnoType( + SAL_UNUSED_PARAMETER css::uno::Exception const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_EXCEPTION); } -inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType( - SAL_UNUSED_PARAMETER ::com::sun::star::uno::XInterface const *) +inline css::uno::Type const & cppu_detail_getUnoType( + SAL_UNUSED_PARAMETER css::uno::XInterface const *) { return ::cppu::detail::getTypeFromTypeClass(::typelib_TypeClass_INTERFACE); } -template< typename T > inline ::com::sun::star::uno::Type const & +template< typename T > inline css::uno::Type const & cppu_detail_getUnoType( - SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< T > const *) + SAL_UNUSED_PARAMETER css::uno::Reference< T > const *) { return ::cppu::UnoType< T >::get(); } @@ -246,7 +246,7 @@ cppu_detail_getUnoType( namespace cppu { /** - Get the com::sun::star::uno::Type instance representing a certain UNO type. + Get the css::uno::Type instance representing a certain UNO type. For each C++ type representing a UNO type, the corresponding instantiation of this template has a public static member function get(). (The template is @@ -261,13 +261,13 @@ namespace cppu { cppu::UnoUnsignedShortType, cppu::UnoCharType, cppu::UnoSequenceType with any appropriate template argument (the latter three to unambiguously specify UNO types, as the UNO types UNSIGNED SHORT and CHAR map to the same C++ type), - and com::sun::star::uno::Reference with any appropriate template argument. + and css::uno::Reference with any appropriate template argument. @since UDK 3.2.2 */ template< typename T > class UnoType { public: - static inline ::com::sun::star::uno::Type const & get() { + static inline css::uno::Type const & get() { using namespace ::cppu::detail; #if defined LIBO_INTERNAL_ONLY typedef typename std::remove_reference<T>::type T1; @@ -298,7 +298,7 @@ template<> css::uno::Type inline const & UnoType<void>::get() { @since UDK 3.2.2 */ -template< typename T > inline ::com::sun::star::uno::Type const & +template< typename T > inline css::uno::Type const & getTypeFavourUnsigned(SAL_UNUSED_PARAMETER T const *) { return ::cppu::UnoType< T >::get(); } @@ -313,7 +313,7 @@ getTypeFavourUnsigned(SAL_UNUSED_PARAMETER T const *) { @since UDK 3.2.2 */ -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & getTypeFavourUnsigned(SAL_UNUSED_PARAMETER ::sal_uInt16 const *) { return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get(); } @@ -328,8 +328,8 @@ getTypeFavourUnsigned(SAL_UNUSED_PARAMETER ::sal_uInt16 const *) { @since UDK 3.2.2 */ -template< typename T > inline ::com::sun::star::uno::Type const & -getTypeFavourUnsigned(::com::sun::star::uno::Sequence< T > const *); +template< typename T > inline css::uno::Type const & +getTypeFavourUnsigned(css::uno::Sequence< T > const *); // defined in com/sun/star/uno/Sequence.hxx /// @cond INTERNAL @@ -345,7 +345,7 @@ getTypeFavourUnsigned(::com::sun::star::uno::Sequence< T > const *); @since UDK 3.2.3 */ -template< typename T > inline ::com::sun::star::uno::Type const & +template< typename T > inline css::uno::Type const & getTypeFavourChar(SAL_UNUSED_PARAMETER T const *) { return ::cppu::UnoType< T >::get(); } @@ -361,7 +361,7 @@ getTypeFavourChar(SAL_UNUSED_PARAMETER T const *) { @since UDK 3.2.3 */ -inline ::com::sun::star::uno::Type const & +inline css::uno::Type const & getTypeFavourChar(SAL_UNUSED_PARAMETER ::sal_Unicode const *) { return ::cppu::UnoType< ::cppu::UnoCharType >::get(); } @@ -377,8 +377,8 @@ getTypeFavourChar(SAL_UNUSED_PARAMETER ::sal_Unicode const *) { @since UDK 3.2.3 */ -template< typename T > inline ::com::sun::star::uno::Type const & -getTypeFavourChar(::com::sun::star::uno::Sequence< T > const *); +template< typename T > inline css::uno::Type const & +getTypeFavourChar(css::uno::Sequence< T > const *); // defined in com/sun/star/uno/Sequence.hxx /// @endcond |