Lines 5611-5616
Link Here
|
5611 |
} |
5611 |
} |
5612 |
} |
5612 |
} |
5613 |
break; |
5613 |
break; |
|
|
5614 |
case M_Collapse : |
5615 |
if( nParams & PARAM_STR_1 ) |
5616 |
{ |
5617 |
ReportError( aUId, GEN_RES_STR1( S_SELECT_DESELECT_VIA_STRING_NOT_IMPLEMENTED, MethodString( nMethodId ) ) ); |
5618 |
} |
5619 |
else |
5620 |
{ |
5621 |
if ( ValueOK(aUId, MethodString( nMethodId ),nNr1,((SvLBox*)pControl)->GetVisibleCount()) ) |
5622 |
{ |
5623 |
SvLBoxEntry *pEntry = (SvLBoxEntry*)((SvTreeListBox*)pControl)->GetEntryAtVisPos( nNr1-1 ); |
5624 |
((SvTreeListBox*)pControl)->Collapse ( pEntry ); |
5625 |
} |
5626 |
} |
5627 |
break; |
5628 |
case M_Expand : |
5629 |
if( nParams & PARAM_STR_1 ) |
5630 |
{ |
5631 |
ReportError( aUId, GEN_RES_STR1( S_SELECT_DESELECT_VIA_STRING_NOT_IMPLEMENTED, MethodString( nMethodId ) ) ); |
5632 |
} |
5633 |
else |
5634 |
{ |
5635 |
if ( ValueOK(aUId, MethodString( nMethodId ),nNr1,((SvLBox*)pControl)->GetVisibleCount()) ) |
5636 |
{ |
5637 |
SvLBoxEntry *pEntry = (SvLBoxEntry*)((SvTreeListBox*)pControl)->GetEntryAtVisPos( nNr1-1 ); |
5638 |
((SvTreeListBox*)pControl)->Expand ( pEntry ); |
5639 |
} |
5640 |
} |
5641 |
break; |
5614 |
case M_GetSelText : |
5642 |
case M_GetSelText : |
5615 |
if ( ! (nParams & PARAM_USHORT_1) ) |
5643 |
if ( ! (nParams & PARAM_USHORT_1) ) |
5616 |
nNr1 = 1; |
5644 |
nNr1 = 1; |