20#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
38using namespace css::lang;
39using namespace css::uno;
40using namespace css::accessibility;
59 else if( !
aURL.GetURL().isEmpty() )
72 throw lang::IndexOutOfBoundsException();
80 if (!pMapObj->
GetURL().isEmpty())
91 else if (!
aURL.GetURL().isEmpty())
97 aURL.GetTargetFrameName() );
113 throw lang::IndexOutOfBoundsException();
117 if( pMap !=
nullptr )
120 if (!pMapObj->
GetDesc().isEmpty())
122 else if (!pMapObj->
GetURL().isEmpty())
123 sDesc = pMapObj->
GetURL();
125 else if( !
aURL.GetURL().isEmpty() )
126 sDesc =
aURL.GetName();
131Reference< XAccessibleKeyBinding > SAL_CALL
136 Reference< XAccessibleKeyBinding > xKeyBinding;
139 throw lang::IndexOutOfBoundsException();
141 bool bIsValid =
false;
144 if( pMap !=
nullptr )
147 if (!pMapObj->
GetURL().isEmpty())
150 else if (!
aURL.GetURL().isEmpty())
156 new ::comphelper::OAccessibleKeyBindingHelper();
157 xKeyBinding = pKeyBindingHelper;
159 css::awt::KeyStroke aKeyStroke;
160 aKeyStroke.Modifiers = 0;
162 aKeyStroke.KeyChar = 0;
163 aKeyStroke.KeyFunc = 0;
164 pKeyBindingHelper->AddKeyBinding( aKeyStroke );
177 throw lang::IndexOutOfBoundsException();
181 Reference< XAccessible > xAnchor =
mxFrame->GetAccessibleMap()->GetContext(
mpFrame);
194 throw lang::IndexOutOfBoundsException();
199 if( pMap !=
nullptr )
202 if (!pMapObj->
GetURL().isEmpty())
203 retText = pMapObj->
GetURL();
205 else if ( !
aURL.GetURL().isEmpty() )
206 retText =
aURL.GetURL();
229 if(
aURL.GetMap() || !
aURL.GetURL().isEmpty() )
const OUString & GetURL() const
const OUString & GetTarget() const
const OUString & GetDesc() const
IMapObject * GetIMapObject(size_t nPos) const
size_t GetIMapObjectCount() const
SwAccessibleNoTextHyperlink(SwAccessibleNoTextFrame *p, const SwFrame *aFrame)
virtual sal_Bool SAL_CALL doAccessibleAction(sal_Int32 nIndex) override
SwFrameFormat * GetFormat()
virtual css::uno::Reference< css::accessibility::XAccessibleKeyBinding > SAL_CALL getAccessibleActionKeyBinding(sal_Int32 nIndex) override
virtual css::uno::Any SAL_CALL getAccessibleActionObject(sal_Int32 nIndex) override
virtual sal_Int32 SAL_CALL getStartIndex() override
virtual sal_Int32 SAL_CALL getEndIndex() override
virtual css::uno::Any SAL_CALL getAccessibleActionAnchor(sal_Int32 nIndex) override
virtual sal_Int32 SAL_CALL getAccessibleActionCount() override
virtual OUString SAL_CALL getAccessibleActionDescription(sal_Int32 nIndex) override
virtual sal_Bool SAL_CALL isValid() override
::rtl::Reference< SwAccessibleNoTextFrame > mxFrame
Base class of the Writer layout elements.
virtual OUString GetURL() const override
constexpr sal_uInt16 KEY_RETURN
void LoadURL(SwViewShell &rVSh, const OUString &rURL, LoadUrlFlags nFilter, const OUString &rTargetFrameName)