[Libreoffice] Dynamically relaod addon toolbar
othman
othmanelmoulat at gmail.com
Thu Oct 27 18:17:35 PDT 2011
the following code to relaod the current document is not working. what am i
doing wrong?
PropertyValue[] loadProperties = new PropertyValue[0];
Object dispatchHelperObject =
this.mxMSF.createInstance("com.sun.star.frame.DispatchHelper");
XDispatchHelper xDispatchHelper = (XDispatchHelper)
UnoRuntime.queryInterface( XDispatchHelper.class, dispatchHelperObject);
XDispatchProvider xDispatchProvider = (XDispatchProvider)
UnoRuntime.queryInterface(
XDispatchProvider.class, m_xFrame);
xDispatchHelper.executeDispatch(xDispatchProvider,
"uno:Reload", "", 0, loadProperties);
} catch (Exception ex) {
ex.printStackTrace();
}
--
View this message in context: http://nabble.documentfoundation.org/Dynamically-relaod-addon-toolbar-tp3459165p3459758.html
Sent from the Dev mailing list archive at Nabble.com.
More information about the LibreOffice
mailing list