Mirko Nasato wrote:
Hi all,

does anybody know if the following Java code does *exactly* the same
thing as invoking Tools / Update / Update All from the Writer menu?

 XComponent document = desktop.loadComponentFromURL(...);
 XRefreshable refreshable = (XRefreshable)
UnoRuntime.queryInterface(XRefreshable.class, document);
 refreshable.refresh();

Or do I also need to invoke reformat() on the XTextDocument interface?

Hi,
refresh() updates the layout of the document.
A quick look at the source shows that
reformat() is actually (almost) empty, it doesn't do anything useful.

Tools / Update / Update all does more. It additionally updates all links, fields, indexes and charts.

Regards,

Oliver

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

Reply via email to