summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
2013-11-27Clear column data array cache when the document content changes.Kohei Yoshida
Change-Id: I09ffa455e79199e37ca6168753ec9ef4d5aa33dc
2013-11-28iterating through all cells is not a good idea, fdo#71934Markus Mohrhard
Change-Id: I370f641f0fffed8835a32c577c2f2e841ba419aa
2013-11-28resolved fdo#71589 reimplemented horizontal range lookupEike Rathke
Regression introduced with ebdd9c300718bce454ef56a31d5d8fb699fc1822 (first eaea417bfdf8d06df2b7f2e42c904c32ce77e871) that removed the bMixedComparison member from ScQueryParam under the false assumption that is was only used to emulate a legacy Excel behavior. In fact it was also needed to do the at least horizontal range lookup in sorted mixed data, though didn't evaluate exactly the same conditions as Excel and defined in ODFF. Reimplemented a similar behavior for the new code structures but this time also checking for the additional condtion that a query ByString does not return the last numeric result and vice versa, which previously was missing. Change-Id: I46061777879ba5301bfcaca2d50cf87a994f93f2
2013-11-27Unbreak the buildKatarina Behrens
Change-Id: I75dcedfb8fb8b294326898713e7220080d429342
2013-11-27Converted data bar options dialog to .uiKatarina Behrens
all right this time Change-Id: I9168df3cd83cfa910e4a189b5330a28ad85773ac
2013-11-27Converted data bar options dialog to .uiKatarina Behrens
Change-Id: I6a1cd4bc3eb91e89c5d15a2281d5f3d4a978df4e
2013-11-27Converted data bar options dialog to .uiKatarina Behrens
Change-Id: I9168df3cd83cfa910e4a189b5330a28ad85773ac
2013-11-27sc: no such thing as std::vector::findMichael Stahl
Change-Id: I11bb688a8e0affda9ed78a61d9aba3d244914f8c
2013-11-27We shouldn't check isValid() here.Kohei Yoshida
When the referenced range consists of entirely empty cells, we get an empty array, which is correct, but an empty array returns false when calling isValid(), which is not correct. After some thought, it's best not to check for isValid() here. Change-Id: I50dcea4f2b55d5f5c6f1226cca4106ddcad62145
2013-11-27sc: threaded parsing of the core data inside large XLSX filesMichael Meeks
Enabled in experimental mode only or via SC_IMPORT_THREADS=<N> this allows significant parallelisation of sheet reading. I also implement a simple thread pool to manage that. Change-Id: I66c72211f2699490230e993a374c26b1892eac12
2013-11-27Move recalc on-load to after ScDocumentImport::finalize().Kohei Yoshida
Doing this would avoid re-grouping formula cells twice. Change-Id: I732658fc92f2fb3ddde0c0c00ae85f72074b6b48
2013-11-27Re-group formula cells before we do recalc on load (for xlsx).Kohei Yoshida
Change-Id: Iae6177433f05875e014de50eb4100fa381ddafdd
2013-11-27Unwind occurrences of deprecated sal_sChar, sal_uCharStephan Bergmann
Change-Id: I76be464200d486efef9c8a7e957c310c9adae3b8
2013-11-26Fix additional bugs in the vector array fetching code.Kohei Yoshida
And a test case to catch it. Change-Id: I233269822b383afa9783bdc7318eddee31d1eaa3
2013-11-27resolved fdo#53103 actually use the external data filter optionsEike Rathke
ScDocShell::ConvertFrom() queries the filter options from the SfxItemSet at SfxMedium, which is fine when loading the data into the table selector first, but the final load via ScAreaLink created a bare SfxMedium without options set. Do so. Additionally it may now even work that ScDocShell sets options at SfxMedium, which the ScAreaLink code prepared for but previously the SfxMedium did not have an SfxItemSet. Change-Id: I45d6a24906dc3ba41654b8c0951dd84939d8af5e
2013-11-26We never ever want anything OpenCL-related in the sc_ucalc unit testTor Lillqvist
So unset any SC_BACKGROUND_COMPILATION environment variable to avoid that mixing up things when running this test. (It doesn't in a "clean" build, but in a build where you temporarily have made the SC_BACKGROUND_COMPILATION thing actually work in the sc_opencl_test unit test (by bypassing the weird "Is OpenCL enabled? Yes! No! Yes!" dance there), it does.) Loading the scopencl library will load also the sc library, which causes lots of confusion, as this unit test library itself includes all the object files from the sc library. (For IMHO questionable micro-optimisation reasons.) Another day wasted thanks to not understanding what undoubtedly are clever and elegant tricks. Change-Id: I203b6dae7d9b52787ac2d57180be87a61626af6c
2013-11-26Reduce verbosity a bitTor Lillqvist
Still lots of gratuitous unconditional writing to std:cerr in there. But maybe that's what we want. Change-Id: I28a65d6535c814bf5c047a7255dd3970fffda5dc
2013-11-26WaE: unused parameter 'bForceEvaluation'Tor Lillqvist
Change-Id: I402ccfa2e24240347985d9fda7adf4e2c01712fd
2013-11-25add methods to enable and disable automatic device selectionMarkus Mohrhard
Change-Id: I7136ad48ad3f20c60b77838225ce6c927514acff
2013-11-25Really disable multi-threaded sheet parsing.Kohei Yoshida
It will be removed later. Change-Id: Ia6c2711169cd45056cbf85bc8028627d6f57b44b
2013-11-25add API to retrieve all available OpenCL platforms and devicesMarkus Mohrhard
Change-Id: I2475961ae315ee7193ca2cedd5943b663bfee7a0
2013-11-25provide UNO API for OpenCL selectionMarkus Mohrhard
Change-Id: If5eb71e9298cefdac3dda98cb1ff67fe913ad3c3
2013-11-25Allow worker threads to use their own FastParser instances.Kohei Yoshida
To prevent deadlock during threaded sheet stream parsing. It now deadlocks at a different place. Change-Id: I0ba0f2c9a257e71b0a340ab14e369b06d5fd8829
2013-11-25Add hook to optionally enable threaded sheet stream parsing.Kohei Yoshida
Threaded version still not working as the fast parser deadlocks during threaded parsing. Change-Id: I3d402a22a394d7d0d7edf96590ae039506928fde
2013-11-25fdo#70499 selectn of lock/unlocked cells with worksheet protection reversedNoel Power
The ooxml spec documentation is rather confusing ( for me at least ) and the sense of the of the sheetProtection attributes as described seems reversed to how I read it ( or maybe it is the equivelant option in ScTableProtection that operates with the reverse sense <shrug> ) In anycase the import ( and export ) have been adjusted to take that into consideration, also the export now actually deals with the defaults correctly. Change-Id: Ia69567b8898b39c9d171486cfa800e1748c5814b
2013-11-25GPU Calc: a test case for unrolling SumOfProductI-Jui (Ray) Sung
AMLOEXT-245 BUG Change-Id: Ia8756af26c765820a04137a87f6681447dd18efd
2013-11-25GPU Calc: fixed a SUMPRODUCT problemI-Jui (Ray) Sung
ALMOEXT-245 Change-Id: Iedbbdc612232a939b2270e373313c872de831c20
2013-11-24checking every cell on a sheet is expensive, related fdo#71934Markus Mohrhard
This is only the first of two places that does this. Change-Id: I57fe1eb07630ecd86b112e88b7ad32c16e9f793a
2013-11-24Support regression curve name in old binary XLS XP/2k/2k3 format.Tomaž Vajngerl
Change-Id: Ie6f2fd3cce70e4789805e788846d3beb64620a4b
2013-11-24Fix detection of force intercept in XLS 97/2000/XP format.Tomaž Vajngerl
NaN value indicates if the force intercept is enabled or not. Change-Id: I51d33a6e04a4b5832f241e7ae7ee6d2fbb32ea9b
2013-11-23resolved fdo#61946 use correct TabDelta for UpdateReferenceEike Rathke
The sheet delta was reverted resulting in the references not being updated when conditional formats were copy-pasted between sheets. Saved to .ods then was an identical calcext:target-range-address as for the copied source range. Change-Id: I038b58f20f71ff1393dccafa3021dac02cd69e4b
2013-11-22GPU Calc: Sum of product doesn't check out-of-bound accessesWei Wei
AMLOEXT-244 FIX Change-Id: I5f49f7acccaabd2a97d8ac4bfba4b973889278f1
2013-11-22GPU Calc: Testcase for Sums of Product that have out-of-bound windowWei Wei
AMLOEXT-244 BUG Change-Id: Iefce62484b2189b37b747bfd4b739115dafbc40d
2013-11-22do not insert extraneous parameter in importEike Rathke
Importing already a Calc-only number of parameters do not insert extraneous parameters. Fixes fdo#38592 but that bug doesn't occur anymore on master / 4.2 because this code isn't executed anymore since the move to non-API token generation. Change-Id: I011e3df24573fce9f2788c9311089af984650220
2013-11-22GPU Calc: using intrinsic isnan()I-Jui (Ray) Sung
Change-Id: Ic714074a22847fbe4ac39cd035d4924fb0525efd
2013-11-22GPU Calc: test case for parallel count()I-Jui (Ray) Sung
AMLOEXT-243 BUG Change-Id: I97e2dab35b40f4f7fcd4975ae7c5907e97e19fd9
2013-11-22GPU Calc: fix a parallel COUNT() problem when input vector size > 512I-Jui (Ray) Sung
AMLOEXT-243 FIX Change-Id: I1a356f9a591c1f5a99d2675065b63a7673217ac6
2013-11-22more tests for new Excel 2010 functions, fdo#70798Eike Rathke
Change-Id: If996e57a616adfb21f09463ac305e64c4e2fa4cc
2013-11-22getChar() to return a null-terminated char array.Kohei Yoshida
No need to fetch string size with this change. Change-Id: Iae5f6c60430fc57985a0fec5bfec59727e5a8f0f
2013-11-22Set default cell style directly, without UNO API.Kohei Yoshida
This also avoids unnecessary row height adjustments. Change-Id: Icfecf0a5fdf7ef18db368ebadcf9d0b8700c0b65
2013-11-22More removal of UNO API for setting document properties.Kohei Yoshida
Change-Id: I8c68308394a64eee0985d7d1f8c8b34637a6da74
2013-11-22Call the method directly via ScDocument, not via obscure UNO API.Kohei Yoshida
Change-Id: I27628314337ae4df31420d63d7c09148369a6759
2013-11-22Shrink class sizes a bit.Kohei Yoshida
Change-Id: I2561ede5a42ad1f0f3bb74f7b9375f87010eddc3
2013-11-22Avoid re-drawing progress bar too frequently.Kohei Yoshida
Change-Id: I01dcd6d421c1f648b4cd8413e3baf50fd26d4c8f
2013-11-22fdo#71722 add Excel 2010 functionsWinfried Donkers
EXPON.DIST, HYPGEOM.DIST, POISSON.DIST, WEIBULL.DIST Change-Id: Ib9f648739ec0af90cdf2f576c7f548a6acb7b4a6 Reviewed-on: https://gerrit.libreoffice.org/6748 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-11-22remove unnecessary RTL_CONSTASCII_STRINGPARAMNoel Grandin
A final pass through the code, converting code to use the new OUString and OString methods that can detect string literals. Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-22remove unnecessary use of OUString constructor in equalsIgnoreAsciiCaseNoel Grandin
Convert code like: sType.equalsIgnoreAsciiCase(OUString("VIEW")); to: sType.equalsIgnoreAsciiCase("VIEW"); Change-Id: I6fb47e6a83b561c7e5a25da76b63606a3174858d
2013-11-21Ensure that when ds_profile is NULL, NATIVE_CPU is selected.Jagan Lokanatha
Change-Id: Iab714a296ce0f807b5badd1ff96a99f3da2b24f8
2013-11-21fdo#71350 fix incorrect calculation of Excel function CONFIDENCE.TWinfried Donkers
Change-Id: I94202bebcc7deded51636f4bf7f203254a31931f Reviewed-on: https://gerrit.libreoffice.org/6751 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-11-21remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsLNoel Grandin
Convert code like this: if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aStr == "rem") which compiles down to the same code. Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9