sub cutnpaste
rem ----------------------------------------------------------------------
rem-- Ausschneiden eines Bilds und als Grapikelement (metafile) einfügen-----------------
rem-- Copieren eines Bilds und als Grapikelement einfügen-----------------
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:ConvertIntoMetaFile”, “”, 0, Array())
dispatcher.executeDispatch(document, “.uno:Cut”, “”, 0, Array())
rem ----------------------------------------------------------------------
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = “SelectedFormat”
args2(0).Value = 3
dispatcher.executeDispatch(document, “.uno:ClipboardFormatItems”, “”, 0, args2())
dispatcher.executeDispatch(document, “.uno:SendToBack”, “”, 0, Array())
end sub