|
From: Lars C. <lar...@gm...> - 2015-08-19 21:29:35
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> <div> <div>Hi Pepe,</div> <div> </div> <div>I have not implemented a counter for objects id's. But I have activated "ohObjectSave", "ohObjectLoad" and some logging functions from the ObjectHandler (serialization.xml and logging.xml) - it works under Linux.</div> <div> </div> <div>Since the handling of the basic types is defined a lot of functions in xml files can be activated/checked. I have not looked for all addin functions (that can be activated for Calc) since I want to test the activated functions at first. I would like to have some sample spreadsheets showing their application. Maybe we can share the work of testing and extending the xml files for Calc?</div> <div> </div> <div> </div> <div>One remark concerning OhRangeRetrieveError: I think it is not necessary in the current implementation since the return type of addin functions is SEQ(SEQ(ANY)) [matrix of any (string, float) value]- in the case of exceptions the error message will be returned instead of the objectID/calculated results. You should see this in the code and in Calc.</div> <div> </div> <div>Kind regards,</div> <div> Lars</div> <div> </div> <div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 19. August 2015 um 10:07 Uhr<br/> <b>Von:</b> ja...@fr...<br/> <b>An:</b> "Lars Callenbach" <lar...@gm...><br/> <b>Cc:</b> qua...@li...<br/> <b>Betreff:</b> Re: [Quantlib-dev] Calc Addin under Linux for QuantLibAddin-1.5.0</div> <div name="quoted-content">I have started to debug/test worksheets and things sort of work. Something that I dont understand; is OH working? Why I can not see the instantiation numbering (or whatever you call it) after the object name? Do you see this on MacOS?<br/> <br/> Best<br/> Pepe<br/> <br/> <br/> ----- Original Message -----<br/> > Hello again Lars,<br/> > Sorry for the blackout; I was struggling with it and had not much to<br/> > contribute with. But your last branch did help me a lot and save me<br/> > quite a bit of time an effort. A big thank you.<br/> ><br/> > I am building it ok on Linux and running the worksheets. I am<br/> > providing a pedestrian Makefile for it. I can not do it with<br/> > Makefile.oo as it is now. The Makefile is very basic but the idea is<br/> > that eventually both Makefiles merge into a proper am file. It just<br/> > provides a dynamic linked lib and installs it. Prerequisites on the<br/> > environment are the same ones you mention.<br/> ><br/> > There are a couple of differences. I dont install the way you do (my<br/> > system needs sudo for that); I use a component file and my manifest<br/> > file is fixed (this is the only collision I see with your make). Its<br/> > similar to the standard add-in example in the uno sdk. Also the way<br/> > I generate from the idl has a few unnecessary dependences, its also<br/> > taken from the example.<br/> ><br/> > I am adding this into github.com/japari/quantlib/tree/Calc_linuxmake<br/> > This is a branch that I created from the PR you sent to Eric but<br/> > when I uploaded to GitHub it only lets me PR to Erics fork. Can you<br/> > take the changes into your branch please? I prefer that rather than<br/> > issuing a PR to Eric.<br/> ><br/> > Is there anyone working on this on Windows?<br/> ><br/> > Best<br/> > Pepe<br/> ><br/> > My TODO list (comments on Makefile.linux results)<br/> > -Useful functions like OHrangeRetrieveError are missing.<br/> > -At least some functions, if not all, fail when called without all<br/> > arguments given; i.e. there are no default values taken in.<br/> > -Error codes as numbers are ugly.<br/> > -Consider renaming the Add-In service to "QuantLib" ? This might be<br/> > more tidy when looking for a function in the Calc drop down menu.<br/> > -Debug the Makefile dependencies; when launching the Makefile with<br/> > '-j' things go wrong: ...'at times'... theres no ./com/* generation,<br/> > or too late and as a result the f's are not shown. No complains<br/> > about missing includes though....<br/> > -Trim the idl compilation; lots of stuff there not used.<br/> ><br/> ><br/> ><br/> ><br/> ><br/> > ----- Original Message -----<br/> > > Hi all,<br/> > ><br/> > > Pepe, changed index.xml to remove inflation dependencies.<br/> > > Eric, pushed anotther version without generated files in Calc<br/> > > directory<br/> > > - do I have to start another pull request or is the old one still<br/> > > active<br/> > > and includes the last changes?<br/> > ><br/> > > Best regards,<br/> > > Lars<br/> > ><br/> > > Am Donnerstag, den 16.07.2015, 06:19 +0200 schrieb ja...@fr...:<br/> > > > Hi all,<br/> > > > Lars, I have tried your branch and I the AddIn compilation fails<br/> > > > at<br/> > > > the inflation bonds registration so it looks like I need the xml<br/> > > > files you mentioned. Can I have a look at them please? Can you<br/> > > > add<br/> > > > those to github?<br/> > > > Thank you.<br/> > > > Pepe<br/> > > ><br/> > > ><br/> > > > ----- Original Message -----<br/> > > > > Hi Eric,<br/> > > > ><br/> > > > > set up a pull request against 1.6.<br/> > > > ><br/> > > > > @Pepe: is something missing or does everything work fine for<br/> > > > > you<br/> > > > > (I<br/> > > > > have<br/> > > > > written some more xml files for inflation, model calibration<br/> > > > > etc.<br/> > > > > which<br/> > > > > are not included in this pull request)?<br/> > > > ><br/> > > > ><br/> > > > > Best regards,<br/> > > > > Lars<br/> > > > ><br/> > > > ><br/> > > > > Am Sonntag, den 12.07.2015, 12:57 +0300 schrieb Eric Ehlers:<br/> > > > > > Hi Lars,<br/> > > > > ><br/> > > > > > This is great!<br/> > > > > ><br/> > > > > > Would it be possible for you to send me a pull request for<br/> > > > > > this?<br/> > > > > > If<br/> > > > > > you could do it against my v1.6.x branch then I will include<br/> > > > > > it<br/> > > > > > in<br/> > > > > > the<br/> > > > > > 1.6 release which I am preparing now. Otherwise if you do it<br/> > > > > > against<br/> > > > > > my master then it will go in to 1.7.<br/> > > > > ><br/> > > > > > Kind Regards,<br/> > > > > > Eric<br/> > > > > ><br/> > > > > > On Fri, 10 Jul 2015 19:05:55 +0200<br/> > > > > > Lars Callenbach <lar...@gm...> wrote:<br/> > > > > ><br/> > > > > > > Hello,<br/> > > > > > ><br/> > > > > > > I have extended the addin code for the LibreOffice calc<br/> > > > > > > plugin.<br/> > > > > > > Changes: 1) vetor return values (iteration over std::vector<br/> > > > > > > results)<br/> > > > > > > 2) return type seqseq(ANY) for all addin functions to<br/> > > > > > > provide<br/> > > > > > > addin<br/> > > > > > > access to exceptions (exception messages will be displayed<br/> > > > > > > in<br/> > > > > > > cells)<br/> > > > > > > 3) implementation of default value handling<br/> > > > > > > (ANY::hasValue()<br/> > > > > > > function)<br/> > > > > > > 4) works clean with dynamic libraries (and with static<br/> > > > > > > linking)<br/> > > > > > ><br/> > > > > > > I have changed a lot of XML config files and some python<br/> > > > > > > files<br/> > > > > > > for the<br/> > > > > > > calc addin and I suggest to include my changes in the<br/> > > > > > > official<br/> > > > > > > code.<br/> > > > > > > How shall we proceed to include these changes in the<br/> > > > > > > official<br/> > > > > > > version? Who is responsible for the maintenance of the calc<br/> > > > > > > code?<br/> > > > > > > Can<br/> > > > > > > I help maintaining the calc code?<br/> > > > > > ><br/> > > > > > > The generated code is available under<br/> > > > > > > "<a href="https://www.callenbach.eu" target="_blank">https://www.callenbach.eu</a>".<br/> > > > > > ><br/> > > > > > ><br/> > > > > > > Best regards,<br/> > > > > > > Lars<br/> > > > > ><br/> > > > ><br/> > > > ><br/> > > > ><br/> > ><br/> > ><br/> > ><br/> ><br/> > ------------------------------------------------------------------------------<br/> > _______________________________________________<br/> > QuantLib-dev mailing list<br/> > Qua...@li...<br/> > <a href="https://lists.sourceforge.net/lists/listinfo/quantlib-dev" target="_blank">https://lists.sourceforge.net/lists/listinfo/quantlib-dev</a><br/> ></div> </div> </div> </div></div></body></html> |