summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
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
2014-11-18We don't need 2 variants of this method. One is enough.Kohei Yoshida
Change-Id: I001c388669737e9cf1d92f1fbb1e64fb9f4b05c3
2014-11-18Dedicated listener type tailored for formula groups.Kohei Yoshida
Right now, it's only used when loading an xlsx file. But eventually this one should be used everywhere. Change-Id: I216c3a9a33c4b8040e8284d59299e0637471fb50
2014-11-18Reduce duplicate broadcasting done when pasting a range of cells from clip.Kohei Yoshida
We do pasting from clip in 2 steps: 1) delete the destination range, then 2) paste the content onto the destination range. The old code would broadcast both during 1) and 2). This change consolidates them and do broadcasting only once at the end, and also avoids broadcasting the same cell twice, which the old code sometimes did. Change-Id: Ic524c2b70888ce158619d99cbfb55dea85870497
2014-11-18Differentiate shared and non-shared formula cells when registering.Kohei Yoshida
For now this is just for a pure redirection, but later we'll use this to do a different area listening registration for grouped formula cells. Change-Id: I8e68bb53c3e96821175ae562ef36ec5e800c8688
2014-11-18Add a means to dump the state of the area broadcaster slot machine.Kohei Yoshida
Change-Id: I158307de667dbe621376dfc01adeef89aa12faaa
2014-11-18Unindent.Kohei Yoshida
Change-Id: I3c644b6ff9916f6ec99ff6208ea073dd1612b4b3
2014-11-18Optimize area broadcast iteration ...Kohei Yoshida
for cases where no areas are marked for removal, which I believe is mor common use case than others. Change-Id: I3f53fb5e6ab4a9172e358bec0c71289d1e92ac19
2014-11-18Scope reduction.Kohei Yoshida
Change-Id: Ic0cb74d220dccdcb4f607f4883b9b7fdf86bb080
2014-11-18Move this code to the context class.Kohei Yoshida
Change-Id: I387dba24993d418a2b3923eac992ad2506229704
2014-11-18Speed up pasting of single row onto multiple destination rows.Kohei Yoshida
This is an extension of the earlier paste optimization of a single cell across multiple destination cells. Change-Id: I3a60300d3d0e11420d997bea8f7f540e948f56cc
2014-11-18Make these methods non-inline again.Kohei Yoshida
Change-Id: I34e18fa1607d56351e1c3656b1f37a823b7a5609
2014-11-18Thread excel table row/column format finalization.Michael Meeks
Change-Id: I6ddc0270831989291893b170d57fea14329a26ba
2014-11-18Bump the minimum group size for OpenCL to 100Tor Lillqvist
Change-Id: Id877823d760236bb731900711e3260a29c5c6871
2014-11-18java: make fields final where possibleNoel Grandin
found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
2014-11-18fdo#86018 Don't do anything when clicked on placeholder in statusbarSamuel Mehrbrodt
No idea why this code got executed in sw, it has no action in sd and sc. Change-Id: I1d2b4b049f6ae6d117e7bf3464ae993c6951f1dc Reviewed-on: https://gerrit.libreoffice.org/12314 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18fdo#86086 addition of number format submenu and simplifying itemsYousuf Philips
Change-Id: Ic65cb86872241b0b9425e65883a75b1e7382522e Reviewed-on: https://gerrit.libreoffice.org/12367 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>