I am trying to change the border of a texttable, the cursor is in.
In OOo Basic it worked like this:
  oView = oDocument.getCurrentController()
  oSelection = oView.Selection
  if oSelection.supportsService ("com.sun.star.text.TextTableCursor")
    then        ' selected cells in text table
     oVCursor = oView.getViewCursor()
     sSelectedRange = oSelection.GetRangeName()                         
     oTable = oVCursor.TextTable 'the table where the cursor is in
     Select Case ApplyTo
       Case 1: oCellRange = oTable
       Case 2: oCellRange = oTable.getCellRangeByName(sSelectedRange)
       ...
and then I used oCellRange for this.

Now in Java, I am able to do it in Calc, but in TextTables I am stuck.
The "oSelection" supports "com.sun.star.text.TextTableCursor", and
through
   XTextViewCursorSupplier xTextViewCursorSupplier = 
        (XTextViewCursorSupplier)UnoRuntime.queryInterface(
                    XTextViewCursorSupplier.class, xController);
   XTextViewCursor oVCurser = xTextViewCursorSupplier.getViewCursor();
I can get the ViewCursor, but it does not support the XTextTable
service. How to continue?

Thanks 
Dietmar


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to