summaryrefslogtreecommitdiff
path: root/formula
AgeCommit message (Collapse)Author
2014-04-25fdo#73148 (partial patch) Add Excel 2010 function AGGREGATEWinfried Donkers
Change-Id: If8fc8608699a14e573456af2e1180342be942dd1 Reviewed-on: https://gerrit.libreoffice.org/8475 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-04-23formula: sal_Bool->boolNoel Grandin
Change-Id: I3280b4d4b02e6a6fa22bc250e56a3c6ae77fc675
2014-04-19fixincludeguards.sh: formulaThomas Arnhold
2014-04-15Avoid possible memory leaks in case of exceptionsTakeshi Abe
Change-Id: Ie07c6c9989da444eb6052691696e95b808c23fb0
2014-04-14fdo#76294: Intern strings in AddFormulaToken() as well.Kohei Yoshida
And a whole bunch of changes needed to make that happen. Change-Id: Idd98fbc99322c0d72fb0a7848d89cb1a6abc88b6
2014-04-14fdo#76294: Properly intern string literals in formula on xls import.Kohei Yoshida
Change-Id: Ib3a442cbb68c23294762561f2911101a087a795e
2014-04-14Remove unused codeStephan Bergmann
Change-Id: I1355317d6baeb180417cb5f1f34038925c1299cf
2014-04-11fdo#73149 add Excel 2010 functions ERF.PRECISE and ERFC.PRECISEWinfried Donkers
Change-Id: I3199470ec92923e8cc12156f21dd397d870cc1e0 Reviewed-on: https://gerrit.libreoffice.org/8930 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-04-10It's "its", not "it's"Tor Lillqvist
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-07fdo#75741: Re-implement CompileNameFormula for formula groups.Kohei Yoshida
Change-Id: I57e1e464ac5f7abc10ce5ea5752e036ddb6cf6d7
2014-04-02fdo#71720 fix transalate stringsWinfried Donkers
Change-Id: I8758e2407f1d3d1e09324b4fe5cc0442f8dda34d Reviewed-on: https://gerrit.libreoffice.org/8819 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-04-02fdo#73147 add Excel2010 functions NETWORKDAYS.INTL and WORKDAY.INTLWinfried Donkers
Change-Id: I3ab9dde5c421a3a3e6022a27be37f23547197317 Reviewed-on: https://gerrit.libreoffice.org/8772 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-03-28Remove remaining DBG_CTOR etc. remnants from formulaStephan Bergmann
Change-Id: I36740cd276d2047552298606f24b2696ed61b36b
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-25svtools: sal_Bool->boolNoel Grandin
Change-Id: Ifd3e643dbc6755839ad4af73ae141fd115ddb4f4
2014-03-22coverity#738657 Uninitialized pointer fieldCaolán McNamara
Change-Id: I37c946d37a7f3add6b6798b15f5fb6ab4b7274ff
2014-03-10ISO.CEILING without _xlfn. prefix, it is defined in OOXML, fdo#71720 follow-upEike Rathke
Change-Id: I486261d34d62bc5eda0a202cbb1dcb875ffcf39b
2014-03-10fdo#71720 Add Excel 2010 functionsWinfried Donkers
CEILING.PRECISE, ISO.CEILING, FLOOR.PRECISE Change-Id: I047b65ca3adafb89fce9b6493948aa851ddca765 Reviewed-on: https://gerrit.libreoffice.org/8488 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-03-06Make these non inline.Kohei Yoshida
Change-Id: Ib139850380b039382565e3de3666eebb5750f32d
2014-03-05made ListBox handle more than 64k elements, fdo#61520 relatedEike Rathke
ListBox and related now handle up to sal_Int32 elements correctly. sal_Int32 instead of sal_Size or size_t because of UNO and a11y API. Also disentangled some of the mess of SvTreeList and other containers regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures. Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a Reviewed-on: https://gerrit.libreoffice.org/8460 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-03-05fdo#72197 Add Excel 2010 functionsWinfried Donkers
MODE.SNGL, MODE.MULT, NEGBINOM.DIST, Z.TEST Change-Id: I55eb05e1ebdb9dbc3ce9ae84e3cdacfdfa112091 Reviewed-on: https://gerrit.libreoffice.org/7776 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-03-05remove unused code formula::FormulaDlg::CheckMatrix()Noel Grandin
Change-Id: If7b09d032d0155a38b5d5e8aa1832c86a8f7cec1
2014-03-05remove unused code in formula/FormulaTokenArrayNoel Grandin
formula::FormulaTokenArray::AddString(unsigned short const*) Change-Id: I6c014f6ada3b75398112e81f9c8e7de7dd776c7d
2014-03-05remove unused code in formula/vectortokenNoel Grandin
Remove these methods:. formula::DoubleVectorRefToken::GetRequestedArrayLength() formula::SingleVectorRefToken::GetRequestedArrayLength() formula::SingleVectorRefToken::SingleVectorRefToken( double const*, unsigned long, unsigned long) and optimise some accessor methods. Change-Id: I04f53593894a59dbefdd1cbc9505c6eb7cd8610b
2014-02-27Store the length of originally requested array size prior to trimming.Kohei Yoshida
This change adds GetRequestedArrayLength() method to both single and double vector ref tokens, which returns the length of the requested array size prior to trimming of the trailing empty cell region. Change-Id: Iaba96fa2ea4ff3c8bccb0bc86fa4f1525e2f45fb
2014-02-26Remove visual noise from formulaAlexander Wilms
Change-Id: Ie7503623ad9bec1806345f65b435c7bd94a08c2b Reviewed-on: https://gerrit.libreoffice.org/8263 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-24coverity#735751 Dereference after null checkCaolán McNamara
Change-Id: Id7e11fefec40d11c509bde01533122ca68db7402
2014-02-23Remove unneccessary commentsAlexander Wilms
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21vcl: sal_Bool -> boolStephan Bergmann
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21cid#707865 Uninitialized pointer fieldNoel Grandin
Change-Id: I86c90a95093d6c90cbc733164a3b773468575b5b
2014-02-20Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert
Added vcl/settings.hxx to all cxx files which require it. This helps to speed up compilation after changes to the settings. Conflicts: sc/source/ui/dbgui/pvlaydlg.cxx Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4 Reviewed-on: https://gerrit.libreoffice.org/7933 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-19sal_Bool->boolNoel Grandin
Change-Id: I3589b3fb44ad57140567338809513b3df7c7eba5
2014-02-19sal_Bool->boolNoel Grandin
Change-Id: Id5cbf2c94e3d3ff27cdb8998e2b7b3b712b537ec
2014-02-19sal_Bool->boolNoel Grandin
Change-Id: Id314bacb8af5c75ecce73a0b7cfee45f36db93da
2014-02-18sal_Bool->boolNoel Grandin
Change-Id: I628c1506573c7d5ec182048a20ed996c9ae879c4
2014-02-09coverity#1169835 Improper use of negative valueCaolán McNamara
Change-Id: I73b9ea3f1da05c8ddfd8e0b2da526b65dc1891bb
2014-01-30fdo#73146 Add Excel 2010 functionsWinfried Donkers
PERCENTILE.EXC, PERCENTILE.INC PERCENTRANK.EXC, PERCENTRANK.INC QUARTILE.EXC, QUARTILE.INC RANK.EQ, RANK.AVG Function ScInterpreter::ScRank() has been rewritten to give the function the same way of computing as the related functions in this patch. Change-Id: If3096b265bd47ca5f4afcab7ff746f7c8511df82 Reviewed-on: https://gerrit.libreoffice.org/7319 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-01-29coverity#1158192 Improper use of negative valueCaolán McNamara
Change-Id: Ie5b455f3895e9ff53caf773e319d3342642b9945
2014-01-28bool improvementsStephan Bergmann
Change-Id: I9be9755170694a0071720080af4b8f2c9298f916
2014-01-27fdo#72793 Add Excel 2010 functionsWinfried Donkers
T.DIST, T.DIST.2T, T.DIST.RT, T.INV, T.INV.2T, T.TEST Also, fixed some incorrect string assignments in formula/source/core/resource/core_resource.src from previously added Excel 2010 functions. Change-Id: Ia4d13e7597d2a054d345a08b66b878f91c43f872 Reviewed-on: https://gerrit.libreoffice.org/7226 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-01-18Window::PreNotify should return boolStephan Bergmann
Change-Id: Ic9903fd887f2c3fab2630ebeb20df39392177c8d
2014-01-17Window::Notify should return bool, reduxStephan Bergmann
Change-Id: Ib41ed9ace428081e1948cf109de095ea9e7c45c2
2013-12-20Add internal cell function __DEBUG_VAR to sniff arbitrary internal state.Kohei Yoshida
Useful for debugging in a more flashy way. But never ever document this for end users. If you are an end user reading this, use this at your own risk. You have been warned. Change-Id: Ibbdb45f576287f707106327704754ffaec27ba3c
2013-12-20typo fixesAndras Timar
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-16fdo#72158 Add Excel 2010 functionsWinfried Donkers
LOGNORM.DIST, LOGNORM.INV, NORM.DIST, NORM.INV, NORM.S.DIST, NORM.S.INV Change-Id: I695e0645642af1757a1dd7d7f0f15c9515e21309 Reviewed-on: https://gerrit.libreoffice.org/6883 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-12-13remove unused code (ancient Calc function ZELLERROR)Winfried Donkers
code has no function, except that calc documents with formula ZELLERROR will not produce an error. But the formula is not interpreted, so remains 'dead code'. Change-Id: I6e7df7040a0273bcd3ebd497055924b7afdd3311 Reviewed-on: https://gerrit.libreoffice.org/7018 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-12-04remove usage of STRING_NOTFOUND in formula.cxxNoel Grandin
and tidy up the method a little Change-Id: I408fd96286749ec9e3743dbdad8cf424a7bb9035