| public static Optional<com.sun.star.lang.XServiceInfo> | getSelectionAsXServiceInfo(@NonNull com.sun.star.text.XTextDocument doc)Returns: may be Optional.empty(), or some type supporting XServiceInfo
So far it seems the first thing we have to do with a selection is to decide what do we have.
|
| private static Optional<com.sun.star.view.XSelectionSupplier> |
|
| public static void | select(@NonNull com.sun.star.text.XTextDocument doc, Object newSelection)Select the object represented by newSelection if it is known and selectable in this XSelectionSupplier object.
|