Mathias Bauer <nospamforMBA <at> gmx.de> writes:

> 
> Jiri Palecek wrote:
> > Hi all, I have a question. Is there any way (best through UNO) to
> > insert an object in a document or to create an object that can be
> > inserted?
> 
> You mean something like inserting a Chart into Writer:
> 
> obj=ThisComponent.CreateInstance("com.sun.star.text.TextEmbeddedObject")
> obj.CLSID="12DCAE26-281F-416F-A234-C3086127382E"
> sel = ThisComponent.CurrentController.Selection
> range = sel.getByIndex(0)
> obj.attach( range )
> 
> Best regards,
> Mathias
> 
Yes, exactly.
Â
However, I have some more questions:
  1) Is an object implementing service BaseFrame sufficient
     to insert it to insert it into the document?
  2) What is the CLSID thing when IÂm not on Windows?
  3) Are there means to add custom objects in the insert dialog?
  4) How about other document types (chart into spreadsheet?)

Yours sincerely
    Jirir Palecek





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

Reply via email to