summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
2014-11-21Handle group area listeners correctly when deleting cells.Kohei Yoshida
Change-Id: Ic37084ed670f53e0354056f7bef54229971dd7c2
2014-11-21Add new-style test generation for SUM and PRODUCTTor Lillqvist
Intermediate commit, still a bit buggy. Also, bin the old code that was ifdeffed out. Change-Id: I747c1864e4858672f0fe0512215405885e52c3b5
2014-11-20Adjust InsertRow() for group area listeners.Kohei Yoshida
Change-Id: I813b45d015eb1ae8dc7bd1242152ef734b5fe08c
2014-11-21Some of our supported compilers still don't have 'override' it seemsTor Lillqvist
Change-Id: Ie3ca1636657b90fd5bc193aa7595f95f44d43915
2014-11-21Re-factor the OpenCL quality test spreadsheet generating codeTor Lillqvist
Be more elegant, avoid hardcoding stuff, use more C++ features. (Not complete yet. Only did the math and trig functions and arithmetic ops so far. New style test generation for AVERAGE, SUM etc not yet done. Old code still left in #if 0 for reference.) Change-Id: I50068852eacf7f0212b2a7ea077021713c8e9978
2014-11-21Mark InsertTable SC_DLLPUBLIC, will need it in next commitTor Lillqvist
Change-Id: Ia105bc5348c3745398ea0e90cb142c3282d688f5
2014-11-20Add string for transl. and "Test statistic" for Chi-Square TestTomaž Vajngerl
Change-Id: I711c70a56021dfbba867e38a32331e662a6bb9d4
2014-11-20Use U_SUCCESSTor Lillqvist
Change-Id: If16848fc47bfa28c30c9ce4b547aeb68cf166d90
2014-11-20One more IsMapMode() -> IsMapModeEnabled().Jan Holesovsky
Change-Id: Id8e5ca61eedb7607b5ef9d7e67bee47c87d4990b
2014-11-20No need to start listening in CalcAfterLoad for xls import.Kohei Yoshida
We do that prior to it, and in fact, doing it here would unregister all group area listeners and re-register non-group ones, which is massively slower with huge documents. Change-Id: I693f681df05f036eb1aa53554e601066c469f49a
2014-11-20Improve wording for the OpenCL blacklist/whitelistTor Lillqvist
Change-Id: I4fd0a255903daab3d5a1888eeff266f831ad590b
2014-11-20Use regexps in the OpenCL blacklist/whitelistTor Lillqvist
Drop version number bounds, use regexps instead. Not entirely ideal, but as vendors are free to put arbitrary stuff into the driver version string (part of which might be numbers, part free text, part significant, part just informative), just comparing against lower and upper bounds with strverscmp() was not ideal either. Change-Id: Ic4ef4d8e15f79f1c96e6e03f6c01e62ae92dc2fc
2014-11-20fdo#83765 do not update references in SortReorderByColumn() if disabledEike Rathke
Similar to SortReorderByRow() Change-Id: I11dd710c00a56a5f56aeb048fa2258631555a220
2014-11-20fdo#85594 enabling date format and pivot table and adding a more hidden onesYousuf Philips
Change-Id: I1cd438c9d85445da97210210ddd4a6c99d6390e6 Reviewed-on: https://gerrit.libreoffice.org/12977 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-20Add tests for vectorized binary ops + - * /Tor Lillqvist
Change-Id: I0ea36081416ba3b44e57e12b172c00fa27d4e653
2014-11-19Use group area listener when entering a new single formula cell.Kohei Yoshida
Change-Id: I01dc4537919b69a312e92ede2ae00fbe7d781bd7
2014-11-19Add COUNTTor Lillqvist
Change-Id: Ibdff629c3653d43e08b5200a7babb7ff05a7b5ac
2014-11-19Add opcodes for binary operators + - * /Tor Lillqvist
These are of course very common, and one would hope they are correctly implemented in our OpenCL code. Change-Id: I0ca6d3983502b18a1ea56522d4f20673ad94357d
2014-11-19Test also MIN, MAX and PRODUCTTor Lillqvist
Change-Id: Ibbc4c65271142b63c85d08ab4c9162ba96d32b6a
2014-11-19Resolves: rhbz#1165444 abrt crash with NULL pViewCaolán McNamara
Change-Id: I37f02f16209f274cf0358defba6bfa109948990f
2014-11-19Don't use OpenCL for RAND by defaultTor Lillqvist
The current implementation from 60ae598d537c14283109e1c6de22ec43a0147bcf is so broken it isn't even funny. Change-Id: I962d2643d21283340646893bb7892fb2a3d0c2e3
2014-11-19-Werror,-Wabsolute-valueStephan Bergmann
("using integer absolute value function 'abs' when argument is of floating point type") Change-Id: I8c091049b44dd44ec44124055c160a024ec658a5
2014-11-19coverity#1242708 Untrusted loop boundCaolán McNamara
Change-Id: Ic5af417ad38cafa46051789574239996a8845ffb
2014-11-18Use group area listeners during ODS import.Kohei Yoshida
Change-Id: Id01f9021dda7f33255f8206174cd730507ab55ad
2014-11-18Use group area listeners when filling down formula cells via fill series.Kohei Yoshida
Change-Id: Ib0d4f542986dc09968cad8b76da9d6e034eddd37
2014-11-19Generate OpenCL test doc programmatically, first versionTor Lillqvist
Tests RAND, SUM, AVERAGE, SIN, COS, TAN, ATAN, SQRT, EXP, LN at the moment. More will be added. Does not yet automatically add to black/whitelist. Change-Id: I2ca24632630937ee5559fc86453e40178e89973f
2014-11-19Revert "Add a spreadsheet to test OpenCL implementation on user request"Tor Lillqvist
Nah, will generate the test sheeet(s) programmatically. This reverts commit 9c2cf556a6ba532ad26a3b4d96e42f9f2b5e00ac.
2014-11-18Add a spreadsheet to test OpenCL implementation on user requestTor Lillqvist
Loading this spreadsheet and verifying that the end result in A1 is "PASS" will be bound to the 'Test' button on the calculation details dialog. Actually, I wonder whether it might be saner to just populate a spreadsheet programmatically instead of having a (not huge, but still large) test file bundled in the installation? We could make it so that the generated document stays open and is usable normally, so that if necessary (for instance for comparison with other spreadsheet applications) it can be saved. Change-Id: Idea972cd0f598643e35314576f593047d49378c6
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-18Combine StartAllListeners() and StartNeededListeners()...Kohei Yoshida
And call the new method StartListeners(). This also adjusts what was previously StartAllListener() to be group-listener aware. Change-Id: I74de45c00f5b8ef232eea9fe3b93aa44d1d8855b
2014-11-18fdo#85594 renabling a few entries and adding addition hidden entriesYousuf Philips
Change-Id: Ifcf30f209355d4cea4daeabe06896b0c225a65a0 Reviewed-on: https://gerrit.libreoffice.org/12958 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18Let's not re-use the same iterator esp when it's still iterating.Kohei Yoshida
Change-Id: I1752857bc036f8d389b4b71d570cf83a76ef29ea
2014-11-18Add a 'Test' button to test the machine's OpenCL implementationTor Lillqvist
Does not yet do anything, but will essentially run a "unit test" of the OpenCL functionality required by the default subset of opcodes. Change-Id: I230f6232c90562ea56057347fb0dc088f98c215d
2014-11-18Rename Activate... -> Attach...Kohei Yoshida
Attach is the new one we are going with & offers nice contrast with 'Detach...'. Change-Id: I4578f4c7b9d989e41d433d7c8aa96a9317aa6919
2014-11-18Unnecessary casting.Kohei Yoshida
Change-Id: Id7d9b28921e96842df1e7c0d735dba4d3dbb6156
2014-11-18WaE: overriding virtual function declaration not marked 'override'Tor Lillqvist
Change-Id: I82cfe96c4081afbd43fa1a9c41a9a92433f6bdb1
2014-11-18WaE: overriding virtual function declaration not marked 'override'Tor Lillqvist
Change-Id: I7f2dede9171f7478467a83ea000baa7da85aeac6
2014-11-18WaE: implicit conversion (IntegralCast) from bool to 'unsigned long'Tor Lillqvist
Change-Id: Icff8f89f64f335d8601ced11c83d4d30c2abac18
2014-11-18Simplify DeleteCells to not require 2 out parameters for the same thing.Kohei Yoshida
One can easily get constructed from the other after returning from the method. Change-Id: Iafc52efa7714b7cf4d284effda8034cb6f36bf91
2014-11-18Extend the test to cover insertion / deletion of rows.Kohei Yoshida
Change-Id: I9c5f46af446f8384265d91ce5dfe269e7a090d09
2014-11-18Register group area listeners as needed when inserting/deleting cells.Kohei Yoshida
Change-Id: I583ace5d134d526d660d4ff0bbf4a16aa10cbe5a
2014-11-18Unused local variable.Kohei Yoshida
Change-Id: I6a3d191b10eec119eea5af6218e6c298f2826b33
2014-11-18Regroup formula cells in columns before initializing them.Kohei Yoshida
Because the initialization of area listeners now depend on the grouped status of formula cells. Change-Id: Idf61f57387ba62c57d87030c16544bc07836826f
2014-11-18New test for testing group area listener behaviors during formula pasting.Kohei Yoshida
Change-Id: Ie0c4e39e30a33ec5390c03221950d1cd01549c15
2014-11-18Rename these to make it clear that they are only to be called from ...Kohei Yoshida
ScDocument::CopyFromClip. Change-Id: Ia95b65ca7982735b9c217a7b60d194117d64e774
2014-11-18Use group-area listeners during copy & paste if we can.Kohei Yoshida
This should reduce the number of area listeners generated esp. when replicating tons of formula cells down the column. Change-Id: I1ea8f51f667e6b0e1a646f84d79f5e8430b478d5
2014-11-18Avoid unnecessary broadcasting when deleting cells prior to pasting.Kohei Yoshida
Change-Id: Id224fd6fdb804350e7e00634db802e80090ae6d7
2014-11-18Rename methods whose name no longer represent what they do.Kohei Yoshida
We now do all broadcasting at the end of CopyFromClip, and nowhere else during pasting from clip. Change-Id: I1cb2c529f127d6e4080e49e4827f048ce5a19f95
2014-11-18Avoid area listeners and such during formula cell paste replication.Kohei Yoshida
All formula cells get marked dirty and start area-listening at the very end of CopyFromClip. No need to do it in CloneFormulaCells. Change-Id: I9faf48fd722c2ebcf4b74d5e523317b5d9c71a22
2014-11-18Send broadcast range to the area broadcast slot machine.Kohei Yoshida
Rather than iterating through cells in the range and broadcasting by cells individually. This way we can take advantage of the new group based area listeners and it's much faster this way. Change-Id: I8a4b49bce69d89b5b4698790befe4390871c755d