[dev] Re: CWS configrefactor01 unit tests ...
Michael Meeks wrote: On Mon, 2007-02-05 at 16:56 +0100, Stephan Bergmann wrote: You committed something to that CWS but it doesn't yet work right? I'll have a look at it. Ah - I committed a working unit test that passes, but does nothing :-) My problem is (I suspect) getting a configmgr service that activates, reads some (minimal) data from a backend (or even a custom backend), and allows lots of banging on the UNO API to be done. OK, lets see what we can do. -Stephan The configmgr code there should work too FWIW. HTH, Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Extending the binfilter Module
Frank Schönheit - Sun Microsystems Germany wrote: Hi Rüdiger, being late to the thread, and being the one who implicitly initiated this ... Why would you copy additional stuff into binfilter? Because binfilter has a code base which lives several years in the past, whilst the current code base moves forward constantly. At some point, you simply can't stretch this any further. My recent problem was some changes in basic (not basctl), which let the build break in binfilter. There was no reasonable way (I could see) how to adapt this in binfilter: I would have needed to back-port large parts of SFX to BF_SFX (plus probably more), just to be able to use the new basic API. That's certainly nothing I would do, as it bears a completely unknown risk of breakage. We once decided to freeze binfilter, IMO we cannot reasonably expect that it will always be possible to adjust this stone-aged code to the latest and greatest code which has undergone multiple years of additional development. Hi Frank, Thanks for the details. Yes, I totally understand your problem, I think. But, what you did is what I proposed, not what was written here as recipe. You first evaluated to adapt binfilter to the incompatible changes. After spotting all the difficulties you searched for an alternativ. I could live with a rule to try adapting binfilter and, if that prooves to be of unreasonable effort, take importing more code as an (exceptional) alternative. But I am strictly against recommending a code duplication as first choice. Rüdiger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Extending the binfilter Module
Hi Rüdiger, Thanks for the details. Yes, I totally understand your problem, I think. But, what you did is what I proposed, not what was written here as recipe. You first evaluated to adapt binfilter to the incompatible changes. After spotting all the difficulties you searched for an alternativ. I could live with a rule to try adapting binfilter and, if that prooves to be of unreasonable effort, take importing more code as an (exceptional) alternative. But I am strictly against recommending a code duplication as first choice. Okay, so I think we're on the same track here. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Copy XTable problem
I have document with XTable.I have to clone this XTable.Today , I use XDispatchHelper.executeDispatch(). 1.Copy table to clipboard 2.Move cursor to new position 3.Paste table from clipboard Problem area: 1. I start to clone table 50 times 2. I open an Excel file and copy to clipboard.It changed clipboard content and my clone XTable procedure crached , because XDispatchHelper.executeDispatch() paste wrong data from clipboard. I search OO API , I discovered XClipboardManager http://api.openoffice.org/docs/common/ref/com/sun/star/datatransfer/clipboard/XClipboardManager.html It`s support addClipboard and getClipboard by parameter clipboardName. It`s may be a solution , but I don`t know , How to change cplipboard in XDispatchHelper.executeDispatch() . My questions: 1.How to change clipboard in XDispatchHelper.executeDispatch(XDispatchProvider provider , String command ,.) ? (command :=.uno:Copy | .uno:Paste ) 2.Is thare other way to clone XTable? Thanks
[dev] How to change dictionary directory
My self-compiled OOo looks for its dictionaries in /opt/openoffice.org2.1/share/dict. How can I change this (preferably at compile-time) to /usr/share/ooo-dict ? I want to change the directory for spell checker, thesaurus and hyphenation. Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] error (CannotRegisterImplementationException): loading component library ldapbe2.uno.dll build error HELP
Hi Branko, On Monday, 2007-02-05 12:46:51 +0100, Branko Tanovic wrote: register component 'ldapbe2.uno.dll' in registry 'c:\DOCUME~1\tane\LOCALS~1\Temp\i_12161170147993\wntmsci11.pro\OpenOffice\msi\services.rdb\en-US_inprogress_1\services.rdb' failed! error (CannotRegisterImplementationException): loading component library failed: ldapbe2.uno.dll Most likely there is some dependency of ldapbe2.uno.dll on another .dll that can't be fulfilled during load time. Try using the dependency walker depends.exe on ldapbe2.uno.dll to see if you can spot a missing dependency. Eike -- OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer. OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't send personal mail to the [EMAIL PROTECTED] account, which I use for mailing lists only and don't read from outside Sun. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Regarding Contributing
Hello All, I am a 27 years old programmer from India working in C++ and product development for the last almost 6 years. I would like to contribute to the Application Framework part of OO. Can somebody guide me to the right place. I have some tasks identified on that list which I would like to contribute to. Regards Rohit
Re: [dev] How to change dictionary directory
On Tue, 2007-02-06 at 12:17 +0100, Matthias B. wrote: My self-compiled OOo looks for its dictionaries in /opt/openoffice.org2.1/share/dict. How can I change this (preferably at compile-time) to /usr/share/ooo-dict ? I want to change the directory for spell checker, thesaurus and hyphenation. Where the default systemwide location is set is /opt/openoffice.org2.1/share/registry/data/org/openoffice/Office/Paths.xcu and defaults to e.g. /opt/openoffice.org2.1/share/dict and the OOo dictionaries are expected to be under ooo in that dir C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Regarding Contributing
Rohit Markande wrote: Hello All, I am a 27 years old programmer from India working in C++ and product development for the last almost 6 years. I would like to contribute to the Application Framework part of OO. Can somebody guide me to the right place. I have some tasks identified on that list which I would like to contribute to. Hi Rohit, I am glad that you want to help us in the framework project. Help is always appreciated. Please send me your list of identified tasks and we can discuss them. Below you can find some links about the framework project and information about legal requirements. The OpenOffice.org framework web page: http://framework.openoffice.org/ The framework development mailing list: dev@framework.openoffice.org You can find the current framework to do list here: http://wiki.services.openoffice.org/wiki/Framework Please don't forget to read the following web page about legal requirements to contribute code: http://contributing.openoffice.org/programming.html If you have questions don't hesitate to contact me. Kind regards and welcome on board, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Re: Openoffice bean throwing error while saving in old file format.
I have gone through all the sample code I could find, and I still get a com.sun.star.task.ErrorCodeIOException... i want to save this code just as an Openoffice document ..it still gives the same exception ... xStorable.storeAsURL(C:\\test.odt,storeProps); plz help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Re: Openoffice bean throwing error while saving in old file format.
priyanka wrote: I have gone through all the sample code I could find, and I still get a com.sun.star.task.ErrorCodeIOException... i want to save this code just as an Openoffice document ..it still gives the same exception ... xStorable.storeAsURL(C:\\test.odt,storeProps); i would suggest that you use an Url instead of a system path ;-) Juergen plz help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] formulas OO
Lucas Momparler wrote: Hello, Why the mathematical formulas in all OO versions have so low graphic quality? This happens specially when you save as HTML to publish online. 3+2 can appear as 3-2 ! From version to version of OO you can see many design changes: icons, logos, presentations, buttons,... but when it comes to the really useful, in my opinion, sometimes it could be a bit better. Will the problem of the mathematical formulas always be in WONTFIX? What issues are you talking about? The problem I see here is that in case of HTML export a formula is converted to a bitmap image. This can (and sometimes will) lead to a mediocre display quality. What options do we have? We could either export to SVG or we could export to Math ML. A question remains whether all browsers support this sufficiently, but let's take for granted. IIRC we already have an issue for option 2. It's currently not worked on because we indeed didn't see it important enough compared to other things. Option 1 currently isn't an option because our graphic enginge does not allow to export to SVG (only Windows Metafile and VCL Metafile are supported as non-pixel image formats). As this is deadly needed for other reasons also I hope that we can go this way in a not so far future. The changes to be made for the HTML export will be comparably small then. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to [EMAIL PROTECTED]. I use it for the OOo lists and only rarely read other mails sent to it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] error (CannotRegisterImplementationException): loading component library ldapbe2.uno.dll build error HELP
Hello Eike, the depends.exe got me this information. missing dlls STLPORT_VC845.DLL CPPU3.DLL CPPUHELPER3MSC.DLL NSLDAP32V50.DLL SAL3.DLL SALHELPER3MSC.DLL Now i could copy all this dll to C:\OOE680_m6\extensions\wntmsci11.pro\bin put I do not thing should work like that. all this files are builded I found out one more thing MSVCR71.DLL was requied by NSLDAP32V50.DLL which in mozilla runtime i use prebuilded mozila *WNTMSCIruntime.zip*, WNTMSCIlib.zip, WNTMSCIinc.zip and i did not find anywhere NSLDAP32V50.DLL only in zipped WNTMSCIlib.zip any ides One more Interesting info the sr.openoffice.org got new webpage looks very similar to de.openoffice.org or sl.openoffice.org only is Cyrillic ;) I also builded the version of 2.1 for ubuntu Linux which could be downloaded via sr.openoffice.org the translation in this version is not complete about 92% without help. also now is much easier for translators to work on translation on the pootle website http://prevod.grappoloin.com so i could expect lot of nice things happening in sr.openoffice.org Eike Rathke wrote: Hi Branko, On Monday, 2007-02-05 12:46:51 +0100, Branko Tanovic wrote: register component 'ldapbe2.uno.dll' in registry 'c:\DOCUME~1\tane\LOCALS~1\Temp\i_12161170147993\wntmsci11.pro\OpenOffice\msi\services.rdb\en-US_inprogress_1\services.rdb' failed! error (CannotRegisterImplementationException): loading component library failed: ldapbe2.uno.dll Most likely there is some dependency of ldapbe2.uno.dll on another .dll that can't be fulfilled during load time. Try using the dependency walker depends.exe on ldapbe2.uno.dll to see if you can spot a missing dependency. Eike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] A few brief questions ad extension packages (Re: [dev] Class-Path Entry in Manifest Package File and the Location of the Respective jars?
Stephan Bergmann wrote: Rony G. Flatscher wrote: Hi Stephan, Feel free to come back here with any questions along your way, Thank you very much for your kind offer! Indeed, after studying your information there would be a couple of questions: * where would one find the full definition for manifest.xml and a list of valid mainfest:media-types; I looked in the developers guide and tried the search function of the Wiki, but have not been really able to locate it? Maybe its only in the code. :( But I do not know, maybe Jochen knows more. Jochen??? The Developers Guide (I believe chapter 4.9 contains the information about what possible entries can exist. * also, where would one be able to find the full definition for the description.xml file? o ad version numbers: would something like 2.1.0.20070202 or 210.20070202 be o.k. (according to the production rule it should be possible) or would that pose any problems (the date of the version is the trailing value, possibly supplemented with the time of the day like 210.20070202162200) The authoritative definition of version numbers is http://specs.openoffice.org/appwide/packagemanager/extensionversion.odt. All your examples above would be valid version numbers. However, the TODO at desktop/source/deployment/misc/dp_version.cxx:1.3 l. 53 suggests to only use segments for now that represent integers 2^63. ;) * ad application/vnd.sun.star.uno-component;type=native: o This can be used to not only denote libraries, but also executables and modules (or with other words: these files will be put into a place that is accessible via the PATH settings?) No, such files are not put on any path. If those libraries are UNO libraries that support services/singletons, they will be found by the UNO framework via the information recorded at deployment time. If those libraries are used by other libraries, those libraries must make sure to find them (e.g., via RPATH on ELF platforms). o Is there a complete list somewhere of the operating system dependent strings? The extension document mentions Windows, Linux_x86, Solaris_SPARC. So what about PPC versions of Linux or Intel versions of Solaris or PPC and/or Intel versions of MacOSX? AFAIK these values are composed of the build- in bootstrap variables _OS and _ARCH. Values for these can be found in sal/rtl/source/macro.hxx. Jochen Again, maybe its only in the code. Again, maybe Jochen knows more. * is there a possibility to copy a set of scripts (in any available scripting language) to the user and/or shared script repository? If possible, what would be the appropriate manifest:media-type entry? o Of course this may pose a little problem when using the update feature, as such scripts could have been edited in the meantime by the users (but then one could resolve this by moving the existing/edited extension scripts to an own backup library) Sorry, I have no experience with those things. Hopefully, somebody else can step in. -Stephan TIA, ---rony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] A few brief questions ad extension packages (Re: [dev] Class-Path Entry in Manifest Package File and the Location of the Respective jars?
Rony G. Flatscher wrote: Hi Stephan, thank you very much for your answers! ... cut ... * ad application/vnd.sun.star.uno-component;type=native: No, such files are not put on any path. If those libraries are UNO libraries that support services/singletons, they will be found by the UNO framework via the information recorded at deployment time. If those libraries are used by other libraries, those libraries must make sure to find them (e.g., via RPATH on ELF platforms). Hmm, in the case of the ooRexx scripting engine: * there is a platform dependent DLL/so which needs to be accessible (at the moment I copy it into OOoHome/program), so the library is *not* an UNO-component, just a native library, * there are three text files (actually ooRexx programs) named BSF.CLS, UNO.CLS, UNO_XINTERFACES.REX which also need to be accessible by ooRexx scripts (and for that reason I have to copy them into OOoHome/program. Is there a means with the extension package manager (via a manifest:media-type) to cause these files to be either made accessible via [D]PATH/LD_LIBRARY_PATH and PATH, or have a means available to tell the package manager where to copy these files in the standard OOo installation tree in a platform independent manner)? No, only libraries containing UNO services can be installed. Jochen Regards, ---rony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]
Stephan Bergmann wrote: Rony G. Flatscher wrote: Hi Stephan, The Ubuntu layout you described in a previous mail (libs in /usr/lib/openoffice/program, jars in /usr/share/java/openoffice) cannot work (at least not without some modifications to the OOo code base). Not sure why Ubuntu decided to ship a broken OOo (maybe they are not even aware of it, maybe you can file them an issue). Well, ashok seems to be able to deploy the Java program, if it is embedded in a jar-file, it seems. So not sure yet, why it works there and not here. Will have to look further into this. [However, the Extension manager on the tools menu does not work either in this version; it does from the commandline, though, ie. unopkg works there.] What is broken with the extension manager? It does not come up (nor in the genuine OOo installation). I have Sun's Java installed and activated. Will look into this once more to make sure that my scripts did not alter the standard installation. You mean you select Tools - Extension Manager but no dialog appears? That's strange. It should not have anything to do with Java. Probably Joachim Lingner (jl at ooo) is interested in that, as he maintains the extension manager. The Extension Manager Dialog is contained in a service. This service is used when starting the Etension Manager from the Tools menu or when runngin unopkg gui. You mentioned that unopkg works, does that mean unopkg add / remove works and unopkg gui as well ? Joachim -Stephan Regards, ---rony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] binfilter subtlety with EXPORT_OASIS flag
Hi, while fixing a problem I stumbled over a subtle problem with the EXPORT_OASIS flag of the filter in xmloff for embedded objects. The flag EXPORT_OASIS is not set when your filter exports to the OOo XML format. This flag should not be used explicitly in the export code, however in most filters it is, nonetheless. If you use it in the export code, you might have a problem (like I had), otherwise you might stop reading here. When you write a binary file, the current document is exported as OOo XML flat (!), which is passed to binfilter. The flat-filter has the following problem: The usual export code in xmloff only creates the OASIS format. To have the OOo XML format, the OASIS format is transformed using the transformer code (xmloff/source/transform). This is controlled by not setting the EXPORT_OASIS flag. In flat format, the EXPORT_OASIS flag is set for embedded objects, because if it wouldn't, the embedded object would be transformed twice, once by the filter code of the embedded object, and then again by the container, because the container transforms the whole stream, including the embedded object. (That's what flat means). As a consequence, when you have: 1. An embedded object 2. That you export to binary format (or directly to flat OOo XML) 3. and you use something like if( getExportFlags() EXPORT_OASIS ) in your export code, you might get a problem, because although you export to OOo format, the EXPORT_OASIS flag is set. I admit, this is not a very common case, but it lead to problems in the chart code (the most common embedded object), and may also appear in other situation. Sorry, for writing such long, confusing stuff here, just wanted to make sure everybody knows about this. Regards, -Bjoern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] may i know how to access UNO using javascript in firefox?
may i know how to access UNO using javascript in firefox? it can be done easily in IE, due to the support of Auntomation. but can it be done in firefox, especially under Linux? if can, how can i get this done? 3Ks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]