[Libreoffice-commits] core.git: include/svx svx/source

Muhammet Kara muhammet.kara at pardus.org.tr
Thu Jun 30 17:56:03 UTC 2016


 include/svx/dlgctrl.hxx                                   |    2 +-
 svx/source/accessibility/svxpixelctlaccessiblecontext.cxx |    4 ++--
 svx/source/dialog/dlgctrl.cxx                             |    8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 1a4da5839546fd2a1d446a5eeb459ed981e873f3
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date:   Thu Jun 30 14:05:47 2016 +0300

    Rename GetFoucsPosIndex() to GetFocusPosIndex()
    
    Change-Id: Ic05d69976d053037c9d02cf5f8b843c6b590000c
    Reviewed-on: https://gerrit.libreoffice.org/26803
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx
index 1478b64..73d05b1 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 230cc6e..0253d24 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 0d3b626..9c75ffa 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();


More information about the Libreoffice-commits mailing list