[dev] Visual Basic Open Office
Hi all I am developing an application for the OSCommerce/Zencart community which sorts data and builds their database using Excel then Access. Now I know Access works with Open Office but do you have any examples of porting VB6 code which works with Excel so it works with OpenOffice too? This is quite an extensive spreadsheet system so I would hate to rewrite every line of code in the VB6 application, however I would like to include functionality for OpenOffice too. I am also fairly new to programming so am not advanced enough to code in C++ Hope to hear your thoughts soon Kind regards Jim
[dev] C++ Programmer
Hi, I am interested in contributing to the development of Open Office. I browsed through the contributing pages but there is so much info. I graduated from Michigan State University in Decemeber 2004 with BS Computer Engineering and I have knowledge in C/C++, Java, and .NET (little). I want to strengthen my programming skills and I would like to contribute to the OO team but don't know where to start. Can you help? Wissam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] C++ Programmer
Hello Wissam, Selon Wissam Geadaa [EMAIL PROTECTED]: I am interested in contributing to the development of Open Office. I browsed through the contributing pages but there is so much info. I graduated from Michigan State University in Decemeber 2004 with BS Computer Engineering and I have knowledge in C/C++, Java, and .NET (little). I want to strengthen my programming skills and I would like to contribute to the OO team but don't know where to start. Can you help? Welcome to the OpenOffice.org community: one developper more ;) I just have written an exercise to learn about UNO and C++ implementation for a simple URE application. You can find it at http://blogs.nuxeo.com/sections/blogs/cedric_bosdonnat/2005_10_29_uno-ure-exercise This could help you to begin. Use the Developer's Guide as a reference... There are some interesting pages: http:/:development.openoffice.org. I hope this could help you ;) See you soon on the lists Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Buggy insertDocumentFromURL
Christoph Lutz wrote: Hi Christian, 2005/10/27, Christian Junker [EMAIL PROTECTED]: I tested all the small examples on Mac OS X with OOo 2.0 using Starbasic and I can only reproduce Bug 1 (it's probably not a bug here). Bug 2: That's also my experience using Starbasic. In Starbasic the insertDocumentFromURL throws an corresponding exception *immediately* (a dialogbox with the error message pops up). It's the different behaviour in Java that makes me wonder. The way basic bahaves lets me come to the following guess: I don't get any exception in Basic, I get an error message, but no exception (that's a difference!). I currently have no idea why you don't get the error message from Java. OTOH I think that the error message in an API call is a bug, so the behavior in Java is correct, why ever. A message box shouldn't be shown if no InteractionHandler set set. Of course it still is an API bug that no suitable exception is thrown, but as I already wrote it can't be fixed in the method insertDocumentFromURL, it can be fixed only by providing a new method (and so a new interface). I also tried to provide a different InteractionHandler in the MediaDescriptor props, but (that's the reason why I wrote the Bug 1-example) it seems that insertDocumentFromURL throws an IllegalArgumentException everytime the MediaDescriptor is not empty. This also sounds like a bug to me. Ciao, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] disable gui-interaction temporary for modal JFrame-dialog
Hi Mathias, I know that someone successfully used a trick to achieve modality: when her started his Java dialog he created a 1 pixel sized modal dialog with the OOo toolkit with the current OOo window as parent and moved it to the upper left corner of the screen. This will create the desired modal mode. yes, the modal-mode works using the following code, but I don't know how to return from the xInfoBox.execute() method in a programmatic way. I need to stop the execution of the infobox-dialog when my jframe-dialog returns. I already tried to use dispose() on the XComponent-Interface of xInfoBox from a different thread, but that caused OOo to crash. ... create Toolkit ... // describe the info box ini it's parameters com.sun.star.awt.WindowDescriptor aDescriptor = new com.sun.star.awt.WindowDescriptor(); aDescriptor.WindowServiceName = infobox; aDescriptor.Bounds = new com.sun.star.awt.Rectangle(0, 0, 300, 200); aDescriptor.WindowAttributes = com.sun.star.awt.WindowAttribute.BORDER | com.sun.star.awt.WindowAttribute.MOVEABLE | com.sun.star.awt.WindowAttribute.CLOSEABLE; aDescriptor.Type = com.sun.star.awt.WindowClass.MODALTOP; aDescriptor.ParentIndex = 1; aDescriptor.Parent = (com.sun.star.awt.XWindowPeer) UnoRuntime .queryInterface(com.sun.star.awt.XWindowPeer.class, frame .getContainerWindow()); // create the info box window com.sun.star.awt.XWindowPeer xPeer = xKit.createWindow(aDescriptor); com.sun.star.awt.XMessageBox xInfoBox = (com.sun.star.awt.XMessageBox) UnoRuntime .queryInterface(com.sun.star.awt.XMessageBox.class, xPeer); if (xInfoBox == null) return null; // fill it with all given informations and show it xInfoBox.setCaptionText(sTitle); xInfoBox.setMessageText(sMessage); xInfoBox.execute(); any ideas? A particular API for modality would be fine! best regards, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] [HOTD] comphelper::sequenceToContainer friends
Frank Schönheit - Sun Microsystems Germany wrote: Hi Eike, If DstType and SrcType refer to the same type (which is often the case), using one of Sequence's ctors is faster, i.e. [...] This is a perfectly good example of why a wiki is better for such type of collaborative work than a mailing list could ever be.. Hmm. Is a wiki really better for discussing things which are still evolving? My (who I am seldomly working with Wikis, admittedly) impression with Wikis is that they are not really good in exchanging opinions about a problem, on the track to a final mutual solution. I think they can be really good at it. I've used a wiki for one issue (12719) to draft a specification - this means that different people can edit the document in a nice ad-hoc way. You can always use a wiki page to have separate sections for different opinions if this is needed. However I think sometimes email / chat is better for debate David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] [HOTD] comphelper::sequenceToContainer friends
Hi David, However I think sometimes email / chat is better for debate Think so, too. And I *do* expect debates if people really start introducing their pet helper classes :) Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Database http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Code reviewer for CWS 'long2int' needed
Hi, Once again I need a code reviewer for a CWS; any volunteers, please? ;-) This time it is 'long2int' - see http://www.openoffice.org/issues/show_bug.cgi?id=56715 It is a set of trivial ULONG/long - sal_uInt32/sal_Int32 changes extracted from CWS ooo64bit02. Thorsten, you did the QA of the 'intptr' and 'dxarray' CWSes, may I mark you as the QA representative for this one as well, please? The build is available here: http://www.go-oo.org/tstooo/long2int-m135/ Thank you in advance, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Buggy insertDocumentFromURL
Hi Mathias, I currently have no idea why you don't get the error message from Java. OTOH I think that the error message in an API call is a bug, so the behavior in Java is correct, why ever. A message box shouldn't be shown if no InteractionHandler set set. thats right, but OTOH a unresolved URL should not cause OOo to freeze... http://qa.openoffice.org/issues/show_bug.cgi?id=57049 Of course it still is an API bug that no suitable exception is thrown, but as I already wrote it can't be fixed in the method insertDocumentFromURL, it can be fixed only by providing a new method (and so a new interface). The idl-ref says: void insertDocumentFromURL( [in] string aURL, [in] sequence ::com::sun::star::beans::PropertyValue aOptions ) raises( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException ); I think that's all I need!? The problem is that the IOException is never thrown. I also tried to provide a different InteractionHandler in the MediaDescriptor props, but (that's the reason why I wrote the Bug 1-example) it seems that insertDocumentFromURL throws an IllegalArgumentException everytime the MediaDescriptor is not empty. This also sounds like a bug to me. http://qa.openoffice.org/issues/show_bug.cgi?id=57047 best regards, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Code Samples
I have a keen interest in computer programming on a hobby basis. I have been coding in C++ for several years and have recently completed a 1 year part time college course in Java. I feel I may not have the required skills to contribute any code but would greatly appreciate the opertunity to view real world professionally written code to aid my own development. Could you therefore direct me to were I could view some code or attach a sample to an e-mail, thanks very much. Regards Paul Hornby
Re: [dev] Google working with OpenOffice.org
Hi Charles and all, What could be a good idea would be to set up a meeting (by IRC / Audio conference / mailing lists) where Google could come up and explain its plans regarding OpenOffice.org Good idea. I prefer IRC. I think #OpenOffice.org and #ooonlc on irc.freenode.net are always open for such discussion. Channel? Date and Time? UTC? :) khirano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] disable gui-interaction temporary for modal JFrame-dialog
Christoph Lutz wrote: Hi Mathias, I know that someone successfully used a trick to achieve modality: when her started his Java dialog he created a 1 pixel sized modal dialog with the OOo toolkit with the current OOo window as parent and moved it to the upper left corner of the screen. This will create the desired modal mode. yes, the modal-mode works using the following code, but I don't know how to return from the xInfoBox.execute() method in a programmatic way. I need to stop the execution of the infobox-dialog when my jframe-dialog returns. I already tried to use dispose() on the XComponent-Interface of xInfoBox from a different thread, but that caused OOo to crash. ... create Toolkit ... . any ideas? A particular API for modality would be fine! best regards, Christoph Christoph, Mathias, I know that there is a programming language called Java, and that's about all I know of it, but some of the terms you use rang a bell. Maybe you can find something of interest in the following links: API: https://jmodalwindow.dev.java.net/ Article: http://today.java.net/pub/a/today/2004/09/07/modal.html I hope this helps. Sincerely, Gerrit Jasper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] inserting text in current Frame
Hello, I'm developping a java application, and I extended it (or at least tried to extend it) so that it can interpolate with openoffice. I can now insert text, image, diagrams and links inside openoffice, all that from my external java-programm. Thats really nice:) The strange thing is that it does that only on the Writer-frame that I opened first. I would like to also be able to insert things in a new opened docuemnt. And I would like to allow the user to edit several document with OpenOffice.org, and only operate (i.e. : insert Tex, images, diagramms or links) on the the frame, that is currently on top. so... What I am doing wrong ? Why can I only use the first opened frame ? (i.e.: How to get the frame that is currently in use?) I pasted the code in the Email. Thanks a lot for the answer in advance. Regards Daniel __Code__ //here is the code I used to open the first new writer frame : .. try { xComponent = xCompLoader.loadComponentFromURL(private:factory/swriter, _blank, 0, new com.sun.star.beans.PropertyValue[0]); xTextDocument = (XTextDocument) UnoRuntime.queryInterface( XTextDocument.class, xComponent); } catch (com.sun.star.uno.Exception e) { System.out.println(uno Error!); e.printStackTrace(); } //here is the code I use to insert text : void insertTest(String word){ xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, xComponent); XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xComponent); // the controller gives us the TextViewCursor XController xController = xModel.getCurrentController(); XTextViewCursorSupplier xViewCursorSupplier = (XTextViewCursorSupplier) UnoRuntime.queryInterface( XTextViewCursorSupplier.class, xController); // create a model cursor from the viewcursor XTextViewCursor xViewCursor = xViewCursorSupplier.getViewCursor(); XText xDocumentText = xViewCursor.getText(); XTextCursor xModelCursor = xDocumentText.createTextCursorByRange( xViewCursor.getStart()); xModelCursor.setString(word); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Code reviewer for CWS 'long2int' needed
maybe some ULONG should convert to sal_Size. I think the consistent is more important. In some codes, ULONG and sal_uInt32 displace caused many problems. On 10/31/05, Jan Holesovsky [EMAIL PROTECTED] wrote: Hi, Once again I need a code reviewer for a CWS; any volunteers, please? ;-) This time it is 'long2int' - see http://www.openoffice.org/issues/show_bug.cgi?id=56715 It is a set of trivial ULONG/long - sal_uInt32/sal_Int32 changes extracted from CWS ooo64bit02. Thorsten, you did the QA of the 'intptr' and 'dxarray' CWSes, may I mark you as the QA representative for this one as well, please? The build is available here: http://www.go-oo.org/tstooo/long2int-m135/ Thank you in advance, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sybase Xi'an RD Studying...
[dev] [Fwd: Registration/Survey Bug]
Hi, Am forwarding this email to this list because it seems that many people have this problem. best, Cristian Original Message Subject: Registration/Survey Bug Date: Mon, 31 Oct 2005 23:46:00 +0100 (CET) From: Nicholas A. Donato [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] I installed OpenOffice 2.0 the other day and every time I boot up my system I am forced to either register or ask to register later. If I cancel the registration the Quickstarter does not run and if I choose any other option, I am forced to go through the whole thing again next time I start my system. Please tell me what the fix is for this. BTW, I have been a registered user for years, and I filled out the survey again just to try and get this thing to stop pestering me. --nick -- Cristian DRIGA == www.openoffice.org ro.openoffice.org marketing.openoffice.org/art/ --- Attorney at Law - Iasi, Romania Phone: +40.78.87.000.60; Email: [EMAIL PROTECTED] Web: http://www.kfacts.com/driga/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] wiki(pedia) filter
Uwe Brauer wrote: Hello Are there any plans to include a wiki(pedia) input or output filter in OO? It's on my wishlist... :-) Regards Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]