Commit Graph

43 Commits

Author SHA1 Message Date
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
Thomas Arnhold
d8afc8e5e9 Remove superfluous include comments
Change-Id: Ie5792855761b9be209bf3fa2cba9e6998523c982
2012-06-09 04:39:01 +02:00
Kohei Yoshida
237e4f52ab Use iterators over index access.
This makes ValidQuery *slightly* faster.

Change-Id: I9fff6099b597d7a8d4d5a4358099348baa657802
2012-06-06 16:47:07 -04:00
Norbert Thiebaud
2721235724 remove include of pch header from sc 2011-11-27 13:20:15 -06:00
Kohei Yoshida
dff8c99b01 Populate the query entries directly. 2011-11-18 14:13:22 -05:00
Kohei Yoshida
ba92fb9347 Store filter orientation in the query param. 2011-11-18 14:13:21 -05:00
Kohei Yoshida
825d516672 Replace DeleteQuery with RemoveEntryByField.
The latter takes care of iterating through the elements.
2011-11-18 14:13:20 -05:00
Kohei Yoshida
5ca8b63c03 A little cleanup. 2011-11-18 14:13:20 -05:00
Kohei Yoshida
965d933ed9 Remove the query entry when all items are selected. 2011-11-18 14:13:20 -05:00
Kohei Yoshida
e2177c733e Now the new popup works somewhat as expected. 2011-11-18 14:13:20 -05:00
Kohei Yoshida
24568e6292 Handle query after the popup gets dismissed by clicking OK.
But it's not working right. :-(
2011-11-18 14:13:19 -05:00
Kohei Yoshida
04fc63b200 No more pSpecial treatment of empty / non-empty queries. 2011-11-14 17:05:59 -05:00
Kohei Yoshida
ebdd9c3007 Revert "Revert "Removing the mixed comparison flag, which is no longer needed.""
This reverts commit 7d7036c235.
2011-11-14 10:37:47 -05:00
Kohei Yoshida
7d7036c235 Revert "Removing the mixed comparison flag, which is no longer needed."
This reverts commit eaea417bfd.
2011-11-11 12:16:06 -05:00
Kohei Yoshida
eaea417bfd Removing the mixed comparison flag, which is no longer needed.
This flag was introduced years ago to deal with Excel's behavior on
incorrectly sorted data range. But later versions of Excel no longer
follow that behavior & keeping this flag would make the evaluation
code unnecessarily more complex & hard to adopt to multi-item matching.
2011-11-10 15:45:53 -05:00
Kohei Yoshida
cbe46bbe3e Simplified the filter test a bit, and clear the filter afterward. 2011-11-07 21:34:03 -05:00
Kohei Yoshida
8808d77f19 Changed data storage structure in ScQueryEntry.
This required a whole bunch of chnages all over the place.
2011-11-07 21:33:02 -05:00
Markus Mohrhard
cc59e69c6f String->OUString in ScDocument and follow up 2011-11-07 03:46:21 +01:00
Kohei Yoshida
3df7746a66 Moved ScQueryEntry into its own file set.
Because I'll be modifying this struct in the next few days...
2011-11-05 00:56:38 -04:00
Kohei Yoshida
a1675f6d76 Hide the query strings member, and add relevant methods for it. 2011-11-04 22:40:30 -04:00
Kohei Yoshida
369d2726c7 Do the simple string equality matching in ScQueryEntry instead. 2011-11-04 22:40:29 -04:00
Kohei Yoshida
22f971d6d2 Set pStr private and discovered several more direct access to this member. 2011-11-04 22:40:28 -04:00
Kohei Yoshida
9dd9e4bacc Remove direct access to the query string (pStr).
I'm about half-way through.
2011-11-04 22:40:27 -04:00
Kohei Yoshida
6d1c73b744 Calling delete on NULL pointer is safe. 2011-11-04 22:40:27 -04:00
Kohei Yoshida
d6edecd37c Moved ScQueryEntry out of global.?xx to queryparam.?xx.
This is more appropriate.
2011-11-04 22:40:27 -04:00
Kohei Yoshida
fa42b0d838 const correct ness etc & mutable only for lazy-initializing accessor. 2011-11-04 22:40:26 -04:00
Kohei Yoshida
54673798f3 Let's not use a hard-coded MAXQUERY all over the place.
For now, the maximum query size is determined by the size of the
vector that holds the entries.  For now, the size of the vector is
fixed, and won't change.  We may later work on making it dynamically
sized, however...
2011-11-04 22:40:26 -04:00
Kohei Yoshida
e667d428ad Have ScDBData use ScQueryParam as data member. 2011-05-10 15:10:28 -04:00
Kohei Yoshida
f2384d6f10 Removed the dynamic row bits from the db range. It was a hack.
This concept was there before the Hamburg added their own mechanism
to allow dynamic expansion of db ranges.  There is no need to have
two of them, or it would cause weird problems.
2011-04-01 15:24:18 -04:00
Kohei Yoshida
12343c1556 Merge commit 'ooo/DEV300_m101' into integration/dev300_m101 2011-03-10 20:21:13 -05:00
Thomas Arnhold
a6e69f8fcd Move DBG_ERROR to OSL_FAIL 2011-03-02 14:58:56 +01:00
Thomas Arnhold
1666fb7027 Remove old RCS lines. 2011-01-21 10:13:09 +01:00
Kohei Yoshida
ebaaee24b1 Ported calc-formula-db-function-fix.diff from the build repo.
This patch fixes n#594332 and n#595713.
2011-01-19 13:05:27 -05:00
Mikhail Voytenko
cd42389ad6 removetooltypes01: #i112600# remove tooltypes from sc 2011-01-17 13:20:22 +01:00
Sebastian Spaeth
63bb42ab7d Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-13 10:57:18 +02:00
Kohei Yoshida
e1380111b4 sc-dbrange-dynamic-resize.diff: Dynamically resize filtered range.
n#352662, i#85305

Dynamically resize filtered range when new data rows are present.
2010-09-15 15:11:13 +02:00
Kohei Yoshida
52e051137d koheiextref01: I forgot to initialize data members properly. 2010-03-05 18:23:10 -05:00
Kohei Yoshida
facce3d969 When deleting a query entry, I need to append an empty one.
We need to ensure that the size of the query entries don't change
after deleting a query entry.
2009-11-26 00:25:40 -05:00
Kohei Yoshida
f8acf48d34 last cleanup - use vector to store an array of ScQueryEntry, instead of the old-fashioned c-style dynamic array. 2009-09-16 17:38:14 -04:00
Kohei Yoshida
fe232c3a08 removed the duplicated ScTable::ValidQuery. 2009-09-16 16:18:38 -04:00
Kohei Yoshida
66df527698 Moved the string flag from the iterator to the query param struct. 2009-09-16 10:58:37 -04:00
Kohei Yoshida
b78dc8dc80 #i102750# more work toward supporting external refs in DB functions. Still a long way to go... 2009-09-09 23:58:50 -04:00
Kohei Yoshida
f371fca09d #i102750# initial refactoring in an effort to support external references in DSUM, DGET etc. Not finished yet. 2009-09-09 10:57:16 -04:00