diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2025-04-02 12:15:06 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2025-04-03 22:29:57 +0200 |
commit | 9b892757d2ccae1fe74e616158f378c31a67ae6d (patch) | |
tree | 21fb522f9343c8a497ecf5bcdcfcdcf86f6041a1 /editeng/source/accessibility/AccessibleHyperlink.cxx | |
parent | 053365d29e28af88b173ed8594649ca70c17ce6b (diff) |
editeng a11y: Drop extra indentation level
Change-Id: I5f2d99730cfda9490c3fa9fa43242e0d5219ca82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183626
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'editeng/source/accessibility/AccessibleHyperlink.cxx')
-rw-r--r-- | editeng/source/accessibility/AccessibleHyperlink.cxx | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/editeng/source/accessibility/AccessibleHyperlink.cxx b/editeng/source/accessibility/AccessibleHyperlink.cxx index 52f45dc44ff3b..f4cb80a42d321 100644 --- a/editeng/source/accessibility/AccessibleHyperlink.cxx +++ b/editeng/source/accessibility/AccessibleHyperlink.cxx @@ -36,88 +36,88 @@ using namespace ::com::sun::star; namespace accessibility { - AccessibleHyperlink::AccessibleHyperlink( SvxAccessibleTextAdapter& r, SvxFieldItem* p, sal_Int32 nStt, sal_Int32 nEnd, const OUString& rD ) - : rTA( r ) - { - pFld.reset( p ); - nStartIdx = nStt; - nEndIdx = nEnd; - aDescription = rD; - } +AccessibleHyperlink::AccessibleHyperlink( SvxAccessibleTextAdapter& r, SvxFieldItem* p, sal_Int32 nStt, sal_Int32 nEnd, const OUString& rD ) +: rTA( r ) +{ + pFld.reset( p ); + nStartIdx = nStt; + nEndIdx = nEnd; + aDescription = rD; +} - AccessibleHyperlink::~AccessibleHyperlink() - { - } +AccessibleHyperlink::~AccessibleHyperlink() +{ +} - // XAccessibleAction - sal_Int32 SAL_CALL AccessibleHyperlink::getAccessibleActionCount() - { - return isValid() ? 1 : 0; - } +// XAccessibleAction +sal_Int32 SAL_CALL AccessibleHyperlink::getAccessibleActionCount() +{ + return isValid() ? 1 : 0; +} - sal_Bool SAL_CALL AccessibleHyperlink::doAccessibleAction( sal_Int32 nIndex ) +sal_Bool SAL_CALL AccessibleHyperlink::doAccessibleAction( sal_Int32 nIndex ) +{ + bool bRet = false; + if ( isValid() && ( nIndex == 0 ) ) { - bool bRet = false; - if ( isValid() && ( nIndex == 0 ) ) - { - rTA.FieldClicked( *pFld ); - bRet = true; - } - return bRet; + rTA.FieldClicked( *pFld ); + bRet = true; } + return bRet; +} - OUString SAL_CALL AccessibleHyperlink::getAccessibleActionDescription( sal_Int32 nIndex ) - { - OUString aDesc; +OUString SAL_CALL AccessibleHyperlink::getAccessibleActionDescription( sal_Int32 nIndex ) +{ + OUString aDesc; - if ( isValid() && ( nIndex == 0 ) ) - aDesc = aDescription; + if ( isValid() && ( nIndex == 0 ) ) + aDesc = aDescription; - return aDesc; - } + return aDesc; +} - uno::Reference< css::accessibility::XAccessibleKeyBinding > SAL_CALL AccessibleHyperlink::getAccessibleActionKeyBinding( sal_Int32 nIndex ) - { - if( !isValid() || ( nIndex != 0 ) ) - return nullptr; +uno::Reference< css::accessibility::XAccessibleKeyBinding > SAL_CALL AccessibleHyperlink::getAccessibleActionKeyBinding( sal_Int32 nIndex ) +{ + if( !isValid() || ( nIndex != 0 ) ) + return nullptr; - rtl::Reference<::comphelper::OAccessibleKeyBindingHelper> pKeyBindingHelper = new ::comphelper::OAccessibleKeyBindingHelper(); + rtl::Reference<::comphelper::OAccessibleKeyBindingHelper> pKeyBindingHelper = new ::comphelper::OAccessibleKeyBindingHelper(); - awt::KeyStroke aKeyStroke; - aKeyStroke.Modifiers = 0; - aKeyStroke.KeyCode = KEY_RETURN; - aKeyStroke.KeyChar = 0; - aKeyStroke.KeyFunc = 0; - pKeyBindingHelper->AddKeyBinding( aKeyStroke ); + awt::KeyStroke aKeyStroke; + aKeyStroke.Modifiers = 0; + aKeyStroke.KeyCode = KEY_RETURN; + aKeyStroke.KeyChar = 0; + aKeyStroke.KeyFunc = 0; + pKeyBindingHelper->AddKeyBinding( aKeyStroke ); - return pKeyBindingHelper; - } + return pKeyBindingHelper; +} - // XAccessibleHyperlink - uno::Any SAL_CALL AccessibleHyperlink::getAccessibleActionAnchor( sal_Int32 /*nIndex*/ ) - { - return uno::Any(); - } +// XAccessibleHyperlink +uno::Any SAL_CALL AccessibleHyperlink::getAccessibleActionAnchor( sal_Int32 /*nIndex*/ ) +{ + return uno::Any(); +} - uno::Any SAL_CALL AccessibleHyperlink::getAccessibleActionObject( sal_Int32 /*nIndex*/ ) - { - return uno::Any(); - } +uno::Any SAL_CALL AccessibleHyperlink::getAccessibleActionObject( sal_Int32 /*nIndex*/ ) +{ + return uno::Any(); +} - sal_Int32 SAL_CALL AccessibleHyperlink::getStartIndex() - { - return nStartIdx; - } +sal_Int32 SAL_CALL AccessibleHyperlink::getStartIndex() +{ + return nStartIdx; +} - sal_Int32 SAL_CALL AccessibleHyperlink::getEndIndex() - { - return nEndIdx; - } +sal_Int32 SAL_CALL AccessibleHyperlink::getEndIndex() +{ + return nEndIdx; +} - sal_Bool SAL_CALL AccessibleHyperlink::isValid( ) - { - return rTA.IsValid(); - } +sal_Bool SAL_CALL AccessibleHyperlink::isValid( ) +{ + return rTA.IsValid(); +} } // end of namespace accessibility |