REM
***** BASIC ***** Sub Main End Sub sub Tab rem ---------------------------------------------------------------------- rem define variables dim document as object dim dispatcher as object rem ---------------------------------------------------------------------- rem get access to the document document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") rem ---------------------------------------------------------------------- dispatcher.executeDispatch(document, ".uno:JumpToNextCell", "", 0, Array()) end sub |
procedure
TOpenOffice.ooGoRight(col:integer); var oDispatcher,oArgs:variant; CoreReflection,propertyValue0,propertyValue1:variant; oFrame:variant; i:integer; begin oDispatcher:=StarOffice.createInstance('com.sun.star.frame.DispatchHelper'); CoreReflection:=StarOffice.createInstance('com.sun.star.reflection.CoreReflection'); CoreReflection.forName('com.sun.star.beans.PropertyValue').createObject(propertyValue0); CoreReflection.forName('com.sun.star.beans.PropertyValue').createObject(propertyValue1); oArgs:=VarArrayCreate([0,1],varVariant); propertyValue0.Name:='Count'; propertyValue0.Value:=1; oArgs[0]:=propertyValue0; propertyValue1.Name:='Select'; propertyValue1.Value:=False; oArgs[1]:=propertyValue1; oFrame:=Document.getCurrentController.getFrame; for i:=1 to col do oDispatcher.executeDispatch(oFrame,'.uno:GoRight','',0,oArgs); end; |