summaryrefslogtreecommitdiff
path: root/sw/source/ui/docvw/edtwin.cxx
diff options
context:
space:
mode:
authorBrad Sowden <code@sowden.org>2012-06-18 20:01:27 +1200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-18 12:39:39 +0200
commit1f77d7c0c316cce295329a338e7df37394831f51 (patch)
tree1e41ae0a85e322eb79fc6389688eb37f3d68e7af /sw/source/ui/docvw/edtwin.cxx
parentdc019876d8eb42b56e259d6a6f6d7ea5f904d870 (diff)
Clearer function names
Change-Id: I7434842fe8392eeb6e3c5fd8e605ee444f66b017
Diffstat (limited to 'sw/source/ui/docvw/edtwin.cxx')
-rw-r--r--sw/source/ui/docvw/edtwin.cxx18
1 files changed, 10 insertions, 8 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 82be70664290..9cd1ba287e81 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|