summaryrefslogtreecommitdiff
path: root/include/formula
AgeCommit message (Collapse)Author
2015-03-12formula: PVS-Studio V610 Undefined behavior shift negative signed intMichael Stahl
Change-Id: If6c054abfab6ba421a6924a65dac76782e6eaa0b
2015-03-12init and compare opcode hashmap with uppercase symbolsEike Rathke
This is necessary now there are TableRef items like #All that need to be matched case insensitive but displayed preserving the case as coded / translated. As a side effect, OOXML functions with _xlfn. prefix are now matched in case that prefix was uppercase. Change-Id: Ie14700d13c40c3e39e6d6aff560bcdfe23707196
2015-03-11TableRef: add item specifiers and opcodesEike Rathke
Change-Id: I043db29e3e1023566682b1df63a1d663dd432fee
2015-03-07add FormulaTokenArray::ReplaceToken()Eike Rathke
Change-Id: I42c893677c1b8a35ee502a9ae438d4c0f19867d3
2015-03-05introduce ocTableRefOpen,ocTableRefCloseEike Rathke
Change-Id: Ia9d54fd582f8e195edaa05937ee0f0290e56875f
2015-03-05add HandleTableRef()Eike Rathke
Change-Id: I95e80bfa11177e1a52f3215d27448f4642091bad
2015-03-05rename SC_OPCODE_TABLE/S,ocTable/s to SC_OPCODE_SHEET/S,ocSheet/sEike Rathke
Like their function names and to prevent confusion that ocTableRef would be related. Change-Id: I739c7d8e0413aa1e573facdef6bdd854c462f14d
2015-03-05introduce SC_OPCODE_TABLE_REF / ocTableRefEike Rathke
Change-Id: I74cd756fe41b75791f7c2665373e33aec04b1eee
2015-03-05rename confusing HandleSingleRef() to more appropriate HandleColRowName()Eike Rathke
Change-Id: Ib2e6d5cd9863ac1f9b0ba9b192f5d17d489ed19f
2015-02-17some more de-boostificationCaolán McNamara
Change-Id: I8ee8fd7b99598e484430d91e17e468951288d72d
2015-02-07loplugin:deletedspecialStephan Bergmann
Change-Id: Id13844313c63552bec4f9ae7333a14948b386f03
2015-01-26fdo#76870 Add support for Excel2013 function ENCODEURLWinfried Donkers
Change-Id: I369bcd58055364757b6a098fc3aa0c0065c79b67 Reviewed-on: https://gerrit.libreoffice.org/13478 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-20Make the RAND() and RANDBETWEEN() Calc functions non-random when requestedTor Lillqvist
We don't want such a mode to affect other uses of randomness, though. Thus use a separate random number generator object for these two functions, and use a fixed seed for it if the SC_RAND_REPEATABLE environment variable is set. As RAND() is implemented in sc, and RANDBETWEEN() is implemented in scaddins, it was a bit hard to figure out where to add the new functions needed, without having to over-engineer things with UNO. (This functionality is totally Calc-specific, but neither sc nor scaddins has any public (non-UNO) API.) Caolan suggested the formula module, which seems like a good enough place to me. Change-Id: I4b0cb327392e51a18bce28478af91b0174d6b726
2015-01-14fd0#85818: rename SC_OPCODE_NBW to SC_OPCODE_NPVLaurent Charrière
Change-Id: I1f7b51094acf0baf79160f65fdec67c9934930aa Reviewed-on: https://gerrit.libreoffice.org/13897 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: rename SC_OPCODE_IKV to SC_OPCODE_IRRLaurent Charrière
Change-Id: I8148081e2f2d89bdd319b5dc7346af672a8cf310 Reviewed-on: https://gerrit.libreoffice.org/13896 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: rename SC_OPCODE_GGT to SC_OPCODE_GCDLaurent Charrière
Change-Id: I65a79d4e88f82cb76d9b6ab39f06a11acd4f3e41 Reviewed-on: https://gerrit.libreoffice.org/13895 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: rename SC_OPCODE_KGV to SC_OPCODE_LCMLaurent Charrière
Change-Id: I4a49a00a8cc74c7ff0752ef0bffbf855fecb232c Reviewed-on: https://gerrit.libreoffice.org/13894 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: rename RGP to LinestLaurent Charrière
Change-Id: I4bdf934730a54a76f5762fd079dc6270fa135840 Reviewed-on: https://gerrit.libreoffice.org/13893 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: rename RKP to LogestLaurent Charrière
Change-Id: I35e4d80e3d7744c4c9c74b12856a603db8363dbc Reviewed-on: https://gerrit.libreoffice.org/13892 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: rename Schiefe to SkewLaurent Charrière
Change-Id: Ie8da01e3062e380070672406e1dcd9227bf75f95 Reviewed-on: https://gerrit.libreoffice.org/13891 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: rename KritBinom to CritBinomLaurent Charrière
Change-Id: I2fa011eea4263f005c3a22072a6144972e9f0bb7 Reviewed-on: https://gerrit.libreoffice.org/13890 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14sc: rename ocChose et al. to ocChoose et al.Laurent Charrière
Change-Id: I1aa8ee6c827a6d6a6c6beb190bdc9c3c91d82b22 Reviewed-on: https://gerrit.libreoffice.org/13889 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14sc: rename ocPropper et al. to ocProper et al.Laurent Charrière
Change-Id: I245ad8f7418bed707953ecf80c71de07e0cc00d1 Reviewed-on: https://gerrit.libreoffice.org/13888 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: translate ZZR to NperLaurent Charrière
Change-Id: Ib118d92a026526483da87dfe04871de25caa8ac1 Reviewed-on: https://gerrit.libreoffice.org/13869 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14fdo#85818: rename ZW to FVLaurent Charrière
Change-Id: I464cba72153ef70bbb14bf43a448a28d02095728 Reviewed-on: https://gerrit.libreoffice.org/13868 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-14add ODF1.2 function ERROR.TYPE to CalcWinfried Donkers
Also, improve exchange between Calc and Excel2013. Change-Id: I491f9e2100a9a2c38e23cf55dd1eda4b5e96db96 Reviewed-on: https://gerrit.libreoffice.org/13101 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-12fdo#85818: rename ZGZ to RRILaurent Charrière
Change-Id: Ifeb513eba762f881dd4ea7cd7fc531fe5028106d Reviewed-on: https://gerrit.libreoffice.org/13831 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename RMZ to PMTLaurent Charrière
Change-Id: I952d4cee42c9a6256589a32f4acb6a6fc70ef443 Reviewed-on: https://gerrit.libreoffice.org/13830 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename LIA to SLNLaurent Charrière
Change-Id: Ifbf9be5fae60a6460596b90ce87e9ace45b2098f Reviewed-on: https://gerrit.libreoffice.org/13829 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename GDA to DDBLaurent Charrière
Change-Id: Ic73225a34ca3339216c11bd72116e55d6a098257 Reviewed-on: https://gerrit.libreoffice.org/13827 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename Laufz to DurationLaurent Charrière
Change-Id: I7f2f91c7d6702f9e7f22e27e08142c34c557e043 Reviewed-on: https://gerrit.libreoffice.org/13828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename GDA2 to DBLaurent Charrière
Change-Id: I2449645b47918325474109fc090ef34b009f26a8 Reviewed-on: https://gerrit.libreoffice.org/13826 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename DIA to SYDLaurent Charrière
Change-Id: I3510403521668c00f44d462b288716f5f7b60115 Reviewed-on: https://gerrit.libreoffice.org/13825 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename BW to PVLaurent Charrière
Change-Id: I3b319a4074c549daaa1d6befaca79dab93e61df6 Reviewed-on: https://gerrit.libreoffice.org/13824 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename Effektiv to EffectiveLaurent Charrière
Change-Id: I55a863f7d7068de9abc468676ecf2e54ecd3c06c Reviewed-on: https://gerrit.libreoffice.org/13823 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-12fdo#85818: rename KumKapZ to CumPrincLaurent Charrière
Change-Id: I8e68a4a80418fe32e53123432257aec3c2fc28a4 Reviewed-on: https://gerrit.libreoffice.org/13822 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-09include is unused againStephan Bergmann
Change-Id: I921c631545be6da66639709642e423c44e82c5af
2015-01-09One more place to work around missing std::underlying_type for GCC 4.6Stephan Bergmann
Change-Id: I46225e30f6326e0af5a8ac3bebe9847f4dbe50d0
2015-01-09type_traits for std::underlying_typeCaolán McNamara
Change-Id: Iad41da9294c9a38e501e5bcd1b3185f2e3b26ff2
2015-01-09fdo#85818: rename KumZinsZ to CumIpmtLaurent Charrière
Rename OcKumZinsZ to ocCumIpmt, SC_OPCODE_KUM_ZINS_Z to SC_OPCODE_IPMT, ScInterpreter::ScKumZinsZ() to ScInterpreter::ScCumIpmt(). Change-Id: I7a062374fa0dad375c9277ca7e1c23f6d6855013 Reviewed-on: https://gerrit.libreoffice.org/13816 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-09fdo#85818: rename Kapz to PpmtLaurent Charrière
Rename OcKapz to OcPpmt, SC_OPCODE_KAPZ to SC_OPCODE_PPMT ScInterpreter::ScKapz() to ScInterpreter::ScPpmt(). Change-Id: I5bc556e086970ea487e14b4663a9b3d2aaf9bb66 Reviewed-on: https://gerrit.libreoffice.org/13815 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-09fdo#85818: rename Kombin, Kombin2, Variationen, Variationen2Laurent Charrière
Rename OcKombin to OcCombin, SC_OPCODE_KOMBIN to SC_OPCODE_COMBIN, ScInterpreter::ScKombin() to ScInterpreter::ScCombin(), OpKombin to OpCombin. Rename OcKombin2 to OcCombinA, SC_OPCODE_KOMBIN_2 to SC_OPCODE_COMBIN_A, ScInterpreter::ScKombin2() to ScInterpreter::ScCombinA(), OpKombin2 to OpCombinA. Rename OcVariationen to OcPermut, SC_OPCODE_VARIATIONEN to SC_OPCODE_PERMUT, ScInterpreter::ScVariationen() to ScInterpreter::ScPermut(), OpVariationen to OpPermut. Rename OcVariationen2 to OcPermutationA, SC_OPCODE_VARIATIONEN_2 to SC_OPCODE_PERMUTATION_A, ScInterpreter::ScVariationen2() to ScInterpreter::ScPermutationA(), OpVariationen2 to OpPermutationA. Change-Id: I2efa01e9b160e98058879d08e2e2313284a5ec91 Reviewed-on: https://gerrit.libreoffice.org/13814 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-09fdo#85818: rename ZinsZ enum name, constant, function to IpmtLaurent Charrière
Rename OcZinsZ to OcIpmt, SC_OPCODE_ZINS_Z to SC_OPCODE_IPMT, ScInterpreter::ScZinsZ() to ScInterpreter::ScIpmt() Change-Id: I6ed671aff85b7d2ec06dd66cd7ec9390776008b1 Reviewed-on: https://gerrit.libreoffice.org/13813 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-09override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2015-01-07fdo#85818: rename 'Zins' enum name, constant, function to RateLaurent Charrière
Rename OcZins to OcRate, SC_OPCODE_ZINS to SC_OPCODE_RATE, ScInterpreter::ScZins() to ScInterpreter::ScRate() (partial fix for fdo#85818, more constants remain to be renamed) Change-Id: Icd5d0df14f2583da7ebd0308dc660abd07f326a4 Reviewed-on: https://gerrit.libreoffice.org/13777 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-04boost::unordered_set->std::unordered_setCaolán McNamara
Change-Id: I0a8ecc3aa26ffc56f216a6a0e078e158b03a4a02
2015-01-04merge OpCodeEnum and OpCodeCaolán McNamara
and replace ifdef hackery with an explicit underlying type Change-Id: Ibd340cf28d022af545a82e98e623d4c137ff7e53
2014-12-19The value of the nRefs field is not used anywhereTor Lillqvist
Change-Id: I9116611d04846af7f00cb366e9174fd99e741d5c
2014-12-09changed timers to idlesTobias Madl
Change-Id: Iaceef008e7df91f3a9ad54fdaec25f2170100ee0
2014-11-28simplify RewriteMissing() and switch in Add...(), fdo#81596 relatedEike Rathke
Change-Id: If2ca37e1fda87ce56282fc2d2fc57a0784851139