Bart Aimar wrote:
> I have a complex (and wobbly) macro that copy some tables from a
> document to another.
>
> (The macro use dispatch; they are alternatives?)
>
> The tables contains links and in course of action OOo propose some
> pestering alert windows like:
> "The new table contains absolute references to other tables which may be
> incorrect!"
>
> Can I avoid this windows alert?
Dispatch macros are meant to replay the UI functionality and so they are
allowed to show error messages or warnings. If you don't want to see
them you have to use the "core" API.
If you are using OOo 2.1 you can perhaps use the "internal clipboard"
API. Select the problematic table and execute the following macro:
> dim noargs()
> obj = ThisComponent.CurrentController.getTransferable()
> doc =
> stardesktop.loadcomponentfromurl("private:factory/swriter","_blank",0,noargs())
> doc.currentController.insertTransferable(obj)
Does that work better?
BTW: this macro works with whatever content you select in Writer. It
does exactly the same thing like the copy and paste functions but
without touching the clipboard.
Ciao,
Mathias
--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]