Comment 16 for bug 181700

Revision history for this message
Tobias Krais (tux-spam) wrote :

Hi Chris,

the extension should just dispatch a uno command URL. Here is the relevant part of code that. But this code is never run - I cannot even remote debug it:
-----%<-----
public void dispatch(URL aURL, PropertyValue[] lArgs) {
 if (aURL.Path.startsWith("Saveto")) {
  // Setting the SaveTo property
  PropertyValue[] saveProperties = new PropertyValue[1];
  saveProperties[0] = new PropertyValue();
  saveProperties[0].Name = "SaveTo";
  saveProperties[0].Value = new Boolean(true);

  // Dispatching the CommandURL
  OOUtils.dispatchCommandURL(xComponentContext, xFrame,
    ".uno:SaveAs", saveProperties);
 }
        else ....
}
-----%<-----
Hope this will help you. Tell you if you need a sample extension. I'll send it via PM.