summaryrefslogtreecommitdiff
path: root/sc/inc
AgeCommit message (Collapse)Author
2014-12-15Remove global variable SymbolTable::nR and make the code re-entrant.Kohei Yoshida
Change-Id: Ie4cc8329398063b82b34cde5568686f48363ee1a
2014-12-15sc: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: Ib4c0df8d7637bff7d7a45d24482fff4342169fae
2014-12-11resolved fdo#87237 propagate error values through matrix comparisonsEike Rathke
Apparently introduced with 8e8b43a03e77dd251876c1de0ac06eeeb09192cd the comparison results were stored as boolean values, effectively discarding any infinite double values and error values encoded as NaN values. Change-Id: I1fb6f46894a0bee02a37e28b7e6cc84f8c051f28
2014-12-10Deteremine the script type of source cell during paste replication.Kohei Yoshida
Doing this ahead of time eliminates the need to update script types of all replicated cells after the paste. This makes significant performance impact. Change-Id: Ic4f7d7b2fe152bd5640ddb1dae01cc2ed757657e
2014-12-09Revert "move RID_APPTITLE to desktop where its used"Caolán McNamara
this seems to have been re-committed as a conflict fixup, but it had been removed on purpose by commit 8c041824b67caa53d3f7f96803b7a69ced6614b5 Author: Caolán McNamara <caolanm@redhat.com> Date: Tue Nov 25 13:39:28 2014 +0000 all these ids and their associated resources were unnecessary Change-Id: I3f538668c9c5f1727b8cf49ab72fd5879e12f156 This reverts commit f43162b09c4876cec317b83e2d6c1afbd8576001. Change-Id: I57514dcc9cd48c841620d4cb20d049ea8c55254e
2014-12-09remove now unused BROADCAST_ALL_POSITIONS caseEike Rathke
Change-Id: I4e6b362f31d93964567fe9ca394cd96568981746
2014-12-09introduce BroadcastBroadcasters() to speedup BroadcastCells()Eike Rathke
Iterating over a range and attempting to get a broadcaster for each cell position is a performance bottle neck. Take advantage of the column's existing maBroadcasters structure instead. Change-Id: I5467a64ee3c0b5f430be1f0c4b940d3f71874827
2014-12-09move RID_APPTITLE to desktop where its usedCaolán McNamara
rename the other ones and remove the unused ones Change-Id: I0e636cd5d1799e0f9cb815a4bfa20b16039ecb3f
2014-12-09changed timers to idleJennifer Liebel
Change-Id: I5846940cc45781f4a0264047107dbb568604d543
2014-12-09changed timers to idlesJennifer Liebel
Change-Id: Iebde351b3bfca907a7730b7af379efb040cbeae2
2014-12-09activate BROADCAST_BROADCASTERS to speedup SetDirty with rangeEike Rathke
No need to iterate through all cell positions and attempt a broadcast if no one is listening. Instead, broadcast only the cell broadcasters and use AreaBroadcast for the area listeners. Change-Id: I1e666e8ff19ac0715f73d73f54da2e4c8d523173
2014-12-09surely it makes no sense to ignore return of Sanitize[Col|Row]Caolán McNamara
Change-Id: I24ef940bcf4b2a7c5f40185f91ee234c844185f8
2014-12-08Remove more unnecessary header includes and use forward declaration.Kohei Yoshida
Change-Id: I88d0fb0e7c20d4b1414516e3bd2f961811b2eb8c
2014-12-09introduce ScColumn::BroadcastMode instead of bBroadcast, bIncludeEmptyCellsEike Rathke
Not only are multiple boolean parameters ugly, but prepare also for the new broadcasters-only mode yet to be implemented. Change-Id: Ie6383826e76a771b88e7b4b29e5de9a58c598ad5
2014-12-08we need the SdrPage for deleting the notes, fdo#86166Markus Mohrhard
The SdrPage that contains the shapes for the note captions is deleted before the notes. Prevent that case by deleting the notes before deleting the SdrPage. Change-Id: I13727cea7df0b033fb386a6a8e20dcadec743335
2014-12-07add ReorderParam.mbHasHeaders to include in Undo range markEike Rathke
Undo Sort did not select/mark the original range if it included header row/column. Change-Id: Ie4c800e7a44fd910c871731673093400c6400e4a
2014-12-07coverity#707985 Uninitialized scalar fieldCaolán McNamara
Change-Id: I1847b2900b513cc9b7b47767a15fb7e11d0abf26
2014-12-07Revert "coverity#1242942 Use of untrusted scalar value"Caolán McNamara
This reverts commit 093b3d30f257a01122042eb4d116ee54fbdb7033. it didn't help one bit to get coverity to see the bounds check Change-Id: Ibf01c7dea2b220290511871c2a650051295d389d
2014-12-05Fix incorrect adjustment of range references during sort.Kohei Yoshida
... as a result of the introduction of range-based area listeners. With this change, the insertRangeData() function for ucalc no longer needs the additional bGroupListening flag. All tests pass with group listening enabled at all times. Change-Id: I9b9fb9443c727ff62badbd60ec9cd94094eb5a45
2014-12-05Ctrl+A and Data Sort took ages to broadcast ALL cellsEike Rathke
... now that also empty cells are to be broadcasted. Set dirty and broadcast only the effective data range as determined by Sort. This is more a workaround, a cleaner solution would be to refactor the SetDirty() algorithm to iterate only through broadcasters and use AreaBroadcast() to notify area listeners. However, this can also be easily backported to 4-3. Change-Id: I6d68ca0088cec6a8328a3e93364ac928ef69babe
2014-12-05Create 2 variants of SortReorderByRow.Kohei Yoshida
One for IsUpdateRefs() true, the other for IsUpdateRefs() false. Change-Id: I2b18e2b8a9770fd9499dd9fc0d26397e67c1e8ae
2014-12-05I got the terms 'union' and 'intersection' mixed up.Kohei Yoshida
When I said 'Union' originally, I meant 'Intersection'. Let's fix that. Change-Id: Iaef5035bb1dbb676c63bd17b3650266605104181
2014-12-04be more explicitDavid Tardon
Change-Id: I33b639b3505d5db2ea8b708d80e68e576ec53308
2014-12-04impl. Clone for all subclasses of SdrPageDavid Tardon
Change-Id: Ie370161e51ff83cb605bc57d317ff945404e5611
2014-12-04ooo#93212 avoid slicing during construction of SdrPageDavid Tardon
Also hide copy ctor and assignment operator of all derived classes, to ensure that Clone() is the only method to make copies of them. Change-Id: Icb3b50c63b086abe8c9add32e3041fe19692d20b
2014-12-04Revert "introduce bool bBroadcast parameter for ScTable::SetDirty()"Eike Rathke
This reverts commit b8a7c39cf26f6d417efc34acdf6f4c2a6762052d. Bah, this was a leftover of an idea I didn't follow..
2014-12-03introduce bool bBroadcast parameter for ScTable::SetDirty()Eike Rathke
Change-Id: I62c3714c8036fe8d4b70ee188546c7d69ece1ea5
2014-12-03coverity#1242942 Use of untrusted scalar valueCaolán McNamara
see can we make this somewhat more obvious to coverity Change-Id: I2a3d9259f36c45b74391ecb5d96bf168959eb268
2014-12-03remove boolean parameter default from ScDocument::SetDirtyEike Rathke
... and force the caller to make a decision. In fact some needed to include empty cells. Change-Id: I82b6ef72f7ecda6543b3cafc70f475519870b471
2014-12-03remove boolean parameter default from ScTable::SetDirty()Eike Rathke
Change-Id: I37761c07dd72bfa25cc499c8ed41241f1ba56469
2014-12-03get rid of defaulted boolean parameters in ScColumn::SetDirty()Eike Rathke
Change-Id: Iba030c1a4fd3dad34bdd61377b73fa76a062b5f8
2014-12-02fdo#86762 broadcast also empty cells after sortEike Rathke
Change-Id: Ie275a754c530d6039ed14304900dd71416f36e46
2014-12-02fdo#86762 re-establish listeners to move cell broadcastersEike Rathke
... for UpdateReferenceOnSort=false Change-Id: Id90288660e317d6e47ee01ee3b5ff9058cfa18df
2014-11-27Fix OpenCL-less buildTor Lillqvist
Change-Id: I8e049a6df5946344110b38887301d186991a475d
2014-11-27Work in progress: Move Calc-independend OpenCL configuration out of scTor Lillqvist
Intermediate commit. More changes will follow: The device selection logic needs to be moved, too. (And cleaned up.) Instead of the separate formulacalculationoptions dialog we should simply have a normal options page for those OpenCL-related settings that will remain purely Calc-specific, like the formula opcode subsetting. Change-Id: Id60d95e80d377cbbf5780beb473b221bce06b5e5
2014-11-25remove boost/unordered_map.hpp include from types.hxx.Kohei Yoshida
types.hxx is included by pretty much everyone inside sc. Let's not stick a boost header in there... Change-Id: Iaf2aa9e13d0e02437bcd9e71a0143432abfa0a7c
2014-11-25Adjust ref undo to ensure group area listeners are used.Kohei Yoshida
When undoing row deletion (and possibly other similar undo's). And write test for it. Change-Id: I04b4fd9932f4236f124dcd25967355c6055dec33
2014-11-25all these ids and their associated resources were unnecessaryCaolán McNamara
Change-Id: I3f538668c9c5f1727b8cf49ab72fd5879e12f156
2014-11-25fix fdo#79441 again and keep references to other sheets during sortEike Rathke
... also if other references are not updated. References to other sheets are never to be treated as relative during sort, they are always absolute, even if they have relative row/column part references. Broken again during the big sort mess. Even if there was a unit test, which didn't help as it got disabled / adapted to the change.. Change-Id: Ic0e61c5e1cb0728e20725c29e450ab0eb55c3305
2014-11-24Make whether to use OpenCL or not a global optionTor Lillqvist
Add a toggle to the "General" page. Change-Id: If35b1472032706b09a3bc3499c55cbd3ac2e13ac
2014-11-24move RID_APPTITLE to desktop where its usedCaolán McNamara
rename the other ones and remove the unused ones Change-Id: I0e636cd5d1799e0f9cb815a4bfa20b16039ecb3f
2014-11-21Use group area listeners when deleting rows.Kohei Yoshida
Change-Id: I9ceb1cabf448349e087e4d5c4c2b1a75af91dd75
2014-11-21Dump formula group listener info.Kohei Yoshida
Change-Id: Idbad1451393c42c272465907312c64c65eba9525
2014-11-21Handle group area listeners correctly when deleting cells.Kohei Yoshida
Change-Id: Ic37084ed670f53e0354056f7bef54229971dd7c2
2014-11-20Adjust InsertRow() for group area listeners.Kohei Yoshida
Change-Id: I813b45d015eb1ae8dc7bd1242152ef734b5fe08c
2014-11-20No need to start listening in CalcAfterLoad for xls import.Kohei Yoshida
We do that prior to it, and in fact, doing it here would unregister all group area listeners and re-register non-group ones, which is massively slower with huge documents. Change-Id: I693f681df05f036eb1aa53554e601066c469f49a
2014-11-20Use regexps in the OpenCL blacklist/whitelistTor Lillqvist
Drop version number bounds, use regexps instead. Not entirely ideal, but as vendors are free to put arbitrary stuff into the driver version string (part of which might be numbers, part free text, part significant, part just informative), just comparing against lower and upper bounds with strverscmp() was not ideal either. Change-Id: Ic4ef4d8e15f79f1c96e6e03f6c01e62ae92dc2fc
2014-11-20fdo#83765 do not update references in SortReorderByColumn() if disabledEike Rathke
Similar to SortReorderByRow() Change-Id: I11dd710c00a56a5f56aeb048fa2258631555a220
2014-11-19Use group area listener when entering a new single formula cell.Kohei Yoshida
Change-Id: I01dc4537919b69a312e92ede2ae00fbe7d781bd7
2014-11-18Use group area listeners when filling down formula cells via fill series.Kohei Yoshida
Change-Id: Ib0d4f542986dc09968cad8b76da9d6e034eddd37