From 1a4da5839546fd2a1d446a5eeb459ed981e873f3 Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Thu, 30 Jun 2016 14:05:47 +0300 Subject: Rename GetFoucsPosIndex() to GetFocusPosIndex() Change-Id: Ic05d69976d053037c9d02cf5f8b843c6b590000c Reviewed-on: https://gerrit.libreoffice.org/26803 Tested-by: Jenkins Reviewed-by: Katarina Behrens --- svx/source/accessibility/svxpixelctlaccessiblecontext.cxx | 4 ++-- svx/source/dialog/dlgctrl.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'svx') 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(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(); -- cgit LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-07-20svtools: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl