Sorry that I misled you. It is my intention to change text flow in a cell to right to left direction. Writer's GUI has that setting in text flow tab, but I didn't find correspond property.
2015-06-27 16:50 GMT+08:00 Jörg Schmidt <[email protected]>: > Hello, > > > From: Hung Mark [mailto:[email protected]] > > > How to change text flow direction in a table with macro? > > See this example: > > Sub Snippet > > Dim oCurrentController As Variant > Dim oViewCursor As Variant > Dim oCell As Variant > Dim nVertOrient As Integer > > oCurrentController = ThisComponent.getCurrentController() > oViewCursor = oCurrentController.getViewCursor() > oCell = oViewCursor.Cell > > '.VertOrient --> 0 - None , 1 - top ,2 - middle, 3 - bottom > 'other values see: > ' > http://www.openoffice.org/api/docs/common/ref/com/sun/star/text/VertOrientation.html > > oCell.VertOrient = 3 > > 'or use: > 'oCell.VertOrient = com.sun.star.text.VertOrientation.BOTTOM > > 'msgbox oCell.VertOrient > End Sub > > > > Greetings, > Jörg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Mark Hung
