Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index



Change-Id: I7434842fe8392eeb6e3c5fd8e605ee444f66b017
---
 sw/source/ui/docvw/edtwin.cxx |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)


diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 82be706..9cd1ba2 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -301,12 +301,14 @@ struct QuickHelpData
 
     sal_Bool HasCntnt() const { return !m_aHelpStrings.empty() && 0 != nLen; }
 
-    void Inc( sal_Bool bEndLess )
+    /// Next help string.
+    void Next( sal_Bool bEndLess )
     {
         if( ++nCurArrPos >= m_aHelpStrings.size() )
             nCurArrPos = (bEndLess && !m_bIsAutoText ) ? 0 : nCurArrPos-1;
     }
-    void Dec( sal_Bool bEndLess )
+    /// Previous help string.
+    void Previous( sal_Bool bEndLess )
     {
         if( 0 == nCurArrPos-- )
             nCurArrPos = (bEndLess && !m_bIsAutoText ) ? m_aHelpStrings.size()-1 : 0;
@@ -2070,9 +2072,9 @@ KEYINPUT_CHECKTABLE_INSDEL:
                     {
                         if( aTmpQHD.HasCntnt() && !rSh.HasSelection() )
                         {
-                            // to the next Tip
-                            aTmpQHD.Inc( pACorr && pACorr->GetSwFlags().
-                                                   bAutoCmpltEndless );
+                            // Next auto-complete suggestion
+                            aTmpQHD.Next( pACorr &&
+                                          pACorr->GetSwFlags().bAutoCmpltEndless );
                             eKeyState = KS_NextPrevGlossary;
                         }
                         else if( rSh.GetTableFmt() )
@@ -2093,9 +2095,9 @@ KEYINPUT_CHECKTABLE_INSDEL:
                         if( aTmpQHD.HasCntnt() && !rSh.HasSelection() &&
                             !rSh.HasReadonlySel() )
                         {
-                            // to the previous Tip
-                            aTmpQHD.Dec( pACorr && pACorr->GetSwFlags().
-                                                        bAutoCmpltEndless );
+                            // Previous auto-complete suggestion.
+                            aTmpQHD.Previous( pACorr &&
+                                              pACorr->GetSwFlags().bAutoCmpltEndless );
                             eKeyState = KS_NextPrevGlossary;
                         }
                         else if((rSh.GetSelectionType() & 
(nsSelectionType::SEL_DRW|nsSelectionType::SEL_DRW_FORM|


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.