statemnt.cxx (fb99aade) statemnt.cxx (10c5781f)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 5597 unchanged lines hidden (view full) ---

5606 {
5607 if ( ValueOK(aUId, MethodString( nMethodId ),nNr1,((SvLBox*)pControl)->GetVisibleCount()) )
5608 {
5609 SvLBoxEntry *pEntry = (SvLBoxEntry*)((SvTreeListBox*)pControl)->GetEntryAtVisPos( nNr1-1 );
5610 ((SvTreeListBox*)pControl)->Select ( pEntry, bBool1 );
5611 }
5612 }
5613 break;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 5597 unchanged lines hidden (view full) ---

5606 {
5607 if ( ValueOK(aUId, MethodString( nMethodId ),nNr1,((SvLBox*)pControl)->GetVisibleCount()) )
5608 {
5609 SvLBoxEntry *pEntry = (SvLBoxEntry*)((SvTreeListBox*)pControl)->GetEntryAtVisPos( nNr1-1 );
5610 ((SvTreeListBox*)pControl)->Select ( pEntry, bBool1 );
5611 }
5612 }
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 :
5615 if ( ! (nParams & PARAM_USHORT_1) )
5616 nNr1 = 1;
5617 if ( ! (nParams & PARAM_USHORT_2) )
5618 nNr2 = 1;
5619 if ( ValueOK(aUId, CUniString("GetSelText"),nNr1,((SvLBox*)pControl)->GetSelectionCount()) )
5620 {
5621 nNr1--;

--- 1141 unchanged lines hidden ---
5642 case M_GetSelText :
5643 if ( ! (nParams & PARAM_USHORT_1) )
5644 nNr1 = 1;
5645 if ( ! (nParams & PARAM_USHORT_2) )
5646 nNr2 = 1;
5647 if ( ValueOK(aUId, CUniString("GetSelText"),nNr1,((SvLBox*)pControl)->GetSelectionCount()) )
5648 {
5649 nNr1--;

--- 1141 unchanged lines hidden ---