summaryrefslogtreecommitdiff
path: root/formula
AgeCommit message (Collapse)Author
2015-03-30most likely formulas won't be longer than 64k characters, but...Eike Rathke
Another leftover of UniString to OUString conversion. Harmless. Change-Id: Icf629657e9e9dc894cf7f08a431fabf463aa331c
2015-03-30Include <algorithm> for std::min()Tor Lillqvist
Change-Id: I13ed47d23ed4b94501d9445555d99ce08af94698
2015-03-30Resolves: tdf#90301 string access out of boundsEike Rathke
Apparently yet another leftover of UniString to OUString conversion where with UniString out-of-bounds accesses didn't harm and returned NIL. Change-Id: Id88456a52df3fc8cdaf90d9d509e327b96269808
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I0605d23708895b9e374f141887759266beb542e7
2015-03-24tdf#40835 add ODFF function FDISTWinfried Donkers
and clean up F-Distribution function names. Change-Id: I8666659269121b3ea32e8179b42e3497aa86754f Reviewed-on: https://gerrit.libreoffice.org/14657 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-03-21Since nCategory is unused, Lb2Cat can be removedJulien Nabet
Change-Id: If7f3132859216e84729a368a891cd624853e8757
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-06Idle: Changed to new enum nameTobias Madl
Change-Id: Id3852abe9bc7bbe774331a7d691abd2a79ff59b4
2015-03-06Idle: Removed VCL_IDLE_PRIORITY_ prefix of enumTobias Madl
Change-Id: I12290bed7e4f298ab90393b8de6e2b6e7061e53f
2015-03-06Timer: Adapted all idle includes and enum usesTobias Madl
Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da
2015-03-06Add a few SAL_INFOsTor Lillqvist
Change-Id: I252987d6c5e5da56a83742c96b4e86abbb7108c6
2015-03-05introduce ocTableRefOpen,ocTableRefCloseEike Rathke
Change-Id: Ia9d54fd582f8e195edaa05937ee0f0290e56875f
2015-03-05translate comments while at itEike Rathke
Change-Id: I62cce7321dfe038d1723c73ba9deb0450a03f0e5
2015-03-05add ocTableRef to lcl_IsReference()Eike Rathke
Change-Id: I63b41ea4619098390824f335859d62b4fa8fcc66
2015-03-05error for css::sheet::FormulaToken with ocTableRef not implementedEike Rathke
Change-Id: I1d95b0168e880029e1fe319f025e586944f636ab
2015-03-05add HandleTableRef()Eike Rathke
Change-Id: I95e80bfa11177e1a52f3215d27448f4642091bad
2015-03-05handle ocTableRef same as ocDBAreaEike Rathke
Change-Id: Id64556850ef0d44db1ff4dedb41e0e1cb9735b76
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-05rename confusing HandleSingleRef() to more appropriate HandleColRowName()Eike Rathke
Change-Id: Ib2e6d5cd9863ac1f9b0ba9b192f5d17d489ed19f
2015-02-25remove NUMBERFORMAT_ constantsNoel Grandin
.. in favour of just using the underlying constants from css::util::NumberFormat Change-Id: I0c6b128b66c91b268f5ae300f9c17c7792df5e99
2015-02-17formula: include algorithm for std::minMiklos Vajna
Change-Id: I3237eb3b6ada8949cb489676e83e46cc3c92aa81
2015-02-12fdo#87534 fix HYPERLINK behaviour when used in namesWinfried Donkers
When using HYPERLINK() in names, the hyperlink was set to disabled on copying token. After fix, behaviour is consistent. Note: reducing the fix to 1 line does not work, a set hyperlink is only to be copied when applicable. Change-Id: I27ad24ed8912afa548f08d249ad51d18a792c275 Reviewed-on: https://gerrit.libreoffice.org/13920 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-02-09this FDIST has 3 parameters also in Excel, revert tdf#40835Eike Rathke
The UI FDIST is LEGACY.FDIST in ODFF and is the same in Excel. Only the "real" FDIST has 4 parameters, which is F.DIST in Excel. Change-Id: I0b926b51a3cc7282a54cce448e46fed6be3c61fa
2015-02-07loplugin:deletedspecialStephan Bergmann
Change-Id: Id13844313c63552bec4f9ae7333a14948b386f03
2015-01-28Use vector::dataStephan Bergmann
...in some places where it is obvious that it does not hurt that for an empty vector the obtained pointer is not necessarily a nullptr. Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51
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-26followup code removal after changing virtual methods to non-virtualNoel Grandin
This cleanups up indentation and removes dead classes. This is a followup patch to commit 272b1dd55797aacf511fb4342b0054e3697243f6 "new loplugin: change virtual methods to non-virtual" Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
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>