diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-02 16:42:29 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-02 16:44:14 -0400 |
commit | 27e0c7ae315006fbf2488d9ad4df1263134625f0 (patch) | |
tree | a9221443d44346076684ef846f8306956e204978 /sc/source/ui/dbgui/pvfundlg.cxx | |
parent | 64517292c92cb1a28880a31e335726744ec7c82d (diff) |
fdo#51222: Use multi-list box for subtotal dialog.
Change-Id: I22cb3b66d0c4a93cbcba05bb5990080e5ee57a2e
Diffstat (limited to 'sc/source/ui/dbgui/pvfundlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/pvfundlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/pvfundlg.cxx b/sc/source/ui/dbgui/pvfundlg.cxx index 51b8c8b84fd6..6d2379377aff 100644 --- a/sc/source/ui/dbgui/pvfundlg.cxx +++ b/sc/source/ui/dbgui/pvfundlg.cxx @@ -166,7 +166,7 @@ static const ScDPListBoxWrapper::MapEntryType spShowFromMap[] = // ============================================================================ ScDPFunctionListBox::ScDPFunctionListBox( Window* pParent, const ResId& rResId ) : - ListBox( pParent, rResId ) + MultiListBox( pParent, rResId ) { FillFunctionNames(); } @@ -190,7 +190,7 @@ sal_uInt16 ScDPFunctionListBox::GetSelection() const void ScDPFunctionListBox::FillFunctionNames() { - OSL_ENSURE( !GetEntryCount(), "ScDPFunctionListBox::FillFunctionNames - do not add texts to resource" ); + OSL_ENSURE( !GetEntryCount(), "ScDPMultiFuncListBox::FillFunctionNames - do not add texts to resource" ); Clear(); ResStringArray aArr( ScResId( SCSTR_DPFUNCLISTBOX ) ); for( sal_uInt16 nIndex = 0, nCount = sal::static_int_cast<sal_uInt16>(aArr.Count()); nIndex < nCount; ++nIndex ) @@ -224,6 +224,7 @@ ScDPFunctionDlg::ScDPFunctionDlg( { FreeResource(); Init( rLabelData, rFuncData ); + maLbFunc.EnableMultiSelection(false); } sal_uInt16 ScDPFunctionDlg::GetFuncMask() const |