Kaydet (Commit) 27e0c7ae authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#51222: Use multi-list box for subtotal dialog.

Change-Id: I22cb3b66d0c4a93cbcba05bb5990080e5ee57a2e
üst 64517292
......@@ -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
......
......@@ -62,14 +62,15 @@ ModalDialog RID_SCDLG_DPDATAFIELD
Size = MAP_APPFONT ( 152 , 8 ) ;
Text [ en-US ] = "~Function" ;
};
ListBox LB_FUNC
MultiListBox LB_FUNC
{
HelpID = "sc:ListBox:RID_SCDLG_DPDATAFIELD:LB_FUNC";
HelpID = "sc:MultiListBox:RID_SCDLG_DPDATAFIELD:LB_FUNC";
Border = TRUE ;
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 140 , 65 ) ;
TabStop = TRUE ;
AutoHScroll = TRUE ;
SimpleMode = TRUE ;
};
FixedText FT_NAMELABEL
{
......
......@@ -53,7 +53,7 @@ class ScDPObject;
// ============================================================================
class ScDPFunctionListBox : public ListBox
class ScDPFunctionListBox : public MultiListBox
{
public:
explicit ScDPFunctionListBox( Window* pParent, const ResId& rResId );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment