Winfried Donkers
53b2d2ce0c
fdo#71350 add Excel 2010 function CONFIDENCE.NORM and CONFIDENCE.T
...
Change-Id: I341b0c7a61047627aac1f12bc4653b6f9e65b2e3
Reviewed-on: https://gerrit.libreoffice.org/6625
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-11-14 19:03:53 +00:00
Eike Rathke
4cdb874b11
OOXML FINV is ODFF LEGACY.FINV, _xlfn.FINV is something different
...
Change-Id: I5a61298229643c0b0e24d3a30069a95ddda6842f
2013-11-14 19:14:22 +01:00
Eike Rathke
b26edbb449
moved erroneous _xlfn. from ODFF to OOXML
...
Change-Id: I58e7d1ba611b4482cfe4ac5f5d37feaf33691a37
2013-11-14 13:59:39 +01:00
Eike Rathke
85341404d7
all functions new in Excel since OOXML have _xlfn. prefix
...
Change-Id: Ie22292da1ee79f2693da73cc27944a53b2213150
2013-11-14 13:53:07 +01:00
Noel Grandin
d366c9b20e
remove unnecessary sal_Unicode casts in various places
...
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-14 08:17:32 +02:00
Eike Rathke
10515c6c6f
fixed file format mappings always have RESOURCE_BASE separators
...
Change-Id: I7ac93f742b469156cd8eb3f8171c7e05a98598ad
2013-11-13 18:38:52 +01:00
Caolán McNamara
e59cc6448c
c++11 we love you
...
Change-Id: I6ff8610f6b31481334d609a0e150285e6eef6096
2013-11-13 16:48:01 +00:00
Eike Rathke
debe0835ca
introduced FormulaGrammar::GRAM_OOXML with FormulaLanguage::OOXML
...
FormulaLanguage::XL_ENGLISH is not OOXML, unconditionally using
SymbolsEnglishXL with RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML spoils
the grammars of FormulaLanguage::XL_ENGLISH that are not OOXML.
Change-Id: Id885d1c033cd15dc7b11c6490be3a98500027d37
2013-11-13 17:15:59 +01:00
Kohei Yoshida
dbd3da10da
More Excel functions with _xlfn. prefix.
...
Change-Id: I49d29fe626ea3079273b4e654a6a3803f7dbd614
2013-11-11 17:03:55 -05:00
Kohei Yoshida
01ea75c0f0
Add separate list of function names for OOXML import.
...
Change-Id: Id6bb9ed65f94a56e82c0c4a6fee241dec4eb9138
2013-11-11 16:17:30 -05:00
Kohei Yoshida
3ac4277ba1
Thread-safe way to check for presence of references in formula tokens.
...
Change-Id: I995668d1e183dc0dae4f354889bc13053e858723
2013-11-11 16:17:28 -05:00
Noel Grandin
e52779d2f8
remove unnecessary use of OUString constructor
...
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11 11:21:26 +02:00
Winfried Donkers
75601529a8
fdo#70797 add Excel 2010 functions
...
CHISQ.DIST, CHISQ.INV, CHISQ.TEST, CHISQ.DIST.RT, CHISQ.INV.RT
Change-Id: If32530a82b2e5fa1aa30a8c80090742be5acf3eb
Reviewed-on: https://gerrit.libreoffice.org/6611
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-11-08 11:34:04 -06:00
Kohei Yoshida
4efc5fa376
Protect those global symbols containers with mutex during initialization.
...
Change-Id: Id15b3e1a2bfebd2ea795fd412a259f125f5d9bab
2013-11-06 20:40:25 -05:00
Winfried Donkers
e362bc7892
fdo#71081 add Excel 2010 functions BINOM.DIST and BINOM.INV
...
Change-Id: Iaecccd9ec6ab6a08c6c7ee8c024a3eba48ca1682
Reviewed-on: https://gerrit.libreoffice.org/6521
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-11-04 11:12:52 -06:00
Winfried Donkers
6d2f42199c
fdo#71008 add Excel 2010 functions BETA.DEST and BETA.INV
...
Change-Id: I65863031cc2795713bf80c17dfc787e2700a556a
Reviewed-on: https://gerrit.libreoffice.org/6505
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-10-31 16:26:05 +00:00
Winfried Donkers
781363934a
fdo#61002 add Excel 2010 functions VAR.P and VAR.S
...
Change-Id: I23f286eaaef79d196a65e8079b62cf577539e9f1
Reviewed-on: https://gerrit.libreoffice.org/6477
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-10-30 17:54:28 +00:00
Marcos Paulo de Souza
2b01553fa5
fdo#54938: Convert svx to use cppu::supportsService
...
Change-Id: I3ab178924cb1c4240511f08625f244dac54e3913
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-30 18:17:11 +01:00
Winfried Donkers
4a122d1e61
fdo#44134 adding Excel 2010 functions STDEV.P and STDEV.S
...
Change-Id: If7b2767a69285ac72fa7120b1149a66f118cce8f
Reviewed-on: https://gerrit.libreoffice.org/6354
Tested-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Eike Rathke <erack@redhat.com>
2013-10-25 13:07:32 +00:00
Kohei Yoshida
3629a512b5
New constructor that takes both numeric and string arrays.
...
Change-Id: I9c48f340a0349e5f1ba772fcd783924c79b07616
2013-10-18 23:22:40 -04:00
Kohei Yoshida
c30a2c4baf
More eye-pleasing way of checking for valid vector array...
...
Change-Id: If2f47a7d98a4cbc9e09dc98c1bb0e11f8f889265
2013-10-18 23:22:39 -04:00
Kohei Yoshida
7586151cbe
Allow vector array tokens to store both numeric and string values.
...
This is achieved by storing two physical arrays in each vector
reference array.
Change-Id: Iafb9e57b86e57e75eed8ff692a6d882c2049f710
2013-10-18 23:22:39 -04:00
Winfried Donkers
ccbebd991b
fdo#70000 add support for COVARIANCE.P and COVARIANCE.S functions
...
These functions have been introduced with Excel 2010, but were not
supported yet in calc.
COVARIANCE.P (population) replaces the COVAR function, but the COVAR
function remains present (in Excel as well as in calc).
COVARIANCE.S (sample) is a new function.
Change-Id: If5501b4090fb716adfb3d121c7898528fd1b7ad4
Reviewed-on: https://gerrit.libreoffice.org/6135
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-10-18 19:04:09 +00:00
Kohei Yoshida
7333881bb7
Formula tokens, formula cells and formula interpreters to use shared strings.
...
Change-Id: I5da99869fc7f61ce698180fa5daa9be9db9ac132
2013-10-11 12:14:27 -04:00
Noel Grandin
9fc44bd235
convert remains of String to OUString in formula module
...
Change-Id: Ieca67b54535a6e11ba8fc20f6d02c501f6b7affd
2013-10-01 10:08:38 +02:00
Noel Grandin
7f83faa795
convert the rest of the formula module from String to OUString
...
Change-Id: I27ee0cf3e9f97e94234c5e32080bf102b4cf0dc9
2013-09-17 09:04:31 +02:00
Noel Grandin
85eb736bee
convert the resust of include/formula/FormulaCompiler.hxx to OUString
...
Change-Id: I7cbc371e90869c481a23450722a1a025b110b235
2013-09-17 09:03:54 +02:00
Noel Grandin
7625372d55
convert formula::OpCodeHashMap from String to OUString
...
Change-Id: Iabf95a16cc4df3a612b90ed9e07f2216f72bb976
2013-09-17 09:03:40 +02:00
Noel Grandin
c88ce9033b
convert aCorrectedFormula in formula::FormulaCompiler to OUString
...
Change-Id: I048ec33effc33e94943f5110d6a9a0937a1dfdfe
2013-09-17 09:03:23 +02:00
Noel Grandin
8f23a3b0e2
convert formula::FormulaCompiler::OpCodeMap from String to OUString
...
..and add some convenience methods
sal_Unicode getSymbolChar
sal_Unicode GetNativeSymbolChar
since most call sites are only interested in the first char of
the symbol.
Change-Id: I6aeb43b055b849e71cb1f62c3efe79d6a4cc10bd
2013-09-17 09:02:18 +02:00
Noel Grandin
12d44973d9
convert aCorrectedSymbol in formula::FormulaCompiler from String to OUString
...
Change-Id: I426b305fb8befffe0452e280d2097b6560843eef
2013-09-17 08:06:13 +02:00
Eike Rathke
3ec486639b
introduced putCopyOpCode() to handle copyFrom()
...
... and added bOverrideKnownBad handling
Change-Id: I1b669771ec1aa0cdfa1c1bef0bcfccfad96fe727
2013-09-17 01:04:14 +02:00
Eike Rathke
24726fe2de
FILTERXML and WEBSERVICE were missing
...
... from RID_STRLIST_FUNCTION_NAMES_ENGLISH
Change-Id: Ie8ef677ffb415d2a4dc29f703b80723e20e2a21a
2013-09-17 01:04:14 +02:00
Eike Rathke
4fc4a3f2e5
better SAL_WARN_IF diagnostics
...
Change-Id: I74fe8e145dda41466f21f20369681d6f1e5274df
2013-09-17 01:04:13 +02:00
Eike Rathke
2e60a634ec
deuglified for readability
...
Change-Id: I81e09500dd8fe4e3af9fc2e9f623fb519635266d
2013-09-16 20:47:09 +02:00
Eike Rathke
2f2ee162ac
Revert "get rid of unnecessary warning"
...
This reverts commit e5321437322fd812b93fee266af309e782479488.
OpCode 0 (ocPush) was deliberately included in the assertion as it is
never a mapping to a function or operator name.
2013-09-16 19:12:36 +02:00
Kohei Yoshida
7d0f3695a2
Correctly handle empty cells for string arrays too.
...
Because we need to make a distinction between an empty cell and a string
cell containing zero-length string, I decided to switch to using
rtl_uString* array and use NULL values as empty cells.
Change-Id: I5bedb593507f34782e41a8a900602d445e5b1f6f
2013-09-10 11:47:45 -04:00
Markus Mohrhard
801a657ea6
iString to OUString in some calc core code
...
Change-Id: I25fc70cfd01f5ad25f7362157796d3ddf06139e1
2013-09-07 12:55:45 +02:00
Kohei Yoshida
e462eb1183
Allow storage of string arrays in vector ref tokens.
...
Change-Id: Id2bc5a0343afeae387d896a9c369586a13081cd5
2013-09-06 01:38:31 -04:00
Winfried Donkers
e532143732
get rid of unnecessary warning
...
A value of 0 for Opcode eOp produces a debug assertion that is
not in place as opcode with value does exist (ocPush, SC_OPCODE_PUSH).
Change-Id: If529cc2ecd8d4d3a5e31f084dfa72e13c9c0fe37
Reviewed-on: https://gerrit.libreoffice.org/5586
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-08-27 13:48:01 +00:00
Eike Rathke
b24e3a6042
differentiated warning for symbol/AddIn pair insertion, fdo#59727
...
Change-Id: I371bca810c40d4cfab0b9fcd47a070b4e68ee768
2013-08-16 17:54:30 +02:00
Caolán McNamara
5efc15f000
reduce use of UniString from ResID ctor
...
Change-Id: I8d7619e7807ff2d400ec5c7fd181375130245728
2013-07-28 16:45:48 +01:00
Eike Rathke
9c1ca6dca3
resolved fdo#35411 redefined MAXCODE 512 to FORMULA_MAXTOKENS 8192
...
Also renamed MAXJUMPCOUNT to FORMULA_MAXJUMPCOUNT but without changing
the value as the runtime array size of ocChose depends on it, should be
changed before.
Eliminated the duplicated and error causing redefinition of both in
sc/inc/compiler.hxx
Change-Id: I0e87d1439c9564a4f475fcb2870ab51c3b586942
2013-07-02 00:01:42 +02:00
Markus Mohrhard
a29d20932c
add initial version of WEBSERVICE function
...
Change-Id: I8a835278c0d1b8f3a463aa5765b145410605aba4
2013-06-16 16:07:37 +02:00
Markus Mohrhard
3b9620e18b
inital work on FILTERXML function
...
Change-Id: Ifb884a52b275df818812f8be6cd7650dcb97849d
2013-06-16 15:59:06 +02:00
Wang Lei
0946de1e2f
Resolves: #i121120 Support RightB(), LeftB(), LenB() and MidB()
...
Patch by: Zhang Lu
Review by: Wang Lei
(cherry picked from commit 424079cb8348d77e40f7d3291578bdffbe662f34)
Conflicts:
formula/inc/formula/compiler.hrc
formula/inc/formula/opcode.hxx
oox/source/xls/formulabase.cxx
sc/inc/helpids.h
sc/util/hidother.src
sc/util/makefile.mk
Change-Id: Ia04aa69aa2764842507b36ba7cc8c99e99a314e9
2013-06-11 12:30:10 +01:00
Kohei Yoshida
e38d20c1e1
Handle range references for group calculation. This is still untested.
...
Change-Id: I1eb1c217db66615028faa85720838579056dc150
2013-04-30 13:10:44 -04:00
Kohei Yoshida
dfc3f290b5
Let's not use VectorArray struct. There is no use for it.
...
Change-Id: Ic011143206c13fcbc1b3403bf5b7df46c6934899
2013-04-30 13:10:43 -04:00
Kohei Yoshida
ee289aaf45
Let's not forget to check this in...
...
Curse the sc / formula split...
Change-Id: Ib8d17ba63d05eb4df7e6918e0034d91dd82869e3
2013-04-30 13:10:42 -04:00
Kohei Yoshida
20d4db0fe3
Add method to allow fetching of double array, and store it in token.
...
Change-Id: If094dbf139e18ad23c73d6cf5a78ac4844132b14
2013-04-30 13:10:41 -04:00