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. _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice