summaryrefslogtreecommitdiffstats
path: root/formula
Commit message (Collapse)AuthorAgeFilesLines
* TableRef: transform to reference if not supported, i.e. for ODFFEike Rathke2015-04-181-0/+38
| | | | Change-Id: I64f751455fbba901bb41f91daaf64ee4878a19b4
* const all CreateString... FormulaToken*Eike Rathke2015-04-181-10/+12
| | | | Change-Id: I0e0f064357543e5dc86b178ce30ee005e5483e04
* ocTableRef is not in RPNEike Rathke2015-04-171-1/+0
| | | | Change-Id: If91d6724a07a40c28c0ebe64e94fa3166138072b
* convert RECALCMODE_ constants to scoped enumNoel Grandin2015-04-082-9/+9
| | | | Change-Id: Ice2e45a3db59adc34a160b4b410cc51c750835f2
* most likely formulas won't be longer than 64k characters, but...Eike Rathke2015-03-301-1/+1
| | | | | | Another leftover of UniString to OUString conversion. Harmless. Change-Id: Icf629657e9e9dc894cf7f08a431fabf463aa331c
* Include <algorithm> for std::min()Tor Lillqvist2015-03-301-0/+2
| | | | Change-Id: I13ed47d23ed4b94501d9445555d99ce08af94698
* Resolves: tdf#90301 string access out of boundsEike Rathke2015-03-301-1/+1
| | | | | | | | 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
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-282-3/+3
| | | | Change-Id: I0605d23708895b9e374f141887759266beb542e7
* tdf#40835 add ODFF function FDISTWinfried Donkers2015-03-242-1/+3
| | | | | | | | | | 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>
* Since nCategory is unused, Lb2Cat can be removedJulien Nabet2015-03-211-13/+0
| | | | Change-Id: If7f3132859216e84729a368a891cd624853e8757
* init and compare opcode hashmap with uppercase symbolsEike Rathke2015-03-121-15/+22
| | | | | | | | | | | 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
* TableRef: add item specifiers and opcodesEike Rathke2015-03-111-0/+31
| | | | Change-Id: I043db29e3e1023566682b1df63a1d663dd432fee
* add FormulaTokenArray::ReplaceToken()Eike Rathke2015-03-071-0/+18
| | | | Change-Id: I42c893677c1b8a35ee502a9ae438d4c0f19867d3
* Idle: Changed to new enum nameTobias Madl2015-03-062-4/+4
| | | | Change-Id: Id3852abe9bc7bbe774331a7d691abd2a79ff59b4
* Idle: Removed VCL_IDLE_PRIORITY_ prefix of enumTobias Madl2015-03-062-4/+4
| | | | Change-Id: I12290bed7e4f298ab90393b8de6e2b6e7061e53f
* Timer: Adapted all idle includes and enum usesTobias Madl2015-03-062-4/+5
| | | | Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da
* Add a few SAL_INFOsTor Lillqvist2015-03-061-2/+8
| | | | Change-Id: I252987d6c5e5da56a83742c96b4e86abbb7108c6
* introduce ocTableRefOpen,ocTableRefCloseEike Rathke2015-03-051-0/+6
| | | | Change-Id: Ia9d54fd582f8e195edaa05937ee0f0290e56875f
* translate comments while at itEike Rathke2015-03-051-3/+3
| | | | Change-Id: I62cce7321dfe038d1723c73ba9deb0450a03f0e5
* add ocTableRef to lcl_IsReference()Eike Rathke2015-03-051-0/+1
| | | | Change-Id: I63b41ea4619098390824f335859d62b4fa8fcc66
* error for css::sheet::FormulaToken with ocTableRef not implementedEike Rathke2015-03-051-1/+1
| | | | Change-Id: I1d95b0168e880029e1fe319f025e586944f636ab
* add HandleTableRef()Eike Rathke2015-03-051-1/+6
| | | | Change-Id: I95e80bfa11177e1a52f3215d27448f4642091bad
* handle ocTableRef same as ocDBAreaEike Rathke2015-03-052-2/+10
| | | | Change-Id: Id64556850ef0d44db1ff4dedb41e0e1cb9735b76
* rename SC_OPCODE_TABLE/S,ocTable/s to SC_OPCODE_SHEET/S,ocSheet/sEike Rathke2015-03-051-8/+8
| | | | | | | Like their function names and to prevent confusion that ocTableRef would be related. Change-Id: I739c7d8e0413aa1e573facdef6bdd854c462f14d
* rename confusing HandleSingleRef() to more appropriate HandleColRowName()Eike Rathke2015-03-051-2/+2
| | | | Change-Id: Ib2e6d5cd9863ac1f9b0ba9b192f5d17d489ed19f
* remove NUMBERFORMAT_ constantsNoel Grandin2015-02-251-14/+14
| | | | | | | .. in favour of just using the underlying constants from css::util::NumberFormat Change-Id: I0c6b128b66c91b268f5ae300f9c17c7792df5e99
* formula: include algorithm for std::minMiklos Vajna2015-02-171-0/+1
| | | | Change-Id: I3237eb3b6ada8949cb489676e83e46cc3c92aa81
* fdo#87534 fix HYPERLINK behaviour when used in namesWinfried Donkers2015-02-121-0/+2
| | | | | | | | | | | | | 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>
* this FDIST has 3 parameters also in Excel, revert tdf#40835Eike Rathke2015-02-091-2/+0
| | | | | | | 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
* loplugin:deletedspecialStephan Bergmann2015-02-071-2/+1
| | | | Change-Id: Id13844313c63552bec4f9ae7333a14948b386f03
* Use vector::dataStephan Bergmann2015-01-281-2/+1
| | | | | | | ...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
* fdo#76870 Add support for Excel2013 function ENCODEURLWinfried Donkers2015-01-261-0/+7
| | | | | | | Change-Id: I369bcd58055364757b6a098fc3aa0c0065c79b67 Reviewed-on: https://gerrit.libreoffice.org/13478 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* followup code removal after changing virtual methods to non-virtualNoel Grandin2015-01-262-7/+8
| | | | | | | | | | 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
* new loplugin: change virtual methods to non-virtualNoel Grandin2015-01-262-10/+10
| | | | | | | | | | 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
* Make the RAND() and RANDBETWEEN() Calc functions non-random when requestedTor Lillqvist2015-01-203-2/+61
| | | | | | | | | | | | | | | 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
* fd0#85818: rename SC_OPCODE_NBW to SC_OPCODE_NPVLaurent Charrière2015-01-141-4/+4
| | | | | | | Change-Id: I1f7b51094acf0baf79160f65fdec67c9934930aa Reviewed-on: https://gerrit.libreoffice.org/13897 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: rename SC_OPCODE_IKV to SC_OPCODE_IRRLaurent Charrière2015-01-141-4/+4
| | | | | | | Change-Id: I8148081e2f2d89bdd319b5dc7346af672a8cf310 Reviewed-on: https://gerrit.libreoffice.org/13896 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: rename SC_OPCODE_GGT to SC_OPCODE_GCDLaurent Charrière2015-01-141-4/+4
| | | | | | | Change-Id: I65a79d4e88f82cb76d9b6ab39f06a11acd4f3e41 Reviewed-on: https://gerrit.libreoffice.org/13895 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: rename SC_OPCODE_KGV to SC_OPCODE_LCMLaurent Charrière2015-01-141-4/+4
| | | | | | | Change-Id: I4a49a00a8cc74c7ff0752ef0bffbf855fecb232c Reviewed-on: https://gerrit.libreoffice.org/13894 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: rename RGP to LinestLaurent Charrière2015-01-142-5/+5
| | | | | | | Change-Id: I4bdf934730a54a76f5762fd079dc6270fa135840 Reviewed-on: https://gerrit.libreoffice.org/13893 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: rename RKP to LogestLaurent Charrière2015-01-142-5/+5
| | | | | | | Change-Id: I35e4d80e3d7744c4c9c74b12856a603db8363dbc Reviewed-on: https://gerrit.libreoffice.org/13892 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: rename Schiefe to SkewLaurent Charrière2015-01-141-4/+4
| | | | | | | Change-Id: Ie8da01e3062e380070672406e1dcd9227bf75f95 Reviewed-on: https://gerrit.libreoffice.org/13891 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: rename KritBinom to CritBinomLaurent Charrière2015-01-141-4/+4
| | | | | | | Change-Id: I2fa011eea4263f005c3a22072a6144972e9f0bb7 Reviewed-on: https://gerrit.libreoffice.org/13890 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* sc: rename ocChose et al. to ocChoose et al.Laurent Charrière2015-01-143-16/+16
| | | | | | | Change-Id: I1aa8ee6c827a6d6a6c6beb190bdc9c3c91d82b22 Reviewed-on: https://gerrit.libreoffice.org/13889 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* sc: rename ocPropper et al. to ocProper et al.Laurent Charrière2015-01-141-4/+4
| | | | | | | Change-Id: I245ad8f7418bed707953ecf80c71de07e0cc00d1 Reviewed-on: https://gerrit.libreoffice.org/13888 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: translate ZZR to NperLaurent Charrière2015-01-141-4/+4
| | | | | | | Change-Id: Ib118d92a026526483da87dfe04871de25caa8ac1 Reviewed-on: https://gerrit.libreoffice.org/13869 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#85818: rename ZW to FVLaurent Charrière2015-01-143-6/+6
| | | | | | | Change-Id: I464cba72153ef70bbb14bf43a448a28d02095728 Reviewed-on: https://gerrit.libreoffice.org/13868 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* add ODF1.2 function ERROR.TYPE to CalcWinfried Donkers2015-01-141-0/+7
| | | | | | | | | 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>
* fdo#85818: rename ZGZ to RRILaurent Charrière2015-01-122-6/+6
| | | | | | | Change-Id: Ifeb513eba762f881dd4ea7cd7fc531fe5028106d Reviewed-on: https://gerrit.libreoffice.org/13831 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* fdo#85818: rename RMZ to PMTLaurent Charrière2015-01-123-6/+6
| | | | | | | Change-Id: I952d4cee42c9a6256589a32f4acb6a6fc70ef443 Reviewed-on: https://gerrit.libreoffice.org/13830 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>