View | Details | Raw Unified | Return to issue 120384
Collapse All | Expand All

(-)automation/source/server/statemnt.cxx (+28 lines)
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;
(-)automation/source/inc/rcontrol.hxx (+4 lines)
Lines 285-290 Link Here
285
285
286
#define M_IsItemEnabled     ( M_WITH_RETURN | 59 )
286
#define M_IsItemEnabled     ( M_WITH_RETURN | 59 )
287
287
288
// TreeListBox
289
#define M_Collapse	    ( M_WITH_RETURN | 60 )
290
#define M_Expand	    ( M_WITH_RETURN | 61 )
291
288
//#define M_SOFFICE           0x0800  // Command valid for Star/Open Office
292
//#define M_SOFFICE           0x0800  // Command valid for Star/Open Office
289
//#define M_MOZILLA           0x1000  // Command valid for Mozilla
293
//#define M_MOZILLA           0x1000  // Command valid for Mozilla
290
294

Return to issue 120384