Marc and Peter,

Thanks for your responses,

Normally for copying images and formated text portions from OO- docs or non-OO documents I simply uses the uno:copy with the dispatcher. This approach works fine I will now investigate the XTransferable stuff for a suposed more cleaner code :-).
But I still has some questions:

- how do i Store Cliboard or XTransferable content in to the database ?
- how do i call it back from the base into the clibboard or in to a XTransferable object ?

When having the database content in the cliboard or a in a XTransferable object, then the missing off a proper Form Field can been resolved with showing the database content in a frame or Cell..... and using a writerdoc as a form.

Thanks already for your help

Fernand


Peter Eberlein wrote:
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]


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

Reply via email to