Re: [api-dev] Replaceing selected text with Basic Macro

2007-04-18 Thread Mathias Bauer
Johnny Andersson wrote: In your example you go for an object directly: ThisComponent.CurrentSelection(0). In my example I do like this to obtain the same (?) thing: ThisComponent.getCurrentSelection().getByIndex(0) Simplified explanation: in Basic this is the same. In fact the first variant

Re: [api-dev] sub document insertion bug

2007-04-18 Thread Mathias Bauer
jca wrote: Hello, I want to insert (at specific bookmark location) several generated sub documents, into a global document. For the first subdocument, all is ok, but for all others ... it insert the first ! I think the XTransferable is not up to date, so how can I refresh the

Re: [api-dev] sub document insertion bug

2007-04-18 Thread jca
Thx Mathias you open my eyes !! My problem is not an insertion problem, my problem come from my templates which contains some user variables with the same name, so when I insert these templates, ooo update fields from previous insertions ! So now I must modify my mechanism to don't use user

Re: [api-dev] Remove control from Dlg with code ?

2007-04-18 Thread Cor Nouws
Hello Frank, Frank Schönheit - Sun Microsystems Germany wrote: i supose you have to dispose first te object ??? ocontrl.dispose oDocDlg.removeControl(oContrl) But this does work. That's somewhat weird, as manual disposal should never be necessary. Your original code was correct -