diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-09-14 17:00:06 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-09-25 10:00:46 +0200 |
commit | 83de03e077d219c881626de43960ae4756284371 (patch) | |
tree | 2d582083e3c060139699b075565f55f872edb7b1 /dbaccess | |
parent | 4d5e9db574bdb1a7517ffda01efe0746cc058d47 (diff) |
Rename GetSelectEntryCount -> GetSelectedEntryCount
Change-Id: I405b347b404ed0acb3b6a0204e0b914a7698ce25
Reviewed-on: https://gerrit.libreoffice.org/42284
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/dbfindex.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/dsselect.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WColumnSelect.cxx | 8 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WTypeSelect.cxx | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/dbaccess/source/ui/dlg/dbfindex.cxx b/dbaccess/source/ui/dlg/dbfindex.cxx index a3bceb671db1..9569bf31b56a 100644 --- a/dbaccess/source/ui/dlg/dbfindex.cxx +++ b/dbaccess/source/ui/dlg/dbfindex.cxx @@ -110,10 +110,10 @@ bool ODbaseIndexDialog::GetTable(const OUString& _rName, TableInfoList::iterator void ODbaseIndexDialog::checkButtons() { - m_pAdd->Enable(0 != m_pLB_FreeIndexes->GetSelectEntryCount()); + m_pAdd->Enable(0 != m_pLB_FreeIndexes->GetSelectedEntryCount()); m_pAddAll->Enable(0 != m_pLB_FreeIndexes->GetEntryCount()); - m_pRemove->Enable(0 != m_pLB_TableIndexes->GetSelectEntryCount()); + m_pRemove->Enable(0 != m_pLB_TableIndexes->GetSelectedEntryCount()); m_pRemoveAll->Enable(0 != m_pLB_TableIndexes->GetEntryCount()); } diff --git a/dbaccess/source/ui/dlg/dsselect.cxx b/dbaccess/source/ui/dlg/dsselect.cxx index 78bc4d23f311..3f90fd96c7b6 100644 --- a/dbaccess/source/ui/dlg/dsselect.cxx +++ b/dbaccess/source/ui/dlg/dsselect.cxx @@ -87,7 +87,7 @@ void ODatasourceSelectDialog::dispose() IMPL_LINK( ODatasourceSelectDialog, ListDblClickHdl, ListBox&, rListBox, void ) { - if (rListBox.GetSelectEntryCount()) + if (rListBox.GetSelectedEntryCount()) EndDialog(RET_OK); } diff --git a/dbaccess/source/ui/misc/WColumnSelect.cxx b/dbaccess/source/ui/misc/WColumnSelect.cxx index c474bf597b56..1f779a534894 100644 --- a/dbaccess/source/ui/misc/WColumnSelect.cxx +++ b/dbaccess/source/ui/misc/WColumnSelect.cxx @@ -225,10 +225,10 @@ IMPL_LINK( OWizColumnSelect, ButtonClickHdl, Button *, pButton, void ) if(!bAll) { - for(sal_Int32 i=0; i < pLeft->GetSelectEntryCount(); ++i) + for(sal_Int32 i=0; i < pLeft->GetSelectedEntryCount(); ++i) moveColumn(pRight,pLeft,aRightColumns,pLeft->GetSelectedEntry(i),sExtraChars,nMaxNameLen,aCase); - for(sal_Int32 j=pLeft->GetSelectEntryCount(); j ; --j) + for(sal_Int32 j=pLeft->GetSelectedEntryCount(); j ; --j) pLeft->RemoveEntry(pLeft->GetSelectedEntry(j-1)); } else @@ -269,9 +269,9 @@ IMPL_LINK( OWizColumnSelect, ListDoubleClickHdl, ListBox&, rListBox, void ) std::vector< OUString> aRightColumns; fillColumns(pRight,aRightColumns); - for(sal_Int32 i=0; i < pLeft->GetSelectEntryCount(); ++i) + for(sal_Int32 i=0; i < pLeft->GetSelectedEntryCount(); ++i) moveColumn(pRight,pLeft,aRightColumns,pLeft->GetSelectedEntry(i),sExtraChars,nMaxNameLen,aCase); - for(sal_Int32 j=pLeft->GetSelectEntryCount(); j ; ) + for(sal_Int32 j=pLeft->GetSelectedEntryCount(); j ; ) pLeft->RemoveEntry(pLeft->GetSelectedEntry(--j)); enableButtons(); diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx index 091753f742b5..fd0a940de182 100644 --- a/dbaccess/source/ui/misc/WTypeSelect.cxx +++ b/dbaccess/source/ui/misc/WTypeSelect.cxx @@ -286,7 +286,7 @@ IMPL_LINK_NOARG( OWizTypeSelect, ColumnSelectHdl, ListBox&, void ) if(pField) m_pTypeControl->DisplayData(pField); - m_pTypeControl->Enable(m_pColumnNames->GetSelectEntryCount() == 1 ); + m_pTypeControl->Enable(m_pColumnNames->GetSelectedEntryCount() == 1 ); } void OWizTypeSelect::Reset() @@ -376,7 +376,7 @@ void OWizTypeSelectList::dispose() bool OWizTypeSelectList::IsPrimaryKeyAllowed() const { - const sal_Int32 nCount = GetSelectEntryCount(); + const sal_Int32 nCount = GetSelectedEntryCount(); for( sal_Int32 j = 0; m_bPKey && j < nCount; ++j ) { |