Peter Eberlein schrieb:
Hi,
Marc Santhoff schrieb:
Am Freitag, den 22.08.2008, 13:44 +0200 schrieb Fernand Vanrie:
Can hard coded or styled formated text out off a writer doc been stored in OO base and then been used to be placed in a new writerdoc.

- witch data type ?
- how to enter ?
- how to reproduce in a form ?

just tried to put the XTransferable in a formatted TextField without success.

The field doesn't support clipboard or transferable actions with formatted text. Worth an RFE?

Sub Main
xCurrentController = ThisComponent.CurrentController
xCursor = ThisComponent.getText.createTextCursor()
xCursor.gotoEnd(true)
xViewCursor = xCurrentController.getViewCursor
// make the selection
xViewCursor.gotoRange(xCursor,false)
xTransferable = xCurrentController.getTransferable

xTextField = Thiscomponent.DrawPage.Forms(0).getByName("TextBox")

xView = xCurrentcontroller.getControl(xTextField)
xView.setFocus
// pasting
xCurrentController.insertTransferable(xTransferable)

End Sub


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

Reply via email to