diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-12-21 23:10:24 -0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-12-25 06:04:59 +0000 |
commit | 0e028d6ceb2a3900af06f50efecfdc0565b5e7b2 (patch) | |
tree | 6fd09729bf55f62f5efb39dc8a2453c3fee98357 /editeng/source/accessibility | |
parent | de9475756effa8102cc4090db8d03393a02fdc65 (diff) |
OUString cleanups in editeng/accessibility
Change-Id: Ie280c48cabec4ef9e0c623f8966a65027b975fe4
Reviewed-on: https://gerrit.libreoffice.org/1468
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'editeng/source/accessibility')
5 files changed, 70 insertions, 79 deletions
diff --git a/editeng/source/accessibility/AccessibleComponentBase.cxx b/editeng/source/accessibility/AccessibleComponentBase.cxx index 79ef598a3ba9..f796c33dfadd 100644 --- a/editeng/source/accessibility/AccessibleComponentBase.cxx +++ b/editeng/source/accessibility/AccessibleComponentBase.cxx @@ -184,19 +184,17 @@ sal_Int32 SAL_CALL AccessibleComponentBase::getBackground (void) -::rtl::OUString SAL_CALL AccessibleComponentBase::getTitledBorderText (void) +OUString SAL_CALL AccessibleComponentBase::getTitledBorderText (void) throw (::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString (""); + return OUString(); } - - -::rtl::OUString SAL_CALL AccessibleComponentBase::getToolTipText (void) +OUString SAL_CALL AccessibleComponentBase::getToolTipText (void) throw (::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString (""); + return OUString(); } diff --git a/editeng/source/accessibility/AccessibleContextBase.cxx b/editeng/source/accessibility/AccessibleContextBase.cxx index 8a11762b89b2..895f65511e6b 100644 --- a/editeng/source/accessibility/AccessibleContextBase.cxx +++ b/editeng/source/accessibility/AccessibleContextBase.cxx @@ -33,7 +33,6 @@ #include <utility> -using namespace ::rtl; using namespace ::com::sun::star; using namespace ::com::sun::star::accessibility; using ::com::sun::star::uno::Reference; @@ -231,7 +230,7 @@ uno::Reference<XAccessible> SAL_CALL { ThrowIfDisposed (); throw lang::IndexOutOfBoundsException ( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("no child with index ") + nIndex), + "no child with index " + OUString(nIndex), NULL); } @@ -296,7 +295,7 @@ sal_Int16 SAL_CALL -::rtl::OUString SAL_CALL +OUString SAL_CALL AccessibleContextBase::getAccessibleDescription (void) throw (::com::sun::star::uno::RuntimeException) { @@ -423,8 +422,7 @@ lang::Locale SAL_CALL //===== XAccessibleEventListener ============================================ -void SAL_CALL - AccessibleContextBase::addAccessibleEventListener ( +void SAL_CALL AccessibleContextBase::addAccessibleEventListener ( const uno::Reference<XAccessibleEventListener >& rxListener) throw (uno::RuntimeException) { @@ -447,8 +445,7 @@ void SAL_CALL -void SAL_CALL - AccessibleContextBase::removeAccessibleEventListener ( +void SAL_CALL AccessibleContextBase::removeAccessibleEventListener ( const uno::Reference<XAccessibleEventListener >& rxListener ) throw (uno::RuntimeException) { @@ -473,8 +470,7 @@ void SAL_CALL //===== XServiceInfo ======================================================== -::rtl::OUString SAL_CALL - AccessibleContextBase::getImplementationName (void) +OUString SAL_CALL AccessibleContextBase::getImplementationName (void) throw (::com::sun::star::uno::RuntimeException) { ThrowIfDisposed (); @@ -491,7 +487,7 @@ sal_Bool SAL_CALL ThrowIfDisposed (); // Iterate over all supported service names and return true if on of them // matches the given name. - uno::Sequence< ::rtl::OUString> aSupportedServices ( + uno::Sequence< OUString > aSupportedServices ( getSupportedServiceNames ()); for (int i=0; i<aSupportedServices.getLength(); i++) if (sServiceName == aSupportedServices[i]) @@ -502,16 +498,14 @@ sal_Bool SAL_CALL -uno::Sequence< ::rtl::OUString> SAL_CALL +uno::Sequence< OUString > SAL_CALL AccessibleContextBase::getSupportedServiceNames (void) throw (::com::sun::star::uno::RuntimeException) { ThrowIfDisposed (); static const OUString sServiceNames[2] = { - OUString( - "com.sun.star.accessibility.Accessible"), - OUString( - "com.sun.star.accessibility.AccessibleContext") + "com.sun.star.accessibility.Accessible", + "com.sun.star.accessibility.AccessibleContext" }; return uno::Sequence<OUString> (sServiceNames, 2); } @@ -564,7 +558,7 @@ void SAL_CALL AccessibleContextBase::disposing (void) void AccessibleContextBase::SetAccessibleDescription ( - const ::rtl::OUString& rDescription, + const OUString& rDescription, StringOrigin eDescriptionOrigin) throw (uno::RuntimeException) { @@ -589,7 +583,7 @@ void AccessibleContextBase::SetAccessibleDescription ( void AccessibleContextBase::SetAccessibleName ( - const ::rtl::OUString& rName, + const OUString& rName, StringOrigin eNameOrigin) throw (uno::RuntimeException) { @@ -613,19 +607,19 @@ void AccessibleContextBase::SetAccessibleName ( -::rtl::OUString AccessibleContextBase::CreateAccessibleDescription (void) +OUString AccessibleContextBase::CreateAccessibleDescription (void) throw (::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("Empty Description")); + return OUString("Empty Description"); } -::rtl::OUString AccessibleContextBase::CreateAccessibleName (void) +OUString AccessibleContextBase::CreateAccessibleName (void) throw (::com::sun::star::uno::RuntimeException) { - return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("Empty Name")); + return OUString("Empty Name"); } @@ -669,8 +663,7 @@ void AccessibleContextBase::ThrowIfDisposed (void) if (rBHelper.bDisposed || rBHelper.bInDispose) { OSL_TRACE ("Calling disposed object. Throwing exception:"); - throw lang::DisposedException ( - OUString("object has been already disposed"), + throw lang::DisposedException ("object has been already disposed", static_cast<uno::XWeak*>(this)); } } diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index 602879ed7a9e..634a91c287d9 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -167,7 +167,7 @@ namespace accessibility } } - ::rtl::OUString AccessibleEditableTextPara::implGetText() + OUString AccessibleEditableTextPara::implGetText() { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -421,7 +421,7 @@ namespace accessibility DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); if( nIndex < 0 || nIndex >= getCharacterCount() ) - throw lang::IndexOutOfBoundsException(::rtl::OUString("AccessibleEditableTextPara: character index out of bounds"), + throw lang::IndexOutOfBoundsException("AccessibleEditableTextPara: character index out of bounds", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > (this) ) ); // disambiguate hierarchy } @@ -431,7 +431,7 @@ namespace accessibility DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); if( nIndex < 0 || nIndex > getCharacterCount() ) - throw lang::IndexOutOfBoundsException(::rtl::OUString("AccessibleEditableTextPara: character position out of bounds"), + throw lang::IndexOutOfBoundsException("AccessibleEditableTextPara: character position out of bounds", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > (this) ) ); // disambiguate hierarchy } @@ -510,7 +510,7 @@ namespace accessibility if( mpEditSource ) return *mpEditSource; else - throw uno::RuntimeException(::rtl::OUString("No edit source, object is defunct"), + throw uno::RuntimeException("No edit source, object is defunct", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy @@ -524,7 +524,7 @@ namespace accessibility SvxAccessibleTextAdapter* pTextForwarder = rEditSource.GetTextForwarderAdapter(); if( !pTextForwarder ) - throw uno::RuntimeException(::rtl::OUString("Unable to fetch text forwarder, object is defunct"), + throw uno::RuntimeException("Unable to fetch text forwarder, object is defunct", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy @@ -532,7 +532,7 @@ namespace accessibility if( pTextForwarder->IsValid() ) return *pTextForwarder; else - throw uno::RuntimeException(::rtl::OUString("Text forwarder is invalid, object is defunct"), + throw uno::RuntimeException("Text forwarder is invalid, object is defunct", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy @@ -547,7 +547,7 @@ namespace accessibility if( !pViewForwarder ) { - throw uno::RuntimeException(::rtl::OUString("Unable to fetch view forwarder, object is defunct"), + throw uno::RuntimeException("Unable to fetch view forwarder, object is defunct", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy @@ -556,7 +556,7 @@ namespace accessibility if( pViewForwarder->IsValid() ) return *pViewForwarder; else - throw uno::RuntimeException(::rtl::OUString("View forwarder is invalid, object is defunct"), + throw uno::RuntimeException("View forwarder is invalid, object is defunct", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy @@ -572,12 +572,12 @@ namespace accessibility if( !pTextEditViewForwarder ) { if( bCreate ) - throw uno::RuntimeException(::rtl::OUString("Unable to fetch view forwarder, object is defunct"), + throw uno::RuntimeException("Unable to fetch view forwarder, object is defunct", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy else - throw uno::RuntimeException(::rtl::OUString("No view forwarder, object not in edit mode"), + throw uno::RuntimeException("No view forwarder, object not in edit mode", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy @@ -588,12 +588,12 @@ namespace accessibility else { if( bCreate ) - throw uno::RuntimeException(::rtl::OUString("View forwarder is invalid, object is defunct"), + throw uno::RuntimeException("View forwarder is invalid, object is defunct", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy else - throw uno::RuntimeException(::rtl::OUString("View forwarder is invalid, object not in edit mode"), + throw uno::RuntimeException("View forwarder is invalid, object not in edit mode", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > ( const_cast< AccessibleEditableTextPara* > (this) ) ) ); // disambiguate hierarchy @@ -711,7 +711,7 @@ namespace accessibility void AccessibleEditableTextPara::TextChanged() { - ::rtl::OUString aCurrentString( OCommonAccessibleText::getText() ); + OUString aCurrentString( OCommonAccessibleText::getText() ); uno::Any aDeleted; uno::Any aInserted; if( OCommonAccessibleText::implInitTextChangedEvent( maLastTextString, aCurrentString, @@ -794,12 +794,12 @@ namespace accessibility SolarMutexGuard aGuard; if( !HaveChildren() ) - throw lang::IndexOutOfBoundsException(::rtl::OUString("No children available"), + throw lang::IndexOutOfBoundsException("No children available", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > (this) ) ); // static_cast: disambiguate hierarchy if( i != 0 ) - throw lang::IndexOutOfBoundsException(::rtl::OUString("Invalid child index"), + throw lang::IndexOutOfBoundsException("Invalid child index", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > (this) ) ); // static_cast: disambiguate hierarchy @@ -812,7 +812,7 @@ namespace accessibility uno::Reference< XAccessible > xChild( static_cast< ::cppu::OWeakObject* > (pChild), uno::UNO_QUERY ); if( !xChild.is() ) - throw uno::RuntimeException(::rtl::OUString("Child creation failed"), + throw uno::RuntimeException("Child creation failed", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > (this) ) ); @@ -854,22 +854,22 @@ namespace accessibility return AccessibleRole::PARAGRAPH; } - ::rtl::OUString SAL_CALL AccessibleEditableTextPara::getAccessibleDescription() throw (uno::RuntimeException) + OUString SAL_CALL AccessibleEditableTextPara::getAccessibleDescription() throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); // SolarMutexGuard aGuard; - return ::rtl::OUString(); + return OUString(); } - ::rtl::OUString SAL_CALL AccessibleEditableTextPara::getAccessibleName() throw (uno::RuntimeException) + OUString SAL_CALL AccessibleEditableTextPara::getAccessibleName() throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); // SolarMutexGuard aGuard; - return ::rtl::OUString(); + return OUString(); } uno::Reference< XAccessibleRelationSet > SAL_CALL AccessibleEditableTextPara::getAccessibleRelationSet() throw (uno::RuntimeException) @@ -1086,7 +1086,7 @@ namespace accessibility } } - throw uno::RuntimeException(::rtl::OUString("Cannot access parent"), + throw uno::RuntimeException("Cannot access parent", uno::Reference< uno::XInterface > ( static_cast< XAccessible* > (this) ) ); // disambiguate hierarchy } @@ -1174,7 +1174,7 @@ namespace accessibility return OCommonAccessibleText::getCharacter( nIndex ); } - uno::Sequence< beans::PropertyValue > SAL_CALL AccessibleEditableTextPara::getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rRequestedAttributes ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) + uno::Sequence< beans::PropertyValue > SAL_CALL AccessibleEditableTextPara::getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& rRequestedAttributes ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); SolarMutexGuard aGuard; @@ -1313,7 +1313,7 @@ namespace accessibility } } - ::rtl::OUString SAL_CALL AccessibleEditableTextPara::getSelectedText() throw (uno::RuntimeException) + OUString SAL_CALL AccessibleEditableTextPara::getSelectedText() throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -1323,7 +1323,7 @@ namespace accessibility "AccessibleEditableTextPara::getSelectedText: index value overflow"); if( !HaveEditView() ) - return ::rtl::OUString(); + return OUString(); return OCommonAccessibleText::getSelectedText(); } @@ -1380,7 +1380,7 @@ namespace accessibility } } - ::rtl::OUString SAL_CALL AccessibleEditableTextPara::getText() throw (uno::RuntimeException) + OUString SAL_CALL AccessibleEditableTextPara::getText() throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -1392,7 +1392,7 @@ namespace accessibility return OCommonAccessibleText::getText(); } - ::rtl::OUString SAL_CALL AccessibleEditableTextPara::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) + OUString SAL_CALL AccessibleEditableTextPara::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -1687,7 +1687,7 @@ namespace accessibility } } - sal_Bool SAL_CALL AccessibleEditableTextPara::insertText( const ::rtl::OUString& sText, sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) + sal_Bool SAL_CALL AccessibleEditableTextPara::insertText( const OUString& sText, sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -1722,7 +1722,7 @@ namespace accessibility } } - sal_Bool SAL_CALL AccessibleEditableTextPara::replaceText( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const ::rtl::OUString& sReplacement ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) + sal_Bool SAL_CALL AccessibleEditableTextPara::replaceText( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString& sReplacement ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -1817,7 +1817,7 @@ namespace accessibility } } - sal_Bool SAL_CALL AccessibleEditableTextPara::setText( const ::rtl::OUString& sText ) throw (uno::RuntimeException) + sal_Bool SAL_CALL AccessibleEditableTextPara::setText( const OUString& sText ) throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -1828,7 +1828,7 @@ namespace accessibility // XAccessibleTextAttributes uno::Sequence< beans::PropertyValue > SAL_CALL AccessibleEditableTextPara::getDefaultAttributes( - const uno::Sequence< ::rtl::OUString >& rRequestedAttributes ) + const uno::Sequence< OUString >& rRequestedAttributes ) throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -1853,7 +1853,7 @@ namespace accessibility aPropSet.SetSelection( MakeSelection( 0, GetTextLen() ) ); uno::Reference< beans::XPropertySetInfo > xPropSetInfo = aPropSet.getPropertySetInfo(); if (!xPropSetInfo.is()) - throw uno::RuntimeException(::rtl::OUString("Cannot query XPropertySetInfo"), + throw uno::RuntimeException("Cannot query XPropertySetInfo", uno::Reference< uno::XInterface > ( static_cast< XAccessible* > (this) ) ); // disambiguate hierarchy @@ -1862,7 +1862,7 @@ namespace accessibility uno::Sequence< beans::Property > aProperties; if (nLenReqAttr) { - const rtl::OUString *pRequestedAttributes = rRequestedAttributes.getConstArray(); + const OUString *pRequestedAttributes = rRequestedAttributes.getConstArray(); aProperties.realloc( nLenReqAttr ); beans::Property *pProperties = aProperties.getArray(); @@ -1926,7 +1926,7 @@ namespace accessibility uno::Sequence< beans::PropertyValue > SAL_CALL AccessibleEditableTextPara::getRunAttributes( sal_Int32 nIndex, - const uno::Sequence< ::rtl::OUString >& rRequestedAttributes ) + const uno::Sequence< OUString >& rRequestedAttributes ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -1952,7 +1952,7 @@ namespace accessibility aPropSet.SetSelection( MakeSelection( nIndex ) ); uno::Reference< beans::XPropertySetInfo > xPropSetInfo = aPropSet.getPropertySetInfo(); if (!xPropSetInfo.is()) - throw uno::RuntimeException(::rtl::OUString("Cannot query XPropertySetInfo"), + throw uno::RuntimeException("Cannot query XPropertySetInfo", uno::Reference< uno::XInterface > ( static_cast< XAccessible* > (this) ) ); // disambiguate hierarchy @@ -1961,7 +1961,7 @@ namespace accessibility uno::Sequence< beans::Property > aProperties; if (nLenReqAttr) { - const rtl::OUString *pRequestedAttributes = rRequestedAttributes.getConstArray(); + const OUString *pRequestedAttributes = rRequestedAttributes.getConstArray(); aProperties.realloc( nLenReqAttr ); beans::Property *pProperties = aProperties.getArray(); @@ -2185,20 +2185,20 @@ namespace accessibility // XServiceInfo - ::rtl::OUString SAL_CALL AccessibleEditableTextPara::getImplementationName (void) throw (uno::RuntimeException) + OUString SAL_CALL AccessibleEditableTextPara::getImplementationName (void) throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); - return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("AccessibleEditableTextPara")); + return OUString("AccessibleEditableTextPara"); } - sal_Bool SAL_CALL AccessibleEditableTextPara::supportsService (const ::rtl::OUString& sServiceName) throw (uno::RuntimeException) + sal_Bool SAL_CALL AccessibleEditableTextPara::supportsService (const OUString& sServiceName) throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); // Iterate over all supported service names and return true if on of them // matches the given name. - uno::Sequence< ::rtl::OUString> aSupportedServices ( + uno::Sequence< OUString> aSupportedServices ( getSupportedServiceNames ()); for (int i=0; i<aSupportedServices.getLength(); i++) if (sServiceName == aSupportedServices[i]) @@ -2206,21 +2206,21 @@ namespace accessibility return sal_False; } - uno::Sequence< ::rtl::OUString> SAL_CALL AccessibleEditableTextPara::getSupportedServiceNames (void) throw (uno::RuntimeException) + uno::Sequence< OUString> SAL_CALL AccessibleEditableTextPara::getSupportedServiceNames (void) throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); - const ::rtl::OUString sServiceName( getServiceName() ); - return uno::Sequence< ::rtl::OUString > (&sServiceName, 1); + const OUString sServiceName( getServiceName() ); + return uno::Sequence< OUString > (&sServiceName, 1); } // XServiceName - ::rtl::OUString SAL_CALL AccessibleEditableTextPara::getServiceName (void) throw (uno::RuntimeException) + OUString SAL_CALL AccessibleEditableTextPara::getServiceName (void) throw (uno::RuntimeException) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); // #105185# Using correct service now - return ::rtl::OUString("com.sun.star.text.AccessibleParagraphView"); + return OUString("com.sun.star.text.AccessibleParagraphView"); } } // end of namespace accessibility diff --git a/editeng/source/accessibility/AccessibleHyperlink.cxx b/editeng/source/accessibility/AccessibleHyperlink.cxx index 9d0143da5ec8..86e72d461f9f 100644 --- a/editeng/source/accessibility/AccessibleHyperlink.cxx +++ b/editeng/source/accessibility/AccessibleHyperlink.cxx @@ -39,7 +39,7 @@ using namespace ::com::sun::star; namespace accessibility { - AccessibleHyperlink::AccessibleHyperlink( SvxAccessibleTextAdapter& r, SvxFieldItem* p, sal_uInt16 nP, sal_uInt16 nR, sal_Int32 nStt, sal_Int32 nEnd, const ::rtl::OUString& rD ) + AccessibleHyperlink::AccessibleHyperlink( SvxAccessibleTextAdapter& r, SvxFieldItem* p, sal_uInt16 nP, sal_uInt16 nR, sal_Int32 nStt, sal_Int32 nEnd, const OUString& rD ) : rTA( r ) { pFld = p; @@ -72,9 +72,9 @@ namespace accessibility return bRet; } - ::rtl::OUString SAL_CALL AccessibleHyperlink::getAccessibleActionDescription( sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) + OUString SAL_CALL AccessibleHyperlink::getAccessibleActionDescription( sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) { - ::rtl::OUString aDesc; + OUString aDesc; if ( isValid() && ( nIndex == 0 ) ) aDesc = aDescription; diff --git a/editeng/source/accessibility/AccessibleHyperlink.hxx b/editeng/source/accessibility/AccessibleHyperlink.hxx index 30448b22833b..8157a2aa1457 100644 --- a/editeng/source/accessibility/AccessibleHyperlink.hxx +++ b/editeng/source/accessibility/AccessibleHyperlink.hxx @@ -45,16 +45,16 @@ namespace accessibility SvxFieldItem* pFld; sal_uInt16 nPara, nRealIdx; // EE values sal_Int32 nStartIdx, nEndIdx; // translated values - ::rtl::OUString aDescription; + OUString aDescription; public: - AccessibleHyperlink( SvxAccessibleTextAdapter& r, SvxFieldItem* p, sal_uInt16 nP, sal_uInt16 nR, sal_Int32 nStt, sal_Int32 nEnd, const ::rtl::OUString& rD ); + AccessibleHyperlink( SvxAccessibleTextAdapter& r, SvxFieldItem* p, sal_uInt16 nP, sal_uInt16 nR, sal_Int32 nStt, sal_Int32 nEnd, const OUString& rD ); ~AccessibleHyperlink(); // XAccessibleAction virtual sal_Int32 SAL_CALL getAccessibleActionCount() throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL doAccessibleAction( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getAccessibleActionDescription( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getAccessibleActionDescription( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleKeyBinding > SAL_CALL getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); // XAccessibleHyperlink |