summaryrefslogtreecommitdiff
path: root/automation/source/server/statemnt.cxx
diff options
context:
space:
mode:
authorLiu Zhe <liuzhe@apache.org>2012-08-01 23:34:03 +0000
committerLiu Zhe <liuzhe@apache.org>2012-08-01 23:34:03 +0000
commitf15ddfdd58215f10e7b9a6e3a557a705021bf8a2 (patch)
tree04a43d5a45ce3a7b24c64f59e16d3f72e2799a5d /automation/source/server/statemnt.cxx
parent07e91c3c400d6f480579c1f32e447d41f9cec7e6 (diff)
#120384# - Create VclTreeListBox for WINDOW_TREELISTBOX controls.\nPatch By: Li Lin Yi\n Review By: Liu Zhe
Notes
Notes: ignore: vclauto
Diffstat (limited to 'automation/source/server/statemnt.cxx')
-rw-r--r--automation/source/server/statemnt.cxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx
index ea6d24e62c63..c10b4cf0ecf8 100644
--- a/automation/source/server/statemnt.cxx
+++ b/automation/source/server/statemnt.cxx
@@ -5611,6 +5611,34 @@ sal_Bool StatementControl::Execute()
}
}
break;
+ case M_Collapse :
+ if( nParams & PARAM_STR_1 )
+ {
+ ReportError( aUId, GEN_RES_STR1( S_SELECT_DESELECT_VIA_STRING_NOT_IMPLEMENTED, MethodString( nMethodId ) ) );
+ }
+ else
+ {
+ if ( ValueOK(aUId, MethodString( nMethodId ),nNr1,((SvLBox*)pControl)->GetVisibleCount()) )
+ {
+ SvLBoxEntry *pEntry = (SvLBoxEntry*)((SvTreeListBox*)pControl)->GetEntryAtVisPos( nNr1-1 );
+ ((SvTreeListBox*)pControl)->Collapse ( pEntry );
+ }
+ }
+ break;
+ case M_Expand :
+ if( nParams & PARAM_STR_1 )
+ {
+ ReportError( aUId, GEN_RES_STR1( S_SELECT_DESELECT_VIA_STRING_NOT_IMPLEMENTED, MethodString( nMethodId ) ) );
+ }
+ else
+ {
+ if ( ValueOK(aUId, MethodString( nMethodId ),nNr1,((SvLBox*)pControl)->GetVisibleCount()) )
+ {
+ SvLBoxEntry *pEntry = (SvLBoxEntry*)((SvTreeListBox*)pControl)->GetEntryAtVisPos( nNr1-1 );
+ ((SvTreeListBox*)pControl)->Expand ( pEntry );
+ }
+ }
+ break;
case M_GetSelText :
if ( ! (nParams & PARAM_USHORT_1) )
nNr1 = 1;