Commit graph

21866 commits

Author SHA1 Message Date
Jan Holesovsky
f9f98386b2 findbar: Add the findbar to the menus above the Search dialog. 2011-03-03 23:56:25 +01:00
Kohei Yoshida
5f7dc0d4c7 Support external references in a whole bunch of other functions.
GetMatrix() now returns a matrix instance even from external single
and double ref tokens.  Let's use this to easily add support for
external refs to several functions at once.
2011-03-03 17:45:33 -05:00
Kohei Yoshida
251bb12036 Handle external references in LOOKUP, HLOOKUP and VLOOKUP. (fdo#33426) 2011-03-03 17:32:46 -05:00
Kohei Yoshida
2abcba4fb4 Support external reference range for INDEX function. (fdo#34938) 2011-03-03 17:10:29 -05:00
Kohei Yoshida
f8c96ac67e Added new test for volatile function NOW wrapped inside IF.
Inspired by fdo#31939.
2011-03-03 01:09:24 -05:00
Kohei Yoshida
ababcf5570 Better fix for fdo#31939.
Turns out that the token array's recalc mode is set to "recalc always"
when it contains a volatile token during compilation.  We can re-use
that to mark the token array volatile before the interpretation starts.
The end result is the same, with better performance since we can avoid
re-scanning of the token array.
2011-03-02 21:33:09 -05:00
Kohei Yoshida
24cbd0a4d1 Go through all tokens to look for a volatile one. (fdo#31939)
When a volatile token is inside a conditional function (such as IF),
*and* the evaluation of that conditional skips the volatile token
it would incorrectly mark the cell non-volatile.  The solution is
to scan through all tokens in the token array in the beginning of
the calculation and mark the cell volatile if one is found.
2011-03-02 20:44:56 -05:00
Kohei Yoshida
d022492ef9 Actually this will just do.... 2011-03-02 19:16:14 -05:00
Kohei Yoshida
3e6eb38766 Fixed the "jump to precedents" and "jump to dependents" functions. 2011-03-02 19:10:17 -05:00
Kohei Yoshida
9a6e2a0af3 No auto decimal adjustment when in "show formula" mode. (fdo#33665) 2011-03-02 18:09:36 -05:00
Kohei Yoshida
2daf897af6 Make sure these values are positive; we use them to resize arrays.
This fixes fdo#34350.
2011-03-02 16:14:54 -05:00
Guillaume Poussel
e9110d56c1 Remove bogus comments. 2011-03-02 21:32:23 +01:00
Guillaume Poussel
68d51d0040 Remove bogus comments. 2011-03-02 21:32:22 +01:00
Kohei Yoshida
56addc9890 Remove comment that's no longer true. 2011-03-02 14:43:56 -05:00
Kohei Yoshida
71872ffe74 We need to populate the cache with all sheet names even for in-memory doc.
This fixes fdo#34356 and fdo#34853.
2011-03-02 14:41:52 -05:00
Thomas Arnhold
9340d8fbe2 Remove diff stuff 2011-03-02 16:39:01 +01:00
Thomas Arnhold
a6e69f8fcd Move DBG_ERROR to OSL_FAIL 2011-03-02 14:58:56 +01:00
Caolán McNamara
775a632985 confirmed works under windows 2011-03-02 10:55:05 +00:00
Kohei Yoshida
b8c551652b Replaced String with rtl::OUString. 2011-03-01 22:50:13 -05:00
Kohei Yoshida
0a36f0bad4 Hooray! No more ScfRefMap. 2011-03-01 20:59:46 -05:00
Kohei Yoshida
ceeabc7170 Another one on ScfRefMap to std::map conversion.
Is this the last one?
2011-03-01 20:52:26 -05:00
Kohei Yoshida
9ca9075d32 More on ScfRefMap to std::map conversion. 2011-03-01 20:49:29 -05:00
Kohei Yoshida
8323e33102 These ones are best converted to std::map. 2011-03-01 20:44:18 -05:00
Kohei Yoshida
422c348776 Another one on ScfRefMap to boost::ptr_map conversion. 2011-03-01 20:33:46 -05:00
Kohei Yoshida
f369679dcc More on ScfRefMap to boost::ptr_map. 2011-03-01 20:13:40 -05:00
Kohei Yoshida
070a499b5c Replaced another use of ScfRefMap with ptr_map. 2011-03-01 19:53:55 -05:00
Kohei Yoshida
dac3d1311b Replace use of ScfRefMap with boost::ptr_map. 2011-03-01 18:35:29 -05:00
Kohei Yoshida
8868c24107 Moved the widgets a bit and shrank the dialog to make it look nicer. 2011-03-01 16:16:00 -05:00
Kohei Yoshida
2508c4d67b Re-arranged widgets definitions a bit. 2011-03-01 16:15:59 -05:00
Kohei Yoshida
86c1bd3103 Put all the other pieces into place.
Now you can specify a named range as the data source for a new
data pilot table.
2011-03-01 16:15:59 -05:00
Kohei Yoshida
65b0689ed0 Initial change to display named range option in the source dialog. 2011-03-01 16:15:59 -05:00
Kohei Yoshida
6529718c22 Used boost::scoped_ptr to manage instances. 2011-03-01 16:15:59 -05:00
Kohei Yoshida
cf7f61b114 Extracted datapilot handling code into its own method. 2011-03-01 16:15:59 -05:00
Kohei Yoshida
f6fa663b13 Cleanups and comments. 2011-03-01 16:15:59 -05:00
Caolán McNamara
5dce0079bb Revert part of cab7e33c which added ';' into the expression 2011-03-01 20:46:25 +00:00
Caolán McNamara
60fe537a3b avoid implicit cast 2011-03-01 20:34:21 +00:00
Caolán McNamara
770632cabb pointless to go from char* to OString to char* 2011-03-01 20:34:21 +00:00
Caolán McNamara
73259ccb76 pointless to go from char* to OString to char* 2011-03-01 20:34:21 +00:00
Takeshi Abe
117066d1e9 Removed dead code 2011-03-02 03:14:31 +09:00
Thomas Arnhold
493c81d73a Remove unnecessary semicolons 2011-03-01 17:42:12 +01:00
Kohei Yoshida
acbf368a3e We call them field windows. Let's be consistent... 2011-03-01 11:41:36 -05:00
Kohei Yoshida
6cd44dd9c2 Refresh the field view when the source range changes.
Not doing so would cause phantom buttons in the field windows that
you can see but you can't touch....
2011-03-01 11:35:57 -05:00
Guillaume Poussel
9d1e66bd77 Remove bogus comments. 2011-03-01 14:29:24 +01:00
Guillaume Poussel
bd394abd2e Remove bogus comments. 2011-03-01 13:01:24 +01:00
Kohei Yoshida
effc42d64e Check for existance of cache before creating a new one.
Sometimes a cache is passed onto the cache table at construction
time, in which case the cache is already there by the time
CreateCacheTable() is called.  We need to check that.
2011-03-01 00:44:42 -05:00
Kohei Yoshida
dddc5972da Renamed ScDPTableDataCache to simply ScDPCache.
There were so many classes with 'DPTable' in them it was confusing.
2011-03-01 00:24:37 -05:00
Kohei Yoshida
f84427bfdd Finally get the refresh to work properly. 2011-03-01 00:02:01 -05:00
Kohei Yoshida
716556f19c Let's rename InvalidateSource() to ClearSource().
Because that's what the method does; it clears all the source data.
2011-02-28 22:48:11 -05:00
Kohei Yoshida
278610aab9 More cleanups.
ScDPObject::bRefresh flag is no longer used.
2011-02-28 22:02:53 -05:00
Kohei Yoshida
ed110de945 Remove old container that stored data caches.
We may revive this later when we decide to pool the data cache
once again.
2011-02-28 21:49:38 -05:00