You use this method to cut all marked text in the office application:
CALL METHOD document->cut_selection EXPORTING no_flush = no_flush IMPORTING error = error retcode = retcode.