incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu...@apache.org
Subject svn commit: r1368319 - in /incubator/ooo/trunk/main/automation/source: inc/rcontrol.hxx server/statemnt.cxx
Date Thu, 02 Aug 2012 00:34:03 GMT
Author: liuzhe
Date: Thu Aug  2 00:34:03 2012
New Revision: 1368319

URL: http://svn.apache.org/viewvc?rev=1368319&view=rev
Log:
#120384# - Create VclTreeListBox for WINDOW_TREELISTBOX controls.\nPatch By: Li Lin Yi\n Review
By: Liu Zhe

Modified:
    incubator/ooo/trunk/main/automation/source/inc/rcontrol.hxx
    incubator/ooo/trunk/main/automation/source/server/statemnt.cxx

Modified: incubator/ooo/trunk/main/automation/source/inc/rcontrol.hxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/automation/source/inc/rcontrol.hxx?rev=1368319&r1=1368318&r2=1368319&view=diff
==============================================================================
--- incubator/ooo/trunk/main/automation/source/inc/rcontrol.hxx (original)
+++ incubator/ooo/trunk/main/automation/source/inc/rcontrol.hxx Thu Aug  2 00:34:03 2012
@@ -285,6 +285,10 @@
 
 #define M_IsItemEnabled     ( M_WITH_RETURN | 59 )
 
+// TreeListBox
+#define M_Collapse	    ( M_WITH_RETURN | 60 )
+#define M_Expand	    ( M_WITH_RETURN | 61 )
+
 //#define M_SOFFICE           0x0800  // Command valid for Star/Open Office
 //#define M_MOZILLA           0x1000  // Command valid for Mozilla
 

Modified: incubator/ooo/trunk/main/automation/source/server/statemnt.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/automation/source/server/statemnt.cxx?rev=1368319&r1=1368318&r2=1368319&view=diff
==============================================================================
--- incubator/ooo/trunk/main/automation/source/server/statemnt.cxx (original)
+++ incubator/ooo/trunk/main/automation/source/server/statemnt.cxx Thu Aug  2 00:34:03 2012
@@ -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;



Mime
View raw message