Commit Graph

93 Commits

Author SHA1 Message Date
Eike Rathke
98a4e4f2ad EvalMatrix<XorEvaluator> for Xor
Change-Id: Ib0fdf7f8916a9d31fbcbedad925361d0cbe03b10
2012-12-15 21:42:42 +01:00
Eike Rathke
c86a9c4f04 EvalMatrix: do not short circuit, propagate errors
Change-Id: I3118fb2a4d30e1626a05e9872b34a3c33bd487be
2012-12-15 21:42:41 +01:00
Marina Plakalovic
07df025a73 calcishmakkica: #i114428# merge some XOR related code
Merged from Apache OO with adaptions, parts of
http://svn.apache.org/viewvc?rev=1381446&view=rev
Original Apache OO committer: Andrew Rist <arist@apache.org>

Original Author: Marina Plakalovic <makkica@openoffice.org>
Original Committer: Eike Rathke [er] <eike.rathke@oracle.com>

 # HG changeset patch
 # User Eike Rathke [er] <eike.rathke@oracle.com>
 # Date 1284060031 -7200
 # Node ID 528da6bfd0daed4355d745590d5ac3a319b08fb4
 # Parent  237cb91dd986ff11eb100cc631206cda102e91f7

Change-Id: If456792f23429a80582a48b022d268e6179316a1
2012-12-15 21:42:40 +01:00
Michael Meeks
16155fdc39 re-base on ALv2 code. Includes:
Patches contributed by Herbert Duerr
    i#118735 prevent endless loop if vlookup/hlookup doesn't find anything
    http://svn.apache.org/viewvc?view=revision&revision=1239673

    Patches contributed by Andre Fischer
    remove lp_solver
    http://svn.apache.org/viewvc?view=revision&revision=1199180
    i#118160: Added external CoinMP library.
    http://svn.apache.org/viewvc?view=revision&revision=1233909

    Patches contributed by Armin Le-Grand
    i#118485 - Styles for OLEs are not saved.
    http://svn.apache.org/viewvc?view=revision&revision=1182166
    i#118524: apply patch, followup fixes to 118485
    http://svn.apache.org/viewvc?view=revision&revision=1186077

    Patches contributed by lihuiibm
    i#108860 - Fix range validation.
    http://svn.apache.org/viewvc?view=revision&revision=1242846
    i#118954 Chart data will lost after copy to different file
    http://svn.apache.org/viewvc?view=revision&revision=1301345

    Patches contributed by Ariel Constenla-Haile
    Fix Linux build breaker: extra qualification on member
    http://svn.apache.org/viewvc?view=revision&revision=1301591
    i#118696 - i#118697 - Fix some Sheet Tab Color API issues
    http://svn.apache.org/viewvc?view=revision&revision=1225428
    i#118697 - Fix uninitialized variable
    http://svn.apache.org/viewvc?view=revision&revision=1225859
    i#118771 - ScUndoImportTab should preserve tab background color
    http://svn.apache.org/viewvc?view=revision&revision=1230356
    i#118921 - Repaint linked sheet tab background color after updating link
    http://svn.apache.org/viewvc?view=revision&revision=1245177
    i#118927 - Undo/Redo "Update Link" does not reset sheet tab color
    http://svn.apache.org/viewvc?view=revision&revision=1245241
    i#118747 - Copy tab color when transferring sheets across documents
    http://svn.apache.org/viewvc?view=revision&revision=1230355

    Patch contributed by Oliver Rainer-Wittman
    i#118012 - methods <ScBroadcastAreaSlot::AreaBroadcast(..)> and
    <ScBroadcastAreaSlot::AreaBroadcastInRange(..)> adapt stl-container
    iteration in order to avoid destroyed iterators during iteration.
    http://svn.apache.org/viewvc?view=revision&revision=1297916

    Patches contributed by Mathias Bauer
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    http://svn.apache.org/viewvc?view=revision&revision=1396797
    http://svn.apache.org/viewvc?view=revision&revision=1397315

    Patch contributed by Daniel Rentz
    calc69: #i116936# fix VBA symbol Cells
    http://svn.apache.org/viewvc?view=revision&revision=1172135

    Patches contributed by leiw:
    i#118546 CPU 100% on switched off AutoCalculate with Conditional
    Formatting on date values
    http://svn.apache.org/viewvc?view=revision&revision=1301380

Re-add new function documentation. Many various cleanups.
Add missing calc66: #o11817313# also look at formula result
number format, remove redundant binaries.
2012-12-04 07:17:12 +00:00
Kohei Yoshida
87404d2671 It's much faster to pass value array in one go than individually.
Change-Id: Iaf58915ab5c56ef5707f3a90a308c8b57cdc4fe9
2012-07-20 23:32:16 -04:00
Kohei Yoshida
15929afc1a Revert "Let's see if stripping the const here will fix the clang build..."
It didn't help our clang tinderbox.  Reverting.

This reverts commit 52022b5f82.
2012-07-19 16:14:07 -04:00
Kohei Yoshida
52022b5f82 Let's see if stripping the const here will fix the clang build...
Change-Id: Ia019157bd5d2b8ce18550b468de1269b2737ff02
2012-07-19 15:49:44 -04:00
Kohei Yoshida
4c1d32263e This should be bool.
Change-Id: I20cb39a12b4e50ebb8ef118989252a01f65185e4
2012-07-19 14:05:13 -04:00
Kohei Yoshida
7ba5f70903 Pass contiguous cell data as an array to matrix. This is faster.
It's generally faster to pass an array of elements to matrix than
passing them individually.

Change-Id: I4502025d08040327c1d1c09ce1756928be054c25
2012-07-19 14:05:12 -04:00
Kohei Yoshida
32d9ed46f6 Slightly more efficient compareMatrix.
Have a separate result matrix and have it initialize with boolean
block.  This way inserting the result of each element does not cause
reallocation of existing blocks.

Change-Id: Id89114ed5df40cde80129e4479d9b4e7d2e12cc0
2012-07-19 14:05:12 -04:00
Kohei Yoshida
229d86b238 Use macro to define callbacks.
This saves a whole bunch of typings!  It's all boilerplate anyways.

Change-Id: Ide366a9f5756f9354d95499fa9a6a4c46d5c5b82
2012-07-19 14:05:11 -04:00
Kohei Yoshida
93c8b68ba6 Reorganized code to remove redundant calls to get_type().
This makes GetString() a teeny bit faster.

Change-Id: Id49df508d45584d529caa4061e77f4ddc4431c67
2012-07-19 14:05:11 -04:00
Kohei Yoshida
96610e8ed7 Some cleanup and comments.
Change-Id: I38e9bbc0a55498e612665e90b5b1452e6c245c21
2012-07-19 14:05:11 -04:00
Kohei Yoshida
e0704701de Turns out that C++03 doesn't support use of static double inside template.
static int works, however.  C++11 solves this via constexpr keyword.

Change-Id: I86f913129cbc65639ec2bf4b23843a5b25bd9146
2012-07-19 14:05:11 -04:00
Kohei Yoshida
d3629a3942 It's no longer possible to unionize value and string here...
Thereby leaving a note to discourage use of ScMatrixValue.  Incidentally,
now all the unit test passes.

Change-Id: I5d12f8ab654f985ef43b887a22abb6de45fea1fc
2012-07-19 14:05:11 -04:00
Kohei Yoshida
2789bcb41b Support resizing matrix with a default value.
Change-Id: Ibb5cf4d09b67426021f6d158878afd8386f22555
2012-07-19 14:05:10 -04:00
Kohei Yoshida
c79305f2a1 For sum product, the initial accumulator value should be 1, not 0.
Change-Id: I16ce22150627f75eab08cc4d58fc63a76572c010
2012-07-19 14:05:10 -04:00
Kohei Yoshida
608fdfe123 Don't forget to initialize the flag matrix.
Change-Id: I02ca2b6fbe49530988a81d12b4e38d24c9046cf6
2012-07-19 14:05:10 -04:00
Kohei Yoshida
cc72060199 A little cleanup.
Change-Id: Ib0059f921f815a0ddb679f4bc1888eec2270981e
2012-07-19 14:05:09 -04:00
Kohei Yoshida
0ddcb7a07a Implement Sum(), SumSquare(), etc...
The unit test still segfaults.

Change-Id: Ib1fc78f94776e04ba8cb6ec8a24162b308cc569f
2012-07-19 14:05:09 -04:00
Kohei Yoshida
c31905c88c Initial cut on matrix backend swapping. Still lots of things to fix.
Change-Id: I5262899171029772f53dccc9aea666c4b83aef36
2012-07-19 14:05:09 -04:00
Sören Möller
b6cfbd08c2 Replaced deprecated tools/String with OUString in ScMatrix
Change-Id: If431e5ef8b5c97384a1bb1c7fa36c6894ece8343
2012-07-05 16:18:51 +02:00
Markus Mohrhard
bbe088bc75 cache calls to mdds:mixed_type_matrix::size, related fdo#47299 2012-03-23 02:09:27 +01:00
Thomas Arnhold
804e86170f remove unused methods 2012-01-17 17:01:26 +01:00
Norbert Thiebaud
2721235724 remove include of pch header from sc 2011-11-27 13:20:15 -06:00
Kohei Yoshida
0146b05aad This is wrong. We should allow both boolean and numeric types. 2011-11-22 00:13:07 -05:00
Markus Mohrhard
b03e931439 we need to use ValidColRowOrRepeated, silly mistake by make 2011-11-02 12:35:23 +01:00
Markus Mohrhard
cf0dd21135 prevent access to non existing mdds elements (fdo#41807) 2011-11-01 22:39:23 +01:00
Markus Mohrhard
30e4e8c2a7 boolean values are valid for matrix evaluation (fdo#49967) 2011-11-01 15:58:24 -04:00
Kohei Yoshida
d29bcfb031 Properly return empty string when asked, as it did previosly.
Refactoring of ScMatrix changed this behavior by accident.  Let's
bring back the old behavior.
2011-06-14 01:07:57 -04:00
Jacek Wolszczak
45df4e3859 Replace DBG_* with OSL_* in sc/source/core 2011-05-27 06:03:37 +02:00
Julien Nabet
0f5850b234 Fix simple cppcheck warning 2011-05-08 09:02:30 +02:00
Kohei Yoshida
12343c1556 Merge commit 'ooo/DEV300_m101' into integration/dev300_m101 2011-03-10 20:21:13 -05:00
Fridrich Štrba
1f21015e15 hardcode MDDS_HASH_CONTAINER_BOOST 2011-02-06 17:30:36 +01:00
Mikhail Voytenko
cd42389ad6 removetooltypes01: #i112600# remove tooltypes from sc 2011-01-17 13:20:22 +01:00
Miklos Vajna
05203af7c5 sc: fix mdds include when doing a c++0x build and using strlport 2011-01-05 01:21:15 +01:00
Kohei Yoshida
2a12d93fef BOOL to bool. 2010-12-22 10:02:42 -05:00
David Tardon
a99ac11103 use configured hash container 2010-12-22 11:24:57 +01:00
Kohei Yoshida
2d4e30c2b8 Fixed build breakage. 2010-12-20 15:31:19 -05:00
Kohei Yoshida
328ba20cd3 Use mixed_type_matrix::const_iterator for faster element iteration.
This should speed up calculation of SUM, AVERAGE etc. on external
ranges.
2010-12-20 15:16:12 -05:00
Kohei Yoshida
3c3f08f464 Added skeleton methods for all sorts of iterative calculations.
They are not yet implemented.
2010-12-17 17:30:33 -05:00
Kohei Yoshida
8ac2b73ae7 Template name change: quad_type_matrix -> mixed_type_matrix. 2010-12-17 15:38:51 -05:00
Kohei Yoshida
b36b0e091f Removed the eternal ref bits, as no one uses it & we don't need it. 2010-12-17 00:20:49 -05:00
Kohei Yoshida
887f214c1e Removed code duplication with template. 2010-12-16 21:46:45 -05:00
Kohei Yoshida
90e11a73fc Check the flag value for empty "path" element type. 2010-12-16 21:24:02 -05:00
Kohei Yoshida
a0fcfeb91d Empty element is expected to have a value of zero. 2010-12-16 20:54:43 -05:00
Kohei Yoshida
e64ab40533 Fixed a silly bug with serious consequences.
This was causing the calculation of LINEST to be totally incorrect.
2010-12-16 19:27:09 -05:00
Kohei Yoshida
536b19aa4b Don't call Clear() after resizing a matrix. 2010-12-16 15:03:39 -05:00
Kohei Yoshida
40de2e3b67 Fixed all build breaks. sc is again buildable. 2010-11-07 01:39:29 -04:00
Kohei Yoshida
b1ec696188 More of the same. 2010-11-07 00:20:50 -04:00