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.
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: startsWith( "Saveto" )) { s[0].Name = "SaveTo"; s[0].Value = new Boolean(true);
-----%<-----
public void dispatch(URL aURL, PropertyValue[] lArgs) {
if (aURL.Path.
// Setting the SaveTo property
PropertyValue[] saveProperties = new PropertyValue[1];
saveProperties[0] = new PropertyValue();
savePropertie
savePropertie
// Dispatching the CommandURL dispatchCommand URL(xComponentC ontext, xFrame,
OOUtils.
".uno:SaveAs", saveProperties);
}
else ....
}
-----%<-----
Hope this will help you. Tell you if you need a sample extension. I'll send it via PM.