public XTextDocument openFromDialog(String url, String createButton,
boolean destroyLocal) {
XTextDocument xLocalDoc = WriterTools.createTextDoc(m_xMSF);
XComponent comp = (XComponent) UnoRuntime.queryInterface(
XComponent.class, xLocalDoc);
DialogThread diagThread = new DialogThread(comp, m_xMSF, url);
diagThread.start();
shortWait();
if (createButton.length() > 1) {
XExtendedToolkit tk = getToolkit();
AccessibilityTools at = new AccessibilityTools();