diff options
-rw-r--r-- | include/svx/dlgctrl.hxx | 2 | ||||
-rw-r--r-- | svx/source/accessibility/svxpixelctlaccessiblecontext.cxx | 4 | ||||
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx index 1478b6498639..73d05b158136 100644 --- a/include/svx/dlgctrl.hxx +++ b/include/svx/dlgctrl.hxx @@ -222,7 +222,7 @@ public: long PointToIndex(const Point &pt) const; Point IndexToPoint(long nIndex) const ; - long GetFoucsPosIndex() const ; + long GetFocusPosIndex() const ; //Keyboard function for key input and focus handling function virtual void KeyInput( const KeyEvent& rKEvt ) override; virtual void GetFocus() override; diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx index 230cc6ebfd4a..0253d2424483 100644 --- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx +++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx @@ -329,7 +329,7 @@ sal_Bool SAL_CALL SvxPixelCtlAccessible::isAccessibleChildSelected( sal_Int32 nC { ::osl::MutexGuard aGuard( m_aMutex ); - return mrPixelCtl.GetFoucsPosIndex() == nChildIndex; + return mrPixelCtl.GetFocusPosIndex() == nChildIndex; } void SAL_CALL SvxPixelCtlAccessible::clearAccessibleSelection( ) throw (RuntimeException, std::exception) @@ -704,7 +704,7 @@ uno::Reference< XAccessibleStateSet > SAL_CALL SvxPixelCtlAccessibleChild::getAc pStateSetHelper->AddState( AccessibleStateType::SHOWING ); pStateSetHelper->AddState( AccessibleStateType::VISIBLE ); - long nIndex = mrParentWindow.GetFoucsPosIndex(); + long nIndex = mrParentWindow.GetFocusPosIndex(); if ( nIndex == mnIndexInParent) { pStateSetHelper->AddState( AccessibleStateType::SELECTED ); diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 0d3b62686cda..9c75ffafd0b6 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -771,7 +771,7 @@ Point SvxPixelCtl::IndexToPoint(long nIndex) const return aPtTl; } -long SvxPixelCtl::GetFoucsPosIndex() const +long SvxPixelCtl::GetFocusPosIndex() const { return aFocusPosition.getX() + aFocusPosition.getY() * nLines ; } @@ -795,7 +795,7 @@ long SvxPixelCtl::ShowPosition( const Point &pt) if (pTabPage && WINDOW_TABPAGE == pTabPage->GetType()) static_cast<SvxTabPage*>(pTabPage)->PointChanged( this, RP_MM ); // RectPoint ist dummy - return GetFoucsPosIndex(); + return GetFocusPosIndex(); } @@ -1006,7 +1006,7 @@ void SvxPixelCtl::KeyInput( const KeyEvent& rKEvt ) } if(m_xAccess.is()) { - long nIndex = GetFoucsPosIndex(); + long nIndex = GetFocusPosIndex(); switch(nCode) { case KEY_LEFT: @@ -1039,7 +1039,7 @@ void SvxPixelCtl::GetFocus() if(m_pAccess) { - m_pAccess->NotifyChild(GetFoucsPosIndex(),true,false); + m_pAccess->NotifyChild(GetFocusPosIndex(),true,false); } Control::GetFocus(); |