diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-27 11:14:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-14 13:43:38 +0200 |
commit | 8353667d35bc511378c9b14261b6bb11b7bd56aa (patch) | |
tree | a065c941301f2b693445958046360b27a651d439 /chart2/source/inc/CommonFunctors.hxx | |
parent | 6c47de46613b531bd975d073cf31c3fda6f8b8da (diff) |
com::sun::star->css in chart2
Change-Id: I04320d32d6d5c54e461cfabef58645f8b772bc69
Diffstat (limited to 'chart2/source/inc/CommonFunctors.hxx')
-rw-r--r-- | chart2/source/inc/CommonFunctors.hxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/chart2/source/inc/CommonFunctors.hxx b/chart2/source/inc/CommonFunctors.hxx index 4599d0c47bad..ce49d68f274d 100644 --- a/chart2/source/inc/CommonFunctors.hxx +++ b/chart2/source/inc/CommonFunctors.hxx @@ -32,34 +32,34 @@ namespace chart namespace CommonFunctors { -/** unary function to convert any type T into a ::com::sun::star::uno::Any. +/** unary function to convert any type T into a css::uno::Any. <p>uno::makeAny is an inline function. Thus is cannot be taken directly (via mem_fun_ptr)</p> */ template< typename T > - struct makeAny : public ::std::unary_function< T, ::com::sun::star::uno::Any > + struct makeAny : public ::std::unary_function< T, css::uno::Any > { - ::com::sun::star::uno::Any operator() ( const T & aVal ) + css::uno::Any operator() ( const T & aVal ) { - return ::com::sun::star::uno::makeAny( aVal ); + return css::uno::makeAny( aVal ); } }; -/** unary function to convert ::com::sun::star::uno::Any into a double number. +/** unary function to convert css::uno::Any into a double number. <p>In case no number can be generated from the Any, NaN (see rtl::math::SetNAN()) is returned.</p> */ -struct OOO_DLLPUBLIC_CHARTTOOLS AnyToDouble : public ::std::unary_function< ::com::sun::star::uno::Any, double > +struct OOO_DLLPUBLIC_CHARTTOOLS AnyToDouble : public ::std::unary_function< css::uno::Any, double > { - double operator() ( const ::com::sun::star::uno::Any & rAny ) + double operator() ( const css::uno::Any & rAny ) { double fResult; ::rtl::math::setNan( & fResult ); - ::com::sun::star::uno::TypeClass eClass( rAny.getValueType().getTypeClass() ); - if( eClass == ::com::sun::star::uno::TypeClass_DOUBLE ) + css::uno::TypeClass eClass( rAny.getValueType().getTypeClass() ); + if( eClass == css::uno::TypeClass_DOUBLE ) { fResult = * static_cast< const double * >( rAny.getValue() ); } @@ -68,15 +68,15 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToDouble : public ::std::unary_function< ::co } }; -/** unary function to convert ::com::sun::star::uno::Any into an +/** unary function to convert css::uno::Any into an OUString. */ -struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public ::std::unary_function< ::com::sun::star::uno::Any, OUString > +struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public ::std::unary_function< css::uno::Any, OUString > { - OUString operator() ( const ::com::sun::star::uno::Any & rAny ) + OUString operator() ( const css::uno::Any & rAny ) { - ::com::sun::star::uno::TypeClass eClass( rAny.getValueType().getTypeClass() ); - if( eClass == ::com::sun::star::uno::TypeClass_DOUBLE ) + css::uno::TypeClass eClass( rAny.getValueType().getTypeClass() ); + if( eClass == css::uno::TypeClass_DOUBLE ) { const double* pDouble = static_cast< const double * >( rAny.getValue() ); if( ::rtl::math::isNan(*pDouble) ) @@ -89,7 +89,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public ::std::unary_function< ::co true // remove trailing zeros ); } - else if( eClass == ::com::sun::star::uno::TypeClass_STRING ) + else if( eClass == css::uno::TypeClass_STRING ) { return * static_cast< const OUString * >( rAny.getValue() ); } |