Re: [Libreoffice] SWT window locks LOo
The best way to get things done is to do them yourself. Feel free to start on that topic if it's really a blocker for you. if i knew how to fix it i wouldn't have asked in this forum. It's strange when you ask for help for a project people tell you to do it yourself! very strange! -- View this message in context: http://nabble.documentfoundation.org/Re-SWT-window-locks-LOo-tp3545675p3547846.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
Re: [Libreoffice] SWT window locks LOo
i gave you the oxt demo , the SWT source code etc..it is you who are not interested (OR DON't KNOW) to fix this issue.. i won't do the debuf stuff sorry..it is the fixer who must debug if he is interested to look at this issue. the guy above has at least tried my SWT code and proposed some help..but you and others are revolving around the issue without any real interest to fix it. you have the oxt , the SWT code..you can debug yourself and fix if you are interested ;otherwise we will be wasting our times in arguments that deviate from the main issue.. -- View this message in context: http://nabble.documentfoundation.org/Re-SWT-window-locks-LOo-tp3545675p3547932.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
Re: [Libreoffice] SWT window locks LOo
if you really want to get such obscure things that do not affect most of our users investigated, then you should consider getting a support contract with one of the companies that have such an offering. regards, michael I offer to pay any OOo developer for fixing this issue. If someone manages to find a solution please PM me and i'll discuss with you the options to pay you for fixing this issue. -- View this message in context: http://nabble.documentfoundation.org/Re-SWT-window-locks-LOo-tp3545675p3549489.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
Re: [Libreoffice] libreoffice sdk 3.4 and SWT Linux issue
Thank you for your help. i'll try using the soffice debuger.. If it is a crash, it should be easyish to find. Of course, if you had a small piece of sample code that reproduced it that'd be most ideal - so we can add this to our regression tests. I have provided more info about this bug at this thread : http://user.services.openoffice.org/en/forum/viewtopic.php?f=20t=45679 in this thread you will find link to download an oxt extension that demonstrate this SWT /OO/Linux issue. you can run itt on a linux box to test this freezing problem when you close the SWT window. I hope you could help debuging using the oxt i provided in link above :) I also posted the SWT code that i use for SWT Browser if this SWT code could help you spot the problem. I can provide more info if you require. thaks for your support! -- View this message in context: http://nabble.documentfoundation.org/libreoffice-3-4-and-SWT-Linux-issue-tp3407355p3544662.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
Re: [Libreoffice] SWT window locks LOo
if i remove the display.dispose() OO does'nt freeze. but when i close browser window and click toolbar button again to relauch SWT browser it doesn't show the browser window. is that what you get too ? how to solve this? -- View this message in context: http://nabble.documentfoundation.org/Re-SWT-window-locks-LOo-tp3545675p3546091.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
Re: [Libreoffice] SWT window locks LOo
after i close SWT browser window. i try oepn a new OO document and then OO crashes! SWT and Libreoffice on linux are very Problematic! they didn't proposed a fix to this bug since a very long time now! -- View this message in context: http://nabble.documentfoundation.org/Re-SWT-window-locks-LOo-tp3545675p3546102.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
[Libreoffice] Dynamically relaod addon toolbar
Hello, I use the Configuration Update Manager to dynamically update addon Configuration data (adding new OfficeToolbar entry). after i commit changes to Configuration manager the results are not immediately reflected in toolbar. I have to open a new document to see the new updated toolbar. what java code should i add to dynamically relaod addon toolbar or relaod the whole Addon context? thanks -- View this message in context: http://nabble.documentfoundation.org/Dynamically-relaod-addon-toolbar-tp3459165p3459165.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
Re: [Libreoffice] Dynamically relaod addon toolbar
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
Re: [Libreoffice] config register toolbar controller in adddon
Hi, I looked to this one but these are not flexible enough. i need more complex controls (like XFixedText and progressbar). i also want to dynamically show/hide toolbar controls at runtime. do you know how we can do this? thanks -- View this message in context: http://nabble.documentfoundation.org/config-register-toolbar-controller-in-adddon-tp3438288p3440636.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
Re: [Libreoffice] config register toolbar controller in adddon
Thanks this seems very interesting. So we could include Tool Panels in a toolbar too and not only in a Task Pane is that correct? I'll be very interested to see some snippet code (java or python) on how to make a Tool Panel and add it to a addon toolbar. I can work on this if you give me some guidelines and tips. thanks othman -- View this message in context: http://nabble.documentfoundation.org/config-register-toolbar-controller-in-adddon-tp3438288p3440782.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
Re: [Libreoffice] config register toolbar controller in adddon
From my humble experience with OOo , i conclude that the designers decided to have a limited functionality for toolbars. I would be happy to know of some people willing to improve OOo toolbars API allowing more power and flexibility to build complex toolbars with rich controls and dynamic events. If i was familiar with OOo API source code i could add this improvement myself..maybe in future if i understand more OOo source code i can work on that. But anyway maybe i'll have a look at the Tool Panel option. thanks for your help othman -- View this message in context: http://nabble.documentfoundation.org/config-register-toolbar-controller-in-adddon-tp3438288p3440839.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
[Libreoffice] config register toolbar controller in adddon
i write the following controller.xcu ?xml version=1.0 encoding=UTF-8? oor:component-data xmlns:oor=http://openoffice.org/2001/registry; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; oor:name=Controller oor:package=org.openoffice.Office.UI node oor:name=Registered node oor:name=ToolBar node oor:name=c10 oor:op=replace prop oor:name=Command value.uno:LabelToolbar/value /prop prop oor:name=Module value/value /prop prop oor:name=Controller valuecom.sun.star.google.comp.StatusToolbarController/value /prop /node node oor:name=c11 oor:op=replace prop oor:name=Command value.uno:ButtonToolbar/value /prop prop oor:name=Module value/value /prop prop oor:name=Controller valuecom.sun.star.google.comp.LoginToolbarController/value /prop /node /node /node /oor:component-data then i register it in file uno-extension-manifest: ?xml version=1.0 encoding=UTF-8? manifest:manifest xmlns:manifest=http://openoffice.org/2001/manifest; manifest:file-entry manifest:media-type=application/vnd.sun.star.configuration-data manifest:full-path=registry/data/org/openoffice/Office/ProtocolHandler.xcu/ manifest:file-entry manifest:media-type=application/vnd.sun.star.configuration-data manifest:full-path=registry/data/org/openoffice/Office/Addons.xcu/ manifest:file-entry manifest:media-type=application/vnd.sun.star.uno-component;type=Java manifest:full-path=OpenOfficeGoogleConnect.jar/ manifest:file-entry manifest:media-type=application/vnd.sun.star.configuration-data manifest:full-path=Controller.xcu/ /manifest:manifest i also add this xml toolbar.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE toolbar:toolbar PUBLIC quot;-//OpenOffice.org//DTD OfficeDocument 1.0//ENquot; quot;toolbar.dtdquot; toolbar:toolbar xmlns:toolbar=http://openoffice.org/2001/toolbar; xmlns:xlink=http://www.w3.org/1999/xlink; toolbar:uiname=custom_toolbar_1 toolbar:toolbaritem xlink:href=.uno:.uno:LabelToolbar/ toolbar:toolbaritem xlink:href=.uno:ButtonToolbar/ /toolbar:toolbar yet when i install the addon the two toolbar controleers don't show in toolbar! i tried copying the toolbar.xml in the folder {installation}\OpenOffice.org3.3\user\config\soffice.cfg\modules\swriter\toolbar but yet the toolbar does'nt show! why? is it impossible to configure a custom toolbar in addon using controller.xcu ? and how to get it work in my addon? does OOO provides an API to give advanced custom toolbar configuration in a addon. can someone help on this please? thanks -- View this message in context: http://nabble.documentfoundation.org/config-register-toolbar-controller-in-adddon-tp3438288p3438288.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
[Libreoffice] XToolbarController createItemWindow() issue
Hi all, I'm trying to write a java complex toolbar . i used a component addon that implements XToolbarController. i implemented the createWindowItem() method which takes controls from a custom Dialog and add them to toolbar Window. this works well when i load the extension in Libreoffice. But i want to have more control over the toolbar Window instance returned by createWindow(). i want to dynamicall add/remove controls from this Window createItemWindow() at runtime based on some Global events. I think that method createItemWindow() is called once when extension toolbar is created and there is probably no way to request this method on runtime am i right? so my questions: -is the createItemWindow() method only requested once at custom toolbar creation? -what if i need to dynamically re-create the Window createItemWindow() at runtime to update the controls inside the Window returned by createItemWindow() method? can we do that, and if yes how? -is there a way i can get an instance of my toolbar so i can add and remove controls dynamically at runtime? if yes how can we do this (in java preferably) thanks -- View this message in context: http://nabble.documentfoundation.org/XToolbarController-createItemWindow-issue-tp3416998p3416998.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
[Libreoffice] libreoffice sdk 3.4 and SWT Linux issue
hello, I wrote a Java libreoffice addon using netbeans openoffice plugin and libreoffice 3.4.this addon launches a SWT window when i click a libreoffice toolbar button. this works fine in windows 7 with libreoffice sdk 3.4 . however for Linux (opensuse 11.4) i face a strange problem . when i close the SWT window the whole Libreoffice ( v 3.4) application freezes and becomes unresponsive and i have to kill the libreoffice process each time. i checked the trace log in my IDE debugger and no problem is reported. this wasn't happening when i was using libreoffice sdk version 3.3 but when i upgraded to libreoffice sdk 3.4 for linux this annoying problem happens and i have no clue what's wrong. I use latest SWT binaries from eclipse. I would be gratefull if someone could propose a clue what's going wrong and how to solve this frustrating problem. thanks -- View this message in context: http://nabble.documentfoundation.org/libreoffice-sdk-3-4-and-SWT-Linux-issue-tp3407355p3407355.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